@flowselections/floriday-verkoop-module 1.0.40 → 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
@@ -1698,7 +1698,7 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
1698
1698
  city: string | null;
1699
1699
  country: string | null;
1700
1700
  created_at: string;
1701
- customer_id: string | null;
1701
+ customer_id: string;
1702
1702
  external_key: string | null;
1703
1703
  external_provider: string | null;
1704
1704
  floriday_location_id: string | null;
@@ -1722,7 +1722,7 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
1722
1722
  city?: string | null;
1723
1723
  country?: string | null;
1724
1724
  created_at?: string;
1725
- customer_id?: string | null;
1725
+ customer_id: string;
1726
1726
  external_key?: string | null;
1727
1727
  external_provider?: string | null;
1728
1728
  floriday_location_id?: string | null;
@@ -1746,7 +1746,7 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
1746
1746
  city?: string | null;
1747
1747
  country?: string | null;
1748
1748
  created_at?: string;
1749
- customer_id?: string | null;
1749
+ customer_id?: string;
1750
1750
  external_key?: string | null;
1751
1751
  external_provider?: string | null;
1752
1752
  floriday_location_id?: string | null;
@@ -5709,12 +5709,17 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
5709
5709
  attempts: number;
5710
5710
  connection_id: string;
5711
5711
  created_at: string;
5712
+ desired_available: boolean | null;
5712
5713
  gateway_attempt_id: string | null;
5713
5714
  id: string;
5714
5715
  last_error: string | null;
5716
+ locked_at: string | null;
5717
+ locked_by: string | null;
5718
+ next_attempt_at: string;
5715
5719
  number_of_pieces: number;
5716
5720
  sent_at: string | null;
5717
5721
  status: string;
5722
+ superseded_by: string | null;
5718
5723
  trade_item_id: string;
5719
5724
  updated_at: string;
5720
5725
  user_id: string;
@@ -5723,12 +5728,17 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
5723
5728
  attempts?: number;
5724
5729
  connection_id: string;
5725
5730
  created_at?: string;
5731
+ desired_available?: boolean | null;
5726
5732
  gateway_attempt_id?: string | null;
5727
5733
  id?: string;
5728
5734
  last_error?: string | null;
5735
+ locked_at?: string | null;
5736
+ locked_by?: string | null;
5737
+ next_attempt_at?: string;
5729
5738
  number_of_pieces?: number;
5730
5739
  sent_at?: string | null;
5731
5740
  status?: string;
5741
+ superseded_by?: string | null;
5732
5742
  trade_item_id: string;
5733
5743
  updated_at?: string;
5734
5744
  user_id: string;
@@ -5737,12 +5747,17 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
5737
5747
  attempts?: number;
5738
5748
  connection_id?: string;
5739
5749
  created_at?: string;
5750
+ desired_available?: boolean | null;
5740
5751
  gateway_attempt_id?: string | null;
5741
5752
  id?: string;
5742
5753
  last_error?: string | null;
5754
+ locked_at?: string | null;
5755
+ locked_by?: string | null;
5756
+ next_attempt_at?: string;
5743
5757
  number_of_pieces?: number;
5744
5758
  sent_at?: string | null;
5745
5759
  status?: string;
5760
+ superseded_by?: string | null;
5746
5761
  trade_item_id?: string;
5747
5762
  updated_at?: string;
5748
5763
  user_id?: string;
@@ -6479,6 +6494,7 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
6479
6494
  Row: {
6480
6495
  buyer_organization_id: string | null;
6481
6496
  connection_id: string;
6497
+ controlled_at: string | null;
6482
6498
  created_at: string;
6483
6499
  data: import("../integrations/supabase/types").Json;
6484
6500
  floriday_id: string;
@@ -6490,6 +6506,7 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
6490
6506
  Insert: {
6491
6507
  buyer_organization_id?: string | null;
6492
6508
  connection_id: string;
6509
+ controlled_at?: string | null;
6493
6510
  created_at?: string;
6494
6511
  data: import("../integrations/supabase/types").Json;
6495
6512
  floriday_id: string;
@@ -6501,6 +6518,7 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
6501
6518
  Update: {
6502
6519
  buyer_organization_id?: string | null;
6503
6520
  connection_id?: string;
6521
+ controlled_at?: string | null;
6504
6522
  created_at?: string;
6505
6523
  data?: import("../integrations/supabase/types").Json;
6506
6524
  floriday_id?: string;
@@ -7402,6 +7420,54 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
7402
7420
  };
7403
7421
  Relationships: [];
7404
7422
  };
7423
+ invoice_timing_settings: {
7424
+ Row: {
7425
+ anchor: string;
7426
+ business_days_only: boolean;
7427
+ created_at: string;
7428
+ enabled: boolean;
7429
+ id: string;
7430
+ offset_days: number;
7431
+ pickup_anchor: string;
7432
+ pickup_business_days_only: boolean;
7433
+ pickup_offset_days: number;
7434
+ pickup_time_of_day: string;
7435
+ singleton: boolean;
7436
+ time_of_day: string;
7437
+ updated_at: string;
7438
+ };
7439
+ Insert: {
7440
+ anchor?: string;
7441
+ business_days_only?: boolean;
7442
+ created_at?: string;
7443
+ enabled?: boolean;
7444
+ id?: string;
7445
+ offset_days?: number;
7446
+ pickup_anchor?: string;
7447
+ pickup_business_days_only?: boolean;
7448
+ pickup_offset_days?: number;
7449
+ pickup_time_of_day?: string;
7450
+ singleton?: boolean;
7451
+ time_of_day?: string;
7452
+ updated_at?: string;
7453
+ };
7454
+ Update: {
7455
+ anchor?: string;
7456
+ business_days_only?: boolean;
7457
+ created_at?: string;
7458
+ enabled?: boolean;
7459
+ id?: string;
7460
+ offset_days?: number;
7461
+ pickup_anchor?: string;
7462
+ pickup_business_days_only?: boolean;
7463
+ pickup_offset_days?: number;
7464
+ pickup_time_of_day?: string;
7465
+ singleton?: boolean;
7466
+ time_of_day?: string;
7467
+ updated_at?: string;
7468
+ };
7469
+ Relationships: [];
7470
+ };
7405
7471
  itk_contact_persons: {
7406
7472
  Row: {
7407
7473
  created_at: string;
@@ -8491,6 +8557,69 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
8491
8557
  };
8492
8558
  Relationships: [];
8493
8559
  };
8560
+ logistics_floriday_pushes: {
8561
+ Row: {
8562
+ attempts: number;
8563
+ created_at: string;
8564
+ first_queued_at: string;
8565
+ fulfillment_order_id: string | null;
8566
+ id: string;
8567
+ last_error: string | null;
8568
+ last_error_at: string | null;
8569
+ last_sent_hash: string | null;
8570
+ locked_by: string | null;
8571
+ locked_until: string | null;
8572
+ next_attempt_at: string;
8573
+ order_ref: string;
8574
+ payload: import("../integrations/supabase/types").Json;
8575
+ payload_hash: string | null;
8576
+ revision: number;
8577
+ sent_at: string | null;
8578
+ status: string;
8579
+ updated_at: string;
8580
+ };
8581
+ Insert: {
8582
+ attempts?: number;
8583
+ created_at?: string;
8584
+ first_queued_at?: string;
8585
+ fulfillment_order_id?: string | null;
8586
+ id?: string;
8587
+ last_error?: string | null;
8588
+ last_error_at?: string | null;
8589
+ last_sent_hash?: string | null;
8590
+ locked_by?: string | null;
8591
+ locked_until?: string | null;
8592
+ next_attempt_at?: string;
8593
+ order_ref: string;
8594
+ payload?: import("../integrations/supabase/types").Json;
8595
+ payload_hash?: string | null;
8596
+ revision?: number;
8597
+ sent_at?: string | null;
8598
+ status?: string;
8599
+ updated_at?: string;
8600
+ };
8601
+ Update: {
8602
+ attempts?: number;
8603
+ created_at?: string;
8604
+ first_queued_at?: string;
8605
+ fulfillment_order_id?: string | null;
8606
+ id?: string;
8607
+ last_error?: string | null;
8608
+ last_error_at?: string | null;
8609
+ last_sent_hash?: string | null;
8610
+ locked_by?: string | null;
8611
+ locked_until?: string | null;
8612
+ next_attempt_at?: string;
8613
+ order_ref?: string;
8614
+ payload?: import("../integrations/supabase/types").Json;
8615
+ payload_hash?: string | null;
8616
+ revision?: number;
8617
+ sent_at?: string | null;
8618
+ status?: string;
8619
+ updated_at?: string;
8620
+ };
8621
+ Relationships: [];
8622
+ };
8494
8623
  logistics_formulas: {
8495
8624
  Row: {
8496
8625
  created_at: string;
@@ -9354,14 +9483,17 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
9354
9483
  };
9355
9484
  mailbox_messages: {
9356
9485
  Row: {
9486
+ attachments: import("../integrations/supabase/types").Json;
9357
9487
  body_html: string | null;
9358
9488
  body_text: string | null;
9489
+ cc_recipients: import("../integrations/supabase/types").Json;
9359
9490
  connection_id: string | null;
9360
9491
  created_at: string;
9361
9492
  error_message: string | null;
9362
9493
  external_id: string | null;
9363
9494
  from_email: string | null;
9364
9495
  from_name: string | null;
9496
+ has_attachments: boolean;
9365
9497
  id: string;
9366
9498
  message_id: string | null;
9367
9499
  profile_id: string | null;
@@ -9369,18 +9501,22 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
9369
9501
  received_at: string | null;
9370
9502
  status: string;
9371
9503
  subject: string | null;
9504
+ to_recipients: import("../integrations/supabase/types").Json;
9372
9505
  uid: number | null;
9373
9506
  updated_at: string;
9374
9507
  };
9375
9508
  Insert: {
9509
+ attachments?: import("../integrations/supabase/types").Json;
9376
9510
  body_html?: string | null;
9377
9511
  body_text?: string | null;
9512
+ cc_recipients?: import("../integrations/supabase/types").Json;
9378
9513
  connection_id?: string | null;
9379
9514
  created_at?: string;
9380
9515
  error_message?: string | null;
9381
9516
  external_id?: string | null;
9382
9517
  from_email?: string | null;
9383
9518
  from_name?: string | null;
9519
+ has_attachments?: boolean;
9384
9520
  id?: string;
9385
9521
  message_id?: string | null;
9386
9522
  profile_id?: string | null;
@@ -9388,18 +9524,22 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
9388
9524
  received_at?: string | null;
9389
9525
  status?: string;
9390
9526
  subject?: string | null;
9527
+ to_recipients?: import("../integrations/supabase/types").Json;
9391
9528
  uid?: number | null;
9392
9529
  updated_at?: string;
9393
9530
  };
9394
9531
  Update: {
9532
+ attachments?: import("../integrations/supabase/types").Json;
9395
9533
  body_html?: string | null;
9396
9534
  body_text?: string | null;
9535
+ cc_recipients?: import("../integrations/supabase/types").Json;
9397
9536
  connection_id?: string | null;
9398
9537
  created_at?: string;
9399
9538
  error_message?: string | null;
9400
9539
  external_id?: string | null;
9401
9540
  from_email?: string | null;
9402
9541
  from_name?: string | null;
9542
+ has_attachments?: boolean;
9403
9543
  id?: string;
9404
9544
  message_id?: string | null;
9405
9545
  profile_id?: string | null;
@@ -9407,6 +9547,7 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
9407
9547
  received_at?: string | null;
9408
9548
  status?: string;
9409
9549
  subject?: string | null;
9550
+ to_recipients?: import("../integrations/supabase/types").Json;
9410
9551
  uid?: number | null;
9411
9552
  updated_at?: string;
9412
9553
  };
@@ -9814,6 +9955,36 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
9814
9955
  };
9815
9956
  Relationships: [];
9816
9957
  };
9958
+ module_registry: {
9959
+ Row: {
9960
+ created_at: string;
9961
+ is_active: boolean;
9962
+ last_seen_at: string;
9963
+ module_id: string;
9964
+ name: string;
9965
+ shell_id: string | null;
9966
+ sort_order: number | null;
9967
+ };
9968
+ Insert: {
9969
+ created_at?: string;
9970
+ is_active?: boolean;
9971
+ last_seen_at?: string;
9972
+ module_id: string;
9973
+ name: string;
9974
+ shell_id?: string | null;
9975
+ sort_order?: number | null;
9976
+ };
9977
+ Update: {
9978
+ created_at?: string;
9979
+ is_active?: boolean;
9980
+ last_seen_at?: string;
9981
+ module_id?: string;
9982
+ name?: string;
9983
+ shell_id?: string | null;
9984
+ sort_order?: number | null;
9985
+ };
9986
+ Relationships: [];
9987
+ };
9817
9988
  module_runtime_config: {
9818
9989
  Row: {
9819
9990
  key: string;
@@ -10873,6 +11044,42 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
10873
11044
  };
10874
11045
  Relationships: [];
10875
11046
  };
11047
+ order_invoice_links: {
11048
+ Row: {
11049
+ attempts: number;
11050
+ created_at: string;
11051
+ error_message: string | null;
11052
+ id: string;
11053
+ invoice_number: string | null;
11054
+ order_id: string;
11055
+ processed_at: string | null;
11056
+ status: string;
11057
+ updated_at: string;
11058
+ };
11059
+ Insert: {
11060
+ attempts?: number;
11061
+ created_at?: string;
11062
+ error_message?: string | null;
11063
+ id?: string;
11064
+ invoice_number?: string | null;
11065
+ order_id: string;
11066
+ processed_at?: string | null;
11067
+ status?: string;
11068
+ updated_at?: string;
11069
+ };
11070
+ Update: {
11071
+ attempts?: number;
11072
+ created_at?: string;
11073
+ error_message?: string | null;
11074
+ id?: string;
11075
+ invoice_number?: string | null;
11076
+ order_id?: string;
11077
+ processed_at?: string | null;
11078
+ status?: string;
11079
+ updated_at?: string;
11080
+ };
11081
+ Relationships: [];
11082
+ };
10876
11083
  order_items: {
10877
11084
  Row: {
10878
11085
  crates_per_layer: number | null;
@@ -11055,6 +11262,7 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
11055
11262
  delivery_date: string | null;
11056
11263
  floriday_sales_order_id: string | null;
11057
11264
  id: string;
11265
+ invoice_due_at: string | null;
11058
11266
  is_reservation: boolean;
11059
11267
  notes: string | null;
11060
11268
  order_date: string;
@@ -11076,6 +11284,7 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
11076
11284
  delivery_date?: string | null;
11077
11285
  floriday_sales_order_id?: string | null;
11078
11286
  id?: string;
11287
+ invoice_due_at?: string | null;
11079
11288
  is_reservation?: boolean;
11080
11289
  notes?: string | null;
11081
11290
  order_date?: string;
@@ -11097,6 +11306,7 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
11097
11306
  delivery_date?: string | null;
11098
11307
  floriday_sales_order_id?: string | null;
11099
11308
  id?: string;
11309
+ invoice_due_at?: string | null;
11100
11310
  is_reservation?: boolean;
11101
11311
  notes?: string | null;
11102
11312
  order_date?: string;
@@ -12293,22 +12503,27 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
12293
12503
  created_at: string;
12294
12504
  documentnaam: string;
12295
12505
  documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
12506
+ extern_job_id: string | null;
12296
12507
  foutmelding: string | null;
12297
12508
  gebruiker_id: string | null;
12298
12509
  gebruiker_naam: string;
12299
12510
  gestart_op: string | null;
12300
12511
  id: string;
12512
+ idempotentie_sleutel: string | null;
12301
12513
  is_herprint: boolean;
12302
12514
  kopieen: number;
12303
12515
  layout_id: string | null;
12304
12516
  opgepakt_op: string | null;
12305
12517
  paginas: number;
12306
12518
  payload: import("../integrations/supabase/types").Json;
12519
+ pdf_base64: string | null;
12520
+ pdf_url: string | null;
12307
12521
  pogingen: number;
12308
12522
  printer_id: string | null;
12309
12523
  render_html: string | null;
12310
12524
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
12311
12525
  updated_at: string;
12526
+ volgende_poging: string | null;
12312
12527
  voltooid_op: string | null;
12313
12528
  };
12314
12529
  Insert: {
@@ -12317,22 +12532,27 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
12317
12532
  created_at?: string;
12318
12533
  documentnaam?: string;
12319
12534
  documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
12535
+ extern_job_id?: string | null;
12320
12536
  foutmelding?: string | null;
12321
12537
  gebruiker_id?: string | null;
12322
12538
  gebruiker_naam?: string;
12323
12539
  gestart_op?: string | null;
12324
12540
  id?: string;
12541
+ idempotentie_sleutel?: string | null;
12325
12542
  is_herprint?: boolean;
12326
12543
  kopieen?: number;
12327
12544
  layout_id?: string | null;
12328
12545
  opgepakt_op?: string | null;
12329
12546
  paginas?: number;
12330
12547
  payload?: import("../integrations/supabase/types").Json;
12548
+ pdf_base64?: string | null;
12549
+ pdf_url?: string | null;
12331
12550
  pogingen?: number;
12332
12551
  printer_id?: string | null;
12333
12552
  render_html?: string | null;
12334
12553
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
12335
12554
  updated_at?: string;
12555
+ volgende_poging?: string | null;
12336
12556
  voltooid_op?: string | null;
12337
12557
  };
12338
12558
  Update: {
@@ -12341,22 +12561,27 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
12341
12561
  created_at?: string;
12342
12562
  documentnaam?: string;
12343
12563
  documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
12564
+ extern_job_id?: string | null;
12344
12565
  foutmelding?: string | null;
12345
12566
  gebruiker_id?: string | null;
12346
12567
  gebruiker_naam?: string;
12347
12568
  gestart_op?: string | null;
12348
12569
  id?: string;
12570
+ idempotentie_sleutel?: string | null;
12349
12571
  is_herprint?: boolean;
12350
12572
  kopieen?: number;
12351
12573
  layout_id?: string | null;
12352
12574
  opgepakt_op?: string | null;
12353
12575
  paginas?: number;
12354
12576
  payload?: import("../integrations/supabase/types").Json;
12577
+ pdf_base64?: string | null;
12578
+ pdf_url?: string | null;
12355
12579
  pogingen?: number;
12356
12580
  printer_id?: string | null;
12357
12581
  render_html?: string | null;
12358
12582
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
12359
12583
  updated_at?: string;
12584
+ volgende_poging?: string | null;
12360
12585
  voltooid_op?: string | null;
12361
12586
  };
12362
12587
  Relationships: [{
@@ -12379,6 +12604,63 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
12379
12604
  referencedColumns: ["id"];
12380
12605
  }];
12381
12606
  };
12607
+ print_queue_runners: {
12608
+ Row: {
12609
+ actief: boolean;
12610
+ basis_url: string;
12611
+ created_at: string;
12612
+ id: string;
12613
+ laatst_gezien: string;
12614
+ tick_sleutel: string;
12615
+ updated_at: string;
12616
+ };
12617
+ Insert: {
12618
+ actief?: boolean;
12619
+ basis_url: string;
12620
+ created_at?: string;
12621
+ id?: string;
12622
+ laatst_gezien?: string;
12623
+ tick_sleutel?: string;
12624
+ updated_at?: string;
12625
+ };
12626
+ Update: {
12627
+ actief?: boolean;
12628
+ basis_url?: string;
12629
+ created_at?: string;
12630
+ id?: string;
12631
+ laatst_gezien?: string;
12632
+ tick_sleutel?: string;
12633
+ updated_at?: string;
12634
+ };
12635
+ Relationships: [];
12636
+ };
12637
+ print_queue_settings: {
12638
+ Row: {
12639
+ bewaar_bestanden_dagen: number;
12640
+ bewaar_opdrachten_dagen: number;
12641
+ created_at: string;
12642
+ dubbel_venster_minuten: number;
12643
+ id: string;
12644
+ updated_at: string;
12645
+ };
12646
+ Insert: {
12647
+ bewaar_bestanden_dagen?: number;
12648
+ bewaar_opdrachten_dagen?: number;
12649
+ created_at?: string;
12650
+ dubbel_venster_minuten?: number;
12651
+ id?: string;
12652
+ updated_at?: string;
12653
+ };
12654
+ Update: {
12655
+ bewaar_bestanden_dagen?: number;
12656
+ bewaar_opdrachten_dagen?: number;
12657
+ created_at?: string;
12658
+ dubbel_venster_minuten?: number;
12659
+ id?: string;
12660
+ updated_at?: string;
12661
+ };
12662
+ Relationships: [];
12663
+ };
12382
12664
  print_rules: {
12383
12665
  Row: {
12384
12666
  actief: boolean;
@@ -12539,6 +12821,7 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
12539
12821
  agent_id: string | null;
12540
12822
  created_at: string;
12541
12823
  driver: string;
12824
+ extern_printer_id: string | null;
12542
12825
  id: string;
12543
12826
  ip_adres: string | null;
12544
12827
  laatst_gezien: string | null;
@@ -12560,6 +12843,7 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
12560
12843
  agent_id?: string | null;
12561
12844
  created_at?: string;
12562
12845
  driver?: string;
12846
+ extern_printer_id?: string | null;
12563
12847
  id?: string;
12564
12848
  ip_adres?: string | null;
12565
12849
  laatst_gezien?: string | null;
@@ -12581,6 +12865,7 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
12581
12865
  agent_id?: string | null;
12582
12866
  created_at?: string;
12583
12867
  driver?: string;
12868
+ extern_printer_id?: string | null;
12584
12869
  id?: string;
12585
12870
  ip_adres?: string | null;
12586
12871
  laatst_gezien?: string | null;
@@ -15216,6 +15501,8 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
15216
15501
  };
15217
15502
  twinfield_invoice_settings: {
15218
15503
  Row: {
15504
+ auto_invoice_enabled: boolean;
15505
+ auto_invoice_trigger_statuses: string[];
15219
15506
  created_at: string;
15220
15507
  debtor_gl_account: string;
15221
15508
  default_credit_invoice_type: string | null;
@@ -15236,6 +15523,8 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
15236
15523
  vat_code_export: string | null;
15237
15524
  };
15238
15525
  Insert: {
15526
+ auto_invoice_enabled?: boolean;
15527
+ auto_invoice_trigger_statuses?: string[];
15239
15528
  created_at?: string;
15240
15529
  debtor_gl_account?: string;
15241
15530
  default_credit_invoice_type?: string | null;
@@ -15256,6 +15545,8 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
15256
15545
  vat_code_export?: string | null;
15257
15546
  };
15258
15547
  Update: {
15548
+ auto_invoice_enabled?: boolean;
15549
+ auto_invoice_trigger_statuses?: string[];
15259
15550
  created_at?: string;
15260
15551
  debtor_gl_account?: string;
15261
15552
  default_credit_invoice_type?: string | null;
@@ -16318,6 +16609,33 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
16318
16609
  referencedColumns: ["id"];
16319
16610
  }];
16320
16611
  };
16612
+ user_module_permissions: {
16613
+ Row: {
16614
+ created_at: string;
16615
+ id: string;
16616
+ module_id: string;
16617
+ permission: string;
16618
+ updated_at: string;
16619
+ user_id: string;
16620
+ };
16621
+ Insert: {
16622
+ created_at?: string;
16623
+ id?: string;
16624
+ module_id: string;
16625
+ permission: string;
16626
+ updated_at?: string;
16627
+ user_id: string;
16628
+ };
16629
+ Update: {
16630
+ created_at?: string;
16631
+ id?: string;
16632
+ module_id?: string;
16633
+ permission?: string;
16634
+ updated_at?: string;
16635
+ user_id?: string;
16636
+ };
16637
+ Relationships: [];
16638
+ };
16321
16639
  user_roles: {
16322
16640
  Row: {
16323
16641
  created_at: string;
@@ -18151,6 +18469,10 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
18151
18469
  processed_items: number;
18152
18470
  }[];
18153
18471
  };
18472
+ backfill_order_auto_invoice_queue: {
18473
+ Args: never;
18474
+ Returns: number;
18475
+ };
18154
18476
  calculate_layer_stock: {
18155
18477
  Args: {
18156
18478
  p_product_id: string;
@@ -18185,6 +18507,77 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
18185
18507
  };
18186
18508
  Returns: import("../integrations/supabase/types").Json;
18187
18509
  };
18510
+ claim_cloud_print_jobs: {
18511
+ Args: {
18512
+ _max?: number;
18513
+ };
18514
+ Returns: {
18515
+ agent_id: string | null;
18516
+ bron_job_id: string | null;
18517
+ created_at: string;
18518
+ documentnaam: string;
18519
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
18520
+ extern_job_id: string | null;
18521
+ foutmelding: string | null;
18522
+ gebruiker_id: string | null;
18523
+ gebruiker_naam: string;
18524
+ gestart_op: string | null;
18525
+ id: string;
18526
+ idempotentie_sleutel: string | null;
18527
+ is_herprint: boolean;
18528
+ kopieen: number;
18529
+ layout_id: string | null;
18530
+ opgepakt_op: string | null;
18531
+ paginas: number;
18532
+ payload: import("../integrations/supabase/types").Json;
18533
+ pdf_base64: string | null;
18534
+ pdf_url: string | null;
18535
+ pogingen: number;
18536
+ printer_id: string | null;
18537
+ render_html: string | null;
18538
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
18539
+ updated_at: string;
18540
+ volgende_poging: string | null;
18541
+ voltooid_op: string | null;
18542
+ }[];
18543
+ SetofOptions: {
18544
+ from: "*";
18545
+ to: "print_jobs";
18546
+ isOneToOne: false;
18547
+ isSetofReturn: true;
18548
+ };
18549
+ };
18550
+ claim_floriday_stock_queue: {
18551
+ Args: {
18552
+ p_limit?: number;
18553
+ p_worker?: string;
18554
+ };
18555
+ Returns: {
18556
+ attempts: number;
18557
+ connection_id: string;
18558
+ created_at: string;
18559
+ desired_available: boolean | null;
18560
+ gateway_attempt_id: string | null;
18561
+ id: string;
18562
+ last_error: string | null;
18563
+ locked_at: string | null;
18564
+ locked_by: string | null;
18565
+ next_attempt_at: string;
18566
+ number_of_pieces: number;
18567
+ sent_at: string | null;
18568
+ status: string;
18569
+ superseded_by: string | null;
18570
+ trade_item_id: string;
18571
+ updated_at: string;
18572
+ user_id: string;
18573
+ }[];
18574
+ SetofOptions: {
18575
+ from: "*";
18576
+ to: "floriday_continuous_stock_queue";
18577
+ isOneToOne: false;
18578
+ isSetofReturn: true;
18579
+ };
18580
+ };
18188
18581
  claim_logistics_tasks: {
18189
18582
  Args: {
18190
18583
  _limit?: number;
@@ -18244,22 +18637,27 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
18244
18637
  created_at: string;
18245
18638
  documentnaam: string;
18246
18639
  documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
18640
+ extern_job_id: string | null;
18247
18641
  foutmelding: string | null;
18248
18642
  gebruiker_id: string | null;
18249
18643
  gebruiker_naam: string;
18250
18644
  gestart_op: string | null;
18251
18645
  id: string;
18646
+ idempotentie_sleutel: string | null;
18252
18647
  is_herprint: boolean;
18253
18648
  kopieen: number;
18254
18649
  layout_id: string | null;
18255
18650
  opgepakt_op: string | null;
18256
18651
  paginas: number;
18257
18652
  payload: import("../integrations/supabase/types").Json;
18653
+ pdf_base64: string | null;
18654
+ pdf_url: string | null;
18258
18655
  pogingen: number;
18259
18656
  printer_id: string | null;
18260
18657
  render_html: string | null;
18261
18658
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
18262
18659
  updated_at: string;
18660
+ volgende_poging: string | null;
18263
18661
  voltooid_op: string | null;
18264
18662
  }[];
18265
18663
  SetofOptions: {
@@ -18297,10 +18695,28 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
18297
18695
  isSetofReturn: true;
18298
18696
  };
18299
18697
  };
18698
+ cleanup_floriday_stock_queue: {
18699
+ Args: never;
18700
+ Returns: undefined;
18701
+ };
18300
18702
  cleanup_old_bookings: {
18301
18703
  Args: never;
18302
18704
  Returns: undefined;
18303
18705
  };
18706
+ cleanup_voorraad_module_history: {
18707
+ Args: never;
18708
+ Returns: undefined;
18709
+ };
18710
+ complete_floriday_stock_queue: {
18711
+ Args: {
18712
+ p_attempt_id?: string;
18713
+ p_error?: string;
18714
+ p_id: string;
18715
+ p_ok: boolean;
18716
+ p_permanent?: boolean;
18717
+ };
18718
+ Returns: undefined;
18719
+ };
18304
18720
  consume_bom_for_production: {
18305
18721
  Args: {
18306
18722
  p_connection_id: string;
@@ -18412,6 +18828,13 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
18412
18828
  };
18413
18829
  Returns: import("../integrations/supabase/types").Json;
18414
18830
  };
18831
+ effective_module_permission: {
18832
+ Args: {
18833
+ _module_id: string;
18834
+ _user_id: string;
18835
+ };
18836
+ Returns: string;
18837
+ };
18415
18838
  email_auth_decrypt: {
18416
18839
  Args: {
18417
18840
  cipher: string;
@@ -19215,6 +19638,51 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
19215
19638
  isSetofReturn: false;
19216
19639
  };
19217
19640
  };
19641
+ logistics_floriday_claim_pushes: {
19642
+ Args: {
19643
+ _lease_seconds?: number;
19644
+ _limit?: number;
19645
+ _worker?: string;
19646
+ };
19647
+ Returns: {
19648
+ attempts: number;
19649
+ fulfillment_order_id: string;
19650
+ id: string;
19651
+ last_sent_hash: string;
19652
+ order_ref: string;
19653
+ payload: import("../integrations/supabase/types").Json;
19654
+ payload_hash: string;
19655
+ revision: number;
19656
+ }[];
19657
+ };
19658
+ logistics_floriday_finish_push: {
19659
+ Args: {
19660
+ _error?: string;
19661
+ _fulfillment_order_id?: string;
19662
+ _id: string;
19663
+ _max_age_hours?: number;
19664
+ _max_attempts?: number;
19665
+ _ok: boolean;
19666
+ _permanent?: boolean;
19667
+ _revision: number;
19668
+ _sent_hash?: string;
19669
+ };
19670
+ Returns: string;
19671
+ };
19672
+ logistics_floriday_prune_pushes: {
19673
+ Args: {
19674
+ _days?: number;
19675
+ };
19676
+ Returns: number;
19677
+ };
19678
+ logistics_floriday_queue_push: {
19679
+ Args: {
19680
+ _order_ref: string;
19681
+ _payload?: import("../integrations/supabase/types").Json;
19682
+ _payload_hash?: string;
19683
+ };
19684
+ Returns: string;
19685
+ };
19218
19686
  logistics_live_carriers: {
19219
19687
  Args: {
19220
19688
  p_order_ref: string;
@@ -19505,6 +19973,13 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
19505
19973
  };
19506
19974
  Returns: undefined;
19507
19975
  };
19976
+ my_module_permissions: {
19977
+ Args: never;
19978
+ Returns: {
19979
+ module_id: string;
19980
+ permission: string;
19981
+ }[];
19982
+ };
19508
19983
  next_manufacture_partij: {
19509
19984
  Args: {
19510
19985
  _tenant_id: string;
@@ -19555,6 +20030,13 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
19555
20030
  };
19556
20031
  Returns: boolean;
19557
20032
  };
20033
+ opruim_print_historie: {
20034
+ Args: never;
20035
+ Returns: {
20036
+ ontdaan: number;
20037
+ verwijderd: number;
20038
+ }[];
20039
+ };
19558
20040
  order_number_prefix: {
19559
20041
  Args: {
19560
20042
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -19562,6 +20044,15 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
19562
20044
  };
19563
20045
  Returns: string;
19564
20046
  };
20047
+ pick_active_printers: {
20048
+ Args: never;
20049
+ Returns: {
20050
+ id: string;
20051
+ locatie: string;
20052
+ naam: string;
20053
+ online: boolean;
20054
+ }[];
20055
+ };
19565
20056
  pick_claim_document: {
19566
20057
  Args: {
19567
20058
  _queue_item_id: string;
@@ -19748,6 +20239,52 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
19748
20239
  };
19749
20240
  Returns: undefined;
19750
20241
  };
20242
+ pick_reset_print: {
20243
+ Args: {
20244
+ _queue_item_id: string;
20245
+ _session_id: string;
20246
+ };
20247
+ Returns: {
20248
+ announced_at: string;
20249
+ assigned_user_id: string | null;
20250
+ barcode: string | null;
20251
+ cancelled_at: string | null;
20252
+ cart_count: number;
20253
+ completed_at: string | null;
20254
+ country_code: string | null;
20255
+ created_at: string;
20256
+ customer_name: string | null;
20257
+ delivery_address: string | null;
20258
+ document_number: string | null;
20259
+ document_type_id: string | null;
20260
+ due_at: string | null;
20261
+ id: string;
20262
+ is_urgent: boolean;
20263
+ line_count: number;
20264
+ order_number: string | null;
20265
+ order_type: string | null;
20266
+ payload: import("../integrations/supabase/types").Json;
20267
+ print_count: number;
20268
+ print_job_id: string | null;
20269
+ printed_at: string | null;
20270
+ printed_by: string | null;
20271
+ printer_id: string | null;
20272
+ priority: number;
20273
+ reference: string | null;
20274
+ route: string | null;
20275
+ screen_id: string | null;
20276
+ station_id: string | null;
20277
+ status_id: string | null;
20278
+ updated_at: string;
20279
+ warnings: import("../integrations/supabase/types").Json;
20280
+ };
20281
+ SetofOptions: {
20282
+ from: "*";
20283
+ to: "pick_queue";
20284
+ isOneToOne: true;
20285
+ isSetofReturn: false;
20286
+ };
20287
+ };
19751
20288
  pick_station_dashboard: {
19752
20289
  Args: never;
19753
20290
  Returns: {
@@ -19894,6 +20431,12 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
19894
20431
  };
19895
20432
  Returns: undefined;
19896
20433
  };
20434
+ reset_stalled_floriday_stock_queue: {
20435
+ Args: {
20436
+ p_include_failed?: boolean;
20437
+ };
20438
+ Returns: number;
20439
+ };
19897
20440
  resolve_group_allocation: {
19898
20441
  Args: {
19899
20442
  _needed: number;
@@ -19938,14 +20481,28 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
19938
20481
  };
19939
20482
  Returns: import("../integrations/supabase/types").Json;
19940
20483
  };
20484
+ ruim_print_jobs_op: {
20485
+ Args: {
20486
+ _bewaar_dagen?: number;
20487
+ };
20488
+ Returns: number;
20489
+ };
19941
20490
  run_floriday_continuous_stock_sync: {
19942
20491
  Args: never;
19943
20492
  Returns: undefined;
19944
20493
  };
20494
+ run_floriday_stock_queue_process: {
20495
+ Args: never;
20496
+ Returns: undefined;
20497
+ };
19945
20498
  run_logistics_tasks_dispatch: {
19946
20499
  Args: never;
19947
20500
  Returns: undefined;
19948
20501
  };
20502
+ run_print_queue_ticks: {
20503
+ Args: never;
20504
+ Returns: number;
20505
+ };
19949
20506
  run_twinfield_queue_tick: {
19950
20507
  Args: never;
19951
20508
  Returns: undefined;
@@ -20186,6 +20743,13 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
20186
20743
  };
20187
20744
  Returns: number;
20188
20745
  };
20746
+ schedule_floriday_stock_queue_process: {
20747
+ Args: {
20748
+ p_apikey: string;
20749
+ p_url: string;
20750
+ };
20751
+ Returns: number;
20752
+ };
20189
20753
  schedule_floriday_token_refresh: {
20190
20754
  Args: {
20191
20755
  p_apikey: string;
@@ -20326,6 +20890,15 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
20326
20890
  };
20327
20891
  Returns: undefined;
20328
20892
  };
20893
+ trade_item_stock_duplicates: {
20894
+ Args: never;
20895
+ Returns: {
20896
+ keys: string[];
20897
+ product_id: string;
20898
+ product_name: string;
20899
+ row_count: number;
20900
+ }[];
20901
+ };
20329
20902
  try_debtor_lock: {
20330
20903
  Args: {
20331
20904
  _group_key: string;
@@ -20375,7 +20948,7 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
20375
20948
  };
20376
20949
  Enums: {
20377
20950
  ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
20378
- app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin";
20951
+ app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
20379
20952
  doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
20380
20953
  doc_orientation: "portrait" | "landscape";
20381
20954
  exact_env: "staging" | "live";
@@ -22084,7 +22657,7 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
22084
22657
  city: string | null;
22085
22658
  country: string | null;
22086
22659
  created_at: string;
22087
- customer_id: string | null;
22660
+ customer_id: string;
22088
22661
  external_key: string | null;
22089
22662
  external_provider: string | null;
22090
22663
  floriday_location_id: string | null;
@@ -22108,7 +22681,7 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
22108
22681
  city?: string | null;
22109
22682
  country?: string | null;
22110
22683
  created_at?: string;
22111
- customer_id?: string | null;
22684
+ customer_id: string;
22112
22685
  external_key?: string | null;
22113
22686
  external_provider?: string | null;
22114
22687
  floriday_location_id?: string | null;
@@ -22132,7 +22705,7 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
22132
22705
  city?: string | null;
22133
22706
  country?: string | null;
22134
22707
  created_at?: string;
22135
- customer_id?: string | null;
22708
+ customer_id?: string;
22136
22709
  external_key?: string | null;
22137
22710
  external_provider?: string | null;
22138
22711
  floriday_location_id?: string | null;
@@ -26095,12 +26668,17 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
26095
26668
  attempts: number;
26096
26669
  connection_id: string;
26097
26670
  created_at: string;
26671
+ desired_available: boolean | null;
26098
26672
  gateway_attempt_id: string | null;
26099
26673
  id: string;
26100
26674
  last_error: string | null;
26675
+ locked_at: string | null;
26676
+ locked_by: string | null;
26677
+ next_attempt_at: string;
26101
26678
  number_of_pieces: number;
26102
26679
  sent_at: string | null;
26103
26680
  status: string;
26681
+ superseded_by: string | null;
26104
26682
  trade_item_id: string;
26105
26683
  updated_at: string;
26106
26684
  user_id: string;
@@ -26109,12 +26687,17 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
26109
26687
  attempts?: number;
26110
26688
  connection_id: string;
26111
26689
  created_at?: string;
26690
+ desired_available?: boolean | null;
26112
26691
  gateway_attempt_id?: string | null;
26113
26692
  id?: string;
26114
26693
  last_error?: string | null;
26694
+ locked_at?: string | null;
26695
+ locked_by?: string | null;
26696
+ next_attempt_at?: string;
26115
26697
  number_of_pieces?: number;
26116
26698
  sent_at?: string | null;
26117
26699
  status?: string;
26700
+ superseded_by?: string | null;
26118
26701
  trade_item_id: string;
26119
26702
  updated_at?: string;
26120
26703
  user_id: string;
@@ -26123,12 +26706,17 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
26123
26706
  attempts?: number;
26124
26707
  connection_id?: string;
26125
26708
  created_at?: string;
26709
+ desired_available?: boolean | null;
26126
26710
  gateway_attempt_id?: string | null;
26127
26711
  id?: string;
26128
26712
  last_error?: string | null;
26713
+ locked_at?: string | null;
26714
+ locked_by?: string | null;
26715
+ next_attempt_at?: string;
26129
26716
  number_of_pieces?: number;
26130
26717
  sent_at?: string | null;
26131
26718
  status?: string;
26719
+ superseded_by?: string | null;
26132
26720
  trade_item_id?: string;
26133
26721
  updated_at?: string;
26134
26722
  user_id?: string;
@@ -26865,6 +27453,7 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
26865
27453
  Row: {
26866
27454
  buyer_organization_id: string | null;
26867
27455
  connection_id: string;
27456
+ controlled_at: string | null;
26868
27457
  created_at: string;
26869
27458
  data: import("../integrations/supabase/types").Json;
26870
27459
  floriday_id: string;
@@ -26876,6 +27465,7 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
26876
27465
  Insert: {
26877
27466
  buyer_organization_id?: string | null;
26878
27467
  connection_id: string;
27468
+ controlled_at?: string | null;
26879
27469
  created_at?: string;
26880
27470
  data: import("../integrations/supabase/types").Json;
26881
27471
  floriday_id: string;
@@ -26887,6 +27477,7 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
26887
27477
  Update: {
26888
27478
  buyer_organization_id?: string | null;
26889
27479
  connection_id?: string;
27480
+ controlled_at?: string | null;
26890
27481
  created_at?: string;
26891
27482
  data?: import("../integrations/supabase/types").Json;
26892
27483
  floriday_id?: string;
@@ -27788,6 +28379,54 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
27788
28379
  };
27789
28380
  Relationships: [];
27790
28381
  };
28382
+ invoice_timing_settings: {
28383
+ Row: {
28384
+ anchor: string;
28385
+ business_days_only: boolean;
28386
+ created_at: string;
28387
+ enabled: boolean;
28388
+ id: string;
28389
+ offset_days: number;
28390
+ pickup_anchor: string;
28391
+ pickup_business_days_only: boolean;
28392
+ pickup_offset_days: number;
28393
+ pickup_time_of_day: string;
28394
+ singleton: boolean;
28395
+ time_of_day: string;
28396
+ updated_at: string;
28397
+ };
28398
+ Insert: {
28399
+ anchor?: string;
28400
+ business_days_only?: boolean;
28401
+ created_at?: string;
28402
+ enabled?: boolean;
28403
+ id?: string;
28404
+ offset_days?: number;
28405
+ pickup_anchor?: string;
28406
+ pickup_business_days_only?: boolean;
28407
+ pickup_offset_days?: number;
28408
+ pickup_time_of_day?: string;
28409
+ singleton?: boolean;
28410
+ time_of_day?: string;
28411
+ updated_at?: string;
28412
+ };
28413
+ Update: {
28414
+ anchor?: string;
28415
+ business_days_only?: boolean;
28416
+ created_at?: string;
28417
+ enabled?: boolean;
28418
+ id?: string;
28419
+ offset_days?: number;
28420
+ pickup_anchor?: string;
28421
+ pickup_business_days_only?: boolean;
28422
+ pickup_offset_days?: number;
28423
+ pickup_time_of_day?: string;
28424
+ singleton?: boolean;
28425
+ time_of_day?: string;
28426
+ updated_at?: string;
28427
+ };
28428
+ Relationships: [];
28429
+ };
27791
28430
  itk_contact_persons: {
27792
28431
  Row: {
27793
28432
  created_at: string;
@@ -28877,6 +29516,69 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
28877
29516
  };
28878
29517
  Relationships: [];
28879
29518
  };
29519
+ logistics_floriday_pushes: {
29520
+ Row: {
29521
+ attempts: number;
29522
+ created_at: string;
29523
+ first_queued_at: string;
29524
+ fulfillment_order_id: string | null;
29525
+ id: string;
29526
+ last_error: string | null;
29527
+ last_error_at: string | null;
29528
+ last_sent_hash: string | null;
29529
+ locked_by: string | null;
29530
+ locked_until: string | null;
29531
+ next_attempt_at: string;
29532
+ order_ref: string;
29533
+ payload: import("../integrations/supabase/types").Json;
29534
+ payload_hash: string | null;
29535
+ revision: number;
29536
+ sent_at: string | null;
29537
+ status: string;
29538
+ updated_at: string;
29539
+ };
29540
+ Insert: {
29541
+ attempts?: number;
29542
+ created_at?: string;
29543
+ first_queued_at?: string;
29544
+ fulfillment_order_id?: string | null;
29545
+ id?: string;
29546
+ last_error?: string | null;
29547
+ last_error_at?: string | null;
29548
+ last_sent_hash?: string | null;
29549
+ locked_by?: string | null;
29550
+ locked_until?: string | null;
29551
+ next_attempt_at?: string;
29552
+ order_ref: string;
29553
+ payload?: import("../integrations/supabase/types").Json;
29554
+ payload_hash?: string | null;
29555
+ revision?: number;
29556
+ sent_at?: string | null;
29557
+ status?: string;
29558
+ updated_at?: string;
29559
+ };
29560
+ Update: {
29561
+ attempts?: number;
29562
+ created_at?: string;
29563
+ first_queued_at?: string;
29564
+ fulfillment_order_id?: string | null;
29565
+ id?: string;
29566
+ last_error?: string | null;
29567
+ last_error_at?: string | null;
29568
+ last_sent_hash?: string | null;
29569
+ locked_by?: string | null;
29570
+ locked_until?: string | null;
29571
+ next_attempt_at?: string;
29572
+ order_ref?: string;
29573
+ payload?: import("../integrations/supabase/types").Json;
29574
+ payload_hash?: string | null;
29575
+ revision?: number;
29576
+ sent_at?: string | null;
29577
+ status?: string;
29578
+ updated_at?: string;
29579
+ };
29580
+ Relationships: [];
29581
+ };
28880
29582
  logistics_formulas: {
28881
29583
  Row: {
28882
29584
  created_at: string;
@@ -29740,14 +30442,17 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
29740
30442
  };
29741
30443
  mailbox_messages: {
29742
30444
  Row: {
30445
+ attachments: import("../integrations/supabase/types").Json;
29743
30446
  body_html: string | null;
29744
30447
  body_text: string | null;
30448
+ cc_recipients: import("../integrations/supabase/types").Json;
29745
30449
  connection_id: string | null;
29746
30450
  created_at: string;
29747
30451
  error_message: string | null;
29748
30452
  external_id: string | null;
29749
30453
  from_email: string | null;
29750
30454
  from_name: string | null;
30455
+ has_attachments: boolean;
29751
30456
  id: string;
29752
30457
  message_id: string | null;
29753
30458
  profile_id: string | null;
@@ -29755,18 +30460,22 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
29755
30460
  received_at: string | null;
29756
30461
  status: string;
29757
30462
  subject: string | null;
30463
+ to_recipients: import("../integrations/supabase/types").Json;
29758
30464
  uid: number | null;
29759
30465
  updated_at: string;
29760
30466
  };
29761
30467
  Insert: {
30468
+ attachments?: import("../integrations/supabase/types").Json;
29762
30469
  body_html?: string | null;
29763
30470
  body_text?: string | null;
30471
+ cc_recipients?: import("../integrations/supabase/types").Json;
29764
30472
  connection_id?: string | null;
29765
30473
  created_at?: string;
29766
30474
  error_message?: string | null;
29767
30475
  external_id?: string | null;
29768
30476
  from_email?: string | null;
29769
30477
  from_name?: string | null;
30478
+ has_attachments?: boolean;
29770
30479
  id?: string;
29771
30480
  message_id?: string | null;
29772
30481
  profile_id?: string | null;
@@ -29774,18 +30483,22 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
29774
30483
  received_at?: string | null;
29775
30484
  status?: string;
29776
30485
  subject?: string | null;
30486
+ to_recipients?: import("../integrations/supabase/types").Json;
29777
30487
  uid?: number | null;
29778
30488
  updated_at?: string;
29779
30489
  };
29780
30490
  Update: {
30491
+ attachments?: import("../integrations/supabase/types").Json;
29781
30492
  body_html?: string | null;
29782
30493
  body_text?: string | null;
30494
+ cc_recipients?: import("../integrations/supabase/types").Json;
29783
30495
  connection_id?: string | null;
29784
30496
  created_at?: string;
29785
30497
  error_message?: string | null;
29786
30498
  external_id?: string | null;
29787
30499
  from_email?: string | null;
29788
30500
  from_name?: string | null;
30501
+ has_attachments?: boolean;
29789
30502
  id?: string;
29790
30503
  message_id?: string | null;
29791
30504
  profile_id?: string | null;
@@ -29793,6 +30506,7 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
29793
30506
  received_at?: string | null;
29794
30507
  status?: string;
29795
30508
  subject?: string | null;
30509
+ to_recipients?: import("../integrations/supabase/types").Json;
29796
30510
  uid?: number | null;
29797
30511
  updated_at?: string;
29798
30512
  };
@@ -30200,6 +30914,36 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
30200
30914
  };
30201
30915
  Relationships: [];
30202
30916
  };
30917
+ module_registry: {
30918
+ Row: {
30919
+ created_at: string;
30920
+ is_active: boolean;
30921
+ last_seen_at: string;
30922
+ module_id: string;
30923
+ name: string;
30924
+ shell_id: string | null;
30925
+ sort_order: number | null;
30926
+ };
30927
+ Insert: {
30928
+ created_at?: string;
30929
+ is_active?: boolean;
30930
+ last_seen_at?: string;
30931
+ module_id: string;
30932
+ name: string;
30933
+ shell_id?: string | null;
30934
+ sort_order?: number | null;
30935
+ };
30936
+ Update: {
30937
+ created_at?: string;
30938
+ is_active?: boolean;
30939
+ last_seen_at?: string;
30940
+ module_id?: string;
30941
+ name?: string;
30942
+ shell_id?: string | null;
30943
+ sort_order?: number | null;
30944
+ };
30945
+ Relationships: [];
30946
+ };
30203
30947
  module_runtime_config: {
30204
30948
  Row: {
30205
30949
  key: string;
@@ -31259,6 +32003,42 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
31259
32003
  };
31260
32004
  Relationships: [];
31261
32005
  };
32006
+ order_invoice_links: {
32007
+ Row: {
32008
+ attempts: number;
32009
+ created_at: string;
32010
+ error_message: string | null;
32011
+ id: string;
32012
+ invoice_number: string | null;
32013
+ order_id: string;
32014
+ processed_at: string | null;
32015
+ status: string;
32016
+ updated_at: string;
32017
+ };
32018
+ Insert: {
32019
+ attempts?: number;
32020
+ created_at?: string;
32021
+ error_message?: string | null;
32022
+ id?: string;
32023
+ invoice_number?: string | null;
32024
+ order_id: string;
32025
+ processed_at?: string | null;
32026
+ status?: string;
32027
+ updated_at?: string;
32028
+ };
32029
+ Update: {
32030
+ attempts?: number;
32031
+ created_at?: string;
32032
+ error_message?: string | null;
32033
+ id?: string;
32034
+ invoice_number?: string | null;
32035
+ order_id?: string;
32036
+ processed_at?: string | null;
32037
+ status?: string;
32038
+ updated_at?: string;
32039
+ };
32040
+ Relationships: [];
32041
+ };
31262
32042
  order_items: {
31263
32043
  Row: {
31264
32044
  crates_per_layer: number | null;
@@ -31441,6 +32221,7 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
31441
32221
  delivery_date: string | null;
31442
32222
  floriday_sales_order_id: string | null;
31443
32223
  id: string;
32224
+ invoice_due_at: string | null;
31444
32225
  is_reservation: boolean;
31445
32226
  notes: string | null;
31446
32227
  order_date: string;
@@ -31462,6 +32243,7 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
31462
32243
  delivery_date?: string | null;
31463
32244
  floriday_sales_order_id?: string | null;
31464
32245
  id?: string;
32246
+ invoice_due_at?: string | null;
31465
32247
  is_reservation?: boolean;
31466
32248
  notes?: string | null;
31467
32249
  order_date?: string;
@@ -31483,6 +32265,7 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
31483
32265
  delivery_date?: string | null;
31484
32266
  floriday_sales_order_id?: string | null;
31485
32267
  id?: string;
32268
+ invoice_due_at?: string | null;
31486
32269
  is_reservation?: boolean;
31487
32270
  notes?: string | null;
31488
32271
  order_date?: string;
@@ -32679,22 +33462,27 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
32679
33462
  created_at: string;
32680
33463
  documentnaam: string;
32681
33464
  documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
33465
+ extern_job_id: string | null;
32682
33466
  foutmelding: string | null;
32683
33467
  gebruiker_id: string | null;
32684
33468
  gebruiker_naam: string;
32685
33469
  gestart_op: string | null;
32686
33470
  id: string;
33471
+ idempotentie_sleutel: string | null;
32687
33472
  is_herprint: boolean;
32688
33473
  kopieen: number;
32689
33474
  layout_id: string | null;
32690
33475
  opgepakt_op: string | null;
32691
33476
  paginas: number;
32692
33477
  payload: import("../integrations/supabase/types").Json;
33478
+ pdf_base64: string | null;
33479
+ pdf_url: string | null;
32693
33480
  pogingen: number;
32694
33481
  printer_id: string | null;
32695
33482
  render_html: string | null;
32696
33483
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
32697
33484
  updated_at: string;
33485
+ volgende_poging: string | null;
32698
33486
  voltooid_op: string | null;
32699
33487
  };
32700
33488
  Insert: {
@@ -32703,22 +33491,27 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
32703
33491
  created_at?: string;
32704
33492
  documentnaam?: string;
32705
33493
  documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
33494
+ extern_job_id?: string | null;
32706
33495
  foutmelding?: string | null;
32707
33496
  gebruiker_id?: string | null;
32708
33497
  gebruiker_naam?: string;
32709
33498
  gestart_op?: string | null;
32710
33499
  id?: string;
33500
+ idempotentie_sleutel?: string | null;
32711
33501
  is_herprint?: boolean;
32712
33502
  kopieen?: number;
32713
33503
  layout_id?: string | null;
32714
33504
  opgepakt_op?: string | null;
32715
33505
  paginas?: number;
32716
33506
  payload?: import("../integrations/supabase/types").Json;
33507
+ pdf_base64?: string | null;
33508
+ pdf_url?: string | null;
32717
33509
  pogingen?: number;
32718
33510
  printer_id?: string | null;
32719
33511
  render_html?: string | null;
32720
33512
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
32721
33513
  updated_at?: string;
33514
+ volgende_poging?: string | null;
32722
33515
  voltooid_op?: string | null;
32723
33516
  };
32724
33517
  Update: {
@@ -32727,22 +33520,27 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
32727
33520
  created_at?: string;
32728
33521
  documentnaam?: string;
32729
33522
  documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
33523
+ extern_job_id?: string | null;
32730
33524
  foutmelding?: string | null;
32731
33525
  gebruiker_id?: string | null;
32732
33526
  gebruiker_naam?: string;
32733
33527
  gestart_op?: string | null;
32734
33528
  id?: string;
33529
+ idempotentie_sleutel?: string | null;
32735
33530
  is_herprint?: boolean;
32736
33531
  kopieen?: number;
32737
33532
  layout_id?: string | null;
32738
33533
  opgepakt_op?: string | null;
32739
33534
  paginas?: number;
32740
33535
  payload?: import("../integrations/supabase/types").Json;
33536
+ pdf_base64?: string | null;
33537
+ pdf_url?: string | null;
32741
33538
  pogingen?: number;
32742
33539
  printer_id?: string | null;
32743
33540
  render_html?: string | null;
32744
33541
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
32745
33542
  updated_at?: string;
33543
+ volgende_poging?: string | null;
32746
33544
  voltooid_op?: string | null;
32747
33545
  };
32748
33546
  Relationships: [{
@@ -32765,6 +33563,63 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
32765
33563
  referencedColumns: ["id"];
32766
33564
  }];
32767
33565
  };
33566
+ print_queue_runners: {
33567
+ Row: {
33568
+ actief: boolean;
33569
+ basis_url: string;
33570
+ created_at: string;
33571
+ id: string;
33572
+ laatst_gezien: string;
33573
+ tick_sleutel: string;
33574
+ updated_at: string;
33575
+ };
33576
+ Insert: {
33577
+ actief?: boolean;
33578
+ basis_url: string;
33579
+ created_at?: string;
33580
+ id?: string;
33581
+ laatst_gezien?: string;
33582
+ tick_sleutel?: string;
33583
+ updated_at?: string;
33584
+ };
33585
+ Update: {
33586
+ actief?: boolean;
33587
+ basis_url?: string;
33588
+ created_at?: string;
33589
+ id?: string;
33590
+ laatst_gezien?: string;
33591
+ tick_sleutel?: string;
33592
+ updated_at?: string;
33593
+ };
33594
+ Relationships: [];
33595
+ };
33596
+ print_queue_settings: {
33597
+ Row: {
33598
+ bewaar_bestanden_dagen: number;
33599
+ bewaar_opdrachten_dagen: number;
33600
+ created_at: string;
33601
+ dubbel_venster_minuten: number;
33602
+ id: string;
33603
+ updated_at: string;
33604
+ };
33605
+ Insert: {
33606
+ bewaar_bestanden_dagen?: number;
33607
+ bewaar_opdrachten_dagen?: number;
33608
+ created_at?: string;
33609
+ dubbel_venster_minuten?: number;
33610
+ id?: string;
33611
+ updated_at?: string;
33612
+ };
33613
+ Update: {
33614
+ bewaar_bestanden_dagen?: number;
33615
+ bewaar_opdrachten_dagen?: number;
33616
+ created_at?: string;
33617
+ dubbel_venster_minuten?: number;
33618
+ id?: string;
33619
+ updated_at?: string;
33620
+ };
33621
+ Relationships: [];
33622
+ };
32768
33623
  print_rules: {
32769
33624
  Row: {
32770
33625
  actief: boolean;
@@ -32925,6 +33780,7 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
32925
33780
  agent_id: string | null;
32926
33781
  created_at: string;
32927
33782
  driver: string;
33783
+ extern_printer_id: string | null;
32928
33784
  id: string;
32929
33785
  ip_adres: string | null;
32930
33786
  laatst_gezien: string | null;
@@ -32946,6 +33802,7 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
32946
33802
  agent_id?: string | null;
32947
33803
  created_at?: string;
32948
33804
  driver?: string;
33805
+ extern_printer_id?: string | null;
32949
33806
  id?: string;
32950
33807
  ip_adres?: string | null;
32951
33808
  laatst_gezien?: string | null;
@@ -32967,6 +33824,7 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
32967
33824
  agent_id?: string | null;
32968
33825
  created_at?: string;
32969
33826
  driver?: string;
33827
+ extern_printer_id?: string | null;
32970
33828
  id?: string;
32971
33829
  ip_adres?: string | null;
32972
33830
  laatst_gezien?: string | null;
@@ -35602,6 +36460,8 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
35602
36460
  };
35603
36461
  twinfield_invoice_settings: {
35604
36462
  Row: {
36463
+ auto_invoice_enabled: boolean;
36464
+ auto_invoice_trigger_statuses: string[];
35605
36465
  created_at: string;
35606
36466
  debtor_gl_account: string;
35607
36467
  default_credit_invoice_type: string | null;
@@ -35622,6 +36482,8 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
35622
36482
  vat_code_export: string | null;
35623
36483
  };
35624
36484
  Insert: {
36485
+ auto_invoice_enabled?: boolean;
36486
+ auto_invoice_trigger_statuses?: string[];
35625
36487
  created_at?: string;
35626
36488
  debtor_gl_account?: string;
35627
36489
  default_credit_invoice_type?: string | null;
@@ -35642,6 +36504,8 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
35642
36504
  vat_code_export?: string | null;
35643
36505
  };
35644
36506
  Update: {
36507
+ auto_invoice_enabled?: boolean;
36508
+ auto_invoice_trigger_statuses?: string[];
35645
36509
  created_at?: string;
35646
36510
  debtor_gl_account?: string;
35647
36511
  default_credit_invoice_type?: string | null;
@@ -36704,6 +37568,33 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
36704
37568
  referencedColumns: ["id"];
36705
37569
  }];
36706
37570
  };
37571
+ user_module_permissions: {
37572
+ Row: {
37573
+ created_at: string;
37574
+ id: string;
37575
+ module_id: string;
37576
+ permission: string;
37577
+ updated_at: string;
37578
+ user_id: string;
37579
+ };
37580
+ Insert: {
37581
+ created_at?: string;
37582
+ id?: string;
37583
+ module_id: string;
37584
+ permission: string;
37585
+ updated_at?: string;
37586
+ user_id: string;
37587
+ };
37588
+ Update: {
37589
+ created_at?: string;
37590
+ id?: string;
37591
+ module_id?: string;
37592
+ permission?: string;
37593
+ updated_at?: string;
37594
+ user_id?: string;
37595
+ };
37596
+ Relationships: [];
37597
+ };
36707
37598
  user_roles: {
36708
37599
  Row: {
36709
37600
  created_at: string;
@@ -38537,6 +39428,10 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
38537
39428
  processed_items: number;
38538
39429
  }[];
38539
39430
  };
39431
+ backfill_order_auto_invoice_queue: {
39432
+ Args: never;
39433
+ Returns: number;
39434
+ };
38540
39435
  calculate_layer_stock: {
38541
39436
  Args: {
38542
39437
  p_product_id: string;
@@ -38571,6 +39466,77 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
38571
39466
  };
38572
39467
  Returns: import("../integrations/supabase/types").Json;
38573
39468
  };
39469
+ claim_cloud_print_jobs: {
39470
+ Args: {
39471
+ _max?: number;
39472
+ };
39473
+ Returns: {
39474
+ agent_id: string | null;
39475
+ bron_job_id: string | null;
39476
+ created_at: string;
39477
+ documentnaam: string;
39478
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
39479
+ extern_job_id: string | null;
39480
+ foutmelding: string | null;
39481
+ gebruiker_id: string | null;
39482
+ gebruiker_naam: string;
39483
+ gestart_op: string | null;
39484
+ id: string;
39485
+ idempotentie_sleutel: string | null;
39486
+ is_herprint: boolean;
39487
+ kopieen: number;
39488
+ layout_id: string | null;
39489
+ opgepakt_op: string | null;
39490
+ paginas: number;
39491
+ payload: import("../integrations/supabase/types").Json;
39492
+ pdf_base64: string | null;
39493
+ pdf_url: string | null;
39494
+ pogingen: number;
39495
+ printer_id: string | null;
39496
+ render_html: string | null;
39497
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
39498
+ updated_at: string;
39499
+ volgende_poging: string | null;
39500
+ voltooid_op: string | null;
39501
+ }[];
39502
+ SetofOptions: {
39503
+ from: "*";
39504
+ to: "print_jobs";
39505
+ isOneToOne: false;
39506
+ isSetofReturn: true;
39507
+ };
39508
+ };
39509
+ claim_floriday_stock_queue: {
39510
+ Args: {
39511
+ p_limit?: number;
39512
+ p_worker?: string;
39513
+ };
39514
+ Returns: {
39515
+ attempts: number;
39516
+ connection_id: string;
39517
+ created_at: string;
39518
+ desired_available: boolean | null;
39519
+ gateway_attempt_id: string | null;
39520
+ id: string;
39521
+ last_error: string | null;
39522
+ locked_at: string | null;
39523
+ locked_by: string | null;
39524
+ next_attempt_at: string;
39525
+ number_of_pieces: number;
39526
+ sent_at: string | null;
39527
+ status: string;
39528
+ superseded_by: string | null;
39529
+ trade_item_id: string;
39530
+ updated_at: string;
39531
+ user_id: string;
39532
+ }[];
39533
+ SetofOptions: {
39534
+ from: "*";
39535
+ to: "floriday_continuous_stock_queue";
39536
+ isOneToOne: false;
39537
+ isSetofReturn: true;
39538
+ };
39539
+ };
38574
39540
  claim_logistics_tasks: {
38575
39541
  Args: {
38576
39542
  _limit?: number;
@@ -38630,22 +39596,27 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
38630
39596
  created_at: string;
38631
39597
  documentnaam: string;
38632
39598
  documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
39599
+ extern_job_id: string | null;
38633
39600
  foutmelding: string | null;
38634
39601
  gebruiker_id: string | null;
38635
39602
  gebruiker_naam: string;
38636
39603
  gestart_op: string | null;
38637
39604
  id: string;
39605
+ idempotentie_sleutel: string | null;
38638
39606
  is_herprint: boolean;
38639
39607
  kopieen: number;
38640
39608
  layout_id: string | null;
38641
39609
  opgepakt_op: string | null;
38642
39610
  paginas: number;
38643
39611
  payload: import("../integrations/supabase/types").Json;
39612
+ pdf_base64: string | null;
39613
+ pdf_url: string | null;
38644
39614
  pogingen: number;
38645
39615
  printer_id: string | null;
38646
39616
  render_html: string | null;
38647
39617
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
38648
39618
  updated_at: string;
39619
+ volgende_poging: string | null;
38649
39620
  voltooid_op: string | null;
38650
39621
  }[];
38651
39622
  SetofOptions: {
@@ -38683,10 +39654,28 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
38683
39654
  isSetofReturn: true;
38684
39655
  };
38685
39656
  };
39657
+ cleanup_floriday_stock_queue: {
39658
+ Args: never;
39659
+ Returns: undefined;
39660
+ };
38686
39661
  cleanup_old_bookings: {
38687
39662
  Args: never;
38688
39663
  Returns: undefined;
38689
39664
  };
39665
+ cleanup_voorraad_module_history: {
39666
+ Args: never;
39667
+ Returns: undefined;
39668
+ };
39669
+ complete_floriday_stock_queue: {
39670
+ Args: {
39671
+ p_attempt_id?: string;
39672
+ p_error?: string;
39673
+ p_id: string;
39674
+ p_ok: boolean;
39675
+ p_permanent?: boolean;
39676
+ };
39677
+ Returns: undefined;
39678
+ };
38690
39679
  consume_bom_for_production: {
38691
39680
  Args: {
38692
39681
  p_connection_id: string;
@@ -38798,6 +39787,13 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
38798
39787
  };
38799
39788
  Returns: import("../integrations/supabase/types").Json;
38800
39789
  };
39790
+ effective_module_permission: {
39791
+ Args: {
39792
+ _module_id: string;
39793
+ _user_id: string;
39794
+ };
39795
+ Returns: string;
39796
+ };
38801
39797
  email_auth_decrypt: {
38802
39798
  Args: {
38803
39799
  cipher: string;
@@ -39601,6 +40597,51 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
39601
40597
  isSetofReturn: false;
39602
40598
  };
39603
40599
  };
40600
+ logistics_floriday_claim_pushes: {
40601
+ Args: {
40602
+ _lease_seconds?: number;
40603
+ _limit?: number;
40604
+ _worker?: string;
40605
+ };
40606
+ Returns: {
40607
+ attempts: number;
40608
+ fulfillment_order_id: string;
40609
+ id: string;
40610
+ last_sent_hash: string;
40611
+ order_ref: string;
40612
+ payload: import("../integrations/supabase/types").Json;
40613
+ payload_hash: string;
40614
+ revision: number;
40615
+ }[];
40616
+ };
40617
+ logistics_floriday_finish_push: {
40618
+ Args: {
40619
+ _error?: string;
40620
+ _fulfillment_order_id?: string;
40621
+ _id: string;
40622
+ _max_age_hours?: number;
40623
+ _max_attempts?: number;
40624
+ _ok: boolean;
40625
+ _permanent?: boolean;
40626
+ _revision: number;
40627
+ _sent_hash?: string;
40628
+ };
40629
+ Returns: string;
40630
+ };
40631
+ logistics_floriday_prune_pushes: {
40632
+ Args: {
40633
+ _days?: number;
40634
+ };
40635
+ Returns: number;
40636
+ };
40637
+ logistics_floriday_queue_push: {
40638
+ Args: {
40639
+ _order_ref: string;
40640
+ _payload?: import("../integrations/supabase/types").Json;
40641
+ _payload_hash?: string;
40642
+ };
40643
+ Returns: string;
40644
+ };
39604
40645
  logistics_live_carriers: {
39605
40646
  Args: {
39606
40647
  p_order_ref: string;
@@ -39891,6 +40932,13 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
39891
40932
  };
39892
40933
  Returns: undefined;
39893
40934
  };
40935
+ my_module_permissions: {
40936
+ Args: never;
40937
+ Returns: {
40938
+ module_id: string;
40939
+ permission: string;
40940
+ }[];
40941
+ };
39894
40942
  next_manufacture_partij: {
39895
40943
  Args: {
39896
40944
  _tenant_id: string;
@@ -39941,6 +40989,13 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
39941
40989
  };
39942
40990
  Returns: boolean;
39943
40991
  };
40992
+ opruim_print_historie: {
40993
+ Args: never;
40994
+ Returns: {
40995
+ ontdaan: number;
40996
+ verwijderd: number;
40997
+ }[];
40998
+ };
39944
40999
  order_number_prefix: {
39945
41000
  Args: {
39946
41001
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -39948,6 +41003,15 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
39948
41003
  };
39949
41004
  Returns: string;
39950
41005
  };
41006
+ pick_active_printers: {
41007
+ Args: never;
41008
+ Returns: {
41009
+ id: string;
41010
+ locatie: string;
41011
+ naam: string;
41012
+ online: boolean;
41013
+ }[];
41014
+ };
39951
41015
  pick_claim_document: {
39952
41016
  Args: {
39953
41017
  _queue_item_id: string;
@@ -40134,6 +41198,52 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
40134
41198
  };
40135
41199
  Returns: undefined;
40136
41200
  };
41201
+ pick_reset_print: {
41202
+ Args: {
41203
+ _queue_item_id: string;
41204
+ _session_id: string;
41205
+ };
41206
+ Returns: {
41207
+ announced_at: string;
41208
+ assigned_user_id: string | null;
41209
+ barcode: string | null;
41210
+ cancelled_at: string | null;
41211
+ cart_count: number;
41212
+ completed_at: string | null;
41213
+ country_code: string | null;
41214
+ created_at: string;
41215
+ customer_name: string | null;
41216
+ delivery_address: string | null;
41217
+ document_number: string | null;
41218
+ document_type_id: string | null;
41219
+ due_at: string | null;
41220
+ id: string;
41221
+ is_urgent: boolean;
41222
+ line_count: number;
41223
+ order_number: string | null;
41224
+ order_type: string | null;
41225
+ payload: import("../integrations/supabase/types").Json;
41226
+ print_count: number;
41227
+ print_job_id: string | null;
41228
+ printed_at: string | null;
41229
+ printed_by: string | null;
41230
+ printer_id: string | null;
41231
+ priority: number;
41232
+ reference: string | null;
41233
+ route: string | null;
41234
+ screen_id: string | null;
41235
+ station_id: string | null;
41236
+ status_id: string | null;
41237
+ updated_at: string;
41238
+ warnings: import("../integrations/supabase/types").Json;
41239
+ };
41240
+ SetofOptions: {
41241
+ from: "*";
41242
+ to: "pick_queue";
41243
+ isOneToOne: true;
41244
+ isSetofReturn: false;
41245
+ };
41246
+ };
40137
41247
  pick_station_dashboard: {
40138
41248
  Args: never;
40139
41249
  Returns: {
@@ -40280,6 +41390,12 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
40280
41390
  };
40281
41391
  Returns: undefined;
40282
41392
  };
41393
+ reset_stalled_floriday_stock_queue: {
41394
+ Args: {
41395
+ p_include_failed?: boolean;
41396
+ };
41397
+ Returns: number;
41398
+ };
40283
41399
  resolve_group_allocation: {
40284
41400
  Args: {
40285
41401
  _needed: number;
@@ -40324,14 +41440,28 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
40324
41440
  };
40325
41441
  Returns: import("../integrations/supabase/types").Json;
40326
41442
  };
41443
+ ruim_print_jobs_op: {
41444
+ Args: {
41445
+ _bewaar_dagen?: number;
41446
+ };
41447
+ Returns: number;
41448
+ };
40327
41449
  run_floriday_continuous_stock_sync: {
40328
41450
  Args: never;
40329
41451
  Returns: undefined;
40330
41452
  };
41453
+ run_floriday_stock_queue_process: {
41454
+ Args: never;
41455
+ Returns: undefined;
41456
+ };
40331
41457
  run_logistics_tasks_dispatch: {
40332
41458
  Args: never;
40333
41459
  Returns: undefined;
40334
41460
  };
41461
+ run_print_queue_ticks: {
41462
+ Args: never;
41463
+ Returns: number;
41464
+ };
40335
41465
  run_twinfield_queue_tick: {
40336
41466
  Args: never;
40337
41467
  Returns: undefined;
@@ -40572,6 +41702,13 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
40572
41702
  };
40573
41703
  Returns: number;
40574
41704
  };
41705
+ schedule_floriday_stock_queue_process: {
41706
+ Args: {
41707
+ p_apikey: string;
41708
+ p_url: string;
41709
+ };
41710
+ Returns: number;
41711
+ };
40575
41712
  schedule_floriday_token_refresh: {
40576
41713
  Args: {
40577
41714
  p_apikey: string;
@@ -40712,6 +41849,15 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
40712
41849
  };
40713
41850
  Returns: undefined;
40714
41851
  };
41852
+ trade_item_stock_duplicates: {
41853
+ Args: never;
41854
+ Returns: {
41855
+ keys: string[];
41856
+ product_id: string;
41857
+ product_name: string;
41858
+ row_count: number;
41859
+ }[];
41860
+ };
40715
41861
  try_debtor_lock: {
40716
41862
  Args: {
40717
41863
  _group_key: string;
@@ -40761,7 +41907,7 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
40761
41907
  };
40762
41908
  Enums: {
40763
41909
  ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
40764
- app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin";
41910
+ app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
40765
41911
  doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
40766
41912
  doc_orientation: "portrait" | "landscape";
40767
41913
  exact_env: "staging" | "live";
@@ -42471,7 +43617,7 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
42471
43617
  city: string | null;
42472
43618
  country: string | null;
42473
43619
  created_at: string;
42474
- customer_id: string | null;
43620
+ customer_id: string;
42475
43621
  external_key: string | null;
42476
43622
  external_provider: string | null;
42477
43623
  floriday_location_id: string | null;
@@ -42495,7 +43641,7 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
42495
43641
  city?: string | null;
42496
43642
  country?: string | null;
42497
43643
  created_at?: string;
42498
- customer_id?: string | null;
43644
+ customer_id: string;
42499
43645
  external_key?: string | null;
42500
43646
  external_provider?: string | null;
42501
43647
  floriday_location_id?: string | null;
@@ -42519,7 +43665,7 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
42519
43665
  city?: string | null;
42520
43666
  country?: string | null;
42521
43667
  created_at?: string;
42522
- customer_id?: string | null;
43668
+ customer_id?: string;
42523
43669
  external_key?: string | null;
42524
43670
  external_provider?: string | null;
42525
43671
  floriday_location_id?: string | null;
@@ -46482,12 +47628,17 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
46482
47628
  attempts: number;
46483
47629
  connection_id: string;
46484
47630
  created_at: string;
47631
+ desired_available: boolean | null;
46485
47632
  gateway_attempt_id: string | null;
46486
47633
  id: string;
46487
47634
  last_error: string | null;
47635
+ locked_at: string | null;
47636
+ locked_by: string | null;
47637
+ next_attempt_at: string;
46488
47638
  number_of_pieces: number;
46489
47639
  sent_at: string | null;
46490
47640
  status: string;
47641
+ superseded_by: string | null;
46491
47642
  trade_item_id: string;
46492
47643
  updated_at: string;
46493
47644
  user_id: string;
@@ -46496,12 +47647,17 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
46496
47647
  attempts?: number;
46497
47648
  connection_id: string;
46498
47649
  created_at?: string;
47650
+ desired_available?: boolean | null;
46499
47651
  gateway_attempt_id?: string | null;
46500
47652
  id?: string;
46501
47653
  last_error?: string | null;
47654
+ locked_at?: string | null;
47655
+ locked_by?: string | null;
47656
+ next_attempt_at?: string;
46502
47657
  number_of_pieces?: number;
46503
47658
  sent_at?: string | null;
46504
47659
  status?: string;
47660
+ superseded_by?: string | null;
46505
47661
  trade_item_id: string;
46506
47662
  updated_at?: string;
46507
47663
  user_id: string;
@@ -46510,12 +47666,17 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
46510
47666
  attempts?: number;
46511
47667
  connection_id?: string;
46512
47668
  created_at?: string;
47669
+ desired_available?: boolean | null;
46513
47670
  gateway_attempt_id?: string | null;
46514
47671
  id?: string;
46515
47672
  last_error?: string | null;
47673
+ locked_at?: string | null;
47674
+ locked_by?: string | null;
47675
+ next_attempt_at?: string;
46516
47676
  number_of_pieces?: number;
46517
47677
  sent_at?: string | null;
46518
47678
  status?: string;
47679
+ superseded_by?: string | null;
46519
47680
  trade_item_id?: string;
46520
47681
  updated_at?: string;
46521
47682
  user_id?: string;
@@ -47252,6 +48413,7 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
47252
48413
  Row: {
47253
48414
  buyer_organization_id: string | null;
47254
48415
  connection_id: string;
48416
+ controlled_at: string | null;
47255
48417
  created_at: string;
47256
48418
  data: import("../integrations/supabase/types").Json;
47257
48419
  floriday_id: string;
@@ -47263,6 +48425,7 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
47263
48425
  Insert: {
47264
48426
  buyer_organization_id?: string | null;
47265
48427
  connection_id: string;
48428
+ controlled_at?: string | null;
47266
48429
  created_at?: string;
47267
48430
  data: import("../integrations/supabase/types").Json;
47268
48431
  floriday_id: string;
@@ -47274,6 +48437,7 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
47274
48437
  Update: {
47275
48438
  buyer_organization_id?: string | null;
47276
48439
  connection_id?: string;
48440
+ controlled_at?: string | null;
47277
48441
  created_at?: string;
47278
48442
  data?: import("../integrations/supabase/types").Json;
47279
48443
  floriday_id?: string;
@@ -48175,6 +49339,54 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
48175
49339
  };
48176
49340
  Relationships: [];
48177
49341
  };
49342
+ invoice_timing_settings: {
49343
+ Row: {
49344
+ anchor: string;
49345
+ business_days_only: boolean;
49346
+ created_at: string;
49347
+ enabled: boolean;
49348
+ id: string;
49349
+ offset_days: number;
49350
+ pickup_anchor: string;
49351
+ pickup_business_days_only: boolean;
49352
+ pickup_offset_days: number;
49353
+ pickup_time_of_day: string;
49354
+ singleton: boolean;
49355
+ time_of_day: string;
49356
+ updated_at: string;
49357
+ };
49358
+ Insert: {
49359
+ anchor?: string;
49360
+ business_days_only?: boolean;
49361
+ created_at?: string;
49362
+ enabled?: boolean;
49363
+ id?: string;
49364
+ offset_days?: number;
49365
+ pickup_anchor?: string;
49366
+ pickup_business_days_only?: boolean;
49367
+ pickup_offset_days?: number;
49368
+ pickup_time_of_day?: string;
49369
+ singleton?: boolean;
49370
+ time_of_day?: string;
49371
+ updated_at?: string;
49372
+ };
49373
+ Update: {
49374
+ anchor?: string;
49375
+ business_days_only?: boolean;
49376
+ created_at?: string;
49377
+ enabled?: boolean;
49378
+ id?: string;
49379
+ offset_days?: number;
49380
+ pickup_anchor?: string;
49381
+ pickup_business_days_only?: boolean;
49382
+ pickup_offset_days?: number;
49383
+ pickup_time_of_day?: string;
49384
+ singleton?: boolean;
49385
+ time_of_day?: string;
49386
+ updated_at?: string;
49387
+ };
49388
+ Relationships: [];
49389
+ };
48178
49390
  itk_contact_persons: {
48179
49391
  Row: {
48180
49392
  created_at: string;
@@ -49264,6 +50476,69 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
49264
50476
  };
49265
50477
  Relationships: [];
49266
50478
  };
50479
+ logistics_floriday_pushes: {
50480
+ Row: {
50481
+ attempts: number;
50482
+ created_at: string;
50483
+ first_queued_at: string;
50484
+ fulfillment_order_id: string | null;
50485
+ id: string;
50486
+ last_error: string | null;
50487
+ last_error_at: string | null;
50488
+ last_sent_hash: string | null;
50489
+ locked_by: string | null;
50490
+ locked_until: string | null;
50491
+ next_attempt_at: string;
50492
+ order_ref: string;
50493
+ payload: import("../integrations/supabase/types").Json;
50494
+ payload_hash: string | null;
50495
+ revision: number;
50496
+ sent_at: string | null;
50497
+ status: string;
50498
+ updated_at: string;
50499
+ };
50500
+ Insert: {
50501
+ attempts?: number;
50502
+ created_at?: string;
50503
+ first_queued_at?: string;
50504
+ fulfillment_order_id?: string | null;
50505
+ id?: string;
50506
+ last_error?: string | null;
50507
+ last_error_at?: string | null;
50508
+ last_sent_hash?: string | null;
50509
+ locked_by?: string | null;
50510
+ locked_until?: string | null;
50511
+ next_attempt_at?: string;
50512
+ order_ref: string;
50513
+ payload?: import("../integrations/supabase/types").Json;
50514
+ payload_hash?: string | null;
50515
+ revision?: number;
50516
+ sent_at?: string | null;
50517
+ status?: string;
50518
+ updated_at?: string;
50519
+ };
50520
+ Update: {
50521
+ attempts?: number;
50522
+ created_at?: string;
50523
+ first_queued_at?: string;
50524
+ fulfillment_order_id?: string | null;
50525
+ id?: string;
50526
+ last_error?: string | null;
50527
+ last_error_at?: string | null;
50528
+ last_sent_hash?: string | null;
50529
+ locked_by?: string | null;
50530
+ locked_until?: string | null;
50531
+ next_attempt_at?: string;
50532
+ order_ref?: string;
50533
+ payload?: import("../integrations/supabase/types").Json;
50534
+ payload_hash?: string | null;
50535
+ revision?: number;
50536
+ sent_at?: string | null;
50537
+ status?: string;
50538
+ updated_at?: string;
50539
+ };
50540
+ Relationships: [];
50541
+ };
49267
50542
  logistics_formulas: {
49268
50543
  Row: {
49269
50544
  created_at: string;
@@ -50127,14 +51402,17 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
50127
51402
  };
50128
51403
  mailbox_messages: {
50129
51404
  Row: {
51405
+ attachments: import("../integrations/supabase/types").Json;
50130
51406
  body_html: string | null;
50131
51407
  body_text: string | null;
51408
+ cc_recipients: import("../integrations/supabase/types").Json;
50132
51409
  connection_id: string | null;
50133
51410
  created_at: string;
50134
51411
  error_message: string | null;
50135
51412
  external_id: string | null;
50136
51413
  from_email: string | null;
50137
51414
  from_name: string | null;
51415
+ has_attachments: boolean;
50138
51416
  id: string;
50139
51417
  message_id: string | null;
50140
51418
  profile_id: string | null;
@@ -50142,18 +51420,22 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
50142
51420
  received_at: string | null;
50143
51421
  status: string;
50144
51422
  subject: string | null;
51423
+ to_recipients: import("../integrations/supabase/types").Json;
50145
51424
  uid: number | null;
50146
51425
  updated_at: string;
50147
51426
  };
50148
51427
  Insert: {
51428
+ attachments?: import("../integrations/supabase/types").Json;
50149
51429
  body_html?: string | null;
50150
51430
  body_text?: string | null;
51431
+ cc_recipients?: import("../integrations/supabase/types").Json;
50151
51432
  connection_id?: string | null;
50152
51433
  created_at?: string;
50153
51434
  error_message?: string | null;
50154
51435
  external_id?: string | null;
50155
51436
  from_email?: string | null;
50156
51437
  from_name?: string | null;
51438
+ has_attachments?: boolean;
50157
51439
  id?: string;
50158
51440
  message_id?: string | null;
50159
51441
  profile_id?: string | null;
@@ -50161,18 +51443,22 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
50161
51443
  received_at?: string | null;
50162
51444
  status?: string;
50163
51445
  subject?: string | null;
51446
+ to_recipients?: import("../integrations/supabase/types").Json;
50164
51447
  uid?: number | null;
50165
51448
  updated_at?: string;
50166
51449
  };
50167
51450
  Update: {
51451
+ attachments?: import("../integrations/supabase/types").Json;
50168
51452
  body_html?: string | null;
50169
51453
  body_text?: string | null;
51454
+ cc_recipients?: import("../integrations/supabase/types").Json;
50170
51455
  connection_id?: string | null;
50171
51456
  created_at?: string;
50172
51457
  error_message?: string | null;
50173
51458
  external_id?: string | null;
50174
51459
  from_email?: string | null;
50175
51460
  from_name?: string | null;
51461
+ has_attachments?: boolean;
50176
51462
  id?: string;
50177
51463
  message_id?: string | null;
50178
51464
  profile_id?: string | null;
@@ -50180,6 +51466,7 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
50180
51466
  received_at?: string | null;
50181
51467
  status?: string;
50182
51468
  subject?: string | null;
51469
+ to_recipients?: import("../integrations/supabase/types").Json;
50183
51470
  uid?: number | null;
50184
51471
  updated_at?: string;
50185
51472
  };
@@ -50587,6 +51874,36 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
50587
51874
  };
50588
51875
  Relationships: [];
50589
51876
  };
51877
+ module_registry: {
51878
+ Row: {
51879
+ created_at: string;
51880
+ is_active: boolean;
51881
+ last_seen_at: string;
51882
+ module_id: string;
51883
+ name: string;
51884
+ shell_id: string | null;
51885
+ sort_order: number | null;
51886
+ };
51887
+ Insert: {
51888
+ created_at?: string;
51889
+ is_active?: boolean;
51890
+ last_seen_at?: string;
51891
+ module_id: string;
51892
+ name: string;
51893
+ shell_id?: string | null;
51894
+ sort_order?: number | null;
51895
+ };
51896
+ Update: {
51897
+ created_at?: string;
51898
+ is_active?: boolean;
51899
+ last_seen_at?: string;
51900
+ module_id?: string;
51901
+ name?: string;
51902
+ shell_id?: string | null;
51903
+ sort_order?: number | null;
51904
+ };
51905
+ Relationships: [];
51906
+ };
50590
51907
  module_runtime_config: {
50591
51908
  Row: {
50592
51909
  key: string;
@@ -51646,6 +52963,42 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
51646
52963
  };
51647
52964
  Relationships: [];
51648
52965
  };
52966
+ order_invoice_links: {
52967
+ Row: {
52968
+ attempts: number;
52969
+ created_at: string;
52970
+ error_message: string | null;
52971
+ id: string;
52972
+ invoice_number: string | null;
52973
+ order_id: string;
52974
+ processed_at: string | null;
52975
+ status: string;
52976
+ updated_at: string;
52977
+ };
52978
+ Insert: {
52979
+ attempts?: number;
52980
+ created_at?: string;
52981
+ error_message?: string | null;
52982
+ id?: string;
52983
+ invoice_number?: string | null;
52984
+ order_id: string;
52985
+ processed_at?: string | null;
52986
+ status?: string;
52987
+ updated_at?: string;
52988
+ };
52989
+ Update: {
52990
+ attempts?: number;
52991
+ created_at?: string;
52992
+ error_message?: string | null;
52993
+ id?: string;
52994
+ invoice_number?: string | null;
52995
+ order_id?: string;
52996
+ processed_at?: string | null;
52997
+ status?: string;
52998
+ updated_at?: string;
52999
+ };
53000
+ Relationships: [];
53001
+ };
51649
53002
  order_items: {
51650
53003
  Row: {
51651
53004
  crates_per_layer: number | null;
@@ -51828,6 +53181,7 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
51828
53181
  delivery_date: string | null;
51829
53182
  floriday_sales_order_id: string | null;
51830
53183
  id: string;
53184
+ invoice_due_at: string | null;
51831
53185
  is_reservation: boolean;
51832
53186
  notes: string | null;
51833
53187
  order_date: string;
@@ -51849,6 +53203,7 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
51849
53203
  delivery_date?: string | null;
51850
53204
  floriday_sales_order_id?: string | null;
51851
53205
  id?: string;
53206
+ invoice_due_at?: string | null;
51852
53207
  is_reservation?: boolean;
51853
53208
  notes?: string | null;
51854
53209
  order_date?: string;
@@ -51870,6 +53225,7 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
51870
53225
  delivery_date?: string | null;
51871
53226
  floriday_sales_order_id?: string | null;
51872
53227
  id?: string;
53228
+ invoice_due_at?: string | null;
51873
53229
  is_reservation?: boolean;
51874
53230
  notes?: string | null;
51875
53231
  order_date?: string;
@@ -53066,22 +54422,27 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
53066
54422
  created_at: string;
53067
54423
  documentnaam: string;
53068
54424
  documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
54425
+ extern_job_id: string | null;
53069
54426
  foutmelding: string | null;
53070
54427
  gebruiker_id: string | null;
53071
54428
  gebruiker_naam: string;
53072
54429
  gestart_op: string | null;
53073
54430
  id: string;
54431
+ idempotentie_sleutel: string | null;
53074
54432
  is_herprint: boolean;
53075
54433
  kopieen: number;
53076
54434
  layout_id: string | null;
53077
54435
  opgepakt_op: string | null;
53078
54436
  paginas: number;
53079
54437
  payload: import("../integrations/supabase/types").Json;
54438
+ pdf_base64: string | null;
54439
+ pdf_url: string | null;
53080
54440
  pogingen: number;
53081
54441
  printer_id: string | null;
53082
54442
  render_html: string | null;
53083
54443
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
53084
54444
  updated_at: string;
54445
+ volgende_poging: string | null;
53085
54446
  voltooid_op: string | null;
53086
54447
  };
53087
54448
  Insert: {
@@ -53090,22 +54451,27 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
53090
54451
  created_at?: string;
53091
54452
  documentnaam?: string;
53092
54453
  documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
54454
+ extern_job_id?: string | null;
53093
54455
  foutmelding?: string | null;
53094
54456
  gebruiker_id?: string | null;
53095
54457
  gebruiker_naam?: string;
53096
54458
  gestart_op?: string | null;
53097
54459
  id?: string;
54460
+ idempotentie_sleutel?: string | null;
53098
54461
  is_herprint?: boolean;
53099
54462
  kopieen?: number;
53100
54463
  layout_id?: string | null;
53101
54464
  opgepakt_op?: string | null;
53102
54465
  paginas?: number;
53103
54466
  payload?: import("../integrations/supabase/types").Json;
54467
+ pdf_base64?: string | null;
54468
+ pdf_url?: string | null;
53104
54469
  pogingen?: number;
53105
54470
  printer_id?: string | null;
53106
54471
  render_html?: string | null;
53107
54472
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
53108
54473
  updated_at?: string;
54474
+ volgende_poging?: string | null;
53109
54475
  voltooid_op?: string | null;
53110
54476
  };
53111
54477
  Update: {
@@ -53114,22 +54480,27 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
53114
54480
  created_at?: string;
53115
54481
  documentnaam?: string;
53116
54482
  documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
54483
+ extern_job_id?: string | null;
53117
54484
  foutmelding?: string | null;
53118
54485
  gebruiker_id?: string | null;
53119
54486
  gebruiker_naam?: string;
53120
54487
  gestart_op?: string | null;
53121
54488
  id?: string;
54489
+ idempotentie_sleutel?: string | null;
53122
54490
  is_herprint?: boolean;
53123
54491
  kopieen?: number;
53124
54492
  layout_id?: string | null;
53125
54493
  opgepakt_op?: string | null;
53126
54494
  paginas?: number;
53127
54495
  payload?: import("../integrations/supabase/types").Json;
54496
+ pdf_base64?: string | null;
54497
+ pdf_url?: string | null;
53128
54498
  pogingen?: number;
53129
54499
  printer_id?: string | null;
53130
54500
  render_html?: string | null;
53131
54501
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
53132
54502
  updated_at?: string;
54503
+ volgende_poging?: string | null;
53133
54504
  voltooid_op?: string | null;
53134
54505
  };
53135
54506
  Relationships: [{
@@ -53152,6 +54523,63 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
53152
54523
  referencedColumns: ["id"];
53153
54524
  }];
53154
54525
  };
54526
+ print_queue_runners: {
54527
+ Row: {
54528
+ actief: boolean;
54529
+ basis_url: string;
54530
+ created_at: string;
54531
+ id: string;
54532
+ laatst_gezien: string;
54533
+ tick_sleutel: string;
54534
+ updated_at: string;
54535
+ };
54536
+ Insert: {
54537
+ actief?: boolean;
54538
+ basis_url: string;
54539
+ created_at?: string;
54540
+ id?: string;
54541
+ laatst_gezien?: string;
54542
+ tick_sleutel?: string;
54543
+ updated_at?: string;
54544
+ };
54545
+ Update: {
54546
+ actief?: boolean;
54547
+ basis_url?: string;
54548
+ created_at?: string;
54549
+ id?: string;
54550
+ laatst_gezien?: string;
54551
+ tick_sleutel?: string;
54552
+ updated_at?: string;
54553
+ };
54554
+ Relationships: [];
54555
+ };
54556
+ print_queue_settings: {
54557
+ Row: {
54558
+ bewaar_bestanden_dagen: number;
54559
+ bewaar_opdrachten_dagen: number;
54560
+ created_at: string;
54561
+ dubbel_venster_minuten: number;
54562
+ id: string;
54563
+ updated_at: string;
54564
+ };
54565
+ Insert: {
54566
+ bewaar_bestanden_dagen?: number;
54567
+ bewaar_opdrachten_dagen?: number;
54568
+ created_at?: string;
54569
+ dubbel_venster_minuten?: number;
54570
+ id?: string;
54571
+ updated_at?: string;
54572
+ };
54573
+ Update: {
54574
+ bewaar_bestanden_dagen?: number;
54575
+ bewaar_opdrachten_dagen?: number;
54576
+ created_at?: string;
54577
+ dubbel_venster_minuten?: number;
54578
+ id?: string;
54579
+ updated_at?: string;
54580
+ };
54581
+ Relationships: [];
54582
+ };
53155
54583
  print_rules: {
53156
54584
  Row: {
53157
54585
  actief: boolean;
@@ -53312,6 +54740,7 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
53312
54740
  agent_id: string | null;
53313
54741
  created_at: string;
53314
54742
  driver: string;
54743
+ extern_printer_id: string | null;
53315
54744
  id: string;
53316
54745
  ip_adres: string | null;
53317
54746
  laatst_gezien: string | null;
@@ -53333,6 +54762,7 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
53333
54762
  agent_id?: string | null;
53334
54763
  created_at?: string;
53335
54764
  driver?: string;
54765
+ extern_printer_id?: string | null;
53336
54766
  id?: string;
53337
54767
  ip_adres?: string | null;
53338
54768
  laatst_gezien?: string | null;
@@ -53354,6 +54784,7 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
53354
54784
  agent_id?: string | null;
53355
54785
  created_at?: string;
53356
54786
  driver?: string;
54787
+ extern_printer_id?: string | null;
53357
54788
  id?: string;
53358
54789
  ip_adres?: string | null;
53359
54790
  laatst_gezien?: string | null;
@@ -55989,6 +57420,8 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
55989
57420
  };
55990
57421
  twinfield_invoice_settings: {
55991
57422
  Row: {
57423
+ auto_invoice_enabled: boolean;
57424
+ auto_invoice_trigger_statuses: string[];
55992
57425
  created_at: string;
55993
57426
  debtor_gl_account: string;
55994
57427
  default_credit_invoice_type: string | null;
@@ -56009,6 +57442,8 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
56009
57442
  vat_code_export: string | null;
56010
57443
  };
56011
57444
  Insert: {
57445
+ auto_invoice_enabled?: boolean;
57446
+ auto_invoice_trigger_statuses?: string[];
56012
57447
  created_at?: string;
56013
57448
  debtor_gl_account?: string;
56014
57449
  default_credit_invoice_type?: string | null;
@@ -56029,6 +57464,8 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
56029
57464
  vat_code_export?: string | null;
56030
57465
  };
56031
57466
  Update: {
57467
+ auto_invoice_enabled?: boolean;
57468
+ auto_invoice_trigger_statuses?: string[];
56032
57469
  created_at?: string;
56033
57470
  debtor_gl_account?: string;
56034
57471
  default_credit_invoice_type?: string | null;
@@ -57091,6 +58528,33 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
57091
58528
  referencedColumns: ["id"];
57092
58529
  }];
57093
58530
  };
58531
+ user_module_permissions: {
58532
+ Row: {
58533
+ created_at: string;
58534
+ id: string;
58535
+ module_id: string;
58536
+ permission: string;
58537
+ updated_at: string;
58538
+ user_id: string;
58539
+ };
58540
+ Insert: {
58541
+ created_at?: string;
58542
+ id?: string;
58543
+ module_id: string;
58544
+ permission: string;
58545
+ updated_at?: string;
58546
+ user_id: string;
58547
+ };
58548
+ Update: {
58549
+ created_at?: string;
58550
+ id?: string;
58551
+ module_id?: string;
58552
+ permission?: string;
58553
+ updated_at?: string;
58554
+ user_id?: string;
58555
+ };
58556
+ Relationships: [];
58557
+ };
57094
58558
  user_roles: {
57095
58559
  Row: {
57096
58560
  created_at: string;
@@ -58924,6 +60388,10 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
58924
60388
  processed_items: number;
58925
60389
  }[];
58926
60390
  };
60391
+ backfill_order_auto_invoice_queue: {
60392
+ Args: never;
60393
+ Returns: number;
60394
+ };
58927
60395
  calculate_layer_stock: {
58928
60396
  Args: {
58929
60397
  p_product_id: string;
@@ -58958,6 +60426,77 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
58958
60426
  };
58959
60427
  Returns: import("../integrations/supabase/types").Json;
58960
60428
  };
60429
+ claim_cloud_print_jobs: {
60430
+ Args: {
60431
+ _max?: number;
60432
+ };
60433
+ Returns: {
60434
+ agent_id: string | null;
60435
+ bron_job_id: string | null;
60436
+ created_at: string;
60437
+ documentnaam: string;
60438
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
60439
+ extern_job_id: string | null;
60440
+ foutmelding: string | null;
60441
+ gebruiker_id: string | null;
60442
+ gebruiker_naam: string;
60443
+ gestart_op: string | null;
60444
+ id: string;
60445
+ idempotentie_sleutel: string | null;
60446
+ is_herprint: boolean;
60447
+ kopieen: number;
60448
+ layout_id: string | null;
60449
+ opgepakt_op: string | null;
60450
+ paginas: number;
60451
+ payload: import("../integrations/supabase/types").Json;
60452
+ pdf_base64: string | null;
60453
+ pdf_url: string | null;
60454
+ pogingen: number;
60455
+ printer_id: string | null;
60456
+ render_html: string | null;
60457
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
60458
+ updated_at: string;
60459
+ volgende_poging: string | null;
60460
+ voltooid_op: string | null;
60461
+ }[];
60462
+ SetofOptions: {
60463
+ from: "*";
60464
+ to: "print_jobs";
60465
+ isOneToOne: false;
60466
+ isSetofReturn: true;
60467
+ };
60468
+ };
60469
+ claim_floriday_stock_queue: {
60470
+ Args: {
60471
+ p_limit?: number;
60472
+ p_worker?: string;
60473
+ };
60474
+ Returns: {
60475
+ attempts: number;
60476
+ connection_id: string;
60477
+ created_at: string;
60478
+ desired_available: boolean | null;
60479
+ gateway_attempt_id: string | null;
60480
+ id: string;
60481
+ last_error: string | null;
60482
+ locked_at: string | null;
60483
+ locked_by: string | null;
60484
+ next_attempt_at: string;
60485
+ number_of_pieces: number;
60486
+ sent_at: string | null;
60487
+ status: string;
60488
+ superseded_by: string | null;
60489
+ trade_item_id: string;
60490
+ updated_at: string;
60491
+ user_id: string;
60492
+ }[];
60493
+ SetofOptions: {
60494
+ from: "*";
60495
+ to: "floriday_continuous_stock_queue";
60496
+ isOneToOne: false;
60497
+ isSetofReturn: true;
60498
+ };
60499
+ };
58961
60500
  claim_logistics_tasks: {
58962
60501
  Args: {
58963
60502
  _limit?: number;
@@ -59017,22 +60556,27 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
59017
60556
  created_at: string;
59018
60557
  documentnaam: string;
59019
60558
  documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
60559
+ extern_job_id: string | null;
59020
60560
  foutmelding: string | null;
59021
60561
  gebruiker_id: string | null;
59022
60562
  gebruiker_naam: string;
59023
60563
  gestart_op: string | null;
59024
60564
  id: string;
60565
+ idempotentie_sleutel: string | null;
59025
60566
  is_herprint: boolean;
59026
60567
  kopieen: number;
59027
60568
  layout_id: string | null;
59028
60569
  opgepakt_op: string | null;
59029
60570
  paginas: number;
59030
60571
  payload: import("../integrations/supabase/types").Json;
60572
+ pdf_base64: string | null;
60573
+ pdf_url: string | null;
59031
60574
  pogingen: number;
59032
60575
  printer_id: string | null;
59033
60576
  render_html: string | null;
59034
60577
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
59035
60578
  updated_at: string;
60579
+ volgende_poging: string | null;
59036
60580
  voltooid_op: string | null;
59037
60581
  }[];
59038
60582
  SetofOptions: {
@@ -59070,10 +60614,28 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
59070
60614
  isSetofReturn: true;
59071
60615
  };
59072
60616
  };
60617
+ cleanup_floriday_stock_queue: {
60618
+ Args: never;
60619
+ Returns: undefined;
60620
+ };
59073
60621
  cleanup_old_bookings: {
59074
60622
  Args: never;
59075
60623
  Returns: undefined;
59076
60624
  };
60625
+ cleanup_voorraad_module_history: {
60626
+ Args: never;
60627
+ Returns: undefined;
60628
+ };
60629
+ complete_floriday_stock_queue: {
60630
+ Args: {
60631
+ p_attempt_id?: string;
60632
+ p_error?: string;
60633
+ p_id: string;
60634
+ p_ok: boolean;
60635
+ p_permanent?: boolean;
60636
+ };
60637
+ Returns: undefined;
60638
+ };
59077
60639
  consume_bom_for_production: {
59078
60640
  Args: {
59079
60641
  p_connection_id: string;
@@ -59185,6 +60747,13 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
59185
60747
  };
59186
60748
  Returns: import("../integrations/supabase/types").Json;
59187
60749
  };
60750
+ effective_module_permission: {
60751
+ Args: {
60752
+ _module_id: string;
60753
+ _user_id: string;
60754
+ };
60755
+ Returns: string;
60756
+ };
59188
60757
  email_auth_decrypt: {
59189
60758
  Args: {
59190
60759
  cipher: string;
@@ -59988,6 +61557,51 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
59988
61557
  isSetofReturn: false;
59989
61558
  };
59990
61559
  };
61560
+ logistics_floriday_claim_pushes: {
61561
+ Args: {
61562
+ _lease_seconds?: number;
61563
+ _limit?: number;
61564
+ _worker?: string;
61565
+ };
61566
+ Returns: {
61567
+ attempts: number;
61568
+ fulfillment_order_id: string;
61569
+ id: string;
61570
+ last_sent_hash: string;
61571
+ order_ref: string;
61572
+ payload: import("../integrations/supabase/types").Json;
61573
+ payload_hash: string;
61574
+ revision: number;
61575
+ }[];
61576
+ };
61577
+ logistics_floriday_finish_push: {
61578
+ Args: {
61579
+ _error?: string;
61580
+ _fulfillment_order_id?: string;
61581
+ _id: string;
61582
+ _max_age_hours?: number;
61583
+ _max_attempts?: number;
61584
+ _ok: boolean;
61585
+ _permanent?: boolean;
61586
+ _revision: number;
61587
+ _sent_hash?: string;
61588
+ };
61589
+ Returns: string;
61590
+ };
61591
+ logistics_floriday_prune_pushes: {
61592
+ Args: {
61593
+ _days?: number;
61594
+ };
61595
+ Returns: number;
61596
+ };
61597
+ logistics_floriday_queue_push: {
61598
+ Args: {
61599
+ _order_ref: string;
61600
+ _payload?: import("../integrations/supabase/types").Json;
61601
+ _payload_hash?: string;
61602
+ };
61603
+ Returns: string;
61604
+ };
59991
61605
  logistics_live_carriers: {
59992
61606
  Args: {
59993
61607
  p_order_ref: string;
@@ -60278,6 +61892,13 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
60278
61892
  };
60279
61893
  Returns: undefined;
60280
61894
  };
61895
+ my_module_permissions: {
61896
+ Args: never;
61897
+ Returns: {
61898
+ module_id: string;
61899
+ permission: string;
61900
+ }[];
61901
+ };
60281
61902
  next_manufacture_partij: {
60282
61903
  Args: {
60283
61904
  _tenant_id: string;
@@ -60328,6 +61949,13 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
60328
61949
  };
60329
61950
  Returns: boolean;
60330
61951
  };
61952
+ opruim_print_historie: {
61953
+ Args: never;
61954
+ Returns: {
61955
+ ontdaan: number;
61956
+ verwijderd: number;
61957
+ }[];
61958
+ };
60331
61959
  order_number_prefix: {
60332
61960
  Args: {
60333
61961
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -60335,6 +61963,15 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
60335
61963
  };
60336
61964
  Returns: string;
60337
61965
  };
61966
+ pick_active_printers: {
61967
+ Args: never;
61968
+ Returns: {
61969
+ id: string;
61970
+ locatie: string;
61971
+ naam: string;
61972
+ online: boolean;
61973
+ }[];
61974
+ };
60338
61975
  pick_claim_document: {
60339
61976
  Args: {
60340
61977
  _queue_item_id: string;
@@ -60521,6 +62158,52 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
60521
62158
  };
60522
62159
  Returns: undefined;
60523
62160
  };
62161
+ pick_reset_print: {
62162
+ Args: {
62163
+ _queue_item_id: string;
62164
+ _session_id: string;
62165
+ };
62166
+ Returns: {
62167
+ announced_at: string;
62168
+ assigned_user_id: string | null;
62169
+ barcode: string | null;
62170
+ cancelled_at: string | null;
62171
+ cart_count: number;
62172
+ completed_at: string | null;
62173
+ country_code: string | null;
62174
+ created_at: string;
62175
+ customer_name: string | null;
62176
+ delivery_address: string | null;
62177
+ document_number: string | null;
62178
+ document_type_id: string | null;
62179
+ due_at: string | null;
62180
+ id: string;
62181
+ is_urgent: boolean;
62182
+ line_count: number;
62183
+ order_number: string | null;
62184
+ order_type: string | null;
62185
+ payload: import("../integrations/supabase/types").Json;
62186
+ print_count: number;
62187
+ print_job_id: string | null;
62188
+ printed_at: string | null;
62189
+ printed_by: string | null;
62190
+ printer_id: string | null;
62191
+ priority: number;
62192
+ reference: string | null;
62193
+ route: string | null;
62194
+ screen_id: string | null;
62195
+ station_id: string | null;
62196
+ status_id: string | null;
62197
+ updated_at: string;
62198
+ warnings: import("../integrations/supabase/types").Json;
62199
+ };
62200
+ SetofOptions: {
62201
+ from: "*";
62202
+ to: "pick_queue";
62203
+ isOneToOne: true;
62204
+ isSetofReturn: false;
62205
+ };
62206
+ };
60524
62207
  pick_station_dashboard: {
60525
62208
  Args: never;
60526
62209
  Returns: {
@@ -60667,6 +62350,12 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
60667
62350
  };
60668
62351
  Returns: undefined;
60669
62352
  };
62353
+ reset_stalled_floriday_stock_queue: {
62354
+ Args: {
62355
+ p_include_failed?: boolean;
62356
+ };
62357
+ Returns: number;
62358
+ };
60670
62359
  resolve_group_allocation: {
60671
62360
  Args: {
60672
62361
  _needed: number;
@@ -60711,14 +62400,28 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
60711
62400
  };
60712
62401
  Returns: import("../integrations/supabase/types").Json;
60713
62402
  };
62403
+ ruim_print_jobs_op: {
62404
+ Args: {
62405
+ _bewaar_dagen?: number;
62406
+ };
62407
+ Returns: number;
62408
+ };
60714
62409
  run_floriday_continuous_stock_sync: {
60715
62410
  Args: never;
60716
62411
  Returns: undefined;
60717
62412
  };
62413
+ run_floriday_stock_queue_process: {
62414
+ Args: never;
62415
+ Returns: undefined;
62416
+ };
60718
62417
  run_logistics_tasks_dispatch: {
60719
62418
  Args: never;
60720
62419
  Returns: undefined;
60721
62420
  };
62421
+ run_print_queue_ticks: {
62422
+ Args: never;
62423
+ Returns: number;
62424
+ };
60722
62425
  run_twinfield_queue_tick: {
60723
62426
  Args: never;
60724
62427
  Returns: undefined;
@@ -60959,6 +62662,13 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
60959
62662
  };
60960
62663
  Returns: number;
60961
62664
  };
62665
+ schedule_floriday_stock_queue_process: {
62666
+ Args: {
62667
+ p_apikey: string;
62668
+ p_url: string;
62669
+ };
62670
+ Returns: number;
62671
+ };
60962
62672
  schedule_floriday_token_refresh: {
60963
62673
  Args: {
60964
62674
  p_apikey: string;
@@ -61099,6 +62809,15 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
61099
62809
  };
61100
62810
  Returns: undefined;
61101
62811
  };
62812
+ trade_item_stock_duplicates: {
62813
+ Args: never;
62814
+ Returns: {
62815
+ keys: string[];
62816
+ product_id: string;
62817
+ product_name: string;
62818
+ row_count: number;
62819
+ }[];
62820
+ };
61102
62821
  try_debtor_lock: {
61103
62822
  Args: {
61104
62823
  _group_key: string;
@@ -61148,7 +62867,7 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
61148
62867
  };
61149
62868
  Enums: {
61150
62869
  ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
61151
- app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin";
62870
+ app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
61152
62871
  doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
61153
62872
  doc_orientation: "portrait" | "landscape";
61154
62873
  exact_env: "staging" | "live";