@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
@@ -1693,7 +1693,7 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
1693
1693
  city: string | null;
1694
1694
  country: string | null;
1695
1695
  created_at: string;
1696
- customer_id: string | null;
1696
+ customer_id: string;
1697
1697
  external_key: string | null;
1698
1698
  external_provider: string | null;
1699
1699
  floriday_location_id: string | null;
@@ -1717,7 +1717,7 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
1717
1717
  city?: string | null;
1718
1718
  country?: string | null;
1719
1719
  created_at?: string;
1720
- customer_id?: string | null;
1720
+ customer_id: string;
1721
1721
  external_key?: string | null;
1722
1722
  external_provider?: string | null;
1723
1723
  floriday_location_id?: string | null;
@@ -1741,7 +1741,7 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
1741
1741
  city?: string | null;
1742
1742
  country?: string | null;
1743
1743
  created_at?: string;
1744
- customer_id?: string | null;
1744
+ customer_id?: string;
1745
1745
  external_key?: string | null;
1746
1746
  external_provider?: string | null;
1747
1747
  floriday_location_id?: string | null;
@@ -5704,12 +5704,17 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
5704
5704
  attempts: number;
5705
5705
  connection_id: string;
5706
5706
  created_at: string;
5707
+ desired_available: boolean | null;
5707
5708
  gateway_attempt_id: string | null;
5708
5709
  id: string;
5709
5710
  last_error: string | null;
5711
+ locked_at: string | null;
5712
+ locked_by: string | null;
5713
+ next_attempt_at: string;
5710
5714
  number_of_pieces: number;
5711
5715
  sent_at: string | null;
5712
5716
  status: string;
5717
+ superseded_by: string | null;
5713
5718
  trade_item_id: string;
5714
5719
  updated_at: string;
5715
5720
  user_id: string;
@@ -5718,12 +5723,17 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
5718
5723
  attempts?: number;
5719
5724
  connection_id: string;
5720
5725
  created_at?: string;
5726
+ desired_available?: boolean | null;
5721
5727
  gateway_attempt_id?: string | null;
5722
5728
  id?: string;
5723
5729
  last_error?: string | null;
5730
+ locked_at?: string | null;
5731
+ locked_by?: string | null;
5732
+ next_attempt_at?: string;
5724
5733
  number_of_pieces?: number;
5725
5734
  sent_at?: string | null;
5726
5735
  status?: string;
5736
+ superseded_by?: string | null;
5727
5737
  trade_item_id: string;
5728
5738
  updated_at?: string;
5729
5739
  user_id: string;
@@ -5732,12 +5742,17 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
5732
5742
  attempts?: number;
5733
5743
  connection_id?: string;
5734
5744
  created_at?: string;
5745
+ desired_available?: boolean | null;
5735
5746
  gateway_attempt_id?: string | null;
5736
5747
  id?: string;
5737
5748
  last_error?: string | null;
5749
+ locked_at?: string | null;
5750
+ locked_by?: string | null;
5751
+ next_attempt_at?: string;
5738
5752
  number_of_pieces?: number;
5739
5753
  sent_at?: string | null;
5740
5754
  status?: string;
5755
+ superseded_by?: string | null;
5741
5756
  trade_item_id?: string;
5742
5757
  updated_at?: string;
5743
5758
  user_id?: string;
@@ -6474,6 +6489,7 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
6474
6489
  Row: {
6475
6490
  buyer_organization_id: string | null;
6476
6491
  connection_id: string;
6492
+ controlled_at: string | null;
6477
6493
  created_at: string;
6478
6494
  data: import("../integrations/supabase/types").Json;
6479
6495
  floriday_id: string;
@@ -6485,6 +6501,7 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
6485
6501
  Insert: {
6486
6502
  buyer_organization_id?: string | null;
6487
6503
  connection_id: string;
6504
+ controlled_at?: string | null;
6488
6505
  created_at?: string;
6489
6506
  data: import("../integrations/supabase/types").Json;
6490
6507
  floriday_id: string;
@@ -6496,6 +6513,7 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
6496
6513
  Update: {
6497
6514
  buyer_organization_id?: string | null;
6498
6515
  connection_id?: string;
6516
+ controlled_at?: string | null;
6499
6517
  created_at?: string;
6500
6518
  data?: import("../integrations/supabase/types").Json;
6501
6519
  floriday_id?: string;
@@ -7397,6 +7415,54 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
7397
7415
  };
7398
7416
  Relationships: [];
7399
7417
  };
7418
+ invoice_timing_settings: {
7419
+ Row: {
7420
+ anchor: string;
7421
+ business_days_only: boolean;
7422
+ created_at: string;
7423
+ enabled: boolean;
7424
+ id: string;
7425
+ offset_days: number;
7426
+ pickup_anchor: string;
7427
+ pickup_business_days_only: boolean;
7428
+ pickup_offset_days: number;
7429
+ pickup_time_of_day: string;
7430
+ singleton: boolean;
7431
+ time_of_day: string;
7432
+ updated_at: string;
7433
+ };
7434
+ Insert: {
7435
+ anchor?: string;
7436
+ business_days_only?: boolean;
7437
+ created_at?: string;
7438
+ enabled?: boolean;
7439
+ id?: string;
7440
+ offset_days?: number;
7441
+ pickup_anchor?: string;
7442
+ pickup_business_days_only?: boolean;
7443
+ pickup_offset_days?: number;
7444
+ pickup_time_of_day?: string;
7445
+ singleton?: boolean;
7446
+ time_of_day?: string;
7447
+ updated_at?: string;
7448
+ };
7449
+ Update: {
7450
+ anchor?: string;
7451
+ business_days_only?: boolean;
7452
+ created_at?: string;
7453
+ enabled?: boolean;
7454
+ id?: string;
7455
+ offset_days?: number;
7456
+ pickup_anchor?: string;
7457
+ pickup_business_days_only?: boolean;
7458
+ pickup_offset_days?: number;
7459
+ pickup_time_of_day?: string;
7460
+ singleton?: boolean;
7461
+ time_of_day?: string;
7462
+ updated_at?: string;
7463
+ };
7464
+ Relationships: [];
7465
+ };
7400
7466
  itk_contact_persons: {
7401
7467
  Row: {
7402
7468
  created_at: string;
@@ -8486,6 +8552,69 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
8486
8552
  };
8487
8553
  Relationships: [];
8488
8554
  };
8555
+ logistics_floriday_pushes: {
8556
+ Row: {
8557
+ attempts: number;
8558
+ created_at: string;
8559
+ first_queued_at: string;
8560
+ fulfillment_order_id: string | null;
8561
+ id: string;
8562
+ last_error: string | null;
8563
+ last_error_at: string | null;
8564
+ last_sent_hash: string | null;
8565
+ locked_by: string | null;
8566
+ locked_until: string | null;
8567
+ next_attempt_at: string;
8568
+ order_ref: string;
8569
+ payload: import("../integrations/supabase/types").Json;
8570
+ payload_hash: string | null;
8571
+ revision: number;
8572
+ sent_at: string | null;
8573
+ status: string;
8574
+ updated_at: string;
8575
+ };
8576
+ Insert: {
8577
+ attempts?: number;
8578
+ created_at?: string;
8579
+ first_queued_at?: string;
8580
+ fulfillment_order_id?: string | null;
8581
+ id?: string;
8582
+ last_error?: string | null;
8583
+ last_error_at?: string | null;
8584
+ last_sent_hash?: string | null;
8585
+ locked_by?: string | null;
8586
+ locked_until?: string | null;
8587
+ next_attempt_at?: string;
8588
+ order_ref: string;
8589
+ payload?: import("../integrations/supabase/types").Json;
8590
+ payload_hash?: string | null;
8591
+ revision?: number;
8592
+ sent_at?: string | null;
8593
+ status?: string;
8594
+ updated_at?: string;
8595
+ };
8596
+ Update: {
8597
+ attempts?: number;
8598
+ created_at?: string;
8599
+ first_queued_at?: string;
8600
+ fulfillment_order_id?: string | null;
8601
+ id?: string;
8602
+ last_error?: string | null;
8603
+ last_error_at?: string | null;
8604
+ last_sent_hash?: string | null;
8605
+ locked_by?: string | null;
8606
+ locked_until?: string | null;
8607
+ next_attempt_at?: string;
8608
+ order_ref?: string;
8609
+ payload?: import("../integrations/supabase/types").Json;
8610
+ payload_hash?: string | null;
8611
+ revision?: number;
8612
+ sent_at?: string | null;
8613
+ status?: string;
8614
+ updated_at?: string;
8615
+ };
8616
+ Relationships: [];
8617
+ };
8489
8618
  logistics_formulas: {
8490
8619
  Row: {
8491
8620
  created_at: string;
@@ -9349,14 +9478,17 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
9349
9478
  };
9350
9479
  mailbox_messages: {
9351
9480
  Row: {
9481
+ attachments: import("../integrations/supabase/types").Json;
9352
9482
  body_html: string | null;
9353
9483
  body_text: string | null;
9484
+ cc_recipients: import("../integrations/supabase/types").Json;
9354
9485
  connection_id: string | null;
9355
9486
  created_at: string;
9356
9487
  error_message: string | null;
9357
9488
  external_id: string | null;
9358
9489
  from_email: string | null;
9359
9490
  from_name: string | null;
9491
+ has_attachments: boolean;
9360
9492
  id: string;
9361
9493
  message_id: string | null;
9362
9494
  profile_id: string | null;
@@ -9364,18 +9496,22 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
9364
9496
  received_at: string | null;
9365
9497
  status: string;
9366
9498
  subject: string | null;
9499
+ to_recipients: import("../integrations/supabase/types").Json;
9367
9500
  uid: number | null;
9368
9501
  updated_at: string;
9369
9502
  };
9370
9503
  Insert: {
9504
+ attachments?: import("../integrations/supabase/types").Json;
9371
9505
  body_html?: string | null;
9372
9506
  body_text?: string | null;
9507
+ cc_recipients?: import("../integrations/supabase/types").Json;
9373
9508
  connection_id?: string | null;
9374
9509
  created_at?: string;
9375
9510
  error_message?: string | null;
9376
9511
  external_id?: string | null;
9377
9512
  from_email?: string | null;
9378
9513
  from_name?: string | null;
9514
+ has_attachments?: boolean;
9379
9515
  id?: string;
9380
9516
  message_id?: string | null;
9381
9517
  profile_id?: string | null;
@@ -9383,18 +9519,22 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
9383
9519
  received_at?: string | null;
9384
9520
  status?: string;
9385
9521
  subject?: string | null;
9522
+ to_recipients?: import("../integrations/supabase/types").Json;
9386
9523
  uid?: number | null;
9387
9524
  updated_at?: string;
9388
9525
  };
9389
9526
  Update: {
9527
+ attachments?: import("../integrations/supabase/types").Json;
9390
9528
  body_html?: string | null;
9391
9529
  body_text?: string | null;
9530
+ cc_recipients?: import("../integrations/supabase/types").Json;
9392
9531
  connection_id?: string | null;
9393
9532
  created_at?: string;
9394
9533
  error_message?: string | null;
9395
9534
  external_id?: string | null;
9396
9535
  from_email?: string | null;
9397
9536
  from_name?: string | null;
9537
+ has_attachments?: boolean;
9398
9538
  id?: string;
9399
9539
  message_id?: string | null;
9400
9540
  profile_id?: string | null;
@@ -9402,6 +9542,7 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
9402
9542
  received_at?: string | null;
9403
9543
  status?: string;
9404
9544
  subject?: string | null;
9545
+ to_recipients?: import("../integrations/supabase/types").Json;
9405
9546
  uid?: number | null;
9406
9547
  updated_at?: string;
9407
9548
  };
@@ -9809,6 +9950,36 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
9809
9950
  };
9810
9951
  Relationships: [];
9811
9952
  };
9953
+ module_registry: {
9954
+ Row: {
9955
+ created_at: string;
9956
+ is_active: boolean;
9957
+ last_seen_at: string;
9958
+ module_id: string;
9959
+ name: string;
9960
+ shell_id: string | null;
9961
+ sort_order: number | null;
9962
+ };
9963
+ Insert: {
9964
+ created_at?: string;
9965
+ is_active?: boolean;
9966
+ last_seen_at?: string;
9967
+ module_id: string;
9968
+ name: string;
9969
+ shell_id?: string | null;
9970
+ sort_order?: number | null;
9971
+ };
9972
+ Update: {
9973
+ created_at?: string;
9974
+ is_active?: boolean;
9975
+ last_seen_at?: string;
9976
+ module_id?: string;
9977
+ name?: string;
9978
+ shell_id?: string | null;
9979
+ sort_order?: number | null;
9980
+ };
9981
+ Relationships: [];
9982
+ };
9812
9983
  module_runtime_config: {
9813
9984
  Row: {
9814
9985
  key: string;
@@ -10868,6 +11039,42 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
10868
11039
  };
10869
11040
  Relationships: [];
10870
11041
  };
11042
+ order_invoice_links: {
11043
+ Row: {
11044
+ attempts: number;
11045
+ created_at: string;
11046
+ error_message: string | null;
11047
+ id: string;
11048
+ invoice_number: string | null;
11049
+ order_id: string;
11050
+ processed_at: string | null;
11051
+ status: string;
11052
+ updated_at: string;
11053
+ };
11054
+ Insert: {
11055
+ attempts?: number;
11056
+ created_at?: string;
11057
+ error_message?: string | null;
11058
+ id?: string;
11059
+ invoice_number?: string | null;
11060
+ order_id: string;
11061
+ processed_at?: string | null;
11062
+ status?: string;
11063
+ updated_at?: string;
11064
+ };
11065
+ Update: {
11066
+ attempts?: number;
11067
+ created_at?: string;
11068
+ error_message?: string | null;
11069
+ id?: string;
11070
+ invoice_number?: string | null;
11071
+ order_id?: string;
11072
+ processed_at?: string | null;
11073
+ status?: string;
11074
+ updated_at?: string;
11075
+ };
11076
+ Relationships: [];
11077
+ };
10871
11078
  order_items: {
10872
11079
  Row: {
10873
11080
  crates_per_layer: number | null;
@@ -11050,6 +11257,7 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
11050
11257
  delivery_date: string | null;
11051
11258
  floriday_sales_order_id: string | null;
11052
11259
  id: string;
11260
+ invoice_due_at: string | null;
11053
11261
  is_reservation: boolean;
11054
11262
  notes: string | null;
11055
11263
  order_date: string;
@@ -11071,6 +11279,7 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
11071
11279
  delivery_date?: string | null;
11072
11280
  floriday_sales_order_id?: string | null;
11073
11281
  id?: string;
11282
+ invoice_due_at?: string | null;
11074
11283
  is_reservation?: boolean;
11075
11284
  notes?: string | null;
11076
11285
  order_date?: string;
@@ -11092,6 +11301,7 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
11092
11301
  delivery_date?: string | null;
11093
11302
  floriday_sales_order_id?: string | null;
11094
11303
  id?: string;
11304
+ invoice_due_at?: string | null;
11095
11305
  is_reservation?: boolean;
11096
11306
  notes?: string | null;
11097
11307
  order_date?: string;
@@ -12288,22 +12498,27 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
12288
12498
  created_at: string;
12289
12499
  documentnaam: string;
12290
12500
  documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
12501
+ extern_job_id: string | null;
12291
12502
  foutmelding: string | null;
12292
12503
  gebruiker_id: string | null;
12293
12504
  gebruiker_naam: string;
12294
12505
  gestart_op: string | null;
12295
12506
  id: string;
12507
+ idempotentie_sleutel: string | null;
12296
12508
  is_herprint: boolean;
12297
12509
  kopieen: number;
12298
12510
  layout_id: string | null;
12299
12511
  opgepakt_op: string | null;
12300
12512
  paginas: number;
12301
12513
  payload: import("../integrations/supabase/types").Json;
12514
+ pdf_base64: string | null;
12515
+ pdf_url: string | null;
12302
12516
  pogingen: number;
12303
12517
  printer_id: string | null;
12304
12518
  render_html: string | null;
12305
12519
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
12306
12520
  updated_at: string;
12521
+ volgende_poging: string | null;
12307
12522
  voltooid_op: string | null;
12308
12523
  };
12309
12524
  Insert: {
@@ -12312,22 +12527,27 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
12312
12527
  created_at?: string;
12313
12528
  documentnaam?: string;
12314
12529
  documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
12530
+ extern_job_id?: string | null;
12315
12531
  foutmelding?: string | null;
12316
12532
  gebruiker_id?: string | null;
12317
12533
  gebruiker_naam?: string;
12318
12534
  gestart_op?: string | null;
12319
12535
  id?: string;
12536
+ idempotentie_sleutel?: string | null;
12320
12537
  is_herprint?: boolean;
12321
12538
  kopieen?: number;
12322
12539
  layout_id?: string | null;
12323
12540
  opgepakt_op?: string | null;
12324
12541
  paginas?: number;
12325
12542
  payload?: import("../integrations/supabase/types").Json;
12543
+ pdf_base64?: string | null;
12544
+ pdf_url?: string | null;
12326
12545
  pogingen?: number;
12327
12546
  printer_id?: string | null;
12328
12547
  render_html?: string | null;
12329
12548
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
12330
12549
  updated_at?: string;
12550
+ volgende_poging?: string | null;
12331
12551
  voltooid_op?: string | null;
12332
12552
  };
12333
12553
  Update: {
@@ -12336,22 +12556,27 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
12336
12556
  created_at?: string;
12337
12557
  documentnaam?: string;
12338
12558
  documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
12559
+ extern_job_id?: string | null;
12339
12560
  foutmelding?: string | null;
12340
12561
  gebruiker_id?: string | null;
12341
12562
  gebruiker_naam?: string;
12342
12563
  gestart_op?: string | null;
12343
12564
  id?: string;
12565
+ idempotentie_sleutel?: string | null;
12344
12566
  is_herprint?: boolean;
12345
12567
  kopieen?: number;
12346
12568
  layout_id?: string | null;
12347
12569
  opgepakt_op?: string | null;
12348
12570
  paginas?: number;
12349
12571
  payload?: import("../integrations/supabase/types").Json;
12572
+ pdf_base64?: string | null;
12573
+ pdf_url?: string | null;
12350
12574
  pogingen?: number;
12351
12575
  printer_id?: string | null;
12352
12576
  render_html?: string | null;
12353
12577
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
12354
12578
  updated_at?: string;
12579
+ volgende_poging?: string | null;
12355
12580
  voltooid_op?: string | null;
12356
12581
  };
12357
12582
  Relationships: [{
@@ -12374,6 +12599,63 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
12374
12599
  referencedColumns: ["id"];
12375
12600
  }];
12376
12601
  };
12602
+ print_queue_runners: {
12603
+ Row: {
12604
+ actief: boolean;
12605
+ basis_url: string;
12606
+ created_at: string;
12607
+ id: string;
12608
+ laatst_gezien: string;
12609
+ tick_sleutel: string;
12610
+ updated_at: string;
12611
+ };
12612
+ Insert: {
12613
+ actief?: boolean;
12614
+ basis_url: string;
12615
+ created_at?: string;
12616
+ id?: string;
12617
+ laatst_gezien?: string;
12618
+ tick_sleutel?: string;
12619
+ updated_at?: string;
12620
+ };
12621
+ Update: {
12622
+ actief?: boolean;
12623
+ basis_url?: string;
12624
+ created_at?: string;
12625
+ id?: string;
12626
+ laatst_gezien?: string;
12627
+ tick_sleutel?: string;
12628
+ updated_at?: string;
12629
+ };
12630
+ Relationships: [];
12631
+ };
12632
+ print_queue_settings: {
12633
+ Row: {
12634
+ bewaar_bestanden_dagen: number;
12635
+ bewaar_opdrachten_dagen: number;
12636
+ created_at: string;
12637
+ dubbel_venster_minuten: number;
12638
+ id: string;
12639
+ updated_at: string;
12640
+ };
12641
+ Insert: {
12642
+ bewaar_bestanden_dagen?: number;
12643
+ bewaar_opdrachten_dagen?: number;
12644
+ created_at?: string;
12645
+ dubbel_venster_minuten?: number;
12646
+ id?: string;
12647
+ updated_at?: string;
12648
+ };
12649
+ Update: {
12650
+ bewaar_bestanden_dagen?: number;
12651
+ bewaar_opdrachten_dagen?: number;
12652
+ created_at?: string;
12653
+ dubbel_venster_minuten?: number;
12654
+ id?: string;
12655
+ updated_at?: string;
12656
+ };
12657
+ Relationships: [];
12658
+ };
12377
12659
  print_rules: {
12378
12660
  Row: {
12379
12661
  actief: boolean;
@@ -12534,6 +12816,7 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
12534
12816
  agent_id: string | null;
12535
12817
  created_at: string;
12536
12818
  driver: string;
12819
+ extern_printer_id: string | null;
12537
12820
  id: string;
12538
12821
  ip_adres: string | null;
12539
12822
  laatst_gezien: string | null;
@@ -12555,6 +12838,7 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
12555
12838
  agent_id?: string | null;
12556
12839
  created_at?: string;
12557
12840
  driver?: string;
12841
+ extern_printer_id?: string | null;
12558
12842
  id?: string;
12559
12843
  ip_adres?: string | null;
12560
12844
  laatst_gezien?: string | null;
@@ -12576,6 +12860,7 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
12576
12860
  agent_id?: string | null;
12577
12861
  created_at?: string;
12578
12862
  driver?: string;
12863
+ extern_printer_id?: string | null;
12579
12864
  id?: string;
12580
12865
  ip_adres?: string | null;
12581
12866
  laatst_gezien?: string | null;
@@ -15211,6 +15496,8 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
15211
15496
  };
15212
15497
  twinfield_invoice_settings: {
15213
15498
  Row: {
15499
+ auto_invoice_enabled: boolean;
15500
+ auto_invoice_trigger_statuses: string[];
15214
15501
  created_at: string;
15215
15502
  debtor_gl_account: string;
15216
15503
  default_credit_invoice_type: string | null;
@@ -15231,6 +15518,8 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
15231
15518
  vat_code_export: string | null;
15232
15519
  };
15233
15520
  Insert: {
15521
+ auto_invoice_enabled?: boolean;
15522
+ auto_invoice_trigger_statuses?: string[];
15234
15523
  created_at?: string;
15235
15524
  debtor_gl_account?: string;
15236
15525
  default_credit_invoice_type?: string | null;
@@ -15251,6 +15540,8 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
15251
15540
  vat_code_export?: string | null;
15252
15541
  };
15253
15542
  Update: {
15543
+ auto_invoice_enabled?: boolean;
15544
+ auto_invoice_trigger_statuses?: string[];
15254
15545
  created_at?: string;
15255
15546
  debtor_gl_account?: string;
15256
15547
  default_credit_invoice_type?: string | null;
@@ -16313,6 +16604,33 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
16313
16604
  referencedColumns: ["id"];
16314
16605
  }];
16315
16606
  };
16607
+ user_module_permissions: {
16608
+ Row: {
16609
+ created_at: string;
16610
+ id: string;
16611
+ module_id: string;
16612
+ permission: string;
16613
+ updated_at: string;
16614
+ user_id: string;
16615
+ };
16616
+ Insert: {
16617
+ created_at?: string;
16618
+ id?: string;
16619
+ module_id: string;
16620
+ permission: string;
16621
+ updated_at?: string;
16622
+ user_id: string;
16623
+ };
16624
+ Update: {
16625
+ created_at?: string;
16626
+ id?: string;
16627
+ module_id?: string;
16628
+ permission?: string;
16629
+ updated_at?: string;
16630
+ user_id?: string;
16631
+ };
16632
+ Relationships: [];
16633
+ };
16316
16634
  user_roles: {
16317
16635
  Row: {
16318
16636
  created_at: string;
@@ -18146,6 +18464,10 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
18146
18464
  processed_items: number;
18147
18465
  }[];
18148
18466
  };
18467
+ backfill_order_auto_invoice_queue: {
18468
+ Args: never;
18469
+ Returns: number;
18470
+ };
18149
18471
  calculate_layer_stock: {
18150
18472
  Args: {
18151
18473
  p_product_id: string;
@@ -18180,6 +18502,77 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
18180
18502
  };
18181
18503
  Returns: import("../integrations/supabase/types").Json;
18182
18504
  };
18505
+ claim_cloud_print_jobs: {
18506
+ Args: {
18507
+ _max?: number;
18508
+ };
18509
+ Returns: {
18510
+ agent_id: string | null;
18511
+ bron_job_id: string | null;
18512
+ created_at: string;
18513
+ documentnaam: string;
18514
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
18515
+ extern_job_id: string | null;
18516
+ foutmelding: string | null;
18517
+ gebruiker_id: string | null;
18518
+ gebruiker_naam: string;
18519
+ gestart_op: string | null;
18520
+ id: string;
18521
+ idempotentie_sleutel: string | null;
18522
+ is_herprint: boolean;
18523
+ kopieen: number;
18524
+ layout_id: string | null;
18525
+ opgepakt_op: string | null;
18526
+ paginas: number;
18527
+ payload: import("../integrations/supabase/types").Json;
18528
+ pdf_base64: string | null;
18529
+ pdf_url: string | null;
18530
+ pogingen: number;
18531
+ printer_id: string | null;
18532
+ render_html: string | null;
18533
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
18534
+ updated_at: string;
18535
+ volgende_poging: string | null;
18536
+ voltooid_op: string | null;
18537
+ }[];
18538
+ SetofOptions: {
18539
+ from: "*";
18540
+ to: "print_jobs";
18541
+ isOneToOne: false;
18542
+ isSetofReturn: true;
18543
+ };
18544
+ };
18545
+ claim_floriday_stock_queue: {
18546
+ Args: {
18547
+ p_limit?: number;
18548
+ p_worker?: string;
18549
+ };
18550
+ Returns: {
18551
+ attempts: number;
18552
+ connection_id: string;
18553
+ created_at: string;
18554
+ desired_available: boolean | null;
18555
+ gateway_attempt_id: string | null;
18556
+ id: string;
18557
+ last_error: string | null;
18558
+ locked_at: string | null;
18559
+ locked_by: string | null;
18560
+ next_attempt_at: string;
18561
+ number_of_pieces: number;
18562
+ sent_at: string | null;
18563
+ status: string;
18564
+ superseded_by: string | null;
18565
+ trade_item_id: string;
18566
+ updated_at: string;
18567
+ user_id: string;
18568
+ }[];
18569
+ SetofOptions: {
18570
+ from: "*";
18571
+ to: "floriday_continuous_stock_queue";
18572
+ isOneToOne: false;
18573
+ isSetofReturn: true;
18574
+ };
18575
+ };
18183
18576
  claim_logistics_tasks: {
18184
18577
  Args: {
18185
18578
  _limit?: number;
@@ -18239,22 +18632,27 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
18239
18632
  created_at: string;
18240
18633
  documentnaam: string;
18241
18634
  documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
18635
+ extern_job_id: string | null;
18242
18636
  foutmelding: string | null;
18243
18637
  gebruiker_id: string | null;
18244
18638
  gebruiker_naam: string;
18245
18639
  gestart_op: string | null;
18246
18640
  id: string;
18641
+ idempotentie_sleutel: string | null;
18247
18642
  is_herprint: boolean;
18248
18643
  kopieen: number;
18249
18644
  layout_id: string | null;
18250
18645
  opgepakt_op: string | null;
18251
18646
  paginas: number;
18252
18647
  payload: import("../integrations/supabase/types").Json;
18648
+ pdf_base64: string | null;
18649
+ pdf_url: string | null;
18253
18650
  pogingen: number;
18254
18651
  printer_id: string | null;
18255
18652
  render_html: string | null;
18256
18653
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
18257
18654
  updated_at: string;
18655
+ volgende_poging: string | null;
18258
18656
  voltooid_op: string | null;
18259
18657
  }[];
18260
18658
  SetofOptions: {
@@ -18292,10 +18690,28 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
18292
18690
  isSetofReturn: true;
18293
18691
  };
18294
18692
  };
18693
+ cleanup_floriday_stock_queue: {
18694
+ Args: never;
18695
+ Returns: undefined;
18696
+ };
18295
18697
  cleanup_old_bookings: {
18296
18698
  Args: never;
18297
18699
  Returns: undefined;
18298
18700
  };
18701
+ cleanup_voorraad_module_history: {
18702
+ Args: never;
18703
+ Returns: undefined;
18704
+ };
18705
+ complete_floriday_stock_queue: {
18706
+ Args: {
18707
+ p_attempt_id?: string;
18708
+ p_error?: string;
18709
+ p_id: string;
18710
+ p_ok: boolean;
18711
+ p_permanent?: boolean;
18712
+ };
18713
+ Returns: undefined;
18714
+ };
18299
18715
  consume_bom_for_production: {
18300
18716
  Args: {
18301
18717
  p_connection_id: string;
@@ -18407,6 +18823,13 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
18407
18823
  };
18408
18824
  Returns: import("../integrations/supabase/types").Json;
18409
18825
  };
18826
+ effective_module_permission: {
18827
+ Args: {
18828
+ _module_id: string;
18829
+ _user_id: string;
18830
+ };
18831
+ Returns: string;
18832
+ };
18410
18833
  email_auth_decrypt: {
18411
18834
  Args: {
18412
18835
  cipher: string;
@@ -19210,6 +19633,51 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
19210
19633
  isSetofReturn: false;
19211
19634
  };
19212
19635
  };
19636
+ logistics_floriday_claim_pushes: {
19637
+ Args: {
19638
+ _lease_seconds?: number;
19639
+ _limit?: number;
19640
+ _worker?: string;
19641
+ };
19642
+ Returns: {
19643
+ attempts: number;
19644
+ fulfillment_order_id: string;
19645
+ id: string;
19646
+ last_sent_hash: string;
19647
+ order_ref: string;
19648
+ payload: import("../integrations/supabase/types").Json;
19649
+ payload_hash: string;
19650
+ revision: number;
19651
+ }[];
19652
+ };
19653
+ logistics_floriday_finish_push: {
19654
+ Args: {
19655
+ _error?: string;
19656
+ _fulfillment_order_id?: string;
19657
+ _id: string;
19658
+ _max_age_hours?: number;
19659
+ _max_attempts?: number;
19660
+ _ok: boolean;
19661
+ _permanent?: boolean;
19662
+ _revision: number;
19663
+ _sent_hash?: string;
19664
+ };
19665
+ Returns: string;
19666
+ };
19667
+ logistics_floriday_prune_pushes: {
19668
+ Args: {
19669
+ _days?: number;
19670
+ };
19671
+ Returns: number;
19672
+ };
19673
+ logistics_floriday_queue_push: {
19674
+ Args: {
19675
+ _order_ref: string;
19676
+ _payload?: import("../integrations/supabase/types").Json;
19677
+ _payload_hash?: string;
19678
+ };
19679
+ Returns: string;
19680
+ };
19213
19681
  logistics_live_carriers: {
19214
19682
  Args: {
19215
19683
  p_order_ref: string;
@@ -19500,6 +19968,13 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
19500
19968
  };
19501
19969
  Returns: undefined;
19502
19970
  };
19971
+ my_module_permissions: {
19972
+ Args: never;
19973
+ Returns: {
19974
+ module_id: string;
19975
+ permission: string;
19976
+ }[];
19977
+ };
19503
19978
  next_manufacture_partij: {
19504
19979
  Args: {
19505
19980
  _tenant_id: string;
@@ -19550,6 +20025,13 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
19550
20025
  };
19551
20026
  Returns: boolean;
19552
20027
  };
20028
+ opruim_print_historie: {
20029
+ Args: never;
20030
+ Returns: {
20031
+ ontdaan: number;
20032
+ verwijderd: number;
20033
+ }[];
20034
+ };
19553
20035
  order_number_prefix: {
19554
20036
  Args: {
19555
20037
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -19557,6 +20039,15 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
19557
20039
  };
19558
20040
  Returns: string;
19559
20041
  };
20042
+ pick_active_printers: {
20043
+ Args: never;
20044
+ Returns: {
20045
+ id: string;
20046
+ locatie: string;
20047
+ naam: string;
20048
+ online: boolean;
20049
+ }[];
20050
+ };
19560
20051
  pick_claim_document: {
19561
20052
  Args: {
19562
20053
  _queue_item_id: string;
@@ -19743,6 +20234,52 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
19743
20234
  };
19744
20235
  Returns: undefined;
19745
20236
  };
20237
+ pick_reset_print: {
20238
+ Args: {
20239
+ _queue_item_id: string;
20240
+ _session_id: string;
20241
+ };
20242
+ Returns: {
20243
+ announced_at: string;
20244
+ assigned_user_id: string | null;
20245
+ barcode: string | null;
20246
+ cancelled_at: string | null;
20247
+ cart_count: number;
20248
+ completed_at: string | null;
20249
+ country_code: string | null;
20250
+ created_at: string;
20251
+ customer_name: string | null;
20252
+ delivery_address: string | null;
20253
+ document_number: string | null;
20254
+ document_type_id: string | null;
20255
+ due_at: string | null;
20256
+ id: string;
20257
+ is_urgent: boolean;
20258
+ line_count: number;
20259
+ order_number: string | null;
20260
+ order_type: string | null;
20261
+ payload: import("../integrations/supabase/types").Json;
20262
+ print_count: number;
20263
+ print_job_id: string | null;
20264
+ printed_at: string | null;
20265
+ printed_by: string | null;
20266
+ printer_id: string | null;
20267
+ priority: number;
20268
+ reference: string | null;
20269
+ route: string | null;
20270
+ screen_id: string | null;
20271
+ station_id: string | null;
20272
+ status_id: string | null;
20273
+ updated_at: string;
20274
+ warnings: import("../integrations/supabase/types").Json;
20275
+ };
20276
+ SetofOptions: {
20277
+ from: "*";
20278
+ to: "pick_queue";
20279
+ isOneToOne: true;
20280
+ isSetofReturn: false;
20281
+ };
20282
+ };
19746
20283
  pick_station_dashboard: {
19747
20284
  Args: never;
19748
20285
  Returns: {
@@ -19889,6 +20426,12 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
19889
20426
  };
19890
20427
  Returns: undefined;
19891
20428
  };
20429
+ reset_stalled_floriday_stock_queue: {
20430
+ Args: {
20431
+ p_include_failed?: boolean;
20432
+ };
20433
+ Returns: number;
20434
+ };
19892
20435
  resolve_group_allocation: {
19893
20436
  Args: {
19894
20437
  _needed: number;
@@ -19933,14 +20476,28 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
19933
20476
  };
19934
20477
  Returns: import("../integrations/supabase/types").Json;
19935
20478
  };
20479
+ ruim_print_jobs_op: {
20480
+ Args: {
20481
+ _bewaar_dagen?: number;
20482
+ };
20483
+ Returns: number;
20484
+ };
19936
20485
  run_floriday_continuous_stock_sync: {
19937
20486
  Args: never;
19938
20487
  Returns: undefined;
19939
20488
  };
20489
+ run_floriday_stock_queue_process: {
20490
+ Args: never;
20491
+ Returns: undefined;
20492
+ };
19940
20493
  run_logistics_tasks_dispatch: {
19941
20494
  Args: never;
19942
20495
  Returns: undefined;
19943
20496
  };
20497
+ run_print_queue_ticks: {
20498
+ Args: never;
20499
+ Returns: number;
20500
+ };
19944
20501
  run_twinfield_queue_tick: {
19945
20502
  Args: never;
19946
20503
  Returns: undefined;
@@ -20181,6 +20738,13 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
20181
20738
  };
20182
20739
  Returns: number;
20183
20740
  };
20741
+ schedule_floriday_stock_queue_process: {
20742
+ Args: {
20743
+ p_apikey: string;
20744
+ p_url: string;
20745
+ };
20746
+ Returns: number;
20747
+ };
20184
20748
  schedule_floriday_token_refresh: {
20185
20749
  Args: {
20186
20750
  p_apikey: string;
@@ -20321,6 +20885,15 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
20321
20885
  };
20322
20886
  Returns: undefined;
20323
20887
  };
20888
+ trade_item_stock_duplicates: {
20889
+ Args: never;
20890
+ Returns: {
20891
+ keys: string[];
20892
+ product_id: string;
20893
+ product_name: string;
20894
+ row_count: number;
20895
+ }[];
20896
+ };
20324
20897
  try_debtor_lock: {
20325
20898
  Args: {
20326
20899
  _group_key: string;
@@ -20370,7 +20943,7 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
20370
20943
  };
20371
20944
  Enums: {
20372
20945
  ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
20373
- app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin";
20946
+ app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
20374
20947
  doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
20375
20948
  doc_orientation: "portrait" | "landscape";
20376
20949
  exact_env: "staging" | "live";