@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
@@ -677,6 +677,99 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
677
677
  };
678
678
  Relationships: [];
679
679
  };
680
+ artikelen_cache: {
681
+ Row: {
682
+ artikelcode: string;
683
+ bron: string;
684
+ bruto_prijs_cent: number | null;
685
+ created_at: string;
686
+ eenheid: string;
687
+ fabrikant: string | null;
688
+ fetched_at: string;
689
+ gtin: string | null;
690
+ id: string;
691
+ naam: string;
692
+ netto_prijs_cent: number | null;
693
+ omschrijving: string | null;
694
+ raw: import("../integrations/supabase/types").Json;
695
+ updated_at: string;
696
+ valuta: string;
697
+ };
698
+ Insert: {
699
+ artikelcode: string;
700
+ bron?: string;
701
+ bruto_prijs_cent?: number | null;
702
+ created_at?: string;
703
+ eenheid?: string;
704
+ fabrikant?: string | null;
705
+ fetched_at?: string;
706
+ gtin?: string | null;
707
+ id?: string;
708
+ naam: string;
709
+ netto_prijs_cent?: number | null;
710
+ omschrijving?: string | null;
711
+ raw?: import("../integrations/supabase/types").Json;
712
+ updated_at?: string;
713
+ valuta?: string;
714
+ };
715
+ Update: {
716
+ artikelcode?: string;
717
+ bron?: string;
718
+ bruto_prijs_cent?: number | null;
719
+ created_at?: string;
720
+ eenheid?: string;
721
+ fabrikant?: string | null;
722
+ fetched_at?: string;
723
+ gtin?: string | null;
724
+ id?: string;
725
+ naam?: string;
726
+ netto_prijs_cent?: number | null;
727
+ omschrijving?: string | null;
728
+ raw?: import("../integrations/supabase/types").Json;
729
+ updated_at?: string;
730
+ valuta?: string;
731
+ };
732
+ Relationships: [];
733
+ };
734
+ artikelen_veldconfig: {
735
+ Row: {
736
+ bron_pad: string;
737
+ created_at: string;
738
+ id: string;
739
+ label: string;
740
+ sort_order: number;
741
+ type: string;
742
+ updated_at: string;
743
+ veld_key: string;
744
+ zichtbaar_in_detail: boolean;
745
+ zichtbaar_in_lijst: boolean;
746
+ };
747
+ Insert: {
748
+ bron_pad: string;
749
+ created_at?: string;
750
+ id?: string;
751
+ label: string;
752
+ sort_order?: number;
753
+ type?: string;
754
+ updated_at?: string;
755
+ veld_key: string;
756
+ zichtbaar_in_detail?: boolean;
757
+ zichtbaar_in_lijst?: boolean;
758
+ };
759
+ Update: {
760
+ bron_pad?: string;
761
+ created_at?: string;
762
+ id?: string;
763
+ label?: string;
764
+ sort_order?: number;
765
+ type?: string;
766
+ updated_at?: string;
767
+ veld_key?: string;
768
+ zichtbaar_in_detail?: boolean;
769
+ zichtbaar_in_lijst?: boolean;
770
+ };
771
+ Relationships: [];
772
+ };
680
773
  booking_items: {
681
774
  Row: {
682
775
  booking_id: string;
@@ -2762,6 +2855,42 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
2762
2855
  };
2763
2856
  Relationships: [];
2764
2857
  };
2858
+ document_bronregels: {
2859
+ Row: {
2860
+ bron: string;
2861
+ created_at: string;
2862
+ documenttype: string;
2863
+ herkomst: string;
2864
+ id: string;
2865
+ layout_id: string | null;
2866
+ updated_at: string;
2867
+ };
2868
+ Insert: {
2869
+ bron?: string;
2870
+ created_at?: string;
2871
+ documenttype: string;
2872
+ herkomst: string;
2873
+ id?: string;
2874
+ layout_id?: string | null;
2875
+ updated_at?: string;
2876
+ };
2877
+ Update: {
2878
+ bron?: string;
2879
+ created_at?: string;
2880
+ documenttype?: string;
2881
+ herkomst?: string;
2882
+ id?: string;
2883
+ layout_id?: string | null;
2884
+ updated_at?: string;
2885
+ };
2886
+ Relationships: [{
2887
+ foreignKeyName: "document_bronregels_layout_id_fkey";
2888
+ columns: ["layout_id"];
2889
+ isOneToOne: false;
2890
+ referencedRelation: "document_layouts";
2891
+ referencedColumns: ["id"];
2892
+ }];
2893
+ };
2765
2894
  document_formaat_printers: {
2766
2895
  Row: {
2767
2896
  created_at: string;
@@ -3039,6 +3168,7 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
3039
3168
  Row: {
3040
3169
  actief: boolean;
3041
3170
  breedte_mm: number;
3171
+ bron: string;
3042
3172
  config: import("../integrations/supabase/types").Json;
3043
3173
  created_at: string;
3044
3174
  created_by: string | null;
@@ -3056,12 +3186,14 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
3056
3186
  orientatie: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
3057
3187
  page_settings: import("../integrations/supabase/types").Json;
3058
3188
  papierformaat: string;
3189
+ systeem: boolean;
3059
3190
  thumbnail_url: string | null;
3060
3191
  updated_at: string;
3061
3192
  };
3062
3193
  Insert: {
3063
3194
  actief?: boolean;
3064
3195
  breedte_mm?: number;
3196
+ bron?: string;
3065
3197
  config?: import("../integrations/supabase/types").Json;
3066
3198
  created_at?: string;
3067
3199
  created_by?: string | null;
@@ -3079,12 +3211,14 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
3079
3211
  orientatie?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
3080
3212
  page_settings?: import("../integrations/supabase/types").Json;
3081
3213
  papierformaat?: string;
3214
+ systeem?: boolean;
3082
3215
  thumbnail_url?: string | null;
3083
3216
  updated_at?: string;
3084
3217
  };
3085
3218
  Update: {
3086
3219
  actief?: boolean;
3087
3220
  breedte_mm?: number;
3221
+ bron?: string;
3088
3222
  config?: import("../integrations/supabase/types").Json;
3089
3223
  created_at?: string;
3090
3224
  created_by?: string | null;
@@ -3102,11 +3236,90 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
3102
3236
  orientatie?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
3103
3237
  page_settings?: import("../integrations/supabase/types").Json;
3104
3238
  papierformaat?: string;
3239
+ systeem?: boolean;
3105
3240
  thumbnail_url?: string | null;
3106
3241
  updated_at?: string;
3107
3242
  };
3108
3243
  Relationships: [];
3109
3244
  };
3245
+ document_printplek_printers: {
3246
+ Row: {
3247
+ created_at: string;
3248
+ documenttype: string;
3249
+ id: string;
3250
+ papierformaat: string | null;
3251
+ print_plek_id: string;
3252
+ printer_id: string | null;
3253
+ updated_at: string;
3254
+ };
3255
+ Insert: {
3256
+ created_at?: string;
3257
+ documenttype: string;
3258
+ id?: string;
3259
+ papierformaat?: string | null;
3260
+ print_plek_id: string;
3261
+ printer_id?: string | null;
3262
+ updated_at?: string;
3263
+ };
3264
+ Update: {
3265
+ created_at?: string;
3266
+ documenttype?: string;
3267
+ id?: string;
3268
+ papierformaat?: string | null;
3269
+ print_plek_id?: string;
3270
+ printer_id?: string | null;
3271
+ updated_at?: string;
3272
+ };
3273
+ Relationships: [{
3274
+ foreignKeyName: "document_printplek_printers_print_plek_id_fkey";
3275
+ columns: ["print_plek_id"];
3276
+ isOneToOne: false;
3277
+ referencedRelation: "print_plekken";
3278
+ referencedColumns: ["id"];
3279
+ }, {
3280
+ foreignKeyName: "document_printplek_printers_printer_id_fkey";
3281
+ columns: ["printer_id"];
3282
+ isOneToOne: false;
3283
+ referencedRelation: "printers";
3284
+ referencedColumns: ["id"];
3285
+ }];
3286
+ };
3287
+ document_werkplek_printers: {
3288
+ Row: {
3289
+ created_at: string;
3290
+ documenttype: string;
3291
+ id: string;
3292
+ papierformaat: string | null;
3293
+ printer_id: string | null;
3294
+ updated_at: string;
3295
+ werkplek: string;
3296
+ };
3297
+ Insert: {
3298
+ created_at?: string;
3299
+ documenttype: string;
3300
+ id?: string;
3301
+ papierformaat?: string | null;
3302
+ printer_id?: string | null;
3303
+ updated_at?: string;
3304
+ werkplek: string;
3305
+ };
3306
+ Update: {
3307
+ created_at?: string;
3308
+ documenttype?: string;
3309
+ id?: string;
3310
+ papierformaat?: string | null;
3311
+ printer_id?: string | null;
3312
+ updated_at?: string;
3313
+ werkplek?: string;
3314
+ };
3315
+ Relationships: [{
3316
+ foreignKeyName: "document_werkplek_printers_printer_id_fkey";
3317
+ columns: ["printer_id"];
3318
+ isOneToOne: false;
3319
+ referencedRelation: "printers";
3320
+ referencedColumns: ["id"];
3321
+ }];
3322
+ };
3110
3323
  email_auth_connections: {
3111
3324
  Row: {
3112
3325
  access_token_encrypted: string | null;
@@ -5048,42 +5261,6 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
5048
5261
  };
5049
5262
  Relationships: [];
5050
5263
  };
5051
- facturen: {
5052
- Row: {
5053
- bedrag_incl_btw: number;
5054
- created_at: string;
5055
- datum: string;
5056
- factuurnummer: string;
5057
- id: string;
5058
- klantnaam: string;
5059
- status: string;
5060
- updated_at: string;
5061
- user_id: string;
5062
- };
5063
- Insert: {
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
- Update: {
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
- Relationships: [];
5086
- };
5087
5264
  floricode_connection_settings: {
5088
5265
  Row: {
5089
5266
  catalog_key: string | null;
@@ -7388,8 +7565,63 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
7388
7565
  };
7389
7566
  Relationships: [];
7390
7567
  };
7568
+ invoice_items: {
7569
+ Row: {
7570
+ created_at: string;
7571
+ description: string;
7572
+ id: string;
7573
+ invoice_id: string;
7574
+ kind: string;
7575
+ quantity: number;
7576
+ sort_order: number;
7577
+ source_line_ref: string | null;
7578
+ total_cents: number;
7579
+ unit: string;
7580
+ unit_price_cents: number;
7581
+ };
7582
+ Insert: {
7583
+ created_at?: string;
7584
+ description?: string;
7585
+ id?: string;
7586
+ invoice_id: string;
7587
+ kind?: string;
7588
+ quantity?: number;
7589
+ sort_order?: number;
7590
+ source_line_ref?: string | null;
7591
+ total_cents?: number;
7592
+ unit?: string;
7593
+ unit_price_cents?: number;
7594
+ };
7595
+ Update: {
7596
+ created_at?: string;
7597
+ description?: string;
7598
+ id?: string;
7599
+ invoice_id?: string;
7600
+ kind?: string;
7601
+ quantity?: number;
7602
+ sort_order?: number;
7603
+ source_line_ref?: string | null;
7604
+ total_cents?: number;
7605
+ unit?: string;
7606
+ unit_price_cents?: number;
7607
+ };
7608
+ Relationships: [{
7609
+ foreignKeyName: "invoice_items_invoice_id_fkey";
7610
+ columns: ["invoice_id"];
7611
+ isOneToOne: false;
7612
+ referencedRelation: "invoices";
7613
+ referencedColumns: ["id"];
7614
+ }, {
7615
+ foreignKeyName: "invoice_items_invoice_id_fkey";
7616
+ columns: ["invoice_id"];
7617
+ isOneToOne: false;
7618
+ referencedRelation: "uren_facturen";
7619
+ referencedColumns: ["id"];
7620
+ }];
7621
+ };
7391
7622
  invoice_post_idempotency: {
7392
7623
  Row: {
7624
+ administration_code: string;
7393
7625
  client_request_id: string;
7394
7626
  completed_at: string | null;
7395
7627
  created_at: string;
@@ -7399,6 +7631,7 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
7399
7631
  user_id: string;
7400
7632
  };
7401
7633
  Insert: {
7634
+ administration_code?: string;
7402
7635
  client_request_id: string;
7403
7636
  completed_at?: string | null;
7404
7637
  created_at?: string;
@@ -7408,6 +7641,7 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
7408
7641
  user_id: string;
7409
7642
  };
7410
7643
  Update: {
7644
+ administration_code?: string;
7411
7645
  client_request_id?: string;
7412
7646
  completed_at?: string | null;
7413
7647
  created_at?: string;
@@ -7613,6 +7847,75 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
7613
7847
  };
7614
7848
  Relationships: [];
7615
7849
  };
7850
+ invoices: {
7851
+ Row: {
7852
+ created_at: string;
7853
+ created_by: string | null;
7854
+ customer_id: string | null;
7855
+ customer_name: string | null;
7856
+ due_date: string | null;
7857
+ id: string;
7858
+ invoice_date: string;
7859
+ invoice_number: string | null;
7860
+ note: string | null;
7861
+ source_number: string | null;
7862
+ source_ref: string | null;
7863
+ source_type: string;
7864
+ status: string;
7865
+ subtotal_cents: number;
7866
+ total_cents: number;
7867
+ updated_at: string;
7868
+ vat_cents: number;
7869
+ vat_rate: number;
7870
+ };
7871
+ Insert: {
7872
+ created_at?: string;
7873
+ created_by?: string | null;
7874
+ customer_id?: string | null;
7875
+ customer_name?: string | null;
7876
+ due_date?: string | null;
7877
+ id?: string;
7878
+ invoice_date?: string;
7879
+ invoice_number?: string | null;
7880
+ note?: string | null;
7881
+ source_number?: string | null;
7882
+ source_ref?: string | null;
7883
+ source_type?: string;
7884
+ status?: string;
7885
+ subtotal_cents?: number;
7886
+ total_cents?: number;
7887
+ updated_at?: string;
7888
+ vat_cents?: number;
7889
+ vat_rate?: number;
7890
+ };
7891
+ Update: {
7892
+ created_at?: string;
7893
+ created_by?: string | null;
7894
+ customer_id?: string | null;
7895
+ customer_name?: string | null;
7896
+ due_date?: string | null;
7897
+ id?: string;
7898
+ invoice_date?: string;
7899
+ invoice_number?: string | null;
7900
+ note?: string | null;
7901
+ source_number?: string | null;
7902
+ source_ref?: string | null;
7903
+ source_type?: string;
7904
+ status?: string;
7905
+ subtotal_cents?: number;
7906
+ total_cents?: number;
7907
+ updated_at?: string;
7908
+ vat_cents?: number;
7909
+ vat_rate?: number;
7910
+ };
7911
+ Relationships: [{
7912
+ foreignKeyName: "invoices_customer_id_fkey";
7913
+ columns: ["customer_id"];
7914
+ isOneToOne: false;
7915
+ referencedRelation: "itk_customers";
7916
+ referencedColumns: ["id"];
7917
+ }];
7918
+ };
7616
7919
  itk_contact_persons: {
7617
7920
  Row: {
7618
7921
  created_at: string;
@@ -8960,6 +9263,10 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
8960
9263
  id: string;
8961
9264
  last_error: string | null;
8962
9265
  last_error_at: string | null;
9266
+ last_error_code: string | null;
9267
+ last_gateway_status: number | null;
9268
+ last_queued_at: string | null;
9269
+ last_response: import("../integrations/supabase/types").Json | null;
8963
9270
  last_sent_hash: string | null;
8964
9271
  locked_by: string | null;
8965
9272
  locked_until: string | null;
@@ -8980,6 +9287,10 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
8980
9287
  id?: string;
8981
9288
  last_error?: string | null;
8982
9289
  last_error_at?: string | null;
9290
+ last_error_code?: string | null;
9291
+ last_gateway_status?: number | null;
9292
+ last_queued_at?: string | null;
9293
+ last_response?: import("../integrations/supabase/types").Json | null;
8983
9294
  last_sent_hash?: string | null;
8984
9295
  locked_by?: string | null;
8985
9296
  locked_until?: string | null;
@@ -9000,6 +9311,10 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
9000
9311
  id?: string;
9001
9312
  last_error?: string | null;
9002
9313
  last_error_at?: string | null;
9314
+ last_error_code?: string | null;
9315
+ last_gateway_status?: number | null;
9316
+ last_queued_at?: string | null;
9317
+ last_response?: import("../integrations/supabase/types").Json | null;
9003
9318
  last_sent_hash?: string | null;
9004
9319
  locked_by?: string | null;
9005
9320
  locked_until?: string | null;
@@ -10553,6 +10868,7 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
10553
10868
  enforce: boolean;
10554
10869
  is_active: boolean;
10555
10870
  last_seen_at: string;
10871
+ missing_count: number;
10556
10872
  module_id: string;
10557
10873
  name: string;
10558
10874
  shell_id: string | null;
@@ -10563,6 +10879,7 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
10563
10879
  enforce?: boolean;
10564
10880
  is_active?: boolean;
10565
10881
  last_seen_at?: string;
10882
+ missing_count?: number;
10566
10883
  module_id: string;
10567
10884
  name: string;
10568
10885
  shell_id?: string | null;
@@ -10573,6 +10890,7 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
10573
10890
  enforce?: boolean;
10574
10891
  is_active?: boolean;
10575
10892
  last_seen_at?: string;
10893
+ missing_count?: number;
10576
10894
  module_id?: string;
10577
10895
  name?: string;
10578
10896
  shell_id?: string | null;
@@ -11572,6 +11890,7 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
11572
11890
  };
11573
11891
  order_invoice_links: {
11574
11892
  Row: {
11893
+ administration_code: string | null;
11575
11894
  attempts: number;
11576
11895
  created_at: string;
11577
11896
  error_message: string | null;
@@ -11584,6 +11903,7 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
11584
11903
  updated_at: string;
11585
11904
  };
11586
11905
  Insert: {
11906
+ administration_code?: string | null;
11587
11907
  attempts?: number;
11588
11908
  created_at?: string;
11589
11909
  error_message?: string | null;
@@ -11596,6 +11916,7 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
11596
11916
  updated_at?: string;
11597
11917
  };
11598
11918
  Update: {
11919
+ administration_code?: string | null;
11599
11920
  attempts?: number;
11600
11921
  created_at?: string;
11601
11922
  error_message?: string | null;
@@ -12761,6 +13082,27 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
12761
13082
  referencedColumns: ["id"];
12762
13083
  }];
12763
13084
  };
13085
+ pick_sync_state: {
13086
+ Row: {
13087
+ id: boolean;
13088
+ last_cleanup_at: string | null;
13089
+ last_sync_at: string | null;
13090
+ updated_at: string;
13091
+ };
13092
+ Insert: {
13093
+ id?: boolean;
13094
+ last_cleanup_at?: string | null;
13095
+ last_sync_at?: string | null;
13096
+ updated_at?: string;
13097
+ };
13098
+ Update: {
13099
+ id?: boolean;
13100
+ last_cleanup_at?: string | null;
13101
+ last_sync_at?: string | null;
13102
+ updated_at?: string;
13103
+ };
13104
+ Relationships: [];
13105
+ };
12764
13106
  pick_task_document_types: {
12765
13107
  Row: {
12766
13108
  created_at: string;
@@ -13043,6 +13385,7 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
13043
13385
  gebruiker_id: string | null;
13044
13386
  gebruiker_naam: string;
13045
13387
  gestart_op: string | null;
13388
+ herkomst: string | null;
13046
13389
  id: string;
13047
13390
  idempotentie_sleutel: string | null;
13048
13391
  is_herprint: boolean;
@@ -13072,6 +13415,7 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
13072
13415
  gebruiker_id?: string | null;
13073
13416
  gebruiker_naam?: string;
13074
13417
  gestart_op?: string | null;
13418
+ herkomst?: string | null;
13075
13419
  id?: string;
13076
13420
  idempotentie_sleutel?: string | null;
13077
13421
  is_herprint?: boolean;
@@ -13101,6 +13445,7 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
13101
13445
  gebruiker_id?: string | null;
13102
13446
  gebruiker_naam?: string;
13103
13447
  gestart_op?: string | null;
13448
+ herkomst?: string | null;
13104
13449
  id?: string;
13105
13450
  idempotentie_sleutel?: string | null;
13106
13451
  is_herprint?: boolean;
@@ -13139,6 +13484,99 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
13139
13484
  referencedColumns: ["id"];
13140
13485
  }];
13141
13486
  };
13487
+ print_plek_computers: {
13488
+ Row: {
13489
+ computer_naam: string;
13490
+ created_at: string;
13491
+ id: string;
13492
+ print_plek_id: string;
13493
+ updated_at: string;
13494
+ };
13495
+ Insert: {
13496
+ computer_naam: string;
13497
+ created_at?: string;
13498
+ id?: string;
13499
+ print_plek_id: string;
13500
+ updated_at?: string;
13501
+ };
13502
+ Update: {
13503
+ computer_naam?: string;
13504
+ created_at?: string;
13505
+ id?: string;
13506
+ print_plek_id?: string;
13507
+ updated_at?: string;
13508
+ };
13509
+ Relationships: [{
13510
+ foreignKeyName: "print_plek_computers_print_plek_id_fkey";
13511
+ columns: ["print_plek_id"];
13512
+ isOneToOne: false;
13513
+ referencedRelation: "print_plekken";
13514
+ referencedColumns: ["id"];
13515
+ }];
13516
+ };
13517
+ print_plek_koppelingen: {
13518
+ Row: {
13519
+ bron: string;
13520
+ bron_id: string;
13521
+ created_at: string;
13522
+ id: string;
13523
+ label: string | null;
13524
+ print_plek_id: string;
13525
+ updated_at: string;
13526
+ };
13527
+ Insert: {
13528
+ bron: string;
13529
+ bron_id: string;
13530
+ created_at?: string;
13531
+ id?: string;
13532
+ label?: string | null;
13533
+ print_plek_id: string;
13534
+ updated_at?: string;
13535
+ };
13536
+ Update: {
13537
+ bron?: string;
13538
+ bron_id?: string;
13539
+ created_at?: string;
13540
+ id?: string;
13541
+ label?: string | null;
13542
+ print_plek_id?: string;
13543
+ updated_at?: string;
13544
+ };
13545
+ Relationships: [{
13546
+ foreignKeyName: "print_plek_koppelingen_print_plek_id_fkey";
13547
+ columns: ["print_plek_id"];
13548
+ isOneToOne: false;
13549
+ referencedRelation: "print_plekken";
13550
+ referencedColumns: ["id"];
13551
+ }];
13552
+ };
13553
+ print_plekken: {
13554
+ Row: {
13555
+ actief: boolean;
13556
+ created_at: string;
13557
+ id: string;
13558
+ naam: string;
13559
+ omschrijving: string | null;
13560
+ updated_at: string;
13561
+ };
13562
+ Insert: {
13563
+ actief?: boolean;
13564
+ created_at?: string;
13565
+ id?: string;
13566
+ naam: string;
13567
+ omschrijving?: string | null;
13568
+ updated_at?: string;
13569
+ };
13570
+ Update: {
13571
+ actief?: boolean;
13572
+ created_at?: string;
13573
+ id?: string;
13574
+ naam?: string;
13575
+ omschrijving?: string | null;
13576
+ updated_at?: string;
13577
+ };
13578
+ Relationships: [];
13579
+ };
13142
13580
  print_queue_runners: {
13143
13581
  Row: {
13144
13582
  actief: boolean;
@@ -15293,6 +15731,45 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
15293
15731
  };
15294
15732
  Relationships: [];
15295
15733
  };
15734
+ stock_consumption_alerts: {
15735
+ Row: {
15736
+ alert_type: string;
15737
+ created_at: string;
15738
+ id: string;
15739
+ mutation_log_id: string | null;
15740
+ order_id: string | null;
15741
+ order_item_id: string | null;
15742
+ qty: number;
15743
+ reason: string | null;
15744
+ resolved_at: string | null;
15745
+ updated_at: string;
15746
+ };
15747
+ Insert: {
15748
+ alert_type: string;
15749
+ created_at?: string;
15750
+ id?: string;
15751
+ mutation_log_id?: string | null;
15752
+ order_id?: string | null;
15753
+ order_item_id?: string | null;
15754
+ qty?: number;
15755
+ reason?: string | null;
15756
+ resolved_at?: string | null;
15757
+ updated_at?: string;
15758
+ };
15759
+ Update: {
15760
+ alert_type?: string;
15761
+ created_at?: string;
15762
+ id?: string;
15763
+ mutation_log_id?: string | null;
15764
+ order_id?: string | null;
15765
+ order_item_id?: string | null;
15766
+ qty?: number;
15767
+ reason?: string | null;
15768
+ resolved_at?: string | null;
15769
+ updated_at?: string;
15770
+ };
15771
+ Relationships: [];
15772
+ };
15296
15773
  stock_import_runs: {
15297
15774
  Row: {
15298
15775
  connection_id: string | null;
@@ -16105,12 +16582,16 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
16105
16582
  company_name: string | null;
16106
16583
  connected_at: string | null;
16107
16584
  created_at: string;
16585
+ disconnected_at: string | null;
16108
16586
  environment: string;
16109
16587
  id: string;
16588
+ initial_sync_completed_at: string | null;
16589
+ initial_sync_started_at: string | null;
16110
16590
  is_active: boolean;
16111
16591
  label: string | null;
16112
16592
  office_code: string | null;
16113
16593
  redirect_uri: string | null;
16594
+ superseded_at: string | null;
16114
16595
  updated_at: string;
16115
16596
  user_id: string;
16116
16597
  };
@@ -16121,12 +16602,16 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
16121
16602
  company_name?: string | null;
16122
16603
  connected_at?: string | null;
16123
16604
  created_at?: string;
16605
+ disconnected_at?: string | null;
16124
16606
  environment: string;
16125
16607
  id?: string;
16608
+ initial_sync_completed_at?: string | null;
16609
+ initial_sync_started_at?: string | null;
16126
16610
  is_active?: boolean;
16127
16611
  label?: string | null;
16128
16612
  office_code?: string | null;
16129
16613
  redirect_uri?: string | null;
16614
+ superseded_at?: string | null;
16130
16615
  updated_at?: string;
16131
16616
  user_id: string;
16132
16617
  };
@@ -16137,12 +16622,16 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
16137
16622
  company_name?: string | null;
16138
16623
  connected_at?: string | null;
16139
16624
  created_at?: string;
16625
+ disconnected_at?: string | null;
16140
16626
  environment?: string;
16141
16627
  id?: string;
16628
+ initial_sync_completed_at?: string | null;
16629
+ initial_sync_started_at?: string | null;
16142
16630
  is_active?: boolean;
16143
16631
  label?: string | null;
16144
16632
  office_code?: string | null;
16145
16633
  redirect_uri?: string | null;
16634
+ superseded_at?: string | null;
16146
16635
  updated_at?: string;
16147
16636
  user_id?: string;
16148
16637
  };
@@ -16202,6 +16691,7 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
16202
16691
  twinfield_customers: {
16203
16692
  Row: {
16204
16693
  address: string | null;
16694
+ administration_code: string;
16205
16695
  city: string | null;
16206
16696
  country: string | null;
16207
16697
  created_at: string;
@@ -16221,6 +16711,7 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
16221
16711
  };
16222
16712
  Insert: {
16223
16713
  address?: string | null;
16714
+ administration_code?: string;
16224
16715
  city?: string | null;
16225
16716
  country?: string | null;
16226
16717
  created_at?: string;
@@ -16240,6 +16731,7 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
16240
16731
  };
16241
16732
  Update: {
16242
16733
  address?: string | null;
16734
+ administration_code?: string;
16243
16735
  city?: string | null;
16244
16736
  country?: string | null;
16245
16737
  created_at?: string;
@@ -16453,7 +16945,9 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
16453
16945
  };
16454
16946
  twinfield_invoice_settings: {
16455
16947
  Row: {
16948
+ administration_code: string | null;
16456
16949
  auto_invoice_enabled: boolean;
16950
+ auto_invoice_start_date: string | null;
16457
16951
  auto_invoice_trigger_statuses: string[];
16458
16952
  created_at: string;
16459
16953
  debtor_gl_account: string;
@@ -16467,15 +16961,19 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
16467
16961
  invoice_enabled_fo: boolean;
16468
16962
  invoice_enabled_ho: boolean;
16469
16963
  invoice_enabled_mo: boolean;
16964
+ needs_review: boolean;
16470
16965
  payment_gl_account: string;
16471
16966
  payment_journal_code: string;
16967
+ settings_confirmed_at: string | null;
16472
16968
  updated_at: string;
16473
16969
  user_id: string;
16474
16970
  vat_code_eu_reverse: string | null;
16475
16971
  vat_code_export: string | null;
16476
16972
  };
16477
16973
  Insert: {
16974
+ administration_code?: string | null;
16478
16975
  auto_invoice_enabled?: boolean;
16976
+ auto_invoice_start_date?: string | null;
16479
16977
  auto_invoice_trigger_statuses?: string[];
16480
16978
  created_at?: string;
16481
16979
  debtor_gl_account?: string;
@@ -16489,15 +16987,19 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
16489
16987
  invoice_enabled_fo?: boolean;
16490
16988
  invoice_enabled_ho?: boolean;
16491
16989
  invoice_enabled_mo?: boolean;
16990
+ needs_review?: boolean;
16492
16991
  payment_gl_account?: string;
16493
16992
  payment_journal_code?: string;
16993
+ settings_confirmed_at?: string | null;
16494
16994
  updated_at?: string;
16495
16995
  user_id: string;
16496
16996
  vat_code_eu_reverse?: string | null;
16497
16997
  vat_code_export?: string | null;
16498
16998
  };
16499
16999
  Update: {
17000
+ administration_code?: string | null;
16500
17001
  auto_invoice_enabled?: boolean;
17002
+ auto_invoice_start_date?: string | null;
16501
17003
  auto_invoice_trigger_statuses?: string[];
16502
17004
  created_at?: string;
16503
17005
  debtor_gl_account?: string;
@@ -16511,8 +17013,10 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
16511
17013
  invoice_enabled_fo?: boolean;
16512
17014
  invoice_enabled_ho?: boolean;
16513
17015
  invoice_enabled_mo?: boolean;
17016
+ needs_review?: boolean;
16514
17017
  payment_gl_account?: string;
16515
17018
  payment_journal_code?: string;
17019
+ settings_confirmed_at?: string | null;
16516
17020
  updated_at?: string;
16517
17021
  user_id?: string;
16518
17022
  vat_code_eu_reverse?: string | null;
@@ -17117,114 +17621,6 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
17117
17621
  };
17118
17622
  Relationships: [];
17119
17623
  };
17120
- uren_facturen: {
17121
- Row: {
17122
- created_at: string;
17123
- created_by: string | null;
17124
- customer_id: string | null;
17125
- customer_name: string | null;
17126
- id: string;
17127
- invoice_number: string | null;
17128
- note: string | null;
17129
- status: string;
17130
- total_excl_cents: number;
17131
- total_incl_cents: number;
17132
- updated_at: string;
17133
- vat_cents: number;
17134
- vat_percentage: number;
17135
- werkbon_id: string | null;
17136
- };
17137
- Insert: {
17138
- created_at?: string;
17139
- created_by?: string | null;
17140
- customer_id?: string | null;
17141
- customer_name?: string | null;
17142
- id?: string;
17143
- invoice_number?: string | null;
17144
- note?: string | null;
17145
- status?: string;
17146
- total_excl_cents?: number;
17147
- total_incl_cents?: number;
17148
- updated_at?: string;
17149
- vat_cents?: number;
17150
- vat_percentage?: number;
17151
- werkbon_id?: string | null;
17152
- };
17153
- Update: {
17154
- created_at?: string;
17155
- created_by?: string | null;
17156
- customer_id?: string | null;
17157
- customer_name?: string | null;
17158
- id?: string;
17159
- invoice_number?: string | null;
17160
- note?: string | null;
17161
- status?: string;
17162
- total_excl_cents?: number;
17163
- total_incl_cents?: number;
17164
- updated_at?: string;
17165
- vat_cents?: number;
17166
- vat_percentage?: number;
17167
- werkbon_id?: string | null;
17168
- };
17169
- Relationships: [{
17170
- foreignKeyName: "uren_facturen_customer_id_fkey";
17171
- columns: ["customer_id"];
17172
- isOneToOne: false;
17173
- referencedRelation: "itk_customers";
17174
- referencedColumns: ["id"];
17175
- }, {
17176
- foreignKeyName: "uren_facturen_werkbon_id_fkey";
17177
- columns: ["werkbon_id"];
17178
- isOneToOne: true;
17179
- referencedRelation: "werkbonnen";
17180
- referencedColumns: ["id"];
17181
- }];
17182
- };
17183
- uren_factuur_regels: {
17184
- Row: {
17185
- created_at: string;
17186
- description: string;
17187
- factuur_id: string;
17188
- id: string;
17189
- kind: string | null;
17190
- quantity: number;
17191
- sort_order: number;
17192
- total_cents: number;
17193
- unit: string;
17194
- unit_price_cents: number;
17195
- };
17196
- Insert: {
17197
- created_at?: string;
17198
- description: string;
17199
- factuur_id: string;
17200
- id?: string;
17201
- kind?: string | null;
17202
- quantity?: number;
17203
- sort_order?: number;
17204
- total_cents?: number;
17205
- unit?: string;
17206
- unit_price_cents?: number;
17207
- };
17208
- Update: {
17209
- created_at?: string;
17210
- description?: string;
17211
- factuur_id?: string;
17212
- id?: string;
17213
- kind?: string | null;
17214
- quantity?: number;
17215
- sort_order?: number;
17216
- total_cents?: number;
17217
- unit?: string;
17218
- unit_price_cents?: number;
17219
- };
17220
- Relationships: [{
17221
- foreignKeyName: "uren_factuur_regels_factuur_id_fkey";
17222
- columns: ["factuur_id"];
17223
- isOneToOne: false;
17224
- referencedRelation: "uren_facturen";
17225
- referencedColumns: ["id"];
17226
- }];
17227
- };
17228
17624
  uren_offerte_regels: {
17229
17625
  Row: {
17230
17626
  created_at: string;
@@ -18478,6 +18874,9 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
18478
18874
  scheduled_end_time: string | null;
18479
18875
  scheduled_start_time: string | null;
18480
18876
  sequence_number: number;
18877
+ signature_accepted_at: string | null;
18878
+ signature_by_user_id: string | null;
18879
+ signature_name: string | null;
18481
18880
  source_email_meta: import("../integrations/supabase/types").Json | null;
18482
18881
  source_mailbox_message_id: string | null;
18483
18882
  source_pdf_path: string | null;
@@ -18513,6 +18912,9 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
18513
18912
  scheduled_end_time?: string | null;
18514
18913
  scheduled_start_time?: string | null;
18515
18914
  sequence_number: number;
18915
+ signature_accepted_at?: string | null;
18916
+ signature_by_user_id?: string | null;
18917
+ signature_name?: string | null;
18516
18918
  source_email_meta?: import("../integrations/supabase/types").Json | null;
18517
18919
  source_mailbox_message_id?: string | null;
18518
18920
  source_pdf_path?: string | null;
@@ -18548,6 +18950,9 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
18548
18950
  scheduled_end_time?: string | null;
18549
18951
  scheduled_start_time?: string | null;
18550
18952
  sequence_number?: number;
18953
+ signature_accepted_at?: string | null;
18954
+ signature_by_user_id?: string | null;
18955
+ signature_name?: string | null;
18551
18956
  source_email_meta?: import("../integrations/supabase/types").Json | null;
18552
18957
  source_mailbox_message_id?: string | null;
18553
18958
  source_pdf_path?: string | null;
@@ -19064,6 +19469,114 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
19064
19469
  };
19065
19470
  Relationships: [];
19066
19471
  };
19472
+ uren_facturen: {
19473
+ Row: {
19474
+ created_at: string | null;
19475
+ created_by: string | null;
19476
+ customer_id: string | null;
19477
+ customer_name: string | null;
19478
+ id: string | null;
19479
+ invoice_number: string | null;
19480
+ note: string | null;
19481
+ status: string | null;
19482
+ total_excl_cents: number | null;
19483
+ total_incl_cents: number | null;
19484
+ updated_at: string | null;
19485
+ vat_cents: number | null;
19486
+ vat_percentage: number | null;
19487
+ werkbon_id: string | null;
19488
+ };
19489
+ Insert: {
19490
+ created_at?: string | null;
19491
+ created_by?: string | null;
19492
+ customer_id?: string | null;
19493
+ customer_name?: string | null;
19494
+ id?: string | null;
19495
+ invoice_number?: string | null;
19496
+ note?: string | null;
19497
+ status?: string | null;
19498
+ total_excl_cents?: number | null;
19499
+ total_incl_cents?: number | null;
19500
+ updated_at?: string | null;
19501
+ vat_cents?: number | null;
19502
+ vat_percentage?: number | null;
19503
+ werkbon_id?: never;
19504
+ };
19505
+ Update: {
19506
+ created_at?: string | null;
19507
+ created_by?: string | null;
19508
+ customer_id?: string | null;
19509
+ customer_name?: string | null;
19510
+ id?: string | null;
19511
+ invoice_number?: string | null;
19512
+ note?: string | null;
19513
+ status?: string | null;
19514
+ total_excl_cents?: number | null;
19515
+ total_incl_cents?: number | null;
19516
+ updated_at?: string | null;
19517
+ vat_cents?: number | null;
19518
+ vat_percentage?: number | null;
19519
+ werkbon_id?: never;
19520
+ };
19521
+ Relationships: [{
19522
+ foreignKeyName: "invoices_customer_id_fkey";
19523
+ columns: ["customer_id"];
19524
+ isOneToOne: false;
19525
+ referencedRelation: "itk_customers";
19526
+ referencedColumns: ["id"];
19527
+ }];
19528
+ };
19529
+ uren_factuur_regels: {
19530
+ Row: {
19531
+ created_at: string | null;
19532
+ description: string | null;
19533
+ factuur_id: string | null;
19534
+ id: string | null;
19535
+ kind: string | null;
19536
+ quantity: number | null;
19537
+ sort_order: number | null;
19538
+ total_cents: number | null;
19539
+ unit: string | null;
19540
+ unit_price_cents: number | null;
19541
+ };
19542
+ Insert: {
19543
+ created_at?: string | null;
19544
+ description?: string | null;
19545
+ factuur_id?: string | null;
19546
+ id?: string | null;
19547
+ kind?: string | null;
19548
+ quantity?: number | null;
19549
+ sort_order?: number | null;
19550
+ total_cents?: number | null;
19551
+ unit?: string | null;
19552
+ unit_price_cents?: number | null;
19553
+ };
19554
+ Update: {
19555
+ created_at?: string | null;
19556
+ description?: string | null;
19557
+ factuur_id?: string | null;
19558
+ id?: string | null;
19559
+ kind?: string | null;
19560
+ quantity?: number | null;
19561
+ sort_order?: number | null;
19562
+ total_cents?: number | null;
19563
+ unit?: string | null;
19564
+ unit_price_cents?: number | null;
19565
+ };
19566
+ Relationships: [{
19567
+ foreignKeyName: "invoice_items_invoice_id_fkey";
19568
+ columns: ["factuur_id"];
19569
+ isOneToOne: false;
19570
+ referencedRelation: "invoices";
19571
+ referencedColumns: ["id"];
19572
+ }, {
19573
+ foreignKeyName: "invoice_items_invoice_id_fkey";
19574
+ columns: ["factuur_id"];
19575
+ isOneToOne: false;
19576
+ referencedRelation: "uren_facturen";
19577
+ referencedColumns: ["id"];
19578
+ }];
19579
+ };
19067
19580
  v_external_customers_exact: {
19068
19581
  Row: {
19069
19582
  account_number: string | null;
@@ -19569,6 +20082,7 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
19569
20082
  gebruiker_id: string | null;
19570
20083
  gebruiker_naam: string;
19571
20084
  gestart_op: string | null;
20085
+ herkomst: string | null;
19572
20086
  id: string;
19573
20087
  idempotentie_sleutel: string | null;
19574
20088
  is_herprint: boolean;
@@ -19689,6 +20203,7 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
19689
20203
  gebruiker_id: string | null;
19690
20204
  gebruiker_naam: string;
19691
20205
  gestart_op: string | null;
20206
+ herkomst: string | null;
19692
20207
  id: string;
19693
20208
  idempotentie_sleutel: string | null;
19694
20209
  is_herprint: boolean;
@@ -20290,6 +20805,46 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
20290
20805
  Args: never;
20291
20806
  Returns: boolean;
20292
20807
  };
20808
+ invoice_create_from_source: {
20809
+ Args: {
20810
+ _payload?: import("../integrations/supabase/types").Json;
20811
+ _source_id: string;
20812
+ _source_type: string;
20813
+ };
20814
+ Returns: import("../integrations/supabase/types").Json;
20815
+ };
20816
+ invoice_get_billable_lines: {
20817
+ Args: {
20818
+ _invoice_id: string;
20819
+ };
20820
+ Returns: import("../integrations/supabase/types").Json;
20821
+ };
20822
+ invoice_get_for_source: {
20823
+ Args: {
20824
+ _source_id: string;
20825
+ _source_type: string;
20826
+ };
20827
+ Returns: import("../integrations/supabase/types").Json;
20828
+ };
20829
+ invoice_get_summary: {
20830
+ Args: {
20831
+ _invoice_id: string;
20832
+ };
20833
+ Returns: import("../integrations/supabase/types").Json;
20834
+ };
20835
+ invoice_list_sources: {
20836
+ Args: {
20837
+ _limit?: number;
20838
+ _source_type?: string;
20839
+ };
20840
+ Returns: import("../integrations/supabase/types").Json;
20841
+ };
20842
+ invoice_recalc_totals: {
20843
+ Args: {
20844
+ _invoice_id: string;
20845
+ };
20846
+ Returns: import("../integrations/supabase/types").Json;
20847
+ };
20293
20848
  is_authenticated: {
20294
20849
  Args: never;
20295
20850
  Returns: boolean;
@@ -20358,6 +20913,29 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
20358
20913
  roles: string[];
20359
20914
  }[];
20360
20915
  };
20916
+ list_monteur_absences: {
20917
+ Args: {
20918
+ _from: string;
20919
+ _to: string;
20920
+ };
20921
+ Returns: {
20922
+ absence_date: string;
20923
+ end_time: string;
20924
+ full_day: boolean;
20925
+ kind: string;
20926
+ monteur_id: string;
20927
+ start_time: string;
20928
+ }[];
20929
+ };
20930
+ list_monteurs: {
20931
+ Args: never;
20932
+ Returns: {
20933
+ avatar_url: string;
20934
+ display_name: string;
20935
+ email: string;
20936
+ id: string;
20937
+ }[];
20938
+ };
20361
20939
  list_my_planning_items: {
20362
20940
  Args: {
20363
20941
  _from: string;
@@ -20769,6 +21347,41 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
20769
21347
  };
20770
21348
  Returns: string;
20771
21349
  };
21350
+ logistics_floriday_finish_push_v2: {
21351
+ Args: {
21352
+ _error?: string;
21353
+ _error_code?: string;
21354
+ _fulfillment_order_id?: string;
21355
+ _gateway_status?: number;
21356
+ _id: string;
21357
+ _max_age_hours?: number;
21358
+ _max_attempts?: number;
21359
+ _ok: boolean;
21360
+ _permanent?: boolean;
21361
+ _response?: import("../integrations/supabase/types").Json;
21362
+ _revision: number;
21363
+ _sent_hash?: string;
21364
+ };
21365
+ Returns: string;
21366
+ };
21367
+ logistics_floriday_finish_push_v3: {
21368
+ Args: {
21369
+ _error?: string;
21370
+ _error_code?: string;
21371
+ _fulfillment_order_id?: string;
21372
+ _gateway_status?: number;
21373
+ _id: string;
21374
+ _max_age_hours?: number;
21375
+ _max_attempts?: number;
21376
+ _outcome: string;
21377
+ _permanent?: boolean;
21378
+ _response?: import("../integrations/supabase/types").Json;
21379
+ _revision: number;
21380
+ _sent_hash?: string;
21381
+ _wait_max_age_hours?: number;
21382
+ };
21383
+ Returns: string;
21384
+ };
20772
21385
  logistics_floriday_prune_pushes: {
20773
21386
  Args: {
20774
21387
  _days?: number;
@@ -21197,6 +21810,12 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
21197
21810
  verwijderd: number;
21198
21811
  }[];
21199
21812
  };
21813
+ order_departure_proof: {
21814
+ Args: {
21815
+ p_order_id: string;
21816
+ };
21817
+ Returns: import("../integrations/supabase/types").Json;
21818
+ };
21200
21819
  order_number_prefix: {
21201
21820
  Args: {
21202
21821
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -21311,6 +21930,13 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
21311
21930
  isSetofReturn: false;
21312
21931
  };
21313
21932
  };
21933
+ pick_cleanup_maintenance: {
21934
+ Args: {
21935
+ _heartbeat_hours?: number;
21936
+ _log_days?: number;
21937
+ };
21938
+ Returns: import("../integrations/supabase/types").Json;
21939
+ };
21314
21940
  pick_complete_print: {
21315
21941
  Args: {
21316
21942
  _printer_id: string;
@@ -21362,6 +21988,14 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
21362
21988
  Args: never;
21363
21989
  Returns: string;
21364
21990
  };
21991
+ pick_day_counts: {
21992
+ Args: {
21993
+ _pick_day?: string;
21994
+ _screen_id?: string;
21995
+ _station_id?: string;
21996
+ };
21997
+ Returns: import("../integrations/supabase/types").Json;
21998
+ };
21365
21999
  pick_document_layout_data: {
21366
22000
  Args: {
21367
22001
  _layout_id: string;
@@ -21389,6 +22023,14 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
21389
22023
  };
21390
22024
  Returns: import("../integrations/supabase/types").Json;
21391
22025
  };
22026
+ pick_print_plekken: {
22027
+ Args: never;
22028
+ Returns: {
22029
+ id: string;
22030
+ naam: string;
22031
+ omschrijving: string;
22032
+ }[];
22033
+ };
21392
22034
  pick_release_expired_locks: {
21393
22035
  Args: never;
21394
22036
  Returns: number;
@@ -21399,6 +22041,14 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
21399
22041
  };
21400
22042
  Returns: undefined;
21401
22043
  };
22044
+ pick_reprint_document: {
22045
+ Args: {
22046
+ _queue_item_id: string;
22047
+ _session_id: string;
22048
+ _throttle_seconds?: number;
22049
+ };
22050
+ Returns: string;
22051
+ };
21402
22052
  pick_reset_print: {
21403
22053
  Args: {
21404
22054
  _queue_item_id: string;
@@ -21445,6 +22095,13 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
21445
22095
  isSetofReturn: false;
21446
22096
  };
21447
22097
  };
22098
+ pick_set_station_print_plek: {
22099
+ Args: {
22100
+ _print_plek_id: string;
22101
+ _station_id: string;
22102
+ };
22103
+ Returns: string;
22104
+ };
21448
22105
  pick_station_dashboard: {
21449
22106
  Args: never;
21450
22107
  Returns: {
@@ -21457,6 +22114,25 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
21457
22114
  waiting: number;
21458
22115
  }[];
21459
22116
  };
22117
+ pick_station_print_plek: {
22118
+ Args: {
22119
+ _station_id: string;
22120
+ };
22121
+ Returns: {
22122
+ naam: string;
22123
+ omschrijving: string;
22124
+ print_plek_id: string;
22125
+ }[];
22126
+ };
22127
+ pick_station_print_plekken: {
22128
+ Args: never;
22129
+ Returns: {
22130
+ naam: string;
22131
+ omschrijving: string;
22132
+ print_plek_id: string;
22133
+ station_id: string;
22134
+ }[];
22135
+ };
21460
22136
  pick_station_slugify: {
21461
22137
  Args: {
21462
22138
  _id: string;
@@ -21464,6 +22140,12 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
21464
22140
  };
21465
22141
  Returns: string;
21466
22142
  };
22143
+ pick_sync_queue_throttled: {
22144
+ Args: {
22145
+ _min_seconds?: number;
22146
+ };
22147
+ Returns: import("../integrations/supabase/types").Json;
22148
+ };
21467
22149
  pickstation_get_orders_raw: {
21468
22150
  Args: never;
21469
22151
  Returns: import("../integrations/supabase/types").Json;
@@ -21609,6 +22291,12 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
21609
22291
  };
21610
22292
  Returns: boolean;
21611
22293
  };
22294
+ release_stale_order_invoice_links: {
22295
+ Args: {
22296
+ _minutes?: number;
22297
+ };
22298
+ Returns: number;
22299
+ };
21612
22300
  reorder_customer_price_groups: {
21613
22301
  Args: {
21614
22302
  _ids: string[];
@@ -22127,6 +22815,20 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
22127
22815
  };
22128
22816
  Returns: undefined;
22129
22817
  };
22818
+ twinfield_deactivate_connection: {
22819
+ Args: {
22820
+ p_connection_id: string;
22821
+ p_user_id: string;
22822
+ };
22823
+ Returns: import("../integrations/supabase/types").Json;
22824
+ };
22825
+ twinfield_handle_administration_change: {
22826
+ Args: {
22827
+ _administration_code: string;
22828
+ _user_id: string;
22829
+ };
22830
+ Returns: undefined;
22831
+ };
22130
22832
  twinfield_prune_push_queue: {
22131
22833
  Args: never;
22132
22834
  Returns: number;
@@ -22146,10 +22848,11 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
22146
22848
  p_company_name?: string;
22147
22849
  p_environment: string;
22148
22850
  p_office_code?: string;
22851
+ p_reset_sync?: boolean;
22149
22852
  p_status?: string;
22150
22853
  p_user_id: string;
22151
22854
  };
22152
- Returns: string;
22855
+ Returns: import("../integrations/supabase/types").Json;
22153
22856
  };
22154
22857
  upsert_auto_fulfillment_log: {
22155
22858
  Args: {
@@ -22895,6 +23598,99 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
22895
23598
  };
22896
23599
  Relationships: [];
22897
23600
  };
23601
+ artikelen_cache: {
23602
+ Row: {
23603
+ artikelcode: string;
23604
+ bron: string;
23605
+ bruto_prijs_cent: number | null;
23606
+ created_at: string;
23607
+ eenheid: string;
23608
+ fabrikant: string | null;
23609
+ fetched_at: string;
23610
+ gtin: string | null;
23611
+ id: string;
23612
+ naam: string;
23613
+ netto_prijs_cent: number | null;
23614
+ omschrijving: string | null;
23615
+ raw: import("../integrations/supabase/types").Json;
23616
+ updated_at: string;
23617
+ valuta: string;
23618
+ };
23619
+ Insert: {
23620
+ artikelcode: string;
23621
+ bron?: string;
23622
+ bruto_prijs_cent?: number | null;
23623
+ created_at?: string;
23624
+ eenheid?: string;
23625
+ fabrikant?: string | null;
23626
+ fetched_at?: string;
23627
+ gtin?: string | null;
23628
+ id?: string;
23629
+ naam: string;
23630
+ netto_prijs_cent?: number | null;
23631
+ omschrijving?: string | null;
23632
+ raw?: import("../integrations/supabase/types").Json;
23633
+ updated_at?: string;
23634
+ valuta?: string;
23635
+ };
23636
+ Update: {
23637
+ artikelcode?: string;
23638
+ bron?: string;
23639
+ bruto_prijs_cent?: number | null;
23640
+ created_at?: string;
23641
+ eenheid?: string;
23642
+ fabrikant?: string | null;
23643
+ fetched_at?: string;
23644
+ gtin?: string | null;
23645
+ id?: string;
23646
+ naam?: string;
23647
+ netto_prijs_cent?: number | null;
23648
+ omschrijving?: string | null;
23649
+ raw?: import("../integrations/supabase/types").Json;
23650
+ updated_at?: string;
23651
+ valuta?: string;
23652
+ };
23653
+ Relationships: [];
23654
+ };
23655
+ artikelen_veldconfig: {
23656
+ Row: {
23657
+ bron_pad: string;
23658
+ created_at: string;
23659
+ id: string;
23660
+ label: string;
23661
+ sort_order: number;
23662
+ type: string;
23663
+ updated_at: string;
23664
+ veld_key: string;
23665
+ zichtbaar_in_detail: boolean;
23666
+ zichtbaar_in_lijst: boolean;
23667
+ };
23668
+ Insert: {
23669
+ bron_pad: string;
23670
+ created_at?: string;
23671
+ id?: string;
23672
+ label: string;
23673
+ sort_order?: number;
23674
+ type?: string;
23675
+ updated_at?: string;
23676
+ veld_key: string;
23677
+ zichtbaar_in_detail?: boolean;
23678
+ zichtbaar_in_lijst?: boolean;
23679
+ };
23680
+ Update: {
23681
+ bron_pad?: string;
23682
+ created_at?: string;
23683
+ id?: string;
23684
+ label?: string;
23685
+ sort_order?: number;
23686
+ type?: string;
23687
+ updated_at?: string;
23688
+ veld_key?: string;
23689
+ zichtbaar_in_detail?: boolean;
23690
+ zichtbaar_in_lijst?: boolean;
23691
+ };
23692
+ Relationships: [];
23693
+ };
22898
23694
  booking_items: {
22899
23695
  Row: {
22900
23696
  booking_id: string;
@@ -24980,6 +25776,42 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
24980
25776
  };
24981
25777
  Relationships: [];
24982
25778
  };
25779
+ document_bronregels: {
25780
+ Row: {
25781
+ bron: string;
25782
+ created_at: string;
25783
+ documenttype: string;
25784
+ herkomst: string;
25785
+ id: string;
25786
+ layout_id: string | null;
25787
+ updated_at: string;
25788
+ };
25789
+ Insert: {
25790
+ bron?: string;
25791
+ created_at?: string;
25792
+ documenttype: string;
25793
+ herkomst: string;
25794
+ id?: string;
25795
+ layout_id?: string | null;
25796
+ updated_at?: string;
25797
+ };
25798
+ Update: {
25799
+ bron?: string;
25800
+ created_at?: string;
25801
+ documenttype?: string;
25802
+ herkomst?: string;
25803
+ id?: string;
25804
+ layout_id?: string | null;
25805
+ updated_at?: string;
25806
+ };
25807
+ Relationships: [{
25808
+ foreignKeyName: "document_bronregels_layout_id_fkey";
25809
+ columns: ["layout_id"];
25810
+ isOneToOne: false;
25811
+ referencedRelation: "document_layouts";
25812
+ referencedColumns: ["id"];
25813
+ }];
25814
+ };
24983
25815
  document_formaat_printers: {
24984
25816
  Row: {
24985
25817
  created_at: string;
@@ -25257,6 +26089,7 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
25257
26089
  Row: {
25258
26090
  actief: boolean;
25259
26091
  breedte_mm: number;
26092
+ bron: string;
25260
26093
  config: import("../integrations/supabase/types").Json;
25261
26094
  created_at: string;
25262
26095
  created_by: string | null;
@@ -25274,12 +26107,14 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
25274
26107
  orientatie: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
25275
26108
  page_settings: import("../integrations/supabase/types").Json;
25276
26109
  papierformaat: string;
26110
+ systeem: boolean;
25277
26111
  thumbnail_url: string | null;
25278
26112
  updated_at: string;
25279
26113
  };
25280
26114
  Insert: {
25281
26115
  actief?: boolean;
25282
26116
  breedte_mm?: number;
26117
+ bron?: string;
25283
26118
  config?: import("../integrations/supabase/types").Json;
25284
26119
  created_at?: string;
25285
26120
  created_by?: string | null;
@@ -25297,12 +26132,14 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
25297
26132
  orientatie?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
25298
26133
  page_settings?: import("../integrations/supabase/types").Json;
25299
26134
  papierformaat?: string;
26135
+ systeem?: boolean;
25300
26136
  thumbnail_url?: string | null;
25301
26137
  updated_at?: string;
25302
26138
  };
25303
26139
  Update: {
25304
26140
  actief?: boolean;
25305
26141
  breedte_mm?: number;
26142
+ bron?: string;
25306
26143
  config?: import("../integrations/supabase/types").Json;
25307
26144
  created_at?: string;
25308
26145
  created_by?: string | null;
@@ -25320,11 +26157,90 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
25320
26157
  orientatie?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
25321
26158
  page_settings?: import("../integrations/supabase/types").Json;
25322
26159
  papierformaat?: string;
26160
+ systeem?: boolean;
25323
26161
  thumbnail_url?: string | null;
25324
26162
  updated_at?: string;
25325
26163
  };
25326
26164
  Relationships: [];
25327
26165
  };
26166
+ document_printplek_printers: {
26167
+ Row: {
26168
+ created_at: string;
26169
+ documenttype: string;
26170
+ id: string;
26171
+ papierformaat: string | null;
26172
+ print_plek_id: string;
26173
+ printer_id: string | null;
26174
+ updated_at: string;
26175
+ };
26176
+ Insert: {
26177
+ created_at?: string;
26178
+ documenttype: string;
26179
+ id?: string;
26180
+ papierformaat?: string | null;
26181
+ print_plek_id: string;
26182
+ printer_id?: string | null;
26183
+ updated_at?: string;
26184
+ };
26185
+ Update: {
26186
+ created_at?: string;
26187
+ documenttype?: string;
26188
+ id?: string;
26189
+ papierformaat?: string | null;
26190
+ print_plek_id?: string;
26191
+ printer_id?: string | null;
26192
+ updated_at?: string;
26193
+ };
26194
+ Relationships: [{
26195
+ foreignKeyName: "document_printplek_printers_print_plek_id_fkey";
26196
+ columns: ["print_plek_id"];
26197
+ isOneToOne: false;
26198
+ referencedRelation: "print_plekken";
26199
+ referencedColumns: ["id"];
26200
+ }, {
26201
+ foreignKeyName: "document_printplek_printers_printer_id_fkey";
26202
+ columns: ["printer_id"];
26203
+ isOneToOne: false;
26204
+ referencedRelation: "printers";
26205
+ referencedColumns: ["id"];
26206
+ }];
26207
+ };
26208
+ document_werkplek_printers: {
26209
+ Row: {
26210
+ created_at: string;
26211
+ documenttype: string;
26212
+ id: string;
26213
+ papierformaat: string | null;
26214
+ printer_id: string | null;
26215
+ updated_at: string;
26216
+ werkplek: string;
26217
+ };
26218
+ Insert: {
26219
+ created_at?: string;
26220
+ documenttype: string;
26221
+ id?: string;
26222
+ papierformaat?: string | null;
26223
+ printer_id?: string | null;
26224
+ updated_at?: string;
26225
+ werkplek: string;
26226
+ };
26227
+ Update: {
26228
+ created_at?: string;
26229
+ documenttype?: string;
26230
+ id?: string;
26231
+ papierformaat?: string | null;
26232
+ printer_id?: string | null;
26233
+ updated_at?: string;
26234
+ werkplek?: string;
26235
+ };
26236
+ Relationships: [{
26237
+ foreignKeyName: "document_werkplek_printers_printer_id_fkey";
26238
+ columns: ["printer_id"];
26239
+ isOneToOne: false;
26240
+ referencedRelation: "printers";
26241
+ referencedColumns: ["id"];
26242
+ }];
26243
+ };
25328
26244
  email_auth_connections: {
25329
26245
  Row: {
25330
26246
  access_token_encrypted: string | null;
@@ -27266,42 +28182,6 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
27266
28182
  };
27267
28183
  Relationships: [];
27268
28184
  };
27269
- facturen: {
27270
- Row: {
27271
- bedrag_incl_btw: number;
27272
- created_at: string;
27273
- datum: string;
27274
- factuurnummer: string;
27275
- id: string;
27276
- klantnaam: string;
27277
- status: string;
27278
- updated_at: string;
27279
- user_id: string;
27280
- };
27281
- Insert: {
27282
- bedrag_incl_btw: number;
27283
- created_at?: string;
27284
- datum?: string;
27285
- factuurnummer: string;
27286
- id?: string;
27287
- klantnaam: string;
27288
- status?: string;
27289
- updated_at?: string;
27290
- user_id?: string;
27291
- };
27292
- Update: {
27293
- bedrag_incl_btw?: number;
27294
- created_at?: string;
27295
- datum?: string;
27296
- factuurnummer?: string;
27297
- id?: string;
27298
- klantnaam?: string;
27299
- status?: string;
27300
- updated_at?: string;
27301
- user_id?: string;
27302
- };
27303
- Relationships: [];
27304
- };
27305
28185
  floricode_connection_settings: {
27306
28186
  Row: {
27307
28187
  catalog_key: string | null;
@@ -29606,8 +30486,63 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
29606
30486
  };
29607
30487
  Relationships: [];
29608
30488
  };
30489
+ invoice_items: {
30490
+ Row: {
30491
+ created_at: string;
30492
+ description: string;
30493
+ id: string;
30494
+ invoice_id: string;
30495
+ kind: string;
30496
+ quantity: number;
30497
+ sort_order: number;
30498
+ source_line_ref: string | null;
30499
+ total_cents: number;
30500
+ unit: string;
30501
+ unit_price_cents: number;
30502
+ };
30503
+ Insert: {
30504
+ created_at?: string;
30505
+ description?: string;
30506
+ id?: string;
30507
+ invoice_id: string;
30508
+ kind?: string;
30509
+ quantity?: number;
30510
+ sort_order?: number;
30511
+ source_line_ref?: string | null;
30512
+ total_cents?: number;
30513
+ unit?: string;
30514
+ unit_price_cents?: number;
30515
+ };
30516
+ Update: {
30517
+ created_at?: string;
30518
+ description?: string;
30519
+ id?: string;
30520
+ invoice_id?: string;
30521
+ kind?: string;
30522
+ quantity?: number;
30523
+ sort_order?: number;
30524
+ source_line_ref?: string | null;
30525
+ total_cents?: number;
30526
+ unit?: string;
30527
+ unit_price_cents?: number;
30528
+ };
30529
+ Relationships: [{
30530
+ foreignKeyName: "invoice_items_invoice_id_fkey";
30531
+ columns: ["invoice_id"];
30532
+ isOneToOne: false;
30533
+ referencedRelation: "invoices";
30534
+ referencedColumns: ["id"];
30535
+ }, {
30536
+ foreignKeyName: "invoice_items_invoice_id_fkey";
30537
+ columns: ["invoice_id"];
30538
+ isOneToOne: false;
30539
+ referencedRelation: "uren_facturen";
30540
+ referencedColumns: ["id"];
30541
+ }];
30542
+ };
29609
30543
  invoice_post_idempotency: {
29610
30544
  Row: {
30545
+ administration_code: string;
29611
30546
  client_request_id: string;
29612
30547
  completed_at: string | null;
29613
30548
  created_at: string;
@@ -29617,6 +30552,7 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
29617
30552
  user_id: string;
29618
30553
  };
29619
30554
  Insert: {
30555
+ administration_code?: string;
29620
30556
  client_request_id: string;
29621
30557
  completed_at?: string | null;
29622
30558
  created_at?: string;
@@ -29626,6 +30562,7 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
29626
30562
  user_id: string;
29627
30563
  };
29628
30564
  Update: {
30565
+ administration_code?: string;
29629
30566
  client_request_id?: string;
29630
30567
  completed_at?: string | null;
29631
30568
  created_at?: string;
@@ -29831,6 +30768,75 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
29831
30768
  };
29832
30769
  Relationships: [];
29833
30770
  };
30771
+ invoices: {
30772
+ Row: {
30773
+ created_at: string;
30774
+ created_by: string | null;
30775
+ customer_id: string | null;
30776
+ customer_name: string | null;
30777
+ due_date: string | null;
30778
+ id: string;
30779
+ invoice_date: string;
30780
+ invoice_number: string | null;
30781
+ note: string | null;
30782
+ source_number: string | null;
30783
+ source_ref: string | null;
30784
+ source_type: string;
30785
+ status: string;
30786
+ subtotal_cents: number;
30787
+ total_cents: number;
30788
+ updated_at: string;
30789
+ vat_cents: number;
30790
+ vat_rate: number;
30791
+ };
30792
+ Insert: {
30793
+ created_at?: string;
30794
+ created_by?: string | null;
30795
+ customer_id?: string | null;
30796
+ customer_name?: string | null;
30797
+ due_date?: string | null;
30798
+ id?: string;
30799
+ invoice_date?: string;
30800
+ invoice_number?: string | null;
30801
+ note?: string | null;
30802
+ source_number?: string | null;
30803
+ source_ref?: string | null;
30804
+ source_type?: string;
30805
+ status?: string;
30806
+ subtotal_cents?: number;
30807
+ total_cents?: number;
30808
+ updated_at?: string;
30809
+ vat_cents?: number;
30810
+ vat_rate?: number;
30811
+ };
30812
+ Update: {
30813
+ created_at?: string;
30814
+ created_by?: string | null;
30815
+ customer_id?: string | null;
30816
+ customer_name?: string | null;
30817
+ due_date?: string | null;
30818
+ id?: string;
30819
+ invoice_date?: string;
30820
+ invoice_number?: string | null;
30821
+ note?: string | null;
30822
+ source_number?: string | null;
30823
+ source_ref?: string | null;
30824
+ source_type?: string;
30825
+ status?: string;
30826
+ subtotal_cents?: number;
30827
+ total_cents?: number;
30828
+ updated_at?: string;
30829
+ vat_cents?: number;
30830
+ vat_rate?: number;
30831
+ };
30832
+ Relationships: [{
30833
+ foreignKeyName: "invoices_customer_id_fkey";
30834
+ columns: ["customer_id"];
30835
+ isOneToOne: false;
30836
+ referencedRelation: "itk_customers";
30837
+ referencedColumns: ["id"];
30838
+ }];
30839
+ };
29834
30840
  itk_contact_persons: {
29835
30841
  Row: {
29836
30842
  created_at: string;
@@ -31178,6 +32184,10 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
31178
32184
  id: string;
31179
32185
  last_error: string | null;
31180
32186
  last_error_at: string | null;
32187
+ last_error_code: string | null;
32188
+ last_gateway_status: number | null;
32189
+ last_queued_at: string | null;
32190
+ last_response: import("../integrations/supabase/types").Json | null;
31181
32191
  last_sent_hash: string | null;
31182
32192
  locked_by: string | null;
31183
32193
  locked_until: string | null;
@@ -31198,6 +32208,10 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
31198
32208
  id?: string;
31199
32209
  last_error?: string | null;
31200
32210
  last_error_at?: string | null;
32211
+ last_error_code?: string | null;
32212
+ last_gateway_status?: number | null;
32213
+ last_queued_at?: string | null;
32214
+ last_response?: import("../integrations/supabase/types").Json | null;
31201
32215
  last_sent_hash?: string | null;
31202
32216
  locked_by?: string | null;
31203
32217
  locked_until?: string | null;
@@ -31218,6 +32232,10 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
31218
32232
  id?: string;
31219
32233
  last_error?: string | null;
31220
32234
  last_error_at?: string | null;
32235
+ last_error_code?: string | null;
32236
+ last_gateway_status?: number | null;
32237
+ last_queued_at?: string | null;
32238
+ last_response?: import("../integrations/supabase/types").Json | null;
31221
32239
  last_sent_hash?: string | null;
31222
32240
  locked_by?: string | null;
31223
32241
  locked_until?: string | null;
@@ -32771,6 +33789,7 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
32771
33789
  enforce: boolean;
32772
33790
  is_active: boolean;
32773
33791
  last_seen_at: string;
33792
+ missing_count: number;
32774
33793
  module_id: string;
32775
33794
  name: string;
32776
33795
  shell_id: string | null;
@@ -32781,6 +33800,7 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
32781
33800
  enforce?: boolean;
32782
33801
  is_active?: boolean;
32783
33802
  last_seen_at?: string;
33803
+ missing_count?: number;
32784
33804
  module_id: string;
32785
33805
  name: string;
32786
33806
  shell_id?: string | null;
@@ -32791,6 +33811,7 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
32791
33811
  enforce?: boolean;
32792
33812
  is_active?: boolean;
32793
33813
  last_seen_at?: string;
33814
+ missing_count?: number;
32794
33815
  module_id?: string;
32795
33816
  name?: string;
32796
33817
  shell_id?: string | null;
@@ -33790,6 +34811,7 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
33790
34811
  };
33791
34812
  order_invoice_links: {
33792
34813
  Row: {
34814
+ administration_code: string | null;
33793
34815
  attempts: number;
33794
34816
  created_at: string;
33795
34817
  error_message: string | null;
@@ -33802,6 +34824,7 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
33802
34824
  updated_at: string;
33803
34825
  };
33804
34826
  Insert: {
34827
+ administration_code?: string | null;
33805
34828
  attempts?: number;
33806
34829
  created_at?: string;
33807
34830
  error_message?: string | null;
@@ -33814,6 +34837,7 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
33814
34837
  updated_at?: string;
33815
34838
  };
33816
34839
  Update: {
34840
+ administration_code?: string | null;
33817
34841
  attempts?: number;
33818
34842
  created_at?: string;
33819
34843
  error_message?: string | null;
@@ -34979,6 +36003,27 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
34979
36003
  referencedColumns: ["id"];
34980
36004
  }];
34981
36005
  };
36006
+ pick_sync_state: {
36007
+ Row: {
36008
+ id: boolean;
36009
+ last_cleanup_at: string | null;
36010
+ last_sync_at: string | null;
36011
+ updated_at: string;
36012
+ };
36013
+ Insert: {
36014
+ id?: boolean;
36015
+ last_cleanup_at?: string | null;
36016
+ last_sync_at?: string | null;
36017
+ updated_at?: string;
36018
+ };
36019
+ Update: {
36020
+ id?: boolean;
36021
+ last_cleanup_at?: string | null;
36022
+ last_sync_at?: string | null;
36023
+ updated_at?: string;
36024
+ };
36025
+ Relationships: [];
36026
+ };
34982
36027
  pick_task_document_types: {
34983
36028
  Row: {
34984
36029
  created_at: string;
@@ -35261,6 +36306,7 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
35261
36306
  gebruiker_id: string | null;
35262
36307
  gebruiker_naam: string;
35263
36308
  gestart_op: string | null;
36309
+ herkomst: string | null;
35264
36310
  id: string;
35265
36311
  idempotentie_sleutel: string | null;
35266
36312
  is_herprint: boolean;
@@ -35290,6 +36336,7 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
35290
36336
  gebruiker_id?: string | null;
35291
36337
  gebruiker_naam?: string;
35292
36338
  gestart_op?: string | null;
36339
+ herkomst?: string | null;
35293
36340
  id?: string;
35294
36341
  idempotentie_sleutel?: string | null;
35295
36342
  is_herprint?: boolean;
@@ -35319,6 +36366,7 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
35319
36366
  gebruiker_id?: string | null;
35320
36367
  gebruiker_naam?: string;
35321
36368
  gestart_op?: string | null;
36369
+ herkomst?: string | null;
35322
36370
  id?: string;
35323
36371
  idempotentie_sleutel?: string | null;
35324
36372
  is_herprint?: boolean;
@@ -35357,6 +36405,99 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
35357
36405
  referencedColumns: ["id"];
35358
36406
  }];
35359
36407
  };
36408
+ print_plek_computers: {
36409
+ Row: {
36410
+ computer_naam: string;
36411
+ created_at: string;
36412
+ id: string;
36413
+ print_plek_id: string;
36414
+ updated_at: string;
36415
+ };
36416
+ Insert: {
36417
+ computer_naam: string;
36418
+ created_at?: string;
36419
+ id?: string;
36420
+ print_plek_id: string;
36421
+ updated_at?: string;
36422
+ };
36423
+ Update: {
36424
+ computer_naam?: string;
36425
+ created_at?: string;
36426
+ id?: string;
36427
+ print_plek_id?: string;
36428
+ updated_at?: string;
36429
+ };
36430
+ Relationships: [{
36431
+ foreignKeyName: "print_plek_computers_print_plek_id_fkey";
36432
+ columns: ["print_plek_id"];
36433
+ isOneToOne: false;
36434
+ referencedRelation: "print_plekken";
36435
+ referencedColumns: ["id"];
36436
+ }];
36437
+ };
36438
+ print_plek_koppelingen: {
36439
+ Row: {
36440
+ bron: string;
36441
+ bron_id: string;
36442
+ created_at: string;
36443
+ id: string;
36444
+ label: string | null;
36445
+ print_plek_id: string;
36446
+ updated_at: string;
36447
+ };
36448
+ Insert: {
36449
+ bron: string;
36450
+ bron_id: string;
36451
+ created_at?: string;
36452
+ id?: string;
36453
+ label?: string | null;
36454
+ print_plek_id: string;
36455
+ updated_at?: string;
36456
+ };
36457
+ Update: {
36458
+ bron?: string;
36459
+ bron_id?: string;
36460
+ created_at?: string;
36461
+ id?: string;
36462
+ label?: string | null;
36463
+ print_plek_id?: string;
36464
+ updated_at?: string;
36465
+ };
36466
+ Relationships: [{
36467
+ foreignKeyName: "print_plek_koppelingen_print_plek_id_fkey";
36468
+ columns: ["print_plek_id"];
36469
+ isOneToOne: false;
36470
+ referencedRelation: "print_plekken";
36471
+ referencedColumns: ["id"];
36472
+ }];
36473
+ };
36474
+ print_plekken: {
36475
+ Row: {
36476
+ actief: boolean;
36477
+ created_at: string;
36478
+ id: string;
36479
+ naam: string;
36480
+ omschrijving: string | null;
36481
+ updated_at: string;
36482
+ };
36483
+ Insert: {
36484
+ actief?: boolean;
36485
+ created_at?: string;
36486
+ id?: string;
36487
+ naam: string;
36488
+ omschrijving?: string | null;
36489
+ updated_at?: string;
36490
+ };
36491
+ Update: {
36492
+ actief?: boolean;
36493
+ created_at?: string;
36494
+ id?: string;
36495
+ naam?: string;
36496
+ omschrijving?: string | null;
36497
+ updated_at?: string;
36498
+ };
36499
+ Relationships: [];
36500
+ };
35360
36501
  print_queue_runners: {
35361
36502
  Row: {
35362
36503
  actief: boolean;
@@ -37511,6 +38652,45 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
37511
38652
  };
37512
38653
  Relationships: [];
37513
38654
  };
38655
+ stock_consumption_alerts: {
38656
+ Row: {
38657
+ alert_type: string;
38658
+ created_at: string;
38659
+ id: string;
38660
+ mutation_log_id: string | null;
38661
+ order_id: string | null;
38662
+ order_item_id: string | null;
38663
+ qty: number;
38664
+ reason: string | null;
38665
+ resolved_at: string | null;
38666
+ updated_at: string;
38667
+ };
38668
+ Insert: {
38669
+ alert_type: string;
38670
+ created_at?: string;
38671
+ id?: string;
38672
+ mutation_log_id?: string | null;
38673
+ order_id?: string | null;
38674
+ order_item_id?: string | null;
38675
+ qty?: number;
38676
+ reason?: string | null;
38677
+ resolved_at?: string | null;
38678
+ updated_at?: string;
38679
+ };
38680
+ Update: {
38681
+ alert_type?: string;
38682
+ created_at?: string;
38683
+ id?: string;
38684
+ mutation_log_id?: string | null;
38685
+ order_id?: string | null;
38686
+ order_item_id?: string | null;
38687
+ qty?: number;
38688
+ reason?: string | null;
38689
+ resolved_at?: string | null;
38690
+ updated_at?: string;
38691
+ };
38692
+ Relationships: [];
38693
+ };
37514
38694
  stock_import_runs: {
37515
38695
  Row: {
37516
38696
  connection_id: string | null;
@@ -38323,12 +39503,16 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
38323
39503
  company_name: string | null;
38324
39504
  connected_at: string | null;
38325
39505
  created_at: string;
39506
+ disconnected_at: string | null;
38326
39507
  environment: string;
38327
39508
  id: string;
39509
+ initial_sync_completed_at: string | null;
39510
+ initial_sync_started_at: string | null;
38328
39511
  is_active: boolean;
38329
39512
  label: string | null;
38330
39513
  office_code: string | null;
38331
39514
  redirect_uri: string | null;
39515
+ superseded_at: string | null;
38332
39516
  updated_at: string;
38333
39517
  user_id: string;
38334
39518
  };
@@ -38339,12 +39523,16 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
38339
39523
  company_name?: string | null;
38340
39524
  connected_at?: string | null;
38341
39525
  created_at?: string;
39526
+ disconnected_at?: string | null;
38342
39527
  environment: string;
38343
39528
  id?: string;
39529
+ initial_sync_completed_at?: string | null;
39530
+ initial_sync_started_at?: string | null;
38344
39531
  is_active?: boolean;
38345
39532
  label?: string | null;
38346
39533
  office_code?: string | null;
38347
39534
  redirect_uri?: string | null;
39535
+ superseded_at?: string | null;
38348
39536
  updated_at?: string;
38349
39537
  user_id: string;
38350
39538
  };
@@ -38355,12 +39543,16 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
38355
39543
  company_name?: string | null;
38356
39544
  connected_at?: string | null;
38357
39545
  created_at?: string;
39546
+ disconnected_at?: string | null;
38358
39547
  environment?: string;
38359
39548
  id?: string;
39549
+ initial_sync_completed_at?: string | null;
39550
+ initial_sync_started_at?: string | null;
38360
39551
  is_active?: boolean;
38361
39552
  label?: string | null;
38362
39553
  office_code?: string | null;
38363
39554
  redirect_uri?: string | null;
39555
+ superseded_at?: string | null;
38364
39556
  updated_at?: string;
38365
39557
  user_id?: string;
38366
39558
  };
@@ -38420,6 +39612,7 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
38420
39612
  twinfield_customers: {
38421
39613
  Row: {
38422
39614
  address: string | null;
39615
+ administration_code: string;
38423
39616
  city: string | null;
38424
39617
  country: string | null;
38425
39618
  created_at: string;
@@ -38439,6 +39632,7 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
38439
39632
  };
38440
39633
  Insert: {
38441
39634
  address?: string | null;
39635
+ administration_code?: string;
38442
39636
  city?: string | null;
38443
39637
  country?: string | null;
38444
39638
  created_at?: string;
@@ -38458,6 +39652,7 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
38458
39652
  };
38459
39653
  Update: {
38460
39654
  address?: string | null;
39655
+ administration_code?: string;
38461
39656
  city?: string | null;
38462
39657
  country?: string | null;
38463
39658
  created_at?: string;
@@ -38671,7 +39866,9 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
38671
39866
  };
38672
39867
  twinfield_invoice_settings: {
38673
39868
  Row: {
39869
+ administration_code: string | null;
38674
39870
  auto_invoice_enabled: boolean;
39871
+ auto_invoice_start_date: string | null;
38675
39872
  auto_invoice_trigger_statuses: string[];
38676
39873
  created_at: string;
38677
39874
  debtor_gl_account: string;
@@ -38685,15 +39882,19 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
38685
39882
  invoice_enabled_fo: boolean;
38686
39883
  invoice_enabled_ho: boolean;
38687
39884
  invoice_enabled_mo: boolean;
39885
+ needs_review: boolean;
38688
39886
  payment_gl_account: string;
38689
39887
  payment_journal_code: string;
39888
+ settings_confirmed_at: string | null;
38690
39889
  updated_at: string;
38691
39890
  user_id: string;
38692
39891
  vat_code_eu_reverse: string | null;
38693
39892
  vat_code_export: string | null;
38694
39893
  };
38695
39894
  Insert: {
39895
+ administration_code?: string | null;
38696
39896
  auto_invoice_enabled?: boolean;
39897
+ auto_invoice_start_date?: string | null;
38697
39898
  auto_invoice_trigger_statuses?: string[];
38698
39899
  created_at?: string;
38699
39900
  debtor_gl_account?: string;
@@ -38707,15 +39908,19 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
38707
39908
  invoice_enabled_fo?: boolean;
38708
39909
  invoice_enabled_ho?: boolean;
38709
39910
  invoice_enabled_mo?: boolean;
39911
+ needs_review?: boolean;
38710
39912
  payment_gl_account?: string;
38711
39913
  payment_journal_code?: string;
39914
+ settings_confirmed_at?: string | null;
38712
39915
  updated_at?: string;
38713
39916
  user_id: string;
38714
39917
  vat_code_eu_reverse?: string | null;
38715
39918
  vat_code_export?: string | null;
38716
39919
  };
38717
39920
  Update: {
39921
+ administration_code?: string | null;
38718
39922
  auto_invoice_enabled?: boolean;
39923
+ auto_invoice_start_date?: string | null;
38719
39924
  auto_invoice_trigger_statuses?: string[];
38720
39925
  created_at?: string;
38721
39926
  debtor_gl_account?: string;
@@ -38729,8 +39934,10 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
38729
39934
  invoice_enabled_fo?: boolean;
38730
39935
  invoice_enabled_ho?: boolean;
38731
39936
  invoice_enabled_mo?: boolean;
39937
+ needs_review?: boolean;
38732
39938
  payment_gl_account?: string;
38733
39939
  payment_journal_code?: string;
39940
+ settings_confirmed_at?: string | null;
38734
39941
  updated_at?: string;
38735
39942
  user_id?: string;
38736
39943
  vat_code_eu_reverse?: string | null;
@@ -39335,114 +40542,6 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
39335
40542
  };
39336
40543
  Relationships: [];
39337
40544
  };
39338
- uren_facturen: {
39339
- Row: {
39340
- created_at: string;
39341
- created_by: string | null;
39342
- customer_id: string | null;
39343
- customer_name: string | null;
39344
- id: string;
39345
- invoice_number: string | null;
39346
- note: string | null;
39347
- status: string;
39348
- total_excl_cents: number;
39349
- total_incl_cents: number;
39350
- updated_at: string;
39351
- vat_cents: number;
39352
- vat_percentage: number;
39353
- werkbon_id: string | null;
39354
- };
39355
- Insert: {
39356
- created_at?: string;
39357
- created_by?: string | null;
39358
- customer_id?: string | null;
39359
- customer_name?: string | null;
39360
- id?: string;
39361
- invoice_number?: string | null;
39362
- note?: string | null;
39363
- status?: string;
39364
- total_excl_cents?: number;
39365
- total_incl_cents?: number;
39366
- updated_at?: string;
39367
- vat_cents?: number;
39368
- vat_percentage?: number;
39369
- werkbon_id?: string | null;
39370
- };
39371
- Update: {
39372
- created_at?: string;
39373
- created_by?: string | null;
39374
- customer_id?: string | null;
39375
- customer_name?: string | null;
39376
- id?: string;
39377
- invoice_number?: string | null;
39378
- note?: string | null;
39379
- status?: string;
39380
- total_excl_cents?: number;
39381
- total_incl_cents?: number;
39382
- updated_at?: string;
39383
- vat_cents?: number;
39384
- vat_percentage?: number;
39385
- werkbon_id?: string | null;
39386
- };
39387
- Relationships: [{
39388
- foreignKeyName: "uren_facturen_customer_id_fkey";
39389
- columns: ["customer_id"];
39390
- isOneToOne: false;
39391
- referencedRelation: "itk_customers";
39392
- referencedColumns: ["id"];
39393
- }, {
39394
- foreignKeyName: "uren_facturen_werkbon_id_fkey";
39395
- columns: ["werkbon_id"];
39396
- isOneToOne: true;
39397
- referencedRelation: "werkbonnen";
39398
- referencedColumns: ["id"];
39399
- }];
39400
- };
39401
- uren_factuur_regels: {
39402
- Row: {
39403
- created_at: string;
39404
- description: string;
39405
- factuur_id: string;
39406
- id: string;
39407
- kind: string | null;
39408
- quantity: number;
39409
- sort_order: number;
39410
- total_cents: number;
39411
- unit: string;
39412
- unit_price_cents: number;
39413
- };
39414
- Insert: {
39415
- created_at?: string;
39416
- description: string;
39417
- factuur_id: string;
39418
- id?: string;
39419
- kind?: string | null;
39420
- quantity?: number;
39421
- sort_order?: number;
39422
- total_cents?: number;
39423
- unit?: string;
39424
- unit_price_cents?: number;
39425
- };
39426
- Update: {
39427
- created_at?: string;
39428
- description?: string;
39429
- factuur_id?: string;
39430
- id?: string;
39431
- kind?: string | null;
39432
- quantity?: number;
39433
- sort_order?: number;
39434
- total_cents?: number;
39435
- unit?: string;
39436
- unit_price_cents?: number;
39437
- };
39438
- Relationships: [{
39439
- foreignKeyName: "uren_factuur_regels_factuur_id_fkey";
39440
- columns: ["factuur_id"];
39441
- isOneToOne: false;
39442
- referencedRelation: "uren_facturen";
39443
- referencedColumns: ["id"];
39444
- }];
39445
- };
39446
40545
  uren_offerte_regels: {
39447
40546
  Row: {
39448
40547
  created_at: string;
@@ -40696,6 +41795,9 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
40696
41795
  scheduled_end_time: string | null;
40697
41796
  scheduled_start_time: string | null;
40698
41797
  sequence_number: number;
41798
+ signature_accepted_at: string | null;
41799
+ signature_by_user_id: string | null;
41800
+ signature_name: string | null;
40699
41801
  source_email_meta: import("../integrations/supabase/types").Json | null;
40700
41802
  source_mailbox_message_id: string | null;
40701
41803
  source_pdf_path: string | null;
@@ -40731,6 +41833,9 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
40731
41833
  scheduled_end_time?: string | null;
40732
41834
  scheduled_start_time?: string | null;
40733
41835
  sequence_number: number;
41836
+ signature_accepted_at?: string | null;
41837
+ signature_by_user_id?: string | null;
41838
+ signature_name?: string | null;
40734
41839
  source_email_meta?: import("../integrations/supabase/types").Json | null;
40735
41840
  source_mailbox_message_id?: string | null;
40736
41841
  source_pdf_path?: string | null;
@@ -40766,6 +41871,9 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
40766
41871
  scheduled_end_time?: string | null;
40767
41872
  scheduled_start_time?: string | null;
40768
41873
  sequence_number?: number;
41874
+ signature_accepted_at?: string | null;
41875
+ signature_by_user_id?: string | null;
41876
+ signature_name?: string | null;
40769
41877
  source_email_meta?: import("../integrations/supabase/types").Json | null;
40770
41878
  source_mailbox_message_id?: string | null;
40771
41879
  source_pdf_path?: string | null;
@@ -41282,6 +42390,114 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
41282
42390
  };
41283
42391
  Relationships: [];
41284
42392
  };
42393
+ uren_facturen: {
42394
+ Row: {
42395
+ created_at: string | null;
42396
+ created_by: string | null;
42397
+ customer_id: string | null;
42398
+ customer_name: string | null;
42399
+ id: string | null;
42400
+ invoice_number: string | null;
42401
+ note: string | null;
42402
+ status: string | null;
42403
+ total_excl_cents: number | null;
42404
+ total_incl_cents: number | null;
42405
+ updated_at: string | null;
42406
+ vat_cents: number | null;
42407
+ vat_percentage: number | null;
42408
+ werkbon_id: string | null;
42409
+ };
42410
+ Insert: {
42411
+ created_at?: string | null;
42412
+ created_by?: string | null;
42413
+ customer_id?: string | null;
42414
+ customer_name?: string | null;
42415
+ id?: string | null;
42416
+ invoice_number?: string | null;
42417
+ note?: string | null;
42418
+ status?: string | null;
42419
+ total_excl_cents?: number | null;
42420
+ total_incl_cents?: number | null;
42421
+ updated_at?: string | null;
42422
+ vat_cents?: number | null;
42423
+ vat_percentage?: number | null;
42424
+ werkbon_id?: never;
42425
+ };
42426
+ Update: {
42427
+ created_at?: string | null;
42428
+ created_by?: string | null;
42429
+ customer_id?: string | null;
42430
+ customer_name?: string | null;
42431
+ id?: string | null;
42432
+ invoice_number?: string | null;
42433
+ note?: string | null;
42434
+ status?: string | null;
42435
+ total_excl_cents?: number | null;
42436
+ total_incl_cents?: number | null;
42437
+ updated_at?: string | null;
42438
+ vat_cents?: number | null;
42439
+ vat_percentage?: number | null;
42440
+ werkbon_id?: never;
42441
+ };
42442
+ Relationships: [{
42443
+ foreignKeyName: "invoices_customer_id_fkey";
42444
+ columns: ["customer_id"];
42445
+ isOneToOne: false;
42446
+ referencedRelation: "itk_customers";
42447
+ referencedColumns: ["id"];
42448
+ }];
42449
+ };
42450
+ uren_factuur_regels: {
42451
+ Row: {
42452
+ created_at: string | null;
42453
+ description: string | null;
42454
+ factuur_id: string | null;
42455
+ id: string | null;
42456
+ kind: string | null;
42457
+ quantity: number | null;
42458
+ sort_order: number | null;
42459
+ total_cents: number | null;
42460
+ unit: string | null;
42461
+ unit_price_cents: number | null;
42462
+ };
42463
+ Insert: {
42464
+ created_at?: string | null;
42465
+ description?: string | null;
42466
+ factuur_id?: string | null;
42467
+ id?: string | null;
42468
+ kind?: string | null;
42469
+ quantity?: number | null;
42470
+ sort_order?: number | null;
42471
+ total_cents?: number | null;
42472
+ unit?: string | null;
42473
+ unit_price_cents?: number | null;
42474
+ };
42475
+ Update: {
42476
+ created_at?: string | null;
42477
+ description?: string | null;
42478
+ factuur_id?: string | null;
42479
+ id?: string | null;
42480
+ kind?: string | null;
42481
+ quantity?: number | null;
42482
+ sort_order?: number | null;
42483
+ total_cents?: number | null;
42484
+ unit?: string | null;
42485
+ unit_price_cents?: number | null;
42486
+ };
42487
+ Relationships: [{
42488
+ foreignKeyName: "invoice_items_invoice_id_fkey";
42489
+ columns: ["factuur_id"];
42490
+ isOneToOne: false;
42491
+ referencedRelation: "invoices";
42492
+ referencedColumns: ["id"];
42493
+ }, {
42494
+ foreignKeyName: "invoice_items_invoice_id_fkey";
42495
+ columns: ["factuur_id"];
42496
+ isOneToOne: false;
42497
+ referencedRelation: "uren_facturen";
42498
+ referencedColumns: ["id"];
42499
+ }];
42500
+ };
41285
42501
  v_external_customers_exact: {
41286
42502
  Row: {
41287
42503
  account_number: string | null;
@@ -41787,6 +43003,7 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
41787
43003
  gebruiker_id: string | null;
41788
43004
  gebruiker_naam: string;
41789
43005
  gestart_op: string | null;
43006
+ herkomst: string | null;
41790
43007
  id: string;
41791
43008
  idempotentie_sleutel: string | null;
41792
43009
  is_herprint: boolean;
@@ -41907,6 +43124,7 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
41907
43124
  gebruiker_id: string | null;
41908
43125
  gebruiker_naam: string;
41909
43126
  gestart_op: string | null;
43127
+ herkomst: string | null;
41910
43128
  id: string;
41911
43129
  idempotentie_sleutel: string | null;
41912
43130
  is_herprint: boolean;
@@ -42508,6 +43726,46 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
42508
43726
  Args: never;
42509
43727
  Returns: boolean;
42510
43728
  };
43729
+ invoice_create_from_source: {
43730
+ Args: {
43731
+ _payload?: import("../integrations/supabase/types").Json;
43732
+ _source_id: string;
43733
+ _source_type: string;
43734
+ };
43735
+ Returns: import("../integrations/supabase/types").Json;
43736
+ };
43737
+ invoice_get_billable_lines: {
43738
+ Args: {
43739
+ _invoice_id: string;
43740
+ };
43741
+ Returns: import("../integrations/supabase/types").Json;
43742
+ };
43743
+ invoice_get_for_source: {
43744
+ Args: {
43745
+ _source_id: string;
43746
+ _source_type: string;
43747
+ };
43748
+ Returns: import("../integrations/supabase/types").Json;
43749
+ };
43750
+ invoice_get_summary: {
43751
+ Args: {
43752
+ _invoice_id: string;
43753
+ };
43754
+ Returns: import("../integrations/supabase/types").Json;
43755
+ };
43756
+ invoice_list_sources: {
43757
+ Args: {
43758
+ _limit?: number;
43759
+ _source_type?: string;
43760
+ };
43761
+ Returns: import("../integrations/supabase/types").Json;
43762
+ };
43763
+ invoice_recalc_totals: {
43764
+ Args: {
43765
+ _invoice_id: string;
43766
+ };
43767
+ Returns: import("../integrations/supabase/types").Json;
43768
+ };
42511
43769
  is_authenticated: {
42512
43770
  Args: never;
42513
43771
  Returns: boolean;
@@ -42576,6 +43834,29 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
42576
43834
  roles: string[];
42577
43835
  }[];
42578
43836
  };
43837
+ list_monteur_absences: {
43838
+ Args: {
43839
+ _from: string;
43840
+ _to: string;
43841
+ };
43842
+ Returns: {
43843
+ absence_date: string;
43844
+ end_time: string;
43845
+ full_day: boolean;
43846
+ kind: string;
43847
+ monteur_id: string;
43848
+ start_time: string;
43849
+ }[];
43850
+ };
43851
+ list_monteurs: {
43852
+ Args: never;
43853
+ Returns: {
43854
+ avatar_url: string;
43855
+ display_name: string;
43856
+ email: string;
43857
+ id: string;
43858
+ }[];
43859
+ };
42579
43860
  list_my_planning_items: {
42580
43861
  Args: {
42581
43862
  _from: string;
@@ -42987,6 +44268,41 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
42987
44268
  };
42988
44269
  Returns: string;
42989
44270
  };
44271
+ logistics_floriday_finish_push_v2: {
44272
+ Args: {
44273
+ _error?: string;
44274
+ _error_code?: string;
44275
+ _fulfillment_order_id?: string;
44276
+ _gateway_status?: number;
44277
+ _id: string;
44278
+ _max_age_hours?: number;
44279
+ _max_attempts?: number;
44280
+ _ok: boolean;
44281
+ _permanent?: boolean;
44282
+ _response?: import("../integrations/supabase/types").Json;
44283
+ _revision: number;
44284
+ _sent_hash?: string;
44285
+ };
44286
+ Returns: string;
44287
+ };
44288
+ logistics_floriday_finish_push_v3: {
44289
+ Args: {
44290
+ _error?: string;
44291
+ _error_code?: string;
44292
+ _fulfillment_order_id?: string;
44293
+ _gateway_status?: number;
44294
+ _id: string;
44295
+ _max_age_hours?: number;
44296
+ _max_attempts?: number;
44297
+ _outcome: string;
44298
+ _permanent?: boolean;
44299
+ _response?: import("../integrations/supabase/types").Json;
44300
+ _revision: number;
44301
+ _sent_hash?: string;
44302
+ _wait_max_age_hours?: number;
44303
+ };
44304
+ Returns: string;
44305
+ };
42990
44306
  logistics_floriday_prune_pushes: {
42991
44307
  Args: {
42992
44308
  _days?: number;
@@ -43415,6 +44731,12 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
43415
44731
  verwijderd: number;
43416
44732
  }[];
43417
44733
  };
44734
+ order_departure_proof: {
44735
+ Args: {
44736
+ p_order_id: string;
44737
+ };
44738
+ Returns: import("../integrations/supabase/types").Json;
44739
+ };
43418
44740
  order_number_prefix: {
43419
44741
  Args: {
43420
44742
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -43529,6 +44851,13 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
43529
44851
  isSetofReturn: false;
43530
44852
  };
43531
44853
  };
44854
+ pick_cleanup_maintenance: {
44855
+ Args: {
44856
+ _heartbeat_hours?: number;
44857
+ _log_days?: number;
44858
+ };
44859
+ Returns: import("../integrations/supabase/types").Json;
44860
+ };
43532
44861
  pick_complete_print: {
43533
44862
  Args: {
43534
44863
  _printer_id: string;
@@ -43580,6 +44909,14 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
43580
44909
  Args: never;
43581
44910
  Returns: string;
43582
44911
  };
44912
+ pick_day_counts: {
44913
+ Args: {
44914
+ _pick_day?: string;
44915
+ _screen_id?: string;
44916
+ _station_id?: string;
44917
+ };
44918
+ Returns: import("../integrations/supabase/types").Json;
44919
+ };
43583
44920
  pick_document_layout_data: {
43584
44921
  Args: {
43585
44922
  _layout_id: string;
@@ -43607,6 +44944,14 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
43607
44944
  };
43608
44945
  Returns: import("../integrations/supabase/types").Json;
43609
44946
  };
44947
+ pick_print_plekken: {
44948
+ Args: never;
44949
+ Returns: {
44950
+ id: string;
44951
+ naam: string;
44952
+ omschrijving: string;
44953
+ }[];
44954
+ };
43610
44955
  pick_release_expired_locks: {
43611
44956
  Args: never;
43612
44957
  Returns: number;
@@ -43617,6 +44962,14 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
43617
44962
  };
43618
44963
  Returns: undefined;
43619
44964
  };
44965
+ pick_reprint_document: {
44966
+ Args: {
44967
+ _queue_item_id: string;
44968
+ _session_id: string;
44969
+ _throttle_seconds?: number;
44970
+ };
44971
+ Returns: string;
44972
+ };
43620
44973
  pick_reset_print: {
43621
44974
  Args: {
43622
44975
  _queue_item_id: string;
@@ -43663,6 +45016,13 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
43663
45016
  isSetofReturn: false;
43664
45017
  };
43665
45018
  };
45019
+ pick_set_station_print_plek: {
45020
+ Args: {
45021
+ _print_plek_id: string;
45022
+ _station_id: string;
45023
+ };
45024
+ Returns: string;
45025
+ };
43666
45026
  pick_station_dashboard: {
43667
45027
  Args: never;
43668
45028
  Returns: {
@@ -43675,6 +45035,25 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
43675
45035
  waiting: number;
43676
45036
  }[];
43677
45037
  };
45038
+ pick_station_print_plek: {
45039
+ Args: {
45040
+ _station_id: string;
45041
+ };
45042
+ Returns: {
45043
+ naam: string;
45044
+ omschrijving: string;
45045
+ print_plek_id: string;
45046
+ }[];
45047
+ };
45048
+ pick_station_print_plekken: {
45049
+ Args: never;
45050
+ Returns: {
45051
+ naam: string;
45052
+ omschrijving: string;
45053
+ print_plek_id: string;
45054
+ station_id: string;
45055
+ }[];
45056
+ };
43678
45057
  pick_station_slugify: {
43679
45058
  Args: {
43680
45059
  _id: string;
@@ -43682,6 +45061,12 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
43682
45061
  };
43683
45062
  Returns: string;
43684
45063
  };
45064
+ pick_sync_queue_throttled: {
45065
+ Args: {
45066
+ _min_seconds?: number;
45067
+ };
45068
+ Returns: import("../integrations/supabase/types").Json;
45069
+ };
43685
45070
  pickstation_get_orders_raw: {
43686
45071
  Args: never;
43687
45072
  Returns: import("../integrations/supabase/types").Json;
@@ -43827,6 +45212,12 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
43827
45212
  };
43828
45213
  Returns: boolean;
43829
45214
  };
45215
+ release_stale_order_invoice_links: {
45216
+ Args: {
45217
+ _minutes?: number;
45218
+ };
45219
+ Returns: number;
45220
+ };
43830
45221
  reorder_customer_price_groups: {
43831
45222
  Args: {
43832
45223
  _ids: string[];
@@ -44345,6 +45736,20 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
44345
45736
  };
44346
45737
  Returns: undefined;
44347
45738
  };
45739
+ twinfield_deactivate_connection: {
45740
+ Args: {
45741
+ p_connection_id: string;
45742
+ p_user_id: string;
45743
+ };
45744
+ Returns: import("../integrations/supabase/types").Json;
45745
+ };
45746
+ twinfield_handle_administration_change: {
45747
+ Args: {
45748
+ _administration_code: string;
45749
+ _user_id: string;
45750
+ };
45751
+ Returns: undefined;
45752
+ };
44348
45753
  twinfield_prune_push_queue: {
44349
45754
  Args: never;
44350
45755
  Returns: number;
@@ -44364,10 +45769,11 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
44364
45769
  p_company_name?: string;
44365
45770
  p_environment: string;
44366
45771
  p_office_code?: string;
45772
+ p_reset_sync?: boolean;
44367
45773
  p_status?: string;
44368
45774
  p_user_id: string;
44369
45775
  };
44370
- Returns: string;
45776
+ Returns: import("../integrations/supabase/types").Json;
44371
45777
  };
44372
45778
  upsert_auto_fulfillment_log: {
44373
45779
  Args: {