@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
@@ -678,6 +678,99 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
678
678
  };
679
679
  Relationships: [];
680
680
  };
681
+ artikelen_cache: {
682
+ Row: {
683
+ artikelcode: string;
684
+ bron: string;
685
+ bruto_prijs_cent: number | null;
686
+ created_at: string;
687
+ eenheid: string;
688
+ fabrikant: string | null;
689
+ fetched_at: string;
690
+ gtin: string | null;
691
+ id: string;
692
+ naam: string;
693
+ netto_prijs_cent: number | null;
694
+ omschrijving: string | null;
695
+ raw: import("../integrations/supabase/types").Json;
696
+ updated_at: string;
697
+ valuta: string;
698
+ };
699
+ Insert: {
700
+ artikelcode: string;
701
+ bron?: string;
702
+ bruto_prijs_cent?: number | null;
703
+ created_at?: string;
704
+ eenheid?: string;
705
+ fabrikant?: string | null;
706
+ fetched_at?: string;
707
+ gtin?: string | null;
708
+ id?: string;
709
+ naam: string;
710
+ netto_prijs_cent?: number | null;
711
+ omschrijving?: string | null;
712
+ raw?: import("../integrations/supabase/types").Json;
713
+ updated_at?: string;
714
+ valuta?: string;
715
+ };
716
+ Update: {
717
+ artikelcode?: string;
718
+ bron?: string;
719
+ bruto_prijs_cent?: number | null;
720
+ created_at?: string;
721
+ eenheid?: string;
722
+ fabrikant?: string | null;
723
+ fetched_at?: string;
724
+ gtin?: string | null;
725
+ id?: string;
726
+ naam?: string;
727
+ netto_prijs_cent?: number | null;
728
+ omschrijving?: string | null;
729
+ raw?: import("../integrations/supabase/types").Json;
730
+ updated_at?: string;
731
+ valuta?: string;
732
+ };
733
+ Relationships: [];
734
+ };
735
+ artikelen_veldconfig: {
736
+ Row: {
737
+ bron_pad: string;
738
+ created_at: string;
739
+ id: string;
740
+ label: string;
741
+ sort_order: number;
742
+ type: string;
743
+ updated_at: string;
744
+ veld_key: string;
745
+ zichtbaar_in_detail: boolean;
746
+ zichtbaar_in_lijst: boolean;
747
+ };
748
+ Insert: {
749
+ bron_pad: string;
750
+ created_at?: string;
751
+ id?: string;
752
+ label: string;
753
+ sort_order?: number;
754
+ type?: string;
755
+ updated_at?: string;
756
+ veld_key: string;
757
+ zichtbaar_in_detail?: boolean;
758
+ zichtbaar_in_lijst?: boolean;
759
+ };
760
+ Update: {
761
+ bron_pad?: string;
762
+ created_at?: string;
763
+ id?: string;
764
+ label?: string;
765
+ sort_order?: number;
766
+ type?: string;
767
+ updated_at?: string;
768
+ veld_key?: string;
769
+ zichtbaar_in_detail?: boolean;
770
+ zichtbaar_in_lijst?: boolean;
771
+ };
772
+ Relationships: [];
773
+ };
681
774
  booking_items: {
682
775
  Row: {
683
776
  booking_id: string;
@@ -2763,6 +2856,42 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
2763
2856
  };
2764
2857
  Relationships: [];
2765
2858
  };
2859
+ document_bronregels: {
2860
+ Row: {
2861
+ bron: string;
2862
+ created_at: string;
2863
+ documenttype: string;
2864
+ herkomst: string;
2865
+ id: string;
2866
+ layout_id: string | null;
2867
+ updated_at: string;
2868
+ };
2869
+ Insert: {
2870
+ bron?: string;
2871
+ created_at?: string;
2872
+ documenttype: string;
2873
+ herkomst: string;
2874
+ id?: string;
2875
+ layout_id?: string | null;
2876
+ updated_at?: string;
2877
+ };
2878
+ Update: {
2879
+ bron?: string;
2880
+ created_at?: string;
2881
+ documenttype?: string;
2882
+ herkomst?: string;
2883
+ id?: string;
2884
+ layout_id?: string | null;
2885
+ updated_at?: string;
2886
+ };
2887
+ Relationships: [{
2888
+ foreignKeyName: "document_bronregels_layout_id_fkey";
2889
+ columns: ["layout_id"];
2890
+ isOneToOne: false;
2891
+ referencedRelation: "document_layouts";
2892
+ referencedColumns: ["id"];
2893
+ }];
2894
+ };
2766
2895
  document_formaat_printers: {
2767
2896
  Row: {
2768
2897
  created_at: string;
@@ -3040,6 +3169,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
3040
3169
  Row: {
3041
3170
  actief: boolean;
3042
3171
  breedte_mm: number;
3172
+ bron: string;
3043
3173
  config: import("../integrations/supabase/types").Json;
3044
3174
  created_at: string;
3045
3175
  created_by: string | null;
@@ -3057,12 +3187,14 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
3057
3187
  orientatie: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
3058
3188
  page_settings: import("../integrations/supabase/types").Json;
3059
3189
  papierformaat: string;
3190
+ systeem: boolean;
3060
3191
  thumbnail_url: string | null;
3061
3192
  updated_at: string;
3062
3193
  };
3063
3194
  Insert: {
3064
3195
  actief?: boolean;
3065
3196
  breedte_mm?: number;
3197
+ bron?: string;
3066
3198
  config?: import("../integrations/supabase/types").Json;
3067
3199
  created_at?: string;
3068
3200
  created_by?: string | null;
@@ -3080,12 +3212,14 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
3080
3212
  orientatie?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
3081
3213
  page_settings?: import("../integrations/supabase/types").Json;
3082
3214
  papierformaat?: string;
3215
+ systeem?: boolean;
3083
3216
  thumbnail_url?: string | null;
3084
3217
  updated_at?: string;
3085
3218
  };
3086
3219
  Update: {
3087
3220
  actief?: boolean;
3088
3221
  breedte_mm?: number;
3222
+ bron?: string;
3089
3223
  config?: import("../integrations/supabase/types").Json;
3090
3224
  created_at?: string;
3091
3225
  created_by?: string | null;
@@ -3103,11 +3237,90 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
3103
3237
  orientatie?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
3104
3238
  page_settings?: import("../integrations/supabase/types").Json;
3105
3239
  papierformaat?: string;
3240
+ systeem?: boolean;
3106
3241
  thumbnail_url?: string | null;
3107
3242
  updated_at?: string;
3108
3243
  };
3109
3244
  Relationships: [];
3110
3245
  };
3246
+ document_printplek_printers: {
3247
+ Row: {
3248
+ created_at: string;
3249
+ documenttype: string;
3250
+ id: string;
3251
+ papierformaat: string | null;
3252
+ print_plek_id: string;
3253
+ printer_id: string | null;
3254
+ updated_at: string;
3255
+ };
3256
+ Insert: {
3257
+ created_at?: string;
3258
+ documenttype: string;
3259
+ id?: string;
3260
+ papierformaat?: string | null;
3261
+ print_plek_id: string;
3262
+ printer_id?: string | null;
3263
+ updated_at?: string;
3264
+ };
3265
+ Update: {
3266
+ created_at?: string;
3267
+ documenttype?: string;
3268
+ id?: string;
3269
+ papierformaat?: string | null;
3270
+ print_plek_id?: string;
3271
+ printer_id?: string | null;
3272
+ updated_at?: string;
3273
+ };
3274
+ Relationships: [{
3275
+ foreignKeyName: "document_printplek_printers_print_plek_id_fkey";
3276
+ columns: ["print_plek_id"];
3277
+ isOneToOne: false;
3278
+ referencedRelation: "print_plekken";
3279
+ referencedColumns: ["id"];
3280
+ }, {
3281
+ foreignKeyName: "document_printplek_printers_printer_id_fkey";
3282
+ columns: ["printer_id"];
3283
+ isOneToOne: false;
3284
+ referencedRelation: "printers";
3285
+ referencedColumns: ["id"];
3286
+ }];
3287
+ };
3288
+ document_werkplek_printers: {
3289
+ Row: {
3290
+ created_at: string;
3291
+ documenttype: string;
3292
+ id: string;
3293
+ papierformaat: string | null;
3294
+ printer_id: string | null;
3295
+ updated_at: string;
3296
+ werkplek: string;
3297
+ };
3298
+ Insert: {
3299
+ created_at?: string;
3300
+ documenttype: string;
3301
+ id?: string;
3302
+ papierformaat?: string | null;
3303
+ printer_id?: string | null;
3304
+ updated_at?: string;
3305
+ werkplek: string;
3306
+ };
3307
+ Update: {
3308
+ created_at?: string;
3309
+ documenttype?: string;
3310
+ id?: string;
3311
+ papierformaat?: string | null;
3312
+ printer_id?: string | null;
3313
+ updated_at?: string;
3314
+ werkplek?: string;
3315
+ };
3316
+ Relationships: [{
3317
+ foreignKeyName: "document_werkplek_printers_printer_id_fkey";
3318
+ columns: ["printer_id"];
3319
+ isOneToOne: false;
3320
+ referencedRelation: "printers";
3321
+ referencedColumns: ["id"];
3322
+ }];
3323
+ };
3111
3324
  email_auth_connections: {
3112
3325
  Row: {
3113
3326
  access_token_encrypted: string | null;
@@ -5049,42 +5262,6 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
5049
5262
  };
5050
5263
  Relationships: [];
5051
5264
  };
5052
- facturen: {
5053
- Row: {
5054
- bedrag_incl_btw: number;
5055
- created_at: string;
5056
- datum: string;
5057
- factuurnummer: string;
5058
- id: string;
5059
- klantnaam: string;
5060
- status: string;
5061
- updated_at: string;
5062
- user_id: string;
5063
- };
5064
- Insert: {
5065
- bedrag_incl_btw: number;
5066
- created_at?: string;
5067
- datum?: string;
5068
- factuurnummer: string;
5069
- id?: string;
5070
- klantnaam: string;
5071
- status?: string;
5072
- updated_at?: string;
5073
- user_id?: string;
5074
- };
5075
- Update: {
5076
- bedrag_incl_btw?: number;
5077
- created_at?: string;
5078
- datum?: string;
5079
- factuurnummer?: string;
5080
- id?: string;
5081
- klantnaam?: string;
5082
- status?: string;
5083
- updated_at?: string;
5084
- user_id?: string;
5085
- };
5086
- Relationships: [];
5087
- };
5088
5265
  floricode_connection_settings: {
5089
5266
  Row: {
5090
5267
  catalog_key: string | null;
@@ -7389,8 +7566,63 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
7389
7566
  };
7390
7567
  Relationships: [];
7391
7568
  };
7569
+ invoice_items: {
7570
+ Row: {
7571
+ created_at: string;
7572
+ description: string;
7573
+ id: string;
7574
+ invoice_id: string;
7575
+ kind: string;
7576
+ quantity: number;
7577
+ sort_order: number;
7578
+ source_line_ref: string | null;
7579
+ total_cents: number;
7580
+ unit: string;
7581
+ unit_price_cents: number;
7582
+ };
7583
+ Insert: {
7584
+ created_at?: string;
7585
+ description?: string;
7586
+ id?: string;
7587
+ invoice_id: string;
7588
+ kind?: string;
7589
+ quantity?: number;
7590
+ sort_order?: number;
7591
+ source_line_ref?: string | null;
7592
+ total_cents?: number;
7593
+ unit?: string;
7594
+ unit_price_cents?: number;
7595
+ };
7596
+ Update: {
7597
+ created_at?: string;
7598
+ description?: string;
7599
+ id?: string;
7600
+ invoice_id?: string;
7601
+ kind?: string;
7602
+ quantity?: number;
7603
+ sort_order?: number;
7604
+ source_line_ref?: string | null;
7605
+ total_cents?: number;
7606
+ unit?: string;
7607
+ unit_price_cents?: number;
7608
+ };
7609
+ Relationships: [{
7610
+ foreignKeyName: "invoice_items_invoice_id_fkey";
7611
+ columns: ["invoice_id"];
7612
+ isOneToOne: false;
7613
+ referencedRelation: "invoices";
7614
+ referencedColumns: ["id"];
7615
+ }, {
7616
+ foreignKeyName: "invoice_items_invoice_id_fkey";
7617
+ columns: ["invoice_id"];
7618
+ isOneToOne: false;
7619
+ referencedRelation: "uren_facturen";
7620
+ referencedColumns: ["id"];
7621
+ }];
7622
+ };
7392
7623
  invoice_post_idempotency: {
7393
7624
  Row: {
7625
+ administration_code: string;
7394
7626
  client_request_id: string;
7395
7627
  completed_at: string | null;
7396
7628
  created_at: string;
@@ -7400,6 +7632,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
7400
7632
  user_id: string;
7401
7633
  };
7402
7634
  Insert: {
7635
+ administration_code?: string;
7403
7636
  client_request_id: string;
7404
7637
  completed_at?: string | null;
7405
7638
  created_at?: string;
@@ -7409,6 +7642,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
7409
7642
  user_id: string;
7410
7643
  };
7411
7644
  Update: {
7645
+ administration_code?: string;
7412
7646
  client_request_id?: string;
7413
7647
  completed_at?: string | null;
7414
7648
  created_at?: string;
@@ -7614,34 +7848,103 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
7614
7848
  };
7615
7849
  Relationships: [];
7616
7850
  };
7617
- itk_contact_persons: {
7851
+ invoices: {
7618
7852
  Row: {
7619
7853
  created_at: string;
7620
- customer_id: string;
7621
- email: string | null;
7854
+ created_by: string | null;
7855
+ customer_id: string | null;
7856
+ customer_name: string | null;
7857
+ due_date: string | null;
7622
7858
  id: string;
7623
- name: string;
7624
- phone: string | null;
7625
- role: string | null;
7859
+ invoice_date: string;
7860
+ invoice_number: string | null;
7861
+ note: string | null;
7862
+ source_number: string | null;
7863
+ source_ref: string | null;
7864
+ source_type: string;
7865
+ status: string;
7866
+ subtotal_cents: number;
7867
+ total_cents: number;
7626
7868
  updated_at: string;
7869
+ vat_cents: number;
7870
+ vat_rate: number;
7627
7871
  };
7628
7872
  Insert: {
7629
7873
  created_at?: string;
7630
- customer_id: string;
7631
- email?: string | null;
7874
+ created_by?: string | null;
7875
+ customer_id?: string | null;
7876
+ customer_name?: string | null;
7877
+ due_date?: string | null;
7632
7878
  id?: string;
7633
- name: string;
7634
- phone?: string | null;
7635
- role?: string | null;
7879
+ invoice_date?: string;
7880
+ invoice_number?: string | null;
7881
+ note?: string | null;
7882
+ source_number?: string | null;
7883
+ source_ref?: string | null;
7884
+ source_type?: string;
7885
+ status?: string;
7886
+ subtotal_cents?: number;
7887
+ total_cents?: number;
7636
7888
  updated_at?: string;
7889
+ vat_cents?: number;
7890
+ vat_rate?: number;
7637
7891
  };
7638
7892
  Update: {
7639
7893
  created_at?: string;
7640
- customer_id?: string;
7641
- email?: string | null;
7642
- id?: string;
7643
- name?: string;
7644
- phone?: string | null;
7894
+ created_by?: string | null;
7895
+ customer_id?: string | null;
7896
+ customer_name?: string | null;
7897
+ due_date?: string | null;
7898
+ id?: string;
7899
+ invoice_date?: string;
7900
+ invoice_number?: string | null;
7901
+ note?: string | null;
7902
+ source_number?: string | null;
7903
+ source_ref?: string | null;
7904
+ source_type?: string;
7905
+ status?: string;
7906
+ subtotal_cents?: number;
7907
+ total_cents?: number;
7908
+ updated_at?: string;
7909
+ vat_cents?: number;
7910
+ vat_rate?: number;
7911
+ };
7912
+ Relationships: [{
7913
+ foreignKeyName: "invoices_customer_id_fkey";
7914
+ columns: ["customer_id"];
7915
+ isOneToOne: false;
7916
+ referencedRelation: "itk_customers";
7917
+ referencedColumns: ["id"];
7918
+ }];
7919
+ };
7920
+ itk_contact_persons: {
7921
+ Row: {
7922
+ created_at: string;
7923
+ customer_id: string;
7924
+ email: string | null;
7925
+ id: string;
7926
+ name: string;
7927
+ phone: string | null;
7928
+ role: string | null;
7929
+ updated_at: string;
7930
+ };
7931
+ Insert: {
7932
+ created_at?: string;
7933
+ customer_id: string;
7934
+ email?: string | null;
7935
+ id?: string;
7936
+ name: string;
7937
+ phone?: string | null;
7938
+ role?: string | null;
7939
+ updated_at?: string;
7940
+ };
7941
+ Update: {
7942
+ created_at?: string;
7943
+ customer_id?: string;
7944
+ email?: string | null;
7945
+ id?: string;
7946
+ name?: string;
7947
+ phone?: string | null;
7645
7948
  role?: string | null;
7646
7949
  updated_at?: string;
7647
7950
  };
@@ -8961,6 +9264,10 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
8961
9264
  id: string;
8962
9265
  last_error: string | null;
8963
9266
  last_error_at: string | null;
9267
+ last_error_code: string | null;
9268
+ last_gateway_status: number | null;
9269
+ last_queued_at: string | null;
9270
+ last_response: import("../integrations/supabase/types").Json | null;
8964
9271
  last_sent_hash: string | null;
8965
9272
  locked_by: string | null;
8966
9273
  locked_until: string | null;
@@ -8981,6 +9288,10 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
8981
9288
  id?: string;
8982
9289
  last_error?: string | null;
8983
9290
  last_error_at?: string | null;
9291
+ last_error_code?: string | null;
9292
+ last_gateway_status?: number | null;
9293
+ last_queued_at?: string | null;
9294
+ last_response?: import("../integrations/supabase/types").Json | null;
8984
9295
  last_sent_hash?: string | null;
8985
9296
  locked_by?: string | null;
8986
9297
  locked_until?: string | null;
@@ -9001,6 +9312,10 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
9001
9312
  id?: string;
9002
9313
  last_error?: string | null;
9003
9314
  last_error_at?: string | null;
9315
+ last_error_code?: string | null;
9316
+ last_gateway_status?: number | null;
9317
+ last_queued_at?: string | null;
9318
+ last_response?: import("../integrations/supabase/types").Json | null;
9004
9319
  last_sent_hash?: string | null;
9005
9320
  locked_by?: string | null;
9006
9321
  locked_until?: string | null;
@@ -10554,6 +10869,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
10554
10869
  enforce: boolean;
10555
10870
  is_active: boolean;
10556
10871
  last_seen_at: string;
10872
+ missing_count: number;
10557
10873
  module_id: string;
10558
10874
  name: string;
10559
10875
  shell_id: string | null;
@@ -10564,6 +10880,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
10564
10880
  enforce?: boolean;
10565
10881
  is_active?: boolean;
10566
10882
  last_seen_at?: string;
10883
+ missing_count?: number;
10567
10884
  module_id: string;
10568
10885
  name: string;
10569
10886
  shell_id?: string | null;
@@ -10574,6 +10891,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
10574
10891
  enforce?: boolean;
10575
10892
  is_active?: boolean;
10576
10893
  last_seen_at?: string;
10894
+ missing_count?: number;
10577
10895
  module_id?: string;
10578
10896
  name?: string;
10579
10897
  shell_id?: string | null;
@@ -11573,6 +11891,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
11573
11891
  };
11574
11892
  order_invoice_links: {
11575
11893
  Row: {
11894
+ administration_code: string | null;
11576
11895
  attempts: number;
11577
11896
  created_at: string;
11578
11897
  error_message: string | null;
@@ -11585,6 +11904,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
11585
11904
  updated_at: string;
11586
11905
  };
11587
11906
  Insert: {
11907
+ administration_code?: string | null;
11588
11908
  attempts?: number;
11589
11909
  created_at?: string;
11590
11910
  error_message?: string | null;
@@ -11597,6 +11917,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
11597
11917
  updated_at?: string;
11598
11918
  };
11599
11919
  Update: {
11920
+ administration_code?: string | null;
11600
11921
  attempts?: number;
11601
11922
  created_at?: string;
11602
11923
  error_message?: string | null;
@@ -12762,6 +13083,27 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
12762
13083
  referencedColumns: ["id"];
12763
13084
  }];
12764
13085
  };
13086
+ pick_sync_state: {
13087
+ Row: {
13088
+ id: boolean;
13089
+ last_cleanup_at: string | null;
13090
+ last_sync_at: string | null;
13091
+ updated_at: string;
13092
+ };
13093
+ Insert: {
13094
+ id?: boolean;
13095
+ last_cleanup_at?: string | null;
13096
+ last_sync_at?: string | null;
13097
+ updated_at?: string;
13098
+ };
13099
+ Update: {
13100
+ id?: boolean;
13101
+ last_cleanup_at?: string | null;
13102
+ last_sync_at?: string | null;
13103
+ updated_at?: string;
13104
+ };
13105
+ Relationships: [];
13106
+ };
12765
13107
  pick_task_document_types: {
12766
13108
  Row: {
12767
13109
  created_at: string;
@@ -13044,6 +13386,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
13044
13386
  gebruiker_id: string | null;
13045
13387
  gebruiker_naam: string;
13046
13388
  gestart_op: string | null;
13389
+ herkomst: string | null;
13047
13390
  id: string;
13048
13391
  idempotentie_sleutel: string | null;
13049
13392
  is_herprint: boolean;
@@ -13073,6 +13416,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
13073
13416
  gebruiker_id?: string | null;
13074
13417
  gebruiker_naam?: string;
13075
13418
  gestart_op?: string | null;
13419
+ herkomst?: string | null;
13076
13420
  id?: string;
13077
13421
  idempotentie_sleutel?: string | null;
13078
13422
  is_herprint?: boolean;
@@ -13102,6 +13446,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
13102
13446
  gebruiker_id?: string | null;
13103
13447
  gebruiker_naam?: string;
13104
13448
  gestart_op?: string | null;
13449
+ herkomst?: string | null;
13105
13450
  id?: string;
13106
13451
  idempotentie_sleutel?: string | null;
13107
13452
  is_herprint?: boolean;
@@ -13140,6 +13485,99 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
13140
13485
  referencedColumns: ["id"];
13141
13486
  }];
13142
13487
  };
13488
+ print_plek_computers: {
13489
+ Row: {
13490
+ computer_naam: string;
13491
+ created_at: string;
13492
+ id: string;
13493
+ print_plek_id: string;
13494
+ updated_at: string;
13495
+ };
13496
+ Insert: {
13497
+ computer_naam: string;
13498
+ created_at?: string;
13499
+ id?: string;
13500
+ print_plek_id: string;
13501
+ updated_at?: string;
13502
+ };
13503
+ Update: {
13504
+ computer_naam?: string;
13505
+ created_at?: string;
13506
+ id?: string;
13507
+ print_plek_id?: string;
13508
+ updated_at?: string;
13509
+ };
13510
+ Relationships: [{
13511
+ foreignKeyName: "print_plek_computers_print_plek_id_fkey";
13512
+ columns: ["print_plek_id"];
13513
+ isOneToOne: false;
13514
+ referencedRelation: "print_plekken";
13515
+ referencedColumns: ["id"];
13516
+ }];
13517
+ };
13518
+ print_plek_koppelingen: {
13519
+ Row: {
13520
+ bron: string;
13521
+ bron_id: string;
13522
+ created_at: string;
13523
+ id: string;
13524
+ label: string | null;
13525
+ print_plek_id: string;
13526
+ updated_at: string;
13527
+ };
13528
+ Insert: {
13529
+ bron: string;
13530
+ bron_id: string;
13531
+ created_at?: string;
13532
+ id?: string;
13533
+ label?: string | null;
13534
+ print_plek_id: string;
13535
+ updated_at?: string;
13536
+ };
13537
+ Update: {
13538
+ bron?: string;
13539
+ bron_id?: string;
13540
+ created_at?: string;
13541
+ id?: string;
13542
+ label?: string | null;
13543
+ print_plek_id?: string;
13544
+ updated_at?: string;
13545
+ };
13546
+ Relationships: [{
13547
+ foreignKeyName: "print_plek_koppelingen_print_plek_id_fkey";
13548
+ columns: ["print_plek_id"];
13549
+ isOneToOne: false;
13550
+ referencedRelation: "print_plekken";
13551
+ referencedColumns: ["id"];
13552
+ }];
13553
+ };
13554
+ print_plekken: {
13555
+ Row: {
13556
+ actief: boolean;
13557
+ created_at: string;
13558
+ id: string;
13559
+ naam: string;
13560
+ omschrijving: string | null;
13561
+ updated_at: string;
13562
+ };
13563
+ Insert: {
13564
+ actief?: boolean;
13565
+ created_at?: string;
13566
+ id?: string;
13567
+ naam: string;
13568
+ omschrijving?: string | null;
13569
+ updated_at?: string;
13570
+ };
13571
+ Update: {
13572
+ actief?: boolean;
13573
+ created_at?: string;
13574
+ id?: string;
13575
+ naam?: string;
13576
+ omschrijving?: string | null;
13577
+ updated_at?: string;
13578
+ };
13579
+ Relationships: [];
13580
+ };
13143
13581
  print_queue_runners: {
13144
13582
  Row: {
13145
13583
  actief: boolean;
@@ -15294,6 +15732,45 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
15294
15732
  };
15295
15733
  Relationships: [];
15296
15734
  };
15735
+ stock_consumption_alerts: {
15736
+ Row: {
15737
+ alert_type: string;
15738
+ created_at: string;
15739
+ id: string;
15740
+ mutation_log_id: string | null;
15741
+ order_id: string | null;
15742
+ order_item_id: string | null;
15743
+ qty: number;
15744
+ reason: string | null;
15745
+ resolved_at: string | null;
15746
+ updated_at: string;
15747
+ };
15748
+ Insert: {
15749
+ alert_type: string;
15750
+ created_at?: string;
15751
+ id?: string;
15752
+ mutation_log_id?: string | null;
15753
+ order_id?: string | null;
15754
+ order_item_id?: string | null;
15755
+ qty?: number;
15756
+ reason?: string | null;
15757
+ resolved_at?: string | null;
15758
+ updated_at?: string;
15759
+ };
15760
+ Update: {
15761
+ alert_type?: string;
15762
+ created_at?: string;
15763
+ id?: string;
15764
+ mutation_log_id?: string | null;
15765
+ order_id?: string | null;
15766
+ order_item_id?: string | null;
15767
+ qty?: number;
15768
+ reason?: string | null;
15769
+ resolved_at?: string | null;
15770
+ updated_at?: string;
15771
+ };
15772
+ Relationships: [];
15773
+ };
15297
15774
  stock_import_runs: {
15298
15775
  Row: {
15299
15776
  connection_id: string | null;
@@ -16106,12 +16583,16 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
16106
16583
  company_name: string | null;
16107
16584
  connected_at: string | null;
16108
16585
  created_at: string;
16586
+ disconnected_at: string | null;
16109
16587
  environment: string;
16110
16588
  id: string;
16589
+ initial_sync_completed_at: string | null;
16590
+ initial_sync_started_at: string | null;
16111
16591
  is_active: boolean;
16112
16592
  label: string | null;
16113
16593
  office_code: string | null;
16114
16594
  redirect_uri: string | null;
16595
+ superseded_at: string | null;
16115
16596
  updated_at: string;
16116
16597
  user_id: string;
16117
16598
  };
@@ -16122,12 +16603,16 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
16122
16603
  company_name?: string | null;
16123
16604
  connected_at?: string | null;
16124
16605
  created_at?: string;
16606
+ disconnected_at?: string | null;
16125
16607
  environment: string;
16126
16608
  id?: string;
16609
+ initial_sync_completed_at?: string | null;
16610
+ initial_sync_started_at?: string | null;
16127
16611
  is_active?: boolean;
16128
16612
  label?: string | null;
16129
16613
  office_code?: string | null;
16130
16614
  redirect_uri?: string | null;
16615
+ superseded_at?: string | null;
16131
16616
  updated_at?: string;
16132
16617
  user_id: string;
16133
16618
  };
@@ -16138,12 +16623,16 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
16138
16623
  company_name?: string | null;
16139
16624
  connected_at?: string | null;
16140
16625
  created_at?: string;
16626
+ disconnected_at?: string | null;
16141
16627
  environment?: string;
16142
16628
  id?: string;
16629
+ initial_sync_completed_at?: string | null;
16630
+ initial_sync_started_at?: string | null;
16143
16631
  is_active?: boolean;
16144
16632
  label?: string | null;
16145
16633
  office_code?: string | null;
16146
16634
  redirect_uri?: string | null;
16635
+ superseded_at?: string | null;
16147
16636
  updated_at?: string;
16148
16637
  user_id?: string;
16149
16638
  };
@@ -16203,6 +16692,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
16203
16692
  twinfield_customers: {
16204
16693
  Row: {
16205
16694
  address: string | null;
16695
+ administration_code: string;
16206
16696
  city: string | null;
16207
16697
  country: string | null;
16208
16698
  created_at: string;
@@ -16222,6 +16712,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
16222
16712
  };
16223
16713
  Insert: {
16224
16714
  address?: string | null;
16715
+ administration_code?: string;
16225
16716
  city?: string | null;
16226
16717
  country?: string | null;
16227
16718
  created_at?: string;
@@ -16241,6 +16732,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
16241
16732
  };
16242
16733
  Update: {
16243
16734
  address?: string | null;
16735
+ administration_code?: string;
16244
16736
  city?: string | null;
16245
16737
  country?: string | null;
16246
16738
  created_at?: string;
@@ -16454,7 +16946,9 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
16454
16946
  };
16455
16947
  twinfield_invoice_settings: {
16456
16948
  Row: {
16949
+ administration_code: string | null;
16457
16950
  auto_invoice_enabled: boolean;
16951
+ auto_invoice_start_date: string | null;
16458
16952
  auto_invoice_trigger_statuses: string[];
16459
16953
  created_at: string;
16460
16954
  debtor_gl_account: string;
@@ -16468,15 +16962,19 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
16468
16962
  invoice_enabled_fo: boolean;
16469
16963
  invoice_enabled_ho: boolean;
16470
16964
  invoice_enabled_mo: boolean;
16965
+ needs_review: boolean;
16471
16966
  payment_gl_account: string;
16472
16967
  payment_journal_code: string;
16968
+ settings_confirmed_at: string | null;
16473
16969
  updated_at: string;
16474
16970
  user_id: string;
16475
16971
  vat_code_eu_reverse: string | null;
16476
16972
  vat_code_export: string | null;
16477
16973
  };
16478
16974
  Insert: {
16975
+ administration_code?: string | null;
16479
16976
  auto_invoice_enabled?: boolean;
16977
+ auto_invoice_start_date?: string | null;
16480
16978
  auto_invoice_trigger_statuses?: string[];
16481
16979
  created_at?: string;
16482
16980
  debtor_gl_account?: string;
@@ -16490,15 +16988,19 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
16490
16988
  invoice_enabled_fo?: boolean;
16491
16989
  invoice_enabled_ho?: boolean;
16492
16990
  invoice_enabled_mo?: boolean;
16991
+ needs_review?: boolean;
16493
16992
  payment_gl_account?: string;
16494
16993
  payment_journal_code?: string;
16994
+ settings_confirmed_at?: string | null;
16495
16995
  updated_at?: string;
16496
16996
  user_id: string;
16497
16997
  vat_code_eu_reverse?: string | null;
16498
16998
  vat_code_export?: string | null;
16499
16999
  };
16500
17000
  Update: {
17001
+ administration_code?: string | null;
16501
17002
  auto_invoice_enabled?: boolean;
17003
+ auto_invoice_start_date?: string | null;
16502
17004
  auto_invoice_trigger_statuses?: string[];
16503
17005
  created_at?: string;
16504
17006
  debtor_gl_account?: string;
@@ -16512,8 +17014,10 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
16512
17014
  invoice_enabled_fo?: boolean;
16513
17015
  invoice_enabled_ho?: boolean;
16514
17016
  invoice_enabled_mo?: boolean;
17017
+ needs_review?: boolean;
16515
17018
  payment_gl_account?: string;
16516
17019
  payment_journal_code?: string;
17020
+ settings_confirmed_at?: string | null;
16517
17021
  updated_at?: string;
16518
17022
  user_id?: string;
16519
17023
  vat_code_eu_reverse?: string | null;
@@ -17118,114 +17622,6 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
17118
17622
  };
17119
17623
  Relationships: [];
17120
17624
  };
17121
- uren_facturen: {
17122
- Row: {
17123
- created_at: string;
17124
- created_by: string | null;
17125
- customer_id: string | null;
17126
- customer_name: string | null;
17127
- id: string;
17128
- invoice_number: string | null;
17129
- note: string | null;
17130
- status: string;
17131
- total_excl_cents: number;
17132
- total_incl_cents: number;
17133
- updated_at: string;
17134
- vat_cents: number;
17135
- vat_percentage: number;
17136
- werkbon_id: string | null;
17137
- };
17138
- Insert: {
17139
- created_at?: string;
17140
- created_by?: string | null;
17141
- customer_id?: string | null;
17142
- customer_name?: string | null;
17143
- id?: string;
17144
- invoice_number?: string | null;
17145
- note?: string | null;
17146
- status?: string;
17147
- total_excl_cents?: number;
17148
- total_incl_cents?: number;
17149
- updated_at?: string;
17150
- vat_cents?: number;
17151
- vat_percentage?: number;
17152
- werkbon_id?: string | null;
17153
- };
17154
- Update: {
17155
- created_at?: string;
17156
- created_by?: string | null;
17157
- customer_id?: string | null;
17158
- customer_name?: string | null;
17159
- id?: string;
17160
- invoice_number?: string | null;
17161
- note?: string | null;
17162
- status?: string;
17163
- total_excl_cents?: number;
17164
- total_incl_cents?: number;
17165
- updated_at?: string;
17166
- vat_cents?: number;
17167
- vat_percentage?: number;
17168
- werkbon_id?: string | null;
17169
- };
17170
- Relationships: [{
17171
- foreignKeyName: "uren_facturen_customer_id_fkey";
17172
- columns: ["customer_id"];
17173
- isOneToOne: false;
17174
- referencedRelation: "itk_customers";
17175
- referencedColumns: ["id"];
17176
- }, {
17177
- foreignKeyName: "uren_facturen_werkbon_id_fkey";
17178
- columns: ["werkbon_id"];
17179
- isOneToOne: true;
17180
- referencedRelation: "werkbonnen";
17181
- referencedColumns: ["id"];
17182
- }];
17183
- };
17184
- uren_factuur_regels: {
17185
- Row: {
17186
- created_at: string;
17187
- description: string;
17188
- factuur_id: string;
17189
- id: string;
17190
- kind: string | null;
17191
- quantity: number;
17192
- sort_order: number;
17193
- total_cents: number;
17194
- unit: string;
17195
- unit_price_cents: number;
17196
- };
17197
- Insert: {
17198
- created_at?: string;
17199
- description: string;
17200
- factuur_id: string;
17201
- id?: string;
17202
- kind?: string | null;
17203
- quantity?: number;
17204
- sort_order?: number;
17205
- total_cents?: number;
17206
- unit?: string;
17207
- unit_price_cents?: number;
17208
- };
17209
- Update: {
17210
- created_at?: string;
17211
- description?: string;
17212
- factuur_id?: string;
17213
- id?: string;
17214
- kind?: string | null;
17215
- quantity?: number;
17216
- sort_order?: number;
17217
- total_cents?: number;
17218
- unit?: string;
17219
- unit_price_cents?: number;
17220
- };
17221
- Relationships: [{
17222
- foreignKeyName: "uren_factuur_regels_factuur_id_fkey";
17223
- columns: ["factuur_id"];
17224
- isOneToOne: false;
17225
- referencedRelation: "uren_facturen";
17226
- referencedColumns: ["id"];
17227
- }];
17228
- };
17229
17625
  uren_offerte_regels: {
17230
17626
  Row: {
17231
17627
  created_at: string;
@@ -18479,6 +18875,9 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
18479
18875
  scheduled_end_time: string | null;
18480
18876
  scheduled_start_time: string | null;
18481
18877
  sequence_number: number;
18878
+ signature_accepted_at: string | null;
18879
+ signature_by_user_id: string | null;
18880
+ signature_name: string | null;
18482
18881
  source_email_meta: import("../integrations/supabase/types").Json | null;
18483
18882
  source_mailbox_message_id: string | null;
18484
18883
  source_pdf_path: string | null;
@@ -18514,6 +18913,9 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
18514
18913
  scheduled_end_time?: string | null;
18515
18914
  scheduled_start_time?: string | null;
18516
18915
  sequence_number: number;
18916
+ signature_accepted_at?: string | null;
18917
+ signature_by_user_id?: string | null;
18918
+ signature_name?: string | null;
18517
18919
  source_email_meta?: import("../integrations/supabase/types").Json | null;
18518
18920
  source_mailbox_message_id?: string | null;
18519
18921
  source_pdf_path?: string | null;
@@ -18549,6 +18951,9 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
18549
18951
  scheduled_end_time?: string | null;
18550
18952
  scheduled_start_time?: string | null;
18551
18953
  sequence_number?: number;
18954
+ signature_accepted_at?: string | null;
18955
+ signature_by_user_id?: string | null;
18956
+ signature_name?: string | null;
18552
18957
  source_email_meta?: import("../integrations/supabase/types").Json | null;
18553
18958
  source_mailbox_message_id?: string | null;
18554
18959
  source_pdf_path?: string | null;
@@ -19065,6 +19470,114 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
19065
19470
  };
19066
19471
  Relationships: [];
19067
19472
  };
19473
+ uren_facturen: {
19474
+ Row: {
19475
+ created_at: string | null;
19476
+ created_by: string | null;
19477
+ customer_id: string | null;
19478
+ customer_name: string | null;
19479
+ id: string | null;
19480
+ invoice_number: string | null;
19481
+ note: string | null;
19482
+ status: string | null;
19483
+ total_excl_cents: number | null;
19484
+ total_incl_cents: number | null;
19485
+ updated_at: string | null;
19486
+ vat_cents: number | null;
19487
+ vat_percentage: number | null;
19488
+ werkbon_id: string | null;
19489
+ };
19490
+ Insert: {
19491
+ created_at?: string | null;
19492
+ created_by?: string | null;
19493
+ customer_id?: string | null;
19494
+ customer_name?: string | null;
19495
+ id?: string | null;
19496
+ invoice_number?: string | null;
19497
+ note?: string | null;
19498
+ status?: string | null;
19499
+ total_excl_cents?: number | null;
19500
+ total_incl_cents?: number | null;
19501
+ updated_at?: string | null;
19502
+ vat_cents?: number | null;
19503
+ vat_percentage?: number | null;
19504
+ werkbon_id?: never;
19505
+ };
19506
+ Update: {
19507
+ created_at?: string | null;
19508
+ created_by?: string | null;
19509
+ customer_id?: string | null;
19510
+ customer_name?: string | null;
19511
+ id?: string | null;
19512
+ invoice_number?: string | null;
19513
+ note?: string | null;
19514
+ status?: string | null;
19515
+ total_excl_cents?: number | null;
19516
+ total_incl_cents?: number | null;
19517
+ updated_at?: string | null;
19518
+ vat_cents?: number | null;
19519
+ vat_percentage?: number | null;
19520
+ werkbon_id?: never;
19521
+ };
19522
+ Relationships: [{
19523
+ foreignKeyName: "invoices_customer_id_fkey";
19524
+ columns: ["customer_id"];
19525
+ isOneToOne: false;
19526
+ referencedRelation: "itk_customers";
19527
+ referencedColumns: ["id"];
19528
+ }];
19529
+ };
19530
+ uren_factuur_regels: {
19531
+ Row: {
19532
+ created_at: string | null;
19533
+ description: string | null;
19534
+ factuur_id: string | null;
19535
+ id: string | null;
19536
+ kind: string | null;
19537
+ quantity: number | null;
19538
+ sort_order: number | null;
19539
+ total_cents: number | null;
19540
+ unit: string | null;
19541
+ unit_price_cents: number | null;
19542
+ };
19543
+ Insert: {
19544
+ created_at?: string | null;
19545
+ description?: string | null;
19546
+ factuur_id?: string | null;
19547
+ id?: string | null;
19548
+ kind?: string | null;
19549
+ quantity?: number | null;
19550
+ sort_order?: number | null;
19551
+ total_cents?: number | null;
19552
+ unit?: string | null;
19553
+ unit_price_cents?: number | null;
19554
+ };
19555
+ Update: {
19556
+ created_at?: string | null;
19557
+ description?: string | null;
19558
+ factuur_id?: string | null;
19559
+ id?: string | null;
19560
+ kind?: string | null;
19561
+ quantity?: number | null;
19562
+ sort_order?: number | null;
19563
+ total_cents?: number | null;
19564
+ unit?: string | null;
19565
+ unit_price_cents?: number | null;
19566
+ };
19567
+ Relationships: [{
19568
+ foreignKeyName: "invoice_items_invoice_id_fkey";
19569
+ columns: ["factuur_id"];
19570
+ isOneToOne: false;
19571
+ referencedRelation: "invoices";
19572
+ referencedColumns: ["id"];
19573
+ }, {
19574
+ foreignKeyName: "invoice_items_invoice_id_fkey";
19575
+ columns: ["factuur_id"];
19576
+ isOneToOne: false;
19577
+ referencedRelation: "uren_facturen";
19578
+ referencedColumns: ["id"];
19579
+ }];
19580
+ };
19068
19581
  v_external_customers_exact: {
19069
19582
  Row: {
19070
19583
  account_number: string | null;
@@ -19570,6 +20083,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
19570
20083
  gebruiker_id: string | null;
19571
20084
  gebruiker_naam: string;
19572
20085
  gestart_op: string | null;
20086
+ herkomst: string | null;
19573
20087
  id: string;
19574
20088
  idempotentie_sleutel: string | null;
19575
20089
  is_herprint: boolean;
@@ -19690,6 +20204,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
19690
20204
  gebruiker_id: string | null;
19691
20205
  gebruiker_naam: string;
19692
20206
  gestart_op: string | null;
20207
+ herkomst: string | null;
19693
20208
  id: string;
19694
20209
  idempotentie_sleutel: string | null;
19695
20210
  is_herprint: boolean;
@@ -20291,6 +20806,46 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
20291
20806
  Args: never;
20292
20807
  Returns: boolean;
20293
20808
  };
20809
+ invoice_create_from_source: {
20810
+ Args: {
20811
+ _payload?: import("../integrations/supabase/types").Json;
20812
+ _source_id: string;
20813
+ _source_type: string;
20814
+ };
20815
+ Returns: import("../integrations/supabase/types").Json;
20816
+ };
20817
+ invoice_get_billable_lines: {
20818
+ Args: {
20819
+ _invoice_id: string;
20820
+ };
20821
+ Returns: import("../integrations/supabase/types").Json;
20822
+ };
20823
+ invoice_get_for_source: {
20824
+ Args: {
20825
+ _source_id: string;
20826
+ _source_type: string;
20827
+ };
20828
+ Returns: import("../integrations/supabase/types").Json;
20829
+ };
20830
+ invoice_get_summary: {
20831
+ Args: {
20832
+ _invoice_id: string;
20833
+ };
20834
+ Returns: import("../integrations/supabase/types").Json;
20835
+ };
20836
+ invoice_list_sources: {
20837
+ Args: {
20838
+ _limit?: number;
20839
+ _source_type?: string;
20840
+ };
20841
+ Returns: import("../integrations/supabase/types").Json;
20842
+ };
20843
+ invoice_recalc_totals: {
20844
+ Args: {
20845
+ _invoice_id: string;
20846
+ };
20847
+ Returns: import("../integrations/supabase/types").Json;
20848
+ };
20294
20849
  is_authenticated: {
20295
20850
  Args: never;
20296
20851
  Returns: boolean;
@@ -20359,6 +20914,29 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
20359
20914
  roles: string[];
20360
20915
  }[];
20361
20916
  };
20917
+ list_monteur_absences: {
20918
+ Args: {
20919
+ _from: string;
20920
+ _to: string;
20921
+ };
20922
+ Returns: {
20923
+ absence_date: string;
20924
+ end_time: string;
20925
+ full_day: boolean;
20926
+ kind: string;
20927
+ monteur_id: string;
20928
+ start_time: string;
20929
+ }[];
20930
+ };
20931
+ list_monteurs: {
20932
+ Args: never;
20933
+ Returns: {
20934
+ avatar_url: string;
20935
+ display_name: string;
20936
+ email: string;
20937
+ id: string;
20938
+ }[];
20939
+ };
20362
20940
  list_my_planning_items: {
20363
20941
  Args: {
20364
20942
  _from: string;
@@ -20770,6 +21348,41 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
20770
21348
  };
20771
21349
  Returns: string;
20772
21350
  };
21351
+ logistics_floriday_finish_push_v2: {
21352
+ Args: {
21353
+ _error?: string;
21354
+ _error_code?: string;
21355
+ _fulfillment_order_id?: string;
21356
+ _gateway_status?: number;
21357
+ _id: string;
21358
+ _max_age_hours?: number;
21359
+ _max_attempts?: number;
21360
+ _ok: boolean;
21361
+ _permanent?: boolean;
21362
+ _response?: import("../integrations/supabase/types").Json;
21363
+ _revision: number;
21364
+ _sent_hash?: string;
21365
+ };
21366
+ Returns: string;
21367
+ };
21368
+ logistics_floriday_finish_push_v3: {
21369
+ Args: {
21370
+ _error?: string;
21371
+ _error_code?: string;
21372
+ _fulfillment_order_id?: string;
21373
+ _gateway_status?: number;
21374
+ _id: string;
21375
+ _max_age_hours?: number;
21376
+ _max_attempts?: number;
21377
+ _outcome: string;
21378
+ _permanent?: boolean;
21379
+ _response?: import("../integrations/supabase/types").Json;
21380
+ _revision: number;
21381
+ _sent_hash?: string;
21382
+ _wait_max_age_hours?: number;
21383
+ };
21384
+ Returns: string;
21385
+ };
20773
21386
  logistics_floriday_prune_pushes: {
20774
21387
  Args: {
20775
21388
  _days?: number;
@@ -21198,6 +21811,12 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
21198
21811
  verwijderd: number;
21199
21812
  }[];
21200
21813
  };
21814
+ order_departure_proof: {
21815
+ Args: {
21816
+ p_order_id: string;
21817
+ };
21818
+ Returns: import("../integrations/supabase/types").Json;
21819
+ };
21201
21820
  order_number_prefix: {
21202
21821
  Args: {
21203
21822
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -21312,6 +21931,13 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
21312
21931
  isSetofReturn: false;
21313
21932
  };
21314
21933
  };
21934
+ pick_cleanup_maintenance: {
21935
+ Args: {
21936
+ _heartbeat_hours?: number;
21937
+ _log_days?: number;
21938
+ };
21939
+ Returns: import("../integrations/supabase/types").Json;
21940
+ };
21315
21941
  pick_complete_print: {
21316
21942
  Args: {
21317
21943
  _printer_id: string;
@@ -21363,6 +21989,14 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
21363
21989
  Args: never;
21364
21990
  Returns: string;
21365
21991
  };
21992
+ pick_day_counts: {
21993
+ Args: {
21994
+ _pick_day?: string;
21995
+ _screen_id?: string;
21996
+ _station_id?: string;
21997
+ };
21998
+ Returns: import("../integrations/supabase/types").Json;
21999
+ };
21366
22000
  pick_document_layout_data: {
21367
22001
  Args: {
21368
22002
  _layout_id: string;
@@ -21390,6 +22024,14 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
21390
22024
  };
21391
22025
  Returns: import("../integrations/supabase/types").Json;
21392
22026
  };
22027
+ pick_print_plekken: {
22028
+ Args: never;
22029
+ Returns: {
22030
+ id: string;
22031
+ naam: string;
22032
+ omschrijving: string;
22033
+ }[];
22034
+ };
21393
22035
  pick_release_expired_locks: {
21394
22036
  Args: never;
21395
22037
  Returns: number;
@@ -21400,6 +22042,14 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
21400
22042
  };
21401
22043
  Returns: undefined;
21402
22044
  };
22045
+ pick_reprint_document: {
22046
+ Args: {
22047
+ _queue_item_id: string;
22048
+ _session_id: string;
22049
+ _throttle_seconds?: number;
22050
+ };
22051
+ Returns: string;
22052
+ };
21403
22053
  pick_reset_print: {
21404
22054
  Args: {
21405
22055
  _queue_item_id: string;
@@ -21446,6 +22096,13 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
21446
22096
  isSetofReturn: false;
21447
22097
  };
21448
22098
  };
22099
+ pick_set_station_print_plek: {
22100
+ Args: {
22101
+ _print_plek_id: string;
22102
+ _station_id: string;
22103
+ };
22104
+ Returns: string;
22105
+ };
21449
22106
  pick_station_dashboard: {
21450
22107
  Args: never;
21451
22108
  Returns: {
@@ -21458,6 +22115,25 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
21458
22115
  waiting: number;
21459
22116
  }[];
21460
22117
  };
22118
+ pick_station_print_plek: {
22119
+ Args: {
22120
+ _station_id: string;
22121
+ };
22122
+ Returns: {
22123
+ naam: string;
22124
+ omschrijving: string;
22125
+ print_plek_id: string;
22126
+ }[];
22127
+ };
22128
+ pick_station_print_plekken: {
22129
+ Args: never;
22130
+ Returns: {
22131
+ naam: string;
22132
+ omschrijving: string;
22133
+ print_plek_id: string;
22134
+ station_id: string;
22135
+ }[];
22136
+ };
21461
22137
  pick_station_slugify: {
21462
22138
  Args: {
21463
22139
  _id: string;
@@ -21465,6 +22141,12 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
21465
22141
  };
21466
22142
  Returns: string;
21467
22143
  };
22144
+ pick_sync_queue_throttled: {
22145
+ Args: {
22146
+ _min_seconds?: number;
22147
+ };
22148
+ Returns: import("../integrations/supabase/types").Json;
22149
+ };
21468
22150
  pickstation_get_orders_raw: {
21469
22151
  Args: never;
21470
22152
  Returns: import("../integrations/supabase/types").Json;
@@ -21610,6 +22292,12 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
21610
22292
  };
21611
22293
  Returns: boolean;
21612
22294
  };
22295
+ release_stale_order_invoice_links: {
22296
+ Args: {
22297
+ _minutes?: number;
22298
+ };
22299
+ Returns: number;
22300
+ };
21613
22301
  reorder_customer_price_groups: {
21614
22302
  Args: {
21615
22303
  _ids: string[];
@@ -22128,6 +22816,20 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
22128
22816
  };
22129
22817
  Returns: undefined;
22130
22818
  };
22819
+ twinfield_deactivate_connection: {
22820
+ Args: {
22821
+ p_connection_id: string;
22822
+ p_user_id: string;
22823
+ };
22824
+ Returns: import("../integrations/supabase/types").Json;
22825
+ };
22826
+ twinfield_handle_administration_change: {
22827
+ Args: {
22828
+ _administration_code: string;
22829
+ _user_id: string;
22830
+ };
22831
+ Returns: undefined;
22832
+ };
22131
22833
  twinfield_prune_push_queue: {
22132
22834
  Args: never;
22133
22835
  Returns: number;
@@ -22147,10 +22849,11 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
22147
22849
  p_company_name?: string;
22148
22850
  p_environment: string;
22149
22851
  p_office_code?: string;
22852
+ p_reset_sync?: boolean;
22150
22853
  p_status?: string;
22151
22854
  p_user_id: string;
22152
22855
  };
22153
- Returns: string;
22856
+ Returns: import("../integrations/supabase/types").Json;
22154
22857
  };
22155
22858
  upsert_auto_fulfillment_log: {
22156
22859
  Args: {