@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
@@ -1683,7 +1683,7 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
1683
1683
  city: string | null;
1684
1684
  country: string | null;
1685
1685
  created_at: string;
1686
- customer_id: string | null;
1686
+ customer_id: string;
1687
1687
  external_key: string | null;
1688
1688
  external_provider: string | null;
1689
1689
  floriday_location_id: string | null;
@@ -1707,7 +1707,7 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
1707
1707
  city?: string | null;
1708
1708
  country?: string | null;
1709
1709
  created_at?: string;
1710
- customer_id?: string | null;
1710
+ customer_id: string;
1711
1711
  external_key?: string | null;
1712
1712
  external_provider?: string | null;
1713
1713
  floriday_location_id?: string | null;
@@ -1731,7 +1731,7 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
1731
1731
  city?: string | null;
1732
1732
  country?: string | null;
1733
1733
  created_at?: string;
1734
- customer_id?: string | null;
1734
+ customer_id?: string;
1735
1735
  external_key?: string | null;
1736
1736
  external_provider?: string | null;
1737
1737
  floriday_location_id?: string | null;
@@ -5694,12 +5694,17 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
5694
5694
  attempts: number;
5695
5695
  connection_id: string;
5696
5696
  created_at: string;
5697
+ desired_available: boolean | null;
5697
5698
  gateway_attempt_id: string | null;
5698
5699
  id: string;
5699
5700
  last_error: string | null;
5701
+ locked_at: string | null;
5702
+ locked_by: string | null;
5703
+ next_attempt_at: string;
5700
5704
  number_of_pieces: number;
5701
5705
  sent_at: string | null;
5702
5706
  status: string;
5707
+ superseded_by: string | null;
5703
5708
  trade_item_id: string;
5704
5709
  updated_at: string;
5705
5710
  user_id: string;
@@ -5708,12 +5713,17 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
5708
5713
  attempts?: number;
5709
5714
  connection_id: string;
5710
5715
  created_at?: string;
5716
+ desired_available?: boolean | null;
5711
5717
  gateway_attempt_id?: string | null;
5712
5718
  id?: string;
5713
5719
  last_error?: string | null;
5720
+ locked_at?: string | null;
5721
+ locked_by?: string | null;
5722
+ next_attempt_at?: string;
5714
5723
  number_of_pieces?: number;
5715
5724
  sent_at?: string | null;
5716
5725
  status?: string;
5726
+ superseded_by?: string | null;
5717
5727
  trade_item_id: string;
5718
5728
  updated_at?: string;
5719
5729
  user_id: string;
@@ -5722,12 +5732,17 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
5722
5732
  attempts?: number;
5723
5733
  connection_id?: string;
5724
5734
  created_at?: string;
5735
+ desired_available?: boolean | null;
5725
5736
  gateway_attempt_id?: string | null;
5726
5737
  id?: string;
5727
5738
  last_error?: string | null;
5739
+ locked_at?: string | null;
5740
+ locked_by?: string | null;
5741
+ next_attempt_at?: string;
5728
5742
  number_of_pieces?: number;
5729
5743
  sent_at?: string | null;
5730
5744
  status?: string;
5745
+ superseded_by?: string | null;
5731
5746
  trade_item_id?: string;
5732
5747
  updated_at?: string;
5733
5748
  user_id?: string;
@@ -6464,6 +6479,7 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
6464
6479
  Row: {
6465
6480
  buyer_organization_id: string | null;
6466
6481
  connection_id: string;
6482
+ controlled_at: string | null;
6467
6483
  created_at: string;
6468
6484
  data: import("../integrations/supabase/types").Json;
6469
6485
  floriday_id: string;
@@ -6475,6 +6491,7 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
6475
6491
  Insert: {
6476
6492
  buyer_organization_id?: string | null;
6477
6493
  connection_id: string;
6494
+ controlled_at?: string | null;
6478
6495
  created_at?: string;
6479
6496
  data: import("../integrations/supabase/types").Json;
6480
6497
  floriday_id: string;
@@ -6486,6 +6503,7 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
6486
6503
  Update: {
6487
6504
  buyer_organization_id?: string | null;
6488
6505
  connection_id?: string;
6506
+ controlled_at?: string | null;
6489
6507
  created_at?: string;
6490
6508
  data?: import("../integrations/supabase/types").Json;
6491
6509
  floriday_id?: string;
@@ -7387,6 +7405,54 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
7387
7405
  };
7388
7406
  Relationships: [];
7389
7407
  };
7408
+ invoice_timing_settings: {
7409
+ Row: {
7410
+ anchor: string;
7411
+ business_days_only: boolean;
7412
+ created_at: string;
7413
+ enabled: boolean;
7414
+ id: string;
7415
+ offset_days: number;
7416
+ pickup_anchor: string;
7417
+ pickup_business_days_only: boolean;
7418
+ pickup_offset_days: number;
7419
+ pickup_time_of_day: string;
7420
+ singleton: boolean;
7421
+ time_of_day: string;
7422
+ updated_at: string;
7423
+ };
7424
+ Insert: {
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
+ Update: {
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
+ Relationships: [];
7455
+ };
7390
7456
  itk_contact_persons: {
7391
7457
  Row: {
7392
7458
  created_at: string;
@@ -8476,6 +8542,69 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
8476
8542
  };
8477
8543
  Relationships: [];
8478
8544
  };
8545
+ logistics_floriday_pushes: {
8546
+ Row: {
8547
+ attempts: number;
8548
+ created_at: string;
8549
+ first_queued_at: string;
8550
+ fulfillment_order_id: string | null;
8551
+ id: string;
8552
+ last_error: string | null;
8553
+ last_error_at: string | null;
8554
+ last_sent_hash: string | null;
8555
+ locked_by: string | null;
8556
+ locked_until: string | null;
8557
+ next_attempt_at: string;
8558
+ order_ref: string;
8559
+ payload: import("../integrations/supabase/types").Json;
8560
+ payload_hash: string | null;
8561
+ revision: number;
8562
+ sent_at: string | null;
8563
+ status: string;
8564
+ updated_at: string;
8565
+ };
8566
+ Insert: {
8567
+ attempts?: number;
8568
+ created_at?: string;
8569
+ first_queued_at?: string;
8570
+ fulfillment_order_id?: string | null;
8571
+ id?: string;
8572
+ last_error?: string | null;
8573
+ last_error_at?: string | null;
8574
+ last_sent_hash?: string | null;
8575
+ locked_by?: string | null;
8576
+ locked_until?: string | null;
8577
+ next_attempt_at?: string;
8578
+ order_ref: string;
8579
+ payload?: import("../integrations/supabase/types").Json;
8580
+ payload_hash?: string | null;
8581
+ revision?: number;
8582
+ sent_at?: string | null;
8583
+ status?: string;
8584
+ updated_at?: string;
8585
+ };
8586
+ Update: {
8587
+ attempts?: number;
8588
+ created_at?: string;
8589
+ first_queued_at?: string;
8590
+ fulfillment_order_id?: string | null;
8591
+ id?: string;
8592
+ last_error?: string | null;
8593
+ last_error_at?: string | null;
8594
+ last_sent_hash?: string | null;
8595
+ locked_by?: string | null;
8596
+ locked_until?: string | null;
8597
+ next_attempt_at?: string;
8598
+ order_ref?: string;
8599
+ payload?: import("../integrations/supabase/types").Json;
8600
+ payload_hash?: string | null;
8601
+ revision?: number;
8602
+ sent_at?: string | null;
8603
+ status?: string;
8604
+ updated_at?: string;
8605
+ };
8606
+ Relationships: [];
8607
+ };
8479
8608
  logistics_formulas: {
8480
8609
  Row: {
8481
8610
  created_at: string;
@@ -9339,14 +9468,17 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
9339
9468
  };
9340
9469
  mailbox_messages: {
9341
9470
  Row: {
9471
+ attachments: import("../integrations/supabase/types").Json;
9342
9472
  body_html: string | null;
9343
9473
  body_text: string | null;
9474
+ cc_recipients: import("../integrations/supabase/types").Json;
9344
9475
  connection_id: string | null;
9345
9476
  created_at: string;
9346
9477
  error_message: string | null;
9347
9478
  external_id: string | null;
9348
9479
  from_email: string | null;
9349
9480
  from_name: string | null;
9481
+ has_attachments: boolean;
9350
9482
  id: string;
9351
9483
  message_id: string | null;
9352
9484
  profile_id: string | null;
@@ -9354,18 +9486,22 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
9354
9486
  received_at: string | null;
9355
9487
  status: string;
9356
9488
  subject: string | null;
9489
+ to_recipients: import("../integrations/supabase/types").Json;
9357
9490
  uid: number | null;
9358
9491
  updated_at: string;
9359
9492
  };
9360
9493
  Insert: {
9494
+ attachments?: import("../integrations/supabase/types").Json;
9361
9495
  body_html?: string | null;
9362
9496
  body_text?: string | null;
9497
+ cc_recipients?: import("../integrations/supabase/types").Json;
9363
9498
  connection_id?: string | null;
9364
9499
  created_at?: string;
9365
9500
  error_message?: string | null;
9366
9501
  external_id?: string | null;
9367
9502
  from_email?: string | null;
9368
9503
  from_name?: string | null;
9504
+ has_attachments?: boolean;
9369
9505
  id?: string;
9370
9506
  message_id?: string | null;
9371
9507
  profile_id?: string | null;
@@ -9373,18 +9509,22 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
9373
9509
  received_at?: string | null;
9374
9510
  status?: string;
9375
9511
  subject?: string | null;
9512
+ to_recipients?: import("../integrations/supabase/types").Json;
9376
9513
  uid?: number | null;
9377
9514
  updated_at?: string;
9378
9515
  };
9379
9516
  Update: {
9517
+ attachments?: import("../integrations/supabase/types").Json;
9380
9518
  body_html?: string | null;
9381
9519
  body_text?: string | null;
9520
+ cc_recipients?: import("../integrations/supabase/types").Json;
9382
9521
  connection_id?: string | null;
9383
9522
  created_at?: string;
9384
9523
  error_message?: string | null;
9385
9524
  external_id?: string | null;
9386
9525
  from_email?: string | null;
9387
9526
  from_name?: string | null;
9527
+ has_attachments?: boolean;
9388
9528
  id?: string;
9389
9529
  message_id?: string | null;
9390
9530
  profile_id?: string | null;
@@ -9392,6 +9532,7 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
9392
9532
  received_at?: string | null;
9393
9533
  status?: string;
9394
9534
  subject?: string | null;
9535
+ to_recipients?: import("../integrations/supabase/types").Json;
9395
9536
  uid?: number | null;
9396
9537
  updated_at?: string;
9397
9538
  };
@@ -9799,6 +9940,36 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
9799
9940
  };
9800
9941
  Relationships: [];
9801
9942
  };
9943
+ module_registry: {
9944
+ Row: {
9945
+ created_at: string;
9946
+ is_active: boolean;
9947
+ last_seen_at: string;
9948
+ module_id: string;
9949
+ name: string;
9950
+ shell_id: string | null;
9951
+ sort_order: number | null;
9952
+ };
9953
+ Insert: {
9954
+ created_at?: string;
9955
+ is_active?: boolean;
9956
+ last_seen_at?: string;
9957
+ module_id: string;
9958
+ name: string;
9959
+ shell_id?: string | null;
9960
+ sort_order?: number | null;
9961
+ };
9962
+ Update: {
9963
+ created_at?: string;
9964
+ is_active?: boolean;
9965
+ last_seen_at?: string;
9966
+ module_id?: string;
9967
+ name?: string;
9968
+ shell_id?: string | null;
9969
+ sort_order?: number | null;
9970
+ };
9971
+ Relationships: [];
9972
+ };
9802
9973
  module_runtime_config: {
9803
9974
  Row: {
9804
9975
  key: string;
@@ -10858,6 +11029,42 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
10858
11029
  };
10859
11030
  Relationships: [];
10860
11031
  };
11032
+ order_invoice_links: {
11033
+ Row: {
11034
+ attempts: number;
11035
+ created_at: string;
11036
+ error_message: string | null;
11037
+ id: string;
11038
+ invoice_number: string | null;
11039
+ order_id: string;
11040
+ processed_at: string | null;
11041
+ status: string;
11042
+ updated_at: string;
11043
+ };
11044
+ Insert: {
11045
+ attempts?: number;
11046
+ created_at?: string;
11047
+ error_message?: string | null;
11048
+ id?: string;
11049
+ invoice_number?: string | null;
11050
+ order_id: string;
11051
+ processed_at?: string | null;
11052
+ status?: string;
11053
+ updated_at?: string;
11054
+ };
11055
+ Update: {
11056
+ attempts?: number;
11057
+ created_at?: string;
11058
+ error_message?: string | null;
11059
+ id?: string;
11060
+ invoice_number?: string | null;
11061
+ order_id?: string;
11062
+ processed_at?: string | null;
11063
+ status?: string;
11064
+ updated_at?: string;
11065
+ };
11066
+ Relationships: [];
11067
+ };
10861
11068
  order_items: {
10862
11069
  Row: {
10863
11070
  crates_per_layer: number | null;
@@ -11040,6 +11247,7 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
11040
11247
  delivery_date: string | null;
11041
11248
  floriday_sales_order_id: string | null;
11042
11249
  id: string;
11250
+ invoice_due_at: string | null;
11043
11251
  is_reservation: boolean;
11044
11252
  notes: string | null;
11045
11253
  order_date: string;
@@ -11061,6 +11269,7 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
11061
11269
  delivery_date?: string | null;
11062
11270
  floriday_sales_order_id?: string | null;
11063
11271
  id?: string;
11272
+ invoice_due_at?: string | null;
11064
11273
  is_reservation?: boolean;
11065
11274
  notes?: string | null;
11066
11275
  order_date?: string;
@@ -11082,6 +11291,7 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
11082
11291
  delivery_date?: string | null;
11083
11292
  floriday_sales_order_id?: string | null;
11084
11293
  id?: string;
11294
+ invoice_due_at?: string | null;
11085
11295
  is_reservation?: boolean;
11086
11296
  notes?: string | null;
11087
11297
  order_date?: string;
@@ -12278,22 +12488,27 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
12278
12488
  created_at: string;
12279
12489
  documentnaam: string;
12280
12490
  documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
12491
+ extern_job_id: string | null;
12281
12492
  foutmelding: string | null;
12282
12493
  gebruiker_id: string | null;
12283
12494
  gebruiker_naam: string;
12284
12495
  gestart_op: string | null;
12285
12496
  id: string;
12497
+ idempotentie_sleutel: string | null;
12286
12498
  is_herprint: boolean;
12287
12499
  kopieen: number;
12288
12500
  layout_id: string | null;
12289
12501
  opgepakt_op: string | null;
12290
12502
  paginas: number;
12291
12503
  payload: import("../integrations/supabase/types").Json;
12504
+ pdf_base64: string | null;
12505
+ pdf_url: string | null;
12292
12506
  pogingen: number;
12293
12507
  printer_id: string | null;
12294
12508
  render_html: string | null;
12295
12509
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
12296
12510
  updated_at: string;
12511
+ volgende_poging: string | null;
12297
12512
  voltooid_op: string | null;
12298
12513
  };
12299
12514
  Insert: {
@@ -12302,22 +12517,27 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
12302
12517
  created_at?: string;
12303
12518
  documentnaam?: string;
12304
12519
  documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
12520
+ extern_job_id?: string | null;
12305
12521
  foutmelding?: string | null;
12306
12522
  gebruiker_id?: string | null;
12307
12523
  gebruiker_naam?: string;
12308
12524
  gestart_op?: string | null;
12309
12525
  id?: string;
12526
+ idempotentie_sleutel?: string | null;
12310
12527
  is_herprint?: boolean;
12311
12528
  kopieen?: number;
12312
12529
  layout_id?: string | null;
12313
12530
  opgepakt_op?: string | null;
12314
12531
  paginas?: number;
12315
12532
  payload?: import("../integrations/supabase/types").Json;
12533
+ pdf_base64?: string | null;
12534
+ pdf_url?: string | null;
12316
12535
  pogingen?: number;
12317
12536
  printer_id?: string | null;
12318
12537
  render_html?: string | null;
12319
12538
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
12320
12539
  updated_at?: string;
12540
+ volgende_poging?: string | null;
12321
12541
  voltooid_op?: string | null;
12322
12542
  };
12323
12543
  Update: {
@@ -12326,22 +12546,27 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
12326
12546
  created_at?: string;
12327
12547
  documentnaam?: string;
12328
12548
  documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
12549
+ extern_job_id?: string | null;
12329
12550
  foutmelding?: string | null;
12330
12551
  gebruiker_id?: string | null;
12331
12552
  gebruiker_naam?: string;
12332
12553
  gestart_op?: string | null;
12333
12554
  id?: string;
12555
+ idempotentie_sleutel?: string | null;
12334
12556
  is_herprint?: boolean;
12335
12557
  kopieen?: number;
12336
12558
  layout_id?: string | null;
12337
12559
  opgepakt_op?: string | null;
12338
12560
  paginas?: number;
12339
12561
  payload?: import("../integrations/supabase/types").Json;
12562
+ pdf_base64?: string | null;
12563
+ pdf_url?: string | null;
12340
12564
  pogingen?: number;
12341
12565
  printer_id?: string | null;
12342
12566
  render_html?: string | null;
12343
12567
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
12344
12568
  updated_at?: string;
12569
+ volgende_poging?: string | null;
12345
12570
  voltooid_op?: string | null;
12346
12571
  };
12347
12572
  Relationships: [{
@@ -12364,6 +12589,63 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
12364
12589
  referencedColumns: ["id"];
12365
12590
  }];
12366
12591
  };
12592
+ print_queue_runners: {
12593
+ Row: {
12594
+ actief: boolean;
12595
+ basis_url: string;
12596
+ created_at: string;
12597
+ id: string;
12598
+ laatst_gezien: string;
12599
+ tick_sleutel: string;
12600
+ updated_at: string;
12601
+ };
12602
+ Insert: {
12603
+ actief?: boolean;
12604
+ basis_url: string;
12605
+ created_at?: string;
12606
+ id?: string;
12607
+ laatst_gezien?: string;
12608
+ tick_sleutel?: string;
12609
+ updated_at?: string;
12610
+ };
12611
+ Update: {
12612
+ actief?: boolean;
12613
+ basis_url?: string;
12614
+ created_at?: string;
12615
+ id?: string;
12616
+ laatst_gezien?: string;
12617
+ tick_sleutel?: string;
12618
+ updated_at?: string;
12619
+ };
12620
+ Relationships: [];
12621
+ };
12622
+ print_queue_settings: {
12623
+ Row: {
12624
+ bewaar_bestanden_dagen: number;
12625
+ bewaar_opdrachten_dagen: number;
12626
+ created_at: string;
12627
+ dubbel_venster_minuten: number;
12628
+ id: string;
12629
+ updated_at: string;
12630
+ };
12631
+ Insert: {
12632
+ bewaar_bestanden_dagen?: number;
12633
+ bewaar_opdrachten_dagen?: number;
12634
+ created_at?: string;
12635
+ dubbel_venster_minuten?: number;
12636
+ id?: string;
12637
+ updated_at?: string;
12638
+ };
12639
+ Update: {
12640
+ bewaar_bestanden_dagen?: number;
12641
+ bewaar_opdrachten_dagen?: number;
12642
+ created_at?: string;
12643
+ dubbel_venster_minuten?: number;
12644
+ id?: string;
12645
+ updated_at?: string;
12646
+ };
12647
+ Relationships: [];
12648
+ };
12367
12649
  print_rules: {
12368
12650
  Row: {
12369
12651
  actief: boolean;
@@ -12524,6 +12806,7 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
12524
12806
  agent_id: string | null;
12525
12807
  created_at: string;
12526
12808
  driver: string;
12809
+ extern_printer_id: string | null;
12527
12810
  id: string;
12528
12811
  ip_adres: string | null;
12529
12812
  laatst_gezien: string | null;
@@ -12545,6 +12828,7 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
12545
12828
  agent_id?: string | null;
12546
12829
  created_at?: string;
12547
12830
  driver?: string;
12831
+ extern_printer_id?: string | null;
12548
12832
  id?: string;
12549
12833
  ip_adres?: string | null;
12550
12834
  laatst_gezien?: string | null;
@@ -12566,6 +12850,7 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
12566
12850
  agent_id?: string | null;
12567
12851
  created_at?: string;
12568
12852
  driver?: string;
12853
+ extern_printer_id?: string | null;
12569
12854
  id?: string;
12570
12855
  ip_adres?: string | null;
12571
12856
  laatst_gezien?: string | null;
@@ -15201,6 +15486,8 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
15201
15486
  };
15202
15487
  twinfield_invoice_settings: {
15203
15488
  Row: {
15489
+ auto_invoice_enabled: boolean;
15490
+ auto_invoice_trigger_statuses: string[];
15204
15491
  created_at: string;
15205
15492
  debtor_gl_account: string;
15206
15493
  default_credit_invoice_type: string | null;
@@ -15221,6 +15508,8 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
15221
15508
  vat_code_export: string | null;
15222
15509
  };
15223
15510
  Insert: {
15511
+ auto_invoice_enabled?: boolean;
15512
+ auto_invoice_trigger_statuses?: string[];
15224
15513
  created_at?: string;
15225
15514
  debtor_gl_account?: string;
15226
15515
  default_credit_invoice_type?: string | null;
@@ -15241,6 +15530,8 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
15241
15530
  vat_code_export?: string | null;
15242
15531
  };
15243
15532
  Update: {
15533
+ auto_invoice_enabled?: boolean;
15534
+ auto_invoice_trigger_statuses?: string[];
15244
15535
  created_at?: string;
15245
15536
  debtor_gl_account?: string;
15246
15537
  default_credit_invoice_type?: string | null;
@@ -16303,6 +16594,33 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
16303
16594
  referencedColumns: ["id"];
16304
16595
  }];
16305
16596
  };
16597
+ user_module_permissions: {
16598
+ Row: {
16599
+ created_at: string;
16600
+ id: string;
16601
+ module_id: string;
16602
+ permission: string;
16603
+ updated_at: string;
16604
+ user_id: string;
16605
+ };
16606
+ Insert: {
16607
+ created_at?: string;
16608
+ id?: string;
16609
+ module_id: string;
16610
+ permission: string;
16611
+ updated_at?: string;
16612
+ user_id: string;
16613
+ };
16614
+ Update: {
16615
+ created_at?: string;
16616
+ id?: string;
16617
+ module_id?: string;
16618
+ permission?: string;
16619
+ updated_at?: string;
16620
+ user_id?: string;
16621
+ };
16622
+ Relationships: [];
16623
+ };
16306
16624
  user_roles: {
16307
16625
  Row: {
16308
16626
  created_at: string;
@@ -18136,6 +18454,10 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
18136
18454
  processed_items: number;
18137
18455
  }[];
18138
18456
  };
18457
+ backfill_order_auto_invoice_queue: {
18458
+ Args: never;
18459
+ Returns: number;
18460
+ };
18139
18461
  calculate_layer_stock: {
18140
18462
  Args: {
18141
18463
  p_product_id: string;
@@ -18170,6 +18492,77 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
18170
18492
  };
18171
18493
  Returns: import("../integrations/supabase/types").Json;
18172
18494
  };
18495
+ claim_cloud_print_jobs: {
18496
+ Args: {
18497
+ _max?: number;
18498
+ };
18499
+ Returns: {
18500
+ agent_id: string | null;
18501
+ bron_job_id: string | null;
18502
+ created_at: string;
18503
+ documentnaam: string;
18504
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
18505
+ extern_job_id: string | null;
18506
+ foutmelding: string | null;
18507
+ gebruiker_id: string | null;
18508
+ gebruiker_naam: string;
18509
+ gestart_op: string | null;
18510
+ id: string;
18511
+ idempotentie_sleutel: string | null;
18512
+ is_herprint: boolean;
18513
+ kopieen: number;
18514
+ layout_id: string | null;
18515
+ opgepakt_op: string | null;
18516
+ paginas: number;
18517
+ payload: import("../integrations/supabase/types").Json;
18518
+ pdf_base64: string | null;
18519
+ pdf_url: string | null;
18520
+ pogingen: number;
18521
+ printer_id: string | null;
18522
+ render_html: string | null;
18523
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
18524
+ updated_at: string;
18525
+ volgende_poging: string | null;
18526
+ voltooid_op: string | null;
18527
+ }[];
18528
+ SetofOptions: {
18529
+ from: "*";
18530
+ to: "print_jobs";
18531
+ isOneToOne: false;
18532
+ isSetofReturn: true;
18533
+ };
18534
+ };
18535
+ claim_floriday_stock_queue: {
18536
+ Args: {
18537
+ p_limit?: number;
18538
+ p_worker?: string;
18539
+ };
18540
+ Returns: {
18541
+ attempts: number;
18542
+ connection_id: string;
18543
+ created_at: string;
18544
+ desired_available: boolean | null;
18545
+ gateway_attempt_id: string | null;
18546
+ id: string;
18547
+ last_error: string | null;
18548
+ locked_at: string | null;
18549
+ locked_by: string | null;
18550
+ next_attempt_at: string;
18551
+ number_of_pieces: number;
18552
+ sent_at: string | null;
18553
+ status: string;
18554
+ superseded_by: string | null;
18555
+ trade_item_id: string;
18556
+ updated_at: string;
18557
+ user_id: string;
18558
+ }[];
18559
+ SetofOptions: {
18560
+ from: "*";
18561
+ to: "floriday_continuous_stock_queue";
18562
+ isOneToOne: false;
18563
+ isSetofReturn: true;
18564
+ };
18565
+ };
18173
18566
  claim_logistics_tasks: {
18174
18567
  Args: {
18175
18568
  _limit?: number;
@@ -18229,22 +18622,27 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
18229
18622
  created_at: string;
18230
18623
  documentnaam: string;
18231
18624
  documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
18625
+ extern_job_id: string | null;
18232
18626
  foutmelding: string | null;
18233
18627
  gebruiker_id: string | null;
18234
18628
  gebruiker_naam: string;
18235
18629
  gestart_op: string | null;
18236
18630
  id: string;
18631
+ idempotentie_sleutel: string | null;
18237
18632
  is_herprint: boolean;
18238
18633
  kopieen: number;
18239
18634
  layout_id: string | null;
18240
18635
  opgepakt_op: string | null;
18241
18636
  paginas: number;
18242
18637
  payload: import("../integrations/supabase/types").Json;
18638
+ pdf_base64: string | null;
18639
+ pdf_url: string | null;
18243
18640
  pogingen: number;
18244
18641
  printer_id: string | null;
18245
18642
  render_html: string | null;
18246
18643
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
18247
18644
  updated_at: string;
18645
+ volgende_poging: string | null;
18248
18646
  voltooid_op: string | null;
18249
18647
  }[];
18250
18648
  SetofOptions: {
@@ -18282,10 +18680,28 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
18282
18680
  isSetofReturn: true;
18283
18681
  };
18284
18682
  };
18683
+ cleanup_floriday_stock_queue: {
18684
+ Args: never;
18685
+ Returns: undefined;
18686
+ };
18285
18687
  cleanup_old_bookings: {
18286
18688
  Args: never;
18287
18689
  Returns: undefined;
18288
18690
  };
18691
+ cleanup_voorraad_module_history: {
18692
+ Args: never;
18693
+ Returns: undefined;
18694
+ };
18695
+ complete_floriday_stock_queue: {
18696
+ Args: {
18697
+ p_attempt_id?: string;
18698
+ p_error?: string;
18699
+ p_id: string;
18700
+ p_ok: boolean;
18701
+ p_permanent?: boolean;
18702
+ };
18703
+ Returns: undefined;
18704
+ };
18289
18705
  consume_bom_for_production: {
18290
18706
  Args: {
18291
18707
  p_connection_id: string;
@@ -18397,6 +18813,13 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
18397
18813
  };
18398
18814
  Returns: import("../integrations/supabase/types").Json;
18399
18815
  };
18816
+ effective_module_permission: {
18817
+ Args: {
18818
+ _module_id: string;
18819
+ _user_id: string;
18820
+ };
18821
+ Returns: string;
18822
+ };
18400
18823
  email_auth_decrypt: {
18401
18824
  Args: {
18402
18825
  cipher: string;
@@ -19200,6 +19623,51 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
19200
19623
  isSetofReturn: false;
19201
19624
  };
19202
19625
  };
19626
+ logistics_floriday_claim_pushes: {
19627
+ Args: {
19628
+ _lease_seconds?: number;
19629
+ _limit?: number;
19630
+ _worker?: string;
19631
+ };
19632
+ Returns: {
19633
+ attempts: number;
19634
+ fulfillment_order_id: string;
19635
+ id: string;
19636
+ last_sent_hash: string;
19637
+ order_ref: string;
19638
+ payload: import("../integrations/supabase/types").Json;
19639
+ payload_hash: string;
19640
+ revision: number;
19641
+ }[];
19642
+ };
19643
+ logistics_floriday_finish_push: {
19644
+ Args: {
19645
+ _error?: string;
19646
+ _fulfillment_order_id?: string;
19647
+ _id: string;
19648
+ _max_age_hours?: number;
19649
+ _max_attempts?: number;
19650
+ _ok: boolean;
19651
+ _permanent?: boolean;
19652
+ _revision: number;
19653
+ _sent_hash?: string;
19654
+ };
19655
+ Returns: string;
19656
+ };
19657
+ logistics_floriday_prune_pushes: {
19658
+ Args: {
19659
+ _days?: number;
19660
+ };
19661
+ Returns: number;
19662
+ };
19663
+ logistics_floriday_queue_push: {
19664
+ Args: {
19665
+ _order_ref: string;
19666
+ _payload?: import("../integrations/supabase/types").Json;
19667
+ _payload_hash?: string;
19668
+ };
19669
+ Returns: string;
19670
+ };
19203
19671
  logistics_live_carriers: {
19204
19672
  Args: {
19205
19673
  p_order_ref: string;
@@ -19490,6 +19958,13 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
19490
19958
  };
19491
19959
  Returns: undefined;
19492
19960
  };
19961
+ my_module_permissions: {
19962
+ Args: never;
19963
+ Returns: {
19964
+ module_id: string;
19965
+ permission: string;
19966
+ }[];
19967
+ };
19493
19968
  next_manufacture_partij: {
19494
19969
  Args: {
19495
19970
  _tenant_id: string;
@@ -19540,6 +20015,13 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
19540
20015
  };
19541
20016
  Returns: boolean;
19542
20017
  };
20018
+ opruim_print_historie: {
20019
+ Args: never;
20020
+ Returns: {
20021
+ ontdaan: number;
20022
+ verwijderd: number;
20023
+ }[];
20024
+ };
19543
20025
  order_number_prefix: {
19544
20026
  Args: {
19545
20027
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -19547,6 +20029,15 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
19547
20029
  };
19548
20030
  Returns: string;
19549
20031
  };
20032
+ pick_active_printers: {
20033
+ Args: never;
20034
+ Returns: {
20035
+ id: string;
20036
+ locatie: string;
20037
+ naam: string;
20038
+ online: boolean;
20039
+ }[];
20040
+ };
19550
20041
  pick_claim_document: {
19551
20042
  Args: {
19552
20043
  _queue_item_id: string;
@@ -19733,6 +20224,52 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
19733
20224
  };
19734
20225
  Returns: undefined;
19735
20226
  };
20227
+ pick_reset_print: {
20228
+ Args: {
20229
+ _queue_item_id: string;
20230
+ _session_id: string;
20231
+ };
20232
+ Returns: {
20233
+ announced_at: string;
20234
+ assigned_user_id: string | null;
20235
+ barcode: string | null;
20236
+ cancelled_at: string | null;
20237
+ cart_count: number;
20238
+ completed_at: string | null;
20239
+ country_code: string | null;
20240
+ created_at: string;
20241
+ customer_name: string | null;
20242
+ delivery_address: string | null;
20243
+ document_number: string | null;
20244
+ document_type_id: string | null;
20245
+ due_at: string | null;
20246
+ id: string;
20247
+ is_urgent: boolean;
20248
+ line_count: number;
20249
+ order_number: string | null;
20250
+ order_type: string | null;
20251
+ payload: import("../integrations/supabase/types").Json;
20252
+ print_count: number;
20253
+ print_job_id: string | null;
20254
+ printed_at: string | null;
20255
+ printed_by: string | null;
20256
+ printer_id: string | null;
20257
+ priority: number;
20258
+ reference: string | null;
20259
+ route: string | null;
20260
+ screen_id: string | null;
20261
+ station_id: string | null;
20262
+ status_id: string | null;
20263
+ updated_at: string;
20264
+ warnings: import("../integrations/supabase/types").Json;
20265
+ };
20266
+ SetofOptions: {
20267
+ from: "*";
20268
+ to: "pick_queue";
20269
+ isOneToOne: true;
20270
+ isSetofReturn: false;
20271
+ };
20272
+ };
19736
20273
  pick_station_dashboard: {
19737
20274
  Args: never;
19738
20275
  Returns: {
@@ -19879,6 +20416,12 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
19879
20416
  };
19880
20417
  Returns: undefined;
19881
20418
  };
20419
+ reset_stalled_floriday_stock_queue: {
20420
+ Args: {
20421
+ p_include_failed?: boolean;
20422
+ };
20423
+ Returns: number;
20424
+ };
19882
20425
  resolve_group_allocation: {
19883
20426
  Args: {
19884
20427
  _needed: number;
@@ -19923,14 +20466,28 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
19923
20466
  };
19924
20467
  Returns: import("../integrations/supabase/types").Json;
19925
20468
  };
20469
+ ruim_print_jobs_op: {
20470
+ Args: {
20471
+ _bewaar_dagen?: number;
20472
+ };
20473
+ Returns: number;
20474
+ };
19926
20475
  run_floriday_continuous_stock_sync: {
19927
20476
  Args: never;
19928
20477
  Returns: undefined;
19929
20478
  };
20479
+ run_floriday_stock_queue_process: {
20480
+ Args: never;
20481
+ Returns: undefined;
20482
+ };
19930
20483
  run_logistics_tasks_dispatch: {
19931
20484
  Args: never;
19932
20485
  Returns: undefined;
19933
20486
  };
20487
+ run_print_queue_ticks: {
20488
+ Args: never;
20489
+ Returns: number;
20490
+ };
19934
20491
  run_twinfield_queue_tick: {
19935
20492
  Args: never;
19936
20493
  Returns: undefined;
@@ -20171,6 +20728,13 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
20171
20728
  };
20172
20729
  Returns: number;
20173
20730
  };
20731
+ schedule_floriday_stock_queue_process: {
20732
+ Args: {
20733
+ p_apikey: string;
20734
+ p_url: string;
20735
+ };
20736
+ Returns: number;
20737
+ };
20174
20738
  schedule_floriday_token_refresh: {
20175
20739
  Args: {
20176
20740
  p_apikey: string;
@@ -20311,6 +20875,15 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
20311
20875
  };
20312
20876
  Returns: undefined;
20313
20877
  };
20878
+ trade_item_stock_duplicates: {
20879
+ Args: never;
20880
+ Returns: {
20881
+ keys: string[];
20882
+ product_id: string;
20883
+ product_name: string;
20884
+ row_count: number;
20885
+ }[];
20886
+ };
20314
20887
  try_debtor_lock: {
20315
20888
  Args: {
20316
20889
  _group_key: string;
@@ -20360,7 +20933,7 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
20360
20933
  };
20361
20934
  Enums: {
20362
20935
  ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
20363
- app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin";
20936
+ app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
20364
20937
  doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
20365
20938
  doc_orientation: "portrait" | "landscape";
20366
20939
  exact_env: "staging" | "live";
@@ -22068,7 +22641,7 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
22068
22641
  city: string | null;
22069
22642
  country: string | null;
22070
22643
  created_at: string;
22071
- customer_id: string | null;
22644
+ customer_id: string;
22072
22645
  external_key: string | null;
22073
22646
  external_provider: string | null;
22074
22647
  floriday_location_id: string | null;
@@ -22092,7 +22665,7 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
22092
22665
  city?: string | null;
22093
22666
  country?: string | null;
22094
22667
  created_at?: string;
22095
- customer_id?: string | null;
22668
+ customer_id: string;
22096
22669
  external_key?: string | null;
22097
22670
  external_provider?: string | null;
22098
22671
  floriday_location_id?: string | null;
@@ -22116,7 +22689,7 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
22116
22689
  city?: string | null;
22117
22690
  country?: string | null;
22118
22691
  created_at?: string;
22119
- customer_id?: string | null;
22692
+ customer_id?: string;
22120
22693
  external_key?: string | null;
22121
22694
  external_provider?: string | null;
22122
22695
  floriday_location_id?: string | null;
@@ -26079,12 +26652,17 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
26079
26652
  attempts: number;
26080
26653
  connection_id: string;
26081
26654
  created_at: string;
26655
+ desired_available: boolean | null;
26082
26656
  gateway_attempt_id: string | null;
26083
26657
  id: string;
26084
26658
  last_error: string | null;
26659
+ locked_at: string | null;
26660
+ locked_by: string | null;
26661
+ next_attempt_at: string;
26085
26662
  number_of_pieces: number;
26086
26663
  sent_at: string | null;
26087
26664
  status: string;
26665
+ superseded_by: string | null;
26088
26666
  trade_item_id: string;
26089
26667
  updated_at: string;
26090
26668
  user_id: string;
@@ -26093,12 +26671,17 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
26093
26671
  attempts?: number;
26094
26672
  connection_id: string;
26095
26673
  created_at?: string;
26674
+ desired_available?: boolean | null;
26096
26675
  gateway_attempt_id?: string | null;
26097
26676
  id?: string;
26098
26677
  last_error?: string | null;
26678
+ locked_at?: string | null;
26679
+ locked_by?: string | null;
26680
+ next_attempt_at?: string;
26099
26681
  number_of_pieces?: number;
26100
26682
  sent_at?: string | null;
26101
26683
  status?: string;
26684
+ superseded_by?: string | null;
26102
26685
  trade_item_id: string;
26103
26686
  updated_at?: string;
26104
26687
  user_id: string;
@@ -26107,12 +26690,17 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
26107
26690
  attempts?: number;
26108
26691
  connection_id?: string;
26109
26692
  created_at?: string;
26693
+ desired_available?: boolean | null;
26110
26694
  gateway_attempt_id?: string | null;
26111
26695
  id?: string;
26112
26696
  last_error?: string | null;
26697
+ locked_at?: string | null;
26698
+ locked_by?: string | null;
26699
+ next_attempt_at?: string;
26113
26700
  number_of_pieces?: number;
26114
26701
  sent_at?: string | null;
26115
26702
  status?: string;
26703
+ superseded_by?: string | null;
26116
26704
  trade_item_id?: string;
26117
26705
  updated_at?: string;
26118
26706
  user_id?: string;
@@ -26849,6 +27437,7 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
26849
27437
  Row: {
26850
27438
  buyer_organization_id: string | null;
26851
27439
  connection_id: string;
27440
+ controlled_at: string | null;
26852
27441
  created_at: string;
26853
27442
  data: import("../integrations/supabase/types").Json;
26854
27443
  floriday_id: string;
@@ -26860,6 +27449,7 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
26860
27449
  Insert: {
26861
27450
  buyer_organization_id?: string | null;
26862
27451
  connection_id: string;
27452
+ controlled_at?: string | null;
26863
27453
  created_at?: string;
26864
27454
  data: import("../integrations/supabase/types").Json;
26865
27455
  floriday_id: string;
@@ -26871,6 +27461,7 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
26871
27461
  Update: {
26872
27462
  buyer_organization_id?: string | null;
26873
27463
  connection_id?: string;
27464
+ controlled_at?: string | null;
26874
27465
  created_at?: string;
26875
27466
  data?: import("../integrations/supabase/types").Json;
26876
27467
  floriday_id?: string;
@@ -27772,6 +28363,54 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
27772
28363
  };
27773
28364
  Relationships: [];
27774
28365
  };
28366
+ invoice_timing_settings: {
28367
+ Row: {
28368
+ anchor: string;
28369
+ business_days_only: boolean;
28370
+ created_at: string;
28371
+ enabled: boolean;
28372
+ id: string;
28373
+ offset_days: number;
28374
+ pickup_anchor: string;
28375
+ pickup_business_days_only: boolean;
28376
+ pickup_offset_days: number;
28377
+ pickup_time_of_day: string;
28378
+ singleton: boolean;
28379
+ time_of_day: string;
28380
+ updated_at: string;
28381
+ };
28382
+ Insert: {
28383
+ anchor?: string;
28384
+ business_days_only?: boolean;
28385
+ created_at?: string;
28386
+ enabled?: boolean;
28387
+ id?: string;
28388
+ offset_days?: number;
28389
+ pickup_anchor?: string;
28390
+ pickup_business_days_only?: boolean;
28391
+ pickup_offset_days?: number;
28392
+ pickup_time_of_day?: string;
28393
+ singleton?: boolean;
28394
+ time_of_day?: string;
28395
+ updated_at?: string;
28396
+ };
28397
+ Update: {
28398
+ anchor?: string;
28399
+ business_days_only?: boolean;
28400
+ created_at?: string;
28401
+ enabled?: boolean;
28402
+ id?: string;
28403
+ offset_days?: number;
28404
+ pickup_anchor?: string;
28405
+ pickup_business_days_only?: boolean;
28406
+ pickup_offset_days?: number;
28407
+ pickup_time_of_day?: string;
28408
+ singleton?: boolean;
28409
+ time_of_day?: string;
28410
+ updated_at?: string;
28411
+ };
28412
+ Relationships: [];
28413
+ };
27775
28414
  itk_contact_persons: {
27776
28415
  Row: {
27777
28416
  created_at: string;
@@ -28861,6 +29500,69 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
28861
29500
  };
28862
29501
  Relationships: [];
28863
29502
  };
29503
+ logistics_floriday_pushes: {
29504
+ Row: {
29505
+ attempts: number;
29506
+ created_at: string;
29507
+ first_queued_at: string;
29508
+ fulfillment_order_id: string | null;
29509
+ id: string;
29510
+ last_error: string | null;
29511
+ last_error_at: string | null;
29512
+ last_sent_hash: string | null;
29513
+ locked_by: string | null;
29514
+ locked_until: string | null;
29515
+ next_attempt_at: string;
29516
+ order_ref: string;
29517
+ payload: import("../integrations/supabase/types").Json;
29518
+ payload_hash: string | null;
29519
+ revision: number;
29520
+ sent_at: string | null;
29521
+ status: string;
29522
+ updated_at: string;
29523
+ };
29524
+ Insert: {
29525
+ attempts?: number;
29526
+ created_at?: string;
29527
+ first_queued_at?: string;
29528
+ fulfillment_order_id?: string | null;
29529
+ id?: string;
29530
+ last_error?: string | null;
29531
+ last_error_at?: string | null;
29532
+ last_sent_hash?: string | null;
29533
+ locked_by?: string | null;
29534
+ locked_until?: string | null;
29535
+ next_attempt_at?: string;
29536
+ order_ref: string;
29537
+ payload?: import("../integrations/supabase/types").Json;
29538
+ payload_hash?: string | null;
29539
+ revision?: number;
29540
+ sent_at?: string | null;
29541
+ status?: string;
29542
+ updated_at?: string;
29543
+ };
29544
+ Update: {
29545
+ attempts?: number;
29546
+ created_at?: string;
29547
+ first_queued_at?: string;
29548
+ fulfillment_order_id?: string | null;
29549
+ id?: string;
29550
+ last_error?: string | null;
29551
+ last_error_at?: string | null;
29552
+ last_sent_hash?: string | null;
29553
+ locked_by?: string | null;
29554
+ locked_until?: string | null;
29555
+ next_attempt_at?: string;
29556
+ order_ref?: string;
29557
+ payload?: import("../integrations/supabase/types").Json;
29558
+ payload_hash?: string | null;
29559
+ revision?: number;
29560
+ sent_at?: string | null;
29561
+ status?: string;
29562
+ updated_at?: string;
29563
+ };
29564
+ Relationships: [];
29565
+ };
28864
29566
  logistics_formulas: {
28865
29567
  Row: {
28866
29568
  created_at: string;
@@ -29724,14 +30426,17 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
29724
30426
  };
29725
30427
  mailbox_messages: {
29726
30428
  Row: {
30429
+ attachments: import("../integrations/supabase/types").Json;
29727
30430
  body_html: string | null;
29728
30431
  body_text: string | null;
30432
+ cc_recipients: import("../integrations/supabase/types").Json;
29729
30433
  connection_id: string | null;
29730
30434
  created_at: string;
29731
30435
  error_message: string | null;
29732
30436
  external_id: string | null;
29733
30437
  from_email: string | null;
29734
30438
  from_name: string | null;
30439
+ has_attachments: boolean;
29735
30440
  id: string;
29736
30441
  message_id: string | null;
29737
30442
  profile_id: string | null;
@@ -29739,18 +30444,22 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
29739
30444
  received_at: string | null;
29740
30445
  status: string;
29741
30446
  subject: string | null;
30447
+ to_recipients: import("../integrations/supabase/types").Json;
29742
30448
  uid: number | null;
29743
30449
  updated_at: string;
29744
30450
  };
29745
30451
  Insert: {
30452
+ attachments?: import("../integrations/supabase/types").Json;
29746
30453
  body_html?: string | null;
29747
30454
  body_text?: string | null;
30455
+ cc_recipients?: import("../integrations/supabase/types").Json;
29748
30456
  connection_id?: string | null;
29749
30457
  created_at?: string;
29750
30458
  error_message?: string | null;
29751
30459
  external_id?: string | null;
29752
30460
  from_email?: string | null;
29753
30461
  from_name?: string | null;
30462
+ has_attachments?: boolean;
29754
30463
  id?: string;
29755
30464
  message_id?: string | null;
29756
30465
  profile_id?: string | null;
@@ -29758,18 +30467,22 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
29758
30467
  received_at?: string | null;
29759
30468
  status?: string;
29760
30469
  subject?: string | null;
30470
+ to_recipients?: import("../integrations/supabase/types").Json;
29761
30471
  uid?: number | null;
29762
30472
  updated_at?: string;
29763
30473
  };
29764
30474
  Update: {
30475
+ attachments?: import("../integrations/supabase/types").Json;
29765
30476
  body_html?: string | null;
29766
30477
  body_text?: string | null;
30478
+ cc_recipients?: import("../integrations/supabase/types").Json;
29767
30479
  connection_id?: string | null;
29768
30480
  created_at?: string;
29769
30481
  error_message?: string | null;
29770
30482
  external_id?: string | null;
29771
30483
  from_email?: string | null;
29772
30484
  from_name?: string | null;
30485
+ has_attachments?: boolean;
29773
30486
  id?: string;
29774
30487
  message_id?: string | null;
29775
30488
  profile_id?: string | null;
@@ -29777,6 +30490,7 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
29777
30490
  received_at?: string | null;
29778
30491
  status?: string;
29779
30492
  subject?: string | null;
30493
+ to_recipients?: import("../integrations/supabase/types").Json;
29780
30494
  uid?: number | null;
29781
30495
  updated_at?: string;
29782
30496
  };
@@ -30184,6 +30898,36 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
30184
30898
  };
30185
30899
  Relationships: [];
30186
30900
  };
30901
+ module_registry: {
30902
+ Row: {
30903
+ created_at: string;
30904
+ is_active: boolean;
30905
+ last_seen_at: string;
30906
+ module_id: string;
30907
+ name: string;
30908
+ shell_id: string | null;
30909
+ sort_order: number | null;
30910
+ };
30911
+ Insert: {
30912
+ created_at?: string;
30913
+ is_active?: boolean;
30914
+ last_seen_at?: string;
30915
+ module_id: string;
30916
+ name: string;
30917
+ shell_id?: string | null;
30918
+ sort_order?: number | null;
30919
+ };
30920
+ Update: {
30921
+ created_at?: string;
30922
+ is_active?: boolean;
30923
+ last_seen_at?: string;
30924
+ module_id?: string;
30925
+ name?: string;
30926
+ shell_id?: string | null;
30927
+ sort_order?: number | null;
30928
+ };
30929
+ Relationships: [];
30930
+ };
30187
30931
  module_runtime_config: {
30188
30932
  Row: {
30189
30933
  key: string;
@@ -31243,6 +31987,42 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
31243
31987
  };
31244
31988
  Relationships: [];
31245
31989
  };
31990
+ order_invoice_links: {
31991
+ Row: {
31992
+ attempts: number;
31993
+ created_at: string;
31994
+ error_message: string | null;
31995
+ id: string;
31996
+ invoice_number: string | null;
31997
+ order_id: string;
31998
+ processed_at: string | null;
31999
+ status: string;
32000
+ updated_at: string;
32001
+ };
32002
+ Insert: {
32003
+ attempts?: number;
32004
+ created_at?: string;
32005
+ error_message?: string | null;
32006
+ id?: string;
32007
+ invoice_number?: string | null;
32008
+ order_id: string;
32009
+ processed_at?: string | null;
32010
+ status?: string;
32011
+ updated_at?: string;
32012
+ };
32013
+ Update: {
32014
+ attempts?: number;
32015
+ created_at?: string;
32016
+ error_message?: string | null;
32017
+ id?: string;
32018
+ invoice_number?: string | null;
32019
+ order_id?: string;
32020
+ processed_at?: string | null;
32021
+ status?: string;
32022
+ updated_at?: string;
32023
+ };
32024
+ Relationships: [];
32025
+ };
31246
32026
  order_items: {
31247
32027
  Row: {
31248
32028
  crates_per_layer: number | null;
@@ -31425,6 +32205,7 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
31425
32205
  delivery_date: string | null;
31426
32206
  floriday_sales_order_id: string | null;
31427
32207
  id: string;
32208
+ invoice_due_at: string | null;
31428
32209
  is_reservation: boolean;
31429
32210
  notes: string | null;
31430
32211
  order_date: string;
@@ -31446,6 +32227,7 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
31446
32227
  delivery_date?: string | null;
31447
32228
  floriday_sales_order_id?: string | null;
31448
32229
  id?: string;
32230
+ invoice_due_at?: string | null;
31449
32231
  is_reservation?: boolean;
31450
32232
  notes?: string | null;
31451
32233
  order_date?: string;
@@ -31467,6 +32249,7 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
31467
32249
  delivery_date?: string | null;
31468
32250
  floriday_sales_order_id?: string | null;
31469
32251
  id?: string;
32252
+ invoice_due_at?: string | null;
31470
32253
  is_reservation?: boolean;
31471
32254
  notes?: string | null;
31472
32255
  order_date?: string;
@@ -32663,22 +33446,27 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
32663
33446
  created_at: string;
32664
33447
  documentnaam: string;
32665
33448
  documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
33449
+ extern_job_id: string | null;
32666
33450
  foutmelding: string | null;
32667
33451
  gebruiker_id: string | null;
32668
33452
  gebruiker_naam: string;
32669
33453
  gestart_op: string | null;
32670
33454
  id: string;
33455
+ idempotentie_sleutel: string | null;
32671
33456
  is_herprint: boolean;
32672
33457
  kopieen: number;
32673
33458
  layout_id: string | null;
32674
33459
  opgepakt_op: string | null;
32675
33460
  paginas: number;
32676
33461
  payload: import("../integrations/supabase/types").Json;
33462
+ pdf_base64: string | null;
33463
+ pdf_url: string | null;
32677
33464
  pogingen: number;
32678
33465
  printer_id: string | null;
32679
33466
  render_html: string | null;
32680
33467
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
32681
33468
  updated_at: string;
33469
+ volgende_poging: string | null;
32682
33470
  voltooid_op: string | null;
32683
33471
  };
32684
33472
  Insert: {
@@ -32687,22 +33475,27 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
32687
33475
  created_at?: string;
32688
33476
  documentnaam?: string;
32689
33477
  documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
33478
+ extern_job_id?: string | null;
32690
33479
  foutmelding?: string | null;
32691
33480
  gebruiker_id?: string | null;
32692
33481
  gebruiker_naam?: string;
32693
33482
  gestart_op?: string | null;
32694
33483
  id?: string;
33484
+ idempotentie_sleutel?: string | null;
32695
33485
  is_herprint?: boolean;
32696
33486
  kopieen?: number;
32697
33487
  layout_id?: string | null;
32698
33488
  opgepakt_op?: string | null;
32699
33489
  paginas?: number;
32700
33490
  payload?: import("../integrations/supabase/types").Json;
33491
+ pdf_base64?: string | null;
33492
+ pdf_url?: string | null;
32701
33493
  pogingen?: number;
32702
33494
  printer_id?: string | null;
32703
33495
  render_html?: string | null;
32704
33496
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
32705
33497
  updated_at?: string;
33498
+ volgende_poging?: string | null;
32706
33499
  voltooid_op?: string | null;
32707
33500
  };
32708
33501
  Update: {
@@ -32711,22 +33504,27 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
32711
33504
  created_at?: string;
32712
33505
  documentnaam?: string;
32713
33506
  documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
33507
+ extern_job_id?: string | null;
32714
33508
  foutmelding?: string | null;
32715
33509
  gebruiker_id?: string | null;
32716
33510
  gebruiker_naam?: string;
32717
33511
  gestart_op?: string | null;
32718
33512
  id?: string;
33513
+ idempotentie_sleutel?: string | null;
32719
33514
  is_herprint?: boolean;
32720
33515
  kopieen?: number;
32721
33516
  layout_id?: string | null;
32722
33517
  opgepakt_op?: string | null;
32723
33518
  paginas?: number;
32724
33519
  payload?: import("../integrations/supabase/types").Json;
33520
+ pdf_base64?: string | null;
33521
+ pdf_url?: string | null;
32725
33522
  pogingen?: number;
32726
33523
  printer_id?: string | null;
32727
33524
  render_html?: string | null;
32728
33525
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
32729
33526
  updated_at?: string;
33527
+ volgende_poging?: string | null;
32730
33528
  voltooid_op?: string | null;
32731
33529
  };
32732
33530
  Relationships: [{
@@ -32749,6 +33547,63 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
32749
33547
  referencedColumns: ["id"];
32750
33548
  }];
32751
33549
  };
33550
+ print_queue_runners: {
33551
+ Row: {
33552
+ actief: boolean;
33553
+ basis_url: string;
33554
+ created_at: string;
33555
+ id: string;
33556
+ laatst_gezien: string;
33557
+ tick_sleutel: string;
33558
+ updated_at: string;
33559
+ };
33560
+ Insert: {
33561
+ actief?: boolean;
33562
+ basis_url: string;
33563
+ created_at?: string;
33564
+ id?: string;
33565
+ laatst_gezien?: string;
33566
+ tick_sleutel?: string;
33567
+ updated_at?: string;
33568
+ };
33569
+ Update: {
33570
+ actief?: boolean;
33571
+ basis_url?: string;
33572
+ created_at?: string;
33573
+ id?: string;
33574
+ laatst_gezien?: string;
33575
+ tick_sleutel?: string;
33576
+ updated_at?: string;
33577
+ };
33578
+ Relationships: [];
33579
+ };
33580
+ print_queue_settings: {
33581
+ Row: {
33582
+ bewaar_bestanden_dagen: number;
33583
+ bewaar_opdrachten_dagen: number;
33584
+ created_at: string;
33585
+ dubbel_venster_minuten: number;
33586
+ id: string;
33587
+ updated_at: string;
33588
+ };
33589
+ Insert: {
33590
+ bewaar_bestanden_dagen?: number;
33591
+ bewaar_opdrachten_dagen?: number;
33592
+ created_at?: string;
33593
+ dubbel_venster_minuten?: number;
33594
+ id?: string;
33595
+ updated_at?: string;
33596
+ };
33597
+ Update: {
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
+ Relationships: [];
33606
+ };
32752
33607
  print_rules: {
32753
33608
  Row: {
32754
33609
  actief: boolean;
@@ -32909,6 +33764,7 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
32909
33764
  agent_id: string | null;
32910
33765
  created_at: string;
32911
33766
  driver: string;
33767
+ extern_printer_id: string | null;
32912
33768
  id: string;
32913
33769
  ip_adres: string | null;
32914
33770
  laatst_gezien: string | null;
@@ -32930,6 +33786,7 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
32930
33786
  agent_id?: string | null;
32931
33787
  created_at?: string;
32932
33788
  driver?: string;
33789
+ extern_printer_id?: string | null;
32933
33790
  id?: string;
32934
33791
  ip_adres?: string | null;
32935
33792
  laatst_gezien?: string | null;
@@ -32951,6 +33808,7 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
32951
33808
  agent_id?: string | null;
32952
33809
  created_at?: string;
32953
33810
  driver?: string;
33811
+ extern_printer_id?: string | null;
32954
33812
  id?: string;
32955
33813
  ip_adres?: string | null;
32956
33814
  laatst_gezien?: string | null;
@@ -35586,6 +36444,8 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
35586
36444
  };
35587
36445
  twinfield_invoice_settings: {
35588
36446
  Row: {
36447
+ auto_invoice_enabled: boolean;
36448
+ auto_invoice_trigger_statuses: string[];
35589
36449
  created_at: string;
35590
36450
  debtor_gl_account: string;
35591
36451
  default_credit_invoice_type: string | null;
@@ -35606,6 +36466,8 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
35606
36466
  vat_code_export: string | null;
35607
36467
  };
35608
36468
  Insert: {
36469
+ auto_invoice_enabled?: boolean;
36470
+ auto_invoice_trigger_statuses?: string[];
35609
36471
  created_at?: string;
35610
36472
  debtor_gl_account?: string;
35611
36473
  default_credit_invoice_type?: string | null;
@@ -35626,6 +36488,8 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
35626
36488
  vat_code_export?: string | null;
35627
36489
  };
35628
36490
  Update: {
36491
+ auto_invoice_enabled?: boolean;
36492
+ auto_invoice_trigger_statuses?: string[];
35629
36493
  created_at?: string;
35630
36494
  debtor_gl_account?: string;
35631
36495
  default_credit_invoice_type?: string | null;
@@ -36688,6 +37552,33 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
36688
37552
  referencedColumns: ["id"];
36689
37553
  }];
36690
37554
  };
37555
+ user_module_permissions: {
37556
+ Row: {
37557
+ created_at: string;
37558
+ id: string;
37559
+ module_id: string;
37560
+ permission: string;
37561
+ updated_at: string;
37562
+ user_id: string;
37563
+ };
37564
+ Insert: {
37565
+ created_at?: string;
37566
+ id?: string;
37567
+ module_id: string;
37568
+ permission: string;
37569
+ updated_at?: string;
37570
+ user_id: string;
37571
+ };
37572
+ Update: {
37573
+ created_at?: string;
37574
+ id?: string;
37575
+ module_id?: string;
37576
+ permission?: string;
37577
+ updated_at?: string;
37578
+ user_id?: string;
37579
+ };
37580
+ Relationships: [];
37581
+ };
36691
37582
  user_roles: {
36692
37583
  Row: {
36693
37584
  created_at: string;
@@ -38521,6 +39412,10 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
38521
39412
  processed_items: number;
38522
39413
  }[];
38523
39414
  };
39415
+ backfill_order_auto_invoice_queue: {
39416
+ Args: never;
39417
+ Returns: number;
39418
+ };
38524
39419
  calculate_layer_stock: {
38525
39420
  Args: {
38526
39421
  p_product_id: string;
@@ -38555,6 +39450,77 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
38555
39450
  };
38556
39451
  Returns: import("../integrations/supabase/types").Json;
38557
39452
  };
39453
+ claim_cloud_print_jobs: {
39454
+ Args: {
39455
+ _max?: number;
39456
+ };
39457
+ Returns: {
39458
+ agent_id: string | null;
39459
+ bron_job_id: string | null;
39460
+ created_at: string;
39461
+ documentnaam: string;
39462
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
39463
+ extern_job_id: string | null;
39464
+ foutmelding: string | null;
39465
+ gebruiker_id: string | null;
39466
+ gebruiker_naam: string;
39467
+ gestart_op: string | null;
39468
+ id: string;
39469
+ idempotentie_sleutel: string | null;
39470
+ is_herprint: boolean;
39471
+ kopieen: number;
39472
+ layout_id: string | null;
39473
+ opgepakt_op: string | null;
39474
+ paginas: number;
39475
+ payload: import("../integrations/supabase/types").Json;
39476
+ pdf_base64: string | null;
39477
+ pdf_url: string | null;
39478
+ pogingen: number;
39479
+ printer_id: string | null;
39480
+ render_html: string | null;
39481
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
39482
+ updated_at: string;
39483
+ volgende_poging: string | null;
39484
+ voltooid_op: string | null;
39485
+ }[];
39486
+ SetofOptions: {
39487
+ from: "*";
39488
+ to: "print_jobs";
39489
+ isOneToOne: false;
39490
+ isSetofReturn: true;
39491
+ };
39492
+ };
39493
+ claim_floriday_stock_queue: {
39494
+ Args: {
39495
+ p_limit?: number;
39496
+ p_worker?: string;
39497
+ };
39498
+ Returns: {
39499
+ attempts: number;
39500
+ connection_id: string;
39501
+ created_at: string;
39502
+ desired_available: boolean | null;
39503
+ gateway_attempt_id: string | null;
39504
+ id: string;
39505
+ last_error: string | null;
39506
+ locked_at: string | null;
39507
+ locked_by: string | null;
39508
+ next_attempt_at: string;
39509
+ number_of_pieces: number;
39510
+ sent_at: string | null;
39511
+ status: string;
39512
+ superseded_by: string | null;
39513
+ trade_item_id: string;
39514
+ updated_at: string;
39515
+ user_id: string;
39516
+ }[];
39517
+ SetofOptions: {
39518
+ from: "*";
39519
+ to: "floriday_continuous_stock_queue";
39520
+ isOneToOne: false;
39521
+ isSetofReturn: true;
39522
+ };
39523
+ };
38558
39524
  claim_logistics_tasks: {
38559
39525
  Args: {
38560
39526
  _limit?: number;
@@ -38614,22 +39580,27 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
38614
39580
  created_at: string;
38615
39581
  documentnaam: string;
38616
39582
  documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
39583
+ extern_job_id: string | null;
38617
39584
  foutmelding: string | null;
38618
39585
  gebruiker_id: string | null;
38619
39586
  gebruiker_naam: string;
38620
39587
  gestart_op: string | null;
38621
39588
  id: string;
39589
+ idempotentie_sleutel: string | null;
38622
39590
  is_herprint: boolean;
38623
39591
  kopieen: number;
38624
39592
  layout_id: string | null;
38625
39593
  opgepakt_op: string | null;
38626
39594
  paginas: number;
38627
39595
  payload: import("../integrations/supabase/types").Json;
39596
+ pdf_base64: string | null;
39597
+ pdf_url: string | null;
38628
39598
  pogingen: number;
38629
39599
  printer_id: string | null;
38630
39600
  render_html: string | null;
38631
39601
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
38632
39602
  updated_at: string;
39603
+ volgende_poging: string | null;
38633
39604
  voltooid_op: string | null;
38634
39605
  }[];
38635
39606
  SetofOptions: {
@@ -38667,10 +39638,28 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
38667
39638
  isSetofReturn: true;
38668
39639
  };
38669
39640
  };
39641
+ cleanup_floriday_stock_queue: {
39642
+ Args: never;
39643
+ Returns: undefined;
39644
+ };
38670
39645
  cleanup_old_bookings: {
38671
39646
  Args: never;
38672
39647
  Returns: undefined;
38673
39648
  };
39649
+ cleanup_voorraad_module_history: {
39650
+ Args: never;
39651
+ Returns: undefined;
39652
+ };
39653
+ complete_floriday_stock_queue: {
39654
+ Args: {
39655
+ p_attempt_id?: string;
39656
+ p_error?: string;
39657
+ p_id: string;
39658
+ p_ok: boolean;
39659
+ p_permanent?: boolean;
39660
+ };
39661
+ Returns: undefined;
39662
+ };
38674
39663
  consume_bom_for_production: {
38675
39664
  Args: {
38676
39665
  p_connection_id: string;
@@ -38782,6 +39771,13 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
38782
39771
  };
38783
39772
  Returns: import("../integrations/supabase/types").Json;
38784
39773
  };
39774
+ effective_module_permission: {
39775
+ Args: {
39776
+ _module_id: string;
39777
+ _user_id: string;
39778
+ };
39779
+ Returns: string;
39780
+ };
38785
39781
  email_auth_decrypt: {
38786
39782
  Args: {
38787
39783
  cipher: string;
@@ -39585,6 +40581,51 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
39585
40581
  isSetofReturn: false;
39586
40582
  };
39587
40583
  };
40584
+ logistics_floriday_claim_pushes: {
40585
+ Args: {
40586
+ _lease_seconds?: number;
40587
+ _limit?: number;
40588
+ _worker?: string;
40589
+ };
40590
+ Returns: {
40591
+ attempts: number;
40592
+ fulfillment_order_id: string;
40593
+ id: string;
40594
+ last_sent_hash: string;
40595
+ order_ref: string;
40596
+ payload: import("../integrations/supabase/types").Json;
40597
+ payload_hash: string;
40598
+ revision: number;
40599
+ }[];
40600
+ };
40601
+ logistics_floriday_finish_push: {
40602
+ Args: {
40603
+ _error?: string;
40604
+ _fulfillment_order_id?: string;
40605
+ _id: string;
40606
+ _max_age_hours?: number;
40607
+ _max_attempts?: number;
40608
+ _ok: boolean;
40609
+ _permanent?: boolean;
40610
+ _revision: number;
40611
+ _sent_hash?: string;
40612
+ };
40613
+ Returns: string;
40614
+ };
40615
+ logistics_floriday_prune_pushes: {
40616
+ Args: {
40617
+ _days?: number;
40618
+ };
40619
+ Returns: number;
40620
+ };
40621
+ logistics_floriday_queue_push: {
40622
+ Args: {
40623
+ _order_ref: string;
40624
+ _payload?: import("../integrations/supabase/types").Json;
40625
+ _payload_hash?: string;
40626
+ };
40627
+ Returns: string;
40628
+ };
39588
40629
  logistics_live_carriers: {
39589
40630
  Args: {
39590
40631
  p_order_ref: string;
@@ -39875,6 +40916,13 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
39875
40916
  };
39876
40917
  Returns: undefined;
39877
40918
  };
40919
+ my_module_permissions: {
40920
+ Args: never;
40921
+ Returns: {
40922
+ module_id: string;
40923
+ permission: string;
40924
+ }[];
40925
+ };
39878
40926
  next_manufacture_partij: {
39879
40927
  Args: {
39880
40928
  _tenant_id: string;
@@ -39925,6 +40973,13 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
39925
40973
  };
39926
40974
  Returns: boolean;
39927
40975
  };
40976
+ opruim_print_historie: {
40977
+ Args: never;
40978
+ Returns: {
40979
+ ontdaan: number;
40980
+ verwijderd: number;
40981
+ }[];
40982
+ };
39928
40983
  order_number_prefix: {
39929
40984
  Args: {
39930
40985
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -39932,6 +40987,15 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
39932
40987
  };
39933
40988
  Returns: string;
39934
40989
  };
40990
+ pick_active_printers: {
40991
+ Args: never;
40992
+ Returns: {
40993
+ id: string;
40994
+ locatie: string;
40995
+ naam: string;
40996
+ online: boolean;
40997
+ }[];
40998
+ };
39935
40999
  pick_claim_document: {
39936
41000
  Args: {
39937
41001
  _queue_item_id: string;
@@ -40118,6 +41182,52 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
40118
41182
  };
40119
41183
  Returns: undefined;
40120
41184
  };
41185
+ pick_reset_print: {
41186
+ Args: {
41187
+ _queue_item_id: string;
41188
+ _session_id: string;
41189
+ };
41190
+ Returns: {
41191
+ announced_at: string;
41192
+ assigned_user_id: string | null;
41193
+ barcode: string | null;
41194
+ cancelled_at: string | null;
41195
+ cart_count: number;
41196
+ completed_at: string | null;
41197
+ country_code: string | null;
41198
+ created_at: string;
41199
+ customer_name: string | null;
41200
+ delivery_address: string | null;
41201
+ document_number: string | null;
41202
+ document_type_id: string | null;
41203
+ due_at: string | null;
41204
+ id: string;
41205
+ is_urgent: boolean;
41206
+ line_count: number;
41207
+ order_number: string | null;
41208
+ order_type: string | null;
41209
+ payload: import("../integrations/supabase/types").Json;
41210
+ print_count: number;
41211
+ print_job_id: string | null;
41212
+ printed_at: string | null;
41213
+ printed_by: string | null;
41214
+ printer_id: string | null;
41215
+ priority: number;
41216
+ reference: string | null;
41217
+ route: string | null;
41218
+ screen_id: string | null;
41219
+ station_id: string | null;
41220
+ status_id: string | null;
41221
+ updated_at: string;
41222
+ warnings: import("../integrations/supabase/types").Json;
41223
+ };
41224
+ SetofOptions: {
41225
+ from: "*";
41226
+ to: "pick_queue";
41227
+ isOneToOne: true;
41228
+ isSetofReturn: false;
41229
+ };
41230
+ };
40121
41231
  pick_station_dashboard: {
40122
41232
  Args: never;
40123
41233
  Returns: {
@@ -40264,6 +41374,12 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
40264
41374
  };
40265
41375
  Returns: undefined;
40266
41376
  };
41377
+ reset_stalled_floriday_stock_queue: {
41378
+ Args: {
41379
+ p_include_failed?: boolean;
41380
+ };
41381
+ Returns: number;
41382
+ };
40267
41383
  resolve_group_allocation: {
40268
41384
  Args: {
40269
41385
  _needed: number;
@@ -40308,14 +41424,28 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
40308
41424
  };
40309
41425
  Returns: import("../integrations/supabase/types").Json;
40310
41426
  };
41427
+ ruim_print_jobs_op: {
41428
+ Args: {
41429
+ _bewaar_dagen?: number;
41430
+ };
41431
+ Returns: number;
41432
+ };
40311
41433
  run_floriday_continuous_stock_sync: {
40312
41434
  Args: never;
40313
41435
  Returns: undefined;
40314
41436
  };
41437
+ run_floriday_stock_queue_process: {
41438
+ Args: never;
41439
+ Returns: undefined;
41440
+ };
40315
41441
  run_logistics_tasks_dispatch: {
40316
41442
  Args: never;
40317
41443
  Returns: undefined;
40318
41444
  };
41445
+ run_print_queue_ticks: {
41446
+ Args: never;
41447
+ Returns: number;
41448
+ };
40319
41449
  run_twinfield_queue_tick: {
40320
41450
  Args: never;
40321
41451
  Returns: undefined;
@@ -40556,6 +41686,13 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
40556
41686
  };
40557
41687
  Returns: number;
40558
41688
  };
41689
+ schedule_floriday_stock_queue_process: {
41690
+ Args: {
41691
+ p_apikey: string;
41692
+ p_url: string;
41693
+ };
41694
+ Returns: number;
41695
+ };
40559
41696
  schedule_floriday_token_refresh: {
40560
41697
  Args: {
40561
41698
  p_apikey: string;
@@ -40696,6 +41833,15 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
40696
41833
  };
40697
41834
  Returns: undefined;
40698
41835
  };
41836
+ trade_item_stock_duplicates: {
41837
+ Args: never;
41838
+ Returns: {
41839
+ keys: string[];
41840
+ product_id: string;
41841
+ product_name: string;
41842
+ row_count: number;
41843
+ }[];
41844
+ };
40699
41845
  try_debtor_lock: {
40700
41846
  Args: {
40701
41847
  _group_key: string;
@@ -40745,7 +41891,7 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
40745
41891
  };
40746
41892
  Enums: {
40747
41893
  ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
40748
- app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin";
41894
+ app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
40749
41895
  doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
40750
41896
  doc_orientation: "portrait" | "landscape";
40751
41897
  exact_env: "staging" | "live";
@@ -42462,7 +43608,7 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
42462
43608
  city: string | null;
42463
43609
  country: string | null;
42464
43610
  created_at: string;
42465
- customer_id: string | null;
43611
+ customer_id: string;
42466
43612
  external_key: string | null;
42467
43613
  external_provider: string | null;
42468
43614
  floriday_location_id: string | null;
@@ -42486,7 +43632,7 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
42486
43632
  city?: string | null;
42487
43633
  country?: string | null;
42488
43634
  created_at?: string;
42489
- customer_id?: string | null;
43635
+ customer_id: string;
42490
43636
  external_key?: string | null;
42491
43637
  external_provider?: string | null;
42492
43638
  floriday_location_id?: string | null;
@@ -42510,7 +43656,7 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
42510
43656
  city?: string | null;
42511
43657
  country?: string | null;
42512
43658
  created_at?: string;
42513
- customer_id?: string | null;
43659
+ customer_id?: string;
42514
43660
  external_key?: string | null;
42515
43661
  external_provider?: string | null;
42516
43662
  floriday_location_id?: string | null;
@@ -46473,12 +47619,17 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
46473
47619
  attempts: number;
46474
47620
  connection_id: string;
46475
47621
  created_at: string;
47622
+ desired_available: boolean | null;
46476
47623
  gateway_attempt_id: string | null;
46477
47624
  id: string;
46478
47625
  last_error: string | null;
47626
+ locked_at: string | null;
47627
+ locked_by: string | null;
47628
+ next_attempt_at: string;
46479
47629
  number_of_pieces: number;
46480
47630
  sent_at: string | null;
46481
47631
  status: string;
47632
+ superseded_by: string | null;
46482
47633
  trade_item_id: string;
46483
47634
  updated_at: string;
46484
47635
  user_id: string;
@@ -46487,12 +47638,17 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
46487
47638
  attempts?: number;
46488
47639
  connection_id: string;
46489
47640
  created_at?: string;
47641
+ desired_available?: boolean | null;
46490
47642
  gateway_attempt_id?: string | null;
46491
47643
  id?: string;
46492
47644
  last_error?: string | null;
47645
+ locked_at?: string | null;
47646
+ locked_by?: string | null;
47647
+ next_attempt_at?: string;
46493
47648
  number_of_pieces?: number;
46494
47649
  sent_at?: string | null;
46495
47650
  status?: string;
47651
+ superseded_by?: string | null;
46496
47652
  trade_item_id: string;
46497
47653
  updated_at?: string;
46498
47654
  user_id: string;
@@ -46501,12 +47657,17 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
46501
47657
  attempts?: number;
46502
47658
  connection_id?: string;
46503
47659
  created_at?: string;
47660
+ desired_available?: boolean | null;
46504
47661
  gateway_attempt_id?: string | null;
46505
47662
  id?: string;
46506
47663
  last_error?: string | null;
47664
+ locked_at?: string | null;
47665
+ locked_by?: string | null;
47666
+ next_attempt_at?: string;
46507
47667
  number_of_pieces?: number;
46508
47668
  sent_at?: string | null;
46509
47669
  status?: string;
47670
+ superseded_by?: string | null;
46510
47671
  trade_item_id?: string;
46511
47672
  updated_at?: string;
46512
47673
  user_id?: string;
@@ -47243,6 +48404,7 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
47243
48404
  Row: {
47244
48405
  buyer_organization_id: string | null;
47245
48406
  connection_id: string;
48407
+ controlled_at: string | null;
47246
48408
  created_at: string;
47247
48409
  data: import("../integrations/supabase/types").Json;
47248
48410
  floriday_id: string;
@@ -47254,6 +48416,7 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
47254
48416
  Insert: {
47255
48417
  buyer_organization_id?: string | null;
47256
48418
  connection_id: string;
48419
+ controlled_at?: string | null;
47257
48420
  created_at?: string;
47258
48421
  data: import("../integrations/supabase/types").Json;
47259
48422
  floriday_id: string;
@@ -47265,6 +48428,7 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
47265
48428
  Update: {
47266
48429
  buyer_organization_id?: string | null;
47267
48430
  connection_id?: string;
48431
+ controlled_at?: string | null;
47268
48432
  created_at?: string;
47269
48433
  data?: import("../integrations/supabase/types").Json;
47270
48434
  floriday_id?: string;
@@ -48166,6 +49330,54 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
48166
49330
  };
48167
49331
  Relationships: [];
48168
49332
  };
49333
+ invoice_timing_settings: {
49334
+ Row: {
49335
+ anchor: string;
49336
+ business_days_only: boolean;
49337
+ created_at: string;
49338
+ enabled: boolean;
49339
+ id: string;
49340
+ offset_days: number;
49341
+ pickup_anchor: string;
49342
+ pickup_business_days_only: boolean;
49343
+ pickup_offset_days: number;
49344
+ pickup_time_of_day: string;
49345
+ singleton: boolean;
49346
+ time_of_day: string;
49347
+ updated_at: string;
49348
+ };
49349
+ Insert: {
49350
+ anchor?: string;
49351
+ business_days_only?: boolean;
49352
+ created_at?: string;
49353
+ enabled?: boolean;
49354
+ id?: string;
49355
+ offset_days?: number;
49356
+ pickup_anchor?: string;
49357
+ pickup_business_days_only?: boolean;
49358
+ pickup_offset_days?: number;
49359
+ pickup_time_of_day?: string;
49360
+ singleton?: boolean;
49361
+ time_of_day?: string;
49362
+ updated_at?: string;
49363
+ };
49364
+ Update: {
49365
+ anchor?: string;
49366
+ business_days_only?: boolean;
49367
+ created_at?: string;
49368
+ enabled?: boolean;
49369
+ id?: string;
49370
+ offset_days?: number;
49371
+ pickup_anchor?: string;
49372
+ pickup_business_days_only?: boolean;
49373
+ pickup_offset_days?: number;
49374
+ pickup_time_of_day?: string;
49375
+ singleton?: boolean;
49376
+ time_of_day?: string;
49377
+ updated_at?: string;
49378
+ };
49379
+ Relationships: [];
49380
+ };
48169
49381
  itk_contact_persons: {
48170
49382
  Row: {
48171
49383
  created_at: string;
@@ -49255,6 +50467,69 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
49255
50467
  };
49256
50468
  Relationships: [];
49257
50469
  };
50470
+ logistics_floriday_pushes: {
50471
+ Row: {
50472
+ attempts: number;
50473
+ created_at: string;
50474
+ first_queued_at: string;
50475
+ fulfillment_order_id: string | null;
50476
+ id: string;
50477
+ last_error: string | null;
50478
+ last_error_at: string | null;
50479
+ last_sent_hash: string | null;
50480
+ locked_by: string | null;
50481
+ locked_until: string | null;
50482
+ next_attempt_at: string;
50483
+ order_ref: string;
50484
+ payload: import("../integrations/supabase/types").Json;
50485
+ payload_hash: string | null;
50486
+ revision: number;
50487
+ sent_at: string | null;
50488
+ status: string;
50489
+ updated_at: string;
50490
+ };
50491
+ Insert: {
50492
+ attempts?: number;
50493
+ created_at?: string;
50494
+ first_queued_at?: string;
50495
+ fulfillment_order_id?: string | null;
50496
+ id?: string;
50497
+ last_error?: string | null;
50498
+ last_error_at?: string | null;
50499
+ last_sent_hash?: string | null;
50500
+ locked_by?: string | null;
50501
+ locked_until?: string | null;
50502
+ next_attempt_at?: string;
50503
+ order_ref: string;
50504
+ payload?: import("../integrations/supabase/types").Json;
50505
+ payload_hash?: string | null;
50506
+ revision?: number;
50507
+ sent_at?: string | null;
50508
+ status?: string;
50509
+ updated_at?: string;
50510
+ };
50511
+ Update: {
50512
+ attempts?: number;
50513
+ created_at?: string;
50514
+ first_queued_at?: string;
50515
+ fulfillment_order_id?: string | null;
50516
+ id?: string;
50517
+ last_error?: string | null;
50518
+ last_error_at?: string | null;
50519
+ last_sent_hash?: string | null;
50520
+ locked_by?: string | null;
50521
+ locked_until?: string | null;
50522
+ next_attempt_at?: string;
50523
+ order_ref?: string;
50524
+ payload?: import("../integrations/supabase/types").Json;
50525
+ payload_hash?: string | null;
50526
+ revision?: number;
50527
+ sent_at?: string | null;
50528
+ status?: string;
50529
+ updated_at?: string;
50530
+ };
50531
+ Relationships: [];
50532
+ };
49258
50533
  logistics_formulas: {
49259
50534
  Row: {
49260
50535
  created_at: string;
@@ -50118,14 +51393,17 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
50118
51393
  };
50119
51394
  mailbox_messages: {
50120
51395
  Row: {
51396
+ attachments: import("../integrations/supabase/types").Json;
50121
51397
  body_html: string | null;
50122
51398
  body_text: string | null;
51399
+ cc_recipients: import("../integrations/supabase/types").Json;
50123
51400
  connection_id: string | null;
50124
51401
  created_at: string;
50125
51402
  error_message: string | null;
50126
51403
  external_id: string | null;
50127
51404
  from_email: string | null;
50128
51405
  from_name: string | null;
51406
+ has_attachments: boolean;
50129
51407
  id: string;
50130
51408
  message_id: string | null;
50131
51409
  profile_id: string | null;
@@ -50133,18 +51411,22 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
50133
51411
  received_at: string | null;
50134
51412
  status: string;
50135
51413
  subject: string | null;
51414
+ to_recipients: import("../integrations/supabase/types").Json;
50136
51415
  uid: number | null;
50137
51416
  updated_at: string;
50138
51417
  };
50139
51418
  Insert: {
51419
+ attachments?: import("../integrations/supabase/types").Json;
50140
51420
  body_html?: string | null;
50141
51421
  body_text?: string | null;
51422
+ cc_recipients?: import("../integrations/supabase/types").Json;
50142
51423
  connection_id?: string | null;
50143
51424
  created_at?: string;
50144
51425
  error_message?: string | null;
50145
51426
  external_id?: string | null;
50146
51427
  from_email?: string | null;
50147
51428
  from_name?: string | null;
51429
+ has_attachments?: boolean;
50148
51430
  id?: string;
50149
51431
  message_id?: string | null;
50150
51432
  profile_id?: string | null;
@@ -50152,18 +51434,22 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
50152
51434
  received_at?: string | null;
50153
51435
  status?: string;
50154
51436
  subject?: string | null;
51437
+ to_recipients?: import("../integrations/supabase/types").Json;
50155
51438
  uid?: number | null;
50156
51439
  updated_at?: string;
50157
51440
  };
50158
51441
  Update: {
51442
+ attachments?: import("../integrations/supabase/types").Json;
50159
51443
  body_html?: string | null;
50160
51444
  body_text?: string | null;
51445
+ cc_recipients?: import("../integrations/supabase/types").Json;
50161
51446
  connection_id?: string | null;
50162
51447
  created_at?: string;
50163
51448
  error_message?: string | null;
50164
51449
  external_id?: string | null;
50165
51450
  from_email?: string | null;
50166
51451
  from_name?: string | null;
51452
+ has_attachments?: boolean;
50167
51453
  id?: string;
50168
51454
  message_id?: string | null;
50169
51455
  profile_id?: string | null;
@@ -50171,6 +51457,7 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
50171
51457
  received_at?: string | null;
50172
51458
  status?: string;
50173
51459
  subject?: string | null;
51460
+ to_recipients?: import("../integrations/supabase/types").Json;
50174
51461
  uid?: number | null;
50175
51462
  updated_at?: string;
50176
51463
  };
@@ -50578,6 +51865,36 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
50578
51865
  };
50579
51866
  Relationships: [];
50580
51867
  };
51868
+ module_registry: {
51869
+ Row: {
51870
+ created_at: string;
51871
+ is_active: boolean;
51872
+ last_seen_at: string;
51873
+ module_id: string;
51874
+ name: string;
51875
+ shell_id: string | null;
51876
+ sort_order: number | null;
51877
+ };
51878
+ Insert: {
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
+ Update: {
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
+ Relationships: [];
51897
+ };
50581
51898
  module_runtime_config: {
50582
51899
  Row: {
50583
51900
  key: string;
@@ -51637,6 +52954,42 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
51637
52954
  };
51638
52955
  Relationships: [];
51639
52956
  };
52957
+ order_invoice_links: {
52958
+ Row: {
52959
+ attempts: number;
52960
+ created_at: string;
52961
+ error_message: string | null;
52962
+ id: string;
52963
+ invoice_number: string | null;
52964
+ order_id: string;
52965
+ processed_at: string | null;
52966
+ status: string;
52967
+ updated_at: string;
52968
+ };
52969
+ Insert: {
52970
+ attempts?: number;
52971
+ created_at?: string;
52972
+ error_message?: string | null;
52973
+ id?: string;
52974
+ invoice_number?: string | null;
52975
+ order_id: string;
52976
+ processed_at?: string | null;
52977
+ status?: string;
52978
+ updated_at?: string;
52979
+ };
52980
+ Update: {
52981
+ attempts?: number;
52982
+ created_at?: string;
52983
+ error_message?: string | null;
52984
+ id?: string;
52985
+ invoice_number?: string | null;
52986
+ order_id?: string;
52987
+ processed_at?: string | null;
52988
+ status?: string;
52989
+ updated_at?: string;
52990
+ };
52991
+ Relationships: [];
52992
+ };
51640
52993
  order_items: {
51641
52994
  Row: {
51642
52995
  crates_per_layer: number | null;
@@ -51819,6 +53172,7 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
51819
53172
  delivery_date: string | null;
51820
53173
  floriday_sales_order_id: string | null;
51821
53174
  id: string;
53175
+ invoice_due_at: string | null;
51822
53176
  is_reservation: boolean;
51823
53177
  notes: string | null;
51824
53178
  order_date: string;
@@ -51840,6 +53194,7 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
51840
53194
  delivery_date?: string | null;
51841
53195
  floriday_sales_order_id?: string | null;
51842
53196
  id?: string;
53197
+ invoice_due_at?: string | null;
51843
53198
  is_reservation?: boolean;
51844
53199
  notes?: string | null;
51845
53200
  order_date?: string;
@@ -51861,6 +53216,7 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
51861
53216
  delivery_date?: string | null;
51862
53217
  floriday_sales_order_id?: string | null;
51863
53218
  id?: string;
53219
+ invoice_due_at?: string | null;
51864
53220
  is_reservation?: boolean;
51865
53221
  notes?: string | null;
51866
53222
  order_date?: string;
@@ -53057,22 +54413,27 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
53057
54413
  created_at: string;
53058
54414
  documentnaam: string;
53059
54415
  documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
54416
+ extern_job_id: string | null;
53060
54417
  foutmelding: string | null;
53061
54418
  gebruiker_id: string | null;
53062
54419
  gebruiker_naam: string;
53063
54420
  gestart_op: string | null;
53064
54421
  id: string;
54422
+ idempotentie_sleutel: string | null;
53065
54423
  is_herprint: boolean;
53066
54424
  kopieen: number;
53067
54425
  layout_id: string | null;
53068
54426
  opgepakt_op: string | null;
53069
54427
  paginas: number;
53070
54428
  payload: import("../integrations/supabase/types").Json;
54429
+ pdf_base64: string | null;
54430
+ pdf_url: string | null;
53071
54431
  pogingen: number;
53072
54432
  printer_id: string | null;
53073
54433
  render_html: string | null;
53074
54434
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
53075
54435
  updated_at: string;
54436
+ volgende_poging: string | null;
53076
54437
  voltooid_op: string | null;
53077
54438
  };
53078
54439
  Insert: {
@@ -53081,22 +54442,27 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
53081
54442
  created_at?: string;
53082
54443
  documentnaam?: string;
53083
54444
  documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
54445
+ extern_job_id?: string | null;
53084
54446
  foutmelding?: string | null;
53085
54447
  gebruiker_id?: string | null;
53086
54448
  gebruiker_naam?: string;
53087
54449
  gestart_op?: string | null;
53088
54450
  id?: string;
54451
+ idempotentie_sleutel?: string | null;
53089
54452
  is_herprint?: boolean;
53090
54453
  kopieen?: number;
53091
54454
  layout_id?: string | null;
53092
54455
  opgepakt_op?: string | null;
53093
54456
  paginas?: number;
53094
54457
  payload?: import("../integrations/supabase/types").Json;
54458
+ pdf_base64?: string | null;
54459
+ pdf_url?: string | null;
53095
54460
  pogingen?: number;
53096
54461
  printer_id?: string | null;
53097
54462
  render_html?: string | null;
53098
54463
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
53099
54464
  updated_at?: string;
54465
+ volgende_poging?: string | null;
53100
54466
  voltooid_op?: string | null;
53101
54467
  };
53102
54468
  Update: {
@@ -53105,22 +54471,27 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
53105
54471
  created_at?: string;
53106
54472
  documentnaam?: string;
53107
54473
  documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
54474
+ extern_job_id?: string | null;
53108
54475
  foutmelding?: string | null;
53109
54476
  gebruiker_id?: string | null;
53110
54477
  gebruiker_naam?: string;
53111
54478
  gestart_op?: string | null;
53112
54479
  id?: string;
54480
+ idempotentie_sleutel?: string | null;
53113
54481
  is_herprint?: boolean;
53114
54482
  kopieen?: number;
53115
54483
  layout_id?: string | null;
53116
54484
  opgepakt_op?: string | null;
53117
54485
  paginas?: number;
53118
54486
  payload?: import("../integrations/supabase/types").Json;
54487
+ pdf_base64?: string | null;
54488
+ pdf_url?: string | null;
53119
54489
  pogingen?: number;
53120
54490
  printer_id?: string | null;
53121
54491
  render_html?: string | null;
53122
54492
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
53123
54493
  updated_at?: string;
54494
+ volgende_poging?: string | null;
53124
54495
  voltooid_op?: string | null;
53125
54496
  };
53126
54497
  Relationships: [{
@@ -53143,6 +54514,63 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
53143
54514
  referencedColumns: ["id"];
53144
54515
  }];
53145
54516
  };
54517
+ print_queue_runners: {
54518
+ Row: {
54519
+ actief: boolean;
54520
+ basis_url: string;
54521
+ created_at: string;
54522
+ id: string;
54523
+ laatst_gezien: string;
54524
+ tick_sleutel: string;
54525
+ updated_at: string;
54526
+ };
54527
+ Insert: {
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
+ Update: {
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
+ Relationships: [];
54546
+ };
54547
+ print_queue_settings: {
54548
+ Row: {
54549
+ bewaar_bestanden_dagen: number;
54550
+ bewaar_opdrachten_dagen: number;
54551
+ created_at: string;
54552
+ dubbel_venster_minuten: number;
54553
+ id: string;
54554
+ updated_at: string;
54555
+ };
54556
+ Insert: {
54557
+ bewaar_bestanden_dagen?: number;
54558
+ bewaar_opdrachten_dagen?: number;
54559
+ created_at?: string;
54560
+ dubbel_venster_minuten?: number;
54561
+ id?: string;
54562
+ updated_at?: string;
54563
+ };
54564
+ Update: {
54565
+ bewaar_bestanden_dagen?: number;
54566
+ bewaar_opdrachten_dagen?: number;
54567
+ created_at?: string;
54568
+ dubbel_venster_minuten?: number;
54569
+ id?: string;
54570
+ updated_at?: string;
54571
+ };
54572
+ Relationships: [];
54573
+ };
53146
54574
  print_rules: {
53147
54575
  Row: {
53148
54576
  actief: boolean;
@@ -53303,6 +54731,7 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
53303
54731
  agent_id: string | null;
53304
54732
  created_at: string;
53305
54733
  driver: string;
54734
+ extern_printer_id: string | null;
53306
54735
  id: string;
53307
54736
  ip_adres: string | null;
53308
54737
  laatst_gezien: string | null;
@@ -53324,6 +54753,7 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
53324
54753
  agent_id?: string | null;
53325
54754
  created_at?: string;
53326
54755
  driver?: string;
54756
+ extern_printer_id?: string | null;
53327
54757
  id?: string;
53328
54758
  ip_adres?: string | null;
53329
54759
  laatst_gezien?: string | null;
@@ -53345,6 +54775,7 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
53345
54775
  agent_id?: string | null;
53346
54776
  created_at?: string;
53347
54777
  driver?: string;
54778
+ extern_printer_id?: string | null;
53348
54779
  id?: string;
53349
54780
  ip_adres?: string | null;
53350
54781
  laatst_gezien?: string | null;
@@ -55980,6 +57411,8 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
55980
57411
  };
55981
57412
  twinfield_invoice_settings: {
55982
57413
  Row: {
57414
+ auto_invoice_enabled: boolean;
57415
+ auto_invoice_trigger_statuses: string[];
55983
57416
  created_at: string;
55984
57417
  debtor_gl_account: string;
55985
57418
  default_credit_invoice_type: string | null;
@@ -56000,6 +57433,8 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
56000
57433
  vat_code_export: string | null;
56001
57434
  };
56002
57435
  Insert: {
57436
+ auto_invoice_enabled?: boolean;
57437
+ auto_invoice_trigger_statuses?: string[];
56003
57438
  created_at?: string;
56004
57439
  debtor_gl_account?: string;
56005
57440
  default_credit_invoice_type?: string | null;
@@ -56020,6 +57455,8 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
56020
57455
  vat_code_export?: string | null;
56021
57456
  };
56022
57457
  Update: {
57458
+ auto_invoice_enabled?: boolean;
57459
+ auto_invoice_trigger_statuses?: string[];
56023
57460
  created_at?: string;
56024
57461
  debtor_gl_account?: string;
56025
57462
  default_credit_invoice_type?: string | null;
@@ -57082,6 +58519,33 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
57082
58519
  referencedColumns: ["id"];
57083
58520
  }];
57084
58521
  };
58522
+ user_module_permissions: {
58523
+ Row: {
58524
+ created_at: string;
58525
+ id: string;
58526
+ module_id: string;
58527
+ permission: string;
58528
+ updated_at: string;
58529
+ user_id: string;
58530
+ };
58531
+ Insert: {
58532
+ created_at?: string;
58533
+ id?: string;
58534
+ module_id: string;
58535
+ permission: string;
58536
+ updated_at?: string;
58537
+ user_id: string;
58538
+ };
58539
+ Update: {
58540
+ created_at?: string;
58541
+ id?: string;
58542
+ module_id?: string;
58543
+ permission?: string;
58544
+ updated_at?: string;
58545
+ user_id?: string;
58546
+ };
58547
+ Relationships: [];
58548
+ };
57085
58549
  user_roles: {
57086
58550
  Row: {
57087
58551
  created_at: string;
@@ -58915,6 +60379,10 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
58915
60379
  processed_items: number;
58916
60380
  }[];
58917
60381
  };
60382
+ backfill_order_auto_invoice_queue: {
60383
+ Args: never;
60384
+ Returns: number;
60385
+ };
58918
60386
  calculate_layer_stock: {
58919
60387
  Args: {
58920
60388
  p_product_id: string;
@@ -58949,6 +60417,77 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
58949
60417
  };
58950
60418
  Returns: import("../integrations/supabase/types").Json;
58951
60419
  };
60420
+ claim_cloud_print_jobs: {
60421
+ Args: {
60422
+ _max?: number;
60423
+ };
60424
+ Returns: {
60425
+ agent_id: string | null;
60426
+ bron_job_id: string | null;
60427
+ created_at: string;
60428
+ documentnaam: string;
60429
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
60430
+ extern_job_id: string | null;
60431
+ foutmelding: string | null;
60432
+ gebruiker_id: string | null;
60433
+ gebruiker_naam: string;
60434
+ gestart_op: string | null;
60435
+ id: string;
60436
+ idempotentie_sleutel: string | null;
60437
+ is_herprint: boolean;
60438
+ kopieen: number;
60439
+ layout_id: string | null;
60440
+ opgepakt_op: string | null;
60441
+ paginas: number;
60442
+ payload: import("../integrations/supabase/types").Json;
60443
+ pdf_base64: string | null;
60444
+ pdf_url: string | null;
60445
+ pogingen: number;
60446
+ printer_id: string | null;
60447
+ render_html: string | null;
60448
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
60449
+ updated_at: string;
60450
+ volgende_poging: string | null;
60451
+ voltooid_op: string | null;
60452
+ }[];
60453
+ SetofOptions: {
60454
+ from: "*";
60455
+ to: "print_jobs";
60456
+ isOneToOne: false;
60457
+ isSetofReturn: true;
60458
+ };
60459
+ };
60460
+ claim_floriday_stock_queue: {
60461
+ Args: {
60462
+ p_limit?: number;
60463
+ p_worker?: string;
60464
+ };
60465
+ Returns: {
60466
+ attempts: number;
60467
+ connection_id: string;
60468
+ created_at: string;
60469
+ desired_available: boolean | null;
60470
+ gateway_attempt_id: string | null;
60471
+ id: string;
60472
+ last_error: string | null;
60473
+ locked_at: string | null;
60474
+ locked_by: string | null;
60475
+ next_attempt_at: string;
60476
+ number_of_pieces: number;
60477
+ sent_at: string | null;
60478
+ status: string;
60479
+ superseded_by: string | null;
60480
+ trade_item_id: string;
60481
+ updated_at: string;
60482
+ user_id: string;
60483
+ }[];
60484
+ SetofOptions: {
60485
+ from: "*";
60486
+ to: "floriday_continuous_stock_queue";
60487
+ isOneToOne: false;
60488
+ isSetofReturn: true;
60489
+ };
60490
+ };
58952
60491
  claim_logistics_tasks: {
58953
60492
  Args: {
58954
60493
  _limit?: number;
@@ -59008,22 +60547,27 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
59008
60547
  created_at: string;
59009
60548
  documentnaam: string;
59010
60549
  documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
60550
+ extern_job_id: string | null;
59011
60551
  foutmelding: string | null;
59012
60552
  gebruiker_id: string | null;
59013
60553
  gebruiker_naam: string;
59014
60554
  gestart_op: string | null;
59015
60555
  id: string;
60556
+ idempotentie_sleutel: string | null;
59016
60557
  is_herprint: boolean;
59017
60558
  kopieen: number;
59018
60559
  layout_id: string | null;
59019
60560
  opgepakt_op: string | null;
59020
60561
  paginas: number;
59021
60562
  payload: import("../integrations/supabase/types").Json;
60563
+ pdf_base64: string | null;
60564
+ pdf_url: string | null;
59022
60565
  pogingen: number;
59023
60566
  printer_id: string | null;
59024
60567
  render_html: string | null;
59025
60568
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
59026
60569
  updated_at: string;
60570
+ volgende_poging: string | null;
59027
60571
  voltooid_op: string | null;
59028
60572
  }[];
59029
60573
  SetofOptions: {
@@ -59061,10 +60605,28 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
59061
60605
  isSetofReturn: true;
59062
60606
  };
59063
60607
  };
60608
+ cleanup_floriday_stock_queue: {
60609
+ Args: never;
60610
+ Returns: undefined;
60611
+ };
59064
60612
  cleanup_old_bookings: {
59065
60613
  Args: never;
59066
60614
  Returns: undefined;
59067
60615
  };
60616
+ cleanup_voorraad_module_history: {
60617
+ Args: never;
60618
+ Returns: undefined;
60619
+ };
60620
+ complete_floriday_stock_queue: {
60621
+ Args: {
60622
+ p_attempt_id?: string;
60623
+ p_error?: string;
60624
+ p_id: string;
60625
+ p_ok: boolean;
60626
+ p_permanent?: boolean;
60627
+ };
60628
+ Returns: undefined;
60629
+ };
59068
60630
  consume_bom_for_production: {
59069
60631
  Args: {
59070
60632
  p_connection_id: string;
@@ -59176,6 +60738,13 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
59176
60738
  };
59177
60739
  Returns: import("../integrations/supabase/types").Json;
59178
60740
  };
60741
+ effective_module_permission: {
60742
+ Args: {
60743
+ _module_id: string;
60744
+ _user_id: string;
60745
+ };
60746
+ Returns: string;
60747
+ };
59179
60748
  email_auth_decrypt: {
59180
60749
  Args: {
59181
60750
  cipher: string;
@@ -59979,6 +61548,51 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
59979
61548
  isSetofReturn: false;
59980
61549
  };
59981
61550
  };
61551
+ logistics_floriday_claim_pushes: {
61552
+ Args: {
61553
+ _lease_seconds?: number;
61554
+ _limit?: number;
61555
+ _worker?: string;
61556
+ };
61557
+ Returns: {
61558
+ attempts: number;
61559
+ fulfillment_order_id: string;
61560
+ id: string;
61561
+ last_sent_hash: string;
61562
+ order_ref: string;
61563
+ payload: import("../integrations/supabase/types").Json;
61564
+ payload_hash: string;
61565
+ revision: number;
61566
+ }[];
61567
+ };
61568
+ logistics_floriday_finish_push: {
61569
+ Args: {
61570
+ _error?: string;
61571
+ _fulfillment_order_id?: string;
61572
+ _id: string;
61573
+ _max_age_hours?: number;
61574
+ _max_attempts?: number;
61575
+ _ok: boolean;
61576
+ _permanent?: boolean;
61577
+ _revision: number;
61578
+ _sent_hash?: string;
61579
+ };
61580
+ Returns: string;
61581
+ };
61582
+ logistics_floriday_prune_pushes: {
61583
+ Args: {
61584
+ _days?: number;
61585
+ };
61586
+ Returns: number;
61587
+ };
61588
+ logistics_floriday_queue_push: {
61589
+ Args: {
61590
+ _order_ref: string;
61591
+ _payload?: import("../integrations/supabase/types").Json;
61592
+ _payload_hash?: string;
61593
+ };
61594
+ Returns: string;
61595
+ };
59982
61596
  logistics_live_carriers: {
59983
61597
  Args: {
59984
61598
  p_order_ref: string;
@@ -60269,6 +61883,13 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
60269
61883
  };
60270
61884
  Returns: undefined;
60271
61885
  };
61886
+ my_module_permissions: {
61887
+ Args: never;
61888
+ Returns: {
61889
+ module_id: string;
61890
+ permission: string;
61891
+ }[];
61892
+ };
60272
61893
  next_manufacture_partij: {
60273
61894
  Args: {
60274
61895
  _tenant_id: string;
@@ -60319,6 +61940,13 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
60319
61940
  };
60320
61941
  Returns: boolean;
60321
61942
  };
61943
+ opruim_print_historie: {
61944
+ Args: never;
61945
+ Returns: {
61946
+ ontdaan: number;
61947
+ verwijderd: number;
61948
+ }[];
61949
+ };
60322
61950
  order_number_prefix: {
60323
61951
  Args: {
60324
61952
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -60326,6 +61954,15 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
60326
61954
  };
60327
61955
  Returns: string;
60328
61956
  };
61957
+ pick_active_printers: {
61958
+ Args: never;
61959
+ Returns: {
61960
+ id: string;
61961
+ locatie: string;
61962
+ naam: string;
61963
+ online: boolean;
61964
+ }[];
61965
+ };
60329
61966
  pick_claim_document: {
60330
61967
  Args: {
60331
61968
  _queue_item_id: string;
@@ -60512,6 +62149,52 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
60512
62149
  };
60513
62150
  Returns: undefined;
60514
62151
  };
62152
+ pick_reset_print: {
62153
+ Args: {
62154
+ _queue_item_id: string;
62155
+ _session_id: string;
62156
+ };
62157
+ Returns: {
62158
+ announced_at: string;
62159
+ assigned_user_id: string | null;
62160
+ barcode: string | null;
62161
+ cancelled_at: string | null;
62162
+ cart_count: number;
62163
+ completed_at: string | null;
62164
+ country_code: string | null;
62165
+ created_at: string;
62166
+ customer_name: string | null;
62167
+ delivery_address: string | null;
62168
+ document_number: string | null;
62169
+ document_type_id: string | null;
62170
+ due_at: string | null;
62171
+ id: string;
62172
+ is_urgent: boolean;
62173
+ line_count: number;
62174
+ order_number: string | null;
62175
+ order_type: string | null;
62176
+ payload: import("../integrations/supabase/types").Json;
62177
+ print_count: number;
62178
+ print_job_id: string | null;
62179
+ printed_at: string | null;
62180
+ printed_by: string | null;
62181
+ printer_id: string | null;
62182
+ priority: number;
62183
+ reference: string | null;
62184
+ route: string | null;
62185
+ screen_id: string | null;
62186
+ station_id: string | null;
62187
+ status_id: string | null;
62188
+ updated_at: string;
62189
+ warnings: import("../integrations/supabase/types").Json;
62190
+ };
62191
+ SetofOptions: {
62192
+ from: "*";
62193
+ to: "pick_queue";
62194
+ isOneToOne: true;
62195
+ isSetofReturn: false;
62196
+ };
62197
+ };
60515
62198
  pick_station_dashboard: {
60516
62199
  Args: never;
60517
62200
  Returns: {
@@ -60658,6 +62341,12 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
60658
62341
  };
60659
62342
  Returns: undefined;
60660
62343
  };
62344
+ reset_stalled_floriday_stock_queue: {
62345
+ Args: {
62346
+ p_include_failed?: boolean;
62347
+ };
62348
+ Returns: number;
62349
+ };
60661
62350
  resolve_group_allocation: {
60662
62351
  Args: {
60663
62352
  _needed: number;
@@ -60702,14 +62391,28 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
60702
62391
  };
60703
62392
  Returns: import("../integrations/supabase/types").Json;
60704
62393
  };
62394
+ ruim_print_jobs_op: {
62395
+ Args: {
62396
+ _bewaar_dagen?: number;
62397
+ };
62398
+ Returns: number;
62399
+ };
60705
62400
  run_floriday_continuous_stock_sync: {
60706
62401
  Args: never;
60707
62402
  Returns: undefined;
60708
62403
  };
62404
+ run_floriday_stock_queue_process: {
62405
+ Args: never;
62406
+ Returns: undefined;
62407
+ };
60709
62408
  run_logistics_tasks_dispatch: {
60710
62409
  Args: never;
60711
62410
  Returns: undefined;
60712
62411
  };
62412
+ run_print_queue_ticks: {
62413
+ Args: never;
62414
+ Returns: number;
62415
+ };
60713
62416
  run_twinfield_queue_tick: {
60714
62417
  Args: never;
60715
62418
  Returns: undefined;
@@ -60950,6 +62653,13 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
60950
62653
  };
60951
62654
  Returns: number;
60952
62655
  };
62656
+ schedule_floriday_stock_queue_process: {
62657
+ Args: {
62658
+ p_apikey: string;
62659
+ p_url: string;
62660
+ };
62661
+ Returns: number;
62662
+ };
60953
62663
  schedule_floriday_token_refresh: {
60954
62664
  Args: {
60955
62665
  p_apikey: string;
@@ -61090,6 +62800,15 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
61090
62800
  };
61091
62801
  Returns: undefined;
61092
62802
  };
62803
+ trade_item_stock_duplicates: {
62804
+ Args: never;
62805
+ Returns: {
62806
+ keys: string[];
62807
+ product_id: string;
62808
+ product_name: string;
62809
+ row_count: number;
62810
+ }[];
62811
+ };
61093
62812
  try_debtor_lock: {
61094
62813
  Args: {
61095
62814
  _group_key: string;
@@ -61139,7 +62858,7 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
61139
62858
  };
61140
62859
  Enums: {
61141
62860
  ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
61142
- app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin";
62861
+ app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
61143
62862
  doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
61144
62863
  doc_orientation: "portrait" | "landscape";
61145
62864
  exact_env: "staging" | "live";