@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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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";
@@ -22099,7 +22672,7 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
22099
22672
  city: string | null;
22100
22673
  country: string | null;
22101
22674
  created_at: string;
22102
- customer_id: string | null;
22675
+ customer_id: string;
22103
22676
  external_key: string | null;
22104
22677
  external_provider: string | null;
22105
22678
  floriday_location_id: string | null;
@@ -22123,7 +22696,7 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
22123
22696
  city?: string | null;
22124
22697
  country?: string | null;
22125
22698
  created_at?: string;
22126
- customer_id?: string | null;
22699
+ customer_id: string;
22127
22700
  external_key?: string | null;
22128
22701
  external_provider?: string | null;
22129
22702
  floriday_location_id?: string | null;
@@ -22147,7 +22720,7 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
22147
22720
  city?: string | null;
22148
22721
  country?: string | null;
22149
22722
  created_at?: string;
22150
- customer_id?: string | null;
22723
+ customer_id?: string;
22151
22724
  external_key?: string | null;
22152
22725
  external_provider?: string | null;
22153
22726
  floriday_location_id?: string | null;
@@ -26110,12 +26683,17 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
26110
26683
  attempts: number;
26111
26684
  connection_id: string;
26112
26685
  created_at: string;
26686
+ desired_available: boolean | null;
26113
26687
  gateway_attempt_id: string | null;
26114
26688
  id: string;
26115
26689
  last_error: string | null;
26690
+ locked_at: string | null;
26691
+ locked_by: string | null;
26692
+ next_attempt_at: string;
26116
26693
  number_of_pieces: number;
26117
26694
  sent_at: string | null;
26118
26695
  status: string;
26696
+ superseded_by: string | null;
26119
26697
  trade_item_id: string;
26120
26698
  updated_at: string;
26121
26699
  user_id: string;
@@ -26124,12 +26702,17 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
26124
26702
  attempts?: number;
26125
26703
  connection_id: string;
26126
26704
  created_at?: string;
26705
+ desired_available?: boolean | null;
26127
26706
  gateway_attempt_id?: string | null;
26128
26707
  id?: string;
26129
26708
  last_error?: string | null;
26709
+ locked_at?: string | null;
26710
+ locked_by?: string | null;
26711
+ next_attempt_at?: string;
26130
26712
  number_of_pieces?: number;
26131
26713
  sent_at?: string | null;
26132
26714
  status?: string;
26715
+ superseded_by?: string | null;
26133
26716
  trade_item_id: string;
26134
26717
  updated_at?: string;
26135
26718
  user_id: string;
@@ -26138,12 +26721,17 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
26138
26721
  attempts?: number;
26139
26722
  connection_id?: string;
26140
26723
  created_at?: string;
26724
+ desired_available?: boolean | null;
26141
26725
  gateway_attempt_id?: string | null;
26142
26726
  id?: string;
26143
26727
  last_error?: string | null;
26728
+ locked_at?: string | null;
26729
+ locked_by?: string | null;
26730
+ next_attempt_at?: string;
26144
26731
  number_of_pieces?: number;
26145
26732
  sent_at?: string | null;
26146
26733
  status?: string;
26734
+ superseded_by?: string | null;
26147
26735
  trade_item_id?: string;
26148
26736
  updated_at?: string;
26149
26737
  user_id?: string;
@@ -26880,6 +27468,7 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
26880
27468
  Row: {
26881
27469
  buyer_organization_id: string | null;
26882
27470
  connection_id: string;
27471
+ controlled_at: string | null;
26883
27472
  created_at: string;
26884
27473
  data: import("../integrations/supabase/types").Json;
26885
27474
  floriday_id: string;
@@ -26891,6 +27480,7 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
26891
27480
  Insert: {
26892
27481
  buyer_organization_id?: string | null;
26893
27482
  connection_id: string;
27483
+ controlled_at?: string | null;
26894
27484
  created_at?: string;
26895
27485
  data: import("../integrations/supabase/types").Json;
26896
27486
  floriday_id: string;
@@ -26902,6 +27492,7 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
26902
27492
  Update: {
26903
27493
  buyer_organization_id?: string | null;
26904
27494
  connection_id?: string;
27495
+ controlled_at?: string | null;
26905
27496
  created_at?: string;
26906
27497
  data?: import("../integrations/supabase/types").Json;
26907
27498
  floriday_id?: string;
@@ -27803,6 +28394,54 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
27803
28394
  };
27804
28395
  Relationships: [];
27805
28396
  };
28397
+ invoice_timing_settings: {
28398
+ Row: {
28399
+ anchor: string;
28400
+ business_days_only: boolean;
28401
+ created_at: string;
28402
+ enabled: boolean;
28403
+ id: string;
28404
+ offset_days: number;
28405
+ pickup_anchor: string;
28406
+ pickup_business_days_only: boolean;
28407
+ pickup_offset_days: number;
28408
+ pickup_time_of_day: string;
28409
+ singleton: boolean;
28410
+ time_of_day: string;
28411
+ updated_at: string;
28412
+ };
28413
+ Insert: {
28414
+ anchor?: string;
28415
+ business_days_only?: boolean;
28416
+ created_at?: string;
28417
+ enabled?: boolean;
28418
+ id?: string;
28419
+ offset_days?: number;
28420
+ pickup_anchor?: string;
28421
+ pickup_business_days_only?: boolean;
28422
+ pickup_offset_days?: number;
28423
+ pickup_time_of_day?: string;
28424
+ singleton?: boolean;
28425
+ time_of_day?: string;
28426
+ updated_at?: string;
28427
+ };
28428
+ Update: {
28429
+ anchor?: string;
28430
+ business_days_only?: boolean;
28431
+ created_at?: string;
28432
+ enabled?: boolean;
28433
+ id?: string;
28434
+ offset_days?: number;
28435
+ pickup_anchor?: string;
28436
+ pickup_business_days_only?: boolean;
28437
+ pickup_offset_days?: number;
28438
+ pickup_time_of_day?: string;
28439
+ singleton?: boolean;
28440
+ time_of_day?: string;
28441
+ updated_at?: string;
28442
+ };
28443
+ Relationships: [];
28444
+ };
27806
28445
  itk_contact_persons: {
27807
28446
  Row: {
27808
28447
  created_at: string;
@@ -28892,6 +29531,69 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
28892
29531
  };
28893
29532
  Relationships: [];
28894
29533
  };
29534
+ logistics_floriday_pushes: {
29535
+ Row: {
29536
+ attempts: number;
29537
+ created_at: string;
29538
+ first_queued_at: string;
29539
+ fulfillment_order_id: string | null;
29540
+ id: string;
29541
+ last_error: string | null;
29542
+ last_error_at: string | null;
29543
+ last_sent_hash: string | null;
29544
+ locked_by: string | null;
29545
+ locked_until: string | null;
29546
+ next_attempt_at: string;
29547
+ order_ref: string;
29548
+ payload: import("../integrations/supabase/types").Json;
29549
+ payload_hash: string | null;
29550
+ revision: number;
29551
+ sent_at: string | null;
29552
+ status: string;
29553
+ updated_at: string;
29554
+ };
29555
+ Insert: {
29556
+ attempts?: number;
29557
+ created_at?: string;
29558
+ first_queued_at?: string;
29559
+ fulfillment_order_id?: string | null;
29560
+ id?: string;
29561
+ last_error?: string | null;
29562
+ last_error_at?: string | null;
29563
+ last_sent_hash?: string | null;
29564
+ locked_by?: string | null;
29565
+ locked_until?: string | null;
29566
+ next_attempt_at?: string;
29567
+ order_ref: string;
29568
+ payload?: import("../integrations/supabase/types").Json;
29569
+ payload_hash?: string | null;
29570
+ revision?: number;
29571
+ sent_at?: string | null;
29572
+ status?: string;
29573
+ updated_at?: string;
29574
+ };
29575
+ Update: {
29576
+ attempts?: number;
29577
+ created_at?: string;
29578
+ first_queued_at?: string;
29579
+ fulfillment_order_id?: string | null;
29580
+ id?: string;
29581
+ last_error?: string | null;
29582
+ last_error_at?: string | null;
29583
+ last_sent_hash?: string | null;
29584
+ locked_by?: string | null;
29585
+ locked_until?: string | null;
29586
+ next_attempt_at?: string;
29587
+ order_ref?: string;
29588
+ payload?: import("../integrations/supabase/types").Json;
29589
+ payload_hash?: string | null;
29590
+ revision?: number;
29591
+ sent_at?: string | null;
29592
+ status?: string;
29593
+ updated_at?: string;
29594
+ };
29595
+ Relationships: [];
29596
+ };
28895
29597
  logistics_formulas: {
28896
29598
  Row: {
28897
29599
  created_at: string;
@@ -29755,14 +30457,17 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
29755
30457
  };
29756
30458
  mailbox_messages: {
29757
30459
  Row: {
30460
+ attachments: import("../integrations/supabase/types").Json;
29758
30461
  body_html: string | null;
29759
30462
  body_text: string | null;
30463
+ cc_recipients: import("../integrations/supabase/types").Json;
29760
30464
  connection_id: string | null;
29761
30465
  created_at: string;
29762
30466
  error_message: string | null;
29763
30467
  external_id: string | null;
29764
30468
  from_email: string | null;
29765
30469
  from_name: string | null;
30470
+ has_attachments: boolean;
29766
30471
  id: string;
29767
30472
  message_id: string | null;
29768
30473
  profile_id: string | null;
@@ -29770,18 +30475,22 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
29770
30475
  received_at: string | null;
29771
30476
  status: string;
29772
30477
  subject: string | null;
30478
+ to_recipients: import("../integrations/supabase/types").Json;
29773
30479
  uid: number | null;
29774
30480
  updated_at: string;
29775
30481
  };
29776
30482
  Insert: {
30483
+ attachments?: import("../integrations/supabase/types").Json;
29777
30484
  body_html?: string | null;
29778
30485
  body_text?: string | null;
30486
+ cc_recipients?: import("../integrations/supabase/types").Json;
29779
30487
  connection_id?: string | null;
29780
30488
  created_at?: string;
29781
30489
  error_message?: string | null;
29782
30490
  external_id?: string | null;
29783
30491
  from_email?: string | null;
29784
30492
  from_name?: string | null;
30493
+ has_attachments?: boolean;
29785
30494
  id?: string;
29786
30495
  message_id?: string | null;
29787
30496
  profile_id?: string | null;
@@ -29789,18 +30498,22 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
29789
30498
  received_at?: string | null;
29790
30499
  status?: string;
29791
30500
  subject?: string | null;
30501
+ to_recipients?: import("../integrations/supabase/types").Json;
29792
30502
  uid?: number | null;
29793
30503
  updated_at?: string;
29794
30504
  };
29795
30505
  Update: {
30506
+ attachments?: import("../integrations/supabase/types").Json;
29796
30507
  body_html?: string | null;
29797
30508
  body_text?: string | null;
30509
+ cc_recipients?: import("../integrations/supabase/types").Json;
29798
30510
  connection_id?: string | null;
29799
30511
  created_at?: string;
29800
30512
  error_message?: string | null;
29801
30513
  external_id?: string | null;
29802
30514
  from_email?: string | null;
29803
30515
  from_name?: string | null;
30516
+ has_attachments?: boolean;
29804
30517
  id?: string;
29805
30518
  message_id?: string | null;
29806
30519
  profile_id?: string | null;
@@ -29808,6 +30521,7 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
29808
30521
  received_at?: string | null;
29809
30522
  status?: string;
29810
30523
  subject?: string | null;
30524
+ to_recipients?: import("../integrations/supabase/types").Json;
29811
30525
  uid?: number | null;
29812
30526
  updated_at?: string;
29813
30527
  };
@@ -30215,6 +30929,36 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
30215
30929
  };
30216
30930
  Relationships: [];
30217
30931
  };
30932
+ module_registry: {
30933
+ Row: {
30934
+ created_at: string;
30935
+ is_active: boolean;
30936
+ last_seen_at: string;
30937
+ module_id: string;
30938
+ name: string;
30939
+ shell_id: string | null;
30940
+ sort_order: number | null;
30941
+ };
30942
+ Insert: {
30943
+ created_at?: string;
30944
+ is_active?: boolean;
30945
+ last_seen_at?: string;
30946
+ module_id: string;
30947
+ name: string;
30948
+ shell_id?: string | null;
30949
+ sort_order?: number | null;
30950
+ };
30951
+ Update: {
30952
+ created_at?: string;
30953
+ is_active?: boolean;
30954
+ last_seen_at?: string;
30955
+ module_id?: string;
30956
+ name?: string;
30957
+ shell_id?: string | null;
30958
+ sort_order?: number | null;
30959
+ };
30960
+ Relationships: [];
30961
+ };
30218
30962
  module_runtime_config: {
30219
30963
  Row: {
30220
30964
  key: string;
@@ -31274,6 +32018,42 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
31274
32018
  };
31275
32019
  Relationships: [];
31276
32020
  };
32021
+ order_invoice_links: {
32022
+ Row: {
32023
+ attempts: number;
32024
+ created_at: string;
32025
+ error_message: string | null;
32026
+ id: string;
32027
+ invoice_number: string | null;
32028
+ order_id: string;
32029
+ processed_at: string | null;
32030
+ status: string;
32031
+ updated_at: string;
32032
+ };
32033
+ Insert: {
32034
+ attempts?: number;
32035
+ created_at?: string;
32036
+ error_message?: string | null;
32037
+ id?: string;
32038
+ invoice_number?: string | null;
32039
+ order_id: string;
32040
+ processed_at?: string | null;
32041
+ status?: string;
32042
+ updated_at?: string;
32043
+ };
32044
+ Update: {
32045
+ attempts?: number;
32046
+ created_at?: string;
32047
+ error_message?: string | null;
32048
+ id?: string;
32049
+ invoice_number?: string | null;
32050
+ order_id?: string;
32051
+ processed_at?: string | null;
32052
+ status?: string;
32053
+ updated_at?: string;
32054
+ };
32055
+ Relationships: [];
32056
+ };
31277
32057
  order_items: {
31278
32058
  Row: {
31279
32059
  crates_per_layer: number | null;
@@ -31456,6 +32236,7 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
31456
32236
  delivery_date: string | null;
31457
32237
  floriday_sales_order_id: string | null;
31458
32238
  id: string;
32239
+ invoice_due_at: string | null;
31459
32240
  is_reservation: boolean;
31460
32241
  notes: string | null;
31461
32242
  order_date: string;
@@ -31477,6 +32258,7 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
31477
32258
  delivery_date?: string | null;
31478
32259
  floriday_sales_order_id?: string | null;
31479
32260
  id?: string;
32261
+ invoice_due_at?: string | null;
31480
32262
  is_reservation?: boolean;
31481
32263
  notes?: string | null;
31482
32264
  order_date?: string;
@@ -31498,6 +32280,7 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
31498
32280
  delivery_date?: string | null;
31499
32281
  floriday_sales_order_id?: string | null;
31500
32282
  id?: string;
32283
+ invoice_due_at?: string | null;
31501
32284
  is_reservation?: boolean;
31502
32285
  notes?: string | null;
31503
32286
  order_date?: string;
@@ -32694,22 +33477,27 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
32694
33477
  created_at: string;
32695
33478
  documentnaam: string;
32696
33479
  documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
33480
+ extern_job_id: string | null;
32697
33481
  foutmelding: string | null;
32698
33482
  gebruiker_id: string | null;
32699
33483
  gebruiker_naam: string;
32700
33484
  gestart_op: string | null;
32701
33485
  id: string;
33486
+ idempotentie_sleutel: string | null;
32702
33487
  is_herprint: boolean;
32703
33488
  kopieen: number;
32704
33489
  layout_id: string | null;
32705
33490
  opgepakt_op: string | null;
32706
33491
  paginas: number;
32707
33492
  payload: import("../integrations/supabase/types").Json;
33493
+ pdf_base64: string | null;
33494
+ pdf_url: string | null;
32708
33495
  pogingen: number;
32709
33496
  printer_id: string | null;
32710
33497
  render_html: string | null;
32711
33498
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
32712
33499
  updated_at: string;
33500
+ volgende_poging: string | null;
32713
33501
  voltooid_op: string | null;
32714
33502
  };
32715
33503
  Insert: {
@@ -32718,22 +33506,27 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
32718
33506
  created_at?: string;
32719
33507
  documentnaam?: string;
32720
33508
  documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
33509
+ extern_job_id?: string | null;
32721
33510
  foutmelding?: string | null;
32722
33511
  gebruiker_id?: string | null;
32723
33512
  gebruiker_naam?: string;
32724
33513
  gestart_op?: string | null;
32725
33514
  id?: string;
33515
+ idempotentie_sleutel?: string | null;
32726
33516
  is_herprint?: boolean;
32727
33517
  kopieen?: number;
32728
33518
  layout_id?: string | null;
32729
33519
  opgepakt_op?: string | null;
32730
33520
  paginas?: number;
32731
33521
  payload?: import("../integrations/supabase/types").Json;
33522
+ pdf_base64?: string | null;
33523
+ pdf_url?: string | null;
32732
33524
  pogingen?: number;
32733
33525
  printer_id?: string | null;
32734
33526
  render_html?: string | null;
32735
33527
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
32736
33528
  updated_at?: string;
33529
+ volgende_poging?: string | null;
32737
33530
  voltooid_op?: string | null;
32738
33531
  };
32739
33532
  Update: {
@@ -32742,22 +33535,27 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
32742
33535
  created_at?: string;
32743
33536
  documentnaam?: string;
32744
33537
  documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
33538
+ extern_job_id?: string | null;
32745
33539
  foutmelding?: string | null;
32746
33540
  gebruiker_id?: string | null;
32747
33541
  gebruiker_naam?: string;
32748
33542
  gestart_op?: string | null;
32749
33543
  id?: string;
33544
+ idempotentie_sleutel?: string | null;
32750
33545
  is_herprint?: boolean;
32751
33546
  kopieen?: number;
32752
33547
  layout_id?: string | null;
32753
33548
  opgepakt_op?: string | null;
32754
33549
  paginas?: number;
32755
33550
  payload?: import("../integrations/supabase/types").Json;
33551
+ pdf_base64?: string | null;
33552
+ pdf_url?: string | null;
32756
33553
  pogingen?: number;
32757
33554
  printer_id?: string | null;
32758
33555
  render_html?: string | null;
32759
33556
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
32760
33557
  updated_at?: string;
33558
+ volgende_poging?: string | null;
32761
33559
  voltooid_op?: string | null;
32762
33560
  };
32763
33561
  Relationships: [{
@@ -32780,6 +33578,63 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
32780
33578
  referencedColumns: ["id"];
32781
33579
  }];
32782
33580
  };
33581
+ print_queue_runners: {
33582
+ Row: {
33583
+ actief: boolean;
33584
+ basis_url: string;
33585
+ created_at: string;
33586
+ id: string;
33587
+ laatst_gezien: string;
33588
+ tick_sleutel: string;
33589
+ updated_at: string;
33590
+ };
33591
+ Insert: {
33592
+ actief?: boolean;
33593
+ basis_url: string;
33594
+ created_at?: string;
33595
+ id?: string;
33596
+ laatst_gezien?: string;
33597
+ tick_sleutel?: string;
33598
+ updated_at?: string;
33599
+ };
33600
+ Update: {
33601
+ actief?: boolean;
33602
+ basis_url?: string;
33603
+ created_at?: string;
33604
+ id?: string;
33605
+ laatst_gezien?: string;
33606
+ tick_sleutel?: string;
33607
+ updated_at?: string;
33608
+ };
33609
+ Relationships: [];
33610
+ };
33611
+ print_queue_settings: {
33612
+ Row: {
33613
+ bewaar_bestanden_dagen: number;
33614
+ bewaar_opdrachten_dagen: number;
33615
+ created_at: string;
33616
+ dubbel_venster_minuten: number;
33617
+ id: string;
33618
+ updated_at: string;
33619
+ };
33620
+ Insert: {
33621
+ bewaar_bestanden_dagen?: number;
33622
+ bewaar_opdrachten_dagen?: number;
33623
+ created_at?: string;
33624
+ dubbel_venster_minuten?: number;
33625
+ id?: string;
33626
+ updated_at?: string;
33627
+ };
33628
+ Update: {
33629
+ bewaar_bestanden_dagen?: number;
33630
+ bewaar_opdrachten_dagen?: number;
33631
+ created_at?: string;
33632
+ dubbel_venster_minuten?: number;
33633
+ id?: string;
33634
+ updated_at?: string;
33635
+ };
33636
+ Relationships: [];
33637
+ };
32783
33638
  print_rules: {
32784
33639
  Row: {
32785
33640
  actief: boolean;
@@ -32940,6 +33795,7 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
32940
33795
  agent_id: string | null;
32941
33796
  created_at: string;
32942
33797
  driver: string;
33798
+ extern_printer_id: string | null;
32943
33799
  id: string;
32944
33800
  ip_adres: string | null;
32945
33801
  laatst_gezien: string | null;
@@ -32961,6 +33817,7 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
32961
33817
  agent_id?: string | null;
32962
33818
  created_at?: string;
32963
33819
  driver?: string;
33820
+ extern_printer_id?: string | null;
32964
33821
  id?: string;
32965
33822
  ip_adres?: string | null;
32966
33823
  laatst_gezien?: string | null;
@@ -32982,6 +33839,7 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
32982
33839
  agent_id?: string | null;
32983
33840
  created_at?: string;
32984
33841
  driver?: string;
33842
+ extern_printer_id?: string | null;
32985
33843
  id?: string;
32986
33844
  ip_adres?: string | null;
32987
33845
  laatst_gezien?: string | null;
@@ -35617,6 +36475,8 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
35617
36475
  };
35618
36476
  twinfield_invoice_settings: {
35619
36477
  Row: {
36478
+ auto_invoice_enabled: boolean;
36479
+ auto_invoice_trigger_statuses: string[];
35620
36480
  created_at: string;
35621
36481
  debtor_gl_account: string;
35622
36482
  default_credit_invoice_type: string | null;
@@ -35637,6 +36497,8 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
35637
36497
  vat_code_export: string | null;
35638
36498
  };
35639
36499
  Insert: {
36500
+ auto_invoice_enabled?: boolean;
36501
+ auto_invoice_trigger_statuses?: string[];
35640
36502
  created_at?: string;
35641
36503
  debtor_gl_account?: string;
35642
36504
  default_credit_invoice_type?: string | null;
@@ -35657,6 +36519,8 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
35657
36519
  vat_code_export?: string | null;
35658
36520
  };
35659
36521
  Update: {
36522
+ auto_invoice_enabled?: boolean;
36523
+ auto_invoice_trigger_statuses?: string[];
35660
36524
  created_at?: string;
35661
36525
  debtor_gl_account?: string;
35662
36526
  default_credit_invoice_type?: string | null;
@@ -36719,6 +37583,33 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
36719
37583
  referencedColumns: ["id"];
36720
37584
  }];
36721
37585
  };
37586
+ user_module_permissions: {
37587
+ Row: {
37588
+ created_at: string;
37589
+ id: string;
37590
+ module_id: string;
37591
+ permission: string;
37592
+ updated_at: string;
37593
+ user_id: string;
37594
+ };
37595
+ Insert: {
37596
+ created_at?: string;
37597
+ id?: string;
37598
+ module_id: string;
37599
+ permission: string;
37600
+ updated_at?: string;
37601
+ user_id: string;
37602
+ };
37603
+ Update: {
37604
+ created_at?: string;
37605
+ id?: string;
37606
+ module_id?: string;
37607
+ permission?: string;
37608
+ updated_at?: string;
37609
+ user_id?: string;
37610
+ };
37611
+ Relationships: [];
37612
+ };
36722
37613
  user_roles: {
36723
37614
  Row: {
36724
37615
  created_at: string;
@@ -38552,6 +39443,10 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
38552
39443
  processed_items: number;
38553
39444
  }[];
38554
39445
  };
39446
+ backfill_order_auto_invoice_queue: {
39447
+ Args: never;
39448
+ Returns: number;
39449
+ };
38555
39450
  calculate_layer_stock: {
38556
39451
  Args: {
38557
39452
  p_product_id: string;
@@ -38586,6 +39481,77 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
38586
39481
  };
38587
39482
  Returns: import("../integrations/supabase/types").Json;
38588
39483
  };
39484
+ claim_cloud_print_jobs: {
39485
+ Args: {
39486
+ _max?: number;
39487
+ };
39488
+ Returns: {
39489
+ agent_id: string | null;
39490
+ bron_job_id: string | null;
39491
+ created_at: string;
39492
+ documentnaam: string;
39493
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
39494
+ extern_job_id: string | null;
39495
+ foutmelding: string | null;
39496
+ gebruiker_id: string | null;
39497
+ gebruiker_naam: string;
39498
+ gestart_op: string | null;
39499
+ id: string;
39500
+ idempotentie_sleutel: string | null;
39501
+ is_herprint: boolean;
39502
+ kopieen: number;
39503
+ layout_id: string | null;
39504
+ opgepakt_op: string | null;
39505
+ paginas: number;
39506
+ payload: import("../integrations/supabase/types").Json;
39507
+ pdf_base64: string | null;
39508
+ pdf_url: string | null;
39509
+ pogingen: number;
39510
+ printer_id: string | null;
39511
+ render_html: string | null;
39512
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
39513
+ updated_at: string;
39514
+ volgende_poging: string | null;
39515
+ voltooid_op: string | null;
39516
+ }[];
39517
+ SetofOptions: {
39518
+ from: "*";
39519
+ to: "print_jobs";
39520
+ isOneToOne: false;
39521
+ isSetofReturn: true;
39522
+ };
39523
+ };
39524
+ claim_floriday_stock_queue: {
39525
+ Args: {
39526
+ p_limit?: number;
39527
+ p_worker?: string;
39528
+ };
39529
+ Returns: {
39530
+ attempts: number;
39531
+ connection_id: string;
39532
+ created_at: string;
39533
+ desired_available: boolean | null;
39534
+ gateway_attempt_id: string | null;
39535
+ id: string;
39536
+ last_error: string | null;
39537
+ locked_at: string | null;
39538
+ locked_by: string | null;
39539
+ next_attempt_at: string;
39540
+ number_of_pieces: number;
39541
+ sent_at: string | null;
39542
+ status: string;
39543
+ superseded_by: string | null;
39544
+ trade_item_id: string;
39545
+ updated_at: string;
39546
+ user_id: string;
39547
+ }[];
39548
+ SetofOptions: {
39549
+ from: "*";
39550
+ to: "floriday_continuous_stock_queue";
39551
+ isOneToOne: false;
39552
+ isSetofReturn: true;
39553
+ };
39554
+ };
38589
39555
  claim_logistics_tasks: {
38590
39556
  Args: {
38591
39557
  _limit?: number;
@@ -38645,22 +39611,27 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
38645
39611
  created_at: string;
38646
39612
  documentnaam: string;
38647
39613
  documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
39614
+ extern_job_id: string | null;
38648
39615
  foutmelding: string | null;
38649
39616
  gebruiker_id: string | null;
38650
39617
  gebruiker_naam: string;
38651
39618
  gestart_op: string | null;
38652
39619
  id: string;
39620
+ idempotentie_sleutel: string | null;
38653
39621
  is_herprint: boolean;
38654
39622
  kopieen: number;
38655
39623
  layout_id: string | null;
38656
39624
  opgepakt_op: string | null;
38657
39625
  paginas: number;
38658
39626
  payload: import("../integrations/supabase/types").Json;
39627
+ pdf_base64: string | null;
39628
+ pdf_url: string | null;
38659
39629
  pogingen: number;
38660
39630
  printer_id: string | null;
38661
39631
  render_html: string | null;
38662
39632
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
38663
39633
  updated_at: string;
39634
+ volgende_poging: string | null;
38664
39635
  voltooid_op: string | null;
38665
39636
  }[];
38666
39637
  SetofOptions: {
@@ -38698,10 +39669,28 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
38698
39669
  isSetofReturn: true;
38699
39670
  };
38700
39671
  };
39672
+ cleanup_floriday_stock_queue: {
39673
+ Args: never;
39674
+ Returns: undefined;
39675
+ };
38701
39676
  cleanup_old_bookings: {
38702
39677
  Args: never;
38703
39678
  Returns: undefined;
38704
39679
  };
39680
+ cleanup_voorraad_module_history: {
39681
+ Args: never;
39682
+ Returns: undefined;
39683
+ };
39684
+ complete_floriday_stock_queue: {
39685
+ Args: {
39686
+ p_attempt_id?: string;
39687
+ p_error?: string;
39688
+ p_id: string;
39689
+ p_ok: boolean;
39690
+ p_permanent?: boolean;
39691
+ };
39692
+ Returns: undefined;
39693
+ };
38705
39694
  consume_bom_for_production: {
38706
39695
  Args: {
38707
39696
  p_connection_id: string;
@@ -38813,6 +39802,13 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
38813
39802
  };
38814
39803
  Returns: import("../integrations/supabase/types").Json;
38815
39804
  };
39805
+ effective_module_permission: {
39806
+ Args: {
39807
+ _module_id: string;
39808
+ _user_id: string;
39809
+ };
39810
+ Returns: string;
39811
+ };
38816
39812
  email_auth_decrypt: {
38817
39813
  Args: {
38818
39814
  cipher: string;
@@ -39616,6 +40612,51 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
39616
40612
  isSetofReturn: false;
39617
40613
  };
39618
40614
  };
40615
+ logistics_floriday_claim_pushes: {
40616
+ Args: {
40617
+ _lease_seconds?: number;
40618
+ _limit?: number;
40619
+ _worker?: string;
40620
+ };
40621
+ Returns: {
40622
+ attempts: number;
40623
+ fulfillment_order_id: string;
40624
+ id: string;
40625
+ last_sent_hash: string;
40626
+ order_ref: string;
40627
+ payload: import("../integrations/supabase/types").Json;
40628
+ payload_hash: string;
40629
+ revision: number;
40630
+ }[];
40631
+ };
40632
+ logistics_floriday_finish_push: {
40633
+ Args: {
40634
+ _error?: string;
40635
+ _fulfillment_order_id?: string;
40636
+ _id: string;
40637
+ _max_age_hours?: number;
40638
+ _max_attempts?: number;
40639
+ _ok: boolean;
40640
+ _permanent?: boolean;
40641
+ _revision: number;
40642
+ _sent_hash?: string;
40643
+ };
40644
+ Returns: string;
40645
+ };
40646
+ logistics_floriday_prune_pushes: {
40647
+ Args: {
40648
+ _days?: number;
40649
+ };
40650
+ Returns: number;
40651
+ };
40652
+ logistics_floriday_queue_push: {
40653
+ Args: {
40654
+ _order_ref: string;
40655
+ _payload?: import("../integrations/supabase/types").Json;
40656
+ _payload_hash?: string;
40657
+ };
40658
+ Returns: string;
40659
+ };
39619
40660
  logistics_live_carriers: {
39620
40661
  Args: {
39621
40662
  p_order_ref: string;
@@ -39906,6 +40947,13 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
39906
40947
  };
39907
40948
  Returns: undefined;
39908
40949
  };
40950
+ my_module_permissions: {
40951
+ Args: never;
40952
+ Returns: {
40953
+ module_id: string;
40954
+ permission: string;
40955
+ }[];
40956
+ };
39909
40957
  next_manufacture_partij: {
39910
40958
  Args: {
39911
40959
  _tenant_id: string;
@@ -39956,6 +41004,13 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
39956
41004
  };
39957
41005
  Returns: boolean;
39958
41006
  };
41007
+ opruim_print_historie: {
41008
+ Args: never;
41009
+ Returns: {
41010
+ ontdaan: number;
41011
+ verwijderd: number;
41012
+ }[];
41013
+ };
39959
41014
  order_number_prefix: {
39960
41015
  Args: {
39961
41016
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -39963,6 +41018,15 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
39963
41018
  };
39964
41019
  Returns: string;
39965
41020
  };
41021
+ pick_active_printers: {
41022
+ Args: never;
41023
+ Returns: {
41024
+ id: string;
41025
+ locatie: string;
41026
+ naam: string;
41027
+ online: boolean;
41028
+ }[];
41029
+ };
39966
41030
  pick_claim_document: {
39967
41031
  Args: {
39968
41032
  _queue_item_id: string;
@@ -40149,6 +41213,52 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
40149
41213
  };
40150
41214
  Returns: undefined;
40151
41215
  };
41216
+ pick_reset_print: {
41217
+ Args: {
41218
+ _queue_item_id: string;
41219
+ _session_id: string;
41220
+ };
41221
+ Returns: {
41222
+ announced_at: string;
41223
+ assigned_user_id: string | null;
41224
+ barcode: string | null;
41225
+ cancelled_at: string | null;
41226
+ cart_count: number;
41227
+ completed_at: string | null;
41228
+ country_code: string | null;
41229
+ created_at: string;
41230
+ customer_name: string | null;
41231
+ delivery_address: string | null;
41232
+ document_number: string | null;
41233
+ document_type_id: string | null;
41234
+ due_at: string | null;
41235
+ id: string;
41236
+ is_urgent: boolean;
41237
+ line_count: number;
41238
+ order_number: string | null;
41239
+ order_type: string | null;
41240
+ payload: import("../integrations/supabase/types").Json;
41241
+ print_count: number;
41242
+ print_job_id: string | null;
41243
+ printed_at: string | null;
41244
+ printed_by: string | null;
41245
+ printer_id: string | null;
41246
+ priority: number;
41247
+ reference: string | null;
41248
+ route: string | null;
41249
+ screen_id: string | null;
41250
+ station_id: string | null;
41251
+ status_id: string | null;
41252
+ updated_at: string;
41253
+ warnings: import("../integrations/supabase/types").Json;
41254
+ };
41255
+ SetofOptions: {
41256
+ from: "*";
41257
+ to: "pick_queue";
41258
+ isOneToOne: true;
41259
+ isSetofReturn: false;
41260
+ };
41261
+ };
40152
41262
  pick_station_dashboard: {
40153
41263
  Args: never;
40154
41264
  Returns: {
@@ -40295,6 +41405,12 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
40295
41405
  };
40296
41406
  Returns: undefined;
40297
41407
  };
41408
+ reset_stalled_floriday_stock_queue: {
41409
+ Args: {
41410
+ p_include_failed?: boolean;
41411
+ };
41412
+ Returns: number;
41413
+ };
40298
41414
  resolve_group_allocation: {
40299
41415
  Args: {
40300
41416
  _needed: number;
@@ -40339,14 +41455,28 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
40339
41455
  };
40340
41456
  Returns: import("../integrations/supabase/types").Json;
40341
41457
  };
41458
+ ruim_print_jobs_op: {
41459
+ Args: {
41460
+ _bewaar_dagen?: number;
41461
+ };
41462
+ Returns: number;
41463
+ };
40342
41464
  run_floriday_continuous_stock_sync: {
40343
41465
  Args: never;
40344
41466
  Returns: undefined;
40345
41467
  };
41468
+ run_floriday_stock_queue_process: {
41469
+ Args: never;
41470
+ Returns: undefined;
41471
+ };
40346
41472
  run_logistics_tasks_dispatch: {
40347
41473
  Args: never;
40348
41474
  Returns: undefined;
40349
41475
  };
41476
+ run_print_queue_ticks: {
41477
+ Args: never;
41478
+ Returns: number;
41479
+ };
40350
41480
  run_twinfield_queue_tick: {
40351
41481
  Args: never;
40352
41482
  Returns: undefined;
@@ -40587,6 +41717,13 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
40587
41717
  };
40588
41718
  Returns: number;
40589
41719
  };
41720
+ schedule_floriday_stock_queue_process: {
41721
+ Args: {
41722
+ p_apikey: string;
41723
+ p_url: string;
41724
+ };
41725
+ Returns: number;
41726
+ };
40590
41727
  schedule_floriday_token_refresh: {
40591
41728
  Args: {
40592
41729
  p_apikey: string;
@@ -40727,6 +41864,15 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
40727
41864
  };
40728
41865
  Returns: undefined;
40729
41866
  };
41867
+ trade_item_stock_duplicates: {
41868
+ Args: never;
41869
+ Returns: {
41870
+ keys: string[];
41871
+ product_id: string;
41872
+ product_name: string;
41873
+ row_count: number;
41874
+ }[];
41875
+ };
40730
41876
  try_debtor_lock: {
40731
41877
  Args: {
40732
41878
  _group_key: string;
@@ -40776,7 +41922,7 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
40776
41922
  };
40777
41923
  Enums: {
40778
41924
  ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
40779
- app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin";
41925
+ app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
40780
41926
  doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
40781
41927
  doc_orientation: "portrait" | "landscape";
40782
41928
  exact_env: "staging" | "live";
@@ -42496,7 +43642,7 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
42496
43642
  city: string | null;
42497
43643
  country: string | null;
42498
43644
  created_at: string;
42499
- customer_id: string | null;
43645
+ customer_id: string;
42500
43646
  external_key: string | null;
42501
43647
  external_provider: string | null;
42502
43648
  floriday_location_id: string | null;
@@ -42520,7 +43666,7 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
42520
43666
  city?: string | null;
42521
43667
  country?: string | null;
42522
43668
  created_at?: string;
42523
- customer_id?: string | null;
43669
+ customer_id: string;
42524
43670
  external_key?: string | null;
42525
43671
  external_provider?: string | null;
42526
43672
  floriday_location_id?: string | null;
@@ -42544,7 +43690,7 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
42544
43690
  city?: string | null;
42545
43691
  country?: string | null;
42546
43692
  created_at?: string;
42547
- customer_id?: string | null;
43693
+ customer_id?: string;
42548
43694
  external_key?: string | null;
42549
43695
  external_provider?: string | null;
42550
43696
  floriday_location_id?: string | null;
@@ -46507,12 +47653,17 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
46507
47653
  attempts: number;
46508
47654
  connection_id: string;
46509
47655
  created_at: string;
47656
+ desired_available: boolean | null;
46510
47657
  gateway_attempt_id: string | null;
46511
47658
  id: string;
46512
47659
  last_error: string | null;
47660
+ locked_at: string | null;
47661
+ locked_by: string | null;
47662
+ next_attempt_at: string;
46513
47663
  number_of_pieces: number;
46514
47664
  sent_at: string | null;
46515
47665
  status: string;
47666
+ superseded_by: string | null;
46516
47667
  trade_item_id: string;
46517
47668
  updated_at: string;
46518
47669
  user_id: string;
@@ -46521,12 +47672,17 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
46521
47672
  attempts?: number;
46522
47673
  connection_id: string;
46523
47674
  created_at?: string;
47675
+ desired_available?: boolean | null;
46524
47676
  gateway_attempt_id?: string | null;
46525
47677
  id?: string;
46526
47678
  last_error?: string | null;
47679
+ locked_at?: string | null;
47680
+ locked_by?: string | null;
47681
+ next_attempt_at?: string;
46527
47682
  number_of_pieces?: number;
46528
47683
  sent_at?: string | null;
46529
47684
  status?: string;
47685
+ superseded_by?: string | null;
46530
47686
  trade_item_id: string;
46531
47687
  updated_at?: string;
46532
47688
  user_id: string;
@@ -46535,12 +47691,17 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
46535
47691
  attempts?: number;
46536
47692
  connection_id?: string;
46537
47693
  created_at?: string;
47694
+ desired_available?: boolean | null;
46538
47695
  gateway_attempt_id?: string | null;
46539
47696
  id?: string;
46540
47697
  last_error?: string | null;
47698
+ locked_at?: string | null;
47699
+ locked_by?: string | null;
47700
+ next_attempt_at?: string;
46541
47701
  number_of_pieces?: number;
46542
47702
  sent_at?: string | null;
46543
47703
  status?: string;
47704
+ superseded_by?: string | null;
46544
47705
  trade_item_id?: string;
46545
47706
  updated_at?: string;
46546
47707
  user_id?: string;
@@ -47277,6 +48438,7 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
47277
48438
  Row: {
47278
48439
  buyer_organization_id: string | null;
47279
48440
  connection_id: string;
48441
+ controlled_at: string | null;
47280
48442
  created_at: string;
47281
48443
  data: import("../integrations/supabase/types").Json;
47282
48444
  floriday_id: string;
@@ -47288,6 +48450,7 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
47288
48450
  Insert: {
47289
48451
  buyer_organization_id?: string | null;
47290
48452
  connection_id: string;
48453
+ controlled_at?: string | null;
47291
48454
  created_at?: string;
47292
48455
  data: import("../integrations/supabase/types").Json;
47293
48456
  floriday_id: string;
@@ -47299,6 +48462,7 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
47299
48462
  Update: {
47300
48463
  buyer_organization_id?: string | null;
47301
48464
  connection_id?: string;
48465
+ controlled_at?: string | null;
47302
48466
  created_at?: string;
47303
48467
  data?: import("../integrations/supabase/types").Json;
47304
48468
  floriday_id?: string;
@@ -48200,6 +49364,54 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
48200
49364
  };
48201
49365
  Relationships: [];
48202
49366
  };
49367
+ invoice_timing_settings: {
49368
+ Row: {
49369
+ anchor: string;
49370
+ business_days_only: boolean;
49371
+ created_at: string;
49372
+ enabled: boolean;
49373
+ id: string;
49374
+ offset_days: number;
49375
+ pickup_anchor: string;
49376
+ pickup_business_days_only: boolean;
49377
+ pickup_offset_days: number;
49378
+ pickup_time_of_day: string;
49379
+ singleton: boolean;
49380
+ time_of_day: string;
49381
+ updated_at: string;
49382
+ };
49383
+ Insert: {
49384
+ anchor?: string;
49385
+ business_days_only?: boolean;
49386
+ created_at?: string;
49387
+ enabled?: boolean;
49388
+ id?: string;
49389
+ offset_days?: number;
49390
+ pickup_anchor?: string;
49391
+ pickup_business_days_only?: boolean;
49392
+ pickup_offset_days?: number;
49393
+ pickup_time_of_day?: string;
49394
+ singleton?: boolean;
49395
+ time_of_day?: string;
49396
+ updated_at?: string;
49397
+ };
49398
+ Update: {
49399
+ anchor?: string;
49400
+ business_days_only?: boolean;
49401
+ created_at?: string;
49402
+ enabled?: boolean;
49403
+ id?: string;
49404
+ offset_days?: number;
49405
+ pickup_anchor?: string;
49406
+ pickup_business_days_only?: boolean;
49407
+ pickup_offset_days?: number;
49408
+ pickup_time_of_day?: string;
49409
+ singleton?: boolean;
49410
+ time_of_day?: string;
49411
+ updated_at?: string;
49412
+ };
49413
+ Relationships: [];
49414
+ };
48203
49415
  itk_contact_persons: {
48204
49416
  Row: {
48205
49417
  created_at: string;
@@ -49289,6 +50501,69 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
49289
50501
  };
49290
50502
  Relationships: [];
49291
50503
  };
50504
+ logistics_floriday_pushes: {
50505
+ Row: {
50506
+ attempts: number;
50507
+ created_at: string;
50508
+ first_queued_at: string;
50509
+ fulfillment_order_id: string | null;
50510
+ id: string;
50511
+ last_error: string | null;
50512
+ last_error_at: string | null;
50513
+ last_sent_hash: string | null;
50514
+ locked_by: string | null;
50515
+ locked_until: string | null;
50516
+ next_attempt_at: string;
50517
+ order_ref: string;
50518
+ payload: import("../integrations/supabase/types").Json;
50519
+ payload_hash: string | null;
50520
+ revision: number;
50521
+ sent_at: string | null;
50522
+ status: string;
50523
+ updated_at: string;
50524
+ };
50525
+ Insert: {
50526
+ attempts?: number;
50527
+ created_at?: string;
50528
+ first_queued_at?: string;
50529
+ fulfillment_order_id?: string | null;
50530
+ id?: string;
50531
+ last_error?: string | null;
50532
+ last_error_at?: string | null;
50533
+ last_sent_hash?: string | null;
50534
+ locked_by?: string | null;
50535
+ locked_until?: string | null;
50536
+ next_attempt_at?: string;
50537
+ order_ref: string;
50538
+ payload?: import("../integrations/supabase/types").Json;
50539
+ payload_hash?: string | null;
50540
+ revision?: number;
50541
+ sent_at?: string | null;
50542
+ status?: string;
50543
+ updated_at?: string;
50544
+ };
50545
+ Update: {
50546
+ attempts?: number;
50547
+ created_at?: string;
50548
+ first_queued_at?: string;
50549
+ fulfillment_order_id?: string | null;
50550
+ id?: string;
50551
+ last_error?: string | null;
50552
+ last_error_at?: string | null;
50553
+ last_sent_hash?: string | null;
50554
+ locked_by?: string | null;
50555
+ locked_until?: string | null;
50556
+ next_attempt_at?: string;
50557
+ order_ref?: string;
50558
+ payload?: import("../integrations/supabase/types").Json;
50559
+ payload_hash?: string | null;
50560
+ revision?: number;
50561
+ sent_at?: string | null;
50562
+ status?: string;
50563
+ updated_at?: string;
50564
+ };
50565
+ Relationships: [];
50566
+ };
49292
50567
  logistics_formulas: {
49293
50568
  Row: {
49294
50569
  created_at: string;
@@ -50152,14 +51427,17 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
50152
51427
  };
50153
51428
  mailbox_messages: {
50154
51429
  Row: {
51430
+ attachments: import("../integrations/supabase/types").Json;
50155
51431
  body_html: string | null;
50156
51432
  body_text: string | null;
51433
+ cc_recipients: import("../integrations/supabase/types").Json;
50157
51434
  connection_id: string | null;
50158
51435
  created_at: string;
50159
51436
  error_message: string | null;
50160
51437
  external_id: string | null;
50161
51438
  from_email: string | null;
50162
51439
  from_name: string | null;
51440
+ has_attachments: boolean;
50163
51441
  id: string;
50164
51442
  message_id: string | null;
50165
51443
  profile_id: string | null;
@@ -50167,18 +51445,22 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
50167
51445
  received_at: string | null;
50168
51446
  status: string;
50169
51447
  subject: string | null;
51448
+ to_recipients: import("../integrations/supabase/types").Json;
50170
51449
  uid: number | null;
50171
51450
  updated_at: string;
50172
51451
  };
50173
51452
  Insert: {
51453
+ attachments?: import("../integrations/supabase/types").Json;
50174
51454
  body_html?: string | null;
50175
51455
  body_text?: string | null;
51456
+ cc_recipients?: import("../integrations/supabase/types").Json;
50176
51457
  connection_id?: string | null;
50177
51458
  created_at?: string;
50178
51459
  error_message?: string | null;
50179
51460
  external_id?: string | null;
50180
51461
  from_email?: string | null;
50181
51462
  from_name?: string | null;
51463
+ has_attachments?: boolean;
50182
51464
  id?: string;
50183
51465
  message_id?: string | null;
50184
51466
  profile_id?: string | null;
@@ -50186,18 +51468,22 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
50186
51468
  received_at?: string | null;
50187
51469
  status?: string;
50188
51470
  subject?: string | null;
51471
+ to_recipients?: import("../integrations/supabase/types").Json;
50189
51472
  uid?: number | null;
50190
51473
  updated_at?: string;
50191
51474
  };
50192
51475
  Update: {
51476
+ attachments?: import("../integrations/supabase/types").Json;
50193
51477
  body_html?: string | null;
50194
51478
  body_text?: string | null;
51479
+ cc_recipients?: import("../integrations/supabase/types").Json;
50195
51480
  connection_id?: string | null;
50196
51481
  created_at?: string;
50197
51482
  error_message?: string | null;
50198
51483
  external_id?: string | null;
50199
51484
  from_email?: string | null;
50200
51485
  from_name?: string | null;
51486
+ has_attachments?: boolean;
50201
51487
  id?: string;
50202
51488
  message_id?: string | null;
50203
51489
  profile_id?: string | null;
@@ -50205,6 +51491,7 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
50205
51491
  received_at?: string | null;
50206
51492
  status?: string;
50207
51493
  subject?: string | null;
51494
+ to_recipients?: import("../integrations/supabase/types").Json;
50208
51495
  uid?: number | null;
50209
51496
  updated_at?: string;
50210
51497
  };
@@ -50612,6 +51899,36 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
50612
51899
  };
50613
51900
  Relationships: [];
50614
51901
  };
51902
+ module_registry: {
51903
+ Row: {
51904
+ created_at: string;
51905
+ is_active: boolean;
51906
+ last_seen_at: string;
51907
+ module_id: string;
51908
+ name: string;
51909
+ shell_id: string | null;
51910
+ sort_order: number | null;
51911
+ };
51912
+ Insert: {
51913
+ created_at?: string;
51914
+ is_active?: boolean;
51915
+ last_seen_at?: string;
51916
+ module_id: string;
51917
+ name: string;
51918
+ shell_id?: string | null;
51919
+ sort_order?: number | null;
51920
+ };
51921
+ Update: {
51922
+ created_at?: string;
51923
+ is_active?: boolean;
51924
+ last_seen_at?: string;
51925
+ module_id?: string;
51926
+ name?: string;
51927
+ shell_id?: string | null;
51928
+ sort_order?: number | null;
51929
+ };
51930
+ Relationships: [];
51931
+ };
50615
51932
  module_runtime_config: {
50616
51933
  Row: {
50617
51934
  key: string;
@@ -51671,6 +52988,42 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
51671
52988
  };
51672
52989
  Relationships: [];
51673
52990
  };
52991
+ order_invoice_links: {
52992
+ Row: {
52993
+ attempts: number;
52994
+ created_at: string;
52995
+ error_message: string | null;
52996
+ id: string;
52997
+ invoice_number: string | null;
52998
+ order_id: string;
52999
+ processed_at: string | null;
53000
+ status: string;
53001
+ updated_at: string;
53002
+ };
53003
+ Insert: {
53004
+ attempts?: number;
53005
+ created_at?: string;
53006
+ error_message?: string | null;
53007
+ id?: string;
53008
+ invoice_number?: string | null;
53009
+ order_id: string;
53010
+ processed_at?: string | null;
53011
+ status?: string;
53012
+ updated_at?: string;
53013
+ };
53014
+ Update: {
53015
+ attempts?: number;
53016
+ created_at?: string;
53017
+ error_message?: string | null;
53018
+ id?: string;
53019
+ invoice_number?: string | null;
53020
+ order_id?: string;
53021
+ processed_at?: string | null;
53022
+ status?: string;
53023
+ updated_at?: string;
53024
+ };
53025
+ Relationships: [];
53026
+ };
51674
53027
  order_items: {
51675
53028
  Row: {
51676
53029
  crates_per_layer: number | null;
@@ -51853,6 +53206,7 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
51853
53206
  delivery_date: string | null;
51854
53207
  floriday_sales_order_id: string | null;
51855
53208
  id: string;
53209
+ invoice_due_at: string | null;
51856
53210
  is_reservation: boolean;
51857
53211
  notes: string | null;
51858
53212
  order_date: string;
@@ -51874,6 +53228,7 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
51874
53228
  delivery_date?: string | null;
51875
53229
  floriday_sales_order_id?: string | null;
51876
53230
  id?: string;
53231
+ invoice_due_at?: string | null;
51877
53232
  is_reservation?: boolean;
51878
53233
  notes?: string | null;
51879
53234
  order_date?: string;
@@ -51895,6 +53250,7 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
51895
53250
  delivery_date?: string | null;
51896
53251
  floriday_sales_order_id?: string | null;
51897
53252
  id?: string;
53253
+ invoice_due_at?: string | null;
51898
53254
  is_reservation?: boolean;
51899
53255
  notes?: string | null;
51900
53256
  order_date?: string;
@@ -53091,22 +54447,27 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
53091
54447
  created_at: string;
53092
54448
  documentnaam: string;
53093
54449
  documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
54450
+ extern_job_id: string | null;
53094
54451
  foutmelding: string | null;
53095
54452
  gebruiker_id: string | null;
53096
54453
  gebruiker_naam: string;
53097
54454
  gestart_op: string | null;
53098
54455
  id: string;
54456
+ idempotentie_sleutel: string | null;
53099
54457
  is_herprint: boolean;
53100
54458
  kopieen: number;
53101
54459
  layout_id: string | null;
53102
54460
  opgepakt_op: string | null;
53103
54461
  paginas: number;
53104
54462
  payload: import("../integrations/supabase/types").Json;
54463
+ pdf_base64: string | null;
54464
+ pdf_url: string | null;
53105
54465
  pogingen: number;
53106
54466
  printer_id: string | null;
53107
54467
  render_html: string | null;
53108
54468
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
53109
54469
  updated_at: string;
54470
+ volgende_poging: string | null;
53110
54471
  voltooid_op: string | null;
53111
54472
  };
53112
54473
  Insert: {
@@ -53115,22 +54476,27 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
53115
54476
  created_at?: string;
53116
54477
  documentnaam?: string;
53117
54478
  documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
54479
+ extern_job_id?: string | null;
53118
54480
  foutmelding?: string | null;
53119
54481
  gebruiker_id?: string | null;
53120
54482
  gebruiker_naam?: string;
53121
54483
  gestart_op?: string | null;
53122
54484
  id?: string;
54485
+ idempotentie_sleutel?: string | null;
53123
54486
  is_herprint?: boolean;
53124
54487
  kopieen?: number;
53125
54488
  layout_id?: string | null;
53126
54489
  opgepakt_op?: string | null;
53127
54490
  paginas?: number;
53128
54491
  payload?: import("../integrations/supabase/types").Json;
54492
+ pdf_base64?: string | null;
54493
+ pdf_url?: string | null;
53129
54494
  pogingen?: number;
53130
54495
  printer_id?: string | null;
53131
54496
  render_html?: string | null;
53132
54497
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
53133
54498
  updated_at?: string;
54499
+ volgende_poging?: string | null;
53134
54500
  voltooid_op?: string | null;
53135
54501
  };
53136
54502
  Update: {
@@ -53139,22 +54505,27 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
53139
54505
  created_at?: string;
53140
54506
  documentnaam?: string;
53141
54507
  documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
54508
+ extern_job_id?: string | null;
53142
54509
  foutmelding?: string | null;
53143
54510
  gebruiker_id?: string | null;
53144
54511
  gebruiker_naam?: string;
53145
54512
  gestart_op?: string | null;
53146
54513
  id?: string;
54514
+ idempotentie_sleutel?: string | null;
53147
54515
  is_herprint?: boolean;
53148
54516
  kopieen?: number;
53149
54517
  layout_id?: string | null;
53150
54518
  opgepakt_op?: string | null;
53151
54519
  paginas?: number;
53152
54520
  payload?: import("../integrations/supabase/types").Json;
54521
+ pdf_base64?: string | null;
54522
+ pdf_url?: string | null;
53153
54523
  pogingen?: number;
53154
54524
  printer_id?: string | null;
53155
54525
  render_html?: string | null;
53156
54526
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
53157
54527
  updated_at?: string;
54528
+ volgende_poging?: string | null;
53158
54529
  voltooid_op?: string | null;
53159
54530
  };
53160
54531
  Relationships: [{
@@ -53177,6 +54548,63 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
53177
54548
  referencedColumns: ["id"];
53178
54549
  }];
53179
54550
  };
54551
+ print_queue_runners: {
54552
+ Row: {
54553
+ actief: boolean;
54554
+ basis_url: string;
54555
+ created_at: string;
54556
+ id: string;
54557
+ laatst_gezien: string;
54558
+ tick_sleutel: string;
54559
+ updated_at: string;
54560
+ };
54561
+ Insert: {
54562
+ actief?: boolean;
54563
+ basis_url: string;
54564
+ created_at?: string;
54565
+ id?: string;
54566
+ laatst_gezien?: string;
54567
+ tick_sleutel?: string;
54568
+ updated_at?: string;
54569
+ };
54570
+ Update: {
54571
+ actief?: boolean;
54572
+ basis_url?: string;
54573
+ created_at?: string;
54574
+ id?: string;
54575
+ laatst_gezien?: string;
54576
+ tick_sleutel?: string;
54577
+ updated_at?: string;
54578
+ };
54579
+ Relationships: [];
54580
+ };
54581
+ print_queue_settings: {
54582
+ Row: {
54583
+ bewaar_bestanden_dagen: number;
54584
+ bewaar_opdrachten_dagen: number;
54585
+ created_at: string;
54586
+ dubbel_venster_minuten: number;
54587
+ id: string;
54588
+ updated_at: string;
54589
+ };
54590
+ Insert: {
54591
+ bewaar_bestanden_dagen?: number;
54592
+ bewaar_opdrachten_dagen?: number;
54593
+ created_at?: string;
54594
+ dubbel_venster_minuten?: number;
54595
+ id?: string;
54596
+ updated_at?: string;
54597
+ };
54598
+ Update: {
54599
+ bewaar_bestanden_dagen?: number;
54600
+ bewaar_opdrachten_dagen?: number;
54601
+ created_at?: string;
54602
+ dubbel_venster_minuten?: number;
54603
+ id?: string;
54604
+ updated_at?: string;
54605
+ };
54606
+ Relationships: [];
54607
+ };
53180
54608
  print_rules: {
53181
54609
  Row: {
53182
54610
  actief: boolean;
@@ -53337,6 +54765,7 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
53337
54765
  agent_id: string | null;
53338
54766
  created_at: string;
53339
54767
  driver: string;
54768
+ extern_printer_id: string | null;
53340
54769
  id: string;
53341
54770
  ip_adres: string | null;
53342
54771
  laatst_gezien: string | null;
@@ -53358,6 +54787,7 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
53358
54787
  agent_id?: string | null;
53359
54788
  created_at?: string;
53360
54789
  driver?: string;
54790
+ extern_printer_id?: string | null;
53361
54791
  id?: string;
53362
54792
  ip_adres?: string | null;
53363
54793
  laatst_gezien?: string | null;
@@ -53379,6 +54809,7 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
53379
54809
  agent_id?: string | null;
53380
54810
  created_at?: string;
53381
54811
  driver?: string;
54812
+ extern_printer_id?: string | null;
53382
54813
  id?: string;
53383
54814
  ip_adres?: string | null;
53384
54815
  laatst_gezien?: string | null;
@@ -56014,6 +57445,8 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
56014
57445
  };
56015
57446
  twinfield_invoice_settings: {
56016
57447
  Row: {
57448
+ auto_invoice_enabled: boolean;
57449
+ auto_invoice_trigger_statuses: string[];
56017
57450
  created_at: string;
56018
57451
  debtor_gl_account: string;
56019
57452
  default_credit_invoice_type: string | null;
@@ -56034,6 +57467,8 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
56034
57467
  vat_code_export: string | null;
56035
57468
  };
56036
57469
  Insert: {
57470
+ auto_invoice_enabled?: boolean;
57471
+ auto_invoice_trigger_statuses?: string[];
56037
57472
  created_at?: string;
56038
57473
  debtor_gl_account?: string;
56039
57474
  default_credit_invoice_type?: string | null;
@@ -56054,6 +57489,8 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
56054
57489
  vat_code_export?: string | null;
56055
57490
  };
56056
57491
  Update: {
57492
+ auto_invoice_enabled?: boolean;
57493
+ auto_invoice_trigger_statuses?: string[];
56057
57494
  created_at?: string;
56058
57495
  debtor_gl_account?: string;
56059
57496
  default_credit_invoice_type?: string | null;
@@ -57116,6 +58553,33 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
57116
58553
  referencedColumns: ["id"];
57117
58554
  }];
57118
58555
  };
58556
+ user_module_permissions: {
58557
+ Row: {
58558
+ created_at: string;
58559
+ id: string;
58560
+ module_id: string;
58561
+ permission: string;
58562
+ updated_at: string;
58563
+ user_id: string;
58564
+ };
58565
+ Insert: {
58566
+ created_at?: string;
58567
+ id?: string;
58568
+ module_id: string;
58569
+ permission: string;
58570
+ updated_at?: string;
58571
+ user_id: string;
58572
+ };
58573
+ Update: {
58574
+ created_at?: string;
58575
+ id?: string;
58576
+ module_id?: string;
58577
+ permission?: string;
58578
+ updated_at?: string;
58579
+ user_id?: string;
58580
+ };
58581
+ Relationships: [];
58582
+ };
57119
58583
  user_roles: {
57120
58584
  Row: {
57121
58585
  created_at: string;
@@ -58949,6 +60413,10 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
58949
60413
  processed_items: number;
58950
60414
  }[];
58951
60415
  };
60416
+ backfill_order_auto_invoice_queue: {
60417
+ Args: never;
60418
+ Returns: number;
60419
+ };
58952
60420
  calculate_layer_stock: {
58953
60421
  Args: {
58954
60422
  p_product_id: string;
@@ -58983,6 +60451,77 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
58983
60451
  };
58984
60452
  Returns: import("../integrations/supabase/types").Json;
58985
60453
  };
60454
+ claim_cloud_print_jobs: {
60455
+ Args: {
60456
+ _max?: number;
60457
+ };
60458
+ Returns: {
60459
+ agent_id: string | null;
60460
+ bron_job_id: string | null;
60461
+ created_at: string;
60462
+ documentnaam: string;
60463
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
60464
+ extern_job_id: string | null;
60465
+ foutmelding: string | null;
60466
+ gebruiker_id: string | null;
60467
+ gebruiker_naam: string;
60468
+ gestart_op: string | null;
60469
+ id: string;
60470
+ idempotentie_sleutel: string | null;
60471
+ is_herprint: boolean;
60472
+ kopieen: number;
60473
+ layout_id: string | null;
60474
+ opgepakt_op: string | null;
60475
+ paginas: number;
60476
+ payload: import("../integrations/supabase/types").Json;
60477
+ pdf_base64: string | null;
60478
+ pdf_url: string | null;
60479
+ pogingen: number;
60480
+ printer_id: string | null;
60481
+ render_html: string | null;
60482
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
60483
+ updated_at: string;
60484
+ volgende_poging: string | null;
60485
+ voltooid_op: string | null;
60486
+ }[];
60487
+ SetofOptions: {
60488
+ from: "*";
60489
+ to: "print_jobs";
60490
+ isOneToOne: false;
60491
+ isSetofReturn: true;
60492
+ };
60493
+ };
60494
+ claim_floriday_stock_queue: {
60495
+ Args: {
60496
+ p_limit?: number;
60497
+ p_worker?: string;
60498
+ };
60499
+ Returns: {
60500
+ attempts: number;
60501
+ connection_id: string;
60502
+ created_at: string;
60503
+ desired_available: boolean | null;
60504
+ gateway_attempt_id: string | null;
60505
+ id: string;
60506
+ last_error: string | null;
60507
+ locked_at: string | null;
60508
+ locked_by: string | null;
60509
+ next_attempt_at: string;
60510
+ number_of_pieces: number;
60511
+ sent_at: string | null;
60512
+ status: string;
60513
+ superseded_by: string | null;
60514
+ trade_item_id: string;
60515
+ updated_at: string;
60516
+ user_id: string;
60517
+ }[];
60518
+ SetofOptions: {
60519
+ from: "*";
60520
+ to: "floriday_continuous_stock_queue";
60521
+ isOneToOne: false;
60522
+ isSetofReturn: true;
60523
+ };
60524
+ };
58986
60525
  claim_logistics_tasks: {
58987
60526
  Args: {
58988
60527
  _limit?: number;
@@ -59042,22 +60581,27 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
59042
60581
  created_at: string;
59043
60582
  documentnaam: string;
59044
60583
  documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
60584
+ extern_job_id: string | null;
59045
60585
  foutmelding: string | null;
59046
60586
  gebruiker_id: string | null;
59047
60587
  gebruiker_naam: string;
59048
60588
  gestart_op: string | null;
59049
60589
  id: string;
60590
+ idempotentie_sleutel: string | null;
59050
60591
  is_herprint: boolean;
59051
60592
  kopieen: number;
59052
60593
  layout_id: string | null;
59053
60594
  opgepakt_op: string | null;
59054
60595
  paginas: number;
59055
60596
  payload: import("../integrations/supabase/types").Json;
60597
+ pdf_base64: string | null;
60598
+ pdf_url: string | null;
59056
60599
  pogingen: number;
59057
60600
  printer_id: string | null;
59058
60601
  render_html: string | null;
59059
60602
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
59060
60603
  updated_at: string;
60604
+ volgende_poging: string | null;
59061
60605
  voltooid_op: string | null;
59062
60606
  }[];
59063
60607
  SetofOptions: {
@@ -59095,10 +60639,28 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
59095
60639
  isSetofReturn: true;
59096
60640
  };
59097
60641
  };
60642
+ cleanup_floriday_stock_queue: {
60643
+ Args: never;
60644
+ Returns: undefined;
60645
+ };
59098
60646
  cleanup_old_bookings: {
59099
60647
  Args: never;
59100
60648
  Returns: undefined;
59101
60649
  };
60650
+ cleanup_voorraad_module_history: {
60651
+ Args: never;
60652
+ Returns: undefined;
60653
+ };
60654
+ complete_floriday_stock_queue: {
60655
+ Args: {
60656
+ p_attempt_id?: string;
60657
+ p_error?: string;
60658
+ p_id: string;
60659
+ p_ok: boolean;
60660
+ p_permanent?: boolean;
60661
+ };
60662
+ Returns: undefined;
60663
+ };
59102
60664
  consume_bom_for_production: {
59103
60665
  Args: {
59104
60666
  p_connection_id: string;
@@ -59210,6 +60772,13 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
59210
60772
  };
59211
60773
  Returns: import("../integrations/supabase/types").Json;
59212
60774
  };
60775
+ effective_module_permission: {
60776
+ Args: {
60777
+ _module_id: string;
60778
+ _user_id: string;
60779
+ };
60780
+ Returns: string;
60781
+ };
59213
60782
  email_auth_decrypt: {
59214
60783
  Args: {
59215
60784
  cipher: string;
@@ -60013,6 +61582,51 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
60013
61582
  isSetofReturn: false;
60014
61583
  };
60015
61584
  };
61585
+ logistics_floriday_claim_pushes: {
61586
+ Args: {
61587
+ _lease_seconds?: number;
61588
+ _limit?: number;
61589
+ _worker?: string;
61590
+ };
61591
+ Returns: {
61592
+ attempts: number;
61593
+ fulfillment_order_id: string;
61594
+ id: string;
61595
+ last_sent_hash: string;
61596
+ order_ref: string;
61597
+ payload: import("../integrations/supabase/types").Json;
61598
+ payload_hash: string;
61599
+ revision: number;
61600
+ }[];
61601
+ };
61602
+ logistics_floriday_finish_push: {
61603
+ Args: {
61604
+ _error?: string;
61605
+ _fulfillment_order_id?: string;
61606
+ _id: string;
61607
+ _max_age_hours?: number;
61608
+ _max_attempts?: number;
61609
+ _ok: boolean;
61610
+ _permanent?: boolean;
61611
+ _revision: number;
61612
+ _sent_hash?: string;
61613
+ };
61614
+ Returns: string;
61615
+ };
61616
+ logistics_floriday_prune_pushes: {
61617
+ Args: {
61618
+ _days?: number;
61619
+ };
61620
+ Returns: number;
61621
+ };
61622
+ logistics_floriday_queue_push: {
61623
+ Args: {
61624
+ _order_ref: string;
61625
+ _payload?: import("../integrations/supabase/types").Json;
61626
+ _payload_hash?: string;
61627
+ };
61628
+ Returns: string;
61629
+ };
60016
61630
  logistics_live_carriers: {
60017
61631
  Args: {
60018
61632
  p_order_ref: string;
@@ -60303,6 +61917,13 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
60303
61917
  };
60304
61918
  Returns: undefined;
60305
61919
  };
61920
+ my_module_permissions: {
61921
+ Args: never;
61922
+ Returns: {
61923
+ module_id: string;
61924
+ permission: string;
61925
+ }[];
61926
+ };
60306
61927
  next_manufacture_partij: {
60307
61928
  Args: {
60308
61929
  _tenant_id: string;
@@ -60353,6 +61974,13 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
60353
61974
  };
60354
61975
  Returns: boolean;
60355
61976
  };
61977
+ opruim_print_historie: {
61978
+ Args: never;
61979
+ Returns: {
61980
+ ontdaan: number;
61981
+ verwijderd: number;
61982
+ }[];
61983
+ };
60356
61984
  order_number_prefix: {
60357
61985
  Args: {
60358
61986
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -60360,6 +61988,15 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
60360
61988
  };
60361
61989
  Returns: string;
60362
61990
  };
61991
+ pick_active_printers: {
61992
+ Args: never;
61993
+ Returns: {
61994
+ id: string;
61995
+ locatie: string;
61996
+ naam: string;
61997
+ online: boolean;
61998
+ }[];
61999
+ };
60363
62000
  pick_claim_document: {
60364
62001
  Args: {
60365
62002
  _queue_item_id: string;
@@ -60546,6 +62183,52 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
60546
62183
  };
60547
62184
  Returns: undefined;
60548
62185
  };
62186
+ pick_reset_print: {
62187
+ Args: {
62188
+ _queue_item_id: string;
62189
+ _session_id: string;
62190
+ };
62191
+ Returns: {
62192
+ announced_at: string;
62193
+ assigned_user_id: string | null;
62194
+ barcode: string | null;
62195
+ cancelled_at: string | null;
62196
+ cart_count: number;
62197
+ completed_at: string | null;
62198
+ country_code: string | null;
62199
+ created_at: string;
62200
+ customer_name: string | null;
62201
+ delivery_address: string | null;
62202
+ document_number: string | null;
62203
+ document_type_id: string | null;
62204
+ due_at: string | null;
62205
+ id: string;
62206
+ is_urgent: boolean;
62207
+ line_count: number;
62208
+ order_number: string | null;
62209
+ order_type: string | null;
62210
+ payload: import("../integrations/supabase/types").Json;
62211
+ print_count: number;
62212
+ print_job_id: string | null;
62213
+ printed_at: string | null;
62214
+ printed_by: string | null;
62215
+ printer_id: string | null;
62216
+ priority: number;
62217
+ reference: string | null;
62218
+ route: string | null;
62219
+ screen_id: string | null;
62220
+ station_id: string | null;
62221
+ status_id: string | null;
62222
+ updated_at: string;
62223
+ warnings: import("../integrations/supabase/types").Json;
62224
+ };
62225
+ SetofOptions: {
62226
+ from: "*";
62227
+ to: "pick_queue";
62228
+ isOneToOne: true;
62229
+ isSetofReturn: false;
62230
+ };
62231
+ };
60549
62232
  pick_station_dashboard: {
60550
62233
  Args: never;
60551
62234
  Returns: {
@@ -60692,6 +62375,12 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
60692
62375
  };
60693
62376
  Returns: undefined;
60694
62377
  };
62378
+ reset_stalled_floriday_stock_queue: {
62379
+ Args: {
62380
+ p_include_failed?: boolean;
62381
+ };
62382
+ Returns: number;
62383
+ };
60695
62384
  resolve_group_allocation: {
60696
62385
  Args: {
60697
62386
  _needed: number;
@@ -60736,14 +62425,28 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
60736
62425
  };
60737
62426
  Returns: import("../integrations/supabase/types").Json;
60738
62427
  };
62428
+ ruim_print_jobs_op: {
62429
+ Args: {
62430
+ _bewaar_dagen?: number;
62431
+ };
62432
+ Returns: number;
62433
+ };
60739
62434
  run_floriday_continuous_stock_sync: {
60740
62435
  Args: never;
60741
62436
  Returns: undefined;
60742
62437
  };
62438
+ run_floriday_stock_queue_process: {
62439
+ Args: never;
62440
+ Returns: undefined;
62441
+ };
60743
62442
  run_logistics_tasks_dispatch: {
60744
62443
  Args: never;
60745
62444
  Returns: undefined;
60746
62445
  };
62446
+ run_print_queue_ticks: {
62447
+ Args: never;
62448
+ Returns: number;
62449
+ };
60747
62450
  run_twinfield_queue_tick: {
60748
62451
  Args: never;
60749
62452
  Returns: undefined;
@@ -60984,6 +62687,13 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
60984
62687
  };
60985
62688
  Returns: number;
60986
62689
  };
62690
+ schedule_floriday_stock_queue_process: {
62691
+ Args: {
62692
+ p_apikey: string;
62693
+ p_url: string;
62694
+ };
62695
+ Returns: number;
62696
+ };
60987
62697
  schedule_floriday_token_refresh: {
60988
62698
  Args: {
60989
62699
  p_apikey: string;
@@ -61124,6 +62834,15 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
61124
62834
  };
61125
62835
  Returns: undefined;
61126
62836
  };
62837
+ trade_item_stock_duplicates: {
62838
+ Args: never;
62839
+ Returns: {
62840
+ keys: string[];
62841
+ product_id: string;
62842
+ product_name: string;
62843
+ row_count: number;
62844
+ }[];
62845
+ };
61127
62846
  try_debtor_lock: {
61128
62847
  Args: {
61129
62848
  _group_key: string;
@@ -61173,7 +62892,7 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
61173
62892
  };
61174
62893
  Enums: {
61175
62894
  ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
61176
- app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin";
62895
+ app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
61177
62896
  doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
61178
62897
  doc_orientation: "portrait" | "landscape";
61179
62898
  exact_env: "staging" | "live";
@@ -62882,7 +64601,7 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
62882
64601
  city: string | null;
62883
64602
  country: string | null;
62884
64603
  created_at: string;
62885
- customer_id: string | null;
64604
+ customer_id: string;
62886
64605
  external_key: string | null;
62887
64606
  external_provider: string | null;
62888
64607
  floriday_location_id: string | null;
@@ -62906,7 +64625,7 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
62906
64625
  city?: string | null;
62907
64626
  country?: string | null;
62908
64627
  created_at?: string;
62909
- customer_id?: string | null;
64628
+ customer_id: string;
62910
64629
  external_key?: string | null;
62911
64630
  external_provider?: string | null;
62912
64631
  floriday_location_id?: string | null;
@@ -62930,7 +64649,7 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
62930
64649
  city?: string | null;
62931
64650
  country?: string | null;
62932
64651
  created_at?: string;
62933
- customer_id?: string | null;
64652
+ customer_id?: string;
62934
64653
  external_key?: string | null;
62935
64654
  external_provider?: string | null;
62936
64655
  floriday_location_id?: string | null;
@@ -66893,12 +68612,17 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
66893
68612
  attempts: number;
66894
68613
  connection_id: string;
66895
68614
  created_at: string;
68615
+ desired_available: boolean | null;
66896
68616
  gateway_attempt_id: string | null;
66897
68617
  id: string;
66898
68618
  last_error: string | null;
68619
+ locked_at: string | null;
68620
+ locked_by: string | null;
68621
+ next_attempt_at: string;
66899
68622
  number_of_pieces: number;
66900
68623
  sent_at: string | null;
66901
68624
  status: string;
68625
+ superseded_by: string | null;
66902
68626
  trade_item_id: string;
66903
68627
  updated_at: string;
66904
68628
  user_id: string;
@@ -66907,12 +68631,17 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
66907
68631
  attempts?: number;
66908
68632
  connection_id: string;
66909
68633
  created_at?: string;
68634
+ desired_available?: boolean | null;
66910
68635
  gateway_attempt_id?: string | null;
66911
68636
  id?: string;
66912
68637
  last_error?: string | null;
68638
+ locked_at?: string | null;
68639
+ locked_by?: string | null;
68640
+ next_attempt_at?: string;
66913
68641
  number_of_pieces?: number;
66914
68642
  sent_at?: string | null;
66915
68643
  status?: string;
68644
+ superseded_by?: string | null;
66916
68645
  trade_item_id: string;
66917
68646
  updated_at?: string;
66918
68647
  user_id: string;
@@ -66921,12 +68650,17 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
66921
68650
  attempts?: number;
66922
68651
  connection_id?: string;
66923
68652
  created_at?: string;
68653
+ desired_available?: boolean | null;
66924
68654
  gateway_attempt_id?: string | null;
66925
68655
  id?: string;
66926
68656
  last_error?: string | null;
68657
+ locked_at?: string | null;
68658
+ locked_by?: string | null;
68659
+ next_attempt_at?: string;
66927
68660
  number_of_pieces?: number;
66928
68661
  sent_at?: string | null;
66929
68662
  status?: string;
68663
+ superseded_by?: string | null;
66930
68664
  trade_item_id?: string;
66931
68665
  updated_at?: string;
66932
68666
  user_id?: string;
@@ -67663,6 +69397,7 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
67663
69397
  Row: {
67664
69398
  buyer_organization_id: string | null;
67665
69399
  connection_id: string;
69400
+ controlled_at: string | null;
67666
69401
  created_at: string;
67667
69402
  data: import("../integrations/supabase/types").Json;
67668
69403
  floriday_id: string;
@@ -67674,6 +69409,7 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
67674
69409
  Insert: {
67675
69410
  buyer_organization_id?: string | null;
67676
69411
  connection_id: string;
69412
+ controlled_at?: string | null;
67677
69413
  created_at?: string;
67678
69414
  data: import("../integrations/supabase/types").Json;
67679
69415
  floriday_id: string;
@@ -67685,6 +69421,7 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
67685
69421
  Update: {
67686
69422
  buyer_organization_id?: string | null;
67687
69423
  connection_id?: string;
69424
+ controlled_at?: string | null;
67688
69425
  created_at?: string;
67689
69426
  data?: import("../integrations/supabase/types").Json;
67690
69427
  floriday_id?: string;
@@ -68586,6 +70323,54 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
68586
70323
  };
68587
70324
  Relationships: [];
68588
70325
  };
70326
+ invoice_timing_settings: {
70327
+ Row: {
70328
+ anchor: string;
70329
+ business_days_only: boolean;
70330
+ created_at: string;
70331
+ enabled: boolean;
70332
+ id: string;
70333
+ offset_days: number;
70334
+ pickup_anchor: string;
70335
+ pickup_business_days_only: boolean;
70336
+ pickup_offset_days: number;
70337
+ pickup_time_of_day: string;
70338
+ singleton: boolean;
70339
+ time_of_day: string;
70340
+ updated_at: string;
70341
+ };
70342
+ Insert: {
70343
+ anchor?: string;
70344
+ business_days_only?: boolean;
70345
+ created_at?: string;
70346
+ enabled?: boolean;
70347
+ id?: string;
70348
+ offset_days?: number;
70349
+ pickup_anchor?: string;
70350
+ pickup_business_days_only?: boolean;
70351
+ pickup_offset_days?: number;
70352
+ pickup_time_of_day?: string;
70353
+ singleton?: boolean;
70354
+ time_of_day?: string;
70355
+ updated_at?: string;
70356
+ };
70357
+ Update: {
70358
+ anchor?: string;
70359
+ business_days_only?: boolean;
70360
+ created_at?: string;
70361
+ enabled?: boolean;
70362
+ id?: string;
70363
+ offset_days?: number;
70364
+ pickup_anchor?: string;
70365
+ pickup_business_days_only?: boolean;
70366
+ pickup_offset_days?: number;
70367
+ pickup_time_of_day?: string;
70368
+ singleton?: boolean;
70369
+ time_of_day?: string;
70370
+ updated_at?: string;
70371
+ };
70372
+ Relationships: [];
70373
+ };
68589
70374
  itk_contact_persons: {
68590
70375
  Row: {
68591
70376
  created_at: string;
@@ -69675,6 +71460,69 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
69675
71460
  };
69676
71461
  Relationships: [];
69677
71462
  };
71463
+ logistics_floriday_pushes: {
71464
+ Row: {
71465
+ attempts: number;
71466
+ created_at: string;
71467
+ first_queued_at: string;
71468
+ fulfillment_order_id: string | null;
71469
+ id: string;
71470
+ last_error: string | null;
71471
+ last_error_at: string | null;
71472
+ last_sent_hash: string | null;
71473
+ locked_by: string | null;
71474
+ locked_until: string | null;
71475
+ next_attempt_at: string;
71476
+ order_ref: string;
71477
+ payload: import("../integrations/supabase/types").Json;
71478
+ payload_hash: string | null;
71479
+ revision: number;
71480
+ sent_at: string | null;
71481
+ status: string;
71482
+ updated_at: string;
71483
+ };
71484
+ Insert: {
71485
+ attempts?: number;
71486
+ created_at?: string;
71487
+ first_queued_at?: string;
71488
+ fulfillment_order_id?: string | null;
71489
+ id?: string;
71490
+ last_error?: string | null;
71491
+ last_error_at?: string | null;
71492
+ last_sent_hash?: string | null;
71493
+ locked_by?: string | null;
71494
+ locked_until?: string | null;
71495
+ next_attempt_at?: string;
71496
+ order_ref: string;
71497
+ payload?: import("../integrations/supabase/types").Json;
71498
+ payload_hash?: string | null;
71499
+ revision?: number;
71500
+ sent_at?: string | null;
71501
+ status?: string;
71502
+ updated_at?: string;
71503
+ };
71504
+ Update: {
71505
+ attempts?: number;
71506
+ created_at?: string;
71507
+ first_queued_at?: string;
71508
+ fulfillment_order_id?: string | null;
71509
+ id?: string;
71510
+ last_error?: string | null;
71511
+ last_error_at?: string | null;
71512
+ last_sent_hash?: string | null;
71513
+ locked_by?: string | null;
71514
+ locked_until?: string | null;
71515
+ next_attempt_at?: string;
71516
+ order_ref?: string;
71517
+ payload?: import("../integrations/supabase/types").Json;
71518
+ payload_hash?: string | null;
71519
+ revision?: number;
71520
+ sent_at?: string | null;
71521
+ status?: string;
71522
+ updated_at?: string;
71523
+ };
71524
+ Relationships: [];
71525
+ };
69678
71526
  logistics_formulas: {
69679
71527
  Row: {
69680
71528
  created_at: string;
@@ -70538,14 +72386,17 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
70538
72386
  };
70539
72387
  mailbox_messages: {
70540
72388
  Row: {
72389
+ attachments: import("../integrations/supabase/types").Json;
70541
72390
  body_html: string | null;
70542
72391
  body_text: string | null;
72392
+ cc_recipients: import("../integrations/supabase/types").Json;
70543
72393
  connection_id: string | null;
70544
72394
  created_at: string;
70545
72395
  error_message: string | null;
70546
72396
  external_id: string | null;
70547
72397
  from_email: string | null;
70548
72398
  from_name: string | null;
72399
+ has_attachments: boolean;
70549
72400
  id: string;
70550
72401
  message_id: string | null;
70551
72402
  profile_id: string | null;
@@ -70553,18 +72404,22 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
70553
72404
  received_at: string | null;
70554
72405
  status: string;
70555
72406
  subject: string | null;
72407
+ to_recipients: import("../integrations/supabase/types").Json;
70556
72408
  uid: number | null;
70557
72409
  updated_at: string;
70558
72410
  };
70559
72411
  Insert: {
72412
+ attachments?: import("../integrations/supabase/types").Json;
70560
72413
  body_html?: string | null;
70561
72414
  body_text?: string | null;
72415
+ cc_recipients?: import("../integrations/supabase/types").Json;
70562
72416
  connection_id?: string | null;
70563
72417
  created_at?: string;
70564
72418
  error_message?: string | null;
70565
72419
  external_id?: string | null;
70566
72420
  from_email?: string | null;
70567
72421
  from_name?: string | null;
72422
+ has_attachments?: boolean;
70568
72423
  id?: string;
70569
72424
  message_id?: string | null;
70570
72425
  profile_id?: string | null;
@@ -70572,18 +72427,22 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
70572
72427
  received_at?: string | null;
70573
72428
  status?: string;
70574
72429
  subject?: string | null;
72430
+ to_recipients?: import("../integrations/supabase/types").Json;
70575
72431
  uid?: number | null;
70576
72432
  updated_at?: string;
70577
72433
  };
70578
72434
  Update: {
72435
+ attachments?: import("../integrations/supabase/types").Json;
70579
72436
  body_html?: string | null;
70580
72437
  body_text?: string | null;
72438
+ cc_recipients?: import("../integrations/supabase/types").Json;
70581
72439
  connection_id?: string | null;
70582
72440
  created_at?: string;
70583
72441
  error_message?: string | null;
70584
72442
  external_id?: string | null;
70585
72443
  from_email?: string | null;
70586
72444
  from_name?: string | null;
72445
+ has_attachments?: boolean;
70587
72446
  id?: string;
70588
72447
  message_id?: string | null;
70589
72448
  profile_id?: string | null;
@@ -70591,6 +72450,7 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
70591
72450
  received_at?: string | null;
70592
72451
  status?: string;
70593
72452
  subject?: string | null;
72453
+ to_recipients?: import("../integrations/supabase/types").Json;
70594
72454
  uid?: number | null;
70595
72455
  updated_at?: string;
70596
72456
  };
@@ -70998,6 +72858,36 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
70998
72858
  };
70999
72859
  Relationships: [];
71000
72860
  };
72861
+ module_registry: {
72862
+ Row: {
72863
+ created_at: string;
72864
+ is_active: boolean;
72865
+ last_seen_at: string;
72866
+ module_id: string;
72867
+ name: string;
72868
+ shell_id: string | null;
72869
+ sort_order: number | null;
72870
+ };
72871
+ Insert: {
72872
+ created_at?: string;
72873
+ is_active?: boolean;
72874
+ last_seen_at?: string;
72875
+ module_id: string;
72876
+ name: string;
72877
+ shell_id?: string | null;
72878
+ sort_order?: number | null;
72879
+ };
72880
+ Update: {
72881
+ created_at?: string;
72882
+ is_active?: boolean;
72883
+ last_seen_at?: string;
72884
+ module_id?: string;
72885
+ name?: string;
72886
+ shell_id?: string | null;
72887
+ sort_order?: number | null;
72888
+ };
72889
+ Relationships: [];
72890
+ };
71001
72891
  module_runtime_config: {
71002
72892
  Row: {
71003
72893
  key: string;
@@ -72057,6 +73947,42 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
72057
73947
  };
72058
73948
  Relationships: [];
72059
73949
  };
73950
+ order_invoice_links: {
73951
+ Row: {
73952
+ attempts: number;
73953
+ created_at: string;
73954
+ error_message: string | null;
73955
+ id: string;
73956
+ invoice_number: string | null;
73957
+ order_id: string;
73958
+ processed_at: string | null;
73959
+ status: string;
73960
+ updated_at: string;
73961
+ };
73962
+ Insert: {
73963
+ attempts?: number;
73964
+ created_at?: string;
73965
+ error_message?: string | null;
73966
+ id?: string;
73967
+ invoice_number?: string | null;
73968
+ order_id: string;
73969
+ processed_at?: string | null;
73970
+ status?: string;
73971
+ updated_at?: string;
73972
+ };
73973
+ Update: {
73974
+ attempts?: number;
73975
+ created_at?: string;
73976
+ error_message?: string | null;
73977
+ id?: string;
73978
+ invoice_number?: string | null;
73979
+ order_id?: string;
73980
+ processed_at?: string | null;
73981
+ status?: string;
73982
+ updated_at?: string;
73983
+ };
73984
+ Relationships: [];
73985
+ };
72060
73986
  order_items: {
72061
73987
  Row: {
72062
73988
  crates_per_layer: number | null;
@@ -72239,6 +74165,7 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
72239
74165
  delivery_date: string | null;
72240
74166
  floriday_sales_order_id: string | null;
72241
74167
  id: string;
74168
+ invoice_due_at: string | null;
72242
74169
  is_reservation: boolean;
72243
74170
  notes: string | null;
72244
74171
  order_date: string;
@@ -72260,6 +74187,7 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
72260
74187
  delivery_date?: string | null;
72261
74188
  floriday_sales_order_id?: string | null;
72262
74189
  id?: string;
74190
+ invoice_due_at?: string | null;
72263
74191
  is_reservation?: boolean;
72264
74192
  notes?: string | null;
72265
74193
  order_date?: string;
@@ -72281,6 +74209,7 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
72281
74209
  delivery_date?: string | null;
72282
74210
  floriday_sales_order_id?: string | null;
72283
74211
  id?: string;
74212
+ invoice_due_at?: string | null;
72284
74213
  is_reservation?: boolean;
72285
74214
  notes?: string | null;
72286
74215
  order_date?: string;
@@ -73477,22 +75406,27 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
73477
75406
  created_at: string;
73478
75407
  documentnaam: string;
73479
75408
  documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
75409
+ extern_job_id: string | null;
73480
75410
  foutmelding: string | null;
73481
75411
  gebruiker_id: string | null;
73482
75412
  gebruiker_naam: string;
73483
75413
  gestart_op: string | null;
73484
75414
  id: string;
75415
+ idempotentie_sleutel: string | null;
73485
75416
  is_herprint: boolean;
73486
75417
  kopieen: number;
73487
75418
  layout_id: string | null;
73488
75419
  opgepakt_op: string | null;
73489
75420
  paginas: number;
73490
75421
  payload: import("../integrations/supabase/types").Json;
75422
+ pdf_base64: string | null;
75423
+ pdf_url: string | null;
73491
75424
  pogingen: number;
73492
75425
  printer_id: string | null;
73493
75426
  render_html: string | null;
73494
75427
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
73495
75428
  updated_at: string;
75429
+ volgende_poging: string | null;
73496
75430
  voltooid_op: string | null;
73497
75431
  };
73498
75432
  Insert: {
@@ -73501,22 +75435,27 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
73501
75435
  created_at?: string;
73502
75436
  documentnaam?: string;
73503
75437
  documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
75438
+ extern_job_id?: string | null;
73504
75439
  foutmelding?: string | null;
73505
75440
  gebruiker_id?: string | null;
73506
75441
  gebruiker_naam?: string;
73507
75442
  gestart_op?: string | null;
73508
75443
  id?: string;
75444
+ idempotentie_sleutel?: string | null;
73509
75445
  is_herprint?: boolean;
73510
75446
  kopieen?: number;
73511
75447
  layout_id?: string | null;
73512
75448
  opgepakt_op?: string | null;
73513
75449
  paginas?: number;
73514
75450
  payload?: import("../integrations/supabase/types").Json;
75451
+ pdf_base64?: string | null;
75452
+ pdf_url?: string | null;
73515
75453
  pogingen?: number;
73516
75454
  printer_id?: string | null;
73517
75455
  render_html?: string | null;
73518
75456
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
73519
75457
  updated_at?: string;
75458
+ volgende_poging?: string | null;
73520
75459
  voltooid_op?: string | null;
73521
75460
  };
73522
75461
  Update: {
@@ -73525,22 +75464,27 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
73525
75464
  created_at?: string;
73526
75465
  documentnaam?: string;
73527
75466
  documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
75467
+ extern_job_id?: string | null;
73528
75468
  foutmelding?: string | null;
73529
75469
  gebruiker_id?: string | null;
73530
75470
  gebruiker_naam?: string;
73531
75471
  gestart_op?: string | null;
73532
75472
  id?: string;
75473
+ idempotentie_sleutel?: string | null;
73533
75474
  is_herprint?: boolean;
73534
75475
  kopieen?: number;
73535
75476
  layout_id?: string | null;
73536
75477
  opgepakt_op?: string | null;
73537
75478
  paginas?: number;
73538
75479
  payload?: import("../integrations/supabase/types").Json;
75480
+ pdf_base64?: string | null;
75481
+ pdf_url?: string | null;
73539
75482
  pogingen?: number;
73540
75483
  printer_id?: string | null;
73541
75484
  render_html?: string | null;
73542
75485
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
73543
75486
  updated_at?: string;
75487
+ volgende_poging?: string | null;
73544
75488
  voltooid_op?: string | null;
73545
75489
  };
73546
75490
  Relationships: [{
@@ -73563,6 +75507,63 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
73563
75507
  referencedColumns: ["id"];
73564
75508
  }];
73565
75509
  };
75510
+ print_queue_runners: {
75511
+ Row: {
75512
+ actief: boolean;
75513
+ basis_url: string;
75514
+ created_at: string;
75515
+ id: string;
75516
+ laatst_gezien: string;
75517
+ tick_sleutel: string;
75518
+ updated_at: string;
75519
+ };
75520
+ Insert: {
75521
+ actief?: boolean;
75522
+ basis_url: string;
75523
+ created_at?: string;
75524
+ id?: string;
75525
+ laatst_gezien?: string;
75526
+ tick_sleutel?: string;
75527
+ updated_at?: string;
75528
+ };
75529
+ Update: {
75530
+ actief?: boolean;
75531
+ basis_url?: string;
75532
+ created_at?: string;
75533
+ id?: string;
75534
+ laatst_gezien?: string;
75535
+ tick_sleutel?: string;
75536
+ updated_at?: string;
75537
+ };
75538
+ Relationships: [];
75539
+ };
75540
+ print_queue_settings: {
75541
+ Row: {
75542
+ bewaar_bestanden_dagen: number;
75543
+ bewaar_opdrachten_dagen: number;
75544
+ created_at: string;
75545
+ dubbel_venster_minuten: number;
75546
+ id: string;
75547
+ updated_at: string;
75548
+ };
75549
+ Insert: {
75550
+ bewaar_bestanden_dagen?: number;
75551
+ bewaar_opdrachten_dagen?: number;
75552
+ created_at?: string;
75553
+ dubbel_venster_minuten?: number;
75554
+ id?: string;
75555
+ updated_at?: string;
75556
+ };
75557
+ Update: {
75558
+ bewaar_bestanden_dagen?: number;
75559
+ bewaar_opdrachten_dagen?: number;
75560
+ created_at?: string;
75561
+ dubbel_venster_minuten?: number;
75562
+ id?: string;
75563
+ updated_at?: string;
75564
+ };
75565
+ Relationships: [];
75566
+ };
73566
75567
  print_rules: {
73567
75568
  Row: {
73568
75569
  actief: boolean;
@@ -73723,6 +75724,7 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
73723
75724
  agent_id: string | null;
73724
75725
  created_at: string;
73725
75726
  driver: string;
75727
+ extern_printer_id: string | null;
73726
75728
  id: string;
73727
75729
  ip_adres: string | null;
73728
75730
  laatst_gezien: string | null;
@@ -73744,6 +75746,7 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
73744
75746
  agent_id?: string | null;
73745
75747
  created_at?: string;
73746
75748
  driver?: string;
75749
+ extern_printer_id?: string | null;
73747
75750
  id?: string;
73748
75751
  ip_adres?: string | null;
73749
75752
  laatst_gezien?: string | null;
@@ -73765,6 +75768,7 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
73765
75768
  agent_id?: string | null;
73766
75769
  created_at?: string;
73767
75770
  driver?: string;
75771
+ extern_printer_id?: string | null;
73768
75772
  id?: string;
73769
75773
  ip_adres?: string | null;
73770
75774
  laatst_gezien?: string | null;
@@ -76400,6 +78404,8 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
76400
78404
  };
76401
78405
  twinfield_invoice_settings: {
76402
78406
  Row: {
78407
+ auto_invoice_enabled: boolean;
78408
+ auto_invoice_trigger_statuses: string[];
76403
78409
  created_at: string;
76404
78410
  debtor_gl_account: string;
76405
78411
  default_credit_invoice_type: string | null;
@@ -76420,6 +78426,8 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
76420
78426
  vat_code_export: string | null;
76421
78427
  };
76422
78428
  Insert: {
78429
+ auto_invoice_enabled?: boolean;
78430
+ auto_invoice_trigger_statuses?: string[];
76423
78431
  created_at?: string;
76424
78432
  debtor_gl_account?: string;
76425
78433
  default_credit_invoice_type?: string | null;
@@ -76440,6 +78448,8 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
76440
78448
  vat_code_export?: string | null;
76441
78449
  };
76442
78450
  Update: {
78451
+ auto_invoice_enabled?: boolean;
78452
+ auto_invoice_trigger_statuses?: string[];
76443
78453
  created_at?: string;
76444
78454
  debtor_gl_account?: string;
76445
78455
  default_credit_invoice_type?: string | null;
@@ -77502,6 +79512,33 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
77502
79512
  referencedColumns: ["id"];
77503
79513
  }];
77504
79514
  };
79515
+ user_module_permissions: {
79516
+ Row: {
79517
+ created_at: string;
79518
+ id: string;
79519
+ module_id: string;
79520
+ permission: string;
79521
+ updated_at: string;
79522
+ user_id: string;
79523
+ };
79524
+ Insert: {
79525
+ created_at?: string;
79526
+ id?: string;
79527
+ module_id: string;
79528
+ permission: string;
79529
+ updated_at?: string;
79530
+ user_id: string;
79531
+ };
79532
+ Update: {
79533
+ created_at?: string;
79534
+ id?: string;
79535
+ module_id?: string;
79536
+ permission?: string;
79537
+ updated_at?: string;
79538
+ user_id?: string;
79539
+ };
79540
+ Relationships: [];
79541
+ };
77505
79542
  user_roles: {
77506
79543
  Row: {
77507
79544
  created_at: string;
@@ -79335,6 +81372,10 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
79335
81372
  processed_items: number;
79336
81373
  }[];
79337
81374
  };
81375
+ backfill_order_auto_invoice_queue: {
81376
+ Args: never;
81377
+ Returns: number;
81378
+ };
79338
81379
  calculate_layer_stock: {
79339
81380
  Args: {
79340
81381
  p_product_id: string;
@@ -79369,6 +81410,77 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
79369
81410
  };
79370
81411
  Returns: import("../integrations/supabase/types").Json;
79371
81412
  };
81413
+ claim_cloud_print_jobs: {
81414
+ Args: {
81415
+ _max?: number;
81416
+ };
81417
+ Returns: {
81418
+ agent_id: string | null;
81419
+ bron_job_id: string | null;
81420
+ created_at: string;
81421
+ documentnaam: string;
81422
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
81423
+ extern_job_id: string | null;
81424
+ foutmelding: string | null;
81425
+ gebruiker_id: string | null;
81426
+ gebruiker_naam: string;
81427
+ gestart_op: string | null;
81428
+ id: string;
81429
+ idempotentie_sleutel: string | null;
81430
+ is_herprint: boolean;
81431
+ kopieen: number;
81432
+ layout_id: string | null;
81433
+ opgepakt_op: string | null;
81434
+ paginas: number;
81435
+ payload: import("../integrations/supabase/types").Json;
81436
+ pdf_base64: string | null;
81437
+ pdf_url: string | null;
81438
+ pogingen: number;
81439
+ printer_id: string | null;
81440
+ render_html: string | null;
81441
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
81442
+ updated_at: string;
81443
+ volgende_poging: string | null;
81444
+ voltooid_op: string | null;
81445
+ }[];
81446
+ SetofOptions: {
81447
+ from: "*";
81448
+ to: "print_jobs";
81449
+ isOneToOne: false;
81450
+ isSetofReturn: true;
81451
+ };
81452
+ };
81453
+ claim_floriday_stock_queue: {
81454
+ Args: {
81455
+ p_limit?: number;
81456
+ p_worker?: string;
81457
+ };
81458
+ Returns: {
81459
+ attempts: number;
81460
+ connection_id: string;
81461
+ created_at: string;
81462
+ desired_available: boolean | null;
81463
+ gateway_attempt_id: string | null;
81464
+ id: string;
81465
+ last_error: string | null;
81466
+ locked_at: string | null;
81467
+ locked_by: string | null;
81468
+ next_attempt_at: string;
81469
+ number_of_pieces: number;
81470
+ sent_at: string | null;
81471
+ status: string;
81472
+ superseded_by: string | null;
81473
+ trade_item_id: string;
81474
+ updated_at: string;
81475
+ user_id: string;
81476
+ }[];
81477
+ SetofOptions: {
81478
+ from: "*";
81479
+ to: "floriday_continuous_stock_queue";
81480
+ isOneToOne: false;
81481
+ isSetofReturn: true;
81482
+ };
81483
+ };
79372
81484
  claim_logistics_tasks: {
79373
81485
  Args: {
79374
81486
  _limit?: number;
@@ -79428,22 +81540,27 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
79428
81540
  created_at: string;
79429
81541
  documentnaam: string;
79430
81542
  documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
81543
+ extern_job_id: string | null;
79431
81544
  foutmelding: string | null;
79432
81545
  gebruiker_id: string | null;
79433
81546
  gebruiker_naam: string;
79434
81547
  gestart_op: string | null;
79435
81548
  id: string;
81549
+ idempotentie_sleutel: string | null;
79436
81550
  is_herprint: boolean;
79437
81551
  kopieen: number;
79438
81552
  layout_id: string | null;
79439
81553
  opgepakt_op: string | null;
79440
81554
  paginas: number;
79441
81555
  payload: import("../integrations/supabase/types").Json;
81556
+ pdf_base64: string | null;
81557
+ pdf_url: string | null;
79442
81558
  pogingen: number;
79443
81559
  printer_id: string | null;
79444
81560
  render_html: string | null;
79445
81561
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
79446
81562
  updated_at: string;
81563
+ volgende_poging: string | null;
79447
81564
  voltooid_op: string | null;
79448
81565
  }[];
79449
81566
  SetofOptions: {
@@ -79481,10 +81598,28 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
79481
81598
  isSetofReturn: true;
79482
81599
  };
79483
81600
  };
81601
+ cleanup_floriday_stock_queue: {
81602
+ Args: never;
81603
+ Returns: undefined;
81604
+ };
79484
81605
  cleanup_old_bookings: {
79485
81606
  Args: never;
79486
81607
  Returns: undefined;
79487
81608
  };
81609
+ cleanup_voorraad_module_history: {
81610
+ Args: never;
81611
+ Returns: undefined;
81612
+ };
81613
+ complete_floriday_stock_queue: {
81614
+ Args: {
81615
+ p_attempt_id?: string;
81616
+ p_error?: string;
81617
+ p_id: string;
81618
+ p_ok: boolean;
81619
+ p_permanent?: boolean;
81620
+ };
81621
+ Returns: undefined;
81622
+ };
79488
81623
  consume_bom_for_production: {
79489
81624
  Args: {
79490
81625
  p_connection_id: string;
@@ -79596,6 +81731,13 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
79596
81731
  };
79597
81732
  Returns: import("../integrations/supabase/types").Json;
79598
81733
  };
81734
+ effective_module_permission: {
81735
+ Args: {
81736
+ _module_id: string;
81737
+ _user_id: string;
81738
+ };
81739
+ Returns: string;
81740
+ };
79599
81741
  email_auth_decrypt: {
79600
81742
  Args: {
79601
81743
  cipher: string;
@@ -80399,6 +82541,51 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
80399
82541
  isSetofReturn: false;
80400
82542
  };
80401
82543
  };
82544
+ logistics_floriday_claim_pushes: {
82545
+ Args: {
82546
+ _lease_seconds?: number;
82547
+ _limit?: number;
82548
+ _worker?: string;
82549
+ };
82550
+ Returns: {
82551
+ attempts: number;
82552
+ fulfillment_order_id: string;
82553
+ id: string;
82554
+ last_sent_hash: string;
82555
+ order_ref: string;
82556
+ payload: import("../integrations/supabase/types").Json;
82557
+ payload_hash: string;
82558
+ revision: number;
82559
+ }[];
82560
+ };
82561
+ logistics_floriday_finish_push: {
82562
+ Args: {
82563
+ _error?: string;
82564
+ _fulfillment_order_id?: string;
82565
+ _id: string;
82566
+ _max_age_hours?: number;
82567
+ _max_attempts?: number;
82568
+ _ok: boolean;
82569
+ _permanent?: boolean;
82570
+ _revision: number;
82571
+ _sent_hash?: string;
82572
+ };
82573
+ Returns: string;
82574
+ };
82575
+ logistics_floriday_prune_pushes: {
82576
+ Args: {
82577
+ _days?: number;
82578
+ };
82579
+ Returns: number;
82580
+ };
82581
+ logistics_floriday_queue_push: {
82582
+ Args: {
82583
+ _order_ref: string;
82584
+ _payload?: import("../integrations/supabase/types").Json;
82585
+ _payload_hash?: string;
82586
+ };
82587
+ Returns: string;
82588
+ };
80402
82589
  logistics_live_carriers: {
80403
82590
  Args: {
80404
82591
  p_order_ref: string;
@@ -80689,6 +82876,13 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
80689
82876
  };
80690
82877
  Returns: undefined;
80691
82878
  };
82879
+ my_module_permissions: {
82880
+ Args: never;
82881
+ Returns: {
82882
+ module_id: string;
82883
+ permission: string;
82884
+ }[];
82885
+ };
80692
82886
  next_manufacture_partij: {
80693
82887
  Args: {
80694
82888
  _tenant_id: string;
@@ -80739,6 +82933,13 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
80739
82933
  };
80740
82934
  Returns: boolean;
80741
82935
  };
82936
+ opruim_print_historie: {
82937
+ Args: never;
82938
+ Returns: {
82939
+ ontdaan: number;
82940
+ verwijderd: number;
82941
+ }[];
82942
+ };
80742
82943
  order_number_prefix: {
80743
82944
  Args: {
80744
82945
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -80746,6 +82947,15 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
80746
82947
  };
80747
82948
  Returns: string;
80748
82949
  };
82950
+ pick_active_printers: {
82951
+ Args: never;
82952
+ Returns: {
82953
+ id: string;
82954
+ locatie: string;
82955
+ naam: string;
82956
+ online: boolean;
82957
+ }[];
82958
+ };
80749
82959
  pick_claim_document: {
80750
82960
  Args: {
80751
82961
  _queue_item_id: string;
@@ -80932,6 +83142,52 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
80932
83142
  };
80933
83143
  Returns: undefined;
80934
83144
  };
83145
+ pick_reset_print: {
83146
+ Args: {
83147
+ _queue_item_id: string;
83148
+ _session_id: string;
83149
+ };
83150
+ Returns: {
83151
+ announced_at: string;
83152
+ assigned_user_id: string | null;
83153
+ barcode: string | null;
83154
+ cancelled_at: string | null;
83155
+ cart_count: number;
83156
+ completed_at: string | null;
83157
+ country_code: string | null;
83158
+ created_at: string;
83159
+ customer_name: string | null;
83160
+ delivery_address: string | null;
83161
+ document_number: string | null;
83162
+ document_type_id: string | null;
83163
+ due_at: string | null;
83164
+ id: string;
83165
+ is_urgent: boolean;
83166
+ line_count: number;
83167
+ order_number: string | null;
83168
+ order_type: string | null;
83169
+ payload: import("../integrations/supabase/types").Json;
83170
+ print_count: number;
83171
+ print_job_id: string | null;
83172
+ printed_at: string | null;
83173
+ printed_by: string | null;
83174
+ printer_id: string | null;
83175
+ priority: number;
83176
+ reference: string | null;
83177
+ route: string | null;
83178
+ screen_id: string | null;
83179
+ station_id: string | null;
83180
+ status_id: string | null;
83181
+ updated_at: string;
83182
+ warnings: import("../integrations/supabase/types").Json;
83183
+ };
83184
+ SetofOptions: {
83185
+ from: "*";
83186
+ to: "pick_queue";
83187
+ isOneToOne: true;
83188
+ isSetofReturn: false;
83189
+ };
83190
+ };
80935
83191
  pick_station_dashboard: {
80936
83192
  Args: never;
80937
83193
  Returns: {
@@ -81078,6 +83334,12 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
81078
83334
  };
81079
83335
  Returns: undefined;
81080
83336
  };
83337
+ reset_stalled_floriday_stock_queue: {
83338
+ Args: {
83339
+ p_include_failed?: boolean;
83340
+ };
83341
+ Returns: number;
83342
+ };
81081
83343
  resolve_group_allocation: {
81082
83344
  Args: {
81083
83345
  _needed: number;
@@ -81122,14 +83384,28 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
81122
83384
  };
81123
83385
  Returns: import("../integrations/supabase/types").Json;
81124
83386
  };
83387
+ ruim_print_jobs_op: {
83388
+ Args: {
83389
+ _bewaar_dagen?: number;
83390
+ };
83391
+ Returns: number;
83392
+ };
81125
83393
  run_floriday_continuous_stock_sync: {
81126
83394
  Args: never;
81127
83395
  Returns: undefined;
81128
83396
  };
83397
+ run_floriday_stock_queue_process: {
83398
+ Args: never;
83399
+ Returns: undefined;
83400
+ };
81129
83401
  run_logistics_tasks_dispatch: {
81130
83402
  Args: never;
81131
83403
  Returns: undefined;
81132
83404
  };
83405
+ run_print_queue_ticks: {
83406
+ Args: never;
83407
+ Returns: number;
83408
+ };
81133
83409
  run_twinfield_queue_tick: {
81134
83410
  Args: never;
81135
83411
  Returns: undefined;
@@ -81370,6 +83646,13 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
81370
83646
  };
81371
83647
  Returns: number;
81372
83648
  };
83649
+ schedule_floriday_stock_queue_process: {
83650
+ Args: {
83651
+ p_apikey: string;
83652
+ p_url: string;
83653
+ };
83654
+ Returns: number;
83655
+ };
81373
83656
  schedule_floriday_token_refresh: {
81374
83657
  Args: {
81375
83658
  p_apikey: string;
@@ -81510,6 +83793,15 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
81510
83793
  };
81511
83794
  Returns: undefined;
81512
83795
  };
83796
+ trade_item_stock_duplicates: {
83797
+ Args: never;
83798
+ Returns: {
83799
+ keys: string[];
83800
+ product_id: string;
83801
+ product_name: string;
83802
+ row_count: number;
83803
+ }[];
83804
+ };
81513
83805
  try_debtor_lock: {
81514
83806
  Args: {
81515
83807
  _group_key: string;
@@ -81559,7 +83851,7 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
81559
83851
  };
81560
83852
  Enums: {
81561
83853
  ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
81562
- app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin";
83854
+ app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
81563
83855
  doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
81564
83856
  doc_orientation: "portrait" | "landscape";
81565
83857
  exact_env: "staging" | "live";