@flowselections/floriday-verkoop-module 1.0.39 → 1.0.41

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 (93) hide show
  1. package/dist-lib/components/verkoop/EngineBufferCard.d.ts.map +1 -1
  2. package/dist-lib/components/verkoop/EngineBufferCard.js +2 -2
  3. package/dist-lib/components/verkoop/InvoiceTimingSettings.d.ts +3 -0
  4. package/dist-lib/components/verkoop/InvoiceTimingSettings.d.ts.map +1 -0
  5. package/dist-lib/components/verkoop/InvoiceTimingSettings.js +54 -0
  6. package/dist-lib/components/verkoop/SalesOrdersTable.d.ts.map +1 -1
  7. package/dist-lib/components/verkoop/SalesOrdersTable.js +44 -91
  8. package/dist-lib/components/verkoop/VerkoopOrdersPage.d.ts.map +1 -1
  9. package/dist-lib/components/verkoop/VerkoopOrdersPage.js +9 -8
  10. package/dist-lib/index.d.ts +1 -0
  11. package/dist-lib/index.d.ts.map +1 -1
  12. package/dist-lib/index.js +3 -1
  13. package/dist-lib/integrations/supabase/auth-middleware.d.ts +577 -4
  14. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  15. package/dist-lib/integrations/supabase/client.d.ts +577 -4
  16. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  17. package/dist-lib/integrations/supabase/client.server.d.ts +577 -4
  18. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  19. package/dist-lib/integrations/supabase/types.d.ts +578 -5
  20. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  21. package/dist-lib/integrations/supabase/types.js +12 -1
  22. package/dist-lib/lib/cart-lock.functions.d.ts +577 -4
  23. package/dist-lib/lib/cart-lock.functions.d.ts.map +1 -1
  24. package/dist-lib/lib/cart-planning-settings.functions.d.ts +6347 -44
  25. package/dist-lib/lib/cart-planning-settings.functions.d.ts.map +1 -1
  26. package/dist-lib/lib/cart-replan.functions.d.ts +1731 -12
  27. package/dist-lib/lib/cart-replan.functions.d.ts.map +1 -1
  28. package/dist-lib/lib/create-order.functions.d.ts +8655 -60
  29. package/dist-lib/lib/create-order.functions.d.ts.map +1 -1
  30. package/dist-lib/lib/cron/index.d.ts +1 -0
  31. package/dist-lib/lib/cron/index.d.ts.map +1 -1
  32. package/dist-lib/lib/cron/index.js +1 -0
  33. package/dist-lib/lib/cron/invoice-due.d.ts +4 -0
  34. package/dist-lib/lib/cron/invoice-due.d.ts.map +1 -0
  35. package/dist-lib/lib/cron/invoice-due.js +21 -0
  36. package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts +1731 -12
  37. package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts.map +1 -1
  38. package/dist-lib/lib/floriday-fulfillment-status.server.d.ts +28 -0
  39. package/dist-lib/lib/floriday-fulfillment-status.server.d.ts.map +1 -0
  40. package/dist-lib/lib/floriday-fulfillment-status.server.js +91 -0
  41. package/dist-lib/lib/floriday-logistic-labels.functions.d.ts +577 -4
  42. package/dist-lib/lib/floriday-logistic-labels.functions.d.ts.map +1 -1
  43. package/dist-lib/lib/floriday-mirror.functions.d.ts +577 -4
  44. package/dist-lib/lib/floriday-mirror.functions.d.ts.map +1 -1
  45. package/dist-lib/lib/floriday-mirror.functions.js +27 -4
  46. package/dist-lib/lib/floriday-public.functions.d.ts +4039 -28
  47. package/dist-lib/lib/floriday-public.functions.d.ts.map +1 -1
  48. package/dist-lib/lib/floriday-writes.functions.d.ts +2885 -20
  49. package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
  50. package/dist-lib/lib/invoice-timing.d.ts +38 -0
  51. package/dist-lib/lib/invoice-timing.d.ts.map +1 -0
  52. package/dist-lib/lib/invoice-timing.functions.d.ts +83845 -0
  53. package/dist-lib/lib/invoice-timing.functions.d.ts.map +1 -0
  54. package/dist-lib/lib/invoice-timing.functions.js +88 -0
  55. package/dist-lib/lib/invoice-timing.js +139 -0
  56. package/dist-lib/lib/invoice-timing.server.d.ts +22 -0
  57. package/dist-lib/lib/invoice-timing.server.d.ts.map +1 -0
  58. package/dist-lib/lib/invoice-timing.server.js +154 -0
  59. package/dist-lib/lib/load-carriers.functions.d.ts +577 -4
  60. package/dist-lib/lib/load-carriers.functions.d.ts.map +1 -1
  61. package/dist-lib/lib/logistics-engine.functions.d.ts +2887 -22
  62. package/dist-lib/lib/logistics-engine.functions.d.ts.map +1 -1
  63. package/dist-lib/lib/logistics-stock.functions.d.ts +1154 -8
  64. package/dist-lib/lib/logistics-stock.functions.d.ts.map +1 -1
  65. package/dist-lib/lib/order-addresses.functions.d.ts +577 -4
  66. package/dist-lib/lib/order-addresses.functions.d.ts.map +1 -1
  67. package/dist-lib/lib/order-buffers.functions.d.ts +1731 -12
  68. package/dist-lib/lib/order-buffers.functions.d.ts.map +1 -1
  69. package/dist-lib/lib/order-carrier.functions.d.ts +1154 -8
  70. package/dist-lib/lib/order-carrier.functions.d.ts.map +1 -1
  71. package/dist-lib/lib/order-pickup.functions.d.ts +1154 -8
  72. package/dist-lib/lib/order-pickup.functions.d.ts.map +1 -1
  73. package/dist-lib/lib/order-shipments.functions.d.ts +2308 -16
  74. package/dist-lib/lib/order-shipments.functions.d.ts.map +1 -1
  75. package/dist-lib/lib/order-status.d.ts +33 -0
  76. package/dist-lib/lib/order-status.d.ts.map +1 -0
  77. package/dist-lib/lib/order-status.js +77 -0
  78. package/dist-lib/lib/salesorders-list.functions.d.ts +578 -5
  79. package/dist-lib/lib/salesorders-list.functions.d.ts.map +1 -1
  80. package/dist-lib/lib/salesorders-list.functions.js +1 -1
  81. package/dist-lib/lib/salesorders-list.server.d.ts +2 -1
  82. package/dist-lib/lib/salesorders-list.server.d.ts.map +1 -1
  83. package/dist-lib/lib/salesorders-list.server.js +145 -58
  84. package/dist-lib/lib/salesorders-mapping.d.ts +13 -0
  85. package/dist-lib/lib/salesorders-mapping.d.ts.map +1 -1
  86. package/dist-lib/lib/salesorders-mapping.js +2 -7
  87. package/dist-lib/lib/salesorders.functions.d.ts +2885 -20
  88. package/dist-lib/lib/salesorders.functions.d.ts.map +1 -1
  89. package/dist-lib/lib/tradeitems.functions.d.ts +577 -4
  90. package/dist-lib/lib/tradeitems.functions.d.ts.map +1 -1
  91. package/dist-lib/lib/useSalesOrdersQuery.d.ts +2 -1
  92. package/dist-lib/lib/useSalesOrdersQuery.d.ts.map +1 -1
  93. package/package.json +10 -2
@@ -1719,7 +1719,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
1719
1719
  city: string | null;
1720
1720
  country: string | null;
1721
1721
  created_at: string;
1722
- customer_id: string | null;
1722
+ customer_id: string;
1723
1723
  external_key: string | null;
1724
1724
  external_provider: string | null;
1725
1725
  floriday_location_id: string | null;
@@ -1743,7 +1743,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
1743
1743
  city?: string | null;
1744
1744
  country?: string | null;
1745
1745
  created_at?: string;
1746
- customer_id?: string | null;
1746
+ customer_id: string;
1747
1747
  external_key?: string | null;
1748
1748
  external_provider?: string | null;
1749
1749
  floriday_location_id?: string | null;
@@ -1767,7 +1767,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
1767
1767
  city?: string | null;
1768
1768
  country?: string | null;
1769
1769
  created_at?: string;
1770
- customer_id?: string | null;
1770
+ customer_id?: string;
1771
1771
  external_key?: string | null;
1772
1772
  external_provider?: string | null;
1773
1773
  floriday_location_id?: string | null;
@@ -5730,12 +5730,17 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
5730
5730
  attempts: number;
5731
5731
  connection_id: string;
5732
5732
  created_at: string;
5733
+ desired_available: boolean | null;
5733
5734
  gateway_attempt_id: string | null;
5734
5735
  id: string;
5735
5736
  last_error: string | null;
5737
+ locked_at: string | null;
5738
+ locked_by: string | null;
5739
+ next_attempt_at: string;
5736
5740
  number_of_pieces: number;
5737
5741
  sent_at: string | null;
5738
5742
  status: string;
5743
+ superseded_by: string | null;
5739
5744
  trade_item_id: string;
5740
5745
  updated_at: string;
5741
5746
  user_id: string;
@@ -5744,12 +5749,17 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
5744
5749
  attempts?: number;
5745
5750
  connection_id: string;
5746
5751
  created_at?: string;
5752
+ desired_available?: boolean | null;
5747
5753
  gateway_attempt_id?: string | null;
5748
5754
  id?: string;
5749
5755
  last_error?: string | null;
5756
+ locked_at?: string | null;
5757
+ locked_by?: string | null;
5758
+ next_attempt_at?: string;
5750
5759
  number_of_pieces?: number;
5751
5760
  sent_at?: string | null;
5752
5761
  status?: string;
5762
+ superseded_by?: string | null;
5753
5763
  trade_item_id: string;
5754
5764
  updated_at?: string;
5755
5765
  user_id: string;
@@ -5758,12 +5768,17 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
5758
5768
  attempts?: number;
5759
5769
  connection_id?: string;
5760
5770
  created_at?: string;
5771
+ desired_available?: boolean | null;
5761
5772
  gateway_attempt_id?: string | null;
5762
5773
  id?: string;
5763
5774
  last_error?: string | null;
5775
+ locked_at?: string | null;
5776
+ locked_by?: string | null;
5777
+ next_attempt_at?: string;
5764
5778
  number_of_pieces?: number;
5765
5779
  sent_at?: string | null;
5766
5780
  status?: string;
5781
+ superseded_by?: string | null;
5767
5782
  trade_item_id?: string;
5768
5783
  updated_at?: string;
5769
5784
  user_id?: string;
@@ -6500,6 +6515,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
6500
6515
  Row: {
6501
6516
  buyer_organization_id: string | null;
6502
6517
  connection_id: string;
6518
+ controlled_at: string | null;
6503
6519
  created_at: string;
6504
6520
  data: import("../integrations/supabase/types").Json;
6505
6521
  floriday_id: string;
@@ -6511,6 +6527,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
6511
6527
  Insert: {
6512
6528
  buyer_organization_id?: string | null;
6513
6529
  connection_id: string;
6530
+ controlled_at?: string | null;
6514
6531
  created_at?: string;
6515
6532
  data: import("../integrations/supabase/types").Json;
6516
6533
  floriday_id: string;
@@ -6522,6 +6539,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
6522
6539
  Update: {
6523
6540
  buyer_organization_id?: string | null;
6524
6541
  connection_id?: string;
6542
+ controlled_at?: string | null;
6525
6543
  created_at?: string;
6526
6544
  data?: import("../integrations/supabase/types").Json;
6527
6545
  floriday_id?: string;
@@ -7423,6 +7441,54 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
7423
7441
  };
7424
7442
  Relationships: [];
7425
7443
  };
7444
+ invoice_timing_settings: {
7445
+ Row: {
7446
+ anchor: string;
7447
+ business_days_only: boolean;
7448
+ created_at: string;
7449
+ enabled: boolean;
7450
+ id: string;
7451
+ offset_days: number;
7452
+ pickup_anchor: string;
7453
+ pickup_business_days_only: boolean;
7454
+ pickup_offset_days: number;
7455
+ pickup_time_of_day: string;
7456
+ singleton: boolean;
7457
+ time_of_day: string;
7458
+ updated_at: string;
7459
+ };
7460
+ Insert: {
7461
+ anchor?: string;
7462
+ business_days_only?: boolean;
7463
+ created_at?: string;
7464
+ enabled?: boolean;
7465
+ id?: string;
7466
+ offset_days?: number;
7467
+ pickup_anchor?: string;
7468
+ pickup_business_days_only?: boolean;
7469
+ pickup_offset_days?: number;
7470
+ pickup_time_of_day?: string;
7471
+ singleton?: boolean;
7472
+ time_of_day?: string;
7473
+ updated_at?: string;
7474
+ };
7475
+ Update: {
7476
+ anchor?: string;
7477
+ business_days_only?: boolean;
7478
+ created_at?: string;
7479
+ enabled?: boolean;
7480
+ id?: string;
7481
+ offset_days?: number;
7482
+ pickup_anchor?: string;
7483
+ pickup_business_days_only?: boolean;
7484
+ pickup_offset_days?: number;
7485
+ pickup_time_of_day?: string;
7486
+ singleton?: boolean;
7487
+ time_of_day?: string;
7488
+ updated_at?: string;
7489
+ };
7490
+ Relationships: [];
7491
+ };
7426
7492
  itk_contact_persons: {
7427
7493
  Row: {
7428
7494
  created_at: string;
@@ -8512,6 +8578,69 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
8512
8578
  };
8513
8579
  Relationships: [];
8514
8580
  };
8581
+ logistics_floriday_pushes: {
8582
+ Row: {
8583
+ attempts: number;
8584
+ created_at: string;
8585
+ first_queued_at: string;
8586
+ fulfillment_order_id: string | null;
8587
+ id: string;
8588
+ last_error: string | null;
8589
+ last_error_at: string | null;
8590
+ last_sent_hash: string | null;
8591
+ locked_by: string | null;
8592
+ locked_until: string | null;
8593
+ next_attempt_at: string;
8594
+ order_ref: string;
8595
+ payload: import("../integrations/supabase/types").Json;
8596
+ payload_hash: string | null;
8597
+ revision: number;
8598
+ sent_at: string | null;
8599
+ status: string;
8600
+ updated_at: string;
8601
+ };
8602
+ Insert: {
8603
+ attempts?: number;
8604
+ created_at?: string;
8605
+ first_queued_at?: string;
8606
+ fulfillment_order_id?: string | null;
8607
+ id?: string;
8608
+ last_error?: string | null;
8609
+ last_error_at?: string | null;
8610
+ last_sent_hash?: string | null;
8611
+ locked_by?: string | null;
8612
+ locked_until?: string | null;
8613
+ next_attempt_at?: string;
8614
+ order_ref: string;
8615
+ payload?: import("../integrations/supabase/types").Json;
8616
+ payload_hash?: string | null;
8617
+ revision?: number;
8618
+ sent_at?: string | null;
8619
+ status?: string;
8620
+ updated_at?: string;
8621
+ };
8622
+ Update: {
8623
+ attempts?: number;
8624
+ created_at?: string;
8625
+ first_queued_at?: string;
8626
+ fulfillment_order_id?: string | null;
8627
+ id?: string;
8628
+ last_error?: string | null;
8629
+ last_error_at?: string | null;
8630
+ last_sent_hash?: string | null;
8631
+ locked_by?: string | null;
8632
+ locked_until?: string | null;
8633
+ next_attempt_at?: string;
8634
+ order_ref?: string;
8635
+ payload?: import("../integrations/supabase/types").Json;
8636
+ payload_hash?: string | null;
8637
+ revision?: number;
8638
+ sent_at?: string | null;
8639
+ status?: string;
8640
+ updated_at?: string;
8641
+ };
8642
+ Relationships: [];
8643
+ };
8515
8644
  logistics_formulas: {
8516
8645
  Row: {
8517
8646
  created_at: string;
@@ -9375,14 +9504,17 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
9375
9504
  };
9376
9505
  mailbox_messages: {
9377
9506
  Row: {
9507
+ attachments: import("../integrations/supabase/types").Json;
9378
9508
  body_html: string | null;
9379
9509
  body_text: string | null;
9510
+ cc_recipients: import("../integrations/supabase/types").Json;
9380
9511
  connection_id: string | null;
9381
9512
  created_at: string;
9382
9513
  error_message: string | null;
9383
9514
  external_id: string | null;
9384
9515
  from_email: string | null;
9385
9516
  from_name: string | null;
9517
+ has_attachments: boolean;
9386
9518
  id: string;
9387
9519
  message_id: string | null;
9388
9520
  profile_id: string | null;
@@ -9390,18 +9522,22 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
9390
9522
  received_at: string | null;
9391
9523
  status: string;
9392
9524
  subject: string | null;
9525
+ to_recipients: import("../integrations/supabase/types").Json;
9393
9526
  uid: number | null;
9394
9527
  updated_at: string;
9395
9528
  };
9396
9529
  Insert: {
9530
+ attachments?: import("../integrations/supabase/types").Json;
9397
9531
  body_html?: string | null;
9398
9532
  body_text?: string | null;
9533
+ cc_recipients?: import("../integrations/supabase/types").Json;
9399
9534
  connection_id?: string | null;
9400
9535
  created_at?: string;
9401
9536
  error_message?: string | null;
9402
9537
  external_id?: string | null;
9403
9538
  from_email?: string | null;
9404
9539
  from_name?: string | null;
9540
+ has_attachments?: boolean;
9405
9541
  id?: string;
9406
9542
  message_id?: string | null;
9407
9543
  profile_id?: string | null;
@@ -9409,18 +9545,22 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
9409
9545
  received_at?: string | null;
9410
9546
  status?: string;
9411
9547
  subject?: string | null;
9548
+ to_recipients?: import("../integrations/supabase/types").Json;
9412
9549
  uid?: number | null;
9413
9550
  updated_at?: string;
9414
9551
  };
9415
9552
  Update: {
9553
+ attachments?: import("../integrations/supabase/types").Json;
9416
9554
  body_html?: string | null;
9417
9555
  body_text?: string | null;
9556
+ cc_recipients?: import("../integrations/supabase/types").Json;
9418
9557
  connection_id?: string | null;
9419
9558
  created_at?: string;
9420
9559
  error_message?: string | null;
9421
9560
  external_id?: string | null;
9422
9561
  from_email?: string | null;
9423
9562
  from_name?: string | null;
9563
+ has_attachments?: boolean;
9424
9564
  id?: string;
9425
9565
  message_id?: string | null;
9426
9566
  profile_id?: string | null;
@@ -9428,6 +9568,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
9428
9568
  received_at?: string | null;
9429
9569
  status?: string;
9430
9570
  subject?: string | null;
9571
+ to_recipients?: import("../integrations/supabase/types").Json;
9431
9572
  uid?: number | null;
9432
9573
  updated_at?: string;
9433
9574
  };
@@ -9835,6 +9976,36 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
9835
9976
  };
9836
9977
  Relationships: [];
9837
9978
  };
9979
+ module_registry: {
9980
+ Row: {
9981
+ created_at: string;
9982
+ is_active: boolean;
9983
+ last_seen_at: string;
9984
+ module_id: string;
9985
+ name: string;
9986
+ shell_id: string | null;
9987
+ sort_order: number | null;
9988
+ };
9989
+ Insert: {
9990
+ created_at?: string;
9991
+ is_active?: boolean;
9992
+ last_seen_at?: string;
9993
+ module_id: string;
9994
+ name: string;
9995
+ shell_id?: string | null;
9996
+ sort_order?: number | null;
9997
+ };
9998
+ Update: {
9999
+ created_at?: string;
10000
+ is_active?: boolean;
10001
+ last_seen_at?: string;
10002
+ module_id?: string;
10003
+ name?: string;
10004
+ shell_id?: string | null;
10005
+ sort_order?: number | null;
10006
+ };
10007
+ Relationships: [];
10008
+ };
9838
10009
  module_runtime_config: {
9839
10010
  Row: {
9840
10011
  key: string;
@@ -10894,6 +11065,42 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
10894
11065
  };
10895
11066
  Relationships: [];
10896
11067
  };
11068
+ order_invoice_links: {
11069
+ Row: {
11070
+ attempts: number;
11071
+ created_at: string;
11072
+ error_message: string | null;
11073
+ id: string;
11074
+ invoice_number: string | null;
11075
+ order_id: string;
11076
+ processed_at: string | null;
11077
+ status: string;
11078
+ updated_at: string;
11079
+ };
11080
+ Insert: {
11081
+ attempts?: number;
11082
+ created_at?: string;
11083
+ error_message?: string | null;
11084
+ id?: string;
11085
+ invoice_number?: string | null;
11086
+ order_id: string;
11087
+ processed_at?: string | null;
11088
+ status?: string;
11089
+ updated_at?: string;
11090
+ };
11091
+ Update: {
11092
+ attempts?: number;
11093
+ created_at?: string;
11094
+ error_message?: string | null;
11095
+ id?: string;
11096
+ invoice_number?: string | null;
11097
+ order_id?: string;
11098
+ processed_at?: string | null;
11099
+ status?: string;
11100
+ updated_at?: string;
11101
+ };
11102
+ Relationships: [];
11103
+ };
10897
11104
  order_items: {
10898
11105
  Row: {
10899
11106
  crates_per_layer: number | null;
@@ -11076,6 +11283,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
11076
11283
  delivery_date: string | null;
11077
11284
  floriday_sales_order_id: string | null;
11078
11285
  id: string;
11286
+ invoice_due_at: string | null;
11079
11287
  is_reservation: boolean;
11080
11288
  notes: string | null;
11081
11289
  order_date: string;
@@ -11097,6 +11305,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
11097
11305
  delivery_date?: string | null;
11098
11306
  floriday_sales_order_id?: string | null;
11099
11307
  id?: string;
11308
+ invoice_due_at?: string | null;
11100
11309
  is_reservation?: boolean;
11101
11310
  notes?: string | null;
11102
11311
  order_date?: string;
@@ -11118,6 +11327,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
11118
11327
  delivery_date?: string | null;
11119
11328
  floriday_sales_order_id?: string | null;
11120
11329
  id?: string;
11330
+ invoice_due_at?: string | null;
11121
11331
  is_reservation?: boolean;
11122
11332
  notes?: string | null;
11123
11333
  order_date?: string;
@@ -12314,22 +12524,27 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
12314
12524
  created_at: string;
12315
12525
  documentnaam: string;
12316
12526
  documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
12527
+ extern_job_id: string | null;
12317
12528
  foutmelding: string | null;
12318
12529
  gebruiker_id: string | null;
12319
12530
  gebruiker_naam: string;
12320
12531
  gestart_op: string | null;
12321
12532
  id: string;
12533
+ idempotentie_sleutel: string | null;
12322
12534
  is_herprint: boolean;
12323
12535
  kopieen: number;
12324
12536
  layout_id: string | null;
12325
12537
  opgepakt_op: string | null;
12326
12538
  paginas: number;
12327
12539
  payload: import("../integrations/supabase/types").Json;
12540
+ pdf_base64: string | null;
12541
+ pdf_url: string | null;
12328
12542
  pogingen: number;
12329
12543
  printer_id: string | null;
12330
12544
  render_html: string | null;
12331
12545
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
12332
12546
  updated_at: string;
12547
+ volgende_poging: string | null;
12333
12548
  voltooid_op: string | null;
12334
12549
  };
12335
12550
  Insert: {
@@ -12338,22 +12553,27 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
12338
12553
  created_at?: string;
12339
12554
  documentnaam?: string;
12340
12555
  documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
12556
+ extern_job_id?: string | null;
12341
12557
  foutmelding?: string | null;
12342
12558
  gebruiker_id?: string | null;
12343
12559
  gebruiker_naam?: string;
12344
12560
  gestart_op?: string | null;
12345
12561
  id?: string;
12562
+ idempotentie_sleutel?: string | null;
12346
12563
  is_herprint?: boolean;
12347
12564
  kopieen?: number;
12348
12565
  layout_id?: string | null;
12349
12566
  opgepakt_op?: string | null;
12350
12567
  paginas?: number;
12351
12568
  payload?: import("../integrations/supabase/types").Json;
12569
+ pdf_base64?: string | null;
12570
+ pdf_url?: string | null;
12352
12571
  pogingen?: number;
12353
12572
  printer_id?: string | null;
12354
12573
  render_html?: string | null;
12355
12574
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
12356
12575
  updated_at?: string;
12576
+ volgende_poging?: string | null;
12357
12577
  voltooid_op?: string | null;
12358
12578
  };
12359
12579
  Update: {
@@ -12362,22 +12582,27 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
12362
12582
  created_at?: string;
12363
12583
  documentnaam?: string;
12364
12584
  documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
12585
+ extern_job_id?: string | null;
12365
12586
  foutmelding?: string | null;
12366
12587
  gebruiker_id?: string | null;
12367
12588
  gebruiker_naam?: string;
12368
12589
  gestart_op?: string | null;
12369
12590
  id?: string;
12591
+ idempotentie_sleutel?: string | null;
12370
12592
  is_herprint?: boolean;
12371
12593
  kopieen?: number;
12372
12594
  layout_id?: string | null;
12373
12595
  opgepakt_op?: string | null;
12374
12596
  paginas?: number;
12375
12597
  payload?: import("../integrations/supabase/types").Json;
12598
+ pdf_base64?: string | null;
12599
+ pdf_url?: string | null;
12376
12600
  pogingen?: number;
12377
12601
  printer_id?: string | null;
12378
12602
  render_html?: string | null;
12379
12603
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
12380
12604
  updated_at?: string;
12605
+ volgende_poging?: string | null;
12381
12606
  voltooid_op?: string | null;
12382
12607
  };
12383
12608
  Relationships: [{
@@ -12400,6 +12625,63 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
12400
12625
  referencedColumns: ["id"];
12401
12626
  }];
12402
12627
  };
12628
+ print_queue_runners: {
12629
+ Row: {
12630
+ actief: boolean;
12631
+ basis_url: string;
12632
+ created_at: string;
12633
+ id: string;
12634
+ laatst_gezien: string;
12635
+ tick_sleutel: string;
12636
+ updated_at: string;
12637
+ };
12638
+ Insert: {
12639
+ actief?: boolean;
12640
+ basis_url: string;
12641
+ created_at?: string;
12642
+ id?: string;
12643
+ laatst_gezien?: string;
12644
+ tick_sleutel?: string;
12645
+ updated_at?: string;
12646
+ };
12647
+ Update: {
12648
+ actief?: boolean;
12649
+ basis_url?: string;
12650
+ created_at?: string;
12651
+ id?: string;
12652
+ laatst_gezien?: string;
12653
+ tick_sleutel?: string;
12654
+ updated_at?: string;
12655
+ };
12656
+ Relationships: [];
12657
+ };
12658
+ print_queue_settings: {
12659
+ Row: {
12660
+ bewaar_bestanden_dagen: number;
12661
+ bewaar_opdrachten_dagen: number;
12662
+ created_at: string;
12663
+ dubbel_venster_minuten: number;
12664
+ id: string;
12665
+ updated_at: string;
12666
+ };
12667
+ Insert: {
12668
+ bewaar_bestanden_dagen?: number;
12669
+ bewaar_opdrachten_dagen?: number;
12670
+ created_at?: string;
12671
+ dubbel_venster_minuten?: number;
12672
+ id?: string;
12673
+ updated_at?: string;
12674
+ };
12675
+ Update: {
12676
+ bewaar_bestanden_dagen?: number;
12677
+ bewaar_opdrachten_dagen?: number;
12678
+ created_at?: string;
12679
+ dubbel_venster_minuten?: number;
12680
+ id?: string;
12681
+ updated_at?: string;
12682
+ };
12683
+ Relationships: [];
12684
+ };
12403
12685
  print_rules: {
12404
12686
  Row: {
12405
12687
  actief: boolean;
@@ -12560,6 +12842,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
12560
12842
  agent_id: string | null;
12561
12843
  created_at: string;
12562
12844
  driver: string;
12845
+ extern_printer_id: string | null;
12563
12846
  id: string;
12564
12847
  ip_adres: string | null;
12565
12848
  laatst_gezien: string | null;
@@ -12581,6 +12864,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
12581
12864
  agent_id?: string | null;
12582
12865
  created_at?: string;
12583
12866
  driver?: string;
12867
+ extern_printer_id?: string | null;
12584
12868
  id?: string;
12585
12869
  ip_adres?: string | null;
12586
12870
  laatst_gezien?: string | null;
@@ -12602,6 +12886,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
12602
12886
  agent_id?: string | null;
12603
12887
  created_at?: string;
12604
12888
  driver?: string;
12889
+ extern_printer_id?: string | null;
12605
12890
  id?: string;
12606
12891
  ip_adres?: string | null;
12607
12892
  laatst_gezien?: string | null;
@@ -15237,6 +15522,8 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
15237
15522
  };
15238
15523
  twinfield_invoice_settings: {
15239
15524
  Row: {
15525
+ auto_invoice_enabled: boolean;
15526
+ auto_invoice_trigger_statuses: string[];
15240
15527
  created_at: string;
15241
15528
  debtor_gl_account: string;
15242
15529
  default_credit_invoice_type: string | null;
@@ -15257,6 +15544,8 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
15257
15544
  vat_code_export: string | null;
15258
15545
  };
15259
15546
  Insert: {
15547
+ auto_invoice_enabled?: boolean;
15548
+ auto_invoice_trigger_statuses?: string[];
15260
15549
  created_at?: string;
15261
15550
  debtor_gl_account?: string;
15262
15551
  default_credit_invoice_type?: string | null;
@@ -15277,6 +15566,8 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
15277
15566
  vat_code_export?: string | null;
15278
15567
  };
15279
15568
  Update: {
15569
+ auto_invoice_enabled?: boolean;
15570
+ auto_invoice_trigger_statuses?: string[];
15280
15571
  created_at?: string;
15281
15572
  debtor_gl_account?: string;
15282
15573
  default_credit_invoice_type?: string | null;
@@ -16339,6 +16630,33 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
16339
16630
  referencedColumns: ["id"];
16340
16631
  }];
16341
16632
  };
16633
+ user_module_permissions: {
16634
+ Row: {
16635
+ created_at: string;
16636
+ id: string;
16637
+ module_id: string;
16638
+ permission: string;
16639
+ updated_at: string;
16640
+ user_id: string;
16641
+ };
16642
+ Insert: {
16643
+ created_at?: string;
16644
+ id?: string;
16645
+ module_id: string;
16646
+ permission: string;
16647
+ updated_at?: string;
16648
+ user_id: string;
16649
+ };
16650
+ Update: {
16651
+ created_at?: string;
16652
+ id?: string;
16653
+ module_id?: string;
16654
+ permission?: string;
16655
+ updated_at?: string;
16656
+ user_id?: string;
16657
+ };
16658
+ Relationships: [];
16659
+ };
16342
16660
  user_roles: {
16343
16661
  Row: {
16344
16662
  created_at: string;
@@ -18172,6 +18490,10 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
18172
18490
  processed_items: number;
18173
18491
  }[];
18174
18492
  };
18493
+ backfill_order_auto_invoice_queue: {
18494
+ Args: never;
18495
+ Returns: number;
18496
+ };
18175
18497
  calculate_layer_stock: {
18176
18498
  Args: {
18177
18499
  p_product_id: string;
@@ -18206,6 +18528,77 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
18206
18528
  };
18207
18529
  Returns: import("../integrations/supabase/types").Json;
18208
18530
  };
18531
+ claim_cloud_print_jobs: {
18532
+ Args: {
18533
+ _max?: number;
18534
+ };
18535
+ Returns: {
18536
+ agent_id: string | null;
18537
+ bron_job_id: string | null;
18538
+ created_at: string;
18539
+ documentnaam: string;
18540
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
18541
+ extern_job_id: string | null;
18542
+ foutmelding: string | null;
18543
+ gebruiker_id: string | null;
18544
+ gebruiker_naam: string;
18545
+ gestart_op: string | null;
18546
+ id: string;
18547
+ idempotentie_sleutel: string | null;
18548
+ is_herprint: boolean;
18549
+ kopieen: number;
18550
+ layout_id: string | null;
18551
+ opgepakt_op: string | null;
18552
+ paginas: number;
18553
+ payload: import("../integrations/supabase/types").Json;
18554
+ pdf_base64: string | null;
18555
+ pdf_url: string | null;
18556
+ pogingen: number;
18557
+ printer_id: string | null;
18558
+ render_html: string | null;
18559
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
18560
+ updated_at: string;
18561
+ volgende_poging: string | null;
18562
+ voltooid_op: string | null;
18563
+ }[];
18564
+ SetofOptions: {
18565
+ from: "*";
18566
+ to: "print_jobs";
18567
+ isOneToOne: false;
18568
+ isSetofReturn: true;
18569
+ };
18570
+ };
18571
+ claim_floriday_stock_queue: {
18572
+ Args: {
18573
+ p_limit?: number;
18574
+ p_worker?: string;
18575
+ };
18576
+ Returns: {
18577
+ attempts: number;
18578
+ connection_id: string;
18579
+ created_at: string;
18580
+ desired_available: boolean | null;
18581
+ gateway_attempt_id: string | null;
18582
+ id: string;
18583
+ last_error: string | null;
18584
+ locked_at: string | null;
18585
+ locked_by: string | null;
18586
+ next_attempt_at: string;
18587
+ number_of_pieces: number;
18588
+ sent_at: string | null;
18589
+ status: string;
18590
+ superseded_by: string | null;
18591
+ trade_item_id: string;
18592
+ updated_at: string;
18593
+ user_id: string;
18594
+ }[];
18595
+ SetofOptions: {
18596
+ from: "*";
18597
+ to: "floriday_continuous_stock_queue";
18598
+ isOneToOne: false;
18599
+ isSetofReturn: true;
18600
+ };
18601
+ };
18209
18602
  claim_logistics_tasks: {
18210
18603
  Args: {
18211
18604
  _limit?: number;
@@ -18265,22 +18658,27 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
18265
18658
  created_at: string;
18266
18659
  documentnaam: string;
18267
18660
  documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
18661
+ extern_job_id: string | null;
18268
18662
  foutmelding: string | null;
18269
18663
  gebruiker_id: string | null;
18270
18664
  gebruiker_naam: string;
18271
18665
  gestart_op: string | null;
18272
18666
  id: string;
18667
+ idempotentie_sleutel: string | null;
18273
18668
  is_herprint: boolean;
18274
18669
  kopieen: number;
18275
18670
  layout_id: string | null;
18276
18671
  opgepakt_op: string | null;
18277
18672
  paginas: number;
18278
18673
  payload: import("../integrations/supabase/types").Json;
18674
+ pdf_base64: string | null;
18675
+ pdf_url: string | null;
18279
18676
  pogingen: number;
18280
18677
  printer_id: string | null;
18281
18678
  render_html: string | null;
18282
18679
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
18283
18680
  updated_at: string;
18681
+ volgende_poging: string | null;
18284
18682
  voltooid_op: string | null;
18285
18683
  }[];
18286
18684
  SetofOptions: {
@@ -18318,10 +18716,28 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
18318
18716
  isSetofReturn: true;
18319
18717
  };
18320
18718
  };
18719
+ cleanup_floriday_stock_queue: {
18720
+ Args: never;
18721
+ Returns: undefined;
18722
+ };
18321
18723
  cleanup_old_bookings: {
18322
18724
  Args: never;
18323
18725
  Returns: undefined;
18324
18726
  };
18727
+ cleanup_voorraad_module_history: {
18728
+ Args: never;
18729
+ Returns: undefined;
18730
+ };
18731
+ complete_floriday_stock_queue: {
18732
+ Args: {
18733
+ p_attempt_id?: string;
18734
+ p_error?: string;
18735
+ p_id: string;
18736
+ p_ok: boolean;
18737
+ p_permanent?: boolean;
18738
+ };
18739
+ Returns: undefined;
18740
+ };
18325
18741
  consume_bom_for_production: {
18326
18742
  Args: {
18327
18743
  p_connection_id: string;
@@ -18433,6 +18849,13 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
18433
18849
  };
18434
18850
  Returns: import("../integrations/supabase/types").Json;
18435
18851
  };
18852
+ effective_module_permission: {
18853
+ Args: {
18854
+ _module_id: string;
18855
+ _user_id: string;
18856
+ };
18857
+ Returns: string;
18858
+ };
18436
18859
  email_auth_decrypt: {
18437
18860
  Args: {
18438
18861
  cipher: string;
@@ -19236,6 +19659,51 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
19236
19659
  isSetofReturn: false;
19237
19660
  };
19238
19661
  };
19662
+ logistics_floriday_claim_pushes: {
19663
+ Args: {
19664
+ _lease_seconds?: number;
19665
+ _limit?: number;
19666
+ _worker?: string;
19667
+ };
19668
+ Returns: {
19669
+ attempts: number;
19670
+ fulfillment_order_id: string;
19671
+ id: string;
19672
+ last_sent_hash: string;
19673
+ order_ref: string;
19674
+ payload: import("../integrations/supabase/types").Json;
19675
+ payload_hash: string;
19676
+ revision: number;
19677
+ }[];
19678
+ };
19679
+ logistics_floriday_finish_push: {
19680
+ Args: {
19681
+ _error?: string;
19682
+ _fulfillment_order_id?: string;
19683
+ _id: string;
19684
+ _max_age_hours?: number;
19685
+ _max_attempts?: number;
19686
+ _ok: boolean;
19687
+ _permanent?: boolean;
19688
+ _revision: number;
19689
+ _sent_hash?: string;
19690
+ };
19691
+ Returns: string;
19692
+ };
19693
+ logistics_floriday_prune_pushes: {
19694
+ Args: {
19695
+ _days?: number;
19696
+ };
19697
+ Returns: number;
19698
+ };
19699
+ logistics_floriday_queue_push: {
19700
+ Args: {
19701
+ _order_ref: string;
19702
+ _payload?: import("../integrations/supabase/types").Json;
19703
+ _payload_hash?: string;
19704
+ };
19705
+ Returns: string;
19706
+ };
19239
19707
  logistics_live_carriers: {
19240
19708
  Args: {
19241
19709
  p_order_ref: string;
@@ -19526,6 +19994,13 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
19526
19994
  };
19527
19995
  Returns: undefined;
19528
19996
  };
19997
+ my_module_permissions: {
19998
+ Args: never;
19999
+ Returns: {
20000
+ module_id: string;
20001
+ permission: string;
20002
+ }[];
20003
+ };
19529
20004
  next_manufacture_partij: {
19530
20005
  Args: {
19531
20006
  _tenant_id: string;
@@ -19576,6 +20051,13 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
19576
20051
  };
19577
20052
  Returns: boolean;
19578
20053
  };
20054
+ opruim_print_historie: {
20055
+ Args: never;
20056
+ Returns: {
20057
+ ontdaan: number;
20058
+ verwijderd: number;
20059
+ }[];
20060
+ };
19579
20061
  order_number_prefix: {
19580
20062
  Args: {
19581
20063
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -19583,6 +20065,15 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
19583
20065
  };
19584
20066
  Returns: string;
19585
20067
  };
20068
+ pick_active_printers: {
20069
+ Args: never;
20070
+ Returns: {
20071
+ id: string;
20072
+ locatie: string;
20073
+ naam: string;
20074
+ online: boolean;
20075
+ }[];
20076
+ };
19586
20077
  pick_claim_document: {
19587
20078
  Args: {
19588
20079
  _queue_item_id: string;
@@ -19769,6 +20260,52 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
19769
20260
  };
19770
20261
  Returns: undefined;
19771
20262
  };
20263
+ pick_reset_print: {
20264
+ Args: {
20265
+ _queue_item_id: string;
20266
+ _session_id: string;
20267
+ };
20268
+ Returns: {
20269
+ announced_at: string;
20270
+ assigned_user_id: string | null;
20271
+ barcode: string | null;
20272
+ cancelled_at: string | null;
20273
+ cart_count: number;
20274
+ completed_at: string | null;
20275
+ country_code: string | null;
20276
+ created_at: string;
20277
+ customer_name: string | null;
20278
+ delivery_address: string | null;
20279
+ document_number: string | null;
20280
+ document_type_id: string | null;
20281
+ due_at: string | null;
20282
+ id: string;
20283
+ is_urgent: boolean;
20284
+ line_count: number;
20285
+ order_number: string | null;
20286
+ order_type: string | null;
20287
+ payload: import("../integrations/supabase/types").Json;
20288
+ print_count: number;
20289
+ print_job_id: string | null;
20290
+ printed_at: string | null;
20291
+ printed_by: string | null;
20292
+ printer_id: string | null;
20293
+ priority: number;
20294
+ reference: string | null;
20295
+ route: string | null;
20296
+ screen_id: string | null;
20297
+ station_id: string | null;
20298
+ status_id: string | null;
20299
+ updated_at: string;
20300
+ warnings: import("../integrations/supabase/types").Json;
20301
+ };
20302
+ SetofOptions: {
20303
+ from: "*";
20304
+ to: "pick_queue";
20305
+ isOneToOne: true;
20306
+ isSetofReturn: false;
20307
+ };
20308
+ };
19772
20309
  pick_station_dashboard: {
19773
20310
  Args: never;
19774
20311
  Returns: {
@@ -19915,6 +20452,12 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
19915
20452
  };
19916
20453
  Returns: undefined;
19917
20454
  };
20455
+ reset_stalled_floriday_stock_queue: {
20456
+ Args: {
20457
+ p_include_failed?: boolean;
20458
+ };
20459
+ Returns: number;
20460
+ };
19918
20461
  resolve_group_allocation: {
19919
20462
  Args: {
19920
20463
  _needed: number;
@@ -19959,14 +20502,28 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
19959
20502
  };
19960
20503
  Returns: import("../integrations/supabase/types").Json;
19961
20504
  };
20505
+ ruim_print_jobs_op: {
20506
+ Args: {
20507
+ _bewaar_dagen?: number;
20508
+ };
20509
+ Returns: number;
20510
+ };
19962
20511
  run_floriday_continuous_stock_sync: {
19963
20512
  Args: never;
19964
20513
  Returns: undefined;
19965
20514
  };
20515
+ run_floriday_stock_queue_process: {
20516
+ Args: never;
20517
+ Returns: undefined;
20518
+ };
19966
20519
  run_logistics_tasks_dispatch: {
19967
20520
  Args: never;
19968
20521
  Returns: undefined;
19969
20522
  };
20523
+ run_print_queue_ticks: {
20524
+ Args: never;
20525
+ Returns: number;
20526
+ };
19970
20527
  run_twinfield_queue_tick: {
19971
20528
  Args: never;
19972
20529
  Returns: undefined;
@@ -20207,6 +20764,13 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
20207
20764
  };
20208
20765
  Returns: number;
20209
20766
  };
20767
+ schedule_floriday_stock_queue_process: {
20768
+ Args: {
20769
+ p_apikey: string;
20770
+ p_url: string;
20771
+ };
20772
+ Returns: number;
20773
+ };
20210
20774
  schedule_floriday_token_refresh: {
20211
20775
  Args: {
20212
20776
  p_apikey: string;
@@ -20347,6 +20911,15 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
20347
20911
  };
20348
20912
  Returns: undefined;
20349
20913
  };
20914
+ trade_item_stock_duplicates: {
20915
+ Args: never;
20916
+ Returns: {
20917
+ keys: string[];
20918
+ product_id: string;
20919
+ product_name: string;
20920
+ row_count: number;
20921
+ }[];
20922
+ };
20350
20923
  try_debtor_lock: {
20351
20924
  Args: {
20352
20925
  _group_key: string;
@@ -20396,7 +20969,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
20396
20969
  };
20397
20970
  Enums: {
20398
20971
  ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
20399
- app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin";
20972
+ app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
20400
20973
  doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
20401
20974
  doc_orientation: "portrait" | "landscape";
20402
20975
  exact_env: "staging" | "live";
@@ -22121,7 +22694,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
22121
22694
  city: string | null;
22122
22695
  country: string | null;
22123
22696
  created_at: string;
22124
- customer_id: string | null;
22697
+ customer_id: string;
22125
22698
  external_key: string | null;
22126
22699
  external_provider: string | null;
22127
22700
  floriday_location_id: string | null;
@@ -22145,7 +22718,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
22145
22718
  city?: string | null;
22146
22719
  country?: string | null;
22147
22720
  created_at?: string;
22148
- customer_id?: string | null;
22721
+ customer_id: string;
22149
22722
  external_key?: string | null;
22150
22723
  external_provider?: string | null;
22151
22724
  floriday_location_id?: string | null;
@@ -22169,7 +22742,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
22169
22742
  city?: string | null;
22170
22743
  country?: string | null;
22171
22744
  created_at?: string;
22172
- customer_id?: string | null;
22745
+ customer_id?: string;
22173
22746
  external_key?: string | null;
22174
22747
  external_provider?: string | null;
22175
22748
  floriday_location_id?: string | null;
@@ -26132,12 +26705,17 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
26132
26705
  attempts: number;
26133
26706
  connection_id: string;
26134
26707
  created_at: string;
26708
+ desired_available: boolean | null;
26135
26709
  gateway_attempt_id: string | null;
26136
26710
  id: string;
26137
26711
  last_error: string | null;
26712
+ locked_at: string | null;
26713
+ locked_by: string | null;
26714
+ next_attempt_at: string;
26138
26715
  number_of_pieces: number;
26139
26716
  sent_at: string | null;
26140
26717
  status: string;
26718
+ superseded_by: string | null;
26141
26719
  trade_item_id: string;
26142
26720
  updated_at: string;
26143
26721
  user_id: string;
@@ -26146,12 +26724,17 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
26146
26724
  attempts?: number;
26147
26725
  connection_id: string;
26148
26726
  created_at?: string;
26727
+ desired_available?: boolean | null;
26149
26728
  gateway_attempt_id?: string | null;
26150
26729
  id?: string;
26151
26730
  last_error?: string | null;
26731
+ locked_at?: string | null;
26732
+ locked_by?: string | null;
26733
+ next_attempt_at?: string;
26152
26734
  number_of_pieces?: number;
26153
26735
  sent_at?: string | null;
26154
26736
  status?: string;
26737
+ superseded_by?: string | null;
26155
26738
  trade_item_id: string;
26156
26739
  updated_at?: string;
26157
26740
  user_id: string;
@@ -26160,12 +26743,17 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
26160
26743
  attempts?: number;
26161
26744
  connection_id?: string;
26162
26745
  created_at?: string;
26746
+ desired_available?: boolean | null;
26163
26747
  gateway_attempt_id?: string | null;
26164
26748
  id?: string;
26165
26749
  last_error?: string | null;
26750
+ locked_at?: string | null;
26751
+ locked_by?: string | null;
26752
+ next_attempt_at?: string;
26166
26753
  number_of_pieces?: number;
26167
26754
  sent_at?: string | null;
26168
26755
  status?: string;
26756
+ superseded_by?: string | null;
26169
26757
  trade_item_id?: string;
26170
26758
  updated_at?: string;
26171
26759
  user_id?: string;
@@ -26902,6 +27490,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
26902
27490
  Row: {
26903
27491
  buyer_organization_id: string | null;
26904
27492
  connection_id: string;
27493
+ controlled_at: string | null;
26905
27494
  created_at: string;
26906
27495
  data: import("../integrations/supabase/types").Json;
26907
27496
  floriday_id: string;
@@ -26913,6 +27502,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
26913
27502
  Insert: {
26914
27503
  buyer_organization_id?: string | null;
26915
27504
  connection_id: string;
27505
+ controlled_at?: string | null;
26916
27506
  created_at?: string;
26917
27507
  data: import("../integrations/supabase/types").Json;
26918
27508
  floriday_id: string;
@@ -26924,6 +27514,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
26924
27514
  Update: {
26925
27515
  buyer_organization_id?: string | null;
26926
27516
  connection_id?: string;
27517
+ controlled_at?: string | null;
26927
27518
  created_at?: string;
26928
27519
  data?: import("../integrations/supabase/types").Json;
26929
27520
  floriday_id?: string;
@@ -27825,6 +28416,54 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
27825
28416
  };
27826
28417
  Relationships: [];
27827
28418
  };
28419
+ invoice_timing_settings: {
28420
+ Row: {
28421
+ anchor: string;
28422
+ business_days_only: boolean;
28423
+ created_at: string;
28424
+ enabled: boolean;
28425
+ id: string;
28426
+ offset_days: number;
28427
+ pickup_anchor: string;
28428
+ pickup_business_days_only: boolean;
28429
+ pickup_offset_days: number;
28430
+ pickup_time_of_day: string;
28431
+ singleton: boolean;
28432
+ time_of_day: string;
28433
+ updated_at: string;
28434
+ };
28435
+ Insert: {
28436
+ anchor?: string;
28437
+ business_days_only?: boolean;
28438
+ created_at?: string;
28439
+ enabled?: boolean;
28440
+ id?: string;
28441
+ offset_days?: number;
28442
+ pickup_anchor?: string;
28443
+ pickup_business_days_only?: boolean;
28444
+ pickup_offset_days?: number;
28445
+ pickup_time_of_day?: string;
28446
+ singleton?: boolean;
28447
+ time_of_day?: string;
28448
+ updated_at?: string;
28449
+ };
28450
+ Update: {
28451
+ anchor?: string;
28452
+ business_days_only?: boolean;
28453
+ created_at?: string;
28454
+ enabled?: boolean;
28455
+ id?: string;
28456
+ offset_days?: number;
28457
+ pickup_anchor?: string;
28458
+ pickup_business_days_only?: boolean;
28459
+ pickup_offset_days?: number;
28460
+ pickup_time_of_day?: string;
28461
+ singleton?: boolean;
28462
+ time_of_day?: string;
28463
+ updated_at?: string;
28464
+ };
28465
+ Relationships: [];
28466
+ };
27828
28467
  itk_contact_persons: {
27829
28468
  Row: {
27830
28469
  created_at: string;
@@ -28914,6 +29553,69 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
28914
29553
  };
28915
29554
  Relationships: [];
28916
29555
  };
29556
+ logistics_floriday_pushes: {
29557
+ Row: {
29558
+ attempts: number;
29559
+ created_at: string;
29560
+ first_queued_at: string;
29561
+ fulfillment_order_id: string | null;
29562
+ id: string;
29563
+ last_error: string | null;
29564
+ last_error_at: string | null;
29565
+ last_sent_hash: string | null;
29566
+ locked_by: string | null;
29567
+ locked_until: string | null;
29568
+ next_attempt_at: string;
29569
+ order_ref: string;
29570
+ payload: import("../integrations/supabase/types").Json;
29571
+ payload_hash: string | null;
29572
+ revision: number;
29573
+ sent_at: string | null;
29574
+ status: string;
29575
+ updated_at: string;
29576
+ };
29577
+ Insert: {
29578
+ attempts?: number;
29579
+ created_at?: string;
29580
+ first_queued_at?: string;
29581
+ fulfillment_order_id?: string | null;
29582
+ id?: string;
29583
+ last_error?: string | null;
29584
+ last_error_at?: string | null;
29585
+ last_sent_hash?: string | null;
29586
+ locked_by?: string | null;
29587
+ locked_until?: string | null;
29588
+ next_attempt_at?: string;
29589
+ order_ref: string;
29590
+ payload?: import("../integrations/supabase/types").Json;
29591
+ payload_hash?: string | null;
29592
+ revision?: number;
29593
+ sent_at?: string | null;
29594
+ status?: string;
29595
+ updated_at?: string;
29596
+ };
29597
+ Update: {
29598
+ attempts?: number;
29599
+ created_at?: string;
29600
+ first_queued_at?: string;
29601
+ fulfillment_order_id?: string | null;
29602
+ id?: string;
29603
+ last_error?: string | null;
29604
+ last_error_at?: string | null;
29605
+ last_sent_hash?: string | null;
29606
+ locked_by?: string | null;
29607
+ locked_until?: string | null;
29608
+ next_attempt_at?: string;
29609
+ order_ref?: string;
29610
+ payload?: import("../integrations/supabase/types").Json;
29611
+ payload_hash?: string | null;
29612
+ revision?: number;
29613
+ sent_at?: string | null;
29614
+ status?: string;
29615
+ updated_at?: string;
29616
+ };
29617
+ Relationships: [];
29618
+ };
28917
29619
  logistics_formulas: {
28918
29620
  Row: {
28919
29621
  created_at: string;
@@ -29777,14 +30479,17 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
29777
30479
  };
29778
30480
  mailbox_messages: {
29779
30481
  Row: {
30482
+ attachments: import("../integrations/supabase/types").Json;
29780
30483
  body_html: string | null;
29781
30484
  body_text: string | null;
30485
+ cc_recipients: import("../integrations/supabase/types").Json;
29782
30486
  connection_id: string | null;
29783
30487
  created_at: string;
29784
30488
  error_message: string | null;
29785
30489
  external_id: string | null;
29786
30490
  from_email: string | null;
29787
30491
  from_name: string | null;
30492
+ has_attachments: boolean;
29788
30493
  id: string;
29789
30494
  message_id: string | null;
29790
30495
  profile_id: string | null;
@@ -29792,18 +30497,22 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
29792
30497
  received_at: string | null;
29793
30498
  status: string;
29794
30499
  subject: string | null;
30500
+ to_recipients: import("../integrations/supabase/types").Json;
29795
30501
  uid: number | null;
29796
30502
  updated_at: string;
29797
30503
  };
29798
30504
  Insert: {
30505
+ attachments?: import("../integrations/supabase/types").Json;
29799
30506
  body_html?: string | null;
29800
30507
  body_text?: string | null;
30508
+ cc_recipients?: import("../integrations/supabase/types").Json;
29801
30509
  connection_id?: string | null;
29802
30510
  created_at?: string;
29803
30511
  error_message?: string | null;
29804
30512
  external_id?: string | null;
29805
30513
  from_email?: string | null;
29806
30514
  from_name?: string | null;
30515
+ has_attachments?: boolean;
29807
30516
  id?: string;
29808
30517
  message_id?: string | null;
29809
30518
  profile_id?: string | null;
@@ -29811,18 +30520,22 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
29811
30520
  received_at?: string | null;
29812
30521
  status?: string;
29813
30522
  subject?: string | null;
30523
+ to_recipients?: import("../integrations/supabase/types").Json;
29814
30524
  uid?: number | null;
29815
30525
  updated_at?: string;
29816
30526
  };
29817
30527
  Update: {
30528
+ attachments?: import("../integrations/supabase/types").Json;
29818
30529
  body_html?: string | null;
29819
30530
  body_text?: string | null;
30531
+ cc_recipients?: import("../integrations/supabase/types").Json;
29820
30532
  connection_id?: string | null;
29821
30533
  created_at?: string;
29822
30534
  error_message?: string | null;
29823
30535
  external_id?: string | null;
29824
30536
  from_email?: string | null;
29825
30537
  from_name?: string | null;
30538
+ has_attachments?: boolean;
29826
30539
  id?: string;
29827
30540
  message_id?: string | null;
29828
30541
  profile_id?: string | null;
@@ -29830,6 +30543,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
29830
30543
  received_at?: string | null;
29831
30544
  status?: string;
29832
30545
  subject?: string | null;
30546
+ to_recipients?: import("../integrations/supabase/types").Json;
29833
30547
  uid?: number | null;
29834
30548
  updated_at?: string;
29835
30549
  };
@@ -30237,6 +30951,36 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
30237
30951
  };
30238
30952
  Relationships: [];
30239
30953
  };
30954
+ module_registry: {
30955
+ Row: {
30956
+ created_at: string;
30957
+ is_active: boolean;
30958
+ last_seen_at: string;
30959
+ module_id: string;
30960
+ name: string;
30961
+ shell_id: string | null;
30962
+ sort_order: number | null;
30963
+ };
30964
+ Insert: {
30965
+ created_at?: string;
30966
+ is_active?: boolean;
30967
+ last_seen_at?: string;
30968
+ module_id: string;
30969
+ name: string;
30970
+ shell_id?: string | null;
30971
+ sort_order?: number | null;
30972
+ };
30973
+ Update: {
30974
+ created_at?: string;
30975
+ is_active?: boolean;
30976
+ last_seen_at?: string;
30977
+ module_id?: string;
30978
+ name?: string;
30979
+ shell_id?: string | null;
30980
+ sort_order?: number | null;
30981
+ };
30982
+ Relationships: [];
30983
+ };
30240
30984
  module_runtime_config: {
30241
30985
  Row: {
30242
30986
  key: string;
@@ -31296,6 +32040,42 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
31296
32040
  };
31297
32041
  Relationships: [];
31298
32042
  };
32043
+ order_invoice_links: {
32044
+ Row: {
32045
+ attempts: number;
32046
+ created_at: string;
32047
+ error_message: string | null;
32048
+ id: string;
32049
+ invoice_number: string | null;
32050
+ order_id: string;
32051
+ processed_at: string | null;
32052
+ status: string;
32053
+ updated_at: string;
32054
+ };
32055
+ Insert: {
32056
+ attempts?: number;
32057
+ created_at?: string;
32058
+ error_message?: string | null;
32059
+ id?: string;
32060
+ invoice_number?: string | null;
32061
+ order_id: string;
32062
+ processed_at?: string | null;
32063
+ status?: string;
32064
+ updated_at?: string;
32065
+ };
32066
+ Update: {
32067
+ attempts?: number;
32068
+ created_at?: string;
32069
+ error_message?: string | null;
32070
+ id?: string;
32071
+ invoice_number?: string | null;
32072
+ order_id?: string;
32073
+ processed_at?: string | null;
32074
+ status?: string;
32075
+ updated_at?: string;
32076
+ };
32077
+ Relationships: [];
32078
+ };
31299
32079
  order_items: {
31300
32080
  Row: {
31301
32081
  crates_per_layer: number | null;
@@ -31478,6 +32258,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
31478
32258
  delivery_date: string | null;
31479
32259
  floriday_sales_order_id: string | null;
31480
32260
  id: string;
32261
+ invoice_due_at: string | null;
31481
32262
  is_reservation: boolean;
31482
32263
  notes: string | null;
31483
32264
  order_date: string;
@@ -31499,6 +32280,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
31499
32280
  delivery_date?: string | null;
31500
32281
  floriday_sales_order_id?: string | null;
31501
32282
  id?: string;
32283
+ invoice_due_at?: string | null;
31502
32284
  is_reservation?: boolean;
31503
32285
  notes?: string | null;
31504
32286
  order_date?: string;
@@ -31520,6 +32302,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
31520
32302
  delivery_date?: string | null;
31521
32303
  floriday_sales_order_id?: string | null;
31522
32304
  id?: string;
32305
+ invoice_due_at?: string | null;
31523
32306
  is_reservation?: boolean;
31524
32307
  notes?: string | null;
31525
32308
  order_date?: string;
@@ -32716,22 +33499,27 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
32716
33499
  created_at: string;
32717
33500
  documentnaam: string;
32718
33501
  documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
33502
+ extern_job_id: string | null;
32719
33503
  foutmelding: string | null;
32720
33504
  gebruiker_id: string | null;
32721
33505
  gebruiker_naam: string;
32722
33506
  gestart_op: string | null;
32723
33507
  id: string;
33508
+ idempotentie_sleutel: string | null;
32724
33509
  is_herprint: boolean;
32725
33510
  kopieen: number;
32726
33511
  layout_id: string | null;
32727
33512
  opgepakt_op: string | null;
32728
33513
  paginas: number;
32729
33514
  payload: import("../integrations/supabase/types").Json;
33515
+ pdf_base64: string | null;
33516
+ pdf_url: string | null;
32730
33517
  pogingen: number;
32731
33518
  printer_id: string | null;
32732
33519
  render_html: string | null;
32733
33520
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
32734
33521
  updated_at: string;
33522
+ volgende_poging: string | null;
32735
33523
  voltooid_op: string | null;
32736
33524
  };
32737
33525
  Insert: {
@@ -32740,22 +33528,27 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
32740
33528
  created_at?: string;
32741
33529
  documentnaam?: string;
32742
33530
  documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
33531
+ extern_job_id?: string | null;
32743
33532
  foutmelding?: string | null;
32744
33533
  gebruiker_id?: string | null;
32745
33534
  gebruiker_naam?: string;
32746
33535
  gestart_op?: string | null;
32747
33536
  id?: string;
33537
+ idempotentie_sleutel?: string | null;
32748
33538
  is_herprint?: boolean;
32749
33539
  kopieen?: number;
32750
33540
  layout_id?: string | null;
32751
33541
  opgepakt_op?: string | null;
32752
33542
  paginas?: number;
32753
33543
  payload?: import("../integrations/supabase/types").Json;
33544
+ pdf_base64?: string | null;
33545
+ pdf_url?: string | null;
32754
33546
  pogingen?: number;
32755
33547
  printer_id?: string | null;
32756
33548
  render_html?: string | null;
32757
33549
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
32758
33550
  updated_at?: string;
33551
+ volgende_poging?: string | null;
32759
33552
  voltooid_op?: string | null;
32760
33553
  };
32761
33554
  Update: {
@@ -32764,22 +33557,27 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
32764
33557
  created_at?: string;
32765
33558
  documentnaam?: string;
32766
33559
  documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
33560
+ extern_job_id?: string | null;
32767
33561
  foutmelding?: string | null;
32768
33562
  gebruiker_id?: string | null;
32769
33563
  gebruiker_naam?: string;
32770
33564
  gestart_op?: string | null;
32771
33565
  id?: string;
33566
+ idempotentie_sleutel?: string | null;
32772
33567
  is_herprint?: boolean;
32773
33568
  kopieen?: number;
32774
33569
  layout_id?: string | null;
32775
33570
  opgepakt_op?: string | null;
32776
33571
  paginas?: number;
32777
33572
  payload?: import("../integrations/supabase/types").Json;
33573
+ pdf_base64?: string | null;
33574
+ pdf_url?: string | null;
32778
33575
  pogingen?: number;
32779
33576
  printer_id?: string | null;
32780
33577
  render_html?: string | null;
32781
33578
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
32782
33579
  updated_at?: string;
33580
+ volgende_poging?: string | null;
32783
33581
  voltooid_op?: string | null;
32784
33582
  };
32785
33583
  Relationships: [{
@@ -32802,6 +33600,63 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
32802
33600
  referencedColumns: ["id"];
32803
33601
  }];
32804
33602
  };
33603
+ print_queue_runners: {
33604
+ Row: {
33605
+ actief: boolean;
33606
+ basis_url: string;
33607
+ created_at: string;
33608
+ id: string;
33609
+ laatst_gezien: string;
33610
+ tick_sleutel: string;
33611
+ updated_at: string;
33612
+ };
33613
+ Insert: {
33614
+ actief?: boolean;
33615
+ basis_url: string;
33616
+ created_at?: string;
33617
+ id?: string;
33618
+ laatst_gezien?: string;
33619
+ tick_sleutel?: string;
33620
+ updated_at?: string;
33621
+ };
33622
+ Update: {
33623
+ actief?: boolean;
33624
+ basis_url?: string;
33625
+ created_at?: string;
33626
+ id?: string;
33627
+ laatst_gezien?: string;
33628
+ tick_sleutel?: string;
33629
+ updated_at?: string;
33630
+ };
33631
+ Relationships: [];
33632
+ };
33633
+ print_queue_settings: {
33634
+ Row: {
33635
+ bewaar_bestanden_dagen: number;
33636
+ bewaar_opdrachten_dagen: number;
33637
+ created_at: string;
33638
+ dubbel_venster_minuten: number;
33639
+ id: string;
33640
+ updated_at: string;
33641
+ };
33642
+ Insert: {
33643
+ bewaar_bestanden_dagen?: number;
33644
+ bewaar_opdrachten_dagen?: number;
33645
+ created_at?: string;
33646
+ dubbel_venster_minuten?: number;
33647
+ id?: string;
33648
+ updated_at?: string;
33649
+ };
33650
+ Update: {
33651
+ bewaar_bestanden_dagen?: number;
33652
+ bewaar_opdrachten_dagen?: number;
33653
+ created_at?: string;
33654
+ dubbel_venster_minuten?: number;
33655
+ id?: string;
33656
+ updated_at?: string;
33657
+ };
33658
+ Relationships: [];
33659
+ };
32805
33660
  print_rules: {
32806
33661
  Row: {
32807
33662
  actief: boolean;
@@ -32962,6 +33817,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
32962
33817
  agent_id: string | null;
32963
33818
  created_at: string;
32964
33819
  driver: string;
33820
+ extern_printer_id: string | null;
32965
33821
  id: string;
32966
33822
  ip_adres: string | null;
32967
33823
  laatst_gezien: string | null;
@@ -32983,6 +33839,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
32983
33839
  agent_id?: string | null;
32984
33840
  created_at?: string;
32985
33841
  driver?: string;
33842
+ extern_printer_id?: string | null;
32986
33843
  id?: string;
32987
33844
  ip_adres?: string | null;
32988
33845
  laatst_gezien?: string | null;
@@ -33004,6 +33861,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
33004
33861
  agent_id?: string | null;
33005
33862
  created_at?: string;
33006
33863
  driver?: string;
33864
+ extern_printer_id?: string | null;
33007
33865
  id?: string;
33008
33866
  ip_adres?: string | null;
33009
33867
  laatst_gezien?: string | null;
@@ -35639,6 +36497,8 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
35639
36497
  };
35640
36498
  twinfield_invoice_settings: {
35641
36499
  Row: {
36500
+ auto_invoice_enabled: boolean;
36501
+ auto_invoice_trigger_statuses: string[];
35642
36502
  created_at: string;
35643
36503
  debtor_gl_account: string;
35644
36504
  default_credit_invoice_type: string | null;
@@ -35659,6 +36519,8 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
35659
36519
  vat_code_export: string | null;
35660
36520
  };
35661
36521
  Insert: {
36522
+ auto_invoice_enabled?: boolean;
36523
+ auto_invoice_trigger_statuses?: string[];
35662
36524
  created_at?: string;
35663
36525
  debtor_gl_account?: string;
35664
36526
  default_credit_invoice_type?: string | null;
@@ -35679,6 +36541,8 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
35679
36541
  vat_code_export?: string | null;
35680
36542
  };
35681
36543
  Update: {
36544
+ auto_invoice_enabled?: boolean;
36545
+ auto_invoice_trigger_statuses?: string[];
35682
36546
  created_at?: string;
35683
36547
  debtor_gl_account?: string;
35684
36548
  default_credit_invoice_type?: string | null;
@@ -36741,6 +37605,33 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
36741
37605
  referencedColumns: ["id"];
36742
37606
  }];
36743
37607
  };
37608
+ user_module_permissions: {
37609
+ Row: {
37610
+ created_at: string;
37611
+ id: string;
37612
+ module_id: string;
37613
+ permission: string;
37614
+ updated_at: string;
37615
+ user_id: string;
37616
+ };
37617
+ Insert: {
37618
+ created_at?: string;
37619
+ id?: string;
37620
+ module_id: string;
37621
+ permission: string;
37622
+ updated_at?: string;
37623
+ user_id: string;
37624
+ };
37625
+ Update: {
37626
+ created_at?: string;
37627
+ id?: string;
37628
+ module_id?: string;
37629
+ permission?: string;
37630
+ updated_at?: string;
37631
+ user_id?: string;
37632
+ };
37633
+ Relationships: [];
37634
+ };
36744
37635
  user_roles: {
36745
37636
  Row: {
36746
37637
  created_at: string;
@@ -38574,6 +39465,10 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
38574
39465
  processed_items: number;
38575
39466
  }[];
38576
39467
  };
39468
+ backfill_order_auto_invoice_queue: {
39469
+ Args: never;
39470
+ Returns: number;
39471
+ };
38577
39472
  calculate_layer_stock: {
38578
39473
  Args: {
38579
39474
  p_product_id: string;
@@ -38608,6 +39503,77 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
38608
39503
  };
38609
39504
  Returns: import("../integrations/supabase/types").Json;
38610
39505
  };
39506
+ claim_cloud_print_jobs: {
39507
+ Args: {
39508
+ _max?: number;
39509
+ };
39510
+ Returns: {
39511
+ agent_id: string | null;
39512
+ bron_job_id: string | null;
39513
+ created_at: string;
39514
+ documentnaam: string;
39515
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
39516
+ extern_job_id: string | null;
39517
+ foutmelding: string | null;
39518
+ gebruiker_id: string | null;
39519
+ gebruiker_naam: string;
39520
+ gestart_op: string | null;
39521
+ id: string;
39522
+ idempotentie_sleutel: string | null;
39523
+ is_herprint: boolean;
39524
+ kopieen: number;
39525
+ layout_id: string | null;
39526
+ opgepakt_op: string | null;
39527
+ paginas: number;
39528
+ payload: import("../integrations/supabase/types").Json;
39529
+ pdf_base64: string | null;
39530
+ pdf_url: string | null;
39531
+ pogingen: number;
39532
+ printer_id: string | null;
39533
+ render_html: string | null;
39534
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
39535
+ updated_at: string;
39536
+ volgende_poging: string | null;
39537
+ voltooid_op: string | null;
39538
+ }[];
39539
+ SetofOptions: {
39540
+ from: "*";
39541
+ to: "print_jobs";
39542
+ isOneToOne: false;
39543
+ isSetofReturn: true;
39544
+ };
39545
+ };
39546
+ claim_floriday_stock_queue: {
39547
+ Args: {
39548
+ p_limit?: number;
39549
+ p_worker?: string;
39550
+ };
39551
+ Returns: {
39552
+ attempts: number;
39553
+ connection_id: string;
39554
+ created_at: string;
39555
+ desired_available: boolean | null;
39556
+ gateway_attempt_id: string | null;
39557
+ id: string;
39558
+ last_error: string | null;
39559
+ locked_at: string | null;
39560
+ locked_by: string | null;
39561
+ next_attempt_at: string;
39562
+ number_of_pieces: number;
39563
+ sent_at: string | null;
39564
+ status: string;
39565
+ superseded_by: string | null;
39566
+ trade_item_id: string;
39567
+ updated_at: string;
39568
+ user_id: string;
39569
+ }[];
39570
+ SetofOptions: {
39571
+ from: "*";
39572
+ to: "floriday_continuous_stock_queue";
39573
+ isOneToOne: false;
39574
+ isSetofReturn: true;
39575
+ };
39576
+ };
38611
39577
  claim_logistics_tasks: {
38612
39578
  Args: {
38613
39579
  _limit?: number;
@@ -38667,22 +39633,27 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
38667
39633
  created_at: string;
38668
39634
  documentnaam: string;
38669
39635
  documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
39636
+ extern_job_id: string | null;
38670
39637
  foutmelding: string | null;
38671
39638
  gebruiker_id: string | null;
38672
39639
  gebruiker_naam: string;
38673
39640
  gestart_op: string | null;
38674
39641
  id: string;
39642
+ idempotentie_sleutel: string | null;
38675
39643
  is_herprint: boolean;
38676
39644
  kopieen: number;
38677
39645
  layout_id: string | null;
38678
39646
  opgepakt_op: string | null;
38679
39647
  paginas: number;
38680
39648
  payload: import("../integrations/supabase/types").Json;
39649
+ pdf_base64: string | null;
39650
+ pdf_url: string | null;
38681
39651
  pogingen: number;
38682
39652
  printer_id: string | null;
38683
39653
  render_html: string | null;
38684
39654
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
38685
39655
  updated_at: string;
39656
+ volgende_poging: string | null;
38686
39657
  voltooid_op: string | null;
38687
39658
  }[];
38688
39659
  SetofOptions: {
@@ -38720,10 +39691,28 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
38720
39691
  isSetofReturn: true;
38721
39692
  };
38722
39693
  };
39694
+ cleanup_floriday_stock_queue: {
39695
+ Args: never;
39696
+ Returns: undefined;
39697
+ };
38723
39698
  cleanup_old_bookings: {
38724
39699
  Args: never;
38725
39700
  Returns: undefined;
38726
39701
  };
39702
+ cleanup_voorraad_module_history: {
39703
+ Args: never;
39704
+ Returns: undefined;
39705
+ };
39706
+ complete_floriday_stock_queue: {
39707
+ Args: {
39708
+ p_attempt_id?: string;
39709
+ p_error?: string;
39710
+ p_id: string;
39711
+ p_ok: boolean;
39712
+ p_permanent?: boolean;
39713
+ };
39714
+ Returns: undefined;
39715
+ };
38727
39716
  consume_bom_for_production: {
38728
39717
  Args: {
38729
39718
  p_connection_id: string;
@@ -38835,6 +39824,13 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
38835
39824
  };
38836
39825
  Returns: import("../integrations/supabase/types").Json;
38837
39826
  };
39827
+ effective_module_permission: {
39828
+ Args: {
39829
+ _module_id: string;
39830
+ _user_id: string;
39831
+ };
39832
+ Returns: string;
39833
+ };
38838
39834
  email_auth_decrypt: {
38839
39835
  Args: {
38840
39836
  cipher: string;
@@ -39638,6 +40634,51 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
39638
40634
  isSetofReturn: false;
39639
40635
  };
39640
40636
  };
40637
+ logistics_floriday_claim_pushes: {
40638
+ Args: {
40639
+ _lease_seconds?: number;
40640
+ _limit?: number;
40641
+ _worker?: string;
40642
+ };
40643
+ Returns: {
40644
+ attempts: number;
40645
+ fulfillment_order_id: string;
40646
+ id: string;
40647
+ last_sent_hash: string;
40648
+ order_ref: string;
40649
+ payload: import("../integrations/supabase/types").Json;
40650
+ payload_hash: string;
40651
+ revision: number;
40652
+ }[];
40653
+ };
40654
+ logistics_floriday_finish_push: {
40655
+ Args: {
40656
+ _error?: string;
40657
+ _fulfillment_order_id?: string;
40658
+ _id: string;
40659
+ _max_age_hours?: number;
40660
+ _max_attempts?: number;
40661
+ _ok: boolean;
40662
+ _permanent?: boolean;
40663
+ _revision: number;
40664
+ _sent_hash?: string;
40665
+ };
40666
+ Returns: string;
40667
+ };
40668
+ logistics_floriday_prune_pushes: {
40669
+ Args: {
40670
+ _days?: number;
40671
+ };
40672
+ Returns: number;
40673
+ };
40674
+ logistics_floriday_queue_push: {
40675
+ Args: {
40676
+ _order_ref: string;
40677
+ _payload?: import("../integrations/supabase/types").Json;
40678
+ _payload_hash?: string;
40679
+ };
40680
+ Returns: string;
40681
+ };
39641
40682
  logistics_live_carriers: {
39642
40683
  Args: {
39643
40684
  p_order_ref: string;
@@ -39928,6 +40969,13 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
39928
40969
  };
39929
40970
  Returns: undefined;
39930
40971
  };
40972
+ my_module_permissions: {
40973
+ Args: never;
40974
+ Returns: {
40975
+ module_id: string;
40976
+ permission: string;
40977
+ }[];
40978
+ };
39931
40979
  next_manufacture_partij: {
39932
40980
  Args: {
39933
40981
  _tenant_id: string;
@@ -39978,6 +41026,13 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
39978
41026
  };
39979
41027
  Returns: boolean;
39980
41028
  };
41029
+ opruim_print_historie: {
41030
+ Args: never;
41031
+ Returns: {
41032
+ ontdaan: number;
41033
+ verwijderd: number;
41034
+ }[];
41035
+ };
39981
41036
  order_number_prefix: {
39982
41037
  Args: {
39983
41038
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -39985,6 +41040,15 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
39985
41040
  };
39986
41041
  Returns: string;
39987
41042
  };
41043
+ pick_active_printers: {
41044
+ Args: never;
41045
+ Returns: {
41046
+ id: string;
41047
+ locatie: string;
41048
+ naam: string;
41049
+ online: boolean;
41050
+ }[];
41051
+ };
39988
41052
  pick_claim_document: {
39989
41053
  Args: {
39990
41054
  _queue_item_id: string;
@@ -40171,6 +41235,52 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
40171
41235
  };
40172
41236
  Returns: undefined;
40173
41237
  };
41238
+ pick_reset_print: {
41239
+ Args: {
41240
+ _queue_item_id: string;
41241
+ _session_id: string;
41242
+ };
41243
+ Returns: {
41244
+ announced_at: string;
41245
+ assigned_user_id: string | null;
41246
+ barcode: string | null;
41247
+ cancelled_at: string | null;
41248
+ cart_count: number;
41249
+ completed_at: string | null;
41250
+ country_code: string | null;
41251
+ created_at: string;
41252
+ customer_name: string | null;
41253
+ delivery_address: string | null;
41254
+ document_number: string | null;
41255
+ document_type_id: string | null;
41256
+ due_at: string | null;
41257
+ id: string;
41258
+ is_urgent: boolean;
41259
+ line_count: number;
41260
+ order_number: string | null;
41261
+ order_type: string | null;
41262
+ payload: import("../integrations/supabase/types").Json;
41263
+ print_count: number;
41264
+ print_job_id: string | null;
41265
+ printed_at: string | null;
41266
+ printed_by: string | null;
41267
+ printer_id: string | null;
41268
+ priority: number;
41269
+ reference: string | null;
41270
+ route: string | null;
41271
+ screen_id: string | null;
41272
+ station_id: string | null;
41273
+ status_id: string | null;
41274
+ updated_at: string;
41275
+ warnings: import("../integrations/supabase/types").Json;
41276
+ };
41277
+ SetofOptions: {
41278
+ from: "*";
41279
+ to: "pick_queue";
41280
+ isOneToOne: true;
41281
+ isSetofReturn: false;
41282
+ };
41283
+ };
40174
41284
  pick_station_dashboard: {
40175
41285
  Args: never;
40176
41286
  Returns: {
@@ -40317,6 +41427,12 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
40317
41427
  };
40318
41428
  Returns: undefined;
40319
41429
  };
41430
+ reset_stalled_floriday_stock_queue: {
41431
+ Args: {
41432
+ p_include_failed?: boolean;
41433
+ };
41434
+ Returns: number;
41435
+ };
40320
41436
  resolve_group_allocation: {
40321
41437
  Args: {
40322
41438
  _needed: number;
@@ -40361,14 +41477,28 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
40361
41477
  };
40362
41478
  Returns: import("../integrations/supabase/types").Json;
40363
41479
  };
41480
+ ruim_print_jobs_op: {
41481
+ Args: {
41482
+ _bewaar_dagen?: number;
41483
+ };
41484
+ Returns: number;
41485
+ };
40364
41486
  run_floriday_continuous_stock_sync: {
40365
41487
  Args: never;
40366
41488
  Returns: undefined;
40367
41489
  };
41490
+ run_floriday_stock_queue_process: {
41491
+ Args: never;
41492
+ Returns: undefined;
41493
+ };
40368
41494
  run_logistics_tasks_dispatch: {
40369
41495
  Args: never;
40370
41496
  Returns: undefined;
40371
41497
  };
41498
+ run_print_queue_ticks: {
41499
+ Args: never;
41500
+ Returns: number;
41501
+ };
40372
41502
  run_twinfield_queue_tick: {
40373
41503
  Args: never;
40374
41504
  Returns: undefined;
@@ -40609,6 +41739,13 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
40609
41739
  };
40610
41740
  Returns: number;
40611
41741
  };
41742
+ schedule_floriday_stock_queue_process: {
41743
+ Args: {
41744
+ p_apikey: string;
41745
+ p_url: string;
41746
+ };
41747
+ Returns: number;
41748
+ };
40612
41749
  schedule_floriday_token_refresh: {
40613
41750
  Args: {
40614
41751
  p_apikey: string;
@@ -40749,6 +41886,15 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
40749
41886
  };
40750
41887
  Returns: undefined;
40751
41888
  };
41889
+ trade_item_stock_duplicates: {
41890
+ Args: never;
41891
+ Returns: {
41892
+ keys: string[];
41893
+ product_id: string;
41894
+ product_name: string;
41895
+ row_count: number;
41896
+ }[];
41897
+ };
40752
41898
  try_debtor_lock: {
40753
41899
  Args: {
40754
41900
  _group_key: string;
@@ -40798,7 +41944,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
40798
41944
  };
40799
41945
  Enums: {
40800
41946
  ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
40801
- app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin";
41947
+ app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
40802
41948
  doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
40803
41949
  doc_orientation: "portrait" | "landscape";
40804
41950
  exact_env: "staging" | "live";
@@ -42531,7 +43677,7 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
42531
43677
  city: string | null;
42532
43678
  country: string | null;
42533
43679
  created_at: string;
42534
- customer_id: string | null;
43680
+ customer_id: string;
42535
43681
  external_key: string | null;
42536
43682
  external_provider: string | null;
42537
43683
  floriday_location_id: string | null;
@@ -42555,7 +43701,7 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
42555
43701
  city?: string | null;
42556
43702
  country?: string | null;
42557
43703
  created_at?: string;
42558
- customer_id?: string | null;
43704
+ customer_id: string;
42559
43705
  external_key?: string | null;
42560
43706
  external_provider?: string | null;
42561
43707
  floriday_location_id?: string | null;
@@ -42579,7 +43725,7 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
42579
43725
  city?: string | null;
42580
43726
  country?: string | null;
42581
43727
  created_at?: string;
42582
- customer_id?: string | null;
43728
+ customer_id?: string;
42583
43729
  external_key?: string | null;
42584
43730
  external_provider?: string | null;
42585
43731
  floriday_location_id?: string | null;
@@ -46542,12 +47688,17 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
46542
47688
  attempts: number;
46543
47689
  connection_id: string;
46544
47690
  created_at: string;
47691
+ desired_available: boolean | null;
46545
47692
  gateway_attempt_id: string | null;
46546
47693
  id: string;
46547
47694
  last_error: string | null;
47695
+ locked_at: string | null;
47696
+ locked_by: string | null;
47697
+ next_attempt_at: string;
46548
47698
  number_of_pieces: number;
46549
47699
  sent_at: string | null;
46550
47700
  status: string;
47701
+ superseded_by: string | null;
46551
47702
  trade_item_id: string;
46552
47703
  updated_at: string;
46553
47704
  user_id: string;
@@ -46556,12 +47707,17 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
46556
47707
  attempts?: number;
46557
47708
  connection_id: string;
46558
47709
  created_at?: string;
47710
+ desired_available?: boolean | null;
46559
47711
  gateway_attempt_id?: string | null;
46560
47712
  id?: string;
46561
47713
  last_error?: string | null;
47714
+ locked_at?: string | null;
47715
+ locked_by?: string | null;
47716
+ next_attempt_at?: string;
46562
47717
  number_of_pieces?: number;
46563
47718
  sent_at?: string | null;
46564
47719
  status?: string;
47720
+ superseded_by?: string | null;
46565
47721
  trade_item_id: string;
46566
47722
  updated_at?: string;
46567
47723
  user_id: string;
@@ -46570,12 +47726,17 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
46570
47726
  attempts?: number;
46571
47727
  connection_id?: string;
46572
47728
  created_at?: string;
47729
+ desired_available?: boolean | null;
46573
47730
  gateway_attempt_id?: string | null;
46574
47731
  id?: string;
46575
47732
  last_error?: string | null;
47733
+ locked_at?: string | null;
47734
+ locked_by?: string | null;
47735
+ next_attempt_at?: string;
46576
47736
  number_of_pieces?: number;
46577
47737
  sent_at?: string | null;
46578
47738
  status?: string;
47739
+ superseded_by?: string | null;
46579
47740
  trade_item_id?: string;
46580
47741
  updated_at?: string;
46581
47742
  user_id?: string;
@@ -47312,6 +48473,7 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
47312
48473
  Row: {
47313
48474
  buyer_organization_id: string | null;
47314
48475
  connection_id: string;
48476
+ controlled_at: string | null;
47315
48477
  created_at: string;
47316
48478
  data: import("../integrations/supabase/types").Json;
47317
48479
  floriday_id: string;
@@ -47323,6 +48485,7 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
47323
48485
  Insert: {
47324
48486
  buyer_organization_id?: string | null;
47325
48487
  connection_id: string;
48488
+ controlled_at?: string | null;
47326
48489
  created_at?: string;
47327
48490
  data: import("../integrations/supabase/types").Json;
47328
48491
  floriday_id: string;
@@ -47334,6 +48497,7 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
47334
48497
  Update: {
47335
48498
  buyer_organization_id?: string | null;
47336
48499
  connection_id?: string;
48500
+ controlled_at?: string | null;
47337
48501
  created_at?: string;
47338
48502
  data?: import("../integrations/supabase/types").Json;
47339
48503
  floriday_id?: string;
@@ -48235,6 +49399,54 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
48235
49399
  };
48236
49400
  Relationships: [];
48237
49401
  };
49402
+ invoice_timing_settings: {
49403
+ Row: {
49404
+ anchor: string;
49405
+ business_days_only: boolean;
49406
+ created_at: string;
49407
+ enabled: boolean;
49408
+ id: string;
49409
+ offset_days: number;
49410
+ pickup_anchor: string;
49411
+ pickup_business_days_only: boolean;
49412
+ pickup_offset_days: number;
49413
+ pickup_time_of_day: string;
49414
+ singleton: boolean;
49415
+ time_of_day: string;
49416
+ updated_at: string;
49417
+ };
49418
+ Insert: {
49419
+ anchor?: string;
49420
+ business_days_only?: boolean;
49421
+ created_at?: string;
49422
+ enabled?: boolean;
49423
+ id?: string;
49424
+ offset_days?: number;
49425
+ pickup_anchor?: string;
49426
+ pickup_business_days_only?: boolean;
49427
+ pickup_offset_days?: number;
49428
+ pickup_time_of_day?: string;
49429
+ singleton?: boolean;
49430
+ time_of_day?: string;
49431
+ updated_at?: string;
49432
+ };
49433
+ Update: {
49434
+ anchor?: string;
49435
+ business_days_only?: boolean;
49436
+ created_at?: string;
49437
+ enabled?: boolean;
49438
+ id?: string;
49439
+ offset_days?: number;
49440
+ pickup_anchor?: string;
49441
+ pickup_business_days_only?: boolean;
49442
+ pickup_offset_days?: number;
49443
+ pickup_time_of_day?: string;
49444
+ singleton?: boolean;
49445
+ time_of_day?: string;
49446
+ updated_at?: string;
49447
+ };
49448
+ Relationships: [];
49449
+ };
48238
49450
  itk_contact_persons: {
48239
49451
  Row: {
48240
49452
  created_at: string;
@@ -49324,6 +50536,69 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
49324
50536
  };
49325
50537
  Relationships: [];
49326
50538
  };
50539
+ logistics_floriday_pushes: {
50540
+ Row: {
50541
+ attempts: number;
50542
+ created_at: string;
50543
+ first_queued_at: string;
50544
+ fulfillment_order_id: string | null;
50545
+ id: string;
50546
+ last_error: string | null;
50547
+ last_error_at: string | null;
50548
+ last_sent_hash: string | null;
50549
+ locked_by: string | null;
50550
+ locked_until: string | null;
50551
+ next_attempt_at: string;
50552
+ order_ref: string;
50553
+ payload: import("../integrations/supabase/types").Json;
50554
+ payload_hash: string | null;
50555
+ revision: number;
50556
+ sent_at: string | null;
50557
+ status: string;
50558
+ updated_at: string;
50559
+ };
50560
+ Insert: {
50561
+ attempts?: number;
50562
+ created_at?: string;
50563
+ first_queued_at?: string;
50564
+ fulfillment_order_id?: string | null;
50565
+ id?: string;
50566
+ last_error?: string | null;
50567
+ last_error_at?: string | null;
50568
+ last_sent_hash?: string | null;
50569
+ locked_by?: string | null;
50570
+ locked_until?: string | null;
50571
+ next_attempt_at?: string;
50572
+ order_ref: string;
50573
+ payload?: import("../integrations/supabase/types").Json;
50574
+ payload_hash?: string | null;
50575
+ revision?: number;
50576
+ sent_at?: string | null;
50577
+ status?: string;
50578
+ updated_at?: string;
50579
+ };
50580
+ Update: {
50581
+ attempts?: number;
50582
+ created_at?: string;
50583
+ first_queued_at?: string;
50584
+ fulfillment_order_id?: string | null;
50585
+ id?: string;
50586
+ last_error?: string | null;
50587
+ last_error_at?: string | null;
50588
+ last_sent_hash?: string | null;
50589
+ locked_by?: string | null;
50590
+ locked_until?: string | null;
50591
+ next_attempt_at?: string;
50592
+ order_ref?: string;
50593
+ payload?: import("../integrations/supabase/types").Json;
50594
+ payload_hash?: string | null;
50595
+ revision?: number;
50596
+ sent_at?: string | null;
50597
+ status?: string;
50598
+ updated_at?: string;
50599
+ };
50600
+ Relationships: [];
50601
+ };
49327
50602
  logistics_formulas: {
49328
50603
  Row: {
49329
50604
  created_at: string;
@@ -50187,14 +51462,17 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
50187
51462
  };
50188
51463
  mailbox_messages: {
50189
51464
  Row: {
51465
+ attachments: import("../integrations/supabase/types").Json;
50190
51466
  body_html: string | null;
50191
51467
  body_text: string | null;
51468
+ cc_recipients: import("../integrations/supabase/types").Json;
50192
51469
  connection_id: string | null;
50193
51470
  created_at: string;
50194
51471
  error_message: string | null;
50195
51472
  external_id: string | null;
50196
51473
  from_email: string | null;
50197
51474
  from_name: string | null;
51475
+ has_attachments: boolean;
50198
51476
  id: string;
50199
51477
  message_id: string | null;
50200
51478
  profile_id: string | null;
@@ -50202,18 +51480,22 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
50202
51480
  received_at: string | null;
50203
51481
  status: string;
50204
51482
  subject: string | null;
51483
+ to_recipients: import("../integrations/supabase/types").Json;
50205
51484
  uid: number | null;
50206
51485
  updated_at: string;
50207
51486
  };
50208
51487
  Insert: {
51488
+ attachments?: import("../integrations/supabase/types").Json;
50209
51489
  body_html?: string | null;
50210
51490
  body_text?: string | null;
51491
+ cc_recipients?: import("../integrations/supabase/types").Json;
50211
51492
  connection_id?: string | null;
50212
51493
  created_at?: string;
50213
51494
  error_message?: string | null;
50214
51495
  external_id?: string | null;
50215
51496
  from_email?: string | null;
50216
51497
  from_name?: string | null;
51498
+ has_attachments?: boolean;
50217
51499
  id?: string;
50218
51500
  message_id?: string | null;
50219
51501
  profile_id?: string | null;
@@ -50221,18 +51503,22 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
50221
51503
  received_at?: string | null;
50222
51504
  status?: string;
50223
51505
  subject?: string | null;
51506
+ to_recipients?: import("../integrations/supabase/types").Json;
50224
51507
  uid?: number | null;
50225
51508
  updated_at?: string;
50226
51509
  };
50227
51510
  Update: {
51511
+ attachments?: import("../integrations/supabase/types").Json;
50228
51512
  body_html?: string | null;
50229
51513
  body_text?: string | null;
51514
+ cc_recipients?: import("../integrations/supabase/types").Json;
50230
51515
  connection_id?: string | null;
50231
51516
  created_at?: string;
50232
51517
  error_message?: string | null;
50233
51518
  external_id?: string | null;
50234
51519
  from_email?: string | null;
50235
51520
  from_name?: string | null;
51521
+ has_attachments?: boolean;
50236
51522
  id?: string;
50237
51523
  message_id?: string | null;
50238
51524
  profile_id?: string | null;
@@ -50240,6 +51526,7 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
50240
51526
  received_at?: string | null;
50241
51527
  status?: string;
50242
51528
  subject?: string | null;
51529
+ to_recipients?: import("../integrations/supabase/types").Json;
50243
51530
  uid?: number | null;
50244
51531
  updated_at?: string;
50245
51532
  };
@@ -50647,6 +51934,36 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
50647
51934
  };
50648
51935
  Relationships: [];
50649
51936
  };
51937
+ module_registry: {
51938
+ Row: {
51939
+ created_at: string;
51940
+ is_active: boolean;
51941
+ last_seen_at: string;
51942
+ module_id: string;
51943
+ name: string;
51944
+ shell_id: string | null;
51945
+ sort_order: number | null;
51946
+ };
51947
+ Insert: {
51948
+ created_at?: string;
51949
+ is_active?: boolean;
51950
+ last_seen_at?: string;
51951
+ module_id: string;
51952
+ name: string;
51953
+ shell_id?: string | null;
51954
+ sort_order?: number | null;
51955
+ };
51956
+ Update: {
51957
+ created_at?: string;
51958
+ is_active?: boolean;
51959
+ last_seen_at?: string;
51960
+ module_id?: string;
51961
+ name?: string;
51962
+ shell_id?: string | null;
51963
+ sort_order?: number | null;
51964
+ };
51965
+ Relationships: [];
51966
+ };
50650
51967
  module_runtime_config: {
50651
51968
  Row: {
50652
51969
  key: string;
@@ -51706,6 +53023,42 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
51706
53023
  };
51707
53024
  Relationships: [];
51708
53025
  };
53026
+ order_invoice_links: {
53027
+ Row: {
53028
+ attempts: number;
53029
+ created_at: string;
53030
+ error_message: string | null;
53031
+ id: string;
53032
+ invoice_number: string | null;
53033
+ order_id: string;
53034
+ processed_at: string | null;
53035
+ status: string;
53036
+ updated_at: string;
53037
+ };
53038
+ Insert: {
53039
+ attempts?: number;
53040
+ created_at?: string;
53041
+ error_message?: string | null;
53042
+ id?: string;
53043
+ invoice_number?: string | null;
53044
+ order_id: string;
53045
+ processed_at?: string | null;
53046
+ status?: string;
53047
+ updated_at?: string;
53048
+ };
53049
+ Update: {
53050
+ attempts?: number;
53051
+ created_at?: string;
53052
+ error_message?: string | null;
53053
+ id?: string;
53054
+ invoice_number?: string | null;
53055
+ order_id?: string;
53056
+ processed_at?: string | null;
53057
+ status?: string;
53058
+ updated_at?: string;
53059
+ };
53060
+ Relationships: [];
53061
+ };
51709
53062
  order_items: {
51710
53063
  Row: {
51711
53064
  crates_per_layer: number | null;
@@ -51888,6 +53241,7 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
51888
53241
  delivery_date: string | null;
51889
53242
  floriday_sales_order_id: string | null;
51890
53243
  id: string;
53244
+ invoice_due_at: string | null;
51891
53245
  is_reservation: boolean;
51892
53246
  notes: string | null;
51893
53247
  order_date: string;
@@ -51909,6 +53263,7 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
51909
53263
  delivery_date?: string | null;
51910
53264
  floriday_sales_order_id?: string | null;
51911
53265
  id?: string;
53266
+ invoice_due_at?: string | null;
51912
53267
  is_reservation?: boolean;
51913
53268
  notes?: string | null;
51914
53269
  order_date?: string;
@@ -51930,6 +53285,7 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
51930
53285
  delivery_date?: string | null;
51931
53286
  floriday_sales_order_id?: string | null;
51932
53287
  id?: string;
53288
+ invoice_due_at?: string | null;
51933
53289
  is_reservation?: boolean;
51934
53290
  notes?: string | null;
51935
53291
  order_date?: string;
@@ -53126,22 +54482,27 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
53126
54482
  created_at: string;
53127
54483
  documentnaam: string;
53128
54484
  documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
54485
+ extern_job_id: string | null;
53129
54486
  foutmelding: string | null;
53130
54487
  gebruiker_id: string | null;
53131
54488
  gebruiker_naam: string;
53132
54489
  gestart_op: string | null;
53133
54490
  id: string;
54491
+ idempotentie_sleutel: string | null;
53134
54492
  is_herprint: boolean;
53135
54493
  kopieen: number;
53136
54494
  layout_id: string | null;
53137
54495
  opgepakt_op: string | null;
53138
54496
  paginas: number;
53139
54497
  payload: import("../integrations/supabase/types").Json;
54498
+ pdf_base64: string | null;
54499
+ pdf_url: string | null;
53140
54500
  pogingen: number;
53141
54501
  printer_id: string | null;
53142
54502
  render_html: string | null;
53143
54503
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
53144
54504
  updated_at: string;
54505
+ volgende_poging: string | null;
53145
54506
  voltooid_op: string | null;
53146
54507
  };
53147
54508
  Insert: {
@@ -53150,22 +54511,27 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
53150
54511
  created_at?: string;
53151
54512
  documentnaam?: string;
53152
54513
  documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
54514
+ extern_job_id?: string | null;
53153
54515
  foutmelding?: string | null;
53154
54516
  gebruiker_id?: string | null;
53155
54517
  gebruiker_naam?: string;
53156
54518
  gestart_op?: string | null;
53157
54519
  id?: string;
54520
+ idempotentie_sleutel?: string | null;
53158
54521
  is_herprint?: boolean;
53159
54522
  kopieen?: number;
53160
54523
  layout_id?: string | null;
53161
54524
  opgepakt_op?: string | null;
53162
54525
  paginas?: number;
53163
54526
  payload?: import("../integrations/supabase/types").Json;
54527
+ pdf_base64?: string | null;
54528
+ pdf_url?: string | null;
53164
54529
  pogingen?: number;
53165
54530
  printer_id?: string | null;
53166
54531
  render_html?: string | null;
53167
54532
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
53168
54533
  updated_at?: string;
54534
+ volgende_poging?: string | null;
53169
54535
  voltooid_op?: string | null;
53170
54536
  };
53171
54537
  Update: {
@@ -53174,22 +54540,27 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
53174
54540
  created_at?: string;
53175
54541
  documentnaam?: string;
53176
54542
  documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
54543
+ extern_job_id?: string | null;
53177
54544
  foutmelding?: string | null;
53178
54545
  gebruiker_id?: string | null;
53179
54546
  gebruiker_naam?: string;
53180
54547
  gestart_op?: string | null;
53181
54548
  id?: string;
54549
+ idempotentie_sleutel?: string | null;
53182
54550
  is_herprint?: boolean;
53183
54551
  kopieen?: number;
53184
54552
  layout_id?: string | null;
53185
54553
  opgepakt_op?: string | null;
53186
54554
  paginas?: number;
53187
54555
  payload?: import("../integrations/supabase/types").Json;
54556
+ pdf_base64?: string | null;
54557
+ pdf_url?: string | null;
53188
54558
  pogingen?: number;
53189
54559
  printer_id?: string | null;
53190
54560
  render_html?: string | null;
53191
54561
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
53192
54562
  updated_at?: string;
54563
+ volgende_poging?: string | null;
53193
54564
  voltooid_op?: string | null;
53194
54565
  };
53195
54566
  Relationships: [{
@@ -53212,6 +54583,63 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
53212
54583
  referencedColumns: ["id"];
53213
54584
  }];
53214
54585
  };
54586
+ print_queue_runners: {
54587
+ Row: {
54588
+ actief: boolean;
54589
+ basis_url: string;
54590
+ created_at: string;
54591
+ id: string;
54592
+ laatst_gezien: string;
54593
+ tick_sleutel: string;
54594
+ updated_at: string;
54595
+ };
54596
+ Insert: {
54597
+ actief?: boolean;
54598
+ basis_url: string;
54599
+ created_at?: string;
54600
+ id?: string;
54601
+ laatst_gezien?: string;
54602
+ tick_sleutel?: string;
54603
+ updated_at?: string;
54604
+ };
54605
+ Update: {
54606
+ actief?: boolean;
54607
+ basis_url?: string;
54608
+ created_at?: string;
54609
+ id?: string;
54610
+ laatst_gezien?: string;
54611
+ tick_sleutel?: string;
54612
+ updated_at?: string;
54613
+ };
54614
+ Relationships: [];
54615
+ };
54616
+ print_queue_settings: {
54617
+ Row: {
54618
+ bewaar_bestanden_dagen: number;
54619
+ bewaar_opdrachten_dagen: number;
54620
+ created_at: string;
54621
+ dubbel_venster_minuten: number;
54622
+ id: string;
54623
+ updated_at: string;
54624
+ };
54625
+ Insert: {
54626
+ bewaar_bestanden_dagen?: number;
54627
+ bewaar_opdrachten_dagen?: number;
54628
+ created_at?: string;
54629
+ dubbel_venster_minuten?: number;
54630
+ id?: string;
54631
+ updated_at?: string;
54632
+ };
54633
+ Update: {
54634
+ bewaar_bestanden_dagen?: number;
54635
+ bewaar_opdrachten_dagen?: number;
54636
+ created_at?: string;
54637
+ dubbel_venster_minuten?: number;
54638
+ id?: string;
54639
+ updated_at?: string;
54640
+ };
54641
+ Relationships: [];
54642
+ };
53215
54643
  print_rules: {
53216
54644
  Row: {
53217
54645
  actief: boolean;
@@ -53372,6 +54800,7 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
53372
54800
  agent_id: string | null;
53373
54801
  created_at: string;
53374
54802
  driver: string;
54803
+ extern_printer_id: string | null;
53375
54804
  id: string;
53376
54805
  ip_adres: string | null;
53377
54806
  laatst_gezien: string | null;
@@ -53393,6 +54822,7 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
53393
54822
  agent_id?: string | null;
53394
54823
  created_at?: string;
53395
54824
  driver?: string;
54825
+ extern_printer_id?: string | null;
53396
54826
  id?: string;
53397
54827
  ip_adres?: string | null;
53398
54828
  laatst_gezien?: string | null;
@@ -53414,6 +54844,7 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
53414
54844
  agent_id?: string | null;
53415
54845
  created_at?: string;
53416
54846
  driver?: string;
54847
+ extern_printer_id?: string | null;
53417
54848
  id?: string;
53418
54849
  ip_adres?: string | null;
53419
54850
  laatst_gezien?: string | null;
@@ -56049,6 +57480,8 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
56049
57480
  };
56050
57481
  twinfield_invoice_settings: {
56051
57482
  Row: {
57483
+ auto_invoice_enabled: boolean;
57484
+ auto_invoice_trigger_statuses: string[];
56052
57485
  created_at: string;
56053
57486
  debtor_gl_account: string;
56054
57487
  default_credit_invoice_type: string | null;
@@ -56069,6 +57502,8 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
56069
57502
  vat_code_export: string | null;
56070
57503
  };
56071
57504
  Insert: {
57505
+ auto_invoice_enabled?: boolean;
57506
+ auto_invoice_trigger_statuses?: string[];
56072
57507
  created_at?: string;
56073
57508
  debtor_gl_account?: string;
56074
57509
  default_credit_invoice_type?: string | null;
@@ -56089,6 +57524,8 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
56089
57524
  vat_code_export?: string | null;
56090
57525
  };
56091
57526
  Update: {
57527
+ auto_invoice_enabled?: boolean;
57528
+ auto_invoice_trigger_statuses?: string[];
56092
57529
  created_at?: string;
56093
57530
  debtor_gl_account?: string;
56094
57531
  default_credit_invoice_type?: string | null;
@@ -57151,6 +58588,33 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
57151
58588
  referencedColumns: ["id"];
57152
58589
  }];
57153
58590
  };
58591
+ user_module_permissions: {
58592
+ Row: {
58593
+ created_at: string;
58594
+ id: string;
58595
+ module_id: string;
58596
+ permission: string;
58597
+ updated_at: string;
58598
+ user_id: string;
58599
+ };
58600
+ Insert: {
58601
+ created_at?: string;
58602
+ id?: string;
58603
+ module_id: string;
58604
+ permission: string;
58605
+ updated_at?: string;
58606
+ user_id: string;
58607
+ };
58608
+ Update: {
58609
+ created_at?: string;
58610
+ id?: string;
58611
+ module_id?: string;
58612
+ permission?: string;
58613
+ updated_at?: string;
58614
+ user_id?: string;
58615
+ };
58616
+ Relationships: [];
58617
+ };
57154
58618
  user_roles: {
57155
58619
  Row: {
57156
58620
  created_at: string;
@@ -58984,6 +60448,10 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
58984
60448
  processed_items: number;
58985
60449
  }[];
58986
60450
  };
60451
+ backfill_order_auto_invoice_queue: {
60452
+ Args: never;
60453
+ Returns: number;
60454
+ };
58987
60455
  calculate_layer_stock: {
58988
60456
  Args: {
58989
60457
  p_product_id: string;
@@ -59018,6 +60486,77 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
59018
60486
  };
59019
60487
  Returns: import("../integrations/supabase/types").Json;
59020
60488
  };
60489
+ claim_cloud_print_jobs: {
60490
+ Args: {
60491
+ _max?: number;
60492
+ };
60493
+ Returns: {
60494
+ agent_id: string | null;
60495
+ bron_job_id: string | null;
60496
+ created_at: string;
60497
+ documentnaam: string;
60498
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
60499
+ extern_job_id: string | null;
60500
+ foutmelding: string | null;
60501
+ gebruiker_id: string | null;
60502
+ gebruiker_naam: string;
60503
+ gestart_op: string | null;
60504
+ id: string;
60505
+ idempotentie_sleutel: string | null;
60506
+ is_herprint: boolean;
60507
+ kopieen: number;
60508
+ layout_id: string | null;
60509
+ opgepakt_op: string | null;
60510
+ paginas: number;
60511
+ payload: import("../integrations/supabase/types").Json;
60512
+ pdf_base64: string | null;
60513
+ pdf_url: string | null;
60514
+ pogingen: number;
60515
+ printer_id: string | null;
60516
+ render_html: string | null;
60517
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
60518
+ updated_at: string;
60519
+ volgende_poging: string | null;
60520
+ voltooid_op: string | null;
60521
+ }[];
60522
+ SetofOptions: {
60523
+ from: "*";
60524
+ to: "print_jobs";
60525
+ isOneToOne: false;
60526
+ isSetofReturn: true;
60527
+ };
60528
+ };
60529
+ claim_floriday_stock_queue: {
60530
+ Args: {
60531
+ p_limit?: number;
60532
+ p_worker?: string;
60533
+ };
60534
+ Returns: {
60535
+ attempts: number;
60536
+ connection_id: string;
60537
+ created_at: string;
60538
+ desired_available: boolean | null;
60539
+ gateway_attempt_id: string | null;
60540
+ id: string;
60541
+ last_error: string | null;
60542
+ locked_at: string | null;
60543
+ locked_by: string | null;
60544
+ next_attempt_at: string;
60545
+ number_of_pieces: number;
60546
+ sent_at: string | null;
60547
+ status: string;
60548
+ superseded_by: string | null;
60549
+ trade_item_id: string;
60550
+ updated_at: string;
60551
+ user_id: string;
60552
+ }[];
60553
+ SetofOptions: {
60554
+ from: "*";
60555
+ to: "floriday_continuous_stock_queue";
60556
+ isOneToOne: false;
60557
+ isSetofReturn: true;
60558
+ };
60559
+ };
59021
60560
  claim_logistics_tasks: {
59022
60561
  Args: {
59023
60562
  _limit?: number;
@@ -59077,22 +60616,27 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
59077
60616
  created_at: string;
59078
60617
  documentnaam: string;
59079
60618
  documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
60619
+ extern_job_id: string | null;
59080
60620
  foutmelding: string | null;
59081
60621
  gebruiker_id: string | null;
59082
60622
  gebruiker_naam: string;
59083
60623
  gestart_op: string | null;
59084
60624
  id: string;
60625
+ idempotentie_sleutel: string | null;
59085
60626
  is_herprint: boolean;
59086
60627
  kopieen: number;
59087
60628
  layout_id: string | null;
59088
60629
  opgepakt_op: string | null;
59089
60630
  paginas: number;
59090
60631
  payload: import("../integrations/supabase/types").Json;
60632
+ pdf_base64: string | null;
60633
+ pdf_url: string | null;
59091
60634
  pogingen: number;
59092
60635
  printer_id: string | null;
59093
60636
  render_html: string | null;
59094
60637
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
59095
60638
  updated_at: string;
60639
+ volgende_poging: string | null;
59096
60640
  voltooid_op: string | null;
59097
60641
  }[];
59098
60642
  SetofOptions: {
@@ -59130,10 +60674,28 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
59130
60674
  isSetofReturn: true;
59131
60675
  };
59132
60676
  };
60677
+ cleanup_floriday_stock_queue: {
60678
+ Args: never;
60679
+ Returns: undefined;
60680
+ };
59133
60681
  cleanup_old_bookings: {
59134
60682
  Args: never;
59135
60683
  Returns: undefined;
59136
60684
  };
60685
+ cleanup_voorraad_module_history: {
60686
+ Args: never;
60687
+ Returns: undefined;
60688
+ };
60689
+ complete_floriday_stock_queue: {
60690
+ Args: {
60691
+ p_attempt_id?: string;
60692
+ p_error?: string;
60693
+ p_id: string;
60694
+ p_ok: boolean;
60695
+ p_permanent?: boolean;
60696
+ };
60697
+ Returns: undefined;
60698
+ };
59137
60699
  consume_bom_for_production: {
59138
60700
  Args: {
59139
60701
  p_connection_id: string;
@@ -59245,6 +60807,13 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
59245
60807
  };
59246
60808
  Returns: import("../integrations/supabase/types").Json;
59247
60809
  };
60810
+ effective_module_permission: {
60811
+ Args: {
60812
+ _module_id: string;
60813
+ _user_id: string;
60814
+ };
60815
+ Returns: string;
60816
+ };
59248
60817
  email_auth_decrypt: {
59249
60818
  Args: {
59250
60819
  cipher: string;
@@ -60048,6 +61617,51 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
60048
61617
  isSetofReturn: false;
60049
61618
  };
60050
61619
  };
61620
+ logistics_floriday_claim_pushes: {
61621
+ Args: {
61622
+ _lease_seconds?: number;
61623
+ _limit?: number;
61624
+ _worker?: string;
61625
+ };
61626
+ Returns: {
61627
+ attempts: number;
61628
+ fulfillment_order_id: string;
61629
+ id: string;
61630
+ last_sent_hash: string;
61631
+ order_ref: string;
61632
+ payload: import("../integrations/supabase/types").Json;
61633
+ payload_hash: string;
61634
+ revision: number;
61635
+ }[];
61636
+ };
61637
+ logistics_floriday_finish_push: {
61638
+ Args: {
61639
+ _error?: string;
61640
+ _fulfillment_order_id?: string;
61641
+ _id: string;
61642
+ _max_age_hours?: number;
61643
+ _max_attempts?: number;
61644
+ _ok: boolean;
61645
+ _permanent?: boolean;
61646
+ _revision: number;
61647
+ _sent_hash?: string;
61648
+ };
61649
+ Returns: string;
61650
+ };
61651
+ logistics_floriday_prune_pushes: {
61652
+ Args: {
61653
+ _days?: number;
61654
+ };
61655
+ Returns: number;
61656
+ };
61657
+ logistics_floriday_queue_push: {
61658
+ Args: {
61659
+ _order_ref: string;
61660
+ _payload?: import("../integrations/supabase/types").Json;
61661
+ _payload_hash?: string;
61662
+ };
61663
+ Returns: string;
61664
+ };
60051
61665
  logistics_live_carriers: {
60052
61666
  Args: {
60053
61667
  p_order_ref: string;
@@ -60338,6 +61952,13 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
60338
61952
  };
60339
61953
  Returns: undefined;
60340
61954
  };
61955
+ my_module_permissions: {
61956
+ Args: never;
61957
+ Returns: {
61958
+ module_id: string;
61959
+ permission: string;
61960
+ }[];
61961
+ };
60341
61962
  next_manufacture_partij: {
60342
61963
  Args: {
60343
61964
  _tenant_id: string;
@@ -60388,6 +62009,13 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
60388
62009
  };
60389
62010
  Returns: boolean;
60390
62011
  };
62012
+ opruim_print_historie: {
62013
+ Args: never;
62014
+ Returns: {
62015
+ ontdaan: number;
62016
+ verwijderd: number;
62017
+ }[];
62018
+ };
60391
62019
  order_number_prefix: {
60392
62020
  Args: {
60393
62021
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -60395,6 +62023,15 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
60395
62023
  };
60396
62024
  Returns: string;
60397
62025
  };
62026
+ pick_active_printers: {
62027
+ Args: never;
62028
+ Returns: {
62029
+ id: string;
62030
+ locatie: string;
62031
+ naam: string;
62032
+ online: boolean;
62033
+ }[];
62034
+ };
60398
62035
  pick_claim_document: {
60399
62036
  Args: {
60400
62037
  _queue_item_id: string;
@@ -60581,6 +62218,52 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
60581
62218
  };
60582
62219
  Returns: undefined;
60583
62220
  };
62221
+ pick_reset_print: {
62222
+ Args: {
62223
+ _queue_item_id: string;
62224
+ _session_id: string;
62225
+ };
62226
+ Returns: {
62227
+ announced_at: string;
62228
+ assigned_user_id: string | null;
62229
+ barcode: string | null;
62230
+ cancelled_at: string | null;
62231
+ cart_count: number;
62232
+ completed_at: string | null;
62233
+ country_code: string | null;
62234
+ created_at: string;
62235
+ customer_name: string | null;
62236
+ delivery_address: string | null;
62237
+ document_number: string | null;
62238
+ document_type_id: string | null;
62239
+ due_at: string | null;
62240
+ id: string;
62241
+ is_urgent: boolean;
62242
+ line_count: number;
62243
+ order_number: string | null;
62244
+ order_type: string | null;
62245
+ payload: import("../integrations/supabase/types").Json;
62246
+ print_count: number;
62247
+ print_job_id: string | null;
62248
+ printed_at: string | null;
62249
+ printed_by: string | null;
62250
+ printer_id: string | null;
62251
+ priority: number;
62252
+ reference: string | null;
62253
+ route: string | null;
62254
+ screen_id: string | null;
62255
+ station_id: string | null;
62256
+ status_id: string | null;
62257
+ updated_at: string;
62258
+ warnings: import("../integrations/supabase/types").Json;
62259
+ };
62260
+ SetofOptions: {
62261
+ from: "*";
62262
+ to: "pick_queue";
62263
+ isOneToOne: true;
62264
+ isSetofReturn: false;
62265
+ };
62266
+ };
60584
62267
  pick_station_dashboard: {
60585
62268
  Args: never;
60586
62269
  Returns: {
@@ -60727,6 +62410,12 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
60727
62410
  };
60728
62411
  Returns: undefined;
60729
62412
  };
62413
+ reset_stalled_floriday_stock_queue: {
62414
+ Args: {
62415
+ p_include_failed?: boolean;
62416
+ };
62417
+ Returns: number;
62418
+ };
60730
62419
  resolve_group_allocation: {
60731
62420
  Args: {
60732
62421
  _needed: number;
@@ -60771,14 +62460,28 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
60771
62460
  };
60772
62461
  Returns: import("../integrations/supabase/types").Json;
60773
62462
  };
62463
+ ruim_print_jobs_op: {
62464
+ Args: {
62465
+ _bewaar_dagen?: number;
62466
+ };
62467
+ Returns: number;
62468
+ };
60774
62469
  run_floriday_continuous_stock_sync: {
60775
62470
  Args: never;
60776
62471
  Returns: undefined;
60777
62472
  };
62473
+ run_floriday_stock_queue_process: {
62474
+ Args: never;
62475
+ Returns: undefined;
62476
+ };
60778
62477
  run_logistics_tasks_dispatch: {
60779
62478
  Args: never;
60780
62479
  Returns: undefined;
60781
62480
  };
62481
+ run_print_queue_ticks: {
62482
+ Args: never;
62483
+ Returns: number;
62484
+ };
60782
62485
  run_twinfield_queue_tick: {
60783
62486
  Args: never;
60784
62487
  Returns: undefined;
@@ -61019,6 +62722,13 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
61019
62722
  };
61020
62723
  Returns: number;
61021
62724
  };
62725
+ schedule_floriday_stock_queue_process: {
62726
+ Args: {
62727
+ p_apikey: string;
62728
+ p_url: string;
62729
+ };
62730
+ Returns: number;
62731
+ };
61022
62732
  schedule_floriday_token_refresh: {
61023
62733
  Args: {
61024
62734
  p_apikey: string;
@@ -61159,6 +62869,15 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
61159
62869
  };
61160
62870
  Returns: undefined;
61161
62871
  };
62872
+ trade_item_stock_duplicates: {
62873
+ Args: never;
62874
+ Returns: {
62875
+ keys: string[];
62876
+ product_id: string;
62877
+ product_name: string;
62878
+ row_count: number;
62879
+ }[];
62880
+ };
61162
62881
  try_debtor_lock: {
61163
62882
  Args: {
61164
62883
  _group_key: string;
@@ -61208,7 +62927,7 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
61208
62927
  };
61209
62928
  Enums: {
61210
62929
  ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
61211
- app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin";
62930
+ app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
61212
62931
  doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
61213
62932
  doc_orientation: "portrait" | "landscape";
61214
62933
  exact_env: "staging" | "live";