@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
@@ -683,6 +683,99 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
683
683
  };
684
684
  Relationships: [];
685
685
  };
686
+ artikelen_cache: {
687
+ Row: {
688
+ artikelcode: string;
689
+ bron: string;
690
+ bruto_prijs_cent: number | null;
691
+ created_at: string;
692
+ eenheid: string;
693
+ fabrikant: string | null;
694
+ fetched_at: string;
695
+ gtin: string | null;
696
+ id: string;
697
+ naam: string;
698
+ netto_prijs_cent: number | null;
699
+ omschrijving: string | null;
700
+ raw: import("../integrations/supabase/types").Json;
701
+ updated_at: string;
702
+ valuta: string;
703
+ };
704
+ Insert: {
705
+ artikelcode: string;
706
+ bron?: string;
707
+ bruto_prijs_cent?: number | null;
708
+ created_at?: string;
709
+ eenheid?: string;
710
+ fabrikant?: string | null;
711
+ fetched_at?: string;
712
+ gtin?: string | null;
713
+ id?: string;
714
+ naam: string;
715
+ netto_prijs_cent?: number | null;
716
+ omschrijving?: string | null;
717
+ raw?: import("../integrations/supabase/types").Json;
718
+ updated_at?: string;
719
+ valuta?: string;
720
+ };
721
+ Update: {
722
+ artikelcode?: string;
723
+ bron?: string;
724
+ bruto_prijs_cent?: number | null;
725
+ created_at?: string;
726
+ eenheid?: string;
727
+ fabrikant?: string | null;
728
+ fetched_at?: string;
729
+ gtin?: string | null;
730
+ id?: string;
731
+ naam?: string;
732
+ netto_prijs_cent?: number | null;
733
+ omschrijving?: string | null;
734
+ raw?: import("../integrations/supabase/types").Json;
735
+ updated_at?: string;
736
+ valuta?: string;
737
+ };
738
+ Relationships: [];
739
+ };
740
+ artikelen_veldconfig: {
741
+ Row: {
742
+ bron_pad: string;
743
+ created_at: string;
744
+ id: string;
745
+ label: string;
746
+ sort_order: number;
747
+ type: string;
748
+ updated_at: string;
749
+ veld_key: string;
750
+ zichtbaar_in_detail: boolean;
751
+ zichtbaar_in_lijst: boolean;
752
+ };
753
+ Insert: {
754
+ bron_pad: string;
755
+ created_at?: string;
756
+ id?: string;
757
+ label: string;
758
+ sort_order?: number;
759
+ type?: string;
760
+ updated_at?: string;
761
+ veld_key: string;
762
+ zichtbaar_in_detail?: boolean;
763
+ zichtbaar_in_lijst?: boolean;
764
+ };
765
+ Update: {
766
+ bron_pad?: string;
767
+ created_at?: string;
768
+ id?: string;
769
+ label?: string;
770
+ sort_order?: number;
771
+ type?: string;
772
+ updated_at?: string;
773
+ veld_key?: string;
774
+ zichtbaar_in_detail?: boolean;
775
+ zichtbaar_in_lijst?: boolean;
776
+ };
777
+ Relationships: [];
778
+ };
686
779
  booking_items: {
687
780
  Row: {
688
781
  booking_id: string;
@@ -2768,6 +2861,42 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
2768
2861
  };
2769
2862
  Relationships: [];
2770
2863
  };
2864
+ document_bronregels: {
2865
+ Row: {
2866
+ bron: string;
2867
+ created_at: string;
2868
+ documenttype: string;
2869
+ herkomst: string;
2870
+ id: string;
2871
+ layout_id: string | null;
2872
+ updated_at: string;
2873
+ };
2874
+ Insert: {
2875
+ bron?: string;
2876
+ created_at?: string;
2877
+ documenttype: string;
2878
+ herkomst: string;
2879
+ id?: string;
2880
+ layout_id?: string | null;
2881
+ updated_at?: string;
2882
+ };
2883
+ Update: {
2884
+ bron?: string;
2885
+ created_at?: string;
2886
+ documenttype?: string;
2887
+ herkomst?: string;
2888
+ id?: string;
2889
+ layout_id?: string | null;
2890
+ updated_at?: string;
2891
+ };
2892
+ Relationships: [{
2893
+ foreignKeyName: "document_bronregels_layout_id_fkey";
2894
+ columns: ["layout_id"];
2895
+ isOneToOne: false;
2896
+ referencedRelation: "document_layouts";
2897
+ referencedColumns: ["id"];
2898
+ }];
2899
+ };
2771
2900
  document_formaat_printers: {
2772
2901
  Row: {
2773
2902
  created_at: string;
@@ -3045,6 +3174,7 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
3045
3174
  Row: {
3046
3175
  actief: boolean;
3047
3176
  breedte_mm: number;
3177
+ bron: string;
3048
3178
  config: import("../integrations/supabase/types").Json;
3049
3179
  created_at: string;
3050
3180
  created_by: string | null;
@@ -3062,12 +3192,14 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
3062
3192
  orientatie: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
3063
3193
  page_settings: import("../integrations/supabase/types").Json;
3064
3194
  papierformaat: string;
3195
+ systeem: boolean;
3065
3196
  thumbnail_url: string | null;
3066
3197
  updated_at: string;
3067
3198
  };
3068
3199
  Insert: {
3069
3200
  actief?: boolean;
3070
3201
  breedte_mm?: number;
3202
+ bron?: string;
3071
3203
  config?: import("../integrations/supabase/types").Json;
3072
3204
  created_at?: string;
3073
3205
  created_by?: string | null;
@@ -3085,12 +3217,14 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
3085
3217
  orientatie?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
3086
3218
  page_settings?: import("../integrations/supabase/types").Json;
3087
3219
  papierformaat?: string;
3220
+ systeem?: boolean;
3088
3221
  thumbnail_url?: string | null;
3089
3222
  updated_at?: string;
3090
3223
  };
3091
3224
  Update: {
3092
3225
  actief?: boolean;
3093
3226
  breedte_mm?: number;
3227
+ bron?: string;
3094
3228
  config?: import("../integrations/supabase/types").Json;
3095
3229
  created_at?: string;
3096
3230
  created_by?: string | null;
@@ -3108,11 +3242,90 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
3108
3242
  orientatie?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
3109
3243
  page_settings?: import("../integrations/supabase/types").Json;
3110
3244
  papierformaat?: string;
3245
+ systeem?: boolean;
3111
3246
  thumbnail_url?: string | null;
3112
3247
  updated_at?: string;
3113
3248
  };
3114
3249
  Relationships: [];
3115
3250
  };
3251
+ document_printplek_printers: {
3252
+ Row: {
3253
+ created_at: string;
3254
+ documenttype: string;
3255
+ id: string;
3256
+ papierformaat: string | null;
3257
+ print_plek_id: string;
3258
+ printer_id: string | null;
3259
+ updated_at: string;
3260
+ };
3261
+ Insert: {
3262
+ created_at?: string;
3263
+ documenttype: string;
3264
+ id?: string;
3265
+ papierformaat?: string | null;
3266
+ print_plek_id: string;
3267
+ printer_id?: string | null;
3268
+ updated_at?: string;
3269
+ };
3270
+ Update: {
3271
+ created_at?: string;
3272
+ documenttype?: string;
3273
+ id?: string;
3274
+ papierformaat?: string | null;
3275
+ print_plek_id?: string;
3276
+ printer_id?: string | null;
3277
+ updated_at?: string;
3278
+ };
3279
+ Relationships: [{
3280
+ foreignKeyName: "document_printplek_printers_print_plek_id_fkey";
3281
+ columns: ["print_plek_id"];
3282
+ isOneToOne: false;
3283
+ referencedRelation: "print_plekken";
3284
+ referencedColumns: ["id"];
3285
+ }, {
3286
+ foreignKeyName: "document_printplek_printers_printer_id_fkey";
3287
+ columns: ["printer_id"];
3288
+ isOneToOne: false;
3289
+ referencedRelation: "printers";
3290
+ referencedColumns: ["id"];
3291
+ }];
3292
+ };
3293
+ document_werkplek_printers: {
3294
+ Row: {
3295
+ created_at: string;
3296
+ documenttype: string;
3297
+ id: string;
3298
+ papierformaat: string | null;
3299
+ printer_id: string | null;
3300
+ updated_at: string;
3301
+ werkplek: string;
3302
+ };
3303
+ Insert: {
3304
+ created_at?: string;
3305
+ documenttype: string;
3306
+ id?: string;
3307
+ papierformaat?: string | null;
3308
+ printer_id?: string | null;
3309
+ updated_at?: string;
3310
+ werkplek: string;
3311
+ };
3312
+ Update: {
3313
+ created_at?: string;
3314
+ documenttype?: string;
3315
+ id?: string;
3316
+ papierformaat?: string | null;
3317
+ printer_id?: string | null;
3318
+ updated_at?: string;
3319
+ werkplek?: string;
3320
+ };
3321
+ Relationships: [{
3322
+ foreignKeyName: "document_werkplek_printers_printer_id_fkey";
3323
+ columns: ["printer_id"];
3324
+ isOneToOne: false;
3325
+ referencedRelation: "printers";
3326
+ referencedColumns: ["id"];
3327
+ }];
3328
+ };
3116
3329
  email_auth_connections: {
3117
3330
  Row: {
3118
3331
  access_token_encrypted: string | null;
@@ -5054,42 +5267,6 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
5054
5267
  };
5055
5268
  Relationships: [];
5056
5269
  };
5057
- facturen: {
5058
- Row: {
5059
- bedrag_incl_btw: number;
5060
- created_at: string;
5061
- datum: string;
5062
- factuurnummer: string;
5063
- id: string;
5064
- klantnaam: string;
5065
- status: string;
5066
- updated_at: string;
5067
- user_id: string;
5068
- };
5069
- Insert: {
5070
- bedrag_incl_btw: number;
5071
- created_at?: string;
5072
- datum?: string;
5073
- factuurnummer: string;
5074
- id?: string;
5075
- klantnaam: string;
5076
- status?: string;
5077
- updated_at?: string;
5078
- user_id?: string;
5079
- };
5080
- Update: {
5081
- bedrag_incl_btw?: number;
5082
- created_at?: string;
5083
- datum?: string;
5084
- factuurnummer?: string;
5085
- id?: string;
5086
- klantnaam?: string;
5087
- status?: string;
5088
- updated_at?: string;
5089
- user_id?: string;
5090
- };
5091
- Relationships: [];
5092
- };
5093
5270
  floricode_connection_settings: {
5094
5271
  Row: {
5095
5272
  catalog_key: string | null;
@@ -7394,8 +7571,63 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
7394
7571
  };
7395
7572
  Relationships: [];
7396
7573
  };
7574
+ invoice_items: {
7575
+ Row: {
7576
+ created_at: string;
7577
+ description: string;
7578
+ id: string;
7579
+ invoice_id: string;
7580
+ kind: string;
7581
+ quantity: number;
7582
+ sort_order: number;
7583
+ source_line_ref: string | null;
7584
+ total_cents: number;
7585
+ unit: string;
7586
+ unit_price_cents: number;
7587
+ };
7588
+ Insert: {
7589
+ created_at?: string;
7590
+ description?: string;
7591
+ id?: string;
7592
+ invoice_id: string;
7593
+ kind?: string;
7594
+ quantity?: number;
7595
+ sort_order?: number;
7596
+ source_line_ref?: string | null;
7597
+ total_cents?: number;
7598
+ unit?: string;
7599
+ unit_price_cents?: number;
7600
+ };
7601
+ Update: {
7602
+ created_at?: string;
7603
+ description?: string;
7604
+ id?: string;
7605
+ invoice_id?: string;
7606
+ kind?: string;
7607
+ quantity?: number;
7608
+ sort_order?: number;
7609
+ source_line_ref?: string | null;
7610
+ total_cents?: number;
7611
+ unit?: string;
7612
+ unit_price_cents?: number;
7613
+ };
7614
+ Relationships: [{
7615
+ foreignKeyName: "invoice_items_invoice_id_fkey";
7616
+ columns: ["invoice_id"];
7617
+ isOneToOne: false;
7618
+ referencedRelation: "invoices";
7619
+ referencedColumns: ["id"];
7620
+ }, {
7621
+ foreignKeyName: "invoice_items_invoice_id_fkey";
7622
+ columns: ["invoice_id"];
7623
+ isOneToOne: false;
7624
+ referencedRelation: "uren_facturen";
7625
+ referencedColumns: ["id"];
7626
+ }];
7627
+ };
7397
7628
  invoice_post_idempotency: {
7398
7629
  Row: {
7630
+ administration_code: string;
7399
7631
  client_request_id: string;
7400
7632
  completed_at: string | null;
7401
7633
  created_at: string;
@@ -7405,6 +7637,7 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
7405
7637
  user_id: string;
7406
7638
  };
7407
7639
  Insert: {
7640
+ administration_code?: string;
7408
7641
  client_request_id: string;
7409
7642
  completed_at?: string | null;
7410
7643
  created_at?: string;
@@ -7414,6 +7647,7 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
7414
7647
  user_id: string;
7415
7648
  };
7416
7649
  Update: {
7650
+ administration_code?: string;
7417
7651
  client_request_id?: string;
7418
7652
  completed_at?: string | null;
7419
7653
  created_at?: string;
@@ -7619,6 +7853,75 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
7619
7853
  };
7620
7854
  Relationships: [];
7621
7855
  };
7856
+ invoices: {
7857
+ Row: {
7858
+ created_at: string;
7859
+ created_by: string | null;
7860
+ customer_id: string | null;
7861
+ customer_name: string | null;
7862
+ due_date: string | null;
7863
+ id: string;
7864
+ invoice_date: string;
7865
+ invoice_number: string | null;
7866
+ note: string | null;
7867
+ source_number: string | null;
7868
+ source_ref: string | null;
7869
+ source_type: string;
7870
+ status: string;
7871
+ subtotal_cents: number;
7872
+ total_cents: number;
7873
+ updated_at: string;
7874
+ vat_cents: number;
7875
+ vat_rate: number;
7876
+ };
7877
+ Insert: {
7878
+ created_at?: string;
7879
+ created_by?: string | null;
7880
+ customer_id?: string | null;
7881
+ customer_name?: string | null;
7882
+ due_date?: string | null;
7883
+ id?: string;
7884
+ invoice_date?: string;
7885
+ invoice_number?: string | null;
7886
+ note?: string | null;
7887
+ source_number?: string | null;
7888
+ source_ref?: string | null;
7889
+ source_type?: string;
7890
+ status?: string;
7891
+ subtotal_cents?: number;
7892
+ total_cents?: number;
7893
+ updated_at?: string;
7894
+ vat_cents?: number;
7895
+ vat_rate?: number;
7896
+ };
7897
+ Update: {
7898
+ created_at?: string;
7899
+ created_by?: string | null;
7900
+ customer_id?: string | null;
7901
+ customer_name?: string | null;
7902
+ due_date?: string | null;
7903
+ id?: string;
7904
+ invoice_date?: string;
7905
+ invoice_number?: string | null;
7906
+ note?: string | null;
7907
+ source_number?: string | null;
7908
+ source_ref?: string | null;
7909
+ source_type?: string;
7910
+ status?: string;
7911
+ subtotal_cents?: number;
7912
+ total_cents?: number;
7913
+ updated_at?: string;
7914
+ vat_cents?: number;
7915
+ vat_rate?: number;
7916
+ };
7917
+ Relationships: [{
7918
+ foreignKeyName: "invoices_customer_id_fkey";
7919
+ columns: ["customer_id"];
7920
+ isOneToOne: false;
7921
+ referencedRelation: "itk_customers";
7922
+ referencedColumns: ["id"];
7923
+ }];
7924
+ };
7622
7925
  itk_contact_persons: {
7623
7926
  Row: {
7624
7927
  created_at: string;
@@ -8966,6 +9269,10 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
8966
9269
  id: string;
8967
9270
  last_error: string | null;
8968
9271
  last_error_at: string | null;
9272
+ last_error_code: string | null;
9273
+ last_gateway_status: number | null;
9274
+ last_queued_at: string | null;
9275
+ last_response: import("../integrations/supabase/types").Json | null;
8969
9276
  last_sent_hash: string | null;
8970
9277
  locked_by: string | null;
8971
9278
  locked_until: string | null;
@@ -8986,6 +9293,10 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
8986
9293
  id?: string;
8987
9294
  last_error?: string | null;
8988
9295
  last_error_at?: string | null;
9296
+ last_error_code?: string | null;
9297
+ last_gateway_status?: number | null;
9298
+ last_queued_at?: string | null;
9299
+ last_response?: import("../integrations/supabase/types").Json | null;
8989
9300
  last_sent_hash?: string | null;
8990
9301
  locked_by?: string | null;
8991
9302
  locked_until?: string | null;
@@ -9006,6 +9317,10 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
9006
9317
  id?: string;
9007
9318
  last_error?: string | null;
9008
9319
  last_error_at?: string | null;
9320
+ last_error_code?: string | null;
9321
+ last_gateway_status?: number | null;
9322
+ last_queued_at?: string | null;
9323
+ last_response?: import("../integrations/supabase/types").Json | null;
9009
9324
  last_sent_hash?: string | null;
9010
9325
  locked_by?: string | null;
9011
9326
  locked_until?: string | null;
@@ -10559,6 +10874,7 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
10559
10874
  enforce: boolean;
10560
10875
  is_active: boolean;
10561
10876
  last_seen_at: string;
10877
+ missing_count: number;
10562
10878
  module_id: string;
10563
10879
  name: string;
10564
10880
  shell_id: string | null;
@@ -10569,6 +10885,7 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
10569
10885
  enforce?: boolean;
10570
10886
  is_active?: boolean;
10571
10887
  last_seen_at?: string;
10888
+ missing_count?: number;
10572
10889
  module_id: string;
10573
10890
  name: string;
10574
10891
  shell_id?: string | null;
@@ -10579,6 +10896,7 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
10579
10896
  enforce?: boolean;
10580
10897
  is_active?: boolean;
10581
10898
  last_seen_at?: string;
10899
+ missing_count?: number;
10582
10900
  module_id?: string;
10583
10901
  name?: string;
10584
10902
  shell_id?: string | null;
@@ -11578,6 +11896,7 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
11578
11896
  };
11579
11897
  order_invoice_links: {
11580
11898
  Row: {
11899
+ administration_code: string | null;
11581
11900
  attempts: number;
11582
11901
  created_at: string;
11583
11902
  error_message: string | null;
@@ -11590,6 +11909,7 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
11590
11909
  updated_at: string;
11591
11910
  };
11592
11911
  Insert: {
11912
+ administration_code?: string | null;
11593
11913
  attempts?: number;
11594
11914
  created_at?: string;
11595
11915
  error_message?: string | null;
@@ -11602,6 +11922,7 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
11602
11922
  updated_at?: string;
11603
11923
  };
11604
11924
  Update: {
11925
+ administration_code?: string | null;
11605
11926
  attempts?: number;
11606
11927
  created_at?: string;
11607
11928
  error_message?: string | null;
@@ -12767,6 +13088,27 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
12767
13088
  referencedColumns: ["id"];
12768
13089
  }];
12769
13090
  };
13091
+ pick_sync_state: {
13092
+ Row: {
13093
+ id: boolean;
13094
+ last_cleanup_at: string | null;
13095
+ last_sync_at: string | null;
13096
+ updated_at: string;
13097
+ };
13098
+ Insert: {
13099
+ id?: boolean;
13100
+ last_cleanup_at?: string | null;
13101
+ last_sync_at?: string | null;
13102
+ updated_at?: string;
13103
+ };
13104
+ Update: {
13105
+ id?: boolean;
13106
+ last_cleanup_at?: string | null;
13107
+ last_sync_at?: string | null;
13108
+ updated_at?: string;
13109
+ };
13110
+ Relationships: [];
13111
+ };
12770
13112
  pick_task_document_types: {
12771
13113
  Row: {
12772
13114
  created_at: string;
@@ -13049,6 +13391,7 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
13049
13391
  gebruiker_id: string | null;
13050
13392
  gebruiker_naam: string;
13051
13393
  gestart_op: string | null;
13394
+ herkomst: string | null;
13052
13395
  id: string;
13053
13396
  idempotentie_sleutel: string | null;
13054
13397
  is_herprint: boolean;
@@ -13078,6 +13421,7 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
13078
13421
  gebruiker_id?: string | null;
13079
13422
  gebruiker_naam?: string;
13080
13423
  gestart_op?: string | null;
13424
+ herkomst?: string | null;
13081
13425
  id?: string;
13082
13426
  idempotentie_sleutel?: string | null;
13083
13427
  is_herprint?: boolean;
@@ -13107,6 +13451,7 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
13107
13451
  gebruiker_id?: string | null;
13108
13452
  gebruiker_naam?: string;
13109
13453
  gestart_op?: string | null;
13454
+ herkomst?: string | null;
13110
13455
  id?: string;
13111
13456
  idempotentie_sleutel?: string | null;
13112
13457
  is_herprint?: boolean;
@@ -13145,6 +13490,99 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
13145
13490
  referencedColumns: ["id"];
13146
13491
  }];
13147
13492
  };
13493
+ print_plek_computers: {
13494
+ Row: {
13495
+ computer_naam: string;
13496
+ created_at: string;
13497
+ id: string;
13498
+ print_plek_id: string;
13499
+ updated_at: string;
13500
+ };
13501
+ Insert: {
13502
+ computer_naam: string;
13503
+ created_at?: string;
13504
+ id?: string;
13505
+ print_plek_id: string;
13506
+ updated_at?: string;
13507
+ };
13508
+ Update: {
13509
+ computer_naam?: string;
13510
+ created_at?: string;
13511
+ id?: string;
13512
+ print_plek_id?: string;
13513
+ updated_at?: string;
13514
+ };
13515
+ Relationships: [{
13516
+ foreignKeyName: "print_plek_computers_print_plek_id_fkey";
13517
+ columns: ["print_plek_id"];
13518
+ isOneToOne: false;
13519
+ referencedRelation: "print_plekken";
13520
+ referencedColumns: ["id"];
13521
+ }];
13522
+ };
13523
+ print_plek_koppelingen: {
13524
+ Row: {
13525
+ bron: string;
13526
+ bron_id: string;
13527
+ created_at: string;
13528
+ id: string;
13529
+ label: string | null;
13530
+ print_plek_id: string;
13531
+ updated_at: string;
13532
+ };
13533
+ Insert: {
13534
+ bron: string;
13535
+ bron_id: string;
13536
+ created_at?: string;
13537
+ id?: string;
13538
+ label?: string | null;
13539
+ print_plek_id: string;
13540
+ updated_at?: string;
13541
+ };
13542
+ Update: {
13543
+ bron?: string;
13544
+ bron_id?: string;
13545
+ created_at?: string;
13546
+ id?: string;
13547
+ label?: string | null;
13548
+ print_plek_id?: string;
13549
+ updated_at?: string;
13550
+ };
13551
+ Relationships: [{
13552
+ foreignKeyName: "print_plek_koppelingen_print_plek_id_fkey";
13553
+ columns: ["print_plek_id"];
13554
+ isOneToOne: false;
13555
+ referencedRelation: "print_plekken";
13556
+ referencedColumns: ["id"];
13557
+ }];
13558
+ };
13559
+ print_plekken: {
13560
+ Row: {
13561
+ actief: boolean;
13562
+ created_at: string;
13563
+ id: string;
13564
+ naam: string;
13565
+ omschrijving: string | null;
13566
+ updated_at: string;
13567
+ };
13568
+ Insert: {
13569
+ actief?: boolean;
13570
+ created_at?: string;
13571
+ id?: string;
13572
+ naam: string;
13573
+ omschrijving?: string | null;
13574
+ updated_at?: string;
13575
+ };
13576
+ Update: {
13577
+ actief?: boolean;
13578
+ created_at?: string;
13579
+ id?: string;
13580
+ naam?: string;
13581
+ omschrijving?: string | null;
13582
+ updated_at?: string;
13583
+ };
13584
+ Relationships: [];
13585
+ };
13148
13586
  print_queue_runners: {
13149
13587
  Row: {
13150
13588
  actief: boolean;
@@ -15299,6 +15737,45 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
15299
15737
  };
15300
15738
  Relationships: [];
15301
15739
  };
15740
+ stock_consumption_alerts: {
15741
+ Row: {
15742
+ alert_type: string;
15743
+ created_at: string;
15744
+ id: string;
15745
+ mutation_log_id: string | null;
15746
+ order_id: string | null;
15747
+ order_item_id: string | null;
15748
+ qty: number;
15749
+ reason: string | null;
15750
+ resolved_at: string | null;
15751
+ updated_at: string;
15752
+ };
15753
+ Insert: {
15754
+ alert_type: string;
15755
+ created_at?: string;
15756
+ id?: string;
15757
+ mutation_log_id?: string | null;
15758
+ order_id?: string | null;
15759
+ order_item_id?: string | null;
15760
+ qty?: number;
15761
+ reason?: string | null;
15762
+ resolved_at?: string | null;
15763
+ updated_at?: string;
15764
+ };
15765
+ Update: {
15766
+ alert_type?: string;
15767
+ created_at?: string;
15768
+ id?: string;
15769
+ mutation_log_id?: string | null;
15770
+ order_id?: string | null;
15771
+ order_item_id?: string | null;
15772
+ qty?: number;
15773
+ reason?: string | null;
15774
+ resolved_at?: string | null;
15775
+ updated_at?: string;
15776
+ };
15777
+ Relationships: [];
15778
+ };
15302
15779
  stock_import_runs: {
15303
15780
  Row: {
15304
15781
  connection_id: string | null;
@@ -16111,12 +16588,16 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
16111
16588
  company_name: string | null;
16112
16589
  connected_at: string | null;
16113
16590
  created_at: string;
16591
+ disconnected_at: string | null;
16114
16592
  environment: string;
16115
16593
  id: string;
16594
+ initial_sync_completed_at: string | null;
16595
+ initial_sync_started_at: string | null;
16116
16596
  is_active: boolean;
16117
16597
  label: string | null;
16118
16598
  office_code: string | null;
16119
16599
  redirect_uri: string | null;
16600
+ superseded_at: string | null;
16120
16601
  updated_at: string;
16121
16602
  user_id: string;
16122
16603
  };
@@ -16127,12 +16608,16 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
16127
16608
  company_name?: string | null;
16128
16609
  connected_at?: string | null;
16129
16610
  created_at?: string;
16611
+ disconnected_at?: string | null;
16130
16612
  environment: string;
16131
16613
  id?: string;
16614
+ initial_sync_completed_at?: string | null;
16615
+ initial_sync_started_at?: string | null;
16132
16616
  is_active?: boolean;
16133
16617
  label?: string | null;
16134
16618
  office_code?: string | null;
16135
16619
  redirect_uri?: string | null;
16620
+ superseded_at?: string | null;
16136
16621
  updated_at?: string;
16137
16622
  user_id: string;
16138
16623
  };
@@ -16143,12 +16628,16 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
16143
16628
  company_name?: string | null;
16144
16629
  connected_at?: string | null;
16145
16630
  created_at?: string;
16631
+ disconnected_at?: string | null;
16146
16632
  environment?: string;
16147
16633
  id?: string;
16634
+ initial_sync_completed_at?: string | null;
16635
+ initial_sync_started_at?: string | null;
16148
16636
  is_active?: boolean;
16149
16637
  label?: string | null;
16150
16638
  office_code?: string | null;
16151
16639
  redirect_uri?: string | null;
16640
+ superseded_at?: string | null;
16152
16641
  updated_at?: string;
16153
16642
  user_id?: string;
16154
16643
  };
@@ -16208,6 +16697,7 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
16208
16697
  twinfield_customers: {
16209
16698
  Row: {
16210
16699
  address: string | null;
16700
+ administration_code: string;
16211
16701
  city: string | null;
16212
16702
  country: string | null;
16213
16703
  created_at: string;
@@ -16227,6 +16717,7 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
16227
16717
  };
16228
16718
  Insert: {
16229
16719
  address?: string | null;
16720
+ administration_code?: string;
16230
16721
  city?: string | null;
16231
16722
  country?: string | null;
16232
16723
  created_at?: string;
@@ -16246,6 +16737,7 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
16246
16737
  };
16247
16738
  Update: {
16248
16739
  address?: string | null;
16740
+ administration_code?: string;
16249
16741
  city?: string | null;
16250
16742
  country?: string | null;
16251
16743
  created_at?: string;
@@ -16459,7 +16951,9 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
16459
16951
  };
16460
16952
  twinfield_invoice_settings: {
16461
16953
  Row: {
16954
+ administration_code: string | null;
16462
16955
  auto_invoice_enabled: boolean;
16956
+ auto_invoice_start_date: string | null;
16463
16957
  auto_invoice_trigger_statuses: string[];
16464
16958
  created_at: string;
16465
16959
  debtor_gl_account: string;
@@ -16473,15 +16967,19 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
16473
16967
  invoice_enabled_fo: boolean;
16474
16968
  invoice_enabled_ho: boolean;
16475
16969
  invoice_enabled_mo: boolean;
16970
+ needs_review: boolean;
16476
16971
  payment_gl_account: string;
16477
16972
  payment_journal_code: string;
16973
+ settings_confirmed_at: string | null;
16478
16974
  updated_at: string;
16479
16975
  user_id: string;
16480
16976
  vat_code_eu_reverse: string | null;
16481
16977
  vat_code_export: string | null;
16482
16978
  };
16483
16979
  Insert: {
16980
+ administration_code?: string | null;
16484
16981
  auto_invoice_enabled?: boolean;
16982
+ auto_invoice_start_date?: string | null;
16485
16983
  auto_invoice_trigger_statuses?: string[];
16486
16984
  created_at?: string;
16487
16985
  debtor_gl_account?: string;
@@ -16495,15 +16993,19 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
16495
16993
  invoice_enabled_fo?: boolean;
16496
16994
  invoice_enabled_ho?: boolean;
16497
16995
  invoice_enabled_mo?: boolean;
16996
+ needs_review?: boolean;
16498
16997
  payment_gl_account?: string;
16499
16998
  payment_journal_code?: string;
16999
+ settings_confirmed_at?: string | null;
16500
17000
  updated_at?: string;
16501
17001
  user_id: string;
16502
17002
  vat_code_eu_reverse?: string | null;
16503
17003
  vat_code_export?: string | null;
16504
17004
  };
16505
17005
  Update: {
17006
+ administration_code?: string | null;
16506
17007
  auto_invoice_enabled?: boolean;
17008
+ auto_invoice_start_date?: string | null;
16507
17009
  auto_invoice_trigger_statuses?: string[];
16508
17010
  created_at?: string;
16509
17011
  debtor_gl_account?: string;
@@ -16517,8 +17019,10 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
16517
17019
  invoice_enabled_fo?: boolean;
16518
17020
  invoice_enabled_ho?: boolean;
16519
17021
  invoice_enabled_mo?: boolean;
17022
+ needs_review?: boolean;
16520
17023
  payment_gl_account?: string;
16521
17024
  payment_journal_code?: string;
17025
+ settings_confirmed_at?: string | null;
16522
17026
  updated_at?: string;
16523
17027
  user_id?: string;
16524
17028
  vat_code_eu_reverse?: string | null;
@@ -17123,114 +17627,6 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
17123
17627
  };
17124
17628
  Relationships: [];
17125
17629
  };
17126
- uren_facturen: {
17127
- Row: {
17128
- created_at: string;
17129
- created_by: string | null;
17130
- customer_id: string | null;
17131
- customer_name: string | null;
17132
- id: string;
17133
- invoice_number: string | null;
17134
- note: string | null;
17135
- status: string;
17136
- total_excl_cents: number;
17137
- total_incl_cents: number;
17138
- updated_at: string;
17139
- vat_cents: number;
17140
- vat_percentage: number;
17141
- werkbon_id: string | null;
17142
- };
17143
- Insert: {
17144
- created_at?: string;
17145
- created_by?: string | null;
17146
- customer_id?: string | null;
17147
- customer_name?: string | null;
17148
- id?: string;
17149
- invoice_number?: string | null;
17150
- note?: string | null;
17151
- status?: string;
17152
- total_excl_cents?: number;
17153
- total_incl_cents?: number;
17154
- updated_at?: string;
17155
- vat_cents?: number;
17156
- vat_percentage?: number;
17157
- werkbon_id?: string | null;
17158
- };
17159
- Update: {
17160
- created_at?: string;
17161
- created_by?: string | null;
17162
- customer_id?: string | null;
17163
- customer_name?: string | null;
17164
- id?: string;
17165
- invoice_number?: string | null;
17166
- note?: string | null;
17167
- status?: string;
17168
- total_excl_cents?: number;
17169
- total_incl_cents?: number;
17170
- updated_at?: string;
17171
- vat_cents?: number;
17172
- vat_percentage?: number;
17173
- werkbon_id?: string | null;
17174
- };
17175
- Relationships: [{
17176
- foreignKeyName: "uren_facturen_customer_id_fkey";
17177
- columns: ["customer_id"];
17178
- isOneToOne: false;
17179
- referencedRelation: "itk_customers";
17180
- referencedColumns: ["id"];
17181
- }, {
17182
- foreignKeyName: "uren_facturen_werkbon_id_fkey";
17183
- columns: ["werkbon_id"];
17184
- isOneToOne: true;
17185
- referencedRelation: "werkbonnen";
17186
- referencedColumns: ["id"];
17187
- }];
17188
- };
17189
- uren_factuur_regels: {
17190
- Row: {
17191
- created_at: string;
17192
- description: string;
17193
- factuur_id: string;
17194
- id: string;
17195
- kind: string | null;
17196
- quantity: number;
17197
- sort_order: number;
17198
- total_cents: number;
17199
- unit: string;
17200
- unit_price_cents: number;
17201
- };
17202
- Insert: {
17203
- created_at?: string;
17204
- description: string;
17205
- factuur_id: string;
17206
- id?: string;
17207
- kind?: string | null;
17208
- quantity?: number;
17209
- sort_order?: number;
17210
- total_cents?: number;
17211
- unit?: string;
17212
- unit_price_cents?: number;
17213
- };
17214
- Update: {
17215
- created_at?: string;
17216
- description?: string;
17217
- factuur_id?: string;
17218
- id?: string;
17219
- kind?: string | null;
17220
- quantity?: number;
17221
- sort_order?: number;
17222
- total_cents?: number;
17223
- unit?: string;
17224
- unit_price_cents?: number;
17225
- };
17226
- Relationships: [{
17227
- foreignKeyName: "uren_factuur_regels_factuur_id_fkey";
17228
- columns: ["factuur_id"];
17229
- isOneToOne: false;
17230
- referencedRelation: "uren_facturen";
17231
- referencedColumns: ["id"];
17232
- }];
17233
- };
17234
17630
  uren_offerte_regels: {
17235
17631
  Row: {
17236
17632
  created_at: string;
@@ -18484,6 +18880,9 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
18484
18880
  scheduled_end_time: string | null;
18485
18881
  scheduled_start_time: string | null;
18486
18882
  sequence_number: number;
18883
+ signature_accepted_at: string | null;
18884
+ signature_by_user_id: string | null;
18885
+ signature_name: string | null;
18487
18886
  source_email_meta: import("../integrations/supabase/types").Json | null;
18488
18887
  source_mailbox_message_id: string | null;
18489
18888
  source_pdf_path: string | null;
@@ -18519,6 +18918,9 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
18519
18918
  scheduled_end_time?: string | null;
18520
18919
  scheduled_start_time?: string | null;
18521
18920
  sequence_number: number;
18921
+ signature_accepted_at?: string | null;
18922
+ signature_by_user_id?: string | null;
18923
+ signature_name?: string | null;
18522
18924
  source_email_meta?: import("../integrations/supabase/types").Json | null;
18523
18925
  source_mailbox_message_id?: string | null;
18524
18926
  source_pdf_path?: string | null;
@@ -18554,6 +18956,9 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
18554
18956
  scheduled_end_time?: string | null;
18555
18957
  scheduled_start_time?: string | null;
18556
18958
  sequence_number?: number;
18959
+ signature_accepted_at?: string | null;
18960
+ signature_by_user_id?: string | null;
18961
+ signature_name?: string | null;
18557
18962
  source_email_meta?: import("../integrations/supabase/types").Json | null;
18558
18963
  source_mailbox_message_id?: string | null;
18559
18964
  source_pdf_path?: string | null;
@@ -19070,6 +19475,114 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
19070
19475
  };
19071
19476
  Relationships: [];
19072
19477
  };
19478
+ uren_facturen: {
19479
+ Row: {
19480
+ created_at: string | null;
19481
+ created_by: string | null;
19482
+ customer_id: string | null;
19483
+ customer_name: string | null;
19484
+ id: string | null;
19485
+ invoice_number: string | null;
19486
+ note: string | null;
19487
+ status: string | null;
19488
+ total_excl_cents: number | null;
19489
+ total_incl_cents: number | null;
19490
+ updated_at: string | null;
19491
+ vat_cents: number | null;
19492
+ vat_percentage: number | null;
19493
+ werkbon_id: string | null;
19494
+ };
19495
+ Insert: {
19496
+ created_at?: string | null;
19497
+ created_by?: string | null;
19498
+ customer_id?: string | null;
19499
+ customer_name?: string | null;
19500
+ id?: string | null;
19501
+ invoice_number?: string | null;
19502
+ note?: string | null;
19503
+ status?: string | null;
19504
+ total_excl_cents?: number | null;
19505
+ total_incl_cents?: number | null;
19506
+ updated_at?: string | null;
19507
+ vat_cents?: number | null;
19508
+ vat_percentage?: number | null;
19509
+ werkbon_id?: never;
19510
+ };
19511
+ Update: {
19512
+ created_at?: string | null;
19513
+ created_by?: string | null;
19514
+ customer_id?: string | null;
19515
+ customer_name?: string | null;
19516
+ id?: string | null;
19517
+ invoice_number?: string | null;
19518
+ note?: string | null;
19519
+ status?: string | null;
19520
+ total_excl_cents?: number | null;
19521
+ total_incl_cents?: number | null;
19522
+ updated_at?: string | null;
19523
+ vat_cents?: number | null;
19524
+ vat_percentage?: number | null;
19525
+ werkbon_id?: never;
19526
+ };
19527
+ Relationships: [{
19528
+ foreignKeyName: "invoices_customer_id_fkey";
19529
+ columns: ["customer_id"];
19530
+ isOneToOne: false;
19531
+ referencedRelation: "itk_customers";
19532
+ referencedColumns: ["id"];
19533
+ }];
19534
+ };
19535
+ uren_factuur_regels: {
19536
+ Row: {
19537
+ created_at: string | null;
19538
+ description: string | null;
19539
+ factuur_id: string | null;
19540
+ id: string | null;
19541
+ kind: string | null;
19542
+ quantity: number | null;
19543
+ sort_order: number | null;
19544
+ total_cents: number | null;
19545
+ unit: string | null;
19546
+ unit_price_cents: number | null;
19547
+ };
19548
+ Insert: {
19549
+ created_at?: string | null;
19550
+ description?: string | null;
19551
+ factuur_id?: string | null;
19552
+ id?: string | null;
19553
+ kind?: string | null;
19554
+ quantity?: number | null;
19555
+ sort_order?: number | null;
19556
+ total_cents?: number | null;
19557
+ unit?: string | null;
19558
+ unit_price_cents?: number | null;
19559
+ };
19560
+ Update: {
19561
+ created_at?: string | null;
19562
+ description?: string | null;
19563
+ factuur_id?: string | null;
19564
+ id?: string | null;
19565
+ kind?: string | null;
19566
+ quantity?: number | null;
19567
+ sort_order?: number | null;
19568
+ total_cents?: number | null;
19569
+ unit?: string | null;
19570
+ unit_price_cents?: number | null;
19571
+ };
19572
+ Relationships: [{
19573
+ foreignKeyName: "invoice_items_invoice_id_fkey";
19574
+ columns: ["factuur_id"];
19575
+ isOneToOne: false;
19576
+ referencedRelation: "invoices";
19577
+ referencedColumns: ["id"];
19578
+ }, {
19579
+ foreignKeyName: "invoice_items_invoice_id_fkey";
19580
+ columns: ["factuur_id"];
19581
+ isOneToOne: false;
19582
+ referencedRelation: "uren_facturen";
19583
+ referencedColumns: ["id"];
19584
+ }];
19585
+ };
19073
19586
  v_external_customers_exact: {
19074
19587
  Row: {
19075
19588
  account_number: string | null;
@@ -19575,6 +20088,7 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
19575
20088
  gebruiker_id: string | null;
19576
20089
  gebruiker_naam: string;
19577
20090
  gestart_op: string | null;
20091
+ herkomst: string | null;
19578
20092
  id: string;
19579
20093
  idempotentie_sleutel: string | null;
19580
20094
  is_herprint: boolean;
@@ -19695,6 +20209,7 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
19695
20209
  gebruiker_id: string | null;
19696
20210
  gebruiker_naam: string;
19697
20211
  gestart_op: string | null;
20212
+ herkomst: string | null;
19698
20213
  id: string;
19699
20214
  idempotentie_sleutel: string | null;
19700
20215
  is_herprint: boolean;
@@ -20296,6 +20811,46 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
20296
20811
  Args: never;
20297
20812
  Returns: boolean;
20298
20813
  };
20814
+ invoice_create_from_source: {
20815
+ Args: {
20816
+ _payload?: import("../integrations/supabase/types").Json;
20817
+ _source_id: string;
20818
+ _source_type: string;
20819
+ };
20820
+ Returns: import("../integrations/supabase/types").Json;
20821
+ };
20822
+ invoice_get_billable_lines: {
20823
+ Args: {
20824
+ _invoice_id: string;
20825
+ };
20826
+ Returns: import("../integrations/supabase/types").Json;
20827
+ };
20828
+ invoice_get_for_source: {
20829
+ Args: {
20830
+ _source_id: string;
20831
+ _source_type: string;
20832
+ };
20833
+ Returns: import("../integrations/supabase/types").Json;
20834
+ };
20835
+ invoice_get_summary: {
20836
+ Args: {
20837
+ _invoice_id: string;
20838
+ };
20839
+ Returns: import("../integrations/supabase/types").Json;
20840
+ };
20841
+ invoice_list_sources: {
20842
+ Args: {
20843
+ _limit?: number;
20844
+ _source_type?: string;
20845
+ };
20846
+ Returns: import("../integrations/supabase/types").Json;
20847
+ };
20848
+ invoice_recalc_totals: {
20849
+ Args: {
20850
+ _invoice_id: string;
20851
+ };
20852
+ Returns: import("../integrations/supabase/types").Json;
20853
+ };
20299
20854
  is_authenticated: {
20300
20855
  Args: never;
20301
20856
  Returns: boolean;
@@ -20364,6 +20919,29 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
20364
20919
  roles: string[];
20365
20920
  }[];
20366
20921
  };
20922
+ list_monteur_absences: {
20923
+ Args: {
20924
+ _from: string;
20925
+ _to: string;
20926
+ };
20927
+ Returns: {
20928
+ absence_date: string;
20929
+ end_time: string;
20930
+ full_day: boolean;
20931
+ kind: string;
20932
+ monteur_id: string;
20933
+ start_time: string;
20934
+ }[];
20935
+ };
20936
+ list_monteurs: {
20937
+ Args: never;
20938
+ Returns: {
20939
+ avatar_url: string;
20940
+ display_name: string;
20941
+ email: string;
20942
+ id: string;
20943
+ }[];
20944
+ };
20367
20945
  list_my_planning_items: {
20368
20946
  Args: {
20369
20947
  _from: string;
@@ -20775,6 +21353,41 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
20775
21353
  };
20776
21354
  Returns: string;
20777
21355
  };
21356
+ logistics_floriday_finish_push_v2: {
21357
+ Args: {
21358
+ _error?: string;
21359
+ _error_code?: string;
21360
+ _fulfillment_order_id?: string;
21361
+ _gateway_status?: number;
21362
+ _id: string;
21363
+ _max_age_hours?: number;
21364
+ _max_attempts?: number;
21365
+ _ok: boolean;
21366
+ _permanent?: boolean;
21367
+ _response?: import("../integrations/supabase/types").Json;
21368
+ _revision: number;
21369
+ _sent_hash?: string;
21370
+ };
21371
+ Returns: string;
21372
+ };
21373
+ logistics_floriday_finish_push_v3: {
21374
+ Args: {
21375
+ _error?: string;
21376
+ _error_code?: string;
21377
+ _fulfillment_order_id?: string;
21378
+ _gateway_status?: number;
21379
+ _id: string;
21380
+ _max_age_hours?: number;
21381
+ _max_attempts?: number;
21382
+ _outcome: string;
21383
+ _permanent?: boolean;
21384
+ _response?: import("../integrations/supabase/types").Json;
21385
+ _revision: number;
21386
+ _sent_hash?: string;
21387
+ _wait_max_age_hours?: number;
21388
+ };
21389
+ Returns: string;
21390
+ };
20778
21391
  logistics_floriday_prune_pushes: {
20779
21392
  Args: {
20780
21393
  _days?: number;
@@ -21203,6 +21816,12 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
21203
21816
  verwijderd: number;
21204
21817
  }[];
21205
21818
  };
21819
+ order_departure_proof: {
21820
+ Args: {
21821
+ p_order_id: string;
21822
+ };
21823
+ Returns: import("../integrations/supabase/types").Json;
21824
+ };
21206
21825
  order_number_prefix: {
21207
21826
  Args: {
21208
21827
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -21317,6 +21936,13 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
21317
21936
  isSetofReturn: false;
21318
21937
  };
21319
21938
  };
21939
+ pick_cleanup_maintenance: {
21940
+ Args: {
21941
+ _heartbeat_hours?: number;
21942
+ _log_days?: number;
21943
+ };
21944
+ Returns: import("../integrations/supabase/types").Json;
21945
+ };
21320
21946
  pick_complete_print: {
21321
21947
  Args: {
21322
21948
  _printer_id: string;
@@ -21368,6 +21994,14 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
21368
21994
  Args: never;
21369
21995
  Returns: string;
21370
21996
  };
21997
+ pick_day_counts: {
21998
+ Args: {
21999
+ _pick_day?: string;
22000
+ _screen_id?: string;
22001
+ _station_id?: string;
22002
+ };
22003
+ Returns: import("../integrations/supabase/types").Json;
22004
+ };
21371
22005
  pick_document_layout_data: {
21372
22006
  Args: {
21373
22007
  _layout_id: string;
@@ -21395,6 +22029,14 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
21395
22029
  };
21396
22030
  Returns: import("../integrations/supabase/types").Json;
21397
22031
  };
22032
+ pick_print_plekken: {
22033
+ Args: never;
22034
+ Returns: {
22035
+ id: string;
22036
+ naam: string;
22037
+ omschrijving: string;
22038
+ }[];
22039
+ };
21398
22040
  pick_release_expired_locks: {
21399
22041
  Args: never;
21400
22042
  Returns: number;
@@ -21405,6 +22047,14 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
21405
22047
  };
21406
22048
  Returns: undefined;
21407
22049
  };
22050
+ pick_reprint_document: {
22051
+ Args: {
22052
+ _queue_item_id: string;
22053
+ _session_id: string;
22054
+ _throttle_seconds?: number;
22055
+ };
22056
+ Returns: string;
22057
+ };
21408
22058
  pick_reset_print: {
21409
22059
  Args: {
21410
22060
  _queue_item_id: string;
@@ -21451,6 +22101,13 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
21451
22101
  isSetofReturn: false;
21452
22102
  };
21453
22103
  };
22104
+ pick_set_station_print_plek: {
22105
+ Args: {
22106
+ _print_plek_id: string;
22107
+ _station_id: string;
22108
+ };
22109
+ Returns: string;
22110
+ };
21454
22111
  pick_station_dashboard: {
21455
22112
  Args: never;
21456
22113
  Returns: {
@@ -21463,6 +22120,25 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
21463
22120
  waiting: number;
21464
22121
  }[];
21465
22122
  };
22123
+ pick_station_print_plek: {
22124
+ Args: {
22125
+ _station_id: string;
22126
+ };
22127
+ Returns: {
22128
+ naam: string;
22129
+ omschrijving: string;
22130
+ print_plek_id: string;
22131
+ }[];
22132
+ };
22133
+ pick_station_print_plekken: {
22134
+ Args: never;
22135
+ Returns: {
22136
+ naam: string;
22137
+ omschrijving: string;
22138
+ print_plek_id: string;
22139
+ station_id: string;
22140
+ }[];
22141
+ };
21466
22142
  pick_station_slugify: {
21467
22143
  Args: {
21468
22144
  _id: string;
@@ -21470,6 +22146,12 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
21470
22146
  };
21471
22147
  Returns: string;
21472
22148
  };
22149
+ pick_sync_queue_throttled: {
22150
+ Args: {
22151
+ _min_seconds?: number;
22152
+ };
22153
+ Returns: import("../integrations/supabase/types").Json;
22154
+ };
21473
22155
  pickstation_get_orders_raw: {
21474
22156
  Args: never;
21475
22157
  Returns: import("../integrations/supabase/types").Json;
@@ -21615,6 +22297,12 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
21615
22297
  };
21616
22298
  Returns: boolean;
21617
22299
  };
22300
+ release_stale_order_invoice_links: {
22301
+ Args: {
22302
+ _minutes?: number;
22303
+ };
22304
+ Returns: number;
22305
+ };
21618
22306
  reorder_customer_price_groups: {
21619
22307
  Args: {
21620
22308
  _ids: string[];
@@ -22133,6 +22821,20 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
22133
22821
  };
22134
22822
  Returns: undefined;
22135
22823
  };
22824
+ twinfield_deactivate_connection: {
22825
+ Args: {
22826
+ p_connection_id: string;
22827
+ p_user_id: string;
22828
+ };
22829
+ Returns: import("../integrations/supabase/types").Json;
22830
+ };
22831
+ twinfield_handle_administration_change: {
22832
+ Args: {
22833
+ _administration_code: string;
22834
+ _user_id: string;
22835
+ };
22836
+ Returns: undefined;
22837
+ };
22136
22838
  twinfield_prune_push_queue: {
22137
22839
  Args: never;
22138
22840
  Returns: number;
@@ -22152,10 +22854,11 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
22152
22854
  p_company_name?: string;
22153
22855
  p_environment: string;
22154
22856
  p_office_code?: string;
22857
+ p_reset_sync?: boolean;
22155
22858
  p_status?: string;
22156
22859
  p_user_id: string;
22157
22860
  };
22158
- Returns: string;
22861
+ Returns: import("../integrations/supabase/types").Json;
22159
22862
  };
22160
22863
  upsert_auto_fulfillment_log: {
22161
22864
  Args: {
@@ -22906,6 +23609,99 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
22906
23609
  };
22907
23610
  Relationships: [];
22908
23611
  };
23612
+ artikelen_cache: {
23613
+ Row: {
23614
+ artikelcode: string;
23615
+ bron: string;
23616
+ bruto_prijs_cent: number | null;
23617
+ created_at: string;
23618
+ eenheid: string;
23619
+ fabrikant: string | null;
23620
+ fetched_at: string;
23621
+ gtin: string | null;
23622
+ id: string;
23623
+ naam: string;
23624
+ netto_prijs_cent: number | null;
23625
+ omschrijving: string | null;
23626
+ raw: import("../integrations/supabase/types").Json;
23627
+ updated_at: string;
23628
+ valuta: string;
23629
+ };
23630
+ Insert: {
23631
+ artikelcode: string;
23632
+ bron?: string;
23633
+ bruto_prijs_cent?: number | null;
23634
+ created_at?: string;
23635
+ eenheid?: string;
23636
+ fabrikant?: string | null;
23637
+ fetched_at?: string;
23638
+ gtin?: string | null;
23639
+ id?: string;
23640
+ naam: string;
23641
+ netto_prijs_cent?: number | null;
23642
+ omschrijving?: string | null;
23643
+ raw?: import("../integrations/supabase/types").Json;
23644
+ updated_at?: string;
23645
+ valuta?: string;
23646
+ };
23647
+ Update: {
23648
+ artikelcode?: string;
23649
+ bron?: string;
23650
+ bruto_prijs_cent?: number | null;
23651
+ created_at?: string;
23652
+ eenheid?: string;
23653
+ fabrikant?: string | null;
23654
+ fetched_at?: string;
23655
+ gtin?: string | null;
23656
+ id?: string;
23657
+ naam?: string;
23658
+ netto_prijs_cent?: number | null;
23659
+ omschrijving?: string | null;
23660
+ raw?: import("../integrations/supabase/types").Json;
23661
+ updated_at?: string;
23662
+ valuta?: string;
23663
+ };
23664
+ Relationships: [];
23665
+ };
23666
+ artikelen_veldconfig: {
23667
+ Row: {
23668
+ bron_pad: string;
23669
+ created_at: string;
23670
+ id: string;
23671
+ label: string;
23672
+ sort_order: number;
23673
+ type: string;
23674
+ updated_at: string;
23675
+ veld_key: string;
23676
+ zichtbaar_in_detail: boolean;
23677
+ zichtbaar_in_lijst: boolean;
23678
+ };
23679
+ Insert: {
23680
+ bron_pad: string;
23681
+ created_at?: string;
23682
+ id?: string;
23683
+ label: string;
23684
+ sort_order?: number;
23685
+ type?: string;
23686
+ updated_at?: string;
23687
+ veld_key: string;
23688
+ zichtbaar_in_detail?: boolean;
23689
+ zichtbaar_in_lijst?: boolean;
23690
+ };
23691
+ Update: {
23692
+ bron_pad?: string;
23693
+ created_at?: string;
23694
+ id?: string;
23695
+ label?: string;
23696
+ sort_order?: number;
23697
+ type?: string;
23698
+ updated_at?: string;
23699
+ veld_key?: string;
23700
+ zichtbaar_in_detail?: boolean;
23701
+ zichtbaar_in_lijst?: boolean;
23702
+ };
23703
+ Relationships: [];
23704
+ };
22909
23705
  booking_items: {
22910
23706
  Row: {
22911
23707
  booking_id: string;
@@ -24991,6 +25787,42 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
24991
25787
  };
24992
25788
  Relationships: [];
24993
25789
  };
25790
+ document_bronregels: {
25791
+ Row: {
25792
+ bron: string;
25793
+ created_at: string;
25794
+ documenttype: string;
25795
+ herkomst: string;
25796
+ id: string;
25797
+ layout_id: string | null;
25798
+ updated_at: string;
25799
+ };
25800
+ Insert: {
25801
+ bron?: string;
25802
+ created_at?: string;
25803
+ documenttype: string;
25804
+ herkomst: string;
25805
+ id?: string;
25806
+ layout_id?: string | null;
25807
+ updated_at?: string;
25808
+ };
25809
+ Update: {
25810
+ bron?: string;
25811
+ created_at?: string;
25812
+ documenttype?: string;
25813
+ herkomst?: string;
25814
+ id?: string;
25815
+ layout_id?: string | null;
25816
+ updated_at?: string;
25817
+ };
25818
+ Relationships: [{
25819
+ foreignKeyName: "document_bronregels_layout_id_fkey";
25820
+ columns: ["layout_id"];
25821
+ isOneToOne: false;
25822
+ referencedRelation: "document_layouts";
25823
+ referencedColumns: ["id"];
25824
+ }];
25825
+ };
24994
25826
  document_formaat_printers: {
24995
25827
  Row: {
24996
25828
  created_at: string;
@@ -25268,6 +26100,7 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
25268
26100
  Row: {
25269
26101
  actief: boolean;
25270
26102
  breedte_mm: number;
26103
+ bron: string;
25271
26104
  config: import("../integrations/supabase/types").Json;
25272
26105
  created_at: string;
25273
26106
  created_by: string | null;
@@ -25285,12 +26118,14 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
25285
26118
  orientatie: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
25286
26119
  page_settings: import("../integrations/supabase/types").Json;
25287
26120
  papierformaat: string;
26121
+ systeem: boolean;
25288
26122
  thumbnail_url: string | null;
25289
26123
  updated_at: string;
25290
26124
  };
25291
26125
  Insert: {
25292
26126
  actief?: boolean;
25293
26127
  breedte_mm?: number;
26128
+ bron?: string;
25294
26129
  config?: import("../integrations/supabase/types").Json;
25295
26130
  created_at?: string;
25296
26131
  created_by?: string | null;
@@ -25308,12 +26143,14 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
25308
26143
  orientatie?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
25309
26144
  page_settings?: import("../integrations/supabase/types").Json;
25310
26145
  papierformaat?: string;
26146
+ systeem?: boolean;
25311
26147
  thumbnail_url?: string | null;
25312
26148
  updated_at?: string;
25313
26149
  };
25314
26150
  Update: {
25315
26151
  actief?: boolean;
25316
26152
  breedte_mm?: number;
26153
+ bron?: string;
25317
26154
  config?: import("../integrations/supabase/types").Json;
25318
26155
  created_at?: string;
25319
26156
  created_by?: string | null;
@@ -25331,11 +26168,90 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
25331
26168
  orientatie?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
25332
26169
  page_settings?: import("../integrations/supabase/types").Json;
25333
26170
  papierformaat?: string;
26171
+ systeem?: boolean;
25334
26172
  thumbnail_url?: string | null;
25335
26173
  updated_at?: string;
25336
26174
  };
25337
26175
  Relationships: [];
25338
26176
  };
26177
+ document_printplek_printers: {
26178
+ Row: {
26179
+ created_at: string;
26180
+ documenttype: string;
26181
+ id: string;
26182
+ papierformaat: string | null;
26183
+ print_plek_id: string;
26184
+ printer_id: string | null;
26185
+ updated_at: string;
26186
+ };
26187
+ Insert: {
26188
+ created_at?: string;
26189
+ documenttype: string;
26190
+ id?: string;
26191
+ papierformaat?: string | null;
26192
+ print_plek_id: string;
26193
+ printer_id?: string | null;
26194
+ updated_at?: string;
26195
+ };
26196
+ Update: {
26197
+ created_at?: string;
26198
+ documenttype?: string;
26199
+ id?: string;
26200
+ papierformaat?: string | null;
26201
+ print_plek_id?: string;
26202
+ printer_id?: string | null;
26203
+ updated_at?: string;
26204
+ };
26205
+ Relationships: [{
26206
+ foreignKeyName: "document_printplek_printers_print_plek_id_fkey";
26207
+ columns: ["print_plek_id"];
26208
+ isOneToOne: false;
26209
+ referencedRelation: "print_plekken";
26210
+ referencedColumns: ["id"];
26211
+ }, {
26212
+ foreignKeyName: "document_printplek_printers_printer_id_fkey";
26213
+ columns: ["printer_id"];
26214
+ isOneToOne: false;
26215
+ referencedRelation: "printers";
26216
+ referencedColumns: ["id"];
26217
+ }];
26218
+ };
26219
+ document_werkplek_printers: {
26220
+ Row: {
26221
+ created_at: string;
26222
+ documenttype: string;
26223
+ id: string;
26224
+ papierformaat: string | null;
26225
+ printer_id: string | null;
26226
+ updated_at: string;
26227
+ werkplek: string;
26228
+ };
26229
+ Insert: {
26230
+ created_at?: string;
26231
+ documenttype: string;
26232
+ id?: string;
26233
+ papierformaat?: string | null;
26234
+ printer_id?: string | null;
26235
+ updated_at?: string;
26236
+ werkplek: string;
26237
+ };
26238
+ Update: {
26239
+ created_at?: string;
26240
+ documenttype?: string;
26241
+ id?: string;
26242
+ papierformaat?: string | null;
26243
+ printer_id?: string | null;
26244
+ updated_at?: string;
26245
+ werkplek?: string;
26246
+ };
26247
+ Relationships: [{
26248
+ foreignKeyName: "document_werkplek_printers_printer_id_fkey";
26249
+ columns: ["printer_id"];
26250
+ isOneToOne: false;
26251
+ referencedRelation: "printers";
26252
+ referencedColumns: ["id"];
26253
+ }];
26254
+ };
25339
26255
  email_auth_connections: {
25340
26256
  Row: {
25341
26257
  access_token_encrypted: string | null;
@@ -27277,42 +28193,6 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
27277
28193
  };
27278
28194
  Relationships: [];
27279
28195
  };
27280
- facturen: {
27281
- Row: {
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
- Insert: {
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
- Update: {
27304
- bedrag_incl_btw?: number;
27305
- created_at?: string;
27306
- datum?: string;
27307
- factuurnummer?: string;
27308
- id?: string;
27309
- klantnaam?: string;
27310
- status?: string;
27311
- updated_at?: string;
27312
- user_id?: string;
27313
- };
27314
- Relationships: [];
27315
- };
27316
28196
  floricode_connection_settings: {
27317
28197
  Row: {
27318
28198
  catalog_key: string | null;
@@ -29617,8 +30497,63 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
29617
30497
  };
29618
30498
  Relationships: [];
29619
30499
  };
30500
+ invoice_items: {
30501
+ Row: {
30502
+ created_at: string;
30503
+ description: string;
30504
+ id: string;
30505
+ invoice_id: string;
30506
+ kind: string;
30507
+ quantity: number;
30508
+ sort_order: number;
30509
+ source_line_ref: string | null;
30510
+ total_cents: number;
30511
+ unit: string;
30512
+ unit_price_cents: number;
30513
+ };
30514
+ Insert: {
30515
+ created_at?: string;
30516
+ description?: string;
30517
+ id?: string;
30518
+ invoice_id: string;
30519
+ kind?: string;
30520
+ quantity?: number;
30521
+ sort_order?: number;
30522
+ source_line_ref?: string | null;
30523
+ total_cents?: number;
30524
+ unit?: string;
30525
+ unit_price_cents?: number;
30526
+ };
30527
+ Update: {
30528
+ created_at?: string;
30529
+ description?: string;
30530
+ id?: string;
30531
+ invoice_id?: string;
30532
+ kind?: string;
30533
+ quantity?: number;
30534
+ sort_order?: number;
30535
+ source_line_ref?: string | null;
30536
+ total_cents?: number;
30537
+ unit?: string;
30538
+ unit_price_cents?: number;
30539
+ };
30540
+ Relationships: [{
30541
+ foreignKeyName: "invoice_items_invoice_id_fkey";
30542
+ columns: ["invoice_id"];
30543
+ isOneToOne: false;
30544
+ referencedRelation: "invoices";
30545
+ referencedColumns: ["id"];
30546
+ }, {
30547
+ foreignKeyName: "invoice_items_invoice_id_fkey";
30548
+ columns: ["invoice_id"];
30549
+ isOneToOne: false;
30550
+ referencedRelation: "uren_facturen";
30551
+ referencedColumns: ["id"];
30552
+ }];
30553
+ };
29620
30554
  invoice_post_idempotency: {
29621
30555
  Row: {
30556
+ administration_code: string;
29622
30557
  client_request_id: string;
29623
30558
  completed_at: string | null;
29624
30559
  created_at: string;
@@ -29628,6 +30563,7 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
29628
30563
  user_id: string;
29629
30564
  };
29630
30565
  Insert: {
30566
+ administration_code?: string;
29631
30567
  client_request_id: string;
29632
30568
  completed_at?: string | null;
29633
30569
  created_at?: string;
@@ -29637,6 +30573,7 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
29637
30573
  user_id: string;
29638
30574
  };
29639
30575
  Update: {
30576
+ administration_code?: string;
29640
30577
  client_request_id?: string;
29641
30578
  completed_at?: string | null;
29642
30579
  created_at?: string;
@@ -29842,6 +30779,75 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
29842
30779
  };
29843
30780
  Relationships: [];
29844
30781
  };
30782
+ invoices: {
30783
+ Row: {
30784
+ created_at: string;
30785
+ created_by: string | null;
30786
+ customer_id: string | null;
30787
+ customer_name: string | null;
30788
+ due_date: string | null;
30789
+ id: string;
30790
+ invoice_date: string;
30791
+ invoice_number: string | null;
30792
+ note: string | null;
30793
+ source_number: string | null;
30794
+ source_ref: string | null;
30795
+ source_type: string;
30796
+ status: string;
30797
+ subtotal_cents: number;
30798
+ total_cents: number;
30799
+ updated_at: string;
30800
+ vat_cents: number;
30801
+ vat_rate: number;
30802
+ };
30803
+ Insert: {
30804
+ created_at?: string;
30805
+ created_by?: string | null;
30806
+ customer_id?: string | null;
30807
+ customer_name?: string | null;
30808
+ due_date?: string | null;
30809
+ id?: string;
30810
+ invoice_date?: string;
30811
+ invoice_number?: string | null;
30812
+ note?: string | null;
30813
+ source_number?: string | null;
30814
+ source_ref?: string | null;
30815
+ source_type?: string;
30816
+ status?: string;
30817
+ subtotal_cents?: number;
30818
+ total_cents?: number;
30819
+ updated_at?: string;
30820
+ vat_cents?: number;
30821
+ vat_rate?: number;
30822
+ };
30823
+ Update: {
30824
+ created_at?: string;
30825
+ created_by?: string | null;
30826
+ customer_id?: string | null;
30827
+ customer_name?: string | null;
30828
+ due_date?: string | null;
30829
+ id?: string;
30830
+ invoice_date?: string;
30831
+ invoice_number?: string | null;
30832
+ note?: string | null;
30833
+ source_number?: string | null;
30834
+ source_ref?: string | null;
30835
+ source_type?: string;
30836
+ status?: string;
30837
+ subtotal_cents?: number;
30838
+ total_cents?: number;
30839
+ updated_at?: string;
30840
+ vat_cents?: number;
30841
+ vat_rate?: number;
30842
+ };
30843
+ Relationships: [{
30844
+ foreignKeyName: "invoices_customer_id_fkey";
30845
+ columns: ["customer_id"];
30846
+ isOneToOne: false;
30847
+ referencedRelation: "itk_customers";
30848
+ referencedColumns: ["id"];
30849
+ }];
30850
+ };
29845
30851
  itk_contact_persons: {
29846
30852
  Row: {
29847
30853
  created_at: string;
@@ -31189,6 +32195,10 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
31189
32195
  id: string;
31190
32196
  last_error: string | null;
31191
32197
  last_error_at: string | null;
32198
+ last_error_code: string | null;
32199
+ last_gateway_status: number | null;
32200
+ last_queued_at: string | null;
32201
+ last_response: import("../integrations/supabase/types").Json | null;
31192
32202
  last_sent_hash: string | null;
31193
32203
  locked_by: string | null;
31194
32204
  locked_until: string | null;
@@ -31209,6 +32219,10 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
31209
32219
  id?: string;
31210
32220
  last_error?: string | null;
31211
32221
  last_error_at?: string | null;
32222
+ last_error_code?: string | null;
32223
+ last_gateway_status?: number | null;
32224
+ last_queued_at?: string | null;
32225
+ last_response?: import("../integrations/supabase/types").Json | null;
31212
32226
  last_sent_hash?: string | null;
31213
32227
  locked_by?: string | null;
31214
32228
  locked_until?: string | null;
@@ -31229,6 +32243,10 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
31229
32243
  id?: string;
31230
32244
  last_error?: string | null;
31231
32245
  last_error_at?: string | null;
32246
+ last_error_code?: string | null;
32247
+ last_gateway_status?: number | null;
32248
+ last_queued_at?: string | null;
32249
+ last_response?: import("../integrations/supabase/types").Json | null;
31232
32250
  last_sent_hash?: string | null;
31233
32251
  locked_by?: string | null;
31234
32252
  locked_until?: string | null;
@@ -32782,6 +33800,7 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
32782
33800
  enforce: boolean;
32783
33801
  is_active: boolean;
32784
33802
  last_seen_at: string;
33803
+ missing_count: number;
32785
33804
  module_id: string;
32786
33805
  name: string;
32787
33806
  shell_id: string | null;
@@ -32792,6 +33811,7 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
32792
33811
  enforce?: boolean;
32793
33812
  is_active?: boolean;
32794
33813
  last_seen_at?: string;
33814
+ missing_count?: number;
32795
33815
  module_id: string;
32796
33816
  name: string;
32797
33817
  shell_id?: string | null;
@@ -32802,6 +33822,7 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
32802
33822
  enforce?: boolean;
32803
33823
  is_active?: boolean;
32804
33824
  last_seen_at?: string;
33825
+ missing_count?: number;
32805
33826
  module_id?: string;
32806
33827
  name?: string;
32807
33828
  shell_id?: string | null;
@@ -33801,6 +34822,7 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
33801
34822
  };
33802
34823
  order_invoice_links: {
33803
34824
  Row: {
34825
+ administration_code: string | null;
33804
34826
  attempts: number;
33805
34827
  created_at: string;
33806
34828
  error_message: string | null;
@@ -33813,6 +34835,7 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
33813
34835
  updated_at: string;
33814
34836
  };
33815
34837
  Insert: {
34838
+ administration_code?: string | null;
33816
34839
  attempts?: number;
33817
34840
  created_at?: string;
33818
34841
  error_message?: string | null;
@@ -33825,6 +34848,7 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
33825
34848
  updated_at?: string;
33826
34849
  };
33827
34850
  Update: {
34851
+ administration_code?: string | null;
33828
34852
  attempts?: number;
33829
34853
  created_at?: string;
33830
34854
  error_message?: string | null;
@@ -34990,6 +36014,27 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
34990
36014
  referencedColumns: ["id"];
34991
36015
  }];
34992
36016
  };
36017
+ pick_sync_state: {
36018
+ Row: {
36019
+ id: boolean;
36020
+ last_cleanup_at: string | null;
36021
+ last_sync_at: string | null;
36022
+ updated_at: string;
36023
+ };
36024
+ Insert: {
36025
+ id?: boolean;
36026
+ last_cleanup_at?: string | null;
36027
+ last_sync_at?: string | null;
36028
+ updated_at?: string;
36029
+ };
36030
+ Update: {
36031
+ id?: boolean;
36032
+ last_cleanup_at?: string | null;
36033
+ last_sync_at?: string | null;
36034
+ updated_at?: string;
36035
+ };
36036
+ Relationships: [];
36037
+ };
34993
36038
  pick_task_document_types: {
34994
36039
  Row: {
34995
36040
  created_at: string;
@@ -35272,6 +36317,7 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
35272
36317
  gebruiker_id: string | null;
35273
36318
  gebruiker_naam: string;
35274
36319
  gestart_op: string | null;
36320
+ herkomst: string | null;
35275
36321
  id: string;
35276
36322
  idempotentie_sleutel: string | null;
35277
36323
  is_herprint: boolean;
@@ -35301,6 +36347,7 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
35301
36347
  gebruiker_id?: string | null;
35302
36348
  gebruiker_naam?: string;
35303
36349
  gestart_op?: string | null;
36350
+ herkomst?: string | null;
35304
36351
  id?: string;
35305
36352
  idempotentie_sleutel?: string | null;
35306
36353
  is_herprint?: boolean;
@@ -35330,6 +36377,7 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
35330
36377
  gebruiker_id?: string | null;
35331
36378
  gebruiker_naam?: string;
35332
36379
  gestart_op?: string | null;
36380
+ herkomst?: string | null;
35333
36381
  id?: string;
35334
36382
  idempotentie_sleutel?: string | null;
35335
36383
  is_herprint?: boolean;
@@ -35368,6 +36416,99 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
35368
36416
  referencedColumns: ["id"];
35369
36417
  }];
35370
36418
  };
36419
+ print_plek_computers: {
36420
+ Row: {
36421
+ computer_naam: string;
36422
+ created_at: string;
36423
+ id: string;
36424
+ print_plek_id: string;
36425
+ updated_at: string;
36426
+ };
36427
+ Insert: {
36428
+ computer_naam: string;
36429
+ created_at?: string;
36430
+ id?: string;
36431
+ print_plek_id: string;
36432
+ updated_at?: string;
36433
+ };
36434
+ Update: {
36435
+ computer_naam?: string;
36436
+ created_at?: string;
36437
+ id?: string;
36438
+ print_plek_id?: string;
36439
+ updated_at?: string;
36440
+ };
36441
+ Relationships: [{
36442
+ foreignKeyName: "print_plek_computers_print_plek_id_fkey";
36443
+ columns: ["print_plek_id"];
36444
+ isOneToOne: false;
36445
+ referencedRelation: "print_plekken";
36446
+ referencedColumns: ["id"];
36447
+ }];
36448
+ };
36449
+ print_plek_koppelingen: {
36450
+ Row: {
36451
+ bron: string;
36452
+ bron_id: string;
36453
+ created_at: string;
36454
+ id: string;
36455
+ label: string | null;
36456
+ print_plek_id: string;
36457
+ updated_at: string;
36458
+ };
36459
+ Insert: {
36460
+ bron: string;
36461
+ bron_id: string;
36462
+ created_at?: string;
36463
+ id?: string;
36464
+ label?: string | null;
36465
+ print_plek_id: string;
36466
+ updated_at?: string;
36467
+ };
36468
+ Update: {
36469
+ bron?: string;
36470
+ bron_id?: string;
36471
+ created_at?: string;
36472
+ id?: string;
36473
+ label?: string | null;
36474
+ print_plek_id?: string;
36475
+ updated_at?: string;
36476
+ };
36477
+ Relationships: [{
36478
+ foreignKeyName: "print_plek_koppelingen_print_plek_id_fkey";
36479
+ columns: ["print_plek_id"];
36480
+ isOneToOne: false;
36481
+ referencedRelation: "print_plekken";
36482
+ referencedColumns: ["id"];
36483
+ }];
36484
+ };
36485
+ print_plekken: {
36486
+ Row: {
36487
+ actief: boolean;
36488
+ created_at: string;
36489
+ id: string;
36490
+ naam: string;
36491
+ omschrijving: string | null;
36492
+ updated_at: string;
36493
+ };
36494
+ Insert: {
36495
+ actief?: boolean;
36496
+ created_at?: string;
36497
+ id?: string;
36498
+ naam: string;
36499
+ omschrijving?: string | null;
36500
+ updated_at?: string;
36501
+ };
36502
+ Update: {
36503
+ actief?: boolean;
36504
+ created_at?: string;
36505
+ id?: string;
36506
+ naam?: string;
36507
+ omschrijving?: string | null;
36508
+ updated_at?: string;
36509
+ };
36510
+ Relationships: [];
36511
+ };
35371
36512
  print_queue_runners: {
35372
36513
  Row: {
35373
36514
  actief: boolean;
@@ -37522,6 +38663,45 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
37522
38663
  };
37523
38664
  Relationships: [];
37524
38665
  };
38666
+ stock_consumption_alerts: {
38667
+ Row: {
38668
+ alert_type: string;
38669
+ created_at: string;
38670
+ id: string;
38671
+ mutation_log_id: string | null;
38672
+ order_id: string | null;
38673
+ order_item_id: string | null;
38674
+ qty: number;
38675
+ reason: string | null;
38676
+ resolved_at: string | null;
38677
+ updated_at: string;
38678
+ };
38679
+ Insert: {
38680
+ alert_type: string;
38681
+ created_at?: string;
38682
+ id?: string;
38683
+ mutation_log_id?: string | null;
38684
+ order_id?: string | null;
38685
+ order_item_id?: string | null;
38686
+ qty?: number;
38687
+ reason?: string | null;
38688
+ resolved_at?: string | null;
38689
+ updated_at?: string;
38690
+ };
38691
+ Update: {
38692
+ alert_type?: string;
38693
+ created_at?: string;
38694
+ id?: string;
38695
+ mutation_log_id?: string | null;
38696
+ order_id?: string | null;
38697
+ order_item_id?: string | null;
38698
+ qty?: number;
38699
+ reason?: string | null;
38700
+ resolved_at?: string | null;
38701
+ updated_at?: string;
38702
+ };
38703
+ Relationships: [];
38704
+ };
37525
38705
  stock_import_runs: {
37526
38706
  Row: {
37527
38707
  connection_id: string | null;
@@ -38334,12 +39514,16 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
38334
39514
  company_name: string | null;
38335
39515
  connected_at: string | null;
38336
39516
  created_at: string;
39517
+ disconnected_at: string | null;
38337
39518
  environment: string;
38338
39519
  id: string;
39520
+ initial_sync_completed_at: string | null;
39521
+ initial_sync_started_at: string | null;
38339
39522
  is_active: boolean;
38340
39523
  label: string | null;
38341
39524
  office_code: string | null;
38342
39525
  redirect_uri: string | null;
39526
+ superseded_at: string | null;
38343
39527
  updated_at: string;
38344
39528
  user_id: string;
38345
39529
  };
@@ -38350,12 +39534,16 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
38350
39534
  company_name?: string | null;
38351
39535
  connected_at?: string | null;
38352
39536
  created_at?: string;
39537
+ disconnected_at?: string | null;
38353
39538
  environment: string;
38354
39539
  id?: string;
39540
+ initial_sync_completed_at?: string | null;
39541
+ initial_sync_started_at?: string | null;
38355
39542
  is_active?: boolean;
38356
39543
  label?: string | null;
38357
39544
  office_code?: string | null;
38358
39545
  redirect_uri?: string | null;
39546
+ superseded_at?: string | null;
38359
39547
  updated_at?: string;
38360
39548
  user_id: string;
38361
39549
  };
@@ -38366,12 +39554,16 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
38366
39554
  company_name?: string | null;
38367
39555
  connected_at?: string | null;
38368
39556
  created_at?: string;
39557
+ disconnected_at?: string | null;
38369
39558
  environment?: string;
38370
39559
  id?: string;
39560
+ initial_sync_completed_at?: string | null;
39561
+ initial_sync_started_at?: string | null;
38371
39562
  is_active?: boolean;
38372
39563
  label?: string | null;
38373
39564
  office_code?: string | null;
38374
39565
  redirect_uri?: string | null;
39566
+ superseded_at?: string | null;
38375
39567
  updated_at?: string;
38376
39568
  user_id?: string;
38377
39569
  };
@@ -38431,6 +39623,7 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
38431
39623
  twinfield_customers: {
38432
39624
  Row: {
38433
39625
  address: string | null;
39626
+ administration_code: string;
38434
39627
  city: string | null;
38435
39628
  country: string | null;
38436
39629
  created_at: string;
@@ -38450,6 +39643,7 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
38450
39643
  };
38451
39644
  Insert: {
38452
39645
  address?: string | null;
39646
+ administration_code?: string;
38453
39647
  city?: string | null;
38454
39648
  country?: string | null;
38455
39649
  created_at?: string;
@@ -38469,6 +39663,7 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
38469
39663
  };
38470
39664
  Update: {
38471
39665
  address?: string | null;
39666
+ administration_code?: string;
38472
39667
  city?: string | null;
38473
39668
  country?: string | null;
38474
39669
  created_at?: string;
@@ -38682,7 +39877,9 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
38682
39877
  };
38683
39878
  twinfield_invoice_settings: {
38684
39879
  Row: {
39880
+ administration_code: string | null;
38685
39881
  auto_invoice_enabled: boolean;
39882
+ auto_invoice_start_date: string | null;
38686
39883
  auto_invoice_trigger_statuses: string[];
38687
39884
  created_at: string;
38688
39885
  debtor_gl_account: string;
@@ -38696,15 +39893,19 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
38696
39893
  invoice_enabled_fo: boolean;
38697
39894
  invoice_enabled_ho: boolean;
38698
39895
  invoice_enabled_mo: boolean;
39896
+ needs_review: boolean;
38699
39897
  payment_gl_account: string;
38700
39898
  payment_journal_code: string;
39899
+ settings_confirmed_at: string | null;
38701
39900
  updated_at: string;
38702
39901
  user_id: string;
38703
39902
  vat_code_eu_reverse: string | null;
38704
39903
  vat_code_export: string | null;
38705
39904
  };
38706
39905
  Insert: {
39906
+ administration_code?: string | null;
38707
39907
  auto_invoice_enabled?: boolean;
39908
+ auto_invoice_start_date?: string | null;
38708
39909
  auto_invoice_trigger_statuses?: string[];
38709
39910
  created_at?: string;
38710
39911
  debtor_gl_account?: string;
@@ -38718,15 +39919,19 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
38718
39919
  invoice_enabled_fo?: boolean;
38719
39920
  invoice_enabled_ho?: boolean;
38720
39921
  invoice_enabled_mo?: boolean;
39922
+ needs_review?: boolean;
38721
39923
  payment_gl_account?: string;
38722
39924
  payment_journal_code?: string;
39925
+ settings_confirmed_at?: string | null;
38723
39926
  updated_at?: string;
38724
39927
  user_id: string;
38725
39928
  vat_code_eu_reverse?: string | null;
38726
39929
  vat_code_export?: string | null;
38727
39930
  };
38728
39931
  Update: {
39932
+ administration_code?: string | null;
38729
39933
  auto_invoice_enabled?: boolean;
39934
+ auto_invoice_start_date?: string | null;
38730
39935
  auto_invoice_trigger_statuses?: string[];
38731
39936
  created_at?: string;
38732
39937
  debtor_gl_account?: string;
@@ -38740,8 +39945,10 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
38740
39945
  invoice_enabled_fo?: boolean;
38741
39946
  invoice_enabled_ho?: boolean;
38742
39947
  invoice_enabled_mo?: boolean;
39948
+ needs_review?: boolean;
38743
39949
  payment_gl_account?: string;
38744
39950
  payment_journal_code?: string;
39951
+ settings_confirmed_at?: string | null;
38745
39952
  updated_at?: string;
38746
39953
  user_id?: string;
38747
39954
  vat_code_eu_reverse?: string | null;
@@ -39346,114 +40553,6 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
39346
40553
  };
39347
40554
  Relationships: [];
39348
40555
  };
39349
- uren_facturen: {
39350
- Row: {
39351
- created_at: string;
39352
- created_by: string | null;
39353
- customer_id: string | null;
39354
- customer_name: string | null;
39355
- id: string;
39356
- invoice_number: string | null;
39357
- note: string | null;
39358
- status: string;
39359
- total_excl_cents: number;
39360
- total_incl_cents: number;
39361
- updated_at: string;
39362
- vat_cents: number;
39363
- vat_percentage: number;
39364
- werkbon_id: string | null;
39365
- };
39366
- Insert: {
39367
- created_at?: string;
39368
- created_by?: string | null;
39369
- customer_id?: string | null;
39370
- customer_name?: string | null;
39371
- id?: string;
39372
- invoice_number?: string | null;
39373
- note?: string | null;
39374
- status?: string;
39375
- total_excl_cents?: number;
39376
- total_incl_cents?: number;
39377
- updated_at?: string;
39378
- vat_cents?: number;
39379
- vat_percentage?: number;
39380
- werkbon_id?: string | null;
39381
- };
39382
- Update: {
39383
- created_at?: string;
39384
- created_by?: string | null;
39385
- customer_id?: string | null;
39386
- customer_name?: string | null;
39387
- id?: string;
39388
- invoice_number?: string | null;
39389
- note?: string | null;
39390
- status?: string;
39391
- total_excl_cents?: number;
39392
- total_incl_cents?: number;
39393
- updated_at?: string;
39394
- vat_cents?: number;
39395
- vat_percentage?: number;
39396
- werkbon_id?: string | null;
39397
- };
39398
- Relationships: [{
39399
- foreignKeyName: "uren_facturen_customer_id_fkey";
39400
- columns: ["customer_id"];
39401
- isOneToOne: false;
39402
- referencedRelation: "itk_customers";
39403
- referencedColumns: ["id"];
39404
- }, {
39405
- foreignKeyName: "uren_facturen_werkbon_id_fkey";
39406
- columns: ["werkbon_id"];
39407
- isOneToOne: true;
39408
- referencedRelation: "werkbonnen";
39409
- referencedColumns: ["id"];
39410
- }];
39411
- };
39412
- uren_factuur_regels: {
39413
- Row: {
39414
- created_at: string;
39415
- description: string;
39416
- factuur_id: string;
39417
- id: string;
39418
- kind: string | null;
39419
- quantity: number;
39420
- sort_order: number;
39421
- total_cents: number;
39422
- unit: string;
39423
- unit_price_cents: number;
39424
- };
39425
- Insert: {
39426
- created_at?: string;
39427
- description: string;
39428
- factuur_id: string;
39429
- id?: string;
39430
- kind?: string | null;
39431
- quantity?: number;
39432
- sort_order?: number;
39433
- total_cents?: number;
39434
- unit?: string;
39435
- unit_price_cents?: number;
39436
- };
39437
- Update: {
39438
- created_at?: string;
39439
- description?: string;
39440
- factuur_id?: string;
39441
- id?: string;
39442
- kind?: string | null;
39443
- quantity?: number;
39444
- sort_order?: number;
39445
- total_cents?: number;
39446
- unit?: string;
39447
- unit_price_cents?: number;
39448
- };
39449
- Relationships: [{
39450
- foreignKeyName: "uren_factuur_regels_factuur_id_fkey";
39451
- columns: ["factuur_id"];
39452
- isOneToOne: false;
39453
- referencedRelation: "uren_facturen";
39454
- referencedColumns: ["id"];
39455
- }];
39456
- };
39457
40556
  uren_offerte_regels: {
39458
40557
  Row: {
39459
40558
  created_at: string;
@@ -40707,6 +41806,9 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
40707
41806
  scheduled_end_time: string | null;
40708
41807
  scheduled_start_time: string | null;
40709
41808
  sequence_number: number;
41809
+ signature_accepted_at: string | null;
41810
+ signature_by_user_id: string | null;
41811
+ signature_name: string | null;
40710
41812
  source_email_meta: import("../integrations/supabase/types").Json | null;
40711
41813
  source_mailbox_message_id: string | null;
40712
41814
  source_pdf_path: string | null;
@@ -40742,6 +41844,9 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
40742
41844
  scheduled_end_time?: string | null;
40743
41845
  scheduled_start_time?: string | null;
40744
41846
  sequence_number: number;
41847
+ signature_accepted_at?: string | null;
41848
+ signature_by_user_id?: string | null;
41849
+ signature_name?: string | null;
40745
41850
  source_email_meta?: import("../integrations/supabase/types").Json | null;
40746
41851
  source_mailbox_message_id?: string | null;
40747
41852
  source_pdf_path?: string | null;
@@ -40777,6 +41882,9 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
40777
41882
  scheduled_end_time?: string | null;
40778
41883
  scheduled_start_time?: string | null;
40779
41884
  sequence_number?: number;
41885
+ signature_accepted_at?: string | null;
41886
+ signature_by_user_id?: string | null;
41887
+ signature_name?: string | null;
40780
41888
  source_email_meta?: import("../integrations/supabase/types").Json | null;
40781
41889
  source_mailbox_message_id?: string | null;
40782
41890
  source_pdf_path?: string | null;
@@ -41293,6 +42401,114 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
41293
42401
  };
41294
42402
  Relationships: [];
41295
42403
  };
42404
+ uren_facturen: {
42405
+ Row: {
42406
+ created_at: string | null;
42407
+ created_by: string | null;
42408
+ customer_id: string | null;
42409
+ customer_name: string | null;
42410
+ id: string | null;
42411
+ invoice_number: string | null;
42412
+ note: string | null;
42413
+ status: string | null;
42414
+ total_excl_cents: number | null;
42415
+ total_incl_cents: number | null;
42416
+ updated_at: string | null;
42417
+ vat_cents: number | null;
42418
+ vat_percentage: number | null;
42419
+ werkbon_id: string | null;
42420
+ };
42421
+ Insert: {
42422
+ created_at?: string | null;
42423
+ created_by?: string | null;
42424
+ customer_id?: string | null;
42425
+ customer_name?: string | null;
42426
+ id?: string | null;
42427
+ invoice_number?: string | null;
42428
+ note?: string | null;
42429
+ status?: string | null;
42430
+ total_excl_cents?: number | null;
42431
+ total_incl_cents?: number | null;
42432
+ updated_at?: string | null;
42433
+ vat_cents?: number | null;
42434
+ vat_percentage?: number | null;
42435
+ werkbon_id?: never;
42436
+ };
42437
+ Update: {
42438
+ created_at?: string | null;
42439
+ created_by?: string | null;
42440
+ customer_id?: string | null;
42441
+ customer_name?: string | null;
42442
+ id?: string | null;
42443
+ invoice_number?: string | null;
42444
+ note?: string | null;
42445
+ status?: string | null;
42446
+ total_excl_cents?: number | null;
42447
+ total_incl_cents?: number | null;
42448
+ updated_at?: string | null;
42449
+ vat_cents?: number | null;
42450
+ vat_percentage?: number | null;
42451
+ werkbon_id?: never;
42452
+ };
42453
+ Relationships: [{
42454
+ foreignKeyName: "invoices_customer_id_fkey";
42455
+ columns: ["customer_id"];
42456
+ isOneToOne: false;
42457
+ referencedRelation: "itk_customers";
42458
+ referencedColumns: ["id"];
42459
+ }];
42460
+ };
42461
+ uren_factuur_regels: {
42462
+ Row: {
42463
+ created_at: string | null;
42464
+ description: string | null;
42465
+ factuur_id: string | null;
42466
+ id: string | null;
42467
+ kind: string | null;
42468
+ quantity: number | null;
42469
+ sort_order: number | null;
42470
+ total_cents: number | null;
42471
+ unit: string | null;
42472
+ unit_price_cents: number | null;
42473
+ };
42474
+ Insert: {
42475
+ created_at?: string | null;
42476
+ description?: string | null;
42477
+ factuur_id?: string | null;
42478
+ id?: string | null;
42479
+ kind?: string | null;
42480
+ quantity?: number | null;
42481
+ sort_order?: number | null;
42482
+ total_cents?: number | null;
42483
+ unit?: string | null;
42484
+ unit_price_cents?: number | null;
42485
+ };
42486
+ Update: {
42487
+ created_at?: string | null;
42488
+ description?: string | null;
42489
+ factuur_id?: string | null;
42490
+ id?: string | null;
42491
+ kind?: string | null;
42492
+ quantity?: number | null;
42493
+ sort_order?: number | null;
42494
+ total_cents?: number | null;
42495
+ unit?: string | null;
42496
+ unit_price_cents?: number | null;
42497
+ };
42498
+ Relationships: [{
42499
+ foreignKeyName: "invoice_items_invoice_id_fkey";
42500
+ columns: ["factuur_id"];
42501
+ isOneToOne: false;
42502
+ referencedRelation: "invoices";
42503
+ referencedColumns: ["id"];
42504
+ }, {
42505
+ foreignKeyName: "invoice_items_invoice_id_fkey";
42506
+ columns: ["factuur_id"];
42507
+ isOneToOne: false;
42508
+ referencedRelation: "uren_facturen";
42509
+ referencedColumns: ["id"];
42510
+ }];
42511
+ };
41296
42512
  v_external_customers_exact: {
41297
42513
  Row: {
41298
42514
  account_number: string | null;
@@ -41798,6 +43014,7 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
41798
43014
  gebruiker_id: string | null;
41799
43015
  gebruiker_naam: string;
41800
43016
  gestart_op: string | null;
43017
+ herkomst: string | null;
41801
43018
  id: string;
41802
43019
  idempotentie_sleutel: string | null;
41803
43020
  is_herprint: boolean;
@@ -41918,6 +43135,7 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
41918
43135
  gebruiker_id: string | null;
41919
43136
  gebruiker_naam: string;
41920
43137
  gestart_op: string | null;
43138
+ herkomst: string | null;
41921
43139
  id: string;
41922
43140
  idempotentie_sleutel: string | null;
41923
43141
  is_herprint: boolean;
@@ -42519,6 +43737,46 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
42519
43737
  Args: never;
42520
43738
  Returns: boolean;
42521
43739
  };
43740
+ invoice_create_from_source: {
43741
+ Args: {
43742
+ _payload?: import("../integrations/supabase/types").Json;
43743
+ _source_id: string;
43744
+ _source_type: string;
43745
+ };
43746
+ Returns: import("../integrations/supabase/types").Json;
43747
+ };
43748
+ invoice_get_billable_lines: {
43749
+ Args: {
43750
+ _invoice_id: string;
43751
+ };
43752
+ Returns: import("../integrations/supabase/types").Json;
43753
+ };
43754
+ invoice_get_for_source: {
43755
+ Args: {
43756
+ _source_id: string;
43757
+ _source_type: string;
43758
+ };
43759
+ Returns: import("../integrations/supabase/types").Json;
43760
+ };
43761
+ invoice_get_summary: {
43762
+ Args: {
43763
+ _invoice_id: string;
43764
+ };
43765
+ Returns: import("../integrations/supabase/types").Json;
43766
+ };
43767
+ invoice_list_sources: {
43768
+ Args: {
43769
+ _limit?: number;
43770
+ _source_type?: string;
43771
+ };
43772
+ Returns: import("../integrations/supabase/types").Json;
43773
+ };
43774
+ invoice_recalc_totals: {
43775
+ Args: {
43776
+ _invoice_id: string;
43777
+ };
43778
+ Returns: import("../integrations/supabase/types").Json;
43779
+ };
42522
43780
  is_authenticated: {
42523
43781
  Args: never;
42524
43782
  Returns: boolean;
@@ -42587,6 +43845,29 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
42587
43845
  roles: string[];
42588
43846
  }[];
42589
43847
  };
43848
+ list_monteur_absences: {
43849
+ Args: {
43850
+ _from: string;
43851
+ _to: string;
43852
+ };
43853
+ Returns: {
43854
+ absence_date: string;
43855
+ end_time: string;
43856
+ full_day: boolean;
43857
+ kind: string;
43858
+ monteur_id: string;
43859
+ start_time: string;
43860
+ }[];
43861
+ };
43862
+ list_monteurs: {
43863
+ Args: never;
43864
+ Returns: {
43865
+ avatar_url: string;
43866
+ display_name: string;
43867
+ email: string;
43868
+ id: string;
43869
+ }[];
43870
+ };
42590
43871
  list_my_planning_items: {
42591
43872
  Args: {
42592
43873
  _from: string;
@@ -42998,6 +44279,41 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
42998
44279
  };
42999
44280
  Returns: string;
43000
44281
  };
44282
+ logistics_floriday_finish_push_v2: {
44283
+ Args: {
44284
+ _error?: string;
44285
+ _error_code?: string;
44286
+ _fulfillment_order_id?: string;
44287
+ _gateway_status?: number;
44288
+ _id: string;
44289
+ _max_age_hours?: number;
44290
+ _max_attempts?: number;
44291
+ _ok: boolean;
44292
+ _permanent?: boolean;
44293
+ _response?: import("../integrations/supabase/types").Json;
44294
+ _revision: number;
44295
+ _sent_hash?: string;
44296
+ };
44297
+ Returns: string;
44298
+ };
44299
+ logistics_floriday_finish_push_v3: {
44300
+ Args: {
44301
+ _error?: string;
44302
+ _error_code?: string;
44303
+ _fulfillment_order_id?: string;
44304
+ _gateway_status?: number;
44305
+ _id: string;
44306
+ _max_age_hours?: number;
44307
+ _max_attempts?: number;
44308
+ _outcome: string;
44309
+ _permanent?: boolean;
44310
+ _response?: import("../integrations/supabase/types").Json;
44311
+ _revision: number;
44312
+ _sent_hash?: string;
44313
+ _wait_max_age_hours?: number;
44314
+ };
44315
+ Returns: string;
44316
+ };
43001
44317
  logistics_floriday_prune_pushes: {
43002
44318
  Args: {
43003
44319
  _days?: number;
@@ -43426,6 +44742,12 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
43426
44742
  verwijderd: number;
43427
44743
  }[];
43428
44744
  };
44745
+ order_departure_proof: {
44746
+ Args: {
44747
+ p_order_id: string;
44748
+ };
44749
+ Returns: import("../integrations/supabase/types").Json;
44750
+ };
43429
44751
  order_number_prefix: {
43430
44752
  Args: {
43431
44753
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -43540,6 +44862,13 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
43540
44862
  isSetofReturn: false;
43541
44863
  };
43542
44864
  };
44865
+ pick_cleanup_maintenance: {
44866
+ Args: {
44867
+ _heartbeat_hours?: number;
44868
+ _log_days?: number;
44869
+ };
44870
+ Returns: import("../integrations/supabase/types").Json;
44871
+ };
43543
44872
  pick_complete_print: {
43544
44873
  Args: {
43545
44874
  _printer_id: string;
@@ -43591,6 +44920,14 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
43591
44920
  Args: never;
43592
44921
  Returns: string;
43593
44922
  };
44923
+ pick_day_counts: {
44924
+ Args: {
44925
+ _pick_day?: string;
44926
+ _screen_id?: string;
44927
+ _station_id?: string;
44928
+ };
44929
+ Returns: import("../integrations/supabase/types").Json;
44930
+ };
43594
44931
  pick_document_layout_data: {
43595
44932
  Args: {
43596
44933
  _layout_id: string;
@@ -43618,6 +44955,14 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
43618
44955
  };
43619
44956
  Returns: import("../integrations/supabase/types").Json;
43620
44957
  };
44958
+ pick_print_plekken: {
44959
+ Args: never;
44960
+ Returns: {
44961
+ id: string;
44962
+ naam: string;
44963
+ omschrijving: string;
44964
+ }[];
44965
+ };
43621
44966
  pick_release_expired_locks: {
43622
44967
  Args: never;
43623
44968
  Returns: number;
@@ -43628,6 +44973,14 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
43628
44973
  };
43629
44974
  Returns: undefined;
43630
44975
  };
44976
+ pick_reprint_document: {
44977
+ Args: {
44978
+ _queue_item_id: string;
44979
+ _session_id: string;
44980
+ _throttle_seconds?: number;
44981
+ };
44982
+ Returns: string;
44983
+ };
43631
44984
  pick_reset_print: {
43632
44985
  Args: {
43633
44986
  _queue_item_id: string;
@@ -43674,6 +45027,13 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
43674
45027
  isSetofReturn: false;
43675
45028
  };
43676
45029
  };
45030
+ pick_set_station_print_plek: {
45031
+ Args: {
45032
+ _print_plek_id: string;
45033
+ _station_id: string;
45034
+ };
45035
+ Returns: string;
45036
+ };
43677
45037
  pick_station_dashboard: {
43678
45038
  Args: never;
43679
45039
  Returns: {
@@ -43686,6 +45046,25 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
43686
45046
  waiting: number;
43687
45047
  }[];
43688
45048
  };
45049
+ pick_station_print_plek: {
45050
+ Args: {
45051
+ _station_id: string;
45052
+ };
45053
+ Returns: {
45054
+ naam: string;
45055
+ omschrijving: string;
45056
+ print_plek_id: string;
45057
+ }[];
45058
+ };
45059
+ pick_station_print_plekken: {
45060
+ Args: never;
45061
+ Returns: {
45062
+ naam: string;
45063
+ omschrijving: string;
45064
+ print_plek_id: string;
45065
+ station_id: string;
45066
+ }[];
45067
+ };
43689
45068
  pick_station_slugify: {
43690
45069
  Args: {
43691
45070
  _id: string;
@@ -43693,6 +45072,12 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
43693
45072
  };
43694
45073
  Returns: string;
43695
45074
  };
45075
+ pick_sync_queue_throttled: {
45076
+ Args: {
45077
+ _min_seconds?: number;
45078
+ };
45079
+ Returns: import("../integrations/supabase/types").Json;
45080
+ };
43696
45081
  pickstation_get_orders_raw: {
43697
45082
  Args: never;
43698
45083
  Returns: import("../integrations/supabase/types").Json;
@@ -43838,6 +45223,12 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
43838
45223
  };
43839
45224
  Returns: boolean;
43840
45225
  };
45226
+ release_stale_order_invoice_links: {
45227
+ Args: {
45228
+ _minutes?: number;
45229
+ };
45230
+ Returns: number;
45231
+ };
43841
45232
  reorder_customer_price_groups: {
43842
45233
  Args: {
43843
45234
  _ids: string[];
@@ -44356,6 +45747,20 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
44356
45747
  };
44357
45748
  Returns: undefined;
44358
45749
  };
45750
+ twinfield_deactivate_connection: {
45751
+ Args: {
45752
+ p_connection_id: string;
45753
+ p_user_id: string;
45754
+ };
45755
+ Returns: import("../integrations/supabase/types").Json;
45756
+ };
45757
+ twinfield_handle_administration_change: {
45758
+ Args: {
45759
+ _administration_code: string;
45760
+ _user_id: string;
45761
+ };
45762
+ Returns: undefined;
45763
+ };
44359
45764
  twinfield_prune_push_queue: {
44360
45765
  Args: never;
44361
45766
  Returns: number;
@@ -44375,10 +45780,11 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
44375
45780
  p_company_name?: string;
44376
45781
  p_environment: string;
44377
45782
  p_office_code?: string;
45783
+ p_reset_sync?: boolean;
44378
45784
  p_status?: string;
44379
45785
  p_user_id: string;
44380
45786
  };
44381
- Returns: string;
45787
+ Returns: import("../integrations/supabase/types").Json;
44382
45788
  };
44383
45789
  upsert_auto_fulfillment_log: {
44384
45790
  Args: {