@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
@@ -1719,7 +1719,7 @@ export type Database = {
1719
1719
  city: string | null;
1720
1720
  country: string | null;
1721
1721
  created_at: string;
1722
- customer_id: string | null;
1722
+ customer_id: string;
1723
1723
  external_key: string | null;
1724
1724
  external_provider: string | null;
1725
1725
  floriday_location_id: string | null;
@@ -1743,7 +1743,7 @@ export type Database = {
1743
1743
  city?: string | null;
1744
1744
  country?: string | null;
1745
1745
  created_at?: string;
1746
- customer_id?: string | null;
1746
+ customer_id: string;
1747
1747
  external_key?: string | null;
1748
1748
  external_provider?: string | null;
1749
1749
  floriday_location_id?: string | null;
@@ -1767,7 +1767,7 @@ export type Database = {
1767
1767
  city?: string | null;
1768
1768
  country?: string | null;
1769
1769
  created_at?: string;
1770
- customer_id?: string | null;
1770
+ customer_id?: string;
1771
1771
  external_key?: string | null;
1772
1772
  external_provider?: string | null;
1773
1773
  floriday_location_id?: string | null;
@@ -5833,12 +5833,17 @@ export type Database = {
5833
5833
  attempts: number;
5834
5834
  connection_id: string;
5835
5835
  created_at: string;
5836
+ desired_available: boolean | null;
5836
5837
  gateway_attempt_id: string | null;
5837
5838
  id: string;
5838
5839
  last_error: string | null;
5840
+ locked_at: string | null;
5841
+ locked_by: string | null;
5842
+ next_attempt_at: string;
5839
5843
  number_of_pieces: number;
5840
5844
  sent_at: string | null;
5841
5845
  status: string;
5846
+ superseded_by: string | null;
5842
5847
  trade_item_id: string;
5843
5848
  updated_at: string;
5844
5849
  user_id: string;
@@ -5847,12 +5852,17 @@ export type Database = {
5847
5852
  attempts?: number;
5848
5853
  connection_id: string;
5849
5854
  created_at?: string;
5855
+ desired_available?: boolean | null;
5850
5856
  gateway_attempt_id?: string | null;
5851
5857
  id?: string;
5852
5858
  last_error?: string | null;
5859
+ locked_at?: string | null;
5860
+ locked_by?: string | null;
5861
+ next_attempt_at?: string;
5853
5862
  number_of_pieces?: number;
5854
5863
  sent_at?: string | null;
5855
5864
  status?: string;
5865
+ superseded_by?: string | null;
5856
5866
  trade_item_id: string;
5857
5867
  updated_at?: string;
5858
5868
  user_id: string;
@@ -5861,12 +5871,17 @@ export type Database = {
5861
5871
  attempts?: number;
5862
5872
  connection_id?: string;
5863
5873
  created_at?: string;
5874
+ desired_available?: boolean | null;
5864
5875
  gateway_attempt_id?: string | null;
5865
5876
  id?: string;
5866
5877
  last_error?: string | null;
5878
+ locked_at?: string | null;
5879
+ locked_by?: string | null;
5880
+ next_attempt_at?: string;
5867
5881
  number_of_pieces?: number;
5868
5882
  sent_at?: string | null;
5869
5883
  status?: string;
5884
+ superseded_by?: string | null;
5870
5885
  trade_item_id?: string;
5871
5886
  updated_at?: string;
5872
5887
  user_id?: string;
@@ -6631,6 +6646,7 @@ export type Database = {
6631
6646
  Row: {
6632
6647
  buyer_organization_id: string | null;
6633
6648
  connection_id: string;
6649
+ controlled_at: string | null;
6634
6650
  created_at: string;
6635
6651
  data: Json;
6636
6652
  floriday_id: string;
@@ -6642,6 +6658,7 @@ export type Database = {
6642
6658
  Insert: {
6643
6659
  buyer_organization_id?: string | null;
6644
6660
  connection_id: string;
6661
+ controlled_at?: string | null;
6645
6662
  created_at?: string;
6646
6663
  data: Json;
6647
6664
  floriday_id: string;
@@ -6653,6 +6670,7 @@ export type Database = {
6653
6670
  Update: {
6654
6671
  buyer_organization_id?: string | null;
6655
6672
  connection_id?: string;
6673
+ controlled_at?: string | null;
6656
6674
  created_at?: string;
6657
6675
  data?: Json;
6658
6676
  floriday_id?: string;
@@ -7586,6 +7604,54 @@ export type Database = {
7586
7604
  };
7587
7605
  Relationships: [];
7588
7606
  };
7607
+ invoice_timing_settings: {
7608
+ Row: {
7609
+ anchor: string;
7610
+ business_days_only: boolean;
7611
+ created_at: string;
7612
+ enabled: boolean;
7613
+ id: string;
7614
+ offset_days: number;
7615
+ pickup_anchor: string;
7616
+ pickup_business_days_only: boolean;
7617
+ pickup_offset_days: number;
7618
+ pickup_time_of_day: string;
7619
+ singleton: boolean;
7620
+ time_of_day: string;
7621
+ updated_at: string;
7622
+ };
7623
+ Insert: {
7624
+ anchor?: string;
7625
+ business_days_only?: boolean;
7626
+ created_at?: string;
7627
+ enabled?: boolean;
7628
+ id?: string;
7629
+ offset_days?: number;
7630
+ pickup_anchor?: string;
7631
+ pickup_business_days_only?: boolean;
7632
+ pickup_offset_days?: number;
7633
+ pickup_time_of_day?: string;
7634
+ singleton?: boolean;
7635
+ time_of_day?: string;
7636
+ updated_at?: string;
7637
+ };
7638
+ Update: {
7639
+ anchor?: string;
7640
+ business_days_only?: boolean;
7641
+ created_at?: string;
7642
+ enabled?: boolean;
7643
+ id?: string;
7644
+ offset_days?: number;
7645
+ pickup_anchor?: string;
7646
+ pickup_business_days_only?: boolean;
7647
+ pickup_offset_days?: number;
7648
+ pickup_time_of_day?: string;
7649
+ singleton?: boolean;
7650
+ time_of_day?: string;
7651
+ updated_at?: string;
7652
+ };
7653
+ Relationships: [];
7654
+ };
7589
7655
  itk_contact_persons: {
7590
7656
  Row: {
7591
7657
  created_at: string;
@@ -8709,6 +8775,69 @@ export type Database = {
8709
8775
  };
8710
8776
  Relationships: [];
8711
8777
  };
8778
+ logistics_floriday_pushes: {
8779
+ Row: {
8780
+ attempts: number;
8781
+ created_at: string;
8782
+ first_queued_at: string;
8783
+ fulfillment_order_id: string | null;
8784
+ id: string;
8785
+ last_error: string | null;
8786
+ last_error_at: string | null;
8787
+ last_sent_hash: string | null;
8788
+ locked_by: string | null;
8789
+ locked_until: string | null;
8790
+ next_attempt_at: string;
8791
+ order_ref: string;
8792
+ payload: Json;
8793
+ payload_hash: string | null;
8794
+ revision: number;
8795
+ sent_at: string | null;
8796
+ status: string;
8797
+ updated_at: string;
8798
+ };
8799
+ Insert: {
8800
+ attempts?: number;
8801
+ created_at?: string;
8802
+ first_queued_at?: string;
8803
+ fulfillment_order_id?: string | null;
8804
+ id?: string;
8805
+ last_error?: string | null;
8806
+ last_error_at?: string | null;
8807
+ last_sent_hash?: string | null;
8808
+ locked_by?: string | null;
8809
+ locked_until?: string | null;
8810
+ next_attempt_at?: string;
8811
+ order_ref: string;
8812
+ payload?: Json;
8813
+ payload_hash?: string | null;
8814
+ revision?: number;
8815
+ sent_at?: string | null;
8816
+ status?: string;
8817
+ updated_at?: string;
8818
+ };
8819
+ Update: {
8820
+ attempts?: number;
8821
+ created_at?: string;
8822
+ first_queued_at?: string;
8823
+ fulfillment_order_id?: string | null;
8824
+ id?: string;
8825
+ last_error?: string | null;
8826
+ last_error_at?: string | null;
8827
+ last_sent_hash?: string | null;
8828
+ locked_by?: string | null;
8829
+ locked_until?: string | null;
8830
+ next_attempt_at?: string;
8831
+ order_ref?: string;
8832
+ payload?: Json;
8833
+ payload_hash?: string | null;
8834
+ revision?: number;
8835
+ sent_at?: string | null;
8836
+ status?: string;
8837
+ updated_at?: string;
8838
+ };
8839
+ Relationships: [];
8840
+ };
8712
8841
  logistics_formulas: {
8713
8842
  Row: {
8714
8843
  created_at: string;
@@ -9587,14 +9716,17 @@ export type Database = {
9587
9716
  };
9588
9717
  mailbox_messages: {
9589
9718
  Row: {
9719
+ attachments: Json;
9590
9720
  body_html: string | null;
9591
9721
  body_text: string | null;
9722
+ cc_recipients: Json;
9592
9723
  connection_id: string | null;
9593
9724
  created_at: string;
9594
9725
  error_message: string | null;
9595
9726
  external_id: string | null;
9596
9727
  from_email: string | null;
9597
9728
  from_name: string | null;
9729
+ has_attachments: boolean;
9598
9730
  id: string;
9599
9731
  message_id: string | null;
9600
9732
  profile_id: string | null;
@@ -9602,18 +9734,22 @@ export type Database = {
9602
9734
  received_at: string | null;
9603
9735
  status: string;
9604
9736
  subject: string | null;
9737
+ to_recipients: Json;
9605
9738
  uid: number | null;
9606
9739
  updated_at: string;
9607
9740
  };
9608
9741
  Insert: {
9742
+ attachments?: Json;
9609
9743
  body_html?: string | null;
9610
9744
  body_text?: string | null;
9745
+ cc_recipients?: Json;
9611
9746
  connection_id?: string | null;
9612
9747
  created_at?: string;
9613
9748
  error_message?: string | null;
9614
9749
  external_id?: string | null;
9615
9750
  from_email?: string | null;
9616
9751
  from_name?: string | null;
9752
+ has_attachments?: boolean;
9617
9753
  id?: string;
9618
9754
  message_id?: string | null;
9619
9755
  profile_id?: string | null;
@@ -9621,18 +9757,22 @@ export type Database = {
9621
9757
  received_at?: string | null;
9622
9758
  status?: string;
9623
9759
  subject?: string | null;
9760
+ to_recipients?: Json;
9624
9761
  uid?: number | null;
9625
9762
  updated_at?: string;
9626
9763
  };
9627
9764
  Update: {
9765
+ attachments?: Json;
9628
9766
  body_html?: string | null;
9629
9767
  body_text?: string | null;
9768
+ cc_recipients?: Json;
9630
9769
  connection_id?: string | null;
9631
9770
  created_at?: string;
9632
9771
  error_message?: string | null;
9633
9772
  external_id?: string | null;
9634
9773
  from_email?: string | null;
9635
9774
  from_name?: string | null;
9775
+ has_attachments?: boolean;
9636
9776
  id?: string;
9637
9777
  message_id?: string | null;
9638
9778
  profile_id?: string | null;
@@ -9640,6 +9780,7 @@ export type Database = {
9640
9780
  received_at?: string | null;
9641
9781
  status?: string;
9642
9782
  subject?: string | null;
9783
+ to_recipients?: Json;
9643
9784
  uid?: number | null;
9644
9785
  updated_at?: string;
9645
9786
  };
@@ -10064,6 +10205,36 @@ export type Database = {
10064
10205
  };
10065
10206
  Relationships: [];
10066
10207
  };
10208
+ module_registry: {
10209
+ Row: {
10210
+ created_at: string;
10211
+ is_active: boolean;
10212
+ last_seen_at: string;
10213
+ module_id: string;
10214
+ name: string;
10215
+ shell_id: string | null;
10216
+ sort_order: number | null;
10217
+ };
10218
+ Insert: {
10219
+ created_at?: string;
10220
+ is_active?: boolean;
10221
+ last_seen_at?: string;
10222
+ module_id: string;
10223
+ name: string;
10224
+ shell_id?: string | null;
10225
+ sort_order?: number | null;
10226
+ };
10227
+ Update: {
10228
+ created_at?: string;
10229
+ is_active?: boolean;
10230
+ last_seen_at?: string;
10231
+ module_id?: string;
10232
+ name?: string;
10233
+ shell_id?: string | null;
10234
+ sort_order?: number | null;
10235
+ };
10236
+ Relationships: [];
10237
+ };
10067
10238
  module_runtime_config: {
10068
10239
  Row: {
10069
10240
  key: string;
@@ -11160,6 +11331,42 @@ export type Database = {
11160
11331
  };
11161
11332
  Relationships: [];
11162
11333
  };
11334
+ order_invoice_links: {
11335
+ Row: {
11336
+ attempts: number;
11337
+ created_at: string;
11338
+ error_message: string | null;
11339
+ id: string;
11340
+ invoice_number: string | null;
11341
+ order_id: string;
11342
+ processed_at: string | null;
11343
+ status: string;
11344
+ updated_at: string;
11345
+ };
11346
+ Insert: {
11347
+ attempts?: number;
11348
+ created_at?: string;
11349
+ error_message?: string | null;
11350
+ id?: string;
11351
+ invoice_number?: string | null;
11352
+ order_id: string;
11353
+ processed_at?: string | null;
11354
+ status?: string;
11355
+ updated_at?: string;
11356
+ };
11357
+ Update: {
11358
+ attempts?: number;
11359
+ created_at?: string;
11360
+ error_message?: string | null;
11361
+ id?: string;
11362
+ invoice_number?: string | null;
11363
+ order_id?: string;
11364
+ processed_at?: string | null;
11365
+ status?: string;
11366
+ updated_at?: string;
11367
+ };
11368
+ Relationships: [];
11369
+ };
11163
11370
  order_items: {
11164
11371
  Row: {
11165
11372
  crates_per_layer: number | null;
@@ -11351,6 +11558,7 @@ export type Database = {
11351
11558
  delivery_date: string | null;
11352
11559
  floriday_sales_order_id: string | null;
11353
11560
  id: string;
11561
+ invoice_due_at: string | null;
11354
11562
  is_reservation: boolean;
11355
11563
  notes: string | null;
11356
11564
  order_date: string;
@@ -11372,6 +11580,7 @@ export type Database = {
11372
11580
  delivery_date?: string | null;
11373
11581
  floriday_sales_order_id?: string | null;
11374
11582
  id?: string;
11583
+ invoice_due_at?: string | null;
11375
11584
  is_reservation?: boolean;
11376
11585
  notes?: string | null;
11377
11586
  order_date?: string;
@@ -11393,6 +11602,7 @@ export type Database = {
11393
11602
  delivery_date?: string | null;
11394
11603
  floriday_sales_order_id?: string | null;
11395
11604
  id?: string;
11605
+ invoice_due_at?: string | null;
11396
11606
  is_reservation?: boolean;
11397
11607
  notes?: string | null;
11398
11608
  order_date?: string;
@@ -12633,22 +12843,27 @@ export type Database = {
12633
12843
  created_at: string;
12634
12844
  documentnaam: string;
12635
12845
  documenttype: Database["public"]["Enums"]["doc_layout_type"];
12846
+ extern_job_id: string | null;
12636
12847
  foutmelding: string | null;
12637
12848
  gebruiker_id: string | null;
12638
12849
  gebruiker_naam: string;
12639
12850
  gestart_op: string | null;
12640
12851
  id: string;
12852
+ idempotentie_sleutel: string | null;
12641
12853
  is_herprint: boolean;
12642
12854
  kopieen: number;
12643
12855
  layout_id: string | null;
12644
12856
  opgepakt_op: string | null;
12645
12857
  paginas: number;
12646
12858
  payload: Json;
12859
+ pdf_base64: string | null;
12860
+ pdf_url: string | null;
12647
12861
  pogingen: number;
12648
12862
  printer_id: string | null;
12649
12863
  render_html: string | null;
12650
12864
  status: Database["public"]["Enums"]["print_job_status"];
12651
12865
  updated_at: string;
12866
+ volgende_poging: string | null;
12652
12867
  voltooid_op: string | null;
12653
12868
  };
12654
12869
  Insert: {
@@ -12657,22 +12872,27 @@ export type Database = {
12657
12872
  created_at?: string;
12658
12873
  documentnaam?: string;
12659
12874
  documenttype?: Database["public"]["Enums"]["doc_layout_type"];
12875
+ extern_job_id?: string | null;
12660
12876
  foutmelding?: string | null;
12661
12877
  gebruiker_id?: string | null;
12662
12878
  gebruiker_naam?: string;
12663
12879
  gestart_op?: string | null;
12664
12880
  id?: string;
12881
+ idempotentie_sleutel?: string | null;
12665
12882
  is_herprint?: boolean;
12666
12883
  kopieen?: number;
12667
12884
  layout_id?: string | null;
12668
12885
  opgepakt_op?: string | null;
12669
12886
  paginas?: number;
12670
12887
  payload?: Json;
12888
+ pdf_base64?: string | null;
12889
+ pdf_url?: string | null;
12671
12890
  pogingen?: number;
12672
12891
  printer_id?: string | null;
12673
12892
  render_html?: string | null;
12674
12893
  status?: Database["public"]["Enums"]["print_job_status"];
12675
12894
  updated_at?: string;
12895
+ volgende_poging?: string | null;
12676
12896
  voltooid_op?: string | null;
12677
12897
  };
12678
12898
  Update: {
@@ -12681,22 +12901,27 @@ export type Database = {
12681
12901
  created_at?: string;
12682
12902
  documentnaam?: string;
12683
12903
  documenttype?: Database["public"]["Enums"]["doc_layout_type"];
12904
+ extern_job_id?: string | null;
12684
12905
  foutmelding?: string | null;
12685
12906
  gebruiker_id?: string | null;
12686
12907
  gebruiker_naam?: string;
12687
12908
  gestart_op?: string | null;
12688
12909
  id?: string;
12910
+ idempotentie_sleutel?: string | null;
12689
12911
  is_herprint?: boolean;
12690
12912
  kopieen?: number;
12691
12913
  layout_id?: string | null;
12692
12914
  opgepakt_op?: string | null;
12693
12915
  paginas?: number;
12694
12916
  payload?: Json;
12917
+ pdf_base64?: string | null;
12918
+ pdf_url?: string | null;
12695
12919
  pogingen?: number;
12696
12920
  printer_id?: string | null;
12697
12921
  render_html?: string | null;
12698
12922
  status?: Database["public"]["Enums"]["print_job_status"];
12699
12923
  updated_at?: string;
12924
+ volgende_poging?: string | null;
12700
12925
  voltooid_op?: string | null;
12701
12926
  };
12702
12927
  Relationships: [
@@ -12723,6 +12948,63 @@ export type Database = {
12723
12948
  }
12724
12949
  ];
12725
12950
  };
12951
+ print_queue_runners: {
12952
+ Row: {
12953
+ actief: boolean;
12954
+ basis_url: string;
12955
+ created_at: string;
12956
+ id: string;
12957
+ laatst_gezien: string;
12958
+ tick_sleutel: string;
12959
+ updated_at: string;
12960
+ };
12961
+ Insert: {
12962
+ actief?: boolean;
12963
+ basis_url: string;
12964
+ created_at?: string;
12965
+ id?: string;
12966
+ laatst_gezien?: string;
12967
+ tick_sleutel?: string;
12968
+ updated_at?: string;
12969
+ };
12970
+ Update: {
12971
+ actief?: boolean;
12972
+ basis_url?: string;
12973
+ created_at?: string;
12974
+ id?: string;
12975
+ laatst_gezien?: string;
12976
+ tick_sleutel?: string;
12977
+ updated_at?: string;
12978
+ };
12979
+ Relationships: [];
12980
+ };
12981
+ print_queue_settings: {
12982
+ Row: {
12983
+ bewaar_bestanden_dagen: number;
12984
+ bewaar_opdrachten_dagen: number;
12985
+ created_at: string;
12986
+ dubbel_venster_minuten: number;
12987
+ id: string;
12988
+ updated_at: string;
12989
+ };
12990
+ Insert: {
12991
+ bewaar_bestanden_dagen?: number;
12992
+ bewaar_opdrachten_dagen?: number;
12993
+ created_at?: string;
12994
+ dubbel_venster_minuten?: number;
12995
+ id?: string;
12996
+ updated_at?: string;
12997
+ };
12998
+ Update: {
12999
+ bewaar_bestanden_dagen?: number;
13000
+ bewaar_opdrachten_dagen?: number;
13001
+ created_at?: string;
13002
+ dubbel_venster_minuten?: number;
13003
+ id?: string;
13004
+ updated_at?: string;
13005
+ };
13006
+ Relationships: [];
13007
+ };
12726
13008
  print_rules: {
12727
13009
  Row: {
12728
13010
  actief: boolean;
@@ -12891,6 +13173,7 @@ export type Database = {
12891
13173
  agent_id: string | null;
12892
13174
  created_at: string;
12893
13175
  driver: string;
13176
+ extern_printer_id: string | null;
12894
13177
  id: string;
12895
13178
  ip_adres: string | null;
12896
13179
  laatst_gezien: string | null;
@@ -12912,6 +13195,7 @@ export type Database = {
12912
13195
  agent_id?: string | null;
12913
13196
  created_at?: string;
12914
13197
  driver?: string;
13198
+ extern_printer_id?: string | null;
12915
13199
  id?: string;
12916
13200
  ip_adres?: string | null;
12917
13201
  laatst_gezien?: string | null;
@@ -12933,6 +13217,7 @@ export type Database = {
12933
13217
  agent_id?: string | null;
12934
13218
  created_at?: string;
12935
13219
  driver?: string;
13220
+ extern_printer_id?: string | null;
12936
13221
  id?: string;
12937
13222
  ip_adres?: string | null;
12938
13223
  laatst_gezien?: string | null;
@@ -15643,6 +15928,8 @@ export type Database = {
15643
15928
  };
15644
15929
  twinfield_invoice_settings: {
15645
15930
  Row: {
15931
+ auto_invoice_enabled: boolean;
15932
+ auto_invoice_trigger_statuses: string[];
15646
15933
  created_at: string;
15647
15934
  debtor_gl_account: string;
15648
15935
  default_credit_invoice_type: string | null;
@@ -15663,6 +15950,8 @@ export type Database = {
15663
15950
  vat_code_export: string | null;
15664
15951
  };
15665
15952
  Insert: {
15953
+ auto_invoice_enabled?: boolean;
15954
+ auto_invoice_trigger_statuses?: string[];
15666
15955
  created_at?: string;
15667
15956
  debtor_gl_account?: string;
15668
15957
  default_credit_invoice_type?: string | null;
@@ -15683,6 +15972,8 @@ export type Database = {
15683
15972
  vat_code_export?: string | null;
15684
15973
  };
15685
15974
  Update: {
15975
+ auto_invoice_enabled?: boolean;
15976
+ auto_invoice_trigger_statuses?: string[];
15686
15977
  created_at?: string;
15687
15978
  debtor_gl_account?: string;
15688
15979
  default_credit_invoice_type?: string | null;
@@ -16771,6 +17062,33 @@ export type Database = {
16771
17062
  }
16772
17063
  ];
16773
17064
  };
17065
+ user_module_permissions: {
17066
+ Row: {
17067
+ created_at: string;
17068
+ id: string;
17069
+ module_id: string;
17070
+ permission: string;
17071
+ updated_at: string;
17072
+ user_id: string;
17073
+ };
17074
+ Insert: {
17075
+ created_at?: string;
17076
+ id?: string;
17077
+ module_id: string;
17078
+ permission: string;
17079
+ updated_at?: string;
17080
+ user_id: string;
17081
+ };
17082
+ Update: {
17083
+ created_at?: string;
17084
+ id?: string;
17085
+ module_id?: string;
17086
+ permission?: string;
17087
+ updated_at?: string;
17088
+ user_id?: string;
17089
+ };
17090
+ Relationships: [];
17091
+ };
16774
17092
  user_roles: {
16775
17093
  Row: {
16776
17094
  created_at: string;
@@ -18646,6 +18964,10 @@ export type Database = {
18646
18964
  processed_items: number;
18647
18965
  }[];
18648
18966
  };
18967
+ backfill_order_auto_invoice_queue: {
18968
+ Args: never;
18969
+ Returns: number;
18970
+ };
18649
18971
  calculate_layer_stock: {
18650
18972
  Args: {
18651
18973
  p_product_id: string;
@@ -18680,6 +19002,77 @@ export type Database = {
18680
19002
  };
18681
19003
  Returns: Json;
18682
19004
  };
19005
+ claim_cloud_print_jobs: {
19006
+ Args: {
19007
+ _max?: number;
19008
+ };
19009
+ Returns: {
19010
+ agent_id: string | null;
19011
+ bron_job_id: string | null;
19012
+ created_at: string;
19013
+ documentnaam: string;
19014
+ documenttype: Database["public"]["Enums"]["doc_layout_type"];
19015
+ extern_job_id: string | null;
19016
+ foutmelding: string | null;
19017
+ gebruiker_id: string | null;
19018
+ gebruiker_naam: string;
19019
+ gestart_op: string | null;
19020
+ id: string;
19021
+ idempotentie_sleutel: string | null;
19022
+ is_herprint: boolean;
19023
+ kopieen: number;
19024
+ layout_id: string | null;
19025
+ opgepakt_op: string | null;
19026
+ paginas: number;
19027
+ payload: Json;
19028
+ pdf_base64: string | null;
19029
+ pdf_url: string | null;
19030
+ pogingen: number;
19031
+ printer_id: string | null;
19032
+ render_html: string | null;
19033
+ status: Database["public"]["Enums"]["print_job_status"];
19034
+ updated_at: string;
19035
+ volgende_poging: string | null;
19036
+ voltooid_op: string | null;
19037
+ }[];
19038
+ SetofOptions: {
19039
+ from: "*";
19040
+ to: "print_jobs";
19041
+ isOneToOne: false;
19042
+ isSetofReturn: true;
19043
+ };
19044
+ };
19045
+ claim_floriday_stock_queue: {
19046
+ Args: {
19047
+ p_limit?: number;
19048
+ p_worker?: string;
19049
+ };
19050
+ Returns: {
19051
+ attempts: number;
19052
+ connection_id: string;
19053
+ created_at: string;
19054
+ desired_available: boolean | null;
19055
+ gateway_attempt_id: string | null;
19056
+ id: string;
19057
+ last_error: string | null;
19058
+ locked_at: string | null;
19059
+ locked_by: string | null;
19060
+ next_attempt_at: string;
19061
+ number_of_pieces: number;
19062
+ sent_at: string | null;
19063
+ status: string;
19064
+ superseded_by: string | null;
19065
+ trade_item_id: string;
19066
+ updated_at: string;
19067
+ user_id: string;
19068
+ }[];
19069
+ SetofOptions: {
19070
+ from: "*";
19071
+ to: "floriday_continuous_stock_queue";
19072
+ isOneToOne: false;
19073
+ isSetofReturn: true;
19074
+ };
19075
+ };
18683
19076
  claim_logistics_tasks: {
18684
19077
  Args: {
18685
19078
  _limit?: number;
@@ -18739,22 +19132,27 @@ export type Database = {
18739
19132
  created_at: string;
18740
19133
  documentnaam: string;
18741
19134
  documenttype: Database["public"]["Enums"]["doc_layout_type"];
19135
+ extern_job_id: string | null;
18742
19136
  foutmelding: string | null;
18743
19137
  gebruiker_id: string | null;
18744
19138
  gebruiker_naam: string;
18745
19139
  gestart_op: string | null;
18746
19140
  id: string;
19141
+ idempotentie_sleutel: string | null;
18747
19142
  is_herprint: boolean;
18748
19143
  kopieen: number;
18749
19144
  layout_id: string | null;
18750
19145
  opgepakt_op: string | null;
18751
19146
  paginas: number;
18752
19147
  payload: Json;
19148
+ pdf_base64: string | null;
19149
+ pdf_url: string | null;
18753
19150
  pogingen: number;
18754
19151
  printer_id: string | null;
18755
19152
  render_html: string | null;
18756
19153
  status: Database["public"]["Enums"]["print_job_status"];
18757
19154
  updated_at: string;
19155
+ volgende_poging: string | null;
18758
19156
  voltooid_op: string | null;
18759
19157
  }[];
18760
19158
  SetofOptions: {
@@ -18792,10 +19190,28 @@ export type Database = {
18792
19190
  isSetofReturn: true;
18793
19191
  };
18794
19192
  };
19193
+ cleanup_floriday_stock_queue: {
19194
+ Args: never;
19195
+ Returns: undefined;
19196
+ };
18795
19197
  cleanup_old_bookings: {
18796
19198
  Args: never;
18797
19199
  Returns: undefined;
18798
19200
  };
19201
+ cleanup_voorraad_module_history: {
19202
+ Args: never;
19203
+ Returns: undefined;
19204
+ };
19205
+ complete_floriday_stock_queue: {
19206
+ Args: {
19207
+ p_attempt_id?: string;
19208
+ p_error?: string;
19209
+ p_id: string;
19210
+ p_ok: boolean;
19211
+ p_permanent?: boolean;
19212
+ };
19213
+ Returns: undefined;
19214
+ };
18799
19215
  consume_bom_for_production: {
18800
19216
  Args: {
18801
19217
  p_connection_id: string;
@@ -18907,6 +19323,13 @@ export type Database = {
18907
19323
  };
18908
19324
  Returns: Json;
18909
19325
  };
19326
+ effective_module_permission: {
19327
+ Args: {
19328
+ _module_id: string;
19329
+ _user_id: string;
19330
+ };
19331
+ Returns: string;
19332
+ };
18910
19333
  email_auth_decrypt: {
18911
19334
  Args: {
18912
19335
  cipher: string;
@@ -19710,6 +20133,51 @@ export type Database = {
19710
20133
  isSetofReturn: false;
19711
20134
  };
19712
20135
  };
20136
+ logistics_floriday_claim_pushes: {
20137
+ Args: {
20138
+ _lease_seconds?: number;
20139
+ _limit?: number;
20140
+ _worker?: string;
20141
+ };
20142
+ Returns: {
20143
+ attempts: number;
20144
+ fulfillment_order_id: string;
20145
+ id: string;
20146
+ last_sent_hash: string;
20147
+ order_ref: string;
20148
+ payload: Json;
20149
+ payload_hash: string;
20150
+ revision: number;
20151
+ }[];
20152
+ };
20153
+ logistics_floriday_finish_push: {
20154
+ Args: {
20155
+ _error?: string;
20156
+ _fulfillment_order_id?: string;
20157
+ _id: string;
20158
+ _max_age_hours?: number;
20159
+ _max_attempts?: number;
20160
+ _ok: boolean;
20161
+ _permanent?: boolean;
20162
+ _revision: number;
20163
+ _sent_hash?: string;
20164
+ };
20165
+ Returns: string;
20166
+ };
20167
+ logistics_floriday_prune_pushes: {
20168
+ Args: {
20169
+ _days?: number;
20170
+ };
20171
+ Returns: number;
20172
+ };
20173
+ logistics_floriday_queue_push: {
20174
+ Args: {
20175
+ _order_ref: string;
20176
+ _payload?: Json;
20177
+ _payload_hash?: string;
20178
+ };
20179
+ Returns: string;
20180
+ };
19713
20181
  logistics_live_carriers: {
19714
20182
  Args: {
19715
20183
  p_order_ref: string;
@@ -20000,6 +20468,13 @@ export type Database = {
20000
20468
  };
20001
20469
  Returns: undefined;
20002
20470
  };
20471
+ my_module_permissions: {
20472
+ Args: never;
20473
+ Returns: {
20474
+ module_id: string;
20475
+ permission: string;
20476
+ }[];
20477
+ };
20003
20478
  next_manufacture_partij: {
20004
20479
  Args: {
20005
20480
  _tenant_id: string;
@@ -20050,6 +20525,13 @@ export type Database = {
20050
20525
  };
20051
20526
  Returns: boolean;
20052
20527
  };
20528
+ opruim_print_historie: {
20529
+ Args: never;
20530
+ Returns: {
20531
+ ontdaan: number;
20532
+ verwijderd: number;
20533
+ }[];
20534
+ };
20053
20535
  order_number_prefix: {
20054
20536
  Args: {
20055
20537
  p_custom_fields?: Json;
@@ -20057,6 +20539,15 @@ export type Database = {
20057
20539
  };
20058
20540
  Returns: string;
20059
20541
  };
20542
+ pick_active_printers: {
20543
+ Args: never;
20544
+ Returns: {
20545
+ id: string;
20546
+ locatie: string;
20547
+ naam: string;
20548
+ online: boolean;
20549
+ }[];
20550
+ };
20060
20551
  pick_claim_document: {
20061
20552
  Args: {
20062
20553
  _queue_item_id: string;
@@ -20243,6 +20734,52 @@ export type Database = {
20243
20734
  };
20244
20735
  Returns: undefined;
20245
20736
  };
20737
+ pick_reset_print: {
20738
+ Args: {
20739
+ _queue_item_id: string;
20740
+ _session_id: string;
20741
+ };
20742
+ Returns: {
20743
+ announced_at: string;
20744
+ assigned_user_id: string | null;
20745
+ barcode: string | null;
20746
+ cancelled_at: string | null;
20747
+ cart_count: number;
20748
+ completed_at: string | null;
20749
+ country_code: string | null;
20750
+ created_at: string;
20751
+ customer_name: string | null;
20752
+ delivery_address: string | null;
20753
+ document_number: string | null;
20754
+ document_type_id: string | null;
20755
+ due_at: string | null;
20756
+ id: string;
20757
+ is_urgent: boolean;
20758
+ line_count: number;
20759
+ order_number: string | null;
20760
+ order_type: string | null;
20761
+ payload: Json;
20762
+ print_count: number;
20763
+ print_job_id: string | null;
20764
+ printed_at: string | null;
20765
+ printed_by: string | null;
20766
+ printer_id: string | null;
20767
+ priority: number;
20768
+ reference: string | null;
20769
+ route: string | null;
20770
+ screen_id: string | null;
20771
+ station_id: string | null;
20772
+ status_id: string | null;
20773
+ updated_at: string;
20774
+ warnings: Json;
20775
+ };
20776
+ SetofOptions: {
20777
+ from: "*";
20778
+ to: "pick_queue";
20779
+ isOneToOne: true;
20780
+ isSetofReturn: false;
20781
+ };
20782
+ };
20246
20783
  pick_station_dashboard: {
20247
20784
  Args: never;
20248
20785
  Returns: {
@@ -20389,6 +20926,12 @@ export type Database = {
20389
20926
  };
20390
20927
  Returns: undefined;
20391
20928
  };
20929
+ reset_stalled_floriday_stock_queue: {
20930
+ Args: {
20931
+ p_include_failed?: boolean;
20932
+ };
20933
+ Returns: number;
20934
+ };
20392
20935
  resolve_group_allocation: {
20393
20936
  Args: {
20394
20937
  _needed: number;
@@ -20433,14 +20976,28 @@ export type Database = {
20433
20976
  };
20434
20977
  Returns: Json;
20435
20978
  };
20979
+ ruim_print_jobs_op: {
20980
+ Args: {
20981
+ _bewaar_dagen?: number;
20982
+ };
20983
+ Returns: number;
20984
+ };
20436
20985
  run_floriday_continuous_stock_sync: {
20437
20986
  Args: never;
20438
20987
  Returns: undefined;
20439
20988
  };
20989
+ run_floriday_stock_queue_process: {
20990
+ Args: never;
20991
+ Returns: undefined;
20992
+ };
20440
20993
  run_logistics_tasks_dispatch: {
20441
20994
  Args: never;
20442
20995
  Returns: undefined;
20443
20996
  };
20997
+ run_print_queue_ticks: {
20998
+ Args: never;
20999
+ Returns: number;
21000
+ };
20444
21001
  run_twinfield_queue_tick: {
20445
21002
  Args: never;
20446
21003
  Returns: undefined;
@@ -20681,6 +21238,13 @@ export type Database = {
20681
21238
  };
20682
21239
  Returns: number;
20683
21240
  };
21241
+ schedule_floriday_stock_queue_process: {
21242
+ Args: {
21243
+ p_apikey: string;
21244
+ p_url: string;
21245
+ };
21246
+ Returns: number;
21247
+ };
20684
21248
  schedule_floriday_token_refresh: {
20685
21249
  Args: {
20686
21250
  p_apikey: string;
@@ -20821,6 +21385,15 @@ export type Database = {
20821
21385
  };
20822
21386
  Returns: undefined;
20823
21387
  };
21388
+ trade_item_stock_duplicates: {
21389
+ Args: never;
21390
+ Returns: {
21391
+ keys: string[];
21392
+ product_id: string;
21393
+ product_name: string;
21394
+ row_count: number;
21395
+ }[];
21396
+ };
20824
21397
  try_debtor_lock: {
20825
21398
  Args: {
20826
21399
  _group_key: string;
@@ -20870,7 +21443,7 @@ export type Database = {
20870
21443
  };
20871
21444
  Enums: {
20872
21445
  ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
20873
- app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin";
21446
+ app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
20874
21447
  doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
20875
21448
  doc_orientation: "portrait" | "landscape";
20876
21449
  exact_env: "staging" | "live";
@@ -20941,7 +21514,7 @@ export declare const Constants: {
20941
21514
  readonly public: {
20942
21515
  readonly Enums: {
20943
21516
  readonly ai_import_status: readonly ["nieuw", "verwerken", "bevestigen", "klaar", "mislukt"];
20944
- readonly app_role: readonly ["admin", "planner", "monteur", "administratie", "ai_admin"];
21517
+ readonly app_role: readonly ["admin", "planner", "monteur", "administratie", "ai_admin", "manager", "warehouse", "sales", "developer", "receptie"];
20945
21518
  readonly doc_layout_type: readonly ["pakbon", "factuur", "offerte", "orderbevestiging", "etiket", "verzendlabel", "productlabel", "barcode_label", "magazijnlijst", "controlelijst", "transportdocument", "vrij", "sticker", "productiebon"];
20946
21519
  readonly doc_orientation: readonly ["portrait", "landscape"];
20947
21520
  readonly exact_env: readonly ["staging", "live"];