@flowselections/floriday-verkoop-module 1.0.39 → 1.0.41

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (93) hide show
  1. package/dist-lib/components/verkoop/EngineBufferCard.d.ts.map +1 -1
  2. package/dist-lib/components/verkoop/EngineBufferCard.js +2 -2
  3. package/dist-lib/components/verkoop/InvoiceTimingSettings.d.ts +3 -0
  4. package/dist-lib/components/verkoop/InvoiceTimingSettings.d.ts.map +1 -0
  5. package/dist-lib/components/verkoop/InvoiceTimingSettings.js +54 -0
  6. package/dist-lib/components/verkoop/SalesOrdersTable.d.ts.map +1 -1
  7. package/dist-lib/components/verkoop/SalesOrdersTable.js +44 -91
  8. package/dist-lib/components/verkoop/VerkoopOrdersPage.d.ts.map +1 -1
  9. package/dist-lib/components/verkoop/VerkoopOrdersPage.js +9 -8
  10. package/dist-lib/index.d.ts +1 -0
  11. package/dist-lib/index.d.ts.map +1 -1
  12. package/dist-lib/index.js +3 -1
  13. package/dist-lib/integrations/supabase/auth-middleware.d.ts +577 -4
  14. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  15. package/dist-lib/integrations/supabase/client.d.ts +577 -4
  16. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  17. package/dist-lib/integrations/supabase/client.server.d.ts +577 -4
  18. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  19. package/dist-lib/integrations/supabase/types.d.ts +578 -5
  20. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  21. package/dist-lib/integrations/supabase/types.js +12 -1
  22. package/dist-lib/lib/cart-lock.functions.d.ts +577 -4
  23. package/dist-lib/lib/cart-lock.functions.d.ts.map +1 -1
  24. package/dist-lib/lib/cart-planning-settings.functions.d.ts +6347 -44
  25. package/dist-lib/lib/cart-planning-settings.functions.d.ts.map +1 -1
  26. package/dist-lib/lib/cart-replan.functions.d.ts +1731 -12
  27. package/dist-lib/lib/cart-replan.functions.d.ts.map +1 -1
  28. package/dist-lib/lib/create-order.functions.d.ts +8655 -60
  29. package/dist-lib/lib/create-order.functions.d.ts.map +1 -1
  30. package/dist-lib/lib/cron/index.d.ts +1 -0
  31. package/dist-lib/lib/cron/index.d.ts.map +1 -1
  32. package/dist-lib/lib/cron/index.js +1 -0
  33. package/dist-lib/lib/cron/invoice-due.d.ts +4 -0
  34. package/dist-lib/lib/cron/invoice-due.d.ts.map +1 -0
  35. package/dist-lib/lib/cron/invoice-due.js +21 -0
  36. package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts +1731 -12
  37. package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts.map +1 -1
  38. package/dist-lib/lib/floriday-fulfillment-status.server.d.ts +28 -0
  39. package/dist-lib/lib/floriday-fulfillment-status.server.d.ts.map +1 -0
  40. package/dist-lib/lib/floriday-fulfillment-status.server.js +91 -0
  41. package/dist-lib/lib/floriday-logistic-labels.functions.d.ts +577 -4
  42. package/dist-lib/lib/floriday-logistic-labels.functions.d.ts.map +1 -1
  43. package/dist-lib/lib/floriday-mirror.functions.d.ts +577 -4
  44. package/dist-lib/lib/floriday-mirror.functions.d.ts.map +1 -1
  45. package/dist-lib/lib/floriday-mirror.functions.js +27 -4
  46. package/dist-lib/lib/floriday-public.functions.d.ts +4039 -28
  47. package/dist-lib/lib/floriday-public.functions.d.ts.map +1 -1
  48. package/dist-lib/lib/floriday-writes.functions.d.ts +2885 -20
  49. package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
  50. package/dist-lib/lib/invoice-timing.d.ts +38 -0
  51. package/dist-lib/lib/invoice-timing.d.ts.map +1 -0
  52. package/dist-lib/lib/invoice-timing.functions.d.ts +83845 -0
  53. package/dist-lib/lib/invoice-timing.functions.d.ts.map +1 -0
  54. package/dist-lib/lib/invoice-timing.functions.js +88 -0
  55. package/dist-lib/lib/invoice-timing.js +139 -0
  56. package/dist-lib/lib/invoice-timing.server.d.ts +22 -0
  57. package/dist-lib/lib/invoice-timing.server.d.ts.map +1 -0
  58. package/dist-lib/lib/invoice-timing.server.js +154 -0
  59. package/dist-lib/lib/load-carriers.functions.d.ts +577 -4
  60. package/dist-lib/lib/load-carriers.functions.d.ts.map +1 -1
  61. package/dist-lib/lib/logistics-engine.functions.d.ts +2887 -22
  62. package/dist-lib/lib/logistics-engine.functions.d.ts.map +1 -1
  63. package/dist-lib/lib/logistics-stock.functions.d.ts +1154 -8
  64. package/dist-lib/lib/logistics-stock.functions.d.ts.map +1 -1
  65. package/dist-lib/lib/order-addresses.functions.d.ts +577 -4
  66. package/dist-lib/lib/order-addresses.functions.d.ts.map +1 -1
  67. package/dist-lib/lib/order-buffers.functions.d.ts +1731 -12
  68. package/dist-lib/lib/order-buffers.functions.d.ts.map +1 -1
  69. package/dist-lib/lib/order-carrier.functions.d.ts +1154 -8
  70. package/dist-lib/lib/order-carrier.functions.d.ts.map +1 -1
  71. package/dist-lib/lib/order-pickup.functions.d.ts +1154 -8
  72. package/dist-lib/lib/order-pickup.functions.d.ts.map +1 -1
  73. package/dist-lib/lib/order-shipments.functions.d.ts +2308 -16
  74. package/dist-lib/lib/order-shipments.functions.d.ts.map +1 -1
  75. package/dist-lib/lib/order-status.d.ts +33 -0
  76. package/dist-lib/lib/order-status.d.ts.map +1 -0
  77. package/dist-lib/lib/order-status.js +77 -0
  78. package/dist-lib/lib/salesorders-list.functions.d.ts +578 -5
  79. package/dist-lib/lib/salesorders-list.functions.d.ts.map +1 -1
  80. package/dist-lib/lib/salesorders-list.functions.js +1 -1
  81. package/dist-lib/lib/salesorders-list.server.d.ts +2 -1
  82. package/dist-lib/lib/salesorders-list.server.d.ts.map +1 -1
  83. package/dist-lib/lib/salesorders-list.server.js +145 -58
  84. package/dist-lib/lib/salesorders-mapping.d.ts +13 -0
  85. package/dist-lib/lib/salesorders-mapping.d.ts.map +1 -1
  86. package/dist-lib/lib/salesorders-mapping.js +2 -7
  87. package/dist-lib/lib/salesorders.functions.d.ts +2885 -20
  88. package/dist-lib/lib/salesorders.functions.d.ts.map +1 -1
  89. package/dist-lib/lib/tradeitems.functions.d.ts +577 -4
  90. package/dist-lib/lib/tradeitems.functions.d.ts.map +1 -1
  91. package/dist-lib/lib/useSalesOrdersQuery.d.ts +2 -1
  92. package/dist-lib/lib/useSalesOrdersQuery.d.ts.map +1 -1
  93. package/package.json +10 -2
@@ -1687,7 +1687,7 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
1687
1687
  city: string | null;
1688
1688
  country: string | null;
1689
1689
  created_at: string;
1690
- customer_id: string | null;
1690
+ customer_id: string;
1691
1691
  external_key: string | null;
1692
1692
  external_provider: string | null;
1693
1693
  floriday_location_id: string | null;
@@ -1711,7 +1711,7 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
1711
1711
  city?: string | null;
1712
1712
  country?: string | null;
1713
1713
  created_at?: string;
1714
- customer_id?: string | null;
1714
+ customer_id: string;
1715
1715
  external_key?: string | null;
1716
1716
  external_provider?: string | null;
1717
1717
  floriday_location_id?: string | null;
@@ -1735,7 +1735,7 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
1735
1735
  city?: string | null;
1736
1736
  country?: string | null;
1737
1737
  created_at?: string;
1738
- customer_id?: string | null;
1738
+ customer_id?: string;
1739
1739
  external_key?: string | null;
1740
1740
  external_provider?: string | null;
1741
1741
  floriday_location_id?: string | null;
@@ -5698,12 +5698,17 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
5698
5698
  attempts: number;
5699
5699
  connection_id: string;
5700
5700
  created_at: string;
5701
+ desired_available: boolean | null;
5701
5702
  gateway_attempt_id: string | null;
5702
5703
  id: string;
5703
5704
  last_error: string | null;
5705
+ locked_at: string | null;
5706
+ locked_by: string | null;
5707
+ next_attempt_at: string;
5704
5708
  number_of_pieces: number;
5705
5709
  sent_at: string | null;
5706
5710
  status: string;
5711
+ superseded_by: string | null;
5707
5712
  trade_item_id: string;
5708
5713
  updated_at: string;
5709
5714
  user_id: string;
@@ -5712,12 +5717,17 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
5712
5717
  attempts?: number;
5713
5718
  connection_id: string;
5714
5719
  created_at?: string;
5720
+ desired_available?: boolean | null;
5715
5721
  gateway_attempt_id?: string | null;
5716
5722
  id?: string;
5717
5723
  last_error?: string | null;
5724
+ locked_at?: string | null;
5725
+ locked_by?: string | null;
5726
+ next_attempt_at?: string;
5718
5727
  number_of_pieces?: number;
5719
5728
  sent_at?: string | null;
5720
5729
  status?: string;
5730
+ superseded_by?: string | null;
5721
5731
  trade_item_id: string;
5722
5732
  updated_at?: string;
5723
5733
  user_id: string;
@@ -5726,12 +5736,17 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
5726
5736
  attempts?: number;
5727
5737
  connection_id?: string;
5728
5738
  created_at?: string;
5739
+ desired_available?: boolean | null;
5729
5740
  gateway_attempt_id?: string | null;
5730
5741
  id?: string;
5731
5742
  last_error?: string | null;
5743
+ locked_at?: string | null;
5744
+ locked_by?: string | null;
5745
+ next_attempt_at?: string;
5732
5746
  number_of_pieces?: number;
5733
5747
  sent_at?: string | null;
5734
5748
  status?: string;
5749
+ superseded_by?: string | null;
5735
5750
  trade_item_id?: string;
5736
5751
  updated_at?: string;
5737
5752
  user_id?: string;
@@ -6468,6 +6483,7 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
6468
6483
  Row: {
6469
6484
  buyer_organization_id: string | null;
6470
6485
  connection_id: string;
6486
+ controlled_at: string | null;
6471
6487
  created_at: string;
6472
6488
  data: import("../integrations/supabase/types").Json;
6473
6489
  floriday_id: string;
@@ -6479,6 +6495,7 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
6479
6495
  Insert: {
6480
6496
  buyer_organization_id?: string | null;
6481
6497
  connection_id: string;
6498
+ controlled_at?: string | null;
6482
6499
  created_at?: string;
6483
6500
  data: import("../integrations/supabase/types").Json;
6484
6501
  floriday_id: string;
@@ -6490,6 +6507,7 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
6490
6507
  Update: {
6491
6508
  buyer_organization_id?: string | null;
6492
6509
  connection_id?: string;
6510
+ controlled_at?: string | null;
6493
6511
  created_at?: string;
6494
6512
  data?: import("../integrations/supabase/types").Json;
6495
6513
  floriday_id?: string;
@@ -7391,6 +7409,54 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
7391
7409
  };
7392
7410
  Relationships: [];
7393
7411
  };
7412
+ invoice_timing_settings: {
7413
+ Row: {
7414
+ anchor: string;
7415
+ business_days_only: boolean;
7416
+ created_at: string;
7417
+ enabled: boolean;
7418
+ id: string;
7419
+ offset_days: number;
7420
+ pickup_anchor: string;
7421
+ pickup_business_days_only: boolean;
7422
+ pickup_offset_days: number;
7423
+ pickup_time_of_day: string;
7424
+ singleton: boolean;
7425
+ time_of_day: string;
7426
+ updated_at: string;
7427
+ };
7428
+ Insert: {
7429
+ anchor?: string;
7430
+ business_days_only?: boolean;
7431
+ created_at?: string;
7432
+ enabled?: boolean;
7433
+ id?: string;
7434
+ offset_days?: number;
7435
+ pickup_anchor?: string;
7436
+ pickup_business_days_only?: boolean;
7437
+ pickup_offset_days?: number;
7438
+ pickup_time_of_day?: string;
7439
+ singleton?: boolean;
7440
+ time_of_day?: string;
7441
+ updated_at?: string;
7442
+ };
7443
+ Update: {
7444
+ anchor?: string;
7445
+ business_days_only?: boolean;
7446
+ created_at?: string;
7447
+ enabled?: boolean;
7448
+ id?: string;
7449
+ offset_days?: number;
7450
+ pickup_anchor?: string;
7451
+ pickup_business_days_only?: boolean;
7452
+ pickup_offset_days?: number;
7453
+ pickup_time_of_day?: string;
7454
+ singleton?: boolean;
7455
+ time_of_day?: string;
7456
+ updated_at?: string;
7457
+ };
7458
+ Relationships: [];
7459
+ };
7394
7460
  itk_contact_persons: {
7395
7461
  Row: {
7396
7462
  created_at: string;
@@ -8480,6 +8546,69 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
8480
8546
  };
8481
8547
  Relationships: [];
8482
8548
  };
8549
+ logistics_floriday_pushes: {
8550
+ Row: {
8551
+ attempts: number;
8552
+ created_at: string;
8553
+ first_queued_at: string;
8554
+ fulfillment_order_id: string | null;
8555
+ id: string;
8556
+ last_error: string | null;
8557
+ last_error_at: string | null;
8558
+ last_sent_hash: string | null;
8559
+ locked_by: string | null;
8560
+ locked_until: string | null;
8561
+ next_attempt_at: string;
8562
+ order_ref: string;
8563
+ payload: import("../integrations/supabase/types").Json;
8564
+ payload_hash: string | null;
8565
+ revision: number;
8566
+ sent_at: string | null;
8567
+ status: string;
8568
+ updated_at: string;
8569
+ };
8570
+ Insert: {
8571
+ attempts?: number;
8572
+ created_at?: string;
8573
+ first_queued_at?: string;
8574
+ fulfillment_order_id?: string | null;
8575
+ id?: string;
8576
+ last_error?: string | null;
8577
+ last_error_at?: string | null;
8578
+ last_sent_hash?: string | null;
8579
+ locked_by?: string | null;
8580
+ locked_until?: string | null;
8581
+ next_attempt_at?: string;
8582
+ order_ref: string;
8583
+ payload?: import("../integrations/supabase/types").Json;
8584
+ payload_hash?: string | null;
8585
+ revision?: number;
8586
+ sent_at?: string | null;
8587
+ status?: string;
8588
+ updated_at?: string;
8589
+ };
8590
+ Update: {
8591
+ attempts?: number;
8592
+ created_at?: string;
8593
+ first_queued_at?: string;
8594
+ fulfillment_order_id?: string | null;
8595
+ id?: string;
8596
+ last_error?: string | null;
8597
+ last_error_at?: string | null;
8598
+ last_sent_hash?: string | null;
8599
+ locked_by?: string | null;
8600
+ locked_until?: string | null;
8601
+ next_attempt_at?: string;
8602
+ order_ref?: string;
8603
+ payload?: import("../integrations/supabase/types").Json;
8604
+ payload_hash?: string | null;
8605
+ revision?: number;
8606
+ sent_at?: string | null;
8607
+ status?: string;
8608
+ updated_at?: string;
8609
+ };
8610
+ Relationships: [];
8611
+ };
8483
8612
  logistics_formulas: {
8484
8613
  Row: {
8485
8614
  created_at: string;
@@ -9343,14 +9472,17 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
9343
9472
  };
9344
9473
  mailbox_messages: {
9345
9474
  Row: {
9475
+ attachments: import("../integrations/supabase/types").Json;
9346
9476
  body_html: string | null;
9347
9477
  body_text: string | null;
9478
+ cc_recipients: import("../integrations/supabase/types").Json;
9348
9479
  connection_id: string | null;
9349
9480
  created_at: string;
9350
9481
  error_message: string | null;
9351
9482
  external_id: string | null;
9352
9483
  from_email: string | null;
9353
9484
  from_name: string | null;
9485
+ has_attachments: boolean;
9354
9486
  id: string;
9355
9487
  message_id: string | null;
9356
9488
  profile_id: string | null;
@@ -9358,18 +9490,22 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
9358
9490
  received_at: string | null;
9359
9491
  status: string;
9360
9492
  subject: string | null;
9493
+ to_recipients: import("../integrations/supabase/types").Json;
9361
9494
  uid: number | null;
9362
9495
  updated_at: string;
9363
9496
  };
9364
9497
  Insert: {
9498
+ attachments?: import("../integrations/supabase/types").Json;
9365
9499
  body_html?: string | null;
9366
9500
  body_text?: string | null;
9501
+ cc_recipients?: import("../integrations/supabase/types").Json;
9367
9502
  connection_id?: string | null;
9368
9503
  created_at?: string;
9369
9504
  error_message?: string | null;
9370
9505
  external_id?: string | null;
9371
9506
  from_email?: string | null;
9372
9507
  from_name?: string | null;
9508
+ has_attachments?: boolean;
9373
9509
  id?: string;
9374
9510
  message_id?: string | null;
9375
9511
  profile_id?: string | null;
@@ -9377,18 +9513,22 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
9377
9513
  received_at?: string | null;
9378
9514
  status?: string;
9379
9515
  subject?: string | null;
9516
+ to_recipients?: import("../integrations/supabase/types").Json;
9380
9517
  uid?: number | null;
9381
9518
  updated_at?: string;
9382
9519
  };
9383
9520
  Update: {
9521
+ attachments?: import("../integrations/supabase/types").Json;
9384
9522
  body_html?: string | null;
9385
9523
  body_text?: string | null;
9524
+ cc_recipients?: import("../integrations/supabase/types").Json;
9386
9525
  connection_id?: string | null;
9387
9526
  created_at?: string;
9388
9527
  error_message?: string | null;
9389
9528
  external_id?: string | null;
9390
9529
  from_email?: string | null;
9391
9530
  from_name?: string | null;
9531
+ has_attachments?: boolean;
9392
9532
  id?: string;
9393
9533
  message_id?: string | null;
9394
9534
  profile_id?: string | null;
@@ -9396,6 +9536,7 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
9396
9536
  received_at?: string | null;
9397
9537
  status?: string;
9398
9538
  subject?: string | null;
9539
+ to_recipients?: import("../integrations/supabase/types").Json;
9399
9540
  uid?: number | null;
9400
9541
  updated_at?: string;
9401
9542
  };
@@ -9803,6 +9944,36 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
9803
9944
  };
9804
9945
  Relationships: [];
9805
9946
  };
9947
+ module_registry: {
9948
+ Row: {
9949
+ created_at: string;
9950
+ is_active: boolean;
9951
+ last_seen_at: string;
9952
+ module_id: string;
9953
+ name: string;
9954
+ shell_id: string | null;
9955
+ sort_order: number | null;
9956
+ };
9957
+ Insert: {
9958
+ created_at?: string;
9959
+ is_active?: boolean;
9960
+ last_seen_at?: string;
9961
+ module_id: string;
9962
+ name: string;
9963
+ shell_id?: string | null;
9964
+ sort_order?: number | null;
9965
+ };
9966
+ Update: {
9967
+ created_at?: string;
9968
+ is_active?: boolean;
9969
+ last_seen_at?: string;
9970
+ module_id?: string;
9971
+ name?: string;
9972
+ shell_id?: string | null;
9973
+ sort_order?: number | null;
9974
+ };
9975
+ Relationships: [];
9976
+ };
9806
9977
  module_runtime_config: {
9807
9978
  Row: {
9808
9979
  key: string;
@@ -10862,6 +11033,42 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
10862
11033
  };
10863
11034
  Relationships: [];
10864
11035
  };
11036
+ order_invoice_links: {
11037
+ Row: {
11038
+ attempts: number;
11039
+ created_at: string;
11040
+ error_message: string | null;
11041
+ id: string;
11042
+ invoice_number: string | null;
11043
+ order_id: string;
11044
+ processed_at: string | null;
11045
+ status: string;
11046
+ updated_at: string;
11047
+ };
11048
+ Insert: {
11049
+ attempts?: number;
11050
+ created_at?: string;
11051
+ error_message?: string | null;
11052
+ id?: string;
11053
+ invoice_number?: string | null;
11054
+ order_id: string;
11055
+ processed_at?: string | null;
11056
+ status?: string;
11057
+ updated_at?: string;
11058
+ };
11059
+ Update: {
11060
+ attempts?: number;
11061
+ created_at?: string;
11062
+ error_message?: string | null;
11063
+ id?: string;
11064
+ invoice_number?: string | null;
11065
+ order_id?: string;
11066
+ processed_at?: string | null;
11067
+ status?: string;
11068
+ updated_at?: string;
11069
+ };
11070
+ Relationships: [];
11071
+ };
10865
11072
  order_items: {
10866
11073
  Row: {
10867
11074
  crates_per_layer: number | null;
@@ -11044,6 +11251,7 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
11044
11251
  delivery_date: string | null;
11045
11252
  floriday_sales_order_id: string | null;
11046
11253
  id: string;
11254
+ invoice_due_at: string | null;
11047
11255
  is_reservation: boolean;
11048
11256
  notes: string | null;
11049
11257
  order_date: string;
@@ -11065,6 +11273,7 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
11065
11273
  delivery_date?: string | null;
11066
11274
  floriday_sales_order_id?: string | null;
11067
11275
  id?: string;
11276
+ invoice_due_at?: string | null;
11068
11277
  is_reservation?: boolean;
11069
11278
  notes?: string | null;
11070
11279
  order_date?: string;
@@ -11086,6 +11295,7 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
11086
11295
  delivery_date?: string | null;
11087
11296
  floriday_sales_order_id?: string | null;
11088
11297
  id?: string;
11298
+ invoice_due_at?: string | null;
11089
11299
  is_reservation?: boolean;
11090
11300
  notes?: string | null;
11091
11301
  order_date?: string;
@@ -12282,22 +12492,27 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
12282
12492
  created_at: string;
12283
12493
  documentnaam: string;
12284
12494
  documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
12495
+ extern_job_id: string | null;
12285
12496
  foutmelding: string | null;
12286
12497
  gebruiker_id: string | null;
12287
12498
  gebruiker_naam: string;
12288
12499
  gestart_op: string | null;
12289
12500
  id: string;
12501
+ idempotentie_sleutel: string | null;
12290
12502
  is_herprint: boolean;
12291
12503
  kopieen: number;
12292
12504
  layout_id: string | null;
12293
12505
  opgepakt_op: string | null;
12294
12506
  paginas: number;
12295
12507
  payload: import("../integrations/supabase/types").Json;
12508
+ pdf_base64: string | null;
12509
+ pdf_url: string | null;
12296
12510
  pogingen: number;
12297
12511
  printer_id: string | null;
12298
12512
  render_html: string | null;
12299
12513
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
12300
12514
  updated_at: string;
12515
+ volgende_poging: string | null;
12301
12516
  voltooid_op: string | null;
12302
12517
  };
12303
12518
  Insert: {
@@ -12306,22 +12521,27 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
12306
12521
  created_at?: string;
12307
12522
  documentnaam?: string;
12308
12523
  documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
12524
+ extern_job_id?: string | null;
12309
12525
  foutmelding?: string | null;
12310
12526
  gebruiker_id?: string | null;
12311
12527
  gebruiker_naam?: string;
12312
12528
  gestart_op?: string | null;
12313
12529
  id?: string;
12530
+ idempotentie_sleutel?: string | null;
12314
12531
  is_herprint?: boolean;
12315
12532
  kopieen?: number;
12316
12533
  layout_id?: string | null;
12317
12534
  opgepakt_op?: string | null;
12318
12535
  paginas?: number;
12319
12536
  payload?: import("../integrations/supabase/types").Json;
12537
+ pdf_base64?: string | null;
12538
+ pdf_url?: string | null;
12320
12539
  pogingen?: number;
12321
12540
  printer_id?: string | null;
12322
12541
  render_html?: string | null;
12323
12542
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
12324
12543
  updated_at?: string;
12544
+ volgende_poging?: string | null;
12325
12545
  voltooid_op?: string | null;
12326
12546
  };
12327
12547
  Update: {
@@ -12330,22 +12550,27 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
12330
12550
  created_at?: string;
12331
12551
  documentnaam?: string;
12332
12552
  documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
12553
+ extern_job_id?: string | null;
12333
12554
  foutmelding?: string | null;
12334
12555
  gebruiker_id?: string | null;
12335
12556
  gebruiker_naam?: string;
12336
12557
  gestart_op?: string | null;
12337
12558
  id?: string;
12559
+ idempotentie_sleutel?: string | null;
12338
12560
  is_herprint?: boolean;
12339
12561
  kopieen?: number;
12340
12562
  layout_id?: string | null;
12341
12563
  opgepakt_op?: string | null;
12342
12564
  paginas?: number;
12343
12565
  payload?: import("../integrations/supabase/types").Json;
12566
+ pdf_base64?: string | null;
12567
+ pdf_url?: string | null;
12344
12568
  pogingen?: number;
12345
12569
  printer_id?: string | null;
12346
12570
  render_html?: string | null;
12347
12571
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
12348
12572
  updated_at?: string;
12573
+ volgende_poging?: string | null;
12349
12574
  voltooid_op?: string | null;
12350
12575
  };
12351
12576
  Relationships: [{
@@ -12368,6 +12593,63 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
12368
12593
  referencedColumns: ["id"];
12369
12594
  }];
12370
12595
  };
12596
+ print_queue_runners: {
12597
+ Row: {
12598
+ actief: boolean;
12599
+ basis_url: string;
12600
+ created_at: string;
12601
+ id: string;
12602
+ laatst_gezien: string;
12603
+ tick_sleutel: string;
12604
+ updated_at: string;
12605
+ };
12606
+ Insert: {
12607
+ actief?: boolean;
12608
+ basis_url: string;
12609
+ created_at?: string;
12610
+ id?: string;
12611
+ laatst_gezien?: string;
12612
+ tick_sleutel?: string;
12613
+ updated_at?: string;
12614
+ };
12615
+ Update: {
12616
+ actief?: boolean;
12617
+ basis_url?: string;
12618
+ created_at?: string;
12619
+ id?: string;
12620
+ laatst_gezien?: string;
12621
+ tick_sleutel?: string;
12622
+ updated_at?: string;
12623
+ };
12624
+ Relationships: [];
12625
+ };
12626
+ print_queue_settings: {
12627
+ Row: {
12628
+ bewaar_bestanden_dagen: number;
12629
+ bewaar_opdrachten_dagen: number;
12630
+ created_at: string;
12631
+ dubbel_venster_minuten: number;
12632
+ id: string;
12633
+ updated_at: string;
12634
+ };
12635
+ Insert: {
12636
+ bewaar_bestanden_dagen?: number;
12637
+ bewaar_opdrachten_dagen?: number;
12638
+ created_at?: string;
12639
+ dubbel_venster_minuten?: number;
12640
+ id?: string;
12641
+ updated_at?: string;
12642
+ };
12643
+ Update: {
12644
+ bewaar_bestanden_dagen?: number;
12645
+ bewaar_opdrachten_dagen?: number;
12646
+ created_at?: string;
12647
+ dubbel_venster_minuten?: number;
12648
+ id?: string;
12649
+ updated_at?: string;
12650
+ };
12651
+ Relationships: [];
12652
+ };
12371
12653
  print_rules: {
12372
12654
  Row: {
12373
12655
  actief: boolean;
@@ -12528,6 +12810,7 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
12528
12810
  agent_id: string | null;
12529
12811
  created_at: string;
12530
12812
  driver: string;
12813
+ extern_printer_id: string | null;
12531
12814
  id: string;
12532
12815
  ip_adres: string | null;
12533
12816
  laatst_gezien: string | null;
@@ -12549,6 +12832,7 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
12549
12832
  agent_id?: string | null;
12550
12833
  created_at?: string;
12551
12834
  driver?: string;
12835
+ extern_printer_id?: string | null;
12552
12836
  id?: string;
12553
12837
  ip_adres?: string | null;
12554
12838
  laatst_gezien?: string | null;
@@ -12570,6 +12854,7 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
12570
12854
  agent_id?: string | null;
12571
12855
  created_at?: string;
12572
12856
  driver?: string;
12857
+ extern_printer_id?: string | null;
12573
12858
  id?: string;
12574
12859
  ip_adres?: string | null;
12575
12860
  laatst_gezien?: string | null;
@@ -15205,6 +15490,8 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
15205
15490
  };
15206
15491
  twinfield_invoice_settings: {
15207
15492
  Row: {
15493
+ auto_invoice_enabled: boolean;
15494
+ auto_invoice_trigger_statuses: string[];
15208
15495
  created_at: string;
15209
15496
  debtor_gl_account: string;
15210
15497
  default_credit_invoice_type: string | null;
@@ -15225,6 +15512,8 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
15225
15512
  vat_code_export: string | null;
15226
15513
  };
15227
15514
  Insert: {
15515
+ auto_invoice_enabled?: boolean;
15516
+ auto_invoice_trigger_statuses?: string[];
15228
15517
  created_at?: string;
15229
15518
  debtor_gl_account?: string;
15230
15519
  default_credit_invoice_type?: string | null;
@@ -15245,6 +15534,8 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
15245
15534
  vat_code_export?: string | null;
15246
15535
  };
15247
15536
  Update: {
15537
+ auto_invoice_enabled?: boolean;
15538
+ auto_invoice_trigger_statuses?: string[];
15248
15539
  created_at?: string;
15249
15540
  debtor_gl_account?: string;
15250
15541
  default_credit_invoice_type?: string | null;
@@ -16307,6 +16598,33 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
16307
16598
  referencedColumns: ["id"];
16308
16599
  }];
16309
16600
  };
16601
+ user_module_permissions: {
16602
+ Row: {
16603
+ created_at: string;
16604
+ id: string;
16605
+ module_id: string;
16606
+ permission: string;
16607
+ updated_at: string;
16608
+ user_id: string;
16609
+ };
16610
+ Insert: {
16611
+ created_at?: string;
16612
+ id?: string;
16613
+ module_id: string;
16614
+ permission: string;
16615
+ updated_at?: string;
16616
+ user_id: string;
16617
+ };
16618
+ Update: {
16619
+ created_at?: string;
16620
+ id?: string;
16621
+ module_id?: string;
16622
+ permission?: string;
16623
+ updated_at?: string;
16624
+ user_id?: string;
16625
+ };
16626
+ Relationships: [];
16627
+ };
16310
16628
  user_roles: {
16311
16629
  Row: {
16312
16630
  created_at: string;
@@ -18140,6 +18458,10 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
18140
18458
  processed_items: number;
18141
18459
  }[];
18142
18460
  };
18461
+ backfill_order_auto_invoice_queue: {
18462
+ Args: never;
18463
+ Returns: number;
18464
+ };
18143
18465
  calculate_layer_stock: {
18144
18466
  Args: {
18145
18467
  p_product_id: string;
@@ -18174,6 +18496,77 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
18174
18496
  };
18175
18497
  Returns: import("../integrations/supabase/types").Json;
18176
18498
  };
18499
+ claim_cloud_print_jobs: {
18500
+ Args: {
18501
+ _max?: number;
18502
+ };
18503
+ Returns: {
18504
+ agent_id: string | null;
18505
+ bron_job_id: string | null;
18506
+ created_at: string;
18507
+ documentnaam: string;
18508
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
18509
+ extern_job_id: string | null;
18510
+ foutmelding: string | null;
18511
+ gebruiker_id: string | null;
18512
+ gebruiker_naam: string;
18513
+ gestart_op: string | null;
18514
+ id: string;
18515
+ idempotentie_sleutel: string | null;
18516
+ is_herprint: boolean;
18517
+ kopieen: number;
18518
+ layout_id: string | null;
18519
+ opgepakt_op: string | null;
18520
+ paginas: number;
18521
+ payload: import("../integrations/supabase/types").Json;
18522
+ pdf_base64: string | null;
18523
+ pdf_url: string | null;
18524
+ pogingen: number;
18525
+ printer_id: string | null;
18526
+ render_html: string | null;
18527
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
18528
+ updated_at: string;
18529
+ volgende_poging: string | null;
18530
+ voltooid_op: string | null;
18531
+ }[];
18532
+ SetofOptions: {
18533
+ from: "*";
18534
+ to: "print_jobs";
18535
+ isOneToOne: false;
18536
+ isSetofReturn: true;
18537
+ };
18538
+ };
18539
+ claim_floriday_stock_queue: {
18540
+ Args: {
18541
+ p_limit?: number;
18542
+ p_worker?: string;
18543
+ };
18544
+ Returns: {
18545
+ attempts: number;
18546
+ connection_id: string;
18547
+ created_at: string;
18548
+ desired_available: boolean | null;
18549
+ gateway_attempt_id: string | null;
18550
+ id: string;
18551
+ last_error: string | null;
18552
+ locked_at: string | null;
18553
+ locked_by: string | null;
18554
+ next_attempt_at: string;
18555
+ number_of_pieces: number;
18556
+ sent_at: string | null;
18557
+ status: string;
18558
+ superseded_by: string | null;
18559
+ trade_item_id: string;
18560
+ updated_at: string;
18561
+ user_id: string;
18562
+ }[];
18563
+ SetofOptions: {
18564
+ from: "*";
18565
+ to: "floriday_continuous_stock_queue";
18566
+ isOneToOne: false;
18567
+ isSetofReturn: true;
18568
+ };
18569
+ };
18177
18570
  claim_logistics_tasks: {
18178
18571
  Args: {
18179
18572
  _limit?: number;
@@ -18233,22 +18626,27 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
18233
18626
  created_at: string;
18234
18627
  documentnaam: string;
18235
18628
  documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
18629
+ extern_job_id: string | null;
18236
18630
  foutmelding: string | null;
18237
18631
  gebruiker_id: string | null;
18238
18632
  gebruiker_naam: string;
18239
18633
  gestart_op: string | null;
18240
18634
  id: string;
18635
+ idempotentie_sleutel: string | null;
18241
18636
  is_herprint: boolean;
18242
18637
  kopieen: number;
18243
18638
  layout_id: string | null;
18244
18639
  opgepakt_op: string | null;
18245
18640
  paginas: number;
18246
18641
  payload: import("../integrations/supabase/types").Json;
18642
+ pdf_base64: string | null;
18643
+ pdf_url: string | null;
18247
18644
  pogingen: number;
18248
18645
  printer_id: string | null;
18249
18646
  render_html: string | null;
18250
18647
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
18251
18648
  updated_at: string;
18649
+ volgende_poging: string | null;
18252
18650
  voltooid_op: string | null;
18253
18651
  }[];
18254
18652
  SetofOptions: {
@@ -18286,10 +18684,28 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
18286
18684
  isSetofReturn: true;
18287
18685
  };
18288
18686
  };
18687
+ cleanup_floriday_stock_queue: {
18688
+ Args: never;
18689
+ Returns: undefined;
18690
+ };
18289
18691
  cleanup_old_bookings: {
18290
18692
  Args: never;
18291
18693
  Returns: undefined;
18292
18694
  };
18695
+ cleanup_voorraad_module_history: {
18696
+ Args: never;
18697
+ Returns: undefined;
18698
+ };
18699
+ complete_floriday_stock_queue: {
18700
+ Args: {
18701
+ p_attempt_id?: string;
18702
+ p_error?: string;
18703
+ p_id: string;
18704
+ p_ok: boolean;
18705
+ p_permanent?: boolean;
18706
+ };
18707
+ Returns: undefined;
18708
+ };
18293
18709
  consume_bom_for_production: {
18294
18710
  Args: {
18295
18711
  p_connection_id: string;
@@ -18401,6 +18817,13 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
18401
18817
  };
18402
18818
  Returns: import("../integrations/supabase/types").Json;
18403
18819
  };
18820
+ effective_module_permission: {
18821
+ Args: {
18822
+ _module_id: string;
18823
+ _user_id: string;
18824
+ };
18825
+ Returns: string;
18826
+ };
18404
18827
  email_auth_decrypt: {
18405
18828
  Args: {
18406
18829
  cipher: string;
@@ -19204,6 +19627,51 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
19204
19627
  isSetofReturn: false;
19205
19628
  };
19206
19629
  };
19630
+ logistics_floriday_claim_pushes: {
19631
+ Args: {
19632
+ _lease_seconds?: number;
19633
+ _limit?: number;
19634
+ _worker?: string;
19635
+ };
19636
+ Returns: {
19637
+ attempts: number;
19638
+ fulfillment_order_id: string;
19639
+ id: string;
19640
+ last_sent_hash: string;
19641
+ order_ref: string;
19642
+ payload: import("../integrations/supabase/types").Json;
19643
+ payload_hash: string;
19644
+ revision: number;
19645
+ }[];
19646
+ };
19647
+ logistics_floriday_finish_push: {
19648
+ Args: {
19649
+ _error?: string;
19650
+ _fulfillment_order_id?: string;
19651
+ _id: string;
19652
+ _max_age_hours?: number;
19653
+ _max_attempts?: number;
19654
+ _ok: boolean;
19655
+ _permanent?: boolean;
19656
+ _revision: number;
19657
+ _sent_hash?: string;
19658
+ };
19659
+ Returns: string;
19660
+ };
19661
+ logistics_floriday_prune_pushes: {
19662
+ Args: {
19663
+ _days?: number;
19664
+ };
19665
+ Returns: number;
19666
+ };
19667
+ logistics_floriday_queue_push: {
19668
+ Args: {
19669
+ _order_ref: string;
19670
+ _payload?: import("../integrations/supabase/types").Json;
19671
+ _payload_hash?: string;
19672
+ };
19673
+ Returns: string;
19674
+ };
19207
19675
  logistics_live_carriers: {
19208
19676
  Args: {
19209
19677
  p_order_ref: string;
@@ -19494,6 +19962,13 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
19494
19962
  };
19495
19963
  Returns: undefined;
19496
19964
  };
19965
+ my_module_permissions: {
19966
+ Args: never;
19967
+ Returns: {
19968
+ module_id: string;
19969
+ permission: string;
19970
+ }[];
19971
+ };
19497
19972
  next_manufacture_partij: {
19498
19973
  Args: {
19499
19974
  _tenant_id: string;
@@ -19544,6 +20019,13 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
19544
20019
  };
19545
20020
  Returns: boolean;
19546
20021
  };
20022
+ opruim_print_historie: {
20023
+ Args: never;
20024
+ Returns: {
20025
+ ontdaan: number;
20026
+ verwijderd: number;
20027
+ }[];
20028
+ };
19547
20029
  order_number_prefix: {
19548
20030
  Args: {
19549
20031
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -19551,6 +20033,15 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
19551
20033
  };
19552
20034
  Returns: string;
19553
20035
  };
20036
+ pick_active_printers: {
20037
+ Args: never;
20038
+ Returns: {
20039
+ id: string;
20040
+ locatie: string;
20041
+ naam: string;
20042
+ online: boolean;
20043
+ }[];
20044
+ };
19554
20045
  pick_claim_document: {
19555
20046
  Args: {
19556
20047
  _queue_item_id: string;
@@ -19737,6 +20228,52 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
19737
20228
  };
19738
20229
  Returns: undefined;
19739
20230
  };
20231
+ pick_reset_print: {
20232
+ Args: {
20233
+ _queue_item_id: string;
20234
+ _session_id: string;
20235
+ };
20236
+ Returns: {
20237
+ announced_at: string;
20238
+ assigned_user_id: string | null;
20239
+ barcode: string | null;
20240
+ cancelled_at: string | null;
20241
+ cart_count: number;
20242
+ completed_at: string | null;
20243
+ country_code: string | null;
20244
+ created_at: string;
20245
+ customer_name: string | null;
20246
+ delivery_address: string | null;
20247
+ document_number: string | null;
20248
+ document_type_id: string | null;
20249
+ due_at: string | null;
20250
+ id: string;
20251
+ is_urgent: boolean;
20252
+ line_count: number;
20253
+ order_number: string | null;
20254
+ order_type: string | null;
20255
+ payload: import("../integrations/supabase/types").Json;
20256
+ print_count: number;
20257
+ print_job_id: string | null;
20258
+ printed_at: string | null;
20259
+ printed_by: string | null;
20260
+ printer_id: string | null;
20261
+ priority: number;
20262
+ reference: string | null;
20263
+ route: string | null;
20264
+ screen_id: string | null;
20265
+ station_id: string | null;
20266
+ status_id: string | null;
20267
+ updated_at: string;
20268
+ warnings: import("../integrations/supabase/types").Json;
20269
+ };
20270
+ SetofOptions: {
20271
+ from: "*";
20272
+ to: "pick_queue";
20273
+ isOneToOne: true;
20274
+ isSetofReturn: false;
20275
+ };
20276
+ };
19740
20277
  pick_station_dashboard: {
19741
20278
  Args: never;
19742
20279
  Returns: {
@@ -19883,6 +20420,12 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
19883
20420
  };
19884
20421
  Returns: undefined;
19885
20422
  };
20423
+ reset_stalled_floriday_stock_queue: {
20424
+ Args: {
20425
+ p_include_failed?: boolean;
20426
+ };
20427
+ Returns: number;
20428
+ };
19886
20429
  resolve_group_allocation: {
19887
20430
  Args: {
19888
20431
  _needed: number;
@@ -19927,14 +20470,28 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
19927
20470
  };
19928
20471
  Returns: import("../integrations/supabase/types").Json;
19929
20472
  };
20473
+ ruim_print_jobs_op: {
20474
+ Args: {
20475
+ _bewaar_dagen?: number;
20476
+ };
20477
+ Returns: number;
20478
+ };
19930
20479
  run_floriday_continuous_stock_sync: {
19931
20480
  Args: never;
19932
20481
  Returns: undefined;
19933
20482
  };
20483
+ run_floriday_stock_queue_process: {
20484
+ Args: never;
20485
+ Returns: undefined;
20486
+ };
19934
20487
  run_logistics_tasks_dispatch: {
19935
20488
  Args: never;
19936
20489
  Returns: undefined;
19937
20490
  };
20491
+ run_print_queue_ticks: {
20492
+ Args: never;
20493
+ Returns: number;
20494
+ };
19938
20495
  run_twinfield_queue_tick: {
19939
20496
  Args: never;
19940
20497
  Returns: undefined;
@@ -20175,6 +20732,13 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
20175
20732
  };
20176
20733
  Returns: number;
20177
20734
  };
20735
+ schedule_floriday_stock_queue_process: {
20736
+ Args: {
20737
+ p_apikey: string;
20738
+ p_url: string;
20739
+ };
20740
+ Returns: number;
20741
+ };
20178
20742
  schedule_floriday_token_refresh: {
20179
20743
  Args: {
20180
20744
  p_apikey: string;
@@ -20315,6 +20879,15 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
20315
20879
  };
20316
20880
  Returns: undefined;
20317
20881
  };
20882
+ trade_item_stock_duplicates: {
20883
+ Args: never;
20884
+ Returns: {
20885
+ keys: string[];
20886
+ product_id: string;
20887
+ product_name: string;
20888
+ row_count: number;
20889
+ }[];
20890
+ };
20318
20891
  try_debtor_lock: {
20319
20892
  Args: {
20320
20893
  _group_key: string;
@@ -20364,7 +20937,7 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
20364
20937
  };
20365
20938
  Enums: {
20366
20939
  ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
20367
- app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin";
20940
+ app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
20368
20941
  doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
20369
20942
  doc_orientation: "portrait" | "landscape";
20370
20943
  exact_env: "staging" | "live";
@@ -22076,7 +22649,7 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
22076
22649
  city: string | null;
22077
22650
  country: string | null;
22078
22651
  created_at: string;
22079
- customer_id: string | null;
22652
+ customer_id: string;
22080
22653
  external_key: string | null;
22081
22654
  external_provider: string | null;
22082
22655
  floriday_location_id: string | null;
@@ -22100,7 +22673,7 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
22100
22673
  city?: string | null;
22101
22674
  country?: string | null;
22102
22675
  created_at?: string;
22103
- customer_id?: string | null;
22676
+ customer_id: string;
22104
22677
  external_key?: string | null;
22105
22678
  external_provider?: string | null;
22106
22679
  floriday_location_id?: string | null;
@@ -22124,7 +22697,7 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
22124
22697
  city?: string | null;
22125
22698
  country?: string | null;
22126
22699
  created_at?: string;
22127
- customer_id?: string | null;
22700
+ customer_id?: string;
22128
22701
  external_key?: string | null;
22129
22702
  external_provider?: string | null;
22130
22703
  floriday_location_id?: string | null;
@@ -26087,12 +26660,17 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
26087
26660
  attempts: number;
26088
26661
  connection_id: string;
26089
26662
  created_at: string;
26663
+ desired_available: boolean | null;
26090
26664
  gateway_attempt_id: string | null;
26091
26665
  id: string;
26092
26666
  last_error: string | null;
26667
+ locked_at: string | null;
26668
+ locked_by: string | null;
26669
+ next_attempt_at: string;
26093
26670
  number_of_pieces: number;
26094
26671
  sent_at: string | null;
26095
26672
  status: string;
26673
+ superseded_by: string | null;
26096
26674
  trade_item_id: string;
26097
26675
  updated_at: string;
26098
26676
  user_id: string;
@@ -26101,12 +26679,17 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
26101
26679
  attempts?: number;
26102
26680
  connection_id: string;
26103
26681
  created_at?: string;
26682
+ desired_available?: boolean | null;
26104
26683
  gateway_attempt_id?: string | null;
26105
26684
  id?: string;
26106
26685
  last_error?: string | null;
26686
+ locked_at?: string | null;
26687
+ locked_by?: string | null;
26688
+ next_attempt_at?: string;
26107
26689
  number_of_pieces?: number;
26108
26690
  sent_at?: string | null;
26109
26691
  status?: string;
26692
+ superseded_by?: string | null;
26110
26693
  trade_item_id: string;
26111
26694
  updated_at?: string;
26112
26695
  user_id: string;
@@ -26115,12 +26698,17 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
26115
26698
  attempts?: number;
26116
26699
  connection_id?: string;
26117
26700
  created_at?: string;
26701
+ desired_available?: boolean | null;
26118
26702
  gateway_attempt_id?: string | null;
26119
26703
  id?: string;
26120
26704
  last_error?: string | null;
26705
+ locked_at?: string | null;
26706
+ locked_by?: string | null;
26707
+ next_attempt_at?: string;
26121
26708
  number_of_pieces?: number;
26122
26709
  sent_at?: string | null;
26123
26710
  status?: string;
26711
+ superseded_by?: string | null;
26124
26712
  trade_item_id?: string;
26125
26713
  updated_at?: string;
26126
26714
  user_id?: string;
@@ -26857,6 +27445,7 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
26857
27445
  Row: {
26858
27446
  buyer_organization_id: string | null;
26859
27447
  connection_id: string;
27448
+ controlled_at: string | null;
26860
27449
  created_at: string;
26861
27450
  data: import("../integrations/supabase/types").Json;
26862
27451
  floriday_id: string;
@@ -26868,6 +27457,7 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
26868
27457
  Insert: {
26869
27458
  buyer_organization_id?: string | null;
26870
27459
  connection_id: string;
27460
+ controlled_at?: string | null;
26871
27461
  created_at?: string;
26872
27462
  data: import("../integrations/supabase/types").Json;
26873
27463
  floriday_id: string;
@@ -26879,6 +27469,7 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
26879
27469
  Update: {
26880
27470
  buyer_organization_id?: string | null;
26881
27471
  connection_id?: string;
27472
+ controlled_at?: string | null;
26882
27473
  created_at?: string;
26883
27474
  data?: import("../integrations/supabase/types").Json;
26884
27475
  floriday_id?: string;
@@ -27780,6 +28371,54 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
27780
28371
  };
27781
28372
  Relationships: [];
27782
28373
  };
28374
+ invoice_timing_settings: {
28375
+ Row: {
28376
+ anchor: string;
28377
+ business_days_only: boolean;
28378
+ created_at: string;
28379
+ enabled: boolean;
28380
+ id: string;
28381
+ offset_days: number;
28382
+ pickup_anchor: string;
28383
+ pickup_business_days_only: boolean;
28384
+ pickup_offset_days: number;
28385
+ pickup_time_of_day: string;
28386
+ singleton: boolean;
28387
+ time_of_day: string;
28388
+ updated_at: string;
28389
+ };
28390
+ Insert: {
28391
+ anchor?: string;
28392
+ business_days_only?: boolean;
28393
+ created_at?: string;
28394
+ enabled?: boolean;
28395
+ id?: string;
28396
+ offset_days?: number;
28397
+ pickup_anchor?: string;
28398
+ pickup_business_days_only?: boolean;
28399
+ pickup_offset_days?: number;
28400
+ pickup_time_of_day?: string;
28401
+ singleton?: boolean;
28402
+ time_of_day?: string;
28403
+ updated_at?: string;
28404
+ };
28405
+ Update: {
28406
+ anchor?: string;
28407
+ business_days_only?: boolean;
28408
+ created_at?: string;
28409
+ enabled?: boolean;
28410
+ id?: string;
28411
+ offset_days?: number;
28412
+ pickup_anchor?: string;
28413
+ pickup_business_days_only?: boolean;
28414
+ pickup_offset_days?: number;
28415
+ pickup_time_of_day?: string;
28416
+ singleton?: boolean;
28417
+ time_of_day?: string;
28418
+ updated_at?: string;
28419
+ };
28420
+ Relationships: [];
28421
+ };
27783
28422
  itk_contact_persons: {
27784
28423
  Row: {
27785
28424
  created_at: string;
@@ -28869,6 +29508,69 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
28869
29508
  };
28870
29509
  Relationships: [];
28871
29510
  };
29511
+ logistics_floriday_pushes: {
29512
+ Row: {
29513
+ attempts: number;
29514
+ created_at: string;
29515
+ first_queued_at: string;
29516
+ fulfillment_order_id: string | null;
29517
+ id: string;
29518
+ last_error: string | null;
29519
+ last_error_at: string | null;
29520
+ last_sent_hash: string | null;
29521
+ locked_by: string | null;
29522
+ locked_until: string | null;
29523
+ next_attempt_at: string;
29524
+ order_ref: string;
29525
+ payload: import("../integrations/supabase/types").Json;
29526
+ payload_hash: string | null;
29527
+ revision: number;
29528
+ sent_at: string | null;
29529
+ status: string;
29530
+ updated_at: string;
29531
+ };
29532
+ Insert: {
29533
+ attempts?: number;
29534
+ created_at?: string;
29535
+ first_queued_at?: string;
29536
+ fulfillment_order_id?: string | null;
29537
+ id?: string;
29538
+ last_error?: string | null;
29539
+ last_error_at?: string | null;
29540
+ last_sent_hash?: string | null;
29541
+ locked_by?: string | null;
29542
+ locked_until?: string | null;
29543
+ next_attempt_at?: string;
29544
+ order_ref: string;
29545
+ payload?: import("../integrations/supabase/types").Json;
29546
+ payload_hash?: string | null;
29547
+ revision?: number;
29548
+ sent_at?: string | null;
29549
+ status?: string;
29550
+ updated_at?: string;
29551
+ };
29552
+ Update: {
29553
+ attempts?: number;
29554
+ created_at?: string;
29555
+ first_queued_at?: string;
29556
+ fulfillment_order_id?: string | null;
29557
+ id?: string;
29558
+ last_error?: string | null;
29559
+ last_error_at?: string | null;
29560
+ last_sent_hash?: string | null;
29561
+ locked_by?: string | null;
29562
+ locked_until?: string | null;
29563
+ next_attempt_at?: string;
29564
+ order_ref?: string;
29565
+ payload?: import("../integrations/supabase/types").Json;
29566
+ payload_hash?: string | null;
29567
+ revision?: number;
29568
+ sent_at?: string | null;
29569
+ status?: string;
29570
+ updated_at?: string;
29571
+ };
29572
+ Relationships: [];
29573
+ };
28872
29574
  logistics_formulas: {
28873
29575
  Row: {
28874
29576
  created_at: string;
@@ -29732,14 +30434,17 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
29732
30434
  };
29733
30435
  mailbox_messages: {
29734
30436
  Row: {
30437
+ attachments: import("../integrations/supabase/types").Json;
29735
30438
  body_html: string | null;
29736
30439
  body_text: string | null;
30440
+ cc_recipients: import("../integrations/supabase/types").Json;
29737
30441
  connection_id: string | null;
29738
30442
  created_at: string;
29739
30443
  error_message: string | null;
29740
30444
  external_id: string | null;
29741
30445
  from_email: string | null;
29742
30446
  from_name: string | null;
30447
+ has_attachments: boolean;
29743
30448
  id: string;
29744
30449
  message_id: string | null;
29745
30450
  profile_id: string | null;
@@ -29747,18 +30452,22 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
29747
30452
  received_at: string | null;
29748
30453
  status: string;
29749
30454
  subject: string | null;
30455
+ to_recipients: import("../integrations/supabase/types").Json;
29750
30456
  uid: number | null;
29751
30457
  updated_at: string;
29752
30458
  };
29753
30459
  Insert: {
30460
+ attachments?: import("../integrations/supabase/types").Json;
29754
30461
  body_html?: string | null;
29755
30462
  body_text?: string | null;
30463
+ cc_recipients?: import("../integrations/supabase/types").Json;
29756
30464
  connection_id?: string | null;
29757
30465
  created_at?: string;
29758
30466
  error_message?: string | null;
29759
30467
  external_id?: string | null;
29760
30468
  from_email?: string | null;
29761
30469
  from_name?: string | null;
30470
+ has_attachments?: boolean;
29762
30471
  id?: string;
29763
30472
  message_id?: string | null;
29764
30473
  profile_id?: string | null;
@@ -29766,18 +30475,22 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
29766
30475
  received_at?: string | null;
29767
30476
  status?: string;
29768
30477
  subject?: string | null;
30478
+ to_recipients?: import("../integrations/supabase/types").Json;
29769
30479
  uid?: number | null;
29770
30480
  updated_at?: string;
29771
30481
  };
29772
30482
  Update: {
30483
+ attachments?: import("../integrations/supabase/types").Json;
29773
30484
  body_html?: string | null;
29774
30485
  body_text?: string | null;
30486
+ cc_recipients?: import("../integrations/supabase/types").Json;
29775
30487
  connection_id?: string | null;
29776
30488
  created_at?: string;
29777
30489
  error_message?: string | null;
29778
30490
  external_id?: string | null;
29779
30491
  from_email?: string | null;
29780
30492
  from_name?: string | null;
30493
+ has_attachments?: boolean;
29781
30494
  id?: string;
29782
30495
  message_id?: string | null;
29783
30496
  profile_id?: string | null;
@@ -29785,6 +30498,7 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
29785
30498
  received_at?: string | null;
29786
30499
  status?: string;
29787
30500
  subject?: string | null;
30501
+ to_recipients?: import("../integrations/supabase/types").Json;
29788
30502
  uid?: number | null;
29789
30503
  updated_at?: string;
29790
30504
  };
@@ -30192,6 +30906,36 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
30192
30906
  };
30193
30907
  Relationships: [];
30194
30908
  };
30909
+ module_registry: {
30910
+ Row: {
30911
+ created_at: string;
30912
+ is_active: boolean;
30913
+ last_seen_at: string;
30914
+ module_id: string;
30915
+ name: string;
30916
+ shell_id: string | null;
30917
+ sort_order: number | null;
30918
+ };
30919
+ Insert: {
30920
+ created_at?: string;
30921
+ is_active?: boolean;
30922
+ last_seen_at?: string;
30923
+ module_id: string;
30924
+ name: string;
30925
+ shell_id?: string | null;
30926
+ sort_order?: number | null;
30927
+ };
30928
+ Update: {
30929
+ created_at?: string;
30930
+ is_active?: boolean;
30931
+ last_seen_at?: string;
30932
+ module_id?: string;
30933
+ name?: string;
30934
+ shell_id?: string | null;
30935
+ sort_order?: number | null;
30936
+ };
30937
+ Relationships: [];
30938
+ };
30195
30939
  module_runtime_config: {
30196
30940
  Row: {
30197
30941
  key: string;
@@ -31251,6 +31995,42 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
31251
31995
  };
31252
31996
  Relationships: [];
31253
31997
  };
31998
+ order_invoice_links: {
31999
+ Row: {
32000
+ attempts: number;
32001
+ created_at: string;
32002
+ error_message: string | null;
32003
+ id: string;
32004
+ invoice_number: string | null;
32005
+ order_id: string;
32006
+ processed_at: string | null;
32007
+ status: string;
32008
+ updated_at: string;
32009
+ };
32010
+ Insert: {
32011
+ attempts?: number;
32012
+ created_at?: string;
32013
+ error_message?: string | null;
32014
+ id?: string;
32015
+ invoice_number?: string | null;
32016
+ order_id: string;
32017
+ processed_at?: string | null;
32018
+ status?: string;
32019
+ updated_at?: string;
32020
+ };
32021
+ Update: {
32022
+ attempts?: number;
32023
+ created_at?: string;
32024
+ error_message?: string | null;
32025
+ id?: string;
32026
+ invoice_number?: string | null;
32027
+ order_id?: string;
32028
+ processed_at?: string | null;
32029
+ status?: string;
32030
+ updated_at?: string;
32031
+ };
32032
+ Relationships: [];
32033
+ };
31254
32034
  order_items: {
31255
32035
  Row: {
31256
32036
  crates_per_layer: number | null;
@@ -31433,6 +32213,7 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
31433
32213
  delivery_date: string | null;
31434
32214
  floriday_sales_order_id: string | null;
31435
32215
  id: string;
32216
+ invoice_due_at: string | null;
31436
32217
  is_reservation: boolean;
31437
32218
  notes: string | null;
31438
32219
  order_date: string;
@@ -31454,6 +32235,7 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
31454
32235
  delivery_date?: string | null;
31455
32236
  floriday_sales_order_id?: string | null;
31456
32237
  id?: string;
32238
+ invoice_due_at?: string | null;
31457
32239
  is_reservation?: boolean;
31458
32240
  notes?: string | null;
31459
32241
  order_date?: string;
@@ -31475,6 +32257,7 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
31475
32257
  delivery_date?: string | null;
31476
32258
  floriday_sales_order_id?: string | null;
31477
32259
  id?: string;
32260
+ invoice_due_at?: string | null;
31478
32261
  is_reservation?: boolean;
31479
32262
  notes?: string | null;
31480
32263
  order_date?: string;
@@ -32671,22 +33454,27 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
32671
33454
  created_at: string;
32672
33455
  documentnaam: string;
32673
33456
  documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
33457
+ extern_job_id: string | null;
32674
33458
  foutmelding: string | null;
32675
33459
  gebruiker_id: string | null;
32676
33460
  gebruiker_naam: string;
32677
33461
  gestart_op: string | null;
32678
33462
  id: string;
33463
+ idempotentie_sleutel: string | null;
32679
33464
  is_herprint: boolean;
32680
33465
  kopieen: number;
32681
33466
  layout_id: string | null;
32682
33467
  opgepakt_op: string | null;
32683
33468
  paginas: number;
32684
33469
  payload: import("../integrations/supabase/types").Json;
33470
+ pdf_base64: string | null;
33471
+ pdf_url: string | null;
32685
33472
  pogingen: number;
32686
33473
  printer_id: string | null;
32687
33474
  render_html: string | null;
32688
33475
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
32689
33476
  updated_at: string;
33477
+ volgende_poging: string | null;
32690
33478
  voltooid_op: string | null;
32691
33479
  };
32692
33480
  Insert: {
@@ -32695,22 +33483,27 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
32695
33483
  created_at?: string;
32696
33484
  documentnaam?: string;
32697
33485
  documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
33486
+ extern_job_id?: string | null;
32698
33487
  foutmelding?: string | null;
32699
33488
  gebruiker_id?: string | null;
32700
33489
  gebruiker_naam?: string;
32701
33490
  gestart_op?: string | null;
32702
33491
  id?: string;
33492
+ idempotentie_sleutel?: string | null;
32703
33493
  is_herprint?: boolean;
32704
33494
  kopieen?: number;
32705
33495
  layout_id?: string | null;
32706
33496
  opgepakt_op?: string | null;
32707
33497
  paginas?: number;
32708
33498
  payload?: import("../integrations/supabase/types").Json;
33499
+ pdf_base64?: string | null;
33500
+ pdf_url?: string | null;
32709
33501
  pogingen?: number;
32710
33502
  printer_id?: string | null;
32711
33503
  render_html?: string | null;
32712
33504
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
32713
33505
  updated_at?: string;
33506
+ volgende_poging?: string | null;
32714
33507
  voltooid_op?: string | null;
32715
33508
  };
32716
33509
  Update: {
@@ -32719,22 +33512,27 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
32719
33512
  created_at?: string;
32720
33513
  documentnaam?: string;
32721
33514
  documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
33515
+ extern_job_id?: string | null;
32722
33516
  foutmelding?: string | null;
32723
33517
  gebruiker_id?: string | null;
32724
33518
  gebruiker_naam?: string;
32725
33519
  gestart_op?: string | null;
32726
33520
  id?: string;
33521
+ idempotentie_sleutel?: string | null;
32727
33522
  is_herprint?: boolean;
32728
33523
  kopieen?: number;
32729
33524
  layout_id?: string | null;
32730
33525
  opgepakt_op?: string | null;
32731
33526
  paginas?: number;
32732
33527
  payload?: import("../integrations/supabase/types").Json;
33528
+ pdf_base64?: string | null;
33529
+ pdf_url?: string | null;
32733
33530
  pogingen?: number;
32734
33531
  printer_id?: string | null;
32735
33532
  render_html?: string | null;
32736
33533
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
32737
33534
  updated_at?: string;
33535
+ volgende_poging?: string | null;
32738
33536
  voltooid_op?: string | null;
32739
33537
  };
32740
33538
  Relationships: [{
@@ -32757,6 +33555,63 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
32757
33555
  referencedColumns: ["id"];
32758
33556
  }];
32759
33557
  };
33558
+ print_queue_runners: {
33559
+ Row: {
33560
+ actief: boolean;
33561
+ basis_url: string;
33562
+ created_at: string;
33563
+ id: string;
33564
+ laatst_gezien: string;
33565
+ tick_sleutel: string;
33566
+ updated_at: string;
33567
+ };
33568
+ Insert: {
33569
+ actief?: boolean;
33570
+ basis_url: string;
33571
+ created_at?: string;
33572
+ id?: string;
33573
+ laatst_gezien?: string;
33574
+ tick_sleutel?: string;
33575
+ updated_at?: string;
33576
+ };
33577
+ Update: {
33578
+ actief?: boolean;
33579
+ basis_url?: string;
33580
+ created_at?: string;
33581
+ id?: string;
33582
+ laatst_gezien?: string;
33583
+ tick_sleutel?: string;
33584
+ updated_at?: string;
33585
+ };
33586
+ Relationships: [];
33587
+ };
33588
+ print_queue_settings: {
33589
+ Row: {
33590
+ bewaar_bestanden_dagen: number;
33591
+ bewaar_opdrachten_dagen: number;
33592
+ created_at: string;
33593
+ dubbel_venster_minuten: number;
33594
+ id: string;
33595
+ updated_at: string;
33596
+ };
33597
+ Insert: {
33598
+ bewaar_bestanden_dagen?: number;
33599
+ bewaar_opdrachten_dagen?: number;
33600
+ created_at?: string;
33601
+ dubbel_venster_minuten?: number;
33602
+ id?: string;
33603
+ updated_at?: string;
33604
+ };
33605
+ Update: {
33606
+ bewaar_bestanden_dagen?: number;
33607
+ bewaar_opdrachten_dagen?: number;
33608
+ created_at?: string;
33609
+ dubbel_venster_minuten?: number;
33610
+ id?: string;
33611
+ updated_at?: string;
33612
+ };
33613
+ Relationships: [];
33614
+ };
32760
33615
  print_rules: {
32761
33616
  Row: {
32762
33617
  actief: boolean;
@@ -32917,6 +33772,7 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
32917
33772
  agent_id: string | null;
32918
33773
  created_at: string;
32919
33774
  driver: string;
33775
+ extern_printer_id: string | null;
32920
33776
  id: string;
32921
33777
  ip_adres: string | null;
32922
33778
  laatst_gezien: string | null;
@@ -32938,6 +33794,7 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
32938
33794
  agent_id?: string | null;
32939
33795
  created_at?: string;
32940
33796
  driver?: string;
33797
+ extern_printer_id?: string | null;
32941
33798
  id?: string;
32942
33799
  ip_adres?: string | null;
32943
33800
  laatst_gezien?: string | null;
@@ -32959,6 +33816,7 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
32959
33816
  agent_id?: string | null;
32960
33817
  created_at?: string;
32961
33818
  driver?: string;
33819
+ extern_printer_id?: string | null;
32962
33820
  id?: string;
32963
33821
  ip_adres?: string | null;
32964
33822
  laatst_gezien?: string | null;
@@ -35594,6 +36452,8 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
35594
36452
  };
35595
36453
  twinfield_invoice_settings: {
35596
36454
  Row: {
36455
+ auto_invoice_enabled: boolean;
36456
+ auto_invoice_trigger_statuses: string[];
35597
36457
  created_at: string;
35598
36458
  debtor_gl_account: string;
35599
36459
  default_credit_invoice_type: string | null;
@@ -35614,6 +36474,8 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
35614
36474
  vat_code_export: string | null;
35615
36475
  };
35616
36476
  Insert: {
36477
+ auto_invoice_enabled?: boolean;
36478
+ auto_invoice_trigger_statuses?: string[];
35617
36479
  created_at?: string;
35618
36480
  debtor_gl_account?: string;
35619
36481
  default_credit_invoice_type?: string | null;
@@ -35634,6 +36496,8 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
35634
36496
  vat_code_export?: string | null;
35635
36497
  };
35636
36498
  Update: {
36499
+ auto_invoice_enabled?: boolean;
36500
+ auto_invoice_trigger_statuses?: string[];
35637
36501
  created_at?: string;
35638
36502
  debtor_gl_account?: string;
35639
36503
  default_credit_invoice_type?: string | null;
@@ -36696,6 +37560,33 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
36696
37560
  referencedColumns: ["id"];
36697
37561
  }];
36698
37562
  };
37563
+ user_module_permissions: {
37564
+ Row: {
37565
+ created_at: string;
37566
+ id: string;
37567
+ module_id: string;
37568
+ permission: string;
37569
+ updated_at: string;
37570
+ user_id: string;
37571
+ };
37572
+ Insert: {
37573
+ created_at?: string;
37574
+ id?: string;
37575
+ module_id: string;
37576
+ permission: string;
37577
+ updated_at?: string;
37578
+ user_id: string;
37579
+ };
37580
+ Update: {
37581
+ created_at?: string;
37582
+ id?: string;
37583
+ module_id?: string;
37584
+ permission?: string;
37585
+ updated_at?: string;
37586
+ user_id?: string;
37587
+ };
37588
+ Relationships: [];
37589
+ };
36699
37590
  user_roles: {
36700
37591
  Row: {
36701
37592
  created_at: string;
@@ -38529,6 +39420,10 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
38529
39420
  processed_items: number;
38530
39421
  }[];
38531
39422
  };
39423
+ backfill_order_auto_invoice_queue: {
39424
+ Args: never;
39425
+ Returns: number;
39426
+ };
38532
39427
  calculate_layer_stock: {
38533
39428
  Args: {
38534
39429
  p_product_id: string;
@@ -38563,6 +39458,77 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
38563
39458
  };
38564
39459
  Returns: import("../integrations/supabase/types").Json;
38565
39460
  };
39461
+ claim_cloud_print_jobs: {
39462
+ Args: {
39463
+ _max?: number;
39464
+ };
39465
+ Returns: {
39466
+ agent_id: string | null;
39467
+ bron_job_id: string | null;
39468
+ created_at: string;
39469
+ documentnaam: string;
39470
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
39471
+ extern_job_id: string | null;
39472
+ foutmelding: string | null;
39473
+ gebruiker_id: string | null;
39474
+ gebruiker_naam: string;
39475
+ gestart_op: string | null;
39476
+ id: string;
39477
+ idempotentie_sleutel: string | null;
39478
+ is_herprint: boolean;
39479
+ kopieen: number;
39480
+ layout_id: string | null;
39481
+ opgepakt_op: string | null;
39482
+ paginas: number;
39483
+ payload: import("../integrations/supabase/types").Json;
39484
+ pdf_base64: string | null;
39485
+ pdf_url: string | null;
39486
+ pogingen: number;
39487
+ printer_id: string | null;
39488
+ render_html: string | null;
39489
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
39490
+ updated_at: string;
39491
+ volgende_poging: string | null;
39492
+ voltooid_op: string | null;
39493
+ }[];
39494
+ SetofOptions: {
39495
+ from: "*";
39496
+ to: "print_jobs";
39497
+ isOneToOne: false;
39498
+ isSetofReturn: true;
39499
+ };
39500
+ };
39501
+ claim_floriday_stock_queue: {
39502
+ Args: {
39503
+ p_limit?: number;
39504
+ p_worker?: string;
39505
+ };
39506
+ Returns: {
39507
+ attempts: number;
39508
+ connection_id: string;
39509
+ created_at: string;
39510
+ desired_available: boolean | null;
39511
+ gateway_attempt_id: string | null;
39512
+ id: string;
39513
+ last_error: string | null;
39514
+ locked_at: string | null;
39515
+ locked_by: string | null;
39516
+ next_attempt_at: string;
39517
+ number_of_pieces: number;
39518
+ sent_at: string | null;
39519
+ status: string;
39520
+ superseded_by: string | null;
39521
+ trade_item_id: string;
39522
+ updated_at: string;
39523
+ user_id: string;
39524
+ }[];
39525
+ SetofOptions: {
39526
+ from: "*";
39527
+ to: "floriday_continuous_stock_queue";
39528
+ isOneToOne: false;
39529
+ isSetofReturn: true;
39530
+ };
39531
+ };
38566
39532
  claim_logistics_tasks: {
38567
39533
  Args: {
38568
39534
  _limit?: number;
@@ -38622,22 +39588,27 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
38622
39588
  created_at: string;
38623
39589
  documentnaam: string;
38624
39590
  documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
39591
+ extern_job_id: string | null;
38625
39592
  foutmelding: string | null;
38626
39593
  gebruiker_id: string | null;
38627
39594
  gebruiker_naam: string;
38628
39595
  gestart_op: string | null;
38629
39596
  id: string;
39597
+ idempotentie_sleutel: string | null;
38630
39598
  is_herprint: boolean;
38631
39599
  kopieen: number;
38632
39600
  layout_id: string | null;
38633
39601
  opgepakt_op: string | null;
38634
39602
  paginas: number;
38635
39603
  payload: import("../integrations/supabase/types").Json;
39604
+ pdf_base64: string | null;
39605
+ pdf_url: string | null;
38636
39606
  pogingen: number;
38637
39607
  printer_id: string | null;
38638
39608
  render_html: string | null;
38639
39609
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
38640
39610
  updated_at: string;
39611
+ volgende_poging: string | null;
38641
39612
  voltooid_op: string | null;
38642
39613
  }[];
38643
39614
  SetofOptions: {
@@ -38675,10 +39646,28 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
38675
39646
  isSetofReturn: true;
38676
39647
  };
38677
39648
  };
39649
+ cleanup_floriday_stock_queue: {
39650
+ Args: never;
39651
+ Returns: undefined;
39652
+ };
38678
39653
  cleanup_old_bookings: {
38679
39654
  Args: never;
38680
39655
  Returns: undefined;
38681
39656
  };
39657
+ cleanup_voorraad_module_history: {
39658
+ Args: never;
39659
+ Returns: undefined;
39660
+ };
39661
+ complete_floriday_stock_queue: {
39662
+ Args: {
39663
+ p_attempt_id?: string;
39664
+ p_error?: string;
39665
+ p_id: string;
39666
+ p_ok: boolean;
39667
+ p_permanent?: boolean;
39668
+ };
39669
+ Returns: undefined;
39670
+ };
38682
39671
  consume_bom_for_production: {
38683
39672
  Args: {
38684
39673
  p_connection_id: string;
@@ -38790,6 +39779,13 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
38790
39779
  };
38791
39780
  Returns: import("../integrations/supabase/types").Json;
38792
39781
  };
39782
+ effective_module_permission: {
39783
+ Args: {
39784
+ _module_id: string;
39785
+ _user_id: string;
39786
+ };
39787
+ Returns: string;
39788
+ };
38793
39789
  email_auth_decrypt: {
38794
39790
  Args: {
38795
39791
  cipher: string;
@@ -39593,6 +40589,51 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
39593
40589
  isSetofReturn: false;
39594
40590
  };
39595
40591
  };
40592
+ logistics_floriday_claim_pushes: {
40593
+ Args: {
40594
+ _lease_seconds?: number;
40595
+ _limit?: number;
40596
+ _worker?: string;
40597
+ };
40598
+ Returns: {
40599
+ attempts: number;
40600
+ fulfillment_order_id: string;
40601
+ id: string;
40602
+ last_sent_hash: string;
40603
+ order_ref: string;
40604
+ payload: import("../integrations/supabase/types").Json;
40605
+ payload_hash: string;
40606
+ revision: number;
40607
+ }[];
40608
+ };
40609
+ logistics_floriday_finish_push: {
40610
+ Args: {
40611
+ _error?: string;
40612
+ _fulfillment_order_id?: string;
40613
+ _id: string;
40614
+ _max_age_hours?: number;
40615
+ _max_attempts?: number;
40616
+ _ok: boolean;
40617
+ _permanent?: boolean;
40618
+ _revision: number;
40619
+ _sent_hash?: string;
40620
+ };
40621
+ Returns: string;
40622
+ };
40623
+ logistics_floriday_prune_pushes: {
40624
+ Args: {
40625
+ _days?: number;
40626
+ };
40627
+ Returns: number;
40628
+ };
40629
+ logistics_floriday_queue_push: {
40630
+ Args: {
40631
+ _order_ref: string;
40632
+ _payload?: import("../integrations/supabase/types").Json;
40633
+ _payload_hash?: string;
40634
+ };
40635
+ Returns: string;
40636
+ };
39596
40637
  logistics_live_carriers: {
39597
40638
  Args: {
39598
40639
  p_order_ref: string;
@@ -39883,6 +40924,13 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
39883
40924
  };
39884
40925
  Returns: undefined;
39885
40926
  };
40927
+ my_module_permissions: {
40928
+ Args: never;
40929
+ Returns: {
40930
+ module_id: string;
40931
+ permission: string;
40932
+ }[];
40933
+ };
39886
40934
  next_manufacture_partij: {
39887
40935
  Args: {
39888
40936
  _tenant_id: string;
@@ -39933,6 +40981,13 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
39933
40981
  };
39934
40982
  Returns: boolean;
39935
40983
  };
40984
+ opruim_print_historie: {
40985
+ Args: never;
40986
+ Returns: {
40987
+ ontdaan: number;
40988
+ verwijderd: number;
40989
+ }[];
40990
+ };
39936
40991
  order_number_prefix: {
39937
40992
  Args: {
39938
40993
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -39940,6 +40995,15 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
39940
40995
  };
39941
40996
  Returns: string;
39942
40997
  };
40998
+ pick_active_printers: {
40999
+ Args: never;
41000
+ Returns: {
41001
+ id: string;
41002
+ locatie: string;
41003
+ naam: string;
41004
+ online: boolean;
41005
+ }[];
41006
+ };
39943
41007
  pick_claim_document: {
39944
41008
  Args: {
39945
41009
  _queue_item_id: string;
@@ -40126,6 +41190,52 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
40126
41190
  };
40127
41191
  Returns: undefined;
40128
41192
  };
41193
+ pick_reset_print: {
41194
+ Args: {
41195
+ _queue_item_id: string;
41196
+ _session_id: string;
41197
+ };
41198
+ Returns: {
41199
+ announced_at: string;
41200
+ assigned_user_id: string | null;
41201
+ barcode: string | null;
41202
+ cancelled_at: string | null;
41203
+ cart_count: number;
41204
+ completed_at: string | null;
41205
+ country_code: string | null;
41206
+ created_at: string;
41207
+ customer_name: string | null;
41208
+ delivery_address: string | null;
41209
+ document_number: string | null;
41210
+ document_type_id: string | null;
41211
+ due_at: string | null;
41212
+ id: string;
41213
+ is_urgent: boolean;
41214
+ line_count: number;
41215
+ order_number: string | null;
41216
+ order_type: string | null;
41217
+ payload: import("../integrations/supabase/types").Json;
41218
+ print_count: number;
41219
+ print_job_id: string | null;
41220
+ printed_at: string | null;
41221
+ printed_by: string | null;
41222
+ printer_id: string | null;
41223
+ priority: number;
41224
+ reference: string | null;
41225
+ route: string | null;
41226
+ screen_id: string | null;
41227
+ station_id: string | null;
41228
+ status_id: string | null;
41229
+ updated_at: string;
41230
+ warnings: import("../integrations/supabase/types").Json;
41231
+ };
41232
+ SetofOptions: {
41233
+ from: "*";
41234
+ to: "pick_queue";
41235
+ isOneToOne: true;
41236
+ isSetofReturn: false;
41237
+ };
41238
+ };
40129
41239
  pick_station_dashboard: {
40130
41240
  Args: never;
40131
41241
  Returns: {
@@ -40272,6 +41382,12 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
40272
41382
  };
40273
41383
  Returns: undefined;
40274
41384
  };
41385
+ reset_stalled_floriday_stock_queue: {
41386
+ Args: {
41387
+ p_include_failed?: boolean;
41388
+ };
41389
+ Returns: number;
41390
+ };
40275
41391
  resolve_group_allocation: {
40276
41392
  Args: {
40277
41393
  _needed: number;
@@ -40316,14 +41432,28 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
40316
41432
  };
40317
41433
  Returns: import("../integrations/supabase/types").Json;
40318
41434
  };
41435
+ ruim_print_jobs_op: {
41436
+ Args: {
41437
+ _bewaar_dagen?: number;
41438
+ };
41439
+ Returns: number;
41440
+ };
40319
41441
  run_floriday_continuous_stock_sync: {
40320
41442
  Args: never;
40321
41443
  Returns: undefined;
40322
41444
  };
41445
+ run_floriday_stock_queue_process: {
41446
+ Args: never;
41447
+ Returns: undefined;
41448
+ };
40323
41449
  run_logistics_tasks_dispatch: {
40324
41450
  Args: never;
40325
41451
  Returns: undefined;
40326
41452
  };
41453
+ run_print_queue_ticks: {
41454
+ Args: never;
41455
+ Returns: number;
41456
+ };
40327
41457
  run_twinfield_queue_tick: {
40328
41458
  Args: never;
40329
41459
  Returns: undefined;
@@ -40564,6 +41694,13 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
40564
41694
  };
40565
41695
  Returns: number;
40566
41696
  };
41697
+ schedule_floriday_stock_queue_process: {
41698
+ Args: {
41699
+ p_apikey: string;
41700
+ p_url: string;
41701
+ };
41702
+ Returns: number;
41703
+ };
40567
41704
  schedule_floriday_token_refresh: {
40568
41705
  Args: {
40569
41706
  p_apikey: string;
@@ -40704,6 +41841,15 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
40704
41841
  };
40705
41842
  Returns: undefined;
40706
41843
  };
41844
+ trade_item_stock_duplicates: {
41845
+ Args: never;
41846
+ Returns: {
41847
+ keys: string[];
41848
+ product_id: string;
41849
+ product_name: string;
41850
+ row_count: number;
41851
+ }[];
41852
+ };
40707
41853
  try_debtor_lock: {
40708
41854
  Args: {
40709
41855
  _group_key: string;
@@ -40753,7 +41899,7 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
40753
41899
  };
40754
41900
  Enums: {
40755
41901
  ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
40756
- app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin";
41902
+ app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
40757
41903
  doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
40758
41904
  doc_orientation: "portrait" | "landscape";
40759
41905
  exact_env: "staging" | "live";