@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
@@ -688,6 +688,99 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
688
688
  };
689
689
  Relationships: [];
690
690
  };
691
+ artikelen_cache: {
692
+ Row: {
693
+ artikelcode: string;
694
+ bron: string;
695
+ bruto_prijs_cent: number | null;
696
+ created_at: string;
697
+ eenheid: string;
698
+ fabrikant: string | null;
699
+ fetched_at: string;
700
+ gtin: string | null;
701
+ id: string;
702
+ naam: string;
703
+ netto_prijs_cent: number | null;
704
+ omschrijving: string | null;
705
+ raw: import("../integrations/supabase/types").Json;
706
+ updated_at: string;
707
+ valuta: string;
708
+ };
709
+ Insert: {
710
+ artikelcode: string;
711
+ bron?: string;
712
+ bruto_prijs_cent?: number | null;
713
+ created_at?: string;
714
+ eenheid?: string;
715
+ fabrikant?: string | null;
716
+ fetched_at?: string;
717
+ gtin?: string | null;
718
+ id?: string;
719
+ naam: string;
720
+ netto_prijs_cent?: number | null;
721
+ omschrijving?: string | null;
722
+ raw?: import("../integrations/supabase/types").Json;
723
+ updated_at?: string;
724
+ valuta?: string;
725
+ };
726
+ Update: {
727
+ artikelcode?: string;
728
+ bron?: string;
729
+ bruto_prijs_cent?: number | null;
730
+ created_at?: string;
731
+ eenheid?: string;
732
+ fabrikant?: string | null;
733
+ fetched_at?: string;
734
+ gtin?: string | null;
735
+ id?: string;
736
+ naam?: string;
737
+ netto_prijs_cent?: number | null;
738
+ omschrijving?: string | null;
739
+ raw?: import("../integrations/supabase/types").Json;
740
+ updated_at?: string;
741
+ valuta?: string;
742
+ };
743
+ Relationships: [];
744
+ };
745
+ artikelen_veldconfig: {
746
+ Row: {
747
+ bron_pad: string;
748
+ created_at: string;
749
+ id: string;
750
+ label: string;
751
+ sort_order: number;
752
+ type: string;
753
+ updated_at: string;
754
+ veld_key: string;
755
+ zichtbaar_in_detail: boolean;
756
+ zichtbaar_in_lijst: boolean;
757
+ };
758
+ Insert: {
759
+ bron_pad: string;
760
+ created_at?: string;
761
+ id?: string;
762
+ label: string;
763
+ sort_order?: number;
764
+ type?: string;
765
+ updated_at?: string;
766
+ veld_key: string;
767
+ zichtbaar_in_detail?: boolean;
768
+ zichtbaar_in_lijst?: boolean;
769
+ };
770
+ Update: {
771
+ bron_pad?: string;
772
+ created_at?: string;
773
+ id?: string;
774
+ label?: string;
775
+ sort_order?: number;
776
+ type?: string;
777
+ updated_at?: string;
778
+ veld_key?: string;
779
+ zichtbaar_in_detail?: boolean;
780
+ zichtbaar_in_lijst?: boolean;
781
+ };
782
+ Relationships: [];
783
+ };
691
784
  booking_items: {
692
785
  Row: {
693
786
  booking_id: string;
@@ -2773,6 +2866,42 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
2773
2866
  };
2774
2867
  Relationships: [];
2775
2868
  };
2869
+ document_bronregels: {
2870
+ Row: {
2871
+ bron: string;
2872
+ created_at: string;
2873
+ documenttype: string;
2874
+ herkomst: string;
2875
+ id: string;
2876
+ layout_id: string | null;
2877
+ updated_at: string;
2878
+ };
2879
+ Insert: {
2880
+ bron?: string;
2881
+ created_at?: string;
2882
+ documenttype: string;
2883
+ herkomst: string;
2884
+ id?: string;
2885
+ layout_id?: string | null;
2886
+ updated_at?: string;
2887
+ };
2888
+ Update: {
2889
+ bron?: string;
2890
+ created_at?: string;
2891
+ documenttype?: string;
2892
+ herkomst?: string;
2893
+ id?: string;
2894
+ layout_id?: string | null;
2895
+ updated_at?: string;
2896
+ };
2897
+ Relationships: [{
2898
+ foreignKeyName: "document_bronregels_layout_id_fkey";
2899
+ columns: ["layout_id"];
2900
+ isOneToOne: false;
2901
+ referencedRelation: "document_layouts";
2902
+ referencedColumns: ["id"];
2903
+ }];
2904
+ };
2776
2905
  document_formaat_printers: {
2777
2906
  Row: {
2778
2907
  created_at: string;
@@ -3050,6 +3179,7 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
3050
3179
  Row: {
3051
3180
  actief: boolean;
3052
3181
  breedte_mm: number;
3182
+ bron: string;
3053
3183
  config: import("../integrations/supabase/types").Json;
3054
3184
  created_at: string;
3055
3185
  created_by: string | null;
@@ -3067,12 +3197,14 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
3067
3197
  orientatie: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
3068
3198
  page_settings: import("../integrations/supabase/types").Json;
3069
3199
  papierformaat: string;
3200
+ systeem: boolean;
3070
3201
  thumbnail_url: string | null;
3071
3202
  updated_at: string;
3072
3203
  };
3073
3204
  Insert: {
3074
3205
  actief?: boolean;
3075
3206
  breedte_mm?: number;
3207
+ bron?: string;
3076
3208
  config?: import("../integrations/supabase/types").Json;
3077
3209
  created_at?: string;
3078
3210
  created_by?: string | null;
@@ -3090,12 +3222,14 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
3090
3222
  orientatie?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
3091
3223
  page_settings?: import("../integrations/supabase/types").Json;
3092
3224
  papierformaat?: string;
3225
+ systeem?: boolean;
3093
3226
  thumbnail_url?: string | null;
3094
3227
  updated_at?: string;
3095
3228
  };
3096
3229
  Update: {
3097
3230
  actief?: boolean;
3098
3231
  breedte_mm?: number;
3232
+ bron?: string;
3099
3233
  config?: import("../integrations/supabase/types").Json;
3100
3234
  created_at?: string;
3101
3235
  created_by?: string | null;
@@ -3113,11 +3247,90 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
3113
3247
  orientatie?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
3114
3248
  page_settings?: import("../integrations/supabase/types").Json;
3115
3249
  papierformaat?: string;
3250
+ systeem?: boolean;
3116
3251
  thumbnail_url?: string | null;
3117
3252
  updated_at?: string;
3118
3253
  };
3119
3254
  Relationships: [];
3120
3255
  };
3256
+ document_printplek_printers: {
3257
+ Row: {
3258
+ created_at: string;
3259
+ documenttype: string;
3260
+ id: string;
3261
+ papierformaat: string | null;
3262
+ print_plek_id: string;
3263
+ printer_id: string | null;
3264
+ updated_at: string;
3265
+ };
3266
+ Insert: {
3267
+ created_at?: string;
3268
+ documenttype: string;
3269
+ id?: string;
3270
+ papierformaat?: string | null;
3271
+ print_plek_id: string;
3272
+ printer_id?: string | null;
3273
+ updated_at?: string;
3274
+ };
3275
+ Update: {
3276
+ created_at?: string;
3277
+ documenttype?: string;
3278
+ id?: string;
3279
+ papierformaat?: string | null;
3280
+ print_plek_id?: string;
3281
+ printer_id?: string | null;
3282
+ updated_at?: string;
3283
+ };
3284
+ Relationships: [{
3285
+ foreignKeyName: "document_printplek_printers_print_plek_id_fkey";
3286
+ columns: ["print_plek_id"];
3287
+ isOneToOne: false;
3288
+ referencedRelation: "print_plekken";
3289
+ referencedColumns: ["id"];
3290
+ }, {
3291
+ foreignKeyName: "document_printplek_printers_printer_id_fkey";
3292
+ columns: ["printer_id"];
3293
+ isOneToOne: false;
3294
+ referencedRelation: "printers";
3295
+ referencedColumns: ["id"];
3296
+ }];
3297
+ };
3298
+ document_werkplek_printers: {
3299
+ Row: {
3300
+ created_at: string;
3301
+ documenttype: string;
3302
+ id: string;
3303
+ papierformaat: string | null;
3304
+ printer_id: string | null;
3305
+ updated_at: string;
3306
+ werkplek: string;
3307
+ };
3308
+ Insert: {
3309
+ created_at?: string;
3310
+ documenttype: string;
3311
+ id?: string;
3312
+ papierformaat?: string | null;
3313
+ printer_id?: string | null;
3314
+ updated_at?: string;
3315
+ werkplek: string;
3316
+ };
3317
+ Update: {
3318
+ created_at?: string;
3319
+ documenttype?: string;
3320
+ id?: string;
3321
+ papierformaat?: string | null;
3322
+ printer_id?: string | null;
3323
+ updated_at?: string;
3324
+ werkplek?: string;
3325
+ };
3326
+ Relationships: [{
3327
+ foreignKeyName: "document_werkplek_printers_printer_id_fkey";
3328
+ columns: ["printer_id"];
3329
+ isOneToOne: false;
3330
+ referencedRelation: "printers";
3331
+ referencedColumns: ["id"];
3332
+ }];
3333
+ };
3121
3334
  email_auth_connections: {
3122
3335
  Row: {
3123
3336
  access_token_encrypted: string | null;
@@ -5059,42 +5272,6 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
5059
5272
  };
5060
5273
  Relationships: [];
5061
5274
  };
5062
- facturen: {
5063
- Row: {
5064
- bedrag_incl_btw: number;
5065
- created_at: string;
5066
- datum: string;
5067
- factuurnummer: string;
5068
- id: string;
5069
- klantnaam: string;
5070
- status: string;
5071
- updated_at: string;
5072
- user_id: string;
5073
- };
5074
- Insert: {
5075
- bedrag_incl_btw: number;
5076
- created_at?: string;
5077
- datum?: string;
5078
- factuurnummer: string;
5079
- id?: string;
5080
- klantnaam: string;
5081
- status?: string;
5082
- updated_at?: string;
5083
- user_id?: string;
5084
- };
5085
- Update: {
5086
- bedrag_incl_btw?: number;
5087
- created_at?: string;
5088
- datum?: string;
5089
- factuurnummer?: string;
5090
- id?: string;
5091
- klantnaam?: string;
5092
- status?: string;
5093
- updated_at?: string;
5094
- user_id?: string;
5095
- };
5096
- Relationships: [];
5097
- };
5098
5275
  floricode_connection_settings: {
5099
5276
  Row: {
5100
5277
  catalog_key: string | null;
@@ -7399,8 +7576,63 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
7399
7576
  };
7400
7577
  Relationships: [];
7401
7578
  };
7579
+ invoice_items: {
7580
+ Row: {
7581
+ created_at: string;
7582
+ description: string;
7583
+ id: string;
7584
+ invoice_id: string;
7585
+ kind: string;
7586
+ quantity: number;
7587
+ sort_order: number;
7588
+ source_line_ref: string | null;
7589
+ total_cents: number;
7590
+ unit: string;
7591
+ unit_price_cents: number;
7592
+ };
7593
+ Insert: {
7594
+ created_at?: string;
7595
+ description?: string;
7596
+ id?: string;
7597
+ invoice_id: string;
7598
+ kind?: string;
7599
+ quantity?: number;
7600
+ sort_order?: number;
7601
+ source_line_ref?: string | null;
7602
+ total_cents?: number;
7603
+ unit?: string;
7604
+ unit_price_cents?: number;
7605
+ };
7606
+ Update: {
7607
+ created_at?: string;
7608
+ description?: string;
7609
+ id?: string;
7610
+ invoice_id?: string;
7611
+ kind?: string;
7612
+ quantity?: number;
7613
+ sort_order?: number;
7614
+ source_line_ref?: string | null;
7615
+ total_cents?: number;
7616
+ unit?: string;
7617
+ unit_price_cents?: number;
7618
+ };
7619
+ Relationships: [{
7620
+ foreignKeyName: "invoice_items_invoice_id_fkey";
7621
+ columns: ["invoice_id"];
7622
+ isOneToOne: false;
7623
+ referencedRelation: "invoices";
7624
+ referencedColumns: ["id"];
7625
+ }, {
7626
+ foreignKeyName: "invoice_items_invoice_id_fkey";
7627
+ columns: ["invoice_id"];
7628
+ isOneToOne: false;
7629
+ referencedRelation: "uren_facturen";
7630
+ referencedColumns: ["id"];
7631
+ }];
7632
+ };
7402
7633
  invoice_post_idempotency: {
7403
7634
  Row: {
7635
+ administration_code: string;
7404
7636
  client_request_id: string;
7405
7637
  completed_at: string | null;
7406
7638
  created_at: string;
@@ -7410,6 +7642,7 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
7410
7642
  user_id: string;
7411
7643
  };
7412
7644
  Insert: {
7645
+ administration_code?: string;
7413
7646
  client_request_id: string;
7414
7647
  completed_at?: string | null;
7415
7648
  created_at?: string;
@@ -7419,6 +7652,7 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
7419
7652
  user_id: string;
7420
7653
  };
7421
7654
  Update: {
7655
+ administration_code?: string;
7422
7656
  client_request_id?: string;
7423
7657
  completed_at?: string | null;
7424
7658
  created_at?: string;
@@ -7624,6 +7858,75 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
7624
7858
  };
7625
7859
  Relationships: [];
7626
7860
  };
7861
+ invoices: {
7862
+ Row: {
7863
+ created_at: string;
7864
+ created_by: string | null;
7865
+ customer_id: string | null;
7866
+ customer_name: string | null;
7867
+ due_date: string | null;
7868
+ id: string;
7869
+ invoice_date: string;
7870
+ invoice_number: string | null;
7871
+ note: string | null;
7872
+ source_number: string | null;
7873
+ source_ref: string | null;
7874
+ source_type: string;
7875
+ status: string;
7876
+ subtotal_cents: number;
7877
+ total_cents: number;
7878
+ updated_at: string;
7879
+ vat_cents: number;
7880
+ vat_rate: number;
7881
+ };
7882
+ Insert: {
7883
+ created_at?: string;
7884
+ created_by?: string | null;
7885
+ customer_id?: string | null;
7886
+ customer_name?: string | null;
7887
+ due_date?: string | null;
7888
+ id?: string;
7889
+ invoice_date?: string;
7890
+ invoice_number?: string | null;
7891
+ note?: string | null;
7892
+ source_number?: string | null;
7893
+ source_ref?: string | null;
7894
+ source_type?: string;
7895
+ status?: string;
7896
+ subtotal_cents?: number;
7897
+ total_cents?: number;
7898
+ updated_at?: string;
7899
+ vat_cents?: number;
7900
+ vat_rate?: number;
7901
+ };
7902
+ Update: {
7903
+ created_at?: string;
7904
+ created_by?: string | null;
7905
+ customer_id?: string | null;
7906
+ customer_name?: string | null;
7907
+ due_date?: string | null;
7908
+ id?: string;
7909
+ invoice_date?: string;
7910
+ invoice_number?: string | null;
7911
+ note?: string | null;
7912
+ source_number?: string | null;
7913
+ source_ref?: string | null;
7914
+ source_type?: string;
7915
+ status?: string;
7916
+ subtotal_cents?: number;
7917
+ total_cents?: number;
7918
+ updated_at?: string;
7919
+ vat_cents?: number;
7920
+ vat_rate?: number;
7921
+ };
7922
+ Relationships: [{
7923
+ foreignKeyName: "invoices_customer_id_fkey";
7924
+ columns: ["customer_id"];
7925
+ isOneToOne: false;
7926
+ referencedRelation: "itk_customers";
7927
+ referencedColumns: ["id"];
7928
+ }];
7929
+ };
7627
7930
  itk_contact_persons: {
7628
7931
  Row: {
7629
7932
  created_at: string;
@@ -8971,6 +9274,10 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
8971
9274
  id: string;
8972
9275
  last_error: string | null;
8973
9276
  last_error_at: string | null;
9277
+ last_error_code: string | null;
9278
+ last_gateway_status: number | null;
9279
+ last_queued_at: string | null;
9280
+ last_response: import("../integrations/supabase/types").Json | null;
8974
9281
  last_sent_hash: string | null;
8975
9282
  locked_by: string | null;
8976
9283
  locked_until: string | null;
@@ -8991,6 +9298,10 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
8991
9298
  id?: string;
8992
9299
  last_error?: string | null;
8993
9300
  last_error_at?: string | null;
9301
+ last_error_code?: string | null;
9302
+ last_gateway_status?: number | null;
9303
+ last_queued_at?: string | null;
9304
+ last_response?: import("../integrations/supabase/types").Json | null;
8994
9305
  last_sent_hash?: string | null;
8995
9306
  locked_by?: string | null;
8996
9307
  locked_until?: string | null;
@@ -9011,6 +9322,10 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
9011
9322
  id?: string;
9012
9323
  last_error?: string | null;
9013
9324
  last_error_at?: string | null;
9325
+ last_error_code?: string | null;
9326
+ last_gateway_status?: number | null;
9327
+ last_queued_at?: string | null;
9328
+ last_response?: import("../integrations/supabase/types").Json | null;
9014
9329
  last_sent_hash?: string | null;
9015
9330
  locked_by?: string | null;
9016
9331
  locked_until?: string | null;
@@ -10564,6 +10879,7 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
10564
10879
  enforce: boolean;
10565
10880
  is_active: boolean;
10566
10881
  last_seen_at: string;
10882
+ missing_count: number;
10567
10883
  module_id: string;
10568
10884
  name: string;
10569
10885
  shell_id: string | null;
@@ -10574,6 +10890,7 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
10574
10890
  enforce?: boolean;
10575
10891
  is_active?: boolean;
10576
10892
  last_seen_at?: string;
10893
+ missing_count?: number;
10577
10894
  module_id: string;
10578
10895
  name: string;
10579
10896
  shell_id?: string | null;
@@ -10584,6 +10901,7 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
10584
10901
  enforce?: boolean;
10585
10902
  is_active?: boolean;
10586
10903
  last_seen_at?: string;
10904
+ missing_count?: number;
10587
10905
  module_id?: string;
10588
10906
  name?: string;
10589
10907
  shell_id?: string | null;
@@ -11583,6 +11901,7 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
11583
11901
  };
11584
11902
  order_invoice_links: {
11585
11903
  Row: {
11904
+ administration_code: string | null;
11586
11905
  attempts: number;
11587
11906
  created_at: string;
11588
11907
  error_message: string | null;
@@ -11595,6 +11914,7 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
11595
11914
  updated_at: string;
11596
11915
  };
11597
11916
  Insert: {
11917
+ administration_code?: string | null;
11598
11918
  attempts?: number;
11599
11919
  created_at?: string;
11600
11920
  error_message?: string | null;
@@ -11607,6 +11927,7 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
11607
11927
  updated_at?: string;
11608
11928
  };
11609
11929
  Update: {
11930
+ administration_code?: string | null;
11610
11931
  attempts?: number;
11611
11932
  created_at?: string;
11612
11933
  error_message?: string | null;
@@ -12772,6 +13093,27 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
12772
13093
  referencedColumns: ["id"];
12773
13094
  }];
12774
13095
  };
13096
+ pick_sync_state: {
13097
+ Row: {
13098
+ id: boolean;
13099
+ last_cleanup_at: string | null;
13100
+ last_sync_at: string | null;
13101
+ updated_at: string;
13102
+ };
13103
+ Insert: {
13104
+ id?: boolean;
13105
+ last_cleanup_at?: string | null;
13106
+ last_sync_at?: string | null;
13107
+ updated_at?: string;
13108
+ };
13109
+ Update: {
13110
+ id?: boolean;
13111
+ last_cleanup_at?: string | null;
13112
+ last_sync_at?: string | null;
13113
+ updated_at?: string;
13114
+ };
13115
+ Relationships: [];
13116
+ };
12775
13117
  pick_task_document_types: {
12776
13118
  Row: {
12777
13119
  created_at: string;
@@ -13054,6 +13396,7 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
13054
13396
  gebruiker_id: string | null;
13055
13397
  gebruiker_naam: string;
13056
13398
  gestart_op: string | null;
13399
+ herkomst: string | null;
13057
13400
  id: string;
13058
13401
  idempotentie_sleutel: string | null;
13059
13402
  is_herprint: boolean;
@@ -13083,6 +13426,7 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
13083
13426
  gebruiker_id?: string | null;
13084
13427
  gebruiker_naam?: string;
13085
13428
  gestart_op?: string | null;
13429
+ herkomst?: string | null;
13086
13430
  id?: string;
13087
13431
  idempotentie_sleutel?: string | null;
13088
13432
  is_herprint?: boolean;
@@ -13112,6 +13456,7 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
13112
13456
  gebruiker_id?: string | null;
13113
13457
  gebruiker_naam?: string;
13114
13458
  gestart_op?: string | null;
13459
+ herkomst?: string | null;
13115
13460
  id?: string;
13116
13461
  idempotentie_sleutel?: string | null;
13117
13462
  is_herprint?: boolean;
@@ -13150,6 +13495,99 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
13150
13495
  referencedColumns: ["id"];
13151
13496
  }];
13152
13497
  };
13498
+ print_plek_computers: {
13499
+ Row: {
13500
+ computer_naam: string;
13501
+ created_at: string;
13502
+ id: string;
13503
+ print_plek_id: string;
13504
+ updated_at: string;
13505
+ };
13506
+ Insert: {
13507
+ computer_naam: string;
13508
+ created_at?: string;
13509
+ id?: string;
13510
+ print_plek_id: string;
13511
+ updated_at?: string;
13512
+ };
13513
+ Update: {
13514
+ computer_naam?: string;
13515
+ created_at?: string;
13516
+ id?: string;
13517
+ print_plek_id?: string;
13518
+ updated_at?: string;
13519
+ };
13520
+ Relationships: [{
13521
+ foreignKeyName: "print_plek_computers_print_plek_id_fkey";
13522
+ columns: ["print_plek_id"];
13523
+ isOneToOne: false;
13524
+ referencedRelation: "print_plekken";
13525
+ referencedColumns: ["id"];
13526
+ }];
13527
+ };
13528
+ print_plek_koppelingen: {
13529
+ Row: {
13530
+ bron: string;
13531
+ bron_id: string;
13532
+ created_at: string;
13533
+ id: string;
13534
+ label: string | null;
13535
+ print_plek_id: string;
13536
+ updated_at: string;
13537
+ };
13538
+ Insert: {
13539
+ bron: string;
13540
+ bron_id: string;
13541
+ created_at?: string;
13542
+ id?: string;
13543
+ label?: string | null;
13544
+ print_plek_id: string;
13545
+ updated_at?: string;
13546
+ };
13547
+ Update: {
13548
+ bron?: string;
13549
+ bron_id?: string;
13550
+ created_at?: string;
13551
+ id?: string;
13552
+ label?: string | null;
13553
+ print_plek_id?: string;
13554
+ updated_at?: string;
13555
+ };
13556
+ Relationships: [{
13557
+ foreignKeyName: "print_plek_koppelingen_print_plek_id_fkey";
13558
+ columns: ["print_plek_id"];
13559
+ isOneToOne: false;
13560
+ referencedRelation: "print_plekken";
13561
+ referencedColumns: ["id"];
13562
+ }];
13563
+ };
13564
+ print_plekken: {
13565
+ Row: {
13566
+ actief: boolean;
13567
+ created_at: string;
13568
+ id: string;
13569
+ naam: string;
13570
+ omschrijving: string | null;
13571
+ updated_at: string;
13572
+ };
13573
+ Insert: {
13574
+ actief?: boolean;
13575
+ created_at?: string;
13576
+ id?: string;
13577
+ naam: string;
13578
+ omschrijving?: string | null;
13579
+ updated_at?: string;
13580
+ };
13581
+ Update: {
13582
+ actief?: boolean;
13583
+ created_at?: string;
13584
+ id?: string;
13585
+ naam?: string;
13586
+ omschrijving?: string | null;
13587
+ updated_at?: string;
13588
+ };
13589
+ Relationships: [];
13590
+ };
13153
13591
  print_queue_runners: {
13154
13592
  Row: {
13155
13593
  actief: boolean;
@@ -15304,6 +15742,45 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
15304
15742
  };
15305
15743
  Relationships: [];
15306
15744
  };
15745
+ stock_consumption_alerts: {
15746
+ Row: {
15747
+ alert_type: string;
15748
+ created_at: string;
15749
+ id: string;
15750
+ mutation_log_id: string | null;
15751
+ order_id: string | null;
15752
+ order_item_id: string | null;
15753
+ qty: number;
15754
+ reason: string | null;
15755
+ resolved_at: string | null;
15756
+ updated_at: string;
15757
+ };
15758
+ Insert: {
15759
+ alert_type: string;
15760
+ created_at?: string;
15761
+ id?: string;
15762
+ mutation_log_id?: string | null;
15763
+ order_id?: string | null;
15764
+ order_item_id?: string | null;
15765
+ qty?: number;
15766
+ reason?: string | null;
15767
+ resolved_at?: string | null;
15768
+ updated_at?: string;
15769
+ };
15770
+ Update: {
15771
+ alert_type?: string;
15772
+ created_at?: string;
15773
+ id?: string;
15774
+ mutation_log_id?: string | null;
15775
+ order_id?: string | null;
15776
+ order_item_id?: string | null;
15777
+ qty?: number;
15778
+ reason?: string | null;
15779
+ resolved_at?: string | null;
15780
+ updated_at?: string;
15781
+ };
15782
+ Relationships: [];
15783
+ };
15307
15784
  stock_import_runs: {
15308
15785
  Row: {
15309
15786
  connection_id: string | null;
@@ -16116,12 +16593,16 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
16116
16593
  company_name: string | null;
16117
16594
  connected_at: string | null;
16118
16595
  created_at: string;
16596
+ disconnected_at: string | null;
16119
16597
  environment: string;
16120
16598
  id: string;
16599
+ initial_sync_completed_at: string | null;
16600
+ initial_sync_started_at: string | null;
16121
16601
  is_active: boolean;
16122
16602
  label: string | null;
16123
16603
  office_code: string | null;
16124
16604
  redirect_uri: string | null;
16605
+ superseded_at: string | null;
16125
16606
  updated_at: string;
16126
16607
  user_id: string;
16127
16608
  };
@@ -16132,12 +16613,16 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
16132
16613
  company_name?: string | null;
16133
16614
  connected_at?: string | null;
16134
16615
  created_at?: string;
16616
+ disconnected_at?: string | null;
16135
16617
  environment: string;
16136
16618
  id?: string;
16619
+ initial_sync_completed_at?: string | null;
16620
+ initial_sync_started_at?: string | null;
16137
16621
  is_active?: boolean;
16138
16622
  label?: string | null;
16139
16623
  office_code?: string | null;
16140
16624
  redirect_uri?: string | null;
16625
+ superseded_at?: string | null;
16141
16626
  updated_at?: string;
16142
16627
  user_id: string;
16143
16628
  };
@@ -16148,12 +16633,16 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
16148
16633
  company_name?: string | null;
16149
16634
  connected_at?: string | null;
16150
16635
  created_at?: string;
16636
+ disconnected_at?: string | null;
16151
16637
  environment?: string;
16152
16638
  id?: string;
16639
+ initial_sync_completed_at?: string | null;
16640
+ initial_sync_started_at?: string | null;
16153
16641
  is_active?: boolean;
16154
16642
  label?: string | null;
16155
16643
  office_code?: string | null;
16156
16644
  redirect_uri?: string | null;
16645
+ superseded_at?: string | null;
16157
16646
  updated_at?: string;
16158
16647
  user_id?: string;
16159
16648
  };
@@ -16213,6 +16702,7 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
16213
16702
  twinfield_customers: {
16214
16703
  Row: {
16215
16704
  address: string | null;
16705
+ administration_code: string;
16216
16706
  city: string | null;
16217
16707
  country: string | null;
16218
16708
  created_at: string;
@@ -16232,6 +16722,7 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
16232
16722
  };
16233
16723
  Insert: {
16234
16724
  address?: string | null;
16725
+ administration_code?: string;
16235
16726
  city?: string | null;
16236
16727
  country?: string | null;
16237
16728
  created_at?: string;
@@ -16251,6 +16742,7 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
16251
16742
  };
16252
16743
  Update: {
16253
16744
  address?: string | null;
16745
+ administration_code?: string;
16254
16746
  city?: string | null;
16255
16747
  country?: string | null;
16256
16748
  created_at?: string;
@@ -16464,7 +16956,9 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
16464
16956
  };
16465
16957
  twinfield_invoice_settings: {
16466
16958
  Row: {
16959
+ administration_code: string | null;
16467
16960
  auto_invoice_enabled: boolean;
16961
+ auto_invoice_start_date: string | null;
16468
16962
  auto_invoice_trigger_statuses: string[];
16469
16963
  created_at: string;
16470
16964
  debtor_gl_account: string;
@@ -16478,15 +16972,19 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
16478
16972
  invoice_enabled_fo: boolean;
16479
16973
  invoice_enabled_ho: boolean;
16480
16974
  invoice_enabled_mo: boolean;
16975
+ needs_review: boolean;
16481
16976
  payment_gl_account: string;
16482
16977
  payment_journal_code: string;
16978
+ settings_confirmed_at: string | null;
16483
16979
  updated_at: string;
16484
16980
  user_id: string;
16485
16981
  vat_code_eu_reverse: string | null;
16486
16982
  vat_code_export: string | null;
16487
16983
  };
16488
16984
  Insert: {
16985
+ administration_code?: string | null;
16489
16986
  auto_invoice_enabled?: boolean;
16987
+ auto_invoice_start_date?: string | null;
16490
16988
  auto_invoice_trigger_statuses?: string[];
16491
16989
  created_at?: string;
16492
16990
  debtor_gl_account?: string;
@@ -16500,15 +16998,19 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
16500
16998
  invoice_enabled_fo?: boolean;
16501
16999
  invoice_enabled_ho?: boolean;
16502
17000
  invoice_enabled_mo?: boolean;
17001
+ needs_review?: boolean;
16503
17002
  payment_gl_account?: string;
16504
17003
  payment_journal_code?: string;
17004
+ settings_confirmed_at?: string | null;
16505
17005
  updated_at?: string;
16506
17006
  user_id: string;
16507
17007
  vat_code_eu_reverse?: string | null;
16508
17008
  vat_code_export?: string | null;
16509
17009
  };
16510
17010
  Update: {
17011
+ administration_code?: string | null;
16511
17012
  auto_invoice_enabled?: boolean;
17013
+ auto_invoice_start_date?: string | null;
16512
17014
  auto_invoice_trigger_statuses?: string[];
16513
17015
  created_at?: string;
16514
17016
  debtor_gl_account?: string;
@@ -16522,8 +17024,10 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
16522
17024
  invoice_enabled_fo?: boolean;
16523
17025
  invoice_enabled_ho?: boolean;
16524
17026
  invoice_enabled_mo?: boolean;
17027
+ needs_review?: boolean;
16525
17028
  payment_gl_account?: string;
16526
17029
  payment_journal_code?: string;
17030
+ settings_confirmed_at?: string | null;
16527
17031
  updated_at?: string;
16528
17032
  user_id?: string;
16529
17033
  vat_code_eu_reverse?: string | null;
@@ -17128,114 +17632,6 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
17128
17632
  };
17129
17633
  Relationships: [];
17130
17634
  };
17131
- uren_facturen: {
17132
- Row: {
17133
- created_at: string;
17134
- created_by: string | null;
17135
- customer_id: string | null;
17136
- customer_name: string | null;
17137
- id: string;
17138
- invoice_number: string | null;
17139
- note: string | null;
17140
- status: string;
17141
- total_excl_cents: number;
17142
- total_incl_cents: number;
17143
- updated_at: string;
17144
- vat_cents: number;
17145
- vat_percentage: number;
17146
- werkbon_id: string | null;
17147
- };
17148
- Insert: {
17149
- created_at?: string;
17150
- created_by?: string | null;
17151
- customer_id?: string | null;
17152
- customer_name?: string | null;
17153
- id?: string;
17154
- invoice_number?: string | null;
17155
- note?: string | null;
17156
- status?: string;
17157
- total_excl_cents?: number;
17158
- total_incl_cents?: number;
17159
- updated_at?: string;
17160
- vat_cents?: number;
17161
- vat_percentage?: number;
17162
- werkbon_id?: string | null;
17163
- };
17164
- Update: {
17165
- created_at?: string;
17166
- created_by?: string | null;
17167
- customer_id?: string | null;
17168
- customer_name?: string | null;
17169
- id?: string;
17170
- invoice_number?: string | null;
17171
- note?: string | null;
17172
- status?: string;
17173
- total_excl_cents?: number;
17174
- total_incl_cents?: number;
17175
- updated_at?: string;
17176
- vat_cents?: number;
17177
- vat_percentage?: number;
17178
- werkbon_id?: string | null;
17179
- };
17180
- Relationships: [{
17181
- foreignKeyName: "uren_facturen_customer_id_fkey";
17182
- columns: ["customer_id"];
17183
- isOneToOne: false;
17184
- referencedRelation: "itk_customers";
17185
- referencedColumns: ["id"];
17186
- }, {
17187
- foreignKeyName: "uren_facturen_werkbon_id_fkey";
17188
- columns: ["werkbon_id"];
17189
- isOneToOne: true;
17190
- referencedRelation: "werkbonnen";
17191
- referencedColumns: ["id"];
17192
- }];
17193
- };
17194
- uren_factuur_regels: {
17195
- Row: {
17196
- created_at: string;
17197
- description: string;
17198
- factuur_id: string;
17199
- id: string;
17200
- kind: string | null;
17201
- quantity: number;
17202
- sort_order: number;
17203
- total_cents: number;
17204
- unit: string;
17205
- unit_price_cents: number;
17206
- };
17207
- Insert: {
17208
- created_at?: string;
17209
- description: string;
17210
- factuur_id: string;
17211
- id?: string;
17212
- kind?: string | null;
17213
- quantity?: number;
17214
- sort_order?: number;
17215
- total_cents?: number;
17216
- unit?: string;
17217
- unit_price_cents?: number;
17218
- };
17219
- Update: {
17220
- created_at?: string;
17221
- description?: string;
17222
- factuur_id?: string;
17223
- id?: string;
17224
- kind?: string | null;
17225
- quantity?: number;
17226
- sort_order?: number;
17227
- total_cents?: number;
17228
- unit?: string;
17229
- unit_price_cents?: number;
17230
- };
17231
- Relationships: [{
17232
- foreignKeyName: "uren_factuur_regels_factuur_id_fkey";
17233
- columns: ["factuur_id"];
17234
- isOneToOne: false;
17235
- referencedRelation: "uren_facturen";
17236
- referencedColumns: ["id"];
17237
- }];
17238
- };
17239
17635
  uren_offerte_regels: {
17240
17636
  Row: {
17241
17637
  created_at: string;
@@ -18489,6 +18885,9 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
18489
18885
  scheduled_end_time: string | null;
18490
18886
  scheduled_start_time: string | null;
18491
18887
  sequence_number: number;
18888
+ signature_accepted_at: string | null;
18889
+ signature_by_user_id: string | null;
18890
+ signature_name: string | null;
18492
18891
  source_email_meta: import("../integrations/supabase/types").Json | null;
18493
18892
  source_mailbox_message_id: string | null;
18494
18893
  source_pdf_path: string | null;
@@ -18524,6 +18923,9 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
18524
18923
  scheduled_end_time?: string | null;
18525
18924
  scheduled_start_time?: string | null;
18526
18925
  sequence_number: number;
18926
+ signature_accepted_at?: string | null;
18927
+ signature_by_user_id?: string | null;
18928
+ signature_name?: string | null;
18527
18929
  source_email_meta?: import("../integrations/supabase/types").Json | null;
18528
18930
  source_mailbox_message_id?: string | null;
18529
18931
  source_pdf_path?: string | null;
@@ -18559,6 +18961,9 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
18559
18961
  scheduled_end_time?: string | null;
18560
18962
  scheduled_start_time?: string | null;
18561
18963
  sequence_number?: number;
18964
+ signature_accepted_at?: string | null;
18965
+ signature_by_user_id?: string | null;
18966
+ signature_name?: string | null;
18562
18967
  source_email_meta?: import("../integrations/supabase/types").Json | null;
18563
18968
  source_mailbox_message_id?: string | null;
18564
18969
  source_pdf_path?: string | null;
@@ -19075,6 +19480,114 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
19075
19480
  };
19076
19481
  Relationships: [];
19077
19482
  };
19483
+ uren_facturen: {
19484
+ Row: {
19485
+ created_at: string | null;
19486
+ created_by: string | null;
19487
+ customer_id: string | null;
19488
+ customer_name: string | null;
19489
+ id: string | null;
19490
+ invoice_number: string | null;
19491
+ note: string | null;
19492
+ status: string | null;
19493
+ total_excl_cents: number | null;
19494
+ total_incl_cents: number | null;
19495
+ updated_at: string | null;
19496
+ vat_cents: number | null;
19497
+ vat_percentage: number | null;
19498
+ werkbon_id: string | null;
19499
+ };
19500
+ Insert: {
19501
+ created_at?: string | null;
19502
+ created_by?: string | null;
19503
+ customer_id?: string | null;
19504
+ customer_name?: string | null;
19505
+ id?: string | null;
19506
+ invoice_number?: string | null;
19507
+ note?: string | null;
19508
+ status?: string | null;
19509
+ total_excl_cents?: number | null;
19510
+ total_incl_cents?: number | null;
19511
+ updated_at?: string | null;
19512
+ vat_cents?: number | null;
19513
+ vat_percentage?: number | null;
19514
+ werkbon_id?: never;
19515
+ };
19516
+ Update: {
19517
+ created_at?: string | null;
19518
+ created_by?: string | null;
19519
+ customer_id?: string | null;
19520
+ customer_name?: string | null;
19521
+ id?: string | null;
19522
+ invoice_number?: string | null;
19523
+ note?: string | null;
19524
+ status?: string | null;
19525
+ total_excl_cents?: number | null;
19526
+ total_incl_cents?: number | null;
19527
+ updated_at?: string | null;
19528
+ vat_cents?: number | null;
19529
+ vat_percentage?: number | null;
19530
+ werkbon_id?: never;
19531
+ };
19532
+ Relationships: [{
19533
+ foreignKeyName: "invoices_customer_id_fkey";
19534
+ columns: ["customer_id"];
19535
+ isOneToOne: false;
19536
+ referencedRelation: "itk_customers";
19537
+ referencedColumns: ["id"];
19538
+ }];
19539
+ };
19540
+ uren_factuur_regels: {
19541
+ Row: {
19542
+ created_at: string | null;
19543
+ description: string | null;
19544
+ factuur_id: string | null;
19545
+ id: string | null;
19546
+ kind: string | null;
19547
+ quantity: number | null;
19548
+ sort_order: number | null;
19549
+ total_cents: number | null;
19550
+ unit: string | null;
19551
+ unit_price_cents: number | null;
19552
+ };
19553
+ Insert: {
19554
+ created_at?: string | null;
19555
+ description?: string | null;
19556
+ factuur_id?: string | null;
19557
+ id?: string | null;
19558
+ kind?: string | null;
19559
+ quantity?: number | null;
19560
+ sort_order?: number | null;
19561
+ total_cents?: number | null;
19562
+ unit?: string | null;
19563
+ unit_price_cents?: number | null;
19564
+ };
19565
+ Update: {
19566
+ created_at?: string | null;
19567
+ description?: string | null;
19568
+ factuur_id?: string | null;
19569
+ id?: string | null;
19570
+ kind?: string | null;
19571
+ quantity?: number | null;
19572
+ sort_order?: number | null;
19573
+ total_cents?: number | null;
19574
+ unit?: string | null;
19575
+ unit_price_cents?: number | null;
19576
+ };
19577
+ Relationships: [{
19578
+ foreignKeyName: "invoice_items_invoice_id_fkey";
19579
+ columns: ["factuur_id"];
19580
+ isOneToOne: false;
19581
+ referencedRelation: "invoices";
19582
+ referencedColumns: ["id"];
19583
+ }, {
19584
+ foreignKeyName: "invoice_items_invoice_id_fkey";
19585
+ columns: ["factuur_id"];
19586
+ isOneToOne: false;
19587
+ referencedRelation: "uren_facturen";
19588
+ referencedColumns: ["id"];
19589
+ }];
19590
+ };
19078
19591
  v_external_customers_exact: {
19079
19592
  Row: {
19080
19593
  account_number: string | null;
@@ -19580,6 +20093,7 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
19580
20093
  gebruiker_id: string | null;
19581
20094
  gebruiker_naam: string;
19582
20095
  gestart_op: string | null;
20096
+ herkomst: string | null;
19583
20097
  id: string;
19584
20098
  idempotentie_sleutel: string | null;
19585
20099
  is_herprint: boolean;
@@ -19700,6 +20214,7 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
19700
20214
  gebruiker_id: string | null;
19701
20215
  gebruiker_naam: string;
19702
20216
  gestart_op: string | null;
20217
+ herkomst: string | null;
19703
20218
  id: string;
19704
20219
  idempotentie_sleutel: string | null;
19705
20220
  is_herprint: boolean;
@@ -20301,6 +20816,46 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
20301
20816
  Args: never;
20302
20817
  Returns: boolean;
20303
20818
  };
20819
+ invoice_create_from_source: {
20820
+ Args: {
20821
+ _payload?: import("../integrations/supabase/types").Json;
20822
+ _source_id: string;
20823
+ _source_type: string;
20824
+ };
20825
+ Returns: import("../integrations/supabase/types").Json;
20826
+ };
20827
+ invoice_get_billable_lines: {
20828
+ Args: {
20829
+ _invoice_id: string;
20830
+ };
20831
+ Returns: import("../integrations/supabase/types").Json;
20832
+ };
20833
+ invoice_get_for_source: {
20834
+ Args: {
20835
+ _source_id: string;
20836
+ _source_type: string;
20837
+ };
20838
+ Returns: import("../integrations/supabase/types").Json;
20839
+ };
20840
+ invoice_get_summary: {
20841
+ Args: {
20842
+ _invoice_id: string;
20843
+ };
20844
+ Returns: import("../integrations/supabase/types").Json;
20845
+ };
20846
+ invoice_list_sources: {
20847
+ Args: {
20848
+ _limit?: number;
20849
+ _source_type?: string;
20850
+ };
20851
+ Returns: import("../integrations/supabase/types").Json;
20852
+ };
20853
+ invoice_recalc_totals: {
20854
+ Args: {
20855
+ _invoice_id: string;
20856
+ };
20857
+ Returns: import("../integrations/supabase/types").Json;
20858
+ };
20304
20859
  is_authenticated: {
20305
20860
  Args: never;
20306
20861
  Returns: boolean;
@@ -20369,6 +20924,29 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
20369
20924
  roles: string[];
20370
20925
  }[];
20371
20926
  };
20927
+ list_monteur_absences: {
20928
+ Args: {
20929
+ _from: string;
20930
+ _to: string;
20931
+ };
20932
+ Returns: {
20933
+ absence_date: string;
20934
+ end_time: string;
20935
+ full_day: boolean;
20936
+ kind: string;
20937
+ monteur_id: string;
20938
+ start_time: string;
20939
+ }[];
20940
+ };
20941
+ list_monteurs: {
20942
+ Args: never;
20943
+ Returns: {
20944
+ avatar_url: string;
20945
+ display_name: string;
20946
+ email: string;
20947
+ id: string;
20948
+ }[];
20949
+ };
20372
20950
  list_my_planning_items: {
20373
20951
  Args: {
20374
20952
  _from: string;
@@ -20780,6 +21358,41 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
20780
21358
  };
20781
21359
  Returns: string;
20782
21360
  };
21361
+ logistics_floriday_finish_push_v2: {
21362
+ Args: {
21363
+ _error?: string;
21364
+ _error_code?: string;
21365
+ _fulfillment_order_id?: string;
21366
+ _gateway_status?: number;
21367
+ _id: string;
21368
+ _max_age_hours?: number;
21369
+ _max_attempts?: number;
21370
+ _ok: boolean;
21371
+ _permanent?: boolean;
21372
+ _response?: import("../integrations/supabase/types").Json;
21373
+ _revision: number;
21374
+ _sent_hash?: string;
21375
+ };
21376
+ Returns: string;
21377
+ };
21378
+ logistics_floriday_finish_push_v3: {
21379
+ Args: {
21380
+ _error?: string;
21381
+ _error_code?: string;
21382
+ _fulfillment_order_id?: string;
21383
+ _gateway_status?: number;
21384
+ _id: string;
21385
+ _max_age_hours?: number;
21386
+ _max_attempts?: number;
21387
+ _outcome: string;
21388
+ _permanent?: boolean;
21389
+ _response?: import("../integrations/supabase/types").Json;
21390
+ _revision: number;
21391
+ _sent_hash?: string;
21392
+ _wait_max_age_hours?: number;
21393
+ };
21394
+ Returns: string;
21395
+ };
20783
21396
  logistics_floriday_prune_pushes: {
20784
21397
  Args: {
20785
21398
  _days?: number;
@@ -21208,6 +21821,12 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
21208
21821
  verwijderd: number;
21209
21822
  }[];
21210
21823
  };
21824
+ order_departure_proof: {
21825
+ Args: {
21826
+ p_order_id: string;
21827
+ };
21828
+ Returns: import("../integrations/supabase/types").Json;
21829
+ };
21211
21830
  order_number_prefix: {
21212
21831
  Args: {
21213
21832
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -21322,6 +21941,13 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
21322
21941
  isSetofReturn: false;
21323
21942
  };
21324
21943
  };
21944
+ pick_cleanup_maintenance: {
21945
+ Args: {
21946
+ _heartbeat_hours?: number;
21947
+ _log_days?: number;
21948
+ };
21949
+ Returns: import("../integrations/supabase/types").Json;
21950
+ };
21325
21951
  pick_complete_print: {
21326
21952
  Args: {
21327
21953
  _printer_id: string;
@@ -21373,6 +21999,14 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
21373
21999
  Args: never;
21374
22000
  Returns: string;
21375
22001
  };
22002
+ pick_day_counts: {
22003
+ Args: {
22004
+ _pick_day?: string;
22005
+ _screen_id?: string;
22006
+ _station_id?: string;
22007
+ };
22008
+ Returns: import("../integrations/supabase/types").Json;
22009
+ };
21376
22010
  pick_document_layout_data: {
21377
22011
  Args: {
21378
22012
  _layout_id: string;
@@ -21400,6 +22034,14 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
21400
22034
  };
21401
22035
  Returns: import("../integrations/supabase/types").Json;
21402
22036
  };
22037
+ pick_print_plekken: {
22038
+ Args: never;
22039
+ Returns: {
22040
+ id: string;
22041
+ naam: string;
22042
+ omschrijving: string;
22043
+ }[];
22044
+ };
21403
22045
  pick_release_expired_locks: {
21404
22046
  Args: never;
21405
22047
  Returns: number;
@@ -21410,6 +22052,14 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
21410
22052
  };
21411
22053
  Returns: undefined;
21412
22054
  };
22055
+ pick_reprint_document: {
22056
+ Args: {
22057
+ _queue_item_id: string;
22058
+ _session_id: string;
22059
+ _throttle_seconds?: number;
22060
+ };
22061
+ Returns: string;
22062
+ };
21413
22063
  pick_reset_print: {
21414
22064
  Args: {
21415
22065
  _queue_item_id: string;
@@ -21456,6 +22106,13 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
21456
22106
  isSetofReturn: false;
21457
22107
  };
21458
22108
  };
22109
+ pick_set_station_print_plek: {
22110
+ Args: {
22111
+ _print_plek_id: string;
22112
+ _station_id: string;
22113
+ };
22114
+ Returns: string;
22115
+ };
21459
22116
  pick_station_dashboard: {
21460
22117
  Args: never;
21461
22118
  Returns: {
@@ -21468,6 +22125,25 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
21468
22125
  waiting: number;
21469
22126
  }[];
21470
22127
  };
22128
+ pick_station_print_plek: {
22129
+ Args: {
22130
+ _station_id: string;
22131
+ };
22132
+ Returns: {
22133
+ naam: string;
22134
+ omschrijving: string;
22135
+ print_plek_id: string;
22136
+ }[];
22137
+ };
22138
+ pick_station_print_plekken: {
22139
+ Args: never;
22140
+ Returns: {
22141
+ naam: string;
22142
+ omschrijving: string;
22143
+ print_plek_id: string;
22144
+ station_id: string;
22145
+ }[];
22146
+ };
21471
22147
  pick_station_slugify: {
21472
22148
  Args: {
21473
22149
  _id: string;
@@ -21475,6 +22151,12 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
21475
22151
  };
21476
22152
  Returns: string;
21477
22153
  };
22154
+ pick_sync_queue_throttled: {
22155
+ Args: {
22156
+ _min_seconds?: number;
22157
+ };
22158
+ Returns: import("../integrations/supabase/types").Json;
22159
+ };
21478
22160
  pickstation_get_orders_raw: {
21479
22161
  Args: never;
21480
22162
  Returns: import("../integrations/supabase/types").Json;
@@ -21620,6 +22302,12 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
21620
22302
  };
21621
22303
  Returns: boolean;
21622
22304
  };
22305
+ release_stale_order_invoice_links: {
22306
+ Args: {
22307
+ _minutes?: number;
22308
+ };
22309
+ Returns: number;
22310
+ };
21623
22311
  reorder_customer_price_groups: {
21624
22312
  Args: {
21625
22313
  _ids: string[];
@@ -22138,6 +22826,20 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
22138
22826
  };
22139
22827
  Returns: undefined;
22140
22828
  };
22829
+ twinfield_deactivate_connection: {
22830
+ Args: {
22831
+ p_connection_id: string;
22832
+ p_user_id: string;
22833
+ };
22834
+ Returns: import("../integrations/supabase/types").Json;
22835
+ };
22836
+ twinfield_handle_administration_change: {
22837
+ Args: {
22838
+ _administration_code: string;
22839
+ _user_id: string;
22840
+ };
22841
+ Returns: undefined;
22842
+ };
22141
22843
  twinfield_prune_push_queue: {
22142
22844
  Args: never;
22143
22845
  Returns: number;
@@ -22157,10 +22859,11 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
22157
22859
  p_company_name?: string;
22158
22860
  p_environment: string;
22159
22861
  p_office_code?: string;
22862
+ p_reset_sync?: boolean;
22160
22863
  p_status?: string;
22161
22864
  p_user_id: string;
22162
22865
  };
22163
- Returns: string;
22866
+ Returns: import("../integrations/supabase/types").Json;
22164
22867
  };
22165
22868
  upsert_auto_fulfillment_log: {
22166
22869
  Args: {
@@ -22903,6 +23606,99 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
22903
23606
  };
22904
23607
  Relationships: [];
22905
23608
  };
23609
+ artikelen_cache: {
23610
+ Row: {
23611
+ artikelcode: string;
23612
+ bron: string;
23613
+ bruto_prijs_cent: number | null;
23614
+ created_at: string;
23615
+ eenheid: string;
23616
+ fabrikant: string | null;
23617
+ fetched_at: string;
23618
+ gtin: string | null;
23619
+ id: string;
23620
+ naam: string;
23621
+ netto_prijs_cent: number | null;
23622
+ omschrijving: string | null;
23623
+ raw: import("../integrations/supabase/types").Json;
23624
+ updated_at: string;
23625
+ valuta: string;
23626
+ };
23627
+ Insert: {
23628
+ artikelcode: string;
23629
+ bron?: string;
23630
+ bruto_prijs_cent?: number | null;
23631
+ created_at?: string;
23632
+ eenheid?: string;
23633
+ fabrikant?: string | null;
23634
+ fetched_at?: string;
23635
+ gtin?: string | null;
23636
+ id?: string;
23637
+ naam: string;
23638
+ netto_prijs_cent?: number | null;
23639
+ omschrijving?: string | null;
23640
+ raw?: import("../integrations/supabase/types").Json;
23641
+ updated_at?: string;
23642
+ valuta?: string;
23643
+ };
23644
+ Update: {
23645
+ artikelcode?: string;
23646
+ bron?: string;
23647
+ bruto_prijs_cent?: number | null;
23648
+ created_at?: string;
23649
+ eenheid?: string;
23650
+ fabrikant?: string | null;
23651
+ fetched_at?: string;
23652
+ gtin?: string | null;
23653
+ id?: string;
23654
+ naam?: string;
23655
+ netto_prijs_cent?: number | null;
23656
+ omschrijving?: string | null;
23657
+ raw?: import("../integrations/supabase/types").Json;
23658
+ updated_at?: string;
23659
+ valuta?: string;
23660
+ };
23661
+ Relationships: [];
23662
+ };
23663
+ artikelen_veldconfig: {
23664
+ Row: {
23665
+ bron_pad: string;
23666
+ created_at: string;
23667
+ id: string;
23668
+ label: string;
23669
+ sort_order: number;
23670
+ type: string;
23671
+ updated_at: string;
23672
+ veld_key: string;
23673
+ zichtbaar_in_detail: boolean;
23674
+ zichtbaar_in_lijst: boolean;
23675
+ };
23676
+ Insert: {
23677
+ bron_pad: string;
23678
+ created_at?: string;
23679
+ id?: string;
23680
+ label: string;
23681
+ sort_order?: number;
23682
+ type?: string;
23683
+ updated_at?: string;
23684
+ veld_key: string;
23685
+ zichtbaar_in_detail?: boolean;
23686
+ zichtbaar_in_lijst?: boolean;
23687
+ };
23688
+ Update: {
23689
+ bron_pad?: string;
23690
+ created_at?: string;
23691
+ id?: string;
23692
+ label?: string;
23693
+ sort_order?: number;
23694
+ type?: string;
23695
+ updated_at?: string;
23696
+ veld_key?: string;
23697
+ zichtbaar_in_detail?: boolean;
23698
+ zichtbaar_in_lijst?: boolean;
23699
+ };
23700
+ Relationships: [];
23701
+ };
22906
23702
  booking_items: {
22907
23703
  Row: {
22908
23704
  booking_id: string;
@@ -24988,6 +25784,42 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
24988
25784
  };
24989
25785
  Relationships: [];
24990
25786
  };
25787
+ document_bronregels: {
25788
+ Row: {
25789
+ bron: string;
25790
+ created_at: string;
25791
+ documenttype: string;
25792
+ herkomst: string;
25793
+ id: string;
25794
+ layout_id: string | null;
25795
+ updated_at: string;
25796
+ };
25797
+ Insert: {
25798
+ bron?: string;
25799
+ created_at?: string;
25800
+ documenttype: string;
25801
+ herkomst: string;
25802
+ id?: string;
25803
+ layout_id?: string | null;
25804
+ updated_at?: string;
25805
+ };
25806
+ Update: {
25807
+ bron?: string;
25808
+ created_at?: string;
25809
+ documenttype?: string;
25810
+ herkomst?: string;
25811
+ id?: string;
25812
+ layout_id?: string | null;
25813
+ updated_at?: string;
25814
+ };
25815
+ Relationships: [{
25816
+ foreignKeyName: "document_bronregels_layout_id_fkey";
25817
+ columns: ["layout_id"];
25818
+ isOneToOne: false;
25819
+ referencedRelation: "document_layouts";
25820
+ referencedColumns: ["id"];
25821
+ }];
25822
+ };
24991
25823
  document_formaat_printers: {
24992
25824
  Row: {
24993
25825
  created_at: string;
@@ -25265,6 +26097,7 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
25265
26097
  Row: {
25266
26098
  actief: boolean;
25267
26099
  breedte_mm: number;
26100
+ bron: string;
25268
26101
  config: import("../integrations/supabase/types").Json;
25269
26102
  created_at: string;
25270
26103
  created_by: string | null;
@@ -25282,12 +26115,14 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
25282
26115
  orientatie: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
25283
26116
  page_settings: import("../integrations/supabase/types").Json;
25284
26117
  papierformaat: string;
26118
+ systeem: boolean;
25285
26119
  thumbnail_url: string | null;
25286
26120
  updated_at: string;
25287
26121
  };
25288
26122
  Insert: {
25289
26123
  actief?: boolean;
25290
26124
  breedte_mm?: number;
26125
+ bron?: string;
25291
26126
  config?: import("../integrations/supabase/types").Json;
25292
26127
  created_at?: string;
25293
26128
  created_by?: string | null;
@@ -25305,12 +26140,14 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
25305
26140
  orientatie?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
25306
26141
  page_settings?: import("../integrations/supabase/types").Json;
25307
26142
  papierformaat?: string;
26143
+ systeem?: boolean;
25308
26144
  thumbnail_url?: string | null;
25309
26145
  updated_at?: string;
25310
26146
  };
25311
26147
  Update: {
25312
26148
  actief?: boolean;
25313
26149
  breedte_mm?: number;
26150
+ bron?: string;
25314
26151
  config?: import("../integrations/supabase/types").Json;
25315
26152
  created_at?: string;
25316
26153
  created_by?: string | null;
@@ -25328,11 +26165,90 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
25328
26165
  orientatie?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
25329
26166
  page_settings?: import("../integrations/supabase/types").Json;
25330
26167
  papierformaat?: string;
26168
+ systeem?: boolean;
25331
26169
  thumbnail_url?: string | null;
25332
26170
  updated_at?: string;
25333
26171
  };
25334
26172
  Relationships: [];
25335
26173
  };
26174
+ document_printplek_printers: {
26175
+ Row: {
26176
+ created_at: string;
26177
+ documenttype: string;
26178
+ id: string;
26179
+ papierformaat: string | null;
26180
+ print_plek_id: string;
26181
+ printer_id: string | null;
26182
+ updated_at: string;
26183
+ };
26184
+ Insert: {
26185
+ created_at?: string;
26186
+ documenttype: string;
26187
+ id?: string;
26188
+ papierformaat?: string | null;
26189
+ print_plek_id: string;
26190
+ printer_id?: string | null;
26191
+ updated_at?: string;
26192
+ };
26193
+ Update: {
26194
+ created_at?: string;
26195
+ documenttype?: string;
26196
+ id?: string;
26197
+ papierformaat?: string | null;
26198
+ print_plek_id?: string;
26199
+ printer_id?: string | null;
26200
+ updated_at?: string;
26201
+ };
26202
+ Relationships: [{
26203
+ foreignKeyName: "document_printplek_printers_print_plek_id_fkey";
26204
+ columns: ["print_plek_id"];
26205
+ isOneToOne: false;
26206
+ referencedRelation: "print_plekken";
26207
+ referencedColumns: ["id"];
26208
+ }, {
26209
+ foreignKeyName: "document_printplek_printers_printer_id_fkey";
26210
+ columns: ["printer_id"];
26211
+ isOneToOne: false;
26212
+ referencedRelation: "printers";
26213
+ referencedColumns: ["id"];
26214
+ }];
26215
+ };
26216
+ document_werkplek_printers: {
26217
+ Row: {
26218
+ created_at: string;
26219
+ documenttype: string;
26220
+ id: string;
26221
+ papierformaat: string | null;
26222
+ printer_id: string | null;
26223
+ updated_at: string;
26224
+ werkplek: string;
26225
+ };
26226
+ Insert: {
26227
+ created_at?: string;
26228
+ documenttype: string;
26229
+ id?: string;
26230
+ papierformaat?: string | null;
26231
+ printer_id?: string | null;
26232
+ updated_at?: string;
26233
+ werkplek: string;
26234
+ };
26235
+ Update: {
26236
+ created_at?: string;
26237
+ documenttype?: string;
26238
+ id?: string;
26239
+ papierformaat?: string | null;
26240
+ printer_id?: string | null;
26241
+ updated_at?: string;
26242
+ werkplek?: string;
26243
+ };
26244
+ Relationships: [{
26245
+ foreignKeyName: "document_werkplek_printers_printer_id_fkey";
26246
+ columns: ["printer_id"];
26247
+ isOneToOne: false;
26248
+ referencedRelation: "printers";
26249
+ referencedColumns: ["id"];
26250
+ }];
26251
+ };
25336
26252
  email_auth_connections: {
25337
26253
  Row: {
25338
26254
  access_token_encrypted: string | null;
@@ -27274,42 +28190,6 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
27274
28190
  };
27275
28191
  Relationships: [];
27276
28192
  };
27277
- facturen: {
27278
- Row: {
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
- Insert: {
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
- Update: {
27301
- bedrag_incl_btw?: number;
27302
- created_at?: string;
27303
- datum?: string;
27304
- factuurnummer?: string;
27305
- id?: string;
27306
- klantnaam?: string;
27307
- status?: string;
27308
- updated_at?: string;
27309
- user_id?: string;
27310
- };
27311
- Relationships: [];
27312
- };
27313
28193
  floricode_connection_settings: {
27314
28194
  Row: {
27315
28195
  catalog_key: string | null;
@@ -29614,8 +30494,63 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
29614
30494
  };
29615
30495
  Relationships: [];
29616
30496
  };
30497
+ invoice_items: {
30498
+ Row: {
30499
+ created_at: string;
30500
+ description: string;
30501
+ id: string;
30502
+ invoice_id: string;
30503
+ kind: string;
30504
+ quantity: number;
30505
+ sort_order: number;
30506
+ source_line_ref: string | null;
30507
+ total_cents: number;
30508
+ unit: string;
30509
+ unit_price_cents: number;
30510
+ };
30511
+ Insert: {
30512
+ created_at?: string;
30513
+ description?: string;
30514
+ id?: string;
30515
+ invoice_id: string;
30516
+ kind?: string;
30517
+ quantity?: number;
30518
+ sort_order?: number;
30519
+ source_line_ref?: string | null;
30520
+ total_cents?: number;
30521
+ unit?: string;
30522
+ unit_price_cents?: number;
30523
+ };
30524
+ Update: {
30525
+ created_at?: string;
30526
+ description?: string;
30527
+ id?: string;
30528
+ invoice_id?: string;
30529
+ kind?: string;
30530
+ quantity?: number;
30531
+ sort_order?: number;
30532
+ source_line_ref?: string | null;
30533
+ total_cents?: number;
30534
+ unit?: string;
30535
+ unit_price_cents?: number;
30536
+ };
30537
+ Relationships: [{
30538
+ foreignKeyName: "invoice_items_invoice_id_fkey";
30539
+ columns: ["invoice_id"];
30540
+ isOneToOne: false;
30541
+ referencedRelation: "invoices";
30542
+ referencedColumns: ["id"];
30543
+ }, {
30544
+ foreignKeyName: "invoice_items_invoice_id_fkey";
30545
+ columns: ["invoice_id"];
30546
+ isOneToOne: false;
30547
+ referencedRelation: "uren_facturen";
30548
+ referencedColumns: ["id"];
30549
+ }];
30550
+ };
29617
30551
  invoice_post_idempotency: {
29618
30552
  Row: {
30553
+ administration_code: string;
29619
30554
  client_request_id: string;
29620
30555
  completed_at: string | null;
29621
30556
  created_at: string;
@@ -29625,6 +30560,7 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
29625
30560
  user_id: string;
29626
30561
  };
29627
30562
  Insert: {
30563
+ administration_code?: string;
29628
30564
  client_request_id: string;
29629
30565
  completed_at?: string | null;
29630
30566
  created_at?: string;
@@ -29634,6 +30570,7 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
29634
30570
  user_id: string;
29635
30571
  };
29636
30572
  Update: {
30573
+ administration_code?: string;
29637
30574
  client_request_id?: string;
29638
30575
  completed_at?: string | null;
29639
30576
  created_at?: string;
@@ -29839,6 +30776,75 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
29839
30776
  };
29840
30777
  Relationships: [];
29841
30778
  };
30779
+ invoices: {
30780
+ Row: {
30781
+ created_at: string;
30782
+ created_by: string | null;
30783
+ customer_id: string | null;
30784
+ customer_name: string | null;
30785
+ due_date: string | null;
30786
+ id: string;
30787
+ invoice_date: string;
30788
+ invoice_number: string | null;
30789
+ note: string | null;
30790
+ source_number: string | null;
30791
+ source_ref: string | null;
30792
+ source_type: string;
30793
+ status: string;
30794
+ subtotal_cents: number;
30795
+ total_cents: number;
30796
+ updated_at: string;
30797
+ vat_cents: number;
30798
+ vat_rate: number;
30799
+ };
30800
+ Insert: {
30801
+ created_at?: string;
30802
+ created_by?: string | null;
30803
+ customer_id?: string | null;
30804
+ customer_name?: string | null;
30805
+ due_date?: string | null;
30806
+ id?: string;
30807
+ invoice_date?: string;
30808
+ invoice_number?: string | null;
30809
+ note?: string | null;
30810
+ source_number?: string | null;
30811
+ source_ref?: string | null;
30812
+ source_type?: string;
30813
+ status?: string;
30814
+ subtotal_cents?: number;
30815
+ total_cents?: number;
30816
+ updated_at?: string;
30817
+ vat_cents?: number;
30818
+ vat_rate?: number;
30819
+ };
30820
+ Update: {
30821
+ created_at?: string;
30822
+ created_by?: string | null;
30823
+ customer_id?: string | null;
30824
+ customer_name?: string | null;
30825
+ due_date?: string | null;
30826
+ id?: string;
30827
+ invoice_date?: string;
30828
+ invoice_number?: string | null;
30829
+ note?: string | null;
30830
+ source_number?: string | null;
30831
+ source_ref?: string | null;
30832
+ source_type?: string;
30833
+ status?: string;
30834
+ subtotal_cents?: number;
30835
+ total_cents?: number;
30836
+ updated_at?: string;
30837
+ vat_cents?: number;
30838
+ vat_rate?: number;
30839
+ };
30840
+ Relationships: [{
30841
+ foreignKeyName: "invoices_customer_id_fkey";
30842
+ columns: ["customer_id"];
30843
+ isOneToOne: false;
30844
+ referencedRelation: "itk_customers";
30845
+ referencedColumns: ["id"];
30846
+ }];
30847
+ };
29842
30848
  itk_contact_persons: {
29843
30849
  Row: {
29844
30850
  created_at: string;
@@ -31186,6 +32192,10 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
31186
32192
  id: string;
31187
32193
  last_error: string | null;
31188
32194
  last_error_at: string | null;
32195
+ last_error_code: string | null;
32196
+ last_gateway_status: number | null;
32197
+ last_queued_at: string | null;
32198
+ last_response: import("../integrations/supabase/types").Json | null;
31189
32199
  last_sent_hash: string | null;
31190
32200
  locked_by: string | null;
31191
32201
  locked_until: string | null;
@@ -31206,6 +32216,10 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
31206
32216
  id?: string;
31207
32217
  last_error?: string | null;
31208
32218
  last_error_at?: string | null;
32219
+ last_error_code?: string | null;
32220
+ last_gateway_status?: number | null;
32221
+ last_queued_at?: string | null;
32222
+ last_response?: import("../integrations/supabase/types").Json | null;
31209
32223
  last_sent_hash?: string | null;
31210
32224
  locked_by?: string | null;
31211
32225
  locked_until?: string | null;
@@ -31226,6 +32240,10 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
31226
32240
  id?: string;
31227
32241
  last_error?: string | null;
31228
32242
  last_error_at?: string | null;
32243
+ last_error_code?: string | null;
32244
+ last_gateway_status?: number | null;
32245
+ last_queued_at?: string | null;
32246
+ last_response?: import("../integrations/supabase/types").Json | null;
31229
32247
  last_sent_hash?: string | null;
31230
32248
  locked_by?: string | null;
31231
32249
  locked_until?: string | null;
@@ -32779,6 +33797,7 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
32779
33797
  enforce: boolean;
32780
33798
  is_active: boolean;
32781
33799
  last_seen_at: string;
33800
+ missing_count: number;
32782
33801
  module_id: string;
32783
33802
  name: string;
32784
33803
  shell_id: string | null;
@@ -32789,6 +33808,7 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
32789
33808
  enforce?: boolean;
32790
33809
  is_active?: boolean;
32791
33810
  last_seen_at?: string;
33811
+ missing_count?: number;
32792
33812
  module_id: string;
32793
33813
  name: string;
32794
33814
  shell_id?: string | null;
@@ -32799,6 +33819,7 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
32799
33819
  enforce?: boolean;
32800
33820
  is_active?: boolean;
32801
33821
  last_seen_at?: string;
33822
+ missing_count?: number;
32802
33823
  module_id?: string;
32803
33824
  name?: string;
32804
33825
  shell_id?: string | null;
@@ -33798,6 +34819,7 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
33798
34819
  };
33799
34820
  order_invoice_links: {
33800
34821
  Row: {
34822
+ administration_code: string | null;
33801
34823
  attempts: number;
33802
34824
  created_at: string;
33803
34825
  error_message: string | null;
@@ -33810,6 +34832,7 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
33810
34832
  updated_at: string;
33811
34833
  };
33812
34834
  Insert: {
34835
+ administration_code?: string | null;
33813
34836
  attempts?: number;
33814
34837
  created_at?: string;
33815
34838
  error_message?: string | null;
@@ -33822,6 +34845,7 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
33822
34845
  updated_at?: string;
33823
34846
  };
33824
34847
  Update: {
34848
+ administration_code?: string | null;
33825
34849
  attempts?: number;
33826
34850
  created_at?: string;
33827
34851
  error_message?: string | null;
@@ -34987,6 +36011,27 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
34987
36011
  referencedColumns: ["id"];
34988
36012
  }];
34989
36013
  };
36014
+ pick_sync_state: {
36015
+ Row: {
36016
+ id: boolean;
36017
+ last_cleanup_at: string | null;
36018
+ last_sync_at: string | null;
36019
+ updated_at: string;
36020
+ };
36021
+ Insert: {
36022
+ id?: boolean;
36023
+ last_cleanup_at?: string | null;
36024
+ last_sync_at?: string | null;
36025
+ updated_at?: string;
36026
+ };
36027
+ Update: {
36028
+ id?: boolean;
36029
+ last_cleanup_at?: string | null;
36030
+ last_sync_at?: string | null;
36031
+ updated_at?: string;
36032
+ };
36033
+ Relationships: [];
36034
+ };
34990
36035
  pick_task_document_types: {
34991
36036
  Row: {
34992
36037
  created_at: string;
@@ -35269,6 +36314,7 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
35269
36314
  gebruiker_id: string | null;
35270
36315
  gebruiker_naam: string;
35271
36316
  gestart_op: string | null;
36317
+ herkomst: string | null;
35272
36318
  id: string;
35273
36319
  idempotentie_sleutel: string | null;
35274
36320
  is_herprint: boolean;
@@ -35298,6 +36344,7 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
35298
36344
  gebruiker_id?: string | null;
35299
36345
  gebruiker_naam?: string;
35300
36346
  gestart_op?: string | null;
36347
+ herkomst?: string | null;
35301
36348
  id?: string;
35302
36349
  idempotentie_sleutel?: string | null;
35303
36350
  is_herprint?: boolean;
@@ -35327,6 +36374,7 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
35327
36374
  gebruiker_id?: string | null;
35328
36375
  gebruiker_naam?: string;
35329
36376
  gestart_op?: string | null;
36377
+ herkomst?: string | null;
35330
36378
  id?: string;
35331
36379
  idempotentie_sleutel?: string | null;
35332
36380
  is_herprint?: boolean;
@@ -35365,6 +36413,99 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
35365
36413
  referencedColumns: ["id"];
35366
36414
  }];
35367
36415
  };
36416
+ print_plek_computers: {
36417
+ Row: {
36418
+ computer_naam: string;
36419
+ created_at: string;
36420
+ id: string;
36421
+ print_plek_id: string;
36422
+ updated_at: string;
36423
+ };
36424
+ Insert: {
36425
+ computer_naam: string;
36426
+ created_at?: string;
36427
+ id?: string;
36428
+ print_plek_id: string;
36429
+ updated_at?: string;
36430
+ };
36431
+ Update: {
36432
+ computer_naam?: string;
36433
+ created_at?: string;
36434
+ id?: string;
36435
+ print_plek_id?: string;
36436
+ updated_at?: string;
36437
+ };
36438
+ Relationships: [{
36439
+ foreignKeyName: "print_plek_computers_print_plek_id_fkey";
36440
+ columns: ["print_plek_id"];
36441
+ isOneToOne: false;
36442
+ referencedRelation: "print_plekken";
36443
+ referencedColumns: ["id"];
36444
+ }];
36445
+ };
36446
+ print_plek_koppelingen: {
36447
+ Row: {
36448
+ bron: string;
36449
+ bron_id: string;
36450
+ created_at: string;
36451
+ id: string;
36452
+ label: string | null;
36453
+ print_plek_id: string;
36454
+ updated_at: string;
36455
+ };
36456
+ Insert: {
36457
+ bron: string;
36458
+ bron_id: string;
36459
+ created_at?: string;
36460
+ id?: string;
36461
+ label?: string | null;
36462
+ print_plek_id: string;
36463
+ updated_at?: string;
36464
+ };
36465
+ Update: {
36466
+ bron?: string;
36467
+ bron_id?: string;
36468
+ created_at?: string;
36469
+ id?: string;
36470
+ label?: string | null;
36471
+ print_plek_id?: string;
36472
+ updated_at?: string;
36473
+ };
36474
+ Relationships: [{
36475
+ foreignKeyName: "print_plek_koppelingen_print_plek_id_fkey";
36476
+ columns: ["print_plek_id"];
36477
+ isOneToOne: false;
36478
+ referencedRelation: "print_plekken";
36479
+ referencedColumns: ["id"];
36480
+ }];
36481
+ };
36482
+ print_plekken: {
36483
+ Row: {
36484
+ actief: boolean;
36485
+ created_at: string;
36486
+ id: string;
36487
+ naam: string;
36488
+ omschrijving: string | null;
36489
+ updated_at: string;
36490
+ };
36491
+ Insert: {
36492
+ actief?: boolean;
36493
+ created_at?: string;
36494
+ id?: string;
36495
+ naam: string;
36496
+ omschrijving?: string | null;
36497
+ updated_at?: string;
36498
+ };
36499
+ Update: {
36500
+ actief?: boolean;
36501
+ created_at?: string;
36502
+ id?: string;
36503
+ naam?: string;
36504
+ omschrijving?: string | null;
36505
+ updated_at?: string;
36506
+ };
36507
+ Relationships: [];
36508
+ };
35368
36509
  print_queue_runners: {
35369
36510
  Row: {
35370
36511
  actief: boolean;
@@ -37519,6 +38660,45 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
37519
38660
  };
37520
38661
  Relationships: [];
37521
38662
  };
38663
+ stock_consumption_alerts: {
38664
+ Row: {
38665
+ alert_type: string;
38666
+ created_at: string;
38667
+ id: string;
38668
+ mutation_log_id: string | null;
38669
+ order_id: string | null;
38670
+ order_item_id: string | null;
38671
+ qty: number;
38672
+ reason: string | null;
38673
+ resolved_at: string | null;
38674
+ updated_at: string;
38675
+ };
38676
+ Insert: {
38677
+ alert_type: string;
38678
+ created_at?: string;
38679
+ id?: string;
38680
+ mutation_log_id?: string | null;
38681
+ order_id?: string | null;
38682
+ order_item_id?: string | null;
38683
+ qty?: number;
38684
+ reason?: string | null;
38685
+ resolved_at?: string | null;
38686
+ updated_at?: string;
38687
+ };
38688
+ Update: {
38689
+ alert_type?: string;
38690
+ created_at?: string;
38691
+ id?: string;
38692
+ mutation_log_id?: string | null;
38693
+ order_id?: string | null;
38694
+ order_item_id?: string | null;
38695
+ qty?: number;
38696
+ reason?: string | null;
38697
+ resolved_at?: string | null;
38698
+ updated_at?: string;
38699
+ };
38700
+ Relationships: [];
38701
+ };
37522
38702
  stock_import_runs: {
37523
38703
  Row: {
37524
38704
  connection_id: string | null;
@@ -38331,12 +39511,16 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
38331
39511
  company_name: string | null;
38332
39512
  connected_at: string | null;
38333
39513
  created_at: string;
39514
+ disconnected_at: string | null;
38334
39515
  environment: string;
38335
39516
  id: string;
39517
+ initial_sync_completed_at: string | null;
39518
+ initial_sync_started_at: string | null;
38336
39519
  is_active: boolean;
38337
39520
  label: string | null;
38338
39521
  office_code: string | null;
38339
39522
  redirect_uri: string | null;
39523
+ superseded_at: string | null;
38340
39524
  updated_at: string;
38341
39525
  user_id: string;
38342
39526
  };
@@ -38347,12 +39531,16 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
38347
39531
  company_name?: string | null;
38348
39532
  connected_at?: string | null;
38349
39533
  created_at?: string;
39534
+ disconnected_at?: string | null;
38350
39535
  environment: string;
38351
39536
  id?: string;
39537
+ initial_sync_completed_at?: string | null;
39538
+ initial_sync_started_at?: string | null;
38352
39539
  is_active?: boolean;
38353
39540
  label?: string | null;
38354
39541
  office_code?: string | null;
38355
39542
  redirect_uri?: string | null;
39543
+ superseded_at?: string | null;
38356
39544
  updated_at?: string;
38357
39545
  user_id: string;
38358
39546
  };
@@ -38363,12 +39551,16 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
38363
39551
  company_name?: string | null;
38364
39552
  connected_at?: string | null;
38365
39553
  created_at?: string;
39554
+ disconnected_at?: string | null;
38366
39555
  environment?: string;
38367
39556
  id?: string;
39557
+ initial_sync_completed_at?: string | null;
39558
+ initial_sync_started_at?: string | null;
38368
39559
  is_active?: boolean;
38369
39560
  label?: string | null;
38370
39561
  office_code?: string | null;
38371
39562
  redirect_uri?: string | null;
39563
+ superseded_at?: string | null;
38372
39564
  updated_at?: string;
38373
39565
  user_id?: string;
38374
39566
  };
@@ -38428,6 +39620,7 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
38428
39620
  twinfield_customers: {
38429
39621
  Row: {
38430
39622
  address: string | null;
39623
+ administration_code: string;
38431
39624
  city: string | null;
38432
39625
  country: string | null;
38433
39626
  created_at: string;
@@ -38447,6 +39640,7 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
38447
39640
  };
38448
39641
  Insert: {
38449
39642
  address?: string | null;
39643
+ administration_code?: string;
38450
39644
  city?: string | null;
38451
39645
  country?: string | null;
38452
39646
  created_at?: string;
@@ -38466,6 +39660,7 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
38466
39660
  };
38467
39661
  Update: {
38468
39662
  address?: string | null;
39663
+ administration_code?: string;
38469
39664
  city?: string | null;
38470
39665
  country?: string | null;
38471
39666
  created_at?: string;
@@ -38679,7 +39874,9 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
38679
39874
  };
38680
39875
  twinfield_invoice_settings: {
38681
39876
  Row: {
39877
+ administration_code: string | null;
38682
39878
  auto_invoice_enabled: boolean;
39879
+ auto_invoice_start_date: string | null;
38683
39880
  auto_invoice_trigger_statuses: string[];
38684
39881
  created_at: string;
38685
39882
  debtor_gl_account: string;
@@ -38693,15 +39890,19 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
38693
39890
  invoice_enabled_fo: boolean;
38694
39891
  invoice_enabled_ho: boolean;
38695
39892
  invoice_enabled_mo: boolean;
39893
+ needs_review: boolean;
38696
39894
  payment_gl_account: string;
38697
39895
  payment_journal_code: string;
39896
+ settings_confirmed_at: string | null;
38698
39897
  updated_at: string;
38699
39898
  user_id: string;
38700
39899
  vat_code_eu_reverse: string | null;
38701
39900
  vat_code_export: string | null;
38702
39901
  };
38703
39902
  Insert: {
39903
+ administration_code?: string | null;
38704
39904
  auto_invoice_enabled?: boolean;
39905
+ auto_invoice_start_date?: string | null;
38705
39906
  auto_invoice_trigger_statuses?: string[];
38706
39907
  created_at?: string;
38707
39908
  debtor_gl_account?: string;
@@ -38715,15 +39916,19 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
38715
39916
  invoice_enabled_fo?: boolean;
38716
39917
  invoice_enabled_ho?: boolean;
38717
39918
  invoice_enabled_mo?: boolean;
39919
+ needs_review?: boolean;
38718
39920
  payment_gl_account?: string;
38719
39921
  payment_journal_code?: string;
39922
+ settings_confirmed_at?: string | null;
38720
39923
  updated_at?: string;
38721
39924
  user_id: string;
38722
39925
  vat_code_eu_reverse?: string | null;
38723
39926
  vat_code_export?: string | null;
38724
39927
  };
38725
39928
  Update: {
39929
+ administration_code?: string | null;
38726
39930
  auto_invoice_enabled?: boolean;
39931
+ auto_invoice_start_date?: string | null;
38727
39932
  auto_invoice_trigger_statuses?: string[];
38728
39933
  created_at?: string;
38729
39934
  debtor_gl_account?: string;
@@ -38737,8 +39942,10 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
38737
39942
  invoice_enabled_fo?: boolean;
38738
39943
  invoice_enabled_ho?: boolean;
38739
39944
  invoice_enabled_mo?: boolean;
39945
+ needs_review?: boolean;
38740
39946
  payment_gl_account?: string;
38741
39947
  payment_journal_code?: string;
39948
+ settings_confirmed_at?: string | null;
38742
39949
  updated_at?: string;
38743
39950
  user_id?: string;
38744
39951
  vat_code_eu_reverse?: string | null;
@@ -39343,114 +40550,6 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
39343
40550
  };
39344
40551
  Relationships: [];
39345
40552
  };
39346
- uren_facturen: {
39347
- Row: {
39348
- created_at: string;
39349
- created_by: string | null;
39350
- customer_id: string | null;
39351
- customer_name: string | null;
39352
- id: string;
39353
- invoice_number: string | null;
39354
- note: string | null;
39355
- status: string;
39356
- total_excl_cents: number;
39357
- total_incl_cents: number;
39358
- updated_at: string;
39359
- vat_cents: number;
39360
- vat_percentage: number;
39361
- werkbon_id: string | null;
39362
- };
39363
- Insert: {
39364
- created_at?: string;
39365
- created_by?: string | null;
39366
- customer_id?: string | null;
39367
- customer_name?: string | null;
39368
- id?: string;
39369
- invoice_number?: string | null;
39370
- note?: string | null;
39371
- status?: string;
39372
- total_excl_cents?: number;
39373
- total_incl_cents?: number;
39374
- updated_at?: string;
39375
- vat_cents?: number;
39376
- vat_percentage?: number;
39377
- werkbon_id?: string | null;
39378
- };
39379
- Update: {
39380
- created_at?: string;
39381
- created_by?: string | null;
39382
- customer_id?: string | null;
39383
- customer_name?: string | null;
39384
- id?: string;
39385
- invoice_number?: string | null;
39386
- note?: string | null;
39387
- status?: string;
39388
- total_excl_cents?: number;
39389
- total_incl_cents?: number;
39390
- updated_at?: string;
39391
- vat_cents?: number;
39392
- vat_percentage?: number;
39393
- werkbon_id?: string | null;
39394
- };
39395
- Relationships: [{
39396
- foreignKeyName: "uren_facturen_customer_id_fkey";
39397
- columns: ["customer_id"];
39398
- isOneToOne: false;
39399
- referencedRelation: "itk_customers";
39400
- referencedColumns: ["id"];
39401
- }, {
39402
- foreignKeyName: "uren_facturen_werkbon_id_fkey";
39403
- columns: ["werkbon_id"];
39404
- isOneToOne: true;
39405
- referencedRelation: "werkbonnen";
39406
- referencedColumns: ["id"];
39407
- }];
39408
- };
39409
- uren_factuur_regels: {
39410
- Row: {
39411
- created_at: string;
39412
- description: string;
39413
- factuur_id: string;
39414
- id: string;
39415
- kind: string | null;
39416
- quantity: number;
39417
- sort_order: number;
39418
- total_cents: number;
39419
- unit: string;
39420
- unit_price_cents: number;
39421
- };
39422
- Insert: {
39423
- created_at?: string;
39424
- description: string;
39425
- factuur_id: string;
39426
- id?: string;
39427
- kind?: string | null;
39428
- quantity?: number;
39429
- sort_order?: number;
39430
- total_cents?: number;
39431
- unit?: string;
39432
- unit_price_cents?: number;
39433
- };
39434
- Update: {
39435
- created_at?: string;
39436
- description?: string;
39437
- factuur_id?: string;
39438
- id?: string;
39439
- kind?: string | null;
39440
- quantity?: number;
39441
- sort_order?: number;
39442
- total_cents?: number;
39443
- unit?: string;
39444
- unit_price_cents?: number;
39445
- };
39446
- Relationships: [{
39447
- foreignKeyName: "uren_factuur_regels_factuur_id_fkey";
39448
- columns: ["factuur_id"];
39449
- isOneToOne: false;
39450
- referencedRelation: "uren_facturen";
39451
- referencedColumns: ["id"];
39452
- }];
39453
- };
39454
40553
  uren_offerte_regels: {
39455
40554
  Row: {
39456
40555
  created_at: string;
@@ -40704,6 +41803,9 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
40704
41803
  scheduled_end_time: string | null;
40705
41804
  scheduled_start_time: string | null;
40706
41805
  sequence_number: number;
41806
+ signature_accepted_at: string | null;
41807
+ signature_by_user_id: string | null;
41808
+ signature_name: string | null;
40707
41809
  source_email_meta: import("../integrations/supabase/types").Json | null;
40708
41810
  source_mailbox_message_id: string | null;
40709
41811
  source_pdf_path: string | null;
@@ -40739,6 +41841,9 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
40739
41841
  scheduled_end_time?: string | null;
40740
41842
  scheduled_start_time?: string | null;
40741
41843
  sequence_number: number;
41844
+ signature_accepted_at?: string | null;
41845
+ signature_by_user_id?: string | null;
41846
+ signature_name?: string | null;
40742
41847
  source_email_meta?: import("../integrations/supabase/types").Json | null;
40743
41848
  source_mailbox_message_id?: string | null;
40744
41849
  source_pdf_path?: string | null;
@@ -40774,6 +41879,9 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
40774
41879
  scheduled_end_time?: string | null;
40775
41880
  scheduled_start_time?: string | null;
40776
41881
  sequence_number?: number;
41882
+ signature_accepted_at?: string | null;
41883
+ signature_by_user_id?: string | null;
41884
+ signature_name?: string | null;
40777
41885
  source_email_meta?: import("../integrations/supabase/types").Json | null;
40778
41886
  source_mailbox_message_id?: string | null;
40779
41887
  source_pdf_path?: string | null;
@@ -41290,6 +42398,114 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
41290
42398
  };
41291
42399
  Relationships: [];
41292
42400
  };
42401
+ uren_facturen: {
42402
+ Row: {
42403
+ created_at: string | null;
42404
+ created_by: string | null;
42405
+ customer_id: string | null;
42406
+ customer_name: string | null;
42407
+ id: string | null;
42408
+ invoice_number: string | null;
42409
+ note: string | null;
42410
+ status: string | null;
42411
+ total_excl_cents: number | null;
42412
+ total_incl_cents: number | null;
42413
+ updated_at: string | null;
42414
+ vat_cents: number | null;
42415
+ vat_percentage: number | null;
42416
+ werkbon_id: string | null;
42417
+ };
42418
+ Insert: {
42419
+ created_at?: string | null;
42420
+ created_by?: string | null;
42421
+ customer_id?: string | null;
42422
+ customer_name?: string | null;
42423
+ id?: string | null;
42424
+ invoice_number?: string | null;
42425
+ note?: string | null;
42426
+ status?: string | null;
42427
+ total_excl_cents?: number | null;
42428
+ total_incl_cents?: number | null;
42429
+ updated_at?: string | null;
42430
+ vat_cents?: number | null;
42431
+ vat_percentage?: number | null;
42432
+ werkbon_id?: never;
42433
+ };
42434
+ Update: {
42435
+ created_at?: string | null;
42436
+ created_by?: string | null;
42437
+ customer_id?: string | null;
42438
+ customer_name?: string | null;
42439
+ id?: string | null;
42440
+ invoice_number?: string | null;
42441
+ note?: string | null;
42442
+ status?: string | null;
42443
+ total_excl_cents?: number | null;
42444
+ total_incl_cents?: number | null;
42445
+ updated_at?: string | null;
42446
+ vat_cents?: number | null;
42447
+ vat_percentage?: number | null;
42448
+ werkbon_id?: never;
42449
+ };
42450
+ Relationships: [{
42451
+ foreignKeyName: "invoices_customer_id_fkey";
42452
+ columns: ["customer_id"];
42453
+ isOneToOne: false;
42454
+ referencedRelation: "itk_customers";
42455
+ referencedColumns: ["id"];
42456
+ }];
42457
+ };
42458
+ uren_factuur_regels: {
42459
+ Row: {
42460
+ created_at: string | null;
42461
+ description: string | null;
42462
+ factuur_id: string | null;
42463
+ id: string | null;
42464
+ kind: string | null;
42465
+ quantity: number | null;
42466
+ sort_order: number | null;
42467
+ total_cents: number | null;
42468
+ unit: string | null;
42469
+ unit_price_cents: number | null;
42470
+ };
42471
+ Insert: {
42472
+ created_at?: string | null;
42473
+ description?: string | null;
42474
+ factuur_id?: string | null;
42475
+ id?: string | null;
42476
+ kind?: string | null;
42477
+ quantity?: number | null;
42478
+ sort_order?: number | null;
42479
+ total_cents?: number | null;
42480
+ unit?: string | null;
42481
+ unit_price_cents?: number | null;
42482
+ };
42483
+ Update: {
42484
+ created_at?: string | null;
42485
+ description?: string | null;
42486
+ factuur_id?: string | null;
42487
+ id?: string | null;
42488
+ kind?: string | null;
42489
+ quantity?: number | null;
42490
+ sort_order?: number | null;
42491
+ total_cents?: number | null;
42492
+ unit?: string | null;
42493
+ unit_price_cents?: number | null;
42494
+ };
42495
+ Relationships: [{
42496
+ foreignKeyName: "invoice_items_invoice_id_fkey";
42497
+ columns: ["factuur_id"];
42498
+ isOneToOne: false;
42499
+ referencedRelation: "invoices";
42500
+ referencedColumns: ["id"];
42501
+ }, {
42502
+ foreignKeyName: "invoice_items_invoice_id_fkey";
42503
+ columns: ["factuur_id"];
42504
+ isOneToOne: false;
42505
+ referencedRelation: "uren_facturen";
42506
+ referencedColumns: ["id"];
42507
+ }];
42508
+ };
41293
42509
  v_external_customers_exact: {
41294
42510
  Row: {
41295
42511
  account_number: string | null;
@@ -41795,6 +43011,7 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
41795
43011
  gebruiker_id: string | null;
41796
43012
  gebruiker_naam: string;
41797
43013
  gestart_op: string | null;
43014
+ herkomst: string | null;
41798
43015
  id: string;
41799
43016
  idempotentie_sleutel: string | null;
41800
43017
  is_herprint: boolean;
@@ -41915,6 +43132,7 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
41915
43132
  gebruiker_id: string | null;
41916
43133
  gebruiker_naam: string;
41917
43134
  gestart_op: string | null;
43135
+ herkomst: string | null;
41918
43136
  id: string;
41919
43137
  idempotentie_sleutel: string | null;
41920
43138
  is_herprint: boolean;
@@ -42516,6 +43734,46 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
42516
43734
  Args: never;
42517
43735
  Returns: boolean;
42518
43736
  };
43737
+ invoice_create_from_source: {
43738
+ Args: {
43739
+ _payload?: import("../integrations/supabase/types").Json;
43740
+ _source_id: string;
43741
+ _source_type: string;
43742
+ };
43743
+ Returns: import("../integrations/supabase/types").Json;
43744
+ };
43745
+ invoice_get_billable_lines: {
43746
+ Args: {
43747
+ _invoice_id: string;
43748
+ };
43749
+ Returns: import("../integrations/supabase/types").Json;
43750
+ };
43751
+ invoice_get_for_source: {
43752
+ Args: {
43753
+ _source_id: string;
43754
+ _source_type: string;
43755
+ };
43756
+ Returns: import("../integrations/supabase/types").Json;
43757
+ };
43758
+ invoice_get_summary: {
43759
+ Args: {
43760
+ _invoice_id: string;
43761
+ };
43762
+ Returns: import("../integrations/supabase/types").Json;
43763
+ };
43764
+ invoice_list_sources: {
43765
+ Args: {
43766
+ _limit?: number;
43767
+ _source_type?: string;
43768
+ };
43769
+ Returns: import("../integrations/supabase/types").Json;
43770
+ };
43771
+ invoice_recalc_totals: {
43772
+ Args: {
43773
+ _invoice_id: string;
43774
+ };
43775
+ Returns: import("../integrations/supabase/types").Json;
43776
+ };
42519
43777
  is_authenticated: {
42520
43778
  Args: never;
42521
43779
  Returns: boolean;
@@ -42584,6 +43842,29 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
42584
43842
  roles: string[];
42585
43843
  }[];
42586
43844
  };
43845
+ list_monteur_absences: {
43846
+ Args: {
43847
+ _from: string;
43848
+ _to: string;
43849
+ };
43850
+ Returns: {
43851
+ absence_date: string;
43852
+ end_time: string;
43853
+ full_day: boolean;
43854
+ kind: string;
43855
+ monteur_id: string;
43856
+ start_time: string;
43857
+ }[];
43858
+ };
43859
+ list_monteurs: {
43860
+ Args: never;
43861
+ Returns: {
43862
+ avatar_url: string;
43863
+ display_name: string;
43864
+ email: string;
43865
+ id: string;
43866
+ }[];
43867
+ };
42587
43868
  list_my_planning_items: {
42588
43869
  Args: {
42589
43870
  _from: string;
@@ -42995,6 +44276,41 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
42995
44276
  };
42996
44277
  Returns: string;
42997
44278
  };
44279
+ logistics_floriday_finish_push_v2: {
44280
+ Args: {
44281
+ _error?: string;
44282
+ _error_code?: string;
44283
+ _fulfillment_order_id?: string;
44284
+ _gateway_status?: number;
44285
+ _id: string;
44286
+ _max_age_hours?: number;
44287
+ _max_attempts?: number;
44288
+ _ok: boolean;
44289
+ _permanent?: boolean;
44290
+ _response?: import("../integrations/supabase/types").Json;
44291
+ _revision: number;
44292
+ _sent_hash?: string;
44293
+ };
44294
+ Returns: string;
44295
+ };
44296
+ logistics_floriday_finish_push_v3: {
44297
+ Args: {
44298
+ _error?: string;
44299
+ _error_code?: string;
44300
+ _fulfillment_order_id?: string;
44301
+ _gateway_status?: number;
44302
+ _id: string;
44303
+ _max_age_hours?: number;
44304
+ _max_attempts?: number;
44305
+ _outcome: string;
44306
+ _permanent?: boolean;
44307
+ _response?: import("../integrations/supabase/types").Json;
44308
+ _revision: number;
44309
+ _sent_hash?: string;
44310
+ _wait_max_age_hours?: number;
44311
+ };
44312
+ Returns: string;
44313
+ };
42998
44314
  logistics_floriday_prune_pushes: {
42999
44315
  Args: {
43000
44316
  _days?: number;
@@ -43423,6 +44739,12 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
43423
44739
  verwijderd: number;
43424
44740
  }[];
43425
44741
  };
44742
+ order_departure_proof: {
44743
+ Args: {
44744
+ p_order_id: string;
44745
+ };
44746
+ Returns: import("../integrations/supabase/types").Json;
44747
+ };
43426
44748
  order_number_prefix: {
43427
44749
  Args: {
43428
44750
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -43537,6 +44859,13 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
43537
44859
  isSetofReturn: false;
43538
44860
  };
43539
44861
  };
44862
+ pick_cleanup_maintenance: {
44863
+ Args: {
44864
+ _heartbeat_hours?: number;
44865
+ _log_days?: number;
44866
+ };
44867
+ Returns: import("../integrations/supabase/types").Json;
44868
+ };
43540
44869
  pick_complete_print: {
43541
44870
  Args: {
43542
44871
  _printer_id: string;
@@ -43588,6 +44917,14 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
43588
44917
  Args: never;
43589
44918
  Returns: string;
43590
44919
  };
44920
+ pick_day_counts: {
44921
+ Args: {
44922
+ _pick_day?: string;
44923
+ _screen_id?: string;
44924
+ _station_id?: string;
44925
+ };
44926
+ Returns: import("../integrations/supabase/types").Json;
44927
+ };
43591
44928
  pick_document_layout_data: {
43592
44929
  Args: {
43593
44930
  _layout_id: string;
@@ -43615,6 +44952,14 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
43615
44952
  };
43616
44953
  Returns: import("../integrations/supabase/types").Json;
43617
44954
  };
44955
+ pick_print_plekken: {
44956
+ Args: never;
44957
+ Returns: {
44958
+ id: string;
44959
+ naam: string;
44960
+ omschrijving: string;
44961
+ }[];
44962
+ };
43618
44963
  pick_release_expired_locks: {
43619
44964
  Args: never;
43620
44965
  Returns: number;
@@ -43625,6 +44970,14 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
43625
44970
  };
43626
44971
  Returns: undefined;
43627
44972
  };
44973
+ pick_reprint_document: {
44974
+ Args: {
44975
+ _queue_item_id: string;
44976
+ _session_id: string;
44977
+ _throttle_seconds?: number;
44978
+ };
44979
+ Returns: string;
44980
+ };
43628
44981
  pick_reset_print: {
43629
44982
  Args: {
43630
44983
  _queue_item_id: string;
@@ -43671,6 +45024,13 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
43671
45024
  isSetofReturn: false;
43672
45025
  };
43673
45026
  };
45027
+ pick_set_station_print_plek: {
45028
+ Args: {
45029
+ _print_plek_id: string;
45030
+ _station_id: string;
45031
+ };
45032
+ Returns: string;
45033
+ };
43674
45034
  pick_station_dashboard: {
43675
45035
  Args: never;
43676
45036
  Returns: {
@@ -43683,6 +45043,25 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
43683
45043
  waiting: number;
43684
45044
  }[];
43685
45045
  };
45046
+ pick_station_print_plek: {
45047
+ Args: {
45048
+ _station_id: string;
45049
+ };
45050
+ Returns: {
45051
+ naam: string;
45052
+ omschrijving: string;
45053
+ print_plek_id: string;
45054
+ }[];
45055
+ };
45056
+ pick_station_print_plekken: {
45057
+ Args: never;
45058
+ Returns: {
45059
+ naam: string;
45060
+ omschrijving: string;
45061
+ print_plek_id: string;
45062
+ station_id: string;
45063
+ }[];
45064
+ };
43686
45065
  pick_station_slugify: {
43687
45066
  Args: {
43688
45067
  _id: string;
@@ -43690,6 +45069,12 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
43690
45069
  };
43691
45070
  Returns: string;
43692
45071
  };
45072
+ pick_sync_queue_throttled: {
45073
+ Args: {
45074
+ _min_seconds?: number;
45075
+ };
45076
+ Returns: import("../integrations/supabase/types").Json;
45077
+ };
43693
45078
  pickstation_get_orders_raw: {
43694
45079
  Args: never;
43695
45080
  Returns: import("../integrations/supabase/types").Json;
@@ -43835,6 +45220,12 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
43835
45220
  };
43836
45221
  Returns: boolean;
43837
45222
  };
45223
+ release_stale_order_invoice_links: {
45224
+ Args: {
45225
+ _minutes?: number;
45226
+ };
45227
+ Returns: number;
45228
+ };
43838
45229
  reorder_customer_price_groups: {
43839
45230
  Args: {
43840
45231
  _ids: string[];
@@ -44353,6 +45744,20 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
44353
45744
  };
44354
45745
  Returns: undefined;
44355
45746
  };
45747
+ twinfield_deactivate_connection: {
45748
+ Args: {
45749
+ p_connection_id: string;
45750
+ p_user_id: string;
45751
+ };
45752
+ Returns: import("../integrations/supabase/types").Json;
45753
+ };
45754
+ twinfield_handle_administration_change: {
45755
+ Args: {
45756
+ _administration_code: string;
45757
+ _user_id: string;
45758
+ };
45759
+ Returns: undefined;
45760
+ };
44356
45761
  twinfield_prune_push_queue: {
44357
45762
  Args: never;
44358
45763
  Returns: number;
@@ -44372,10 +45777,11 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
44372
45777
  p_company_name?: string;
44373
45778
  p_environment: string;
44374
45779
  p_office_code?: string;
45780
+ p_reset_sync?: boolean;
44375
45781
  p_status?: string;
44376
45782
  p_user_id: string;
44377
45783
  };
44378
- Returns: string;
45784
+ Returns: import("../integrations/supabase/types").Json;
44379
45785
  };
44380
45786
  upsert_auto_fulfillment_log: {
44381
45787
  Args: {
@@ -45119,6 +46525,99 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
45119
46525
  };
45120
46526
  Relationships: [];
45121
46527
  };
46528
+ artikelen_cache: {
46529
+ Row: {
46530
+ artikelcode: string;
46531
+ bron: string;
46532
+ bruto_prijs_cent: number | null;
46533
+ created_at: string;
46534
+ eenheid: string;
46535
+ fabrikant: string | null;
46536
+ fetched_at: string;
46537
+ gtin: string | null;
46538
+ id: string;
46539
+ naam: string;
46540
+ netto_prijs_cent: number | null;
46541
+ omschrijving: string | null;
46542
+ raw: import("../integrations/supabase/types").Json;
46543
+ updated_at: string;
46544
+ valuta: string;
46545
+ };
46546
+ Insert: {
46547
+ artikelcode: string;
46548
+ bron?: string;
46549
+ bruto_prijs_cent?: number | null;
46550
+ created_at?: string;
46551
+ eenheid?: string;
46552
+ fabrikant?: string | null;
46553
+ fetched_at?: string;
46554
+ gtin?: string | null;
46555
+ id?: string;
46556
+ naam: string;
46557
+ netto_prijs_cent?: number | null;
46558
+ omschrijving?: string | null;
46559
+ raw?: import("../integrations/supabase/types").Json;
46560
+ updated_at?: string;
46561
+ valuta?: string;
46562
+ };
46563
+ Update: {
46564
+ artikelcode?: string;
46565
+ bron?: string;
46566
+ bruto_prijs_cent?: number | null;
46567
+ created_at?: string;
46568
+ eenheid?: string;
46569
+ fabrikant?: string | null;
46570
+ fetched_at?: string;
46571
+ gtin?: string | null;
46572
+ id?: string;
46573
+ naam?: string;
46574
+ netto_prijs_cent?: number | null;
46575
+ omschrijving?: string | null;
46576
+ raw?: import("../integrations/supabase/types").Json;
46577
+ updated_at?: string;
46578
+ valuta?: string;
46579
+ };
46580
+ Relationships: [];
46581
+ };
46582
+ artikelen_veldconfig: {
46583
+ Row: {
46584
+ bron_pad: string;
46585
+ created_at: string;
46586
+ id: string;
46587
+ label: string;
46588
+ sort_order: number;
46589
+ type: string;
46590
+ updated_at: string;
46591
+ veld_key: string;
46592
+ zichtbaar_in_detail: boolean;
46593
+ zichtbaar_in_lijst: boolean;
46594
+ };
46595
+ Insert: {
46596
+ bron_pad: string;
46597
+ created_at?: string;
46598
+ id?: string;
46599
+ label: string;
46600
+ sort_order?: number;
46601
+ type?: string;
46602
+ updated_at?: string;
46603
+ veld_key: string;
46604
+ zichtbaar_in_detail?: boolean;
46605
+ zichtbaar_in_lijst?: boolean;
46606
+ };
46607
+ Update: {
46608
+ bron_pad?: string;
46609
+ created_at?: string;
46610
+ id?: string;
46611
+ label?: string;
46612
+ sort_order?: number;
46613
+ type?: string;
46614
+ updated_at?: string;
46615
+ veld_key?: string;
46616
+ zichtbaar_in_detail?: boolean;
46617
+ zichtbaar_in_lijst?: boolean;
46618
+ };
46619
+ Relationships: [];
46620
+ };
45122
46621
  booking_items: {
45123
46622
  Row: {
45124
46623
  booking_id: string;
@@ -47204,6 +48703,42 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
47204
48703
  };
47205
48704
  Relationships: [];
47206
48705
  };
48706
+ document_bronregels: {
48707
+ Row: {
48708
+ bron: string;
48709
+ created_at: string;
48710
+ documenttype: string;
48711
+ herkomst: string;
48712
+ id: string;
48713
+ layout_id: string | null;
48714
+ updated_at: string;
48715
+ };
48716
+ Insert: {
48717
+ bron?: string;
48718
+ created_at?: string;
48719
+ documenttype: string;
48720
+ herkomst: string;
48721
+ id?: string;
48722
+ layout_id?: string | null;
48723
+ updated_at?: string;
48724
+ };
48725
+ Update: {
48726
+ bron?: string;
48727
+ created_at?: string;
48728
+ documenttype?: string;
48729
+ herkomst?: string;
48730
+ id?: string;
48731
+ layout_id?: string | null;
48732
+ updated_at?: string;
48733
+ };
48734
+ Relationships: [{
48735
+ foreignKeyName: "document_bronregels_layout_id_fkey";
48736
+ columns: ["layout_id"];
48737
+ isOneToOne: false;
48738
+ referencedRelation: "document_layouts";
48739
+ referencedColumns: ["id"];
48740
+ }];
48741
+ };
47207
48742
  document_formaat_printers: {
47208
48743
  Row: {
47209
48744
  created_at: string;
@@ -47481,6 +49016,7 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
47481
49016
  Row: {
47482
49017
  actief: boolean;
47483
49018
  breedte_mm: number;
49019
+ bron: string;
47484
49020
  config: import("../integrations/supabase/types").Json;
47485
49021
  created_at: string;
47486
49022
  created_by: string | null;
@@ -47498,12 +49034,14 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
47498
49034
  orientatie: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
47499
49035
  page_settings: import("../integrations/supabase/types").Json;
47500
49036
  papierformaat: string;
49037
+ systeem: boolean;
47501
49038
  thumbnail_url: string | null;
47502
49039
  updated_at: string;
47503
49040
  };
47504
49041
  Insert: {
47505
49042
  actief?: boolean;
47506
49043
  breedte_mm?: number;
49044
+ bron?: string;
47507
49045
  config?: import("../integrations/supabase/types").Json;
47508
49046
  created_at?: string;
47509
49047
  created_by?: string | null;
@@ -47521,12 +49059,14 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
47521
49059
  orientatie?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
47522
49060
  page_settings?: import("../integrations/supabase/types").Json;
47523
49061
  papierformaat?: string;
49062
+ systeem?: boolean;
47524
49063
  thumbnail_url?: string | null;
47525
49064
  updated_at?: string;
47526
49065
  };
47527
49066
  Update: {
47528
49067
  actief?: boolean;
47529
49068
  breedte_mm?: number;
49069
+ bron?: string;
47530
49070
  config?: import("../integrations/supabase/types").Json;
47531
49071
  created_at?: string;
47532
49072
  created_by?: string | null;
@@ -47544,11 +49084,90 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
47544
49084
  orientatie?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
47545
49085
  page_settings?: import("../integrations/supabase/types").Json;
47546
49086
  papierformaat?: string;
49087
+ systeem?: boolean;
47547
49088
  thumbnail_url?: string | null;
47548
49089
  updated_at?: string;
47549
49090
  };
47550
49091
  Relationships: [];
47551
49092
  };
49093
+ document_printplek_printers: {
49094
+ Row: {
49095
+ created_at: string;
49096
+ documenttype: string;
49097
+ id: string;
49098
+ papierformaat: string | null;
49099
+ print_plek_id: string;
49100
+ printer_id: string | null;
49101
+ updated_at: string;
49102
+ };
49103
+ Insert: {
49104
+ created_at?: string;
49105
+ documenttype: string;
49106
+ id?: string;
49107
+ papierformaat?: string | null;
49108
+ print_plek_id: string;
49109
+ printer_id?: string | null;
49110
+ updated_at?: string;
49111
+ };
49112
+ Update: {
49113
+ created_at?: string;
49114
+ documenttype?: string;
49115
+ id?: string;
49116
+ papierformaat?: string | null;
49117
+ print_plek_id?: string;
49118
+ printer_id?: string | null;
49119
+ updated_at?: string;
49120
+ };
49121
+ Relationships: [{
49122
+ foreignKeyName: "document_printplek_printers_print_plek_id_fkey";
49123
+ columns: ["print_plek_id"];
49124
+ isOneToOne: false;
49125
+ referencedRelation: "print_plekken";
49126
+ referencedColumns: ["id"];
49127
+ }, {
49128
+ foreignKeyName: "document_printplek_printers_printer_id_fkey";
49129
+ columns: ["printer_id"];
49130
+ isOneToOne: false;
49131
+ referencedRelation: "printers";
49132
+ referencedColumns: ["id"];
49133
+ }];
49134
+ };
49135
+ document_werkplek_printers: {
49136
+ Row: {
49137
+ created_at: string;
49138
+ documenttype: string;
49139
+ id: string;
49140
+ papierformaat: string | null;
49141
+ printer_id: string | null;
49142
+ updated_at: string;
49143
+ werkplek: string;
49144
+ };
49145
+ Insert: {
49146
+ created_at?: string;
49147
+ documenttype: string;
49148
+ id?: string;
49149
+ papierformaat?: string | null;
49150
+ printer_id?: string | null;
49151
+ updated_at?: string;
49152
+ werkplek: string;
49153
+ };
49154
+ Update: {
49155
+ created_at?: string;
49156
+ documenttype?: string;
49157
+ id?: string;
49158
+ papierformaat?: string | null;
49159
+ printer_id?: string | null;
49160
+ updated_at?: string;
49161
+ werkplek?: string;
49162
+ };
49163
+ Relationships: [{
49164
+ foreignKeyName: "document_werkplek_printers_printer_id_fkey";
49165
+ columns: ["printer_id"];
49166
+ isOneToOne: false;
49167
+ referencedRelation: "printers";
49168
+ referencedColumns: ["id"];
49169
+ }];
49170
+ };
47552
49171
  email_auth_connections: {
47553
49172
  Row: {
47554
49173
  access_token_encrypted: string | null;
@@ -49490,42 +51109,6 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
49490
51109
  };
49491
51110
  Relationships: [];
49492
51111
  };
49493
- facturen: {
49494
- Row: {
49495
- bedrag_incl_btw: number;
49496
- created_at: string;
49497
- datum: string;
49498
- factuurnummer: string;
49499
- id: string;
49500
- klantnaam: string;
49501
- status: string;
49502
- updated_at: string;
49503
- user_id: string;
49504
- };
49505
- Insert: {
49506
- bedrag_incl_btw: number;
49507
- created_at?: string;
49508
- datum?: string;
49509
- factuurnummer: string;
49510
- id?: string;
49511
- klantnaam: string;
49512
- status?: string;
49513
- updated_at?: string;
49514
- user_id?: string;
49515
- };
49516
- Update: {
49517
- bedrag_incl_btw?: number;
49518
- created_at?: string;
49519
- datum?: string;
49520
- factuurnummer?: string;
49521
- id?: string;
49522
- klantnaam?: string;
49523
- status?: string;
49524
- updated_at?: string;
49525
- user_id?: string;
49526
- };
49527
- Relationships: [];
49528
- };
49529
51112
  floricode_connection_settings: {
49530
51113
  Row: {
49531
51114
  catalog_key: string | null;
@@ -51830,8 +53413,63 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
51830
53413
  };
51831
53414
  Relationships: [];
51832
53415
  };
53416
+ invoice_items: {
53417
+ Row: {
53418
+ created_at: string;
53419
+ description: string;
53420
+ id: string;
53421
+ invoice_id: string;
53422
+ kind: string;
53423
+ quantity: number;
53424
+ sort_order: number;
53425
+ source_line_ref: string | null;
53426
+ total_cents: number;
53427
+ unit: string;
53428
+ unit_price_cents: number;
53429
+ };
53430
+ Insert: {
53431
+ created_at?: string;
53432
+ description?: string;
53433
+ id?: string;
53434
+ invoice_id: string;
53435
+ kind?: string;
53436
+ quantity?: number;
53437
+ sort_order?: number;
53438
+ source_line_ref?: string | null;
53439
+ total_cents?: number;
53440
+ unit?: string;
53441
+ unit_price_cents?: number;
53442
+ };
53443
+ Update: {
53444
+ created_at?: string;
53445
+ description?: string;
53446
+ id?: string;
53447
+ invoice_id?: string;
53448
+ kind?: string;
53449
+ quantity?: number;
53450
+ sort_order?: number;
53451
+ source_line_ref?: string | null;
53452
+ total_cents?: number;
53453
+ unit?: string;
53454
+ unit_price_cents?: number;
53455
+ };
53456
+ Relationships: [{
53457
+ foreignKeyName: "invoice_items_invoice_id_fkey";
53458
+ columns: ["invoice_id"];
53459
+ isOneToOne: false;
53460
+ referencedRelation: "invoices";
53461
+ referencedColumns: ["id"];
53462
+ }, {
53463
+ foreignKeyName: "invoice_items_invoice_id_fkey";
53464
+ columns: ["invoice_id"];
53465
+ isOneToOne: false;
53466
+ referencedRelation: "uren_facturen";
53467
+ referencedColumns: ["id"];
53468
+ }];
53469
+ };
51833
53470
  invoice_post_idempotency: {
51834
53471
  Row: {
53472
+ administration_code: string;
51835
53473
  client_request_id: string;
51836
53474
  completed_at: string | null;
51837
53475
  created_at: string;
@@ -51841,6 +53479,7 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
51841
53479
  user_id: string;
51842
53480
  };
51843
53481
  Insert: {
53482
+ administration_code?: string;
51844
53483
  client_request_id: string;
51845
53484
  completed_at?: string | null;
51846
53485
  created_at?: string;
@@ -51850,6 +53489,7 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
51850
53489
  user_id: string;
51851
53490
  };
51852
53491
  Update: {
53492
+ administration_code?: string;
51853
53493
  client_request_id?: string;
51854
53494
  completed_at?: string | null;
51855
53495
  created_at?: string;
@@ -52055,6 +53695,75 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
52055
53695
  };
52056
53696
  Relationships: [];
52057
53697
  };
53698
+ invoices: {
53699
+ Row: {
53700
+ created_at: string;
53701
+ created_by: string | null;
53702
+ customer_id: string | null;
53703
+ customer_name: string | null;
53704
+ due_date: string | null;
53705
+ id: string;
53706
+ invoice_date: string;
53707
+ invoice_number: string | null;
53708
+ note: string | null;
53709
+ source_number: string | null;
53710
+ source_ref: string | null;
53711
+ source_type: string;
53712
+ status: string;
53713
+ subtotal_cents: number;
53714
+ total_cents: number;
53715
+ updated_at: string;
53716
+ vat_cents: number;
53717
+ vat_rate: number;
53718
+ };
53719
+ Insert: {
53720
+ created_at?: string;
53721
+ created_by?: string | null;
53722
+ customer_id?: string | null;
53723
+ customer_name?: string | null;
53724
+ due_date?: string | null;
53725
+ id?: string;
53726
+ invoice_date?: string;
53727
+ invoice_number?: string | null;
53728
+ note?: string | null;
53729
+ source_number?: string | null;
53730
+ source_ref?: string | null;
53731
+ source_type?: string;
53732
+ status?: string;
53733
+ subtotal_cents?: number;
53734
+ total_cents?: number;
53735
+ updated_at?: string;
53736
+ vat_cents?: number;
53737
+ vat_rate?: number;
53738
+ };
53739
+ Update: {
53740
+ created_at?: string;
53741
+ created_by?: string | null;
53742
+ customer_id?: string | null;
53743
+ customer_name?: string | null;
53744
+ due_date?: string | null;
53745
+ id?: string;
53746
+ invoice_date?: string;
53747
+ invoice_number?: string | null;
53748
+ note?: string | null;
53749
+ source_number?: string | null;
53750
+ source_ref?: string | null;
53751
+ source_type?: string;
53752
+ status?: string;
53753
+ subtotal_cents?: number;
53754
+ total_cents?: number;
53755
+ updated_at?: string;
53756
+ vat_cents?: number;
53757
+ vat_rate?: number;
53758
+ };
53759
+ Relationships: [{
53760
+ foreignKeyName: "invoices_customer_id_fkey";
53761
+ columns: ["customer_id"];
53762
+ isOneToOne: false;
53763
+ referencedRelation: "itk_customers";
53764
+ referencedColumns: ["id"];
53765
+ }];
53766
+ };
52058
53767
  itk_contact_persons: {
52059
53768
  Row: {
52060
53769
  created_at: string;
@@ -53402,6 +55111,10 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
53402
55111
  id: string;
53403
55112
  last_error: string | null;
53404
55113
  last_error_at: string | null;
55114
+ last_error_code: string | null;
55115
+ last_gateway_status: number | null;
55116
+ last_queued_at: string | null;
55117
+ last_response: import("../integrations/supabase/types").Json | null;
53405
55118
  last_sent_hash: string | null;
53406
55119
  locked_by: string | null;
53407
55120
  locked_until: string | null;
@@ -53422,6 +55135,10 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
53422
55135
  id?: string;
53423
55136
  last_error?: string | null;
53424
55137
  last_error_at?: string | null;
55138
+ last_error_code?: string | null;
55139
+ last_gateway_status?: number | null;
55140
+ last_queued_at?: string | null;
55141
+ last_response?: import("../integrations/supabase/types").Json | null;
53425
55142
  last_sent_hash?: string | null;
53426
55143
  locked_by?: string | null;
53427
55144
  locked_until?: string | null;
@@ -53442,6 +55159,10 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
53442
55159
  id?: string;
53443
55160
  last_error?: string | null;
53444
55161
  last_error_at?: string | null;
55162
+ last_error_code?: string | null;
55163
+ last_gateway_status?: number | null;
55164
+ last_queued_at?: string | null;
55165
+ last_response?: import("../integrations/supabase/types").Json | null;
53445
55166
  last_sent_hash?: string | null;
53446
55167
  locked_by?: string | null;
53447
55168
  locked_until?: string | null;
@@ -54995,6 +56716,7 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
54995
56716
  enforce: boolean;
54996
56717
  is_active: boolean;
54997
56718
  last_seen_at: string;
56719
+ missing_count: number;
54998
56720
  module_id: string;
54999
56721
  name: string;
55000
56722
  shell_id: string | null;
@@ -55005,6 +56727,7 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
55005
56727
  enforce?: boolean;
55006
56728
  is_active?: boolean;
55007
56729
  last_seen_at?: string;
56730
+ missing_count?: number;
55008
56731
  module_id: string;
55009
56732
  name: string;
55010
56733
  shell_id?: string | null;
@@ -55015,6 +56738,7 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
55015
56738
  enforce?: boolean;
55016
56739
  is_active?: boolean;
55017
56740
  last_seen_at?: string;
56741
+ missing_count?: number;
55018
56742
  module_id?: string;
55019
56743
  name?: string;
55020
56744
  shell_id?: string | null;
@@ -56014,6 +57738,7 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
56014
57738
  };
56015
57739
  order_invoice_links: {
56016
57740
  Row: {
57741
+ administration_code: string | null;
56017
57742
  attempts: number;
56018
57743
  created_at: string;
56019
57744
  error_message: string | null;
@@ -56026,6 +57751,7 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
56026
57751
  updated_at: string;
56027
57752
  };
56028
57753
  Insert: {
57754
+ administration_code?: string | null;
56029
57755
  attempts?: number;
56030
57756
  created_at?: string;
56031
57757
  error_message?: string | null;
@@ -56038,6 +57764,7 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
56038
57764
  updated_at?: string;
56039
57765
  };
56040
57766
  Update: {
57767
+ administration_code?: string | null;
56041
57768
  attempts?: number;
56042
57769
  created_at?: string;
56043
57770
  error_message?: string | null;
@@ -57203,6 +58930,27 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
57203
58930
  referencedColumns: ["id"];
57204
58931
  }];
57205
58932
  };
58933
+ pick_sync_state: {
58934
+ Row: {
58935
+ id: boolean;
58936
+ last_cleanup_at: string | null;
58937
+ last_sync_at: string | null;
58938
+ updated_at: string;
58939
+ };
58940
+ Insert: {
58941
+ id?: boolean;
58942
+ last_cleanup_at?: string | null;
58943
+ last_sync_at?: string | null;
58944
+ updated_at?: string;
58945
+ };
58946
+ Update: {
58947
+ id?: boolean;
58948
+ last_cleanup_at?: string | null;
58949
+ last_sync_at?: string | null;
58950
+ updated_at?: string;
58951
+ };
58952
+ Relationships: [];
58953
+ };
57206
58954
  pick_task_document_types: {
57207
58955
  Row: {
57208
58956
  created_at: string;
@@ -57485,6 +59233,7 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
57485
59233
  gebruiker_id: string | null;
57486
59234
  gebruiker_naam: string;
57487
59235
  gestart_op: string | null;
59236
+ herkomst: string | null;
57488
59237
  id: string;
57489
59238
  idempotentie_sleutel: string | null;
57490
59239
  is_herprint: boolean;
@@ -57514,6 +59263,7 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
57514
59263
  gebruiker_id?: string | null;
57515
59264
  gebruiker_naam?: string;
57516
59265
  gestart_op?: string | null;
59266
+ herkomst?: string | null;
57517
59267
  id?: string;
57518
59268
  idempotentie_sleutel?: string | null;
57519
59269
  is_herprint?: boolean;
@@ -57543,6 +59293,7 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
57543
59293
  gebruiker_id?: string | null;
57544
59294
  gebruiker_naam?: string;
57545
59295
  gestart_op?: string | null;
59296
+ herkomst?: string | null;
57546
59297
  id?: string;
57547
59298
  idempotentie_sleutel?: string | null;
57548
59299
  is_herprint?: boolean;
@@ -57581,6 +59332,99 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
57581
59332
  referencedColumns: ["id"];
57582
59333
  }];
57583
59334
  };
59335
+ print_plek_computers: {
59336
+ Row: {
59337
+ computer_naam: string;
59338
+ created_at: string;
59339
+ id: string;
59340
+ print_plek_id: string;
59341
+ updated_at: string;
59342
+ };
59343
+ Insert: {
59344
+ computer_naam: string;
59345
+ created_at?: string;
59346
+ id?: string;
59347
+ print_plek_id: string;
59348
+ updated_at?: string;
59349
+ };
59350
+ Update: {
59351
+ computer_naam?: string;
59352
+ created_at?: string;
59353
+ id?: string;
59354
+ print_plek_id?: string;
59355
+ updated_at?: string;
59356
+ };
59357
+ Relationships: [{
59358
+ foreignKeyName: "print_plek_computers_print_plek_id_fkey";
59359
+ columns: ["print_plek_id"];
59360
+ isOneToOne: false;
59361
+ referencedRelation: "print_plekken";
59362
+ referencedColumns: ["id"];
59363
+ }];
59364
+ };
59365
+ print_plek_koppelingen: {
59366
+ Row: {
59367
+ bron: string;
59368
+ bron_id: string;
59369
+ created_at: string;
59370
+ id: string;
59371
+ label: string | null;
59372
+ print_plek_id: string;
59373
+ updated_at: string;
59374
+ };
59375
+ Insert: {
59376
+ bron: string;
59377
+ bron_id: string;
59378
+ created_at?: string;
59379
+ id?: string;
59380
+ label?: string | null;
59381
+ print_plek_id: string;
59382
+ updated_at?: string;
59383
+ };
59384
+ Update: {
59385
+ bron?: string;
59386
+ bron_id?: string;
59387
+ created_at?: string;
59388
+ id?: string;
59389
+ label?: string | null;
59390
+ print_plek_id?: string;
59391
+ updated_at?: string;
59392
+ };
59393
+ Relationships: [{
59394
+ foreignKeyName: "print_plek_koppelingen_print_plek_id_fkey";
59395
+ columns: ["print_plek_id"];
59396
+ isOneToOne: false;
59397
+ referencedRelation: "print_plekken";
59398
+ referencedColumns: ["id"];
59399
+ }];
59400
+ };
59401
+ print_plekken: {
59402
+ Row: {
59403
+ actief: boolean;
59404
+ created_at: string;
59405
+ id: string;
59406
+ naam: string;
59407
+ omschrijving: string | null;
59408
+ updated_at: string;
59409
+ };
59410
+ Insert: {
59411
+ actief?: boolean;
59412
+ created_at?: string;
59413
+ id?: string;
59414
+ naam: string;
59415
+ omschrijving?: string | null;
59416
+ updated_at?: string;
59417
+ };
59418
+ Update: {
59419
+ actief?: boolean;
59420
+ created_at?: string;
59421
+ id?: string;
59422
+ naam?: string;
59423
+ omschrijving?: string | null;
59424
+ updated_at?: string;
59425
+ };
59426
+ Relationships: [];
59427
+ };
57584
59428
  print_queue_runners: {
57585
59429
  Row: {
57586
59430
  actief: boolean;
@@ -59735,6 +61579,45 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
59735
61579
  };
59736
61580
  Relationships: [];
59737
61581
  };
61582
+ stock_consumption_alerts: {
61583
+ Row: {
61584
+ alert_type: string;
61585
+ created_at: string;
61586
+ id: string;
61587
+ mutation_log_id: string | null;
61588
+ order_id: string | null;
61589
+ order_item_id: string | null;
61590
+ qty: number;
61591
+ reason: string | null;
61592
+ resolved_at: string | null;
61593
+ updated_at: string;
61594
+ };
61595
+ Insert: {
61596
+ alert_type: string;
61597
+ created_at?: string;
61598
+ id?: string;
61599
+ mutation_log_id?: string | null;
61600
+ order_id?: string | null;
61601
+ order_item_id?: string | null;
61602
+ qty?: number;
61603
+ reason?: string | null;
61604
+ resolved_at?: string | null;
61605
+ updated_at?: string;
61606
+ };
61607
+ Update: {
61608
+ alert_type?: string;
61609
+ created_at?: string;
61610
+ id?: string;
61611
+ mutation_log_id?: string | null;
61612
+ order_id?: string | null;
61613
+ order_item_id?: string | null;
61614
+ qty?: number;
61615
+ reason?: string | null;
61616
+ resolved_at?: string | null;
61617
+ updated_at?: string;
61618
+ };
61619
+ Relationships: [];
61620
+ };
59738
61621
  stock_import_runs: {
59739
61622
  Row: {
59740
61623
  connection_id: string | null;
@@ -60547,12 +62430,16 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
60547
62430
  company_name: string | null;
60548
62431
  connected_at: string | null;
60549
62432
  created_at: string;
62433
+ disconnected_at: string | null;
60550
62434
  environment: string;
60551
62435
  id: string;
62436
+ initial_sync_completed_at: string | null;
62437
+ initial_sync_started_at: string | null;
60552
62438
  is_active: boolean;
60553
62439
  label: string | null;
60554
62440
  office_code: string | null;
60555
62441
  redirect_uri: string | null;
62442
+ superseded_at: string | null;
60556
62443
  updated_at: string;
60557
62444
  user_id: string;
60558
62445
  };
@@ -60563,12 +62450,16 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
60563
62450
  company_name?: string | null;
60564
62451
  connected_at?: string | null;
60565
62452
  created_at?: string;
62453
+ disconnected_at?: string | null;
60566
62454
  environment: string;
60567
62455
  id?: string;
62456
+ initial_sync_completed_at?: string | null;
62457
+ initial_sync_started_at?: string | null;
60568
62458
  is_active?: boolean;
60569
62459
  label?: string | null;
60570
62460
  office_code?: string | null;
60571
62461
  redirect_uri?: string | null;
62462
+ superseded_at?: string | null;
60572
62463
  updated_at?: string;
60573
62464
  user_id: string;
60574
62465
  };
@@ -60579,12 +62470,16 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
60579
62470
  company_name?: string | null;
60580
62471
  connected_at?: string | null;
60581
62472
  created_at?: string;
62473
+ disconnected_at?: string | null;
60582
62474
  environment?: string;
60583
62475
  id?: string;
62476
+ initial_sync_completed_at?: string | null;
62477
+ initial_sync_started_at?: string | null;
60584
62478
  is_active?: boolean;
60585
62479
  label?: string | null;
60586
62480
  office_code?: string | null;
60587
62481
  redirect_uri?: string | null;
62482
+ superseded_at?: string | null;
60588
62483
  updated_at?: string;
60589
62484
  user_id?: string;
60590
62485
  };
@@ -60644,6 +62539,7 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
60644
62539
  twinfield_customers: {
60645
62540
  Row: {
60646
62541
  address: string | null;
62542
+ administration_code: string;
60647
62543
  city: string | null;
60648
62544
  country: string | null;
60649
62545
  created_at: string;
@@ -60663,6 +62559,7 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
60663
62559
  };
60664
62560
  Insert: {
60665
62561
  address?: string | null;
62562
+ administration_code?: string;
60666
62563
  city?: string | null;
60667
62564
  country?: string | null;
60668
62565
  created_at?: string;
@@ -60682,6 +62579,7 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
60682
62579
  };
60683
62580
  Update: {
60684
62581
  address?: string | null;
62582
+ administration_code?: string;
60685
62583
  city?: string | null;
60686
62584
  country?: string | null;
60687
62585
  created_at?: string;
@@ -60895,7 +62793,9 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
60895
62793
  };
60896
62794
  twinfield_invoice_settings: {
60897
62795
  Row: {
62796
+ administration_code: string | null;
60898
62797
  auto_invoice_enabled: boolean;
62798
+ auto_invoice_start_date: string | null;
60899
62799
  auto_invoice_trigger_statuses: string[];
60900
62800
  created_at: string;
60901
62801
  debtor_gl_account: string;
@@ -60909,15 +62809,19 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
60909
62809
  invoice_enabled_fo: boolean;
60910
62810
  invoice_enabled_ho: boolean;
60911
62811
  invoice_enabled_mo: boolean;
62812
+ needs_review: boolean;
60912
62813
  payment_gl_account: string;
60913
62814
  payment_journal_code: string;
62815
+ settings_confirmed_at: string | null;
60914
62816
  updated_at: string;
60915
62817
  user_id: string;
60916
62818
  vat_code_eu_reverse: string | null;
60917
62819
  vat_code_export: string | null;
60918
62820
  };
60919
62821
  Insert: {
62822
+ administration_code?: string | null;
60920
62823
  auto_invoice_enabled?: boolean;
62824
+ auto_invoice_start_date?: string | null;
60921
62825
  auto_invoice_trigger_statuses?: string[];
60922
62826
  created_at?: string;
60923
62827
  debtor_gl_account?: string;
@@ -60931,15 +62835,19 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
60931
62835
  invoice_enabled_fo?: boolean;
60932
62836
  invoice_enabled_ho?: boolean;
60933
62837
  invoice_enabled_mo?: boolean;
62838
+ needs_review?: boolean;
60934
62839
  payment_gl_account?: string;
60935
62840
  payment_journal_code?: string;
62841
+ settings_confirmed_at?: string | null;
60936
62842
  updated_at?: string;
60937
62843
  user_id: string;
60938
62844
  vat_code_eu_reverse?: string | null;
60939
62845
  vat_code_export?: string | null;
60940
62846
  };
60941
62847
  Update: {
62848
+ administration_code?: string | null;
60942
62849
  auto_invoice_enabled?: boolean;
62850
+ auto_invoice_start_date?: string | null;
60943
62851
  auto_invoice_trigger_statuses?: string[];
60944
62852
  created_at?: string;
60945
62853
  debtor_gl_account?: string;
@@ -60953,8 +62861,10 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
60953
62861
  invoice_enabled_fo?: boolean;
60954
62862
  invoice_enabled_ho?: boolean;
60955
62863
  invoice_enabled_mo?: boolean;
62864
+ needs_review?: boolean;
60956
62865
  payment_gl_account?: string;
60957
62866
  payment_journal_code?: string;
62867
+ settings_confirmed_at?: string | null;
60958
62868
  updated_at?: string;
60959
62869
  user_id?: string;
60960
62870
  vat_code_eu_reverse?: string | null;
@@ -61559,114 +63469,6 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
61559
63469
  };
61560
63470
  Relationships: [];
61561
63471
  };
61562
- uren_facturen: {
61563
- Row: {
61564
- created_at: string;
61565
- created_by: string | null;
61566
- customer_id: string | null;
61567
- customer_name: string | null;
61568
- id: string;
61569
- invoice_number: string | null;
61570
- note: string | null;
61571
- status: string;
61572
- total_excl_cents: number;
61573
- total_incl_cents: number;
61574
- updated_at: string;
61575
- vat_cents: number;
61576
- vat_percentage: number;
61577
- werkbon_id: string | null;
61578
- };
61579
- Insert: {
61580
- created_at?: string;
61581
- created_by?: string | null;
61582
- customer_id?: string | null;
61583
- customer_name?: string | null;
61584
- id?: string;
61585
- invoice_number?: string | null;
61586
- note?: string | null;
61587
- status?: string;
61588
- total_excl_cents?: number;
61589
- total_incl_cents?: number;
61590
- updated_at?: string;
61591
- vat_cents?: number;
61592
- vat_percentage?: number;
61593
- werkbon_id?: string | null;
61594
- };
61595
- Update: {
61596
- created_at?: string;
61597
- created_by?: string | null;
61598
- customer_id?: string | null;
61599
- customer_name?: string | null;
61600
- id?: string;
61601
- invoice_number?: string | null;
61602
- note?: string | null;
61603
- status?: string;
61604
- total_excl_cents?: number;
61605
- total_incl_cents?: number;
61606
- updated_at?: string;
61607
- vat_cents?: number;
61608
- vat_percentage?: number;
61609
- werkbon_id?: string | null;
61610
- };
61611
- Relationships: [{
61612
- foreignKeyName: "uren_facturen_customer_id_fkey";
61613
- columns: ["customer_id"];
61614
- isOneToOne: false;
61615
- referencedRelation: "itk_customers";
61616
- referencedColumns: ["id"];
61617
- }, {
61618
- foreignKeyName: "uren_facturen_werkbon_id_fkey";
61619
- columns: ["werkbon_id"];
61620
- isOneToOne: true;
61621
- referencedRelation: "werkbonnen";
61622
- referencedColumns: ["id"];
61623
- }];
61624
- };
61625
- uren_factuur_regels: {
61626
- Row: {
61627
- created_at: string;
61628
- description: string;
61629
- factuur_id: string;
61630
- id: string;
61631
- kind: string | null;
61632
- quantity: number;
61633
- sort_order: number;
61634
- total_cents: number;
61635
- unit: string;
61636
- unit_price_cents: number;
61637
- };
61638
- Insert: {
61639
- created_at?: string;
61640
- description: string;
61641
- factuur_id: string;
61642
- id?: string;
61643
- kind?: string | null;
61644
- quantity?: number;
61645
- sort_order?: number;
61646
- total_cents?: number;
61647
- unit?: string;
61648
- unit_price_cents?: number;
61649
- };
61650
- Update: {
61651
- created_at?: string;
61652
- description?: string;
61653
- factuur_id?: string;
61654
- id?: string;
61655
- kind?: string | null;
61656
- quantity?: number;
61657
- sort_order?: number;
61658
- total_cents?: number;
61659
- unit?: string;
61660
- unit_price_cents?: number;
61661
- };
61662
- Relationships: [{
61663
- foreignKeyName: "uren_factuur_regels_factuur_id_fkey";
61664
- columns: ["factuur_id"];
61665
- isOneToOne: false;
61666
- referencedRelation: "uren_facturen";
61667
- referencedColumns: ["id"];
61668
- }];
61669
- };
61670
63472
  uren_offerte_regels: {
61671
63473
  Row: {
61672
63474
  created_at: string;
@@ -62920,6 +64722,9 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
62920
64722
  scheduled_end_time: string | null;
62921
64723
  scheduled_start_time: string | null;
62922
64724
  sequence_number: number;
64725
+ signature_accepted_at: string | null;
64726
+ signature_by_user_id: string | null;
64727
+ signature_name: string | null;
62923
64728
  source_email_meta: import("../integrations/supabase/types").Json | null;
62924
64729
  source_mailbox_message_id: string | null;
62925
64730
  source_pdf_path: string | null;
@@ -62955,6 +64760,9 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
62955
64760
  scheduled_end_time?: string | null;
62956
64761
  scheduled_start_time?: string | null;
62957
64762
  sequence_number: number;
64763
+ signature_accepted_at?: string | null;
64764
+ signature_by_user_id?: string | null;
64765
+ signature_name?: string | null;
62958
64766
  source_email_meta?: import("../integrations/supabase/types").Json | null;
62959
64767
  source_mailbox_message_id?: string | null;
62960
64768
  source_pdf_path?: string | null;
@@ -62990,6 +64798,9 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
62990
64798
  scheduled_end_time?: string | null;
62991
64799
  scheduled_start_time?: string | null;
62992
64800
  sequence_number?: number;
64801
+ signature_accepted_at?: string | null;
64802
+ signature_by_user_id?: string | null;
64803
+ signature_name?: string | null;
62993
64804
  source_email_meta?: import("../integrations/supabase/types").Json | null;
62994
64805
  source_mailbox_message_id?: string | null;
62995
64806
  source_pdf_path?: string | null;
@@ -63506,6 +65317,114 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
63506
65317
  };
63507
65318
  Relationships: [];
63508
65319
  };
65320
+ uren_facturen: {
65321
+ Row: {
65322
+ created_at: string | null;
65323
+ created_by: string | null;
65324
+ customer_id: string | null;
65325
+ customer_name: string | null;
65326
+ id: string | null;
65327
+ invoice_number: string | null;
65328
+ note: string | null;
65329
+ status: string | null;
65330
+ total_excl_cents: number | null;
65331
+ total_incl_cents: number | null;
65332
+ updated_at: string | null;
65333
+ vat_cents: number | null;
65334
+ vat_percentage: number | null;
65335
+ werkbon_id: string | null;
65336
+ };
65337
+ Insert: {
65338
+ created_at?: string | null;
65339
+ created_by?: string | null;
65340
+ customer_id?: string | null;
65341
+ customer_name?: string | null;
65342
+ id?: string | null;
65343
+ invoice_number?: string | null;
65344
+ note?: string | null;
65345
+ status?: string | null;
65346
+ total_excl_cents?: number | null;
65347
+ total_incl_cents?: number | null;
65348
+ updated_at?: string | null;
65349
+ vat_cents?: number | null;
65350
+ vat_percentage?: number | null;
65351
+ werkbon_id?: never;
65352
+ };
65353
+ Update: {
65354
+ created_at?: string | null;
65355
+ created_by?: string | null;
65356
+ customer_id?: string | null;
65357
+ customer_name?: string | null;
65358
+ id?: string | null;
65359
+ invoice_number?: string | null;
65360
+ note?: string | null;
65361
+ status?: string | null;
65362
+ total_excl_cents?: number | null;
65363
+ total_incl_cents?: number | null;
65364
+ updated_at?: string | null;
65365
+ vat_cents?: number | null;
65366
+ vat_percentage?: number | null;
65367
+ werkbon_id?: never;
65368
+ };
65369
+ Relationships: [{
65370
+ foreignKeyName: "invoices_customer_id_fkey";
65371
+ columns: ["customer_id"];
65372
+ isOneToOne: false;
65373
+ referencedRelation: "itk_customers";
65374
+ referencedColumns: ["id"];
65375
+ }];
65376
+ };
65377
+ uren_factuur_regels: {
65378
+ Row: {
65379
+ created_at: string | null;
65380
+ description: string | null;
65381
+ factuur_id: string | null;
65382
+ id: string | null;
65383
+ kind: string | null;
65384
+ quantity: number | null;
65385
+ sort_order: number | null;
65386
+ total_cents: number | null;
65387
+ unit: string | null;
65388
+ unit_price_cents: number | null;
65389
+ };
65390
+ Insert: {
65391
+ created_at?: string | null;
65392
+ description?: string | null;
65393
+ factuur_id?: string | null;
65394
+ id?: string | null;
65395
+ kind?: string | null;
65396
+ quantity?: number | null;
65397
+ sort_order?: number | null;
65398
+ total_cents?: number | null;
65399
+ unit?: string | null;
65400
+ unit_price_cents?: number | null;
65401
+ };
65402
+ Update: {
65403
+ created_at?: string | null;
65404
+ description?: string | null;
65405
+ factuur_id?: string | null;
65406
+ id?: string | null;
65407
+ kind?: string | null;
65408
+ quantity?: number | null;
65409
+ sort_order?: number | null;
65410
+ total_cents?: number | null;
65411
+ unit?: string | null;
65412
+ unit_price_cents?: number | null;
65413
+ };
65414
+ Relationships: [{
65415
+ foreignKeyName: "invoice_items_invoice_id_fkey";
65416
+ columns: ["factuur_id"];
65417
+ isOneToOne: false;
65418
+ referencedRelation: "invoices";
65419
+ referencedColumns: ["id"];
65420
+ }, {
65421
+ foreignKeyName: "invoice_items_invoice_id_fkey";
65422
+ columns: ["factuur_id"];
65423
+ isOneToOne: false;
65424
+ referencedRelation: "uren_facturen";
65425
+ referencedColumns: ["id"];
65426
+ }];
65427
+ };
63509
65428
  v_external_customers_exact: {
63510
65429
  Row: {
63511
65430
  account_number: string | null;
@@ -64011,6 +65930,7 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
64011
65930
  gebruiker_id: string | null;
64012
65931
  gebruiker_naam: string;
64013
65932
  gestart_op: string | null;
65933
+ herkomst: string | null;
64014
65934
  id: string;
64015
65935
  idempotentie_sleutel: string | null;
64016
65936
  is_herprint: boolean;
@@ -64131,6 +66051,7 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
64131
66051
  gebruiker_id: string | null;
64132
66052
  gebruiker_naam: string;
64133
66053
  gestart_op: string | null;
66054
+ herkomst: string | null;
64134
66055
  id: string;
64135
66056
  idempotentie_sleutel: string | null;
64136
66057
  is_herprint: boolean;
@@ -64732,6 +66653,46 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
64732
66653
  Args: never;
64733
66654
  Returns: boolean;
64734
66655
  };
66656
+ invoice_create_from_source: {
66657
+ Args: {
66658
+ _payload?: import("../integrations/supabase/types").Json;
66659
+ _source_id: string;
66660
+ _source_type: string;
66661
+ };
66662
+ Returns: import("../integrations/supabase/types").Json;
66663
+ };
66664
+ invoice_get_billable_lines: {
66665
+ Args: {
66666
+ _invoice_id: string;
66667
+ };
66668
+ Returns: import("../integrations/supabase/types").Json;
66669
+ };
66670
+ invoice_get_for_source: {
66671
+ Args: {
66672
+ _source_id: string;
66673
+ _source_type: string;
66674
+ };
66675
+ Returns: import("../integrations/supabase/types").Json;
66676
+ };
66677
+ invoice_get_summary: {
66678
+ Args: {
66679
+ _invoice_id: string;
66680
+ };
66681
+ Returns: import("../integrations/supabase/types").Json;
66682
+ };
66683
+ invoice_list_sources: {
66684
+ Args: {
66685
+ _limit?: number;
66686
+ _source_type?: string;
66687
+ };
66688
+ Returns: import("../integrations/supabase/types").Json;
66689
+ };
66690
+ invoice_recalc_totals: {
66691
+ Args: {
66692
+ _invoice_id: string;
66693
+ };
66694
+ Returns: import("../integrations/supabase/types").Json;
66695
+ };
64735
66696
  is_authenticated: {
64736
66697
  Args: never;
64737
66698
  Returns: boolean;
@@ -64800,6 +66761,29 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
64800
66761
  roles: string[];
64801
66762
  }[];
64802
66763
  };
66764
+ list_monteur_absences: {
66765
+ Args: {
66766
+ _from: string;
66767
+ _to: string;
66768
+ };
66769
+ Returns: {
66770
+ absence_date: string;
66771
+ end_time: string;
66772
+ full_day: boolean;
66773
+ kind: string;
66774
+ monteur_id: string;
66775
+ start_time: string;
66776
+ }[];
66777
+ };
66778
+ list_monteurs: {
66779
+ Args: never;
66780
+ Returns: {
66781
+ avatar_url: string;
66782
+ display_name: string;
66783
+ email: string;
66784
+ id: string;
66785
+ }[];
66786
+ };
64803
66787
  list_my_planning_items: {
64804
66788
  Args: {
64805
66789
  _from: string;
@@ -65211,6 +67195,41 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
65211
67195
  };
65212
67196
  Returns: string;
65213
67197
  };
67198
+ logistics_floriday_finish_push_v2: {
67199
+ Args: {
67200
+ _error?: string;
67201
+ _error_code?: string;
67202
+ _fulfillment_order_id?: string;
67203
+ _gateway_status?: number;
67204
+ _id: string;
67205
+ _max_age_hours?: number;
67206
+ _max_attempts?: number;
67207
+ _ok: boolean;
67208
+ _permanent?: boolean;
67209
+ _response?: import("../integrations/supabase/types").Json;
67210
+ _revision: number;
67211
+ _sent_hash?: string;
67212
+ };
67213
+ Returns: string;
67214
+ };
67215
+ logistics_floriday_finish_push_v3: {
67216
+ Args: {
67217
+ _error?: string;
67218
+ _error_code?: string;
67219
+ _fulfillment_order_id?: string;
67220
+ _gateway_status?: number;
67221
+ _id: string;
67222
+ _max_age_hours?: number;
67223
+ _max_attempts?: number;
67224
+ _outcome: string;
67225
+ _permanent?: boolean;
67226
+ _response?: import("../integrations/supabase/types").Json;
67227
+ _revision: number;
67228
+ _sent_hash?: string;
67229
+ _wait_max_age_hours?: number;
67230
+ };
67231
+ Returns: string;
67232
+ };
65214
67233
  logistics_floriday_prune_pushes: {
65215
67234
  Args: {
65216
67235
  _days?: number;
@@ -65639,6 +67658,12 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
65639
67658
  verwijderd: number;
65640
67659
  }[];
65641
67660
  };
67661
+ order_departure_proof: {
67662
+ Args: {
67663
+ p_order_id: string;
67664
+ };
67665
+ Returns: import("../integrations/supabase/types").Json;
67666
+ };
65642
67667
  order_number_prefix: {
65643
67668
  Args: {
65644
67669
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -65753,6 +67778,13 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
65753
67778
  isSetofReturn: false;
65754
67779
  };
65755
67780
  };
67781
+ pick_cleanup_maintenance: {
67782
+ Args: {
67783
+ _heartbeat_hours?: number;
67784
+ _log_days?: number;
67785
+ };
67786
+ Returns: import("../integrations/supabase/types").Json;
67787
+ };
65756
67788
  pick_complete_print: {
65757
67789
  Args: {
65758
67790
  _printer_id: string;
@@ -65804,6 +67836,14 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
65804
67836
  Args: never;
65805
67837
  Returns: string;
65806
67838
  };
67839
+ pick_day_counts: {
67840
+ Args: {
67841
+ _pick_day?: string;
67842
+ _screen_id?: string;
67843
+ _station_id?: string;
67844
+ };
67845
+ Returns: import("../integrations/supabase/types").Json;
67846
+ };
65807
67847
  pick_document_layout_data: {
65808
67848
  Args: {
65809
67849
  _layout_id: string;
@@ -65831,6 +67871,14 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
65831
67871
  };
65832
67872
  Returns: import("../integrations/supabase/types").Json;
65833
67873
  };
67874
+ pick_print_plekken: {
67875
+ Args: never;
67876
+ Returns: {
67877
+ id: string;
67878
+ naam: string;
67879
+ omschrijving: string;
67880
+ }[];
67881
+ };
65834
67882
  pick_release_expired_locks: {
65835
67883
  Args: never;
65836
67884
  Returns: number;
@@ -65841,6 +67889,14 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
65841
67889
  };
65842
67890
  Returns: undefined;
65843
67891
  };
67892
+ pick_reprint_document: {
67893
+ Args: {
67894
+ _queue_item_id: string;
67895
+ _session_id: string;
67896
+ _throttle_seconds?: number;
67897
+ };
67898
+ Returns: string;
67899
+ };
65844
67900
  pick_reset_print: {
65845
67901
  Args: {
65846
67902
  _queue_item_id: string;
@@ -65887,6 +67943,13 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
65887
67943
  isSetofReturn: false;
65888
67944
  };
65889
67945
  };
67946
+ pick_set_station_print_plek: {
67947
+ Args: {
67948
+ _print_plek_id: string;
67949
+ _station_id: string;
67950
+ };
67951
+ Returns: string;
67952
+ };
65890
67953
  pick_station_dashboard: {
65891
67954
  Args: never;
65892
67955
  Returns: {
@@ -65899,6 +67962,25 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
65899
67962
  waiting: number;
65900
67963
  }[];
65901
67964
  };
67965
+ pick_station_print_plek: {
67966
+ Args: {
67967
+ _station_id: string;
67968
+ };
67969
+ Returns: {
67970
+ naam: string;
67971
+ omschrijving: string;
67972
+ print_plek_id: string;
67973
+ }[];
67974
+ };
67975
+ pick_station_print_plekken: {
67976
+ Args: never;
67977
+ Returns: {
67978
+ naam: string;
67979
+ omschrijving: string;
67980
+ print_plek_id: string;
67981
+ station_id: string;
67982
+ }[];
67983
+ };
65902
67984
  pick_station_slugify: {
65903
67985
  Args: {
65904
67986
  _id: string;
@@ -65906,6 +67988,12 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
65906
67988
  };
65907
67989
  Returns: string;
65908
67990
  };
67991
+ pick_sync_queue_throttled: {
67992
+ Args: {
67993
+ _min_seconds?: number;
67994
+ };
67995
+ Returns: import("../integrations/supabase/types").Json;
67996
+ };
65909
67997
  pickstation_get_orders_raw: {
65910
67998
  Args: never;
65911
67999
  Returns: import("../integrations/supabase/types").Json;
@@ -66051,6 +68139,12 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
66051
68139
  };
66052
68140
  Returns: boolean;
66053
68141
  };
68142
+ release_stale_order_invoice_links: {
68143
+ Args: {
68144
+ _minutes?: number;
68145
+ };
68146
+ Returns: number;
68147
+ };
66054
68148
  reorder_customer_price_groups: {
66055
68149
  Args: {
66056
68150
  _ids: string[];
@@ -66569,6 +68663,20 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
66569
68663
  };
66570
68664
  Returns: undefined;
66571
68665
  };
68666
+ twinfield_deactivate_connection: {
68667
+ Args: {
68668
+ p_connection_id: string;
68669
+ p_user_id: string;
68670
+ };
68671
+ Returns: import("../integrations/supabase/types").Json;
68672
+ };
68673
+ twinfield_handle_administration_change: {
68674
+ Args: {
68675
+ _administration_code: string;
68676
+ _user_id: string;
68677
+ };
68678
+ Returns: undefined;
68679
+ };
66572
68680
  twinfield_prune_push_queue: {
66573
68681
  Args: never;
66574
68682
  Returns: number;
@@ -66588,10 +68696,11 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
66588
68696
  p_company_name?: string;
66589
68697
  p_environment: string;
66590
68698
  p_office_code?: string;
68699
+ p_reset_sync?: boolean;
66591
68700
  p_status?: string;
66592
68701
  p_user_id: string;
66593
68702
  };
66594
- Returns: string;
68703
+ Returns: import("../integrations/supabase/types").Json;
66595
68704
  };
66596
68705
  upsert_auto_fulfillment_log: {
66597
68706
  Args: {