@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
@@ -1696,7 +1696,7 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
1696
1696
  city: string | null;
1697
1697
  country: string | null;
1698
1698
  created_at: string;
1699
- customer_id: string | null;
1699
+ customer_id: string;
1700
1700
  external_key: string | null;
1701
1701
  external_provider: string | null;
1702
1702
  floriday_location_id: string | null;
@@ -1720,7 +1720,7 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
1720
1720
  city?: string | null;
1721
1721
  country?: string | null;
1722
1722
  created_at?: string;
1723
- customer_id?: string | null;
1723
+ customer_id: string;
1724
1724
  external_key?: string | null;
1725
1725
  external_provider?: string | null;
1726
1726
  floriday_location_id?: string | null;
@@ -1744,7 +1744,7 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
1744
1744
  city?: string | null;
1745
1745
  country?: string | null;
1746
1746
  created_at?: string;
1747
- customer_id?: string | null;
1747
+ customer_id?: string;
1748
1748
  external_key?: string | null;
1749
1749
  external_provider?: string | null;
1750
1750
  floriday_location_id?: string | null;
@@ -5707,12 +5707,17 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
5707
5707
  attempts: number;
5708
5708
  connection_id: string;
5709
5709
  created_at: string;
5710
+ desired_available: boolean | null;
5710
5711
  gateway_attempt_id: string | null;
5711
5712
  id: string;
5712
5713
  last_error: string | null;
5714
+ locked_at: string | null;
5715
+ locked_by: string | null;
5716
+ next_attempt_at: string;
5713
5717
  number_of_pieces: number;
5714
5718
  sent_at: string | null;
5715
5719
  status: string;
5720
+ superseded_by: string | null;
5716
5721
  trade_item_id: string;
5717
5722
  updated_at: string;
5718
5723
  user_id: string;
@@ -5721,12 +5726,17 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
5721
5726
  attempts?: number;
5722
5727
  connection_id: string;
5723
5728
  created_at?: string;
5729
+ desired_available?: boolean | null;
5724
5730
  gateway_attempt_id?: string | null;
5725
5731
  id?: string;
5726
5732
  last_error?: string | null;
5733
+ locked_at?: string | null;
5734
+ locked_by?: string | null;
5735
+ next_attempt_at?: string;
5727
5736
  number_of_pieces?: number;
5728
5737
  sent_at?: string | null;
5729
5738
  status?: string;
5739
+ superseded_by?: string | null;
5730
5740
  trade_item_id: string;
5731
5741
  updated_at?: string;
5732
5742
  user_id: string;
@@ -5735,12 +5745,17 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
5735
5745
  attempts?: number;
5736
5746
  connection_id?: string;
5737
5747
  created_at?: string;
5748
+ desired_available?: boolean | null;
5738
5749
  gateway_attempt_id?: string | null;
5739
5750
  id?: string;
5740
5751
  last_error?: string | null;
5752
+ locked_at?: string | null;
5753
+ locked_by?: string | null;
5754
+ next_attempt_at?: string;
5741
5755
  number_of_pieces?: number;
5742
5756
  sent_at?: string | null;
5743
5757
  status?: string;
5758
+ superseded_by?: string | null;
5744
5759
  trade_item_id?: string;
5745
5760
  updated_at?: string;
5746
5761
  user_id?: string;
@@ -6477,6 +6492,7 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
6477
6492
  Row: {
6478
6493
  buyer_organization_id: string | null;
6479
6494
  connection_id: string;
6495
+ controlled_at: string | null;
6480
6496
  created_at: string;
6481
6497
  data: import("../integrations/supabase/types").Json;
6482
6498
  floriday_id: string;
@@ -6488,6 +6504,7 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
6488
6504
  Insert: {
6489
6505
  buyer_organization_id?: string | null;
6490
6506
  connection_id: string;
6507
+ controlled_at?: string | null;
6491
6508
  created_at?: string;
6492
6509
  data: import("../integrations/supabase/types").Json;
6493
6510
  floriday_id: string;
@@ -6499,6 +6516,7 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
6499
6516
  Update: {
6500
6517
  buyer_organization_id?: string | null;
6501
6518
  connection_id?: string;
6519
+ controlled_at?: string | null;
6502
6520
  created_at?: string;
6503
6521
  data?: import("../integrations/supabase/types").Json;
6504
6522
  floriday_id?: string;
@@ -7400,6 +7418,54 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
7400
7418
  };
7401
7419
  Relationships: [];
7402
7420
  };
7421
+ invoice_timing_settings: {
7422
+ Row: {
7423
+ anchor: string;
7424
+ business_days_only: boolean;
7425
+ created_at: string;
7426
+ enabled: boolean;
7427
+ id: string;
7428
+ offset_days: number;
7429
+ pickup_anchor: string;
7430
+ pickup_business_days_only: boolean;
7431
+ pickup_offset_days: number;
7432
+ pickup_time_of_day: string;
7433
+ singleton: boolean;
7434
+ time_of_day: string;
7435
+ updated_at: string;
7436
+ };
7437
+ Insert: {
7438
+ anchor?: string;
7439
+ business_days_only?: boolean;
7440
+ created_at?: string;
7441
+ enabled?: boolean;
7442
+ id?: string;
7443
+ offset_days?: number;
7444
+ pickup_anchor?: string;
7445
+ pickup_business_days_only?: boolean;
7446
+ pickup_offset_days?: number;
7447
+ pickup_time_of_day?: string;
7448
+ singleton?: boolean;
7449
+ time_of_day?: string;
7450
+ updated_at?: string;
7451
+ };
7452
+ Update: {
7453
+ anchor?: string;
7454
+ business_days_only?: boolean;
7455
+ created_at?: string;
7456
+ enabled?: boolean;
7457
+ id?: string;
7458
+ offset_days?: number;
7459
+ pickup_anchor?: string;
7460
+ pickup_business_days_only?: boolean;
7461
+ pickup_offset_days?: number;
7462
+ pickup_time_of_day?: string;
7463
+ singleton?: boolean;
7464
+ time_of_day?: string;
7465
+ updated_at?: string;
7466
+ };
7467
+ Relationships: [];
7468
+ };
7403
7469
  itk_contact_persons: {
7404
7470
  Row: {
7405
7471
  created_at: string;
@@ -8489,6 +8555,69 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
8489
8555
  };
8490
8556
  Relationships: [];
8491
8557
  };
8558
+ logistics_floriday_pushes: {
8559
+ Row: {
8560
+ attempts: number;
8561
+ created_at: string;
8562
+ first_queued_at: string;
8563
+ fulfillment_order_id: string | null;
8564
+ id: string;
8565
+ last_error: string | null;
8566
+ last_error_at: string | null;
8567
+ last_sent_hash: string | null;
8568
+ locked_by: string | null;
8569
+ locked_until: string | null;
8570
+ next_attempt_at: string;
8571
+ order_ref: string;
8572
+ payload: import("../integrations/supabase/types").Json;
8573
+ payload_hash: string | null;
8574
+ revision: number;
8575
+ sent_at: string | null;
8576
+ status: string;
8577
+ updated_at: string;
8578
+ };
8579
+ Insert: {
8580
+ attempts?: number;
8581
+ created_at?: string;
8582
+ first_queued_at?: string;
8583
+ fulfillment_order_id?: string | null;
8584
+ id?: string;
8585
+ last_error?: string | null;
8586
+ last_error_at?: string | null;
8587
+ last_sent_hash?: string | null;
8588
+ locked_by?: string | null;
8589
+ locked_until?: string | null;
8590
+ next_attempt_at?: string;
8591
+ order_ref: string;
8592
+ payload?: import("../integrations/supabase/types").Json;
8593
+ payload_hash?: string | null;
8594
+ revision?: number;
8595
+ sent_at?: string | null;
8596
+ status?: string;
8597
+ updated_at?: string;
8598
+ };
8599
+ Update: {
8600
+ attempts?: number;
8601
+ created_at?: string;
8602
+ first_queued_at?: string;
8603
+ fulfillment_order_id?: string | null;
8604
+ id?: string;
8605
+ last_error?: string | null;
8606
+ last_error_at?: string | null;
8607
+ last_sent_hash?: string | null;
8608
+ locked_by?: string | null;
8609
+ locked_until?: string | null;
8610
+ next_attempt_at?: string;
8611
+ order_ref?: string;
8612
+ payload?: import("../integrations/supabase/types").Json;
8613
+ payload_hash?: string | null;
8614
+ revision?: number;
8615
+ sent_at?: string | null;
8616
+ status?: string;
8617
+ updated_at?: string;
8618
+ };
8619
+ Relationships: [];
8620
+ };
8492
8621
  logistics_formulas: {
8493
8622
  Row: {
8494
8623
  created_at: string;
@@ -9352,14 +9481,17 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
9352
9481
  };
9353
9482
  mailbox_messages: {
9354
9483
  Row: {
9484
+ attachments: import("../integrations/supabase/types").Json;
9355
9485
  body_html: string | null;
9356
9486
  body_text: string | null;
9487
+ cc_recipients: import("../integrations/supabase/types").Json;
9357
9488
  connection_id: string | null;
9358
9489
  created_at: string;
9359
9490
  error_message: string | null;
9360
9491
  external_id: string | null;
9361
9492
  from_email: string | null;
9362
9493
  from_name: string | null;
9494
+ has_attachments: boolean;
9363
9495
  id: string;
9364
9496
  message_id: string | null;
9365
9497
  profile_id: string | null;
@@ -9367,18 +9499,22 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
9367
9499
  received_at: string | null;
9368
9500
  status: string;
9369
9501
  subject: string | null;
9502
+ to_recipients: import("../integrations/supabase/types").Json;
9370
9503
  uid: number | null;
9371
9504
  updated_at: string;
9372
9505
  };
9373
9506
  Insert: {
9507
+ attachments?: import("../integrations/supabase/types").Json;
9374
9508
  body_html?: string | null;
9375
9509
  body_text?: string | null;
9510
+ cc_recipients?: import("../integrations/supabase/types").Json;
9376
9511
  connection_id?: string | null;
9377
9512
  created_at?: string;
9378
9513
  error_message?: string | null;
9379
9514
  external_id?: string | null;
9380
9515
  from_email?: string | null;
9381
9516
  from_name?: string | null;
9517
+ has_attachments?: boolean;
9382
9518
  id?: string;
9383
9519
  message_id?: string | null;
9384
9520
  profile_id?: string | null;
@@ -9386,18 +9522,22 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
9386
9522
  received_at?: string | null;
9387
9523
  status?: string;
9388
9524
  subject?: string | null;
9525
+ to_recipients?: import("../integrations/supabase/types").Json;
9389
9526
  uid?: number | null;
9390
9527
  updated_at?: string;
9391
9528
  };
9392
9529
  Update: {
9530
+ attachments?: import("../integrations/supabase/types").Json;
9393
9531
  body_html?: string | null;
9394
9532
  body_text?: string | null;
9533
+ cc_recipients?: import("../integrations/supabase/types").Json;
9395
9534
  connection_id?: string | null;
9396
9535
  created_at?: string;
9397
9536
  error_message?: string | null;
9398
9537
  external_id?: string | null;
9399
9538
  from_email?: string | null;
9400
9539
  from_name?: string | null;
9540
+ has_attachments?: boolean;
9401
9541
  id?: string;
9402
9542
  message_id?: string | null;
9403
9543
  profile_id?: string | null;
@@ -9405,6 +9545,7 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
9405
9545
  received_at?: string | null;
9406
9546
  status?: string;
9407
9547
  subject?: string | null;
9548
+ to_recipients?: import("../integrations/supabase/types").Json;
9408
9549
  uid?: number | null;
9409
9550
  updated_at?: string;
9410
9551
  };
@@ -9812,6 +9953,36 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
9812
9953
  };
9813
9954
  Relationships: [];
9814
9955
  };
9956
+ module_registry: {
9957
+ Row: {
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
+ Insert: {
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
+ Update: {
9976
+ created_at?: string;
9977
+ is_active?: boolean;
9978
+ last_seen_at?: string;
9979
+ module_id?: string;
9980
+ name?: string;
9981
+ shell_id?: string | null;
9982
+ sort_order?: number | null;
9983
+ };
9984
+ Relationships: [];
9985
+ };
9815
9986
  module_runtime_config: {
9816
9987
  Row: {
9817
9988
  key: string;
@@ -10871,6 +11042,42 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
10871
11042
  };
10872
11043
  Relationships: [];
10873
11044
  };
11045
+ order_invoice_links: {
11046
+ Row: {
11047
+ attempts: number;
11048
+ created_at: string;
11049
+ error_message: string | null;
11050
+ id: string;
11051
+ invoice_number: string | null;
11052
+ order_id: string;
11053
+ processed_at: string | null;
11054
+ status: string;
11055
+ updated_at: string;
11056
+ };
11057
+ Insert: {
11058
+ attempts?: number;
11059
+ created_at?: string;
11060
+ error_message?: string | null;
11061
+ id?: string;
11062
+ invoice_number?: string | null;
11063
+ order_id: string;
11064
+ processed_at?: string | null;
11065
+ status?: string;
11066
+ updated_at?: string;
11067
+ };
11068
+ Update: {
11069
+ attempts?: number;
11070
+ created_at?: string;
11071
+ error_message?: string | null;
11072
+ id?: string;
11073
+ invoice_number?: string | null;
11074
+ order_id?: string;
11075
+ processed_at?: string | null;
11076
+ status?: string;
11077
+ updated_at?: string;
11078
+ };
11079
+ Relationships: [];
11080
+ };
10874
11081
  order_items: {
10875
11082
  Row: {
10876
11083
  crates_per_layer: number | null;
@@ -11053,6 +11260,7 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
11053
11260
  delivery_date: string | null;
11054
11261
  floriday_sales_order_id: string | null;
11055
11262
  id: string;
11263
+ invoice_due_at: string | null;
11056
11264
  is_reservation: boolean;
11057
11265
  notes: string | null;
11058
11266
  order_date: string;
@@ -11074,6 +11282,7 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
11074
11282
  delivery_date?: string | null;
11075
11283
  floriday_sales_order_id?: string | null;
11076
11284
  id?: string;
11285
+ invoice_due_at?: string | null;
11077
11286
  is_reservation?: boolean;
11078
11287
  notes?: string | null;
11079
11288
  order_date?: string;
@@ -11095,6 +11304,7 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
11095
11304
  delivery_date?: string | null;
11096
11305
  floriday_sales_order_id?: string | null;
11097
11306
  id?: string;
11307
+ invoice_due_at?: string | null;
11098
11308
  is_reservation?: boolean;
11099
11309
  notes?: string | null;
11100
11310
  order_date?: string;
@@ -12291,22 +12501,27 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
12291
12501
  created_at: string;
12292
12502
  documentnaam: string;
12293
12503
  documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
12504
+ extern_job_id: string | null;
12294
12505
  foutmelding: string | null;
12295
12506
  gebruiker_id: string | null;
12296
12507
  gebruiker_naam: string;
12297
12508
  gestart_op: string | null;
12298
12509
  id: string;
12510
+ idempotentie_sleutel: string | null;
12299
12511
  is_herprint: boolean;
12300
12512
  kopieen: number;
12301
12513
  layout_id: string | null;
12302
12514
  opgepakt_op: string | null;
12303
12515
  paginas: number;
12304
12516
  payload: import("../integrations/supabase/types").Json;
12517
+ pdf_base64: string | null;
12518
+ pdf_url: string | null;
12305
12519
  pogingen: number;
12306
12520
  printer_id: string | null;
12307
12521
  render_html: string | null;
12308
12522
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
12309
12523
  updated_at: string;
12524
+ volgende_poging: string | null;
12310
12525
  voltooid_op: string | null;
12311
12526
  };
12312
12527
  Insert: {
@@ -12315,22 +12530,27 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
12315
12530
  created_at?: string;
12316
12531
  documentnaam?: string;
12317
12532
  documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
12533
+ extern_job_id?: string | null;
12318
12534
  foutmelding?: string | null;
12319
12535
  gebruiker_id?: string | null;
12320
12536
  gebruiker_naam?: string;
12321
12537
  gestart_op?: string | null;
12322
12538
  id?: string;
12539
+ idempotentie_sleutel?: string | null;
12323
12540
  is_herprint?: boolean;
12324
12541
  kopieen?: number;
12325
12542
  layout_id?: string | null;
12326
12543
  opgepakt_op?: string | null;
12327
12544
  paginas?: number;
12328
12545
  payload?: import("../integrations/supabase/types").Json;
12546
+ pdf_base64?: string | null;
12547
+ pdf_url?: string | null;
12329
12548
  pogingen?: number;
12330
12549
  printer_id?: string | null;
12331
12550
  render_html?: string | null;
12332
12551
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
12333
12552
  updated_at?: string;
12553
+ volgende_poging?: string | null;
12334
12554
  voltooid_op?: string | null;
12335
12555
  };
12336
12556
  Update: {
@@ -12339,22 +12559,27 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
12339
12559
  created_at?: string;
12340
12560
  documentnaam?: string;
12341
12561
  documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
12562
+ extern_job_id?: string | null;
12342
12563
  foutmelding?: string | null;
12343
12564
  gebruiker_id?: string | null;
12344
12565
  gebruiker_naam?: string;
12345
12566
  gestart_op?: string | null;
12346
12567
  id?: string;
12568
+ idempotentie_sleutel?: string | null;
12347
12569
  is_herprint?: boolean;
12348
12570
  kopieen?: number;
12349
12571
  layout_id?: string | null;
12350
12572
  opgepakt_op?: string | null;
12351
12573
  paginas?: number;
12352
12574
  payload?: import("../integrations/supabase/types").Json;
12575
+ pdf_base64?: string | null;
12576
+ pdf_url?: string | null;
12353
12577
  pogingen?: number;
12354
12578
  printer_id?: string | null;
12355
12579
  render_html?: string | null;
12356
12580
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
12357
12581
  updated_at?: string;
12582
+ volgende_poging?: string | null;
12358
12583
  voltooid_op?: string | null;
12359
12584
  };
12360
12585
  Relationships: [{
@@ -12377,6 +12602,63 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
12377
12602
  referencedColumns: ["id"];
12378
12603
  }];
12379
12604
  };
12605
+ print_queue_runners: {
12606
+ Row: {
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
+ Insert: {
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
+ Update: {
12625
+ actief?: boolean;
12626
+ basis_url?: string;
12627
+ created_at?: string;
12628
+ id?: string;
12629
+ laatst_gezien?: string;
12630
+ tick_sleutel?: string;
12631
+ updated_at?: string;
12632
+ };
12633
+ Relationships: [];
12634
+ };
12635
+ print_queue_settings: {
12636
+ Row: {
12637
+ bewaar_bestanden_dagen: number;
12638
+ bewaar_opdrachten_dagen: number;
12639
+ created_at: string;
12640
+ dubbel_venster_minuten: number;
12641
+ id: string;
12642
+ updated_at: string;
12643
+ };
12644
+ Insert: {
12645
+ bewaar_bestanden_dagen?: number;
12646
+ bewaar_opdrachten_dagen?: number;
12647
+ created_at?: string;
12648
+ dubbel_venster_minuten?: number;
12649
+ id?: string;
12650
+ updated_at?: string;
12651
+ };
12652
+ Update: {
12653
+ bewaar_bestanden_dagen?: number;
12654
+ bewaar_opdrachten_dagen?: number;
12655
+ created_at?: string;
12656
+ dubbel_venster_minuten?: number;
12657
+ id?: string;
12658
+ updated_at?: string;
12659
+ };
12660
+ Relationships: [];
12661
+ };
12380
12662
  print_rules: {
12381
12663
  Row: {
12382
12664
  actief: boolean;
@@ -12537,6 +12819,7 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
12537
12819
  agent_id: string | null;
12538
12820
  created_at: string;
12539
12821
  driver: string;
12822
+ extern_printer_id: string | null;
12540
12823
  id: string;
12541
12824
  ip_adres: string | null;
12542
12825
  laatst_gezien: string | null;
@@ -12558,6 +12841,7 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
12558
12841
  agent_id?: string | null;
12559
12842
  created_at?: string;
12560
12843
  driver?: string;
12844
+ extern_printer_id?: string | null;
12561
12845
  id?: string;
12562
12846
  ip_adres?: string | null;
12563
12847
  laatst_gezien?: string | null;
@@ -12579,6 +12863,7 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
12579
12863
  agent_id?: string | null;
12580
12864
  created_at?: string;
12581
12865
  driver?: string;
12866
+ extern_printer_id?: string | null;
12582
12867
  id?: string;
12583
12868
  ip_adres?: string | null;
12584
12869
  laatst_gezien?: string | null;
@@ -15214,6 +15499,8 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
15214
15499
  };
15215
15500
  twinfield_invoice_settings: {
15216
15501
  Row: {
15502
+ auto_invoice_enabled: boolean;
15503
+ auto_invoice_trigger_statuses: string[];
15217
15504
  created_at: string;
15218
15505
  debtor_gl_account: string;
15219
15506
  default_credit_invoice_type: string | null;
@@ -15234,6 +15521,8 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
15234
15521
  vat_code_export: string | null;
15235
15522
  };
15236
15523
  Insert: {
15524
+ auto_invoice_enabled?: boolean;
15525
+ auto_invoice_trigger_statuses?: string[];
15237
15526
  created_at?: string;
15238
15527
  debtor_gl_account?: string;
15239
15528
  default_credit_invoice_type?: string | null;
@@ -15254,6 +15543,8 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
15254
15543
  vat_code_export?: string | null;
15255
15544
  };
15256
15545
  Update: {
15546
+ auto_invoice_enabled?: boolean;
15547
+ auto_invoice_trigger_statuses?: string[];
15257
15548
  created_at?: string;
15258
15549
  debtor_gl_account?: string;
15259
15550
  default_credit_invoice_type?: string | null;
@@ -16316,6 +16607,33 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
16316
16607
  referencedColumns: ["id"];
16317
16608
  }];
16318
16609
  };
16610
+ user_module_permissions: {
16611
+ Row: {
16612
+ created_at: string;
16613
+ id: string;
16614
+ module_id: string;
16615
+ permission: string;
16616
+ updated_at: string;
16617
+ user_id: string;
16618
+ };
16619
+ Insert: {
16620
+ created_at?: string;
16621
+ id?: string;
16622
+ module_id: string;
16623
+ permission: string;
16624
+ updated_at?: string;
16625
+ user_id: string;
16626
+ };
16627
+ Update: {
16628
+ created_at?: string;
16629
+ id?: string;
16630
+ module_id?: string;
16631
+ permission?: string;
16632
+ updated_at?: string;
16633
+ user_id?: string;
16634
+ };
16635
+ Relationships: [];
16636
+ };
16319
16637
  user_roles: {
16320
16638
  Row: {
16321
16639
  created_at: string;
@@ -18149,6 +18467,10 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
18149
18467
  processed_items: number;
18150
18468
  }[];
18151
18469
  };
18470
+ backfill_order_auto_invoice_queue: {
18471
+ Args: never;
18472
+ Returns: number;
18473
+ };
18152
18474
  calculate_layer_stock: {
18153
18475
  Args: {
18154
18476
  p_product_id: string;
@@ -18183,6 +18505,77 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
18183
18505
  };
18184
18506
  Returns: import("../integrations/supabase/types").Json;
18185
18507
  };
18508
+ claim_cloud_print_jobs: {
18509
+ Args: {
18510
+ _max?: number;
18511
+ };
18512
+ Returns: {
18513
+ agent_id: string | null;
18514
+ bron_job_id: string | null;
18515
+ created_at: string;
18516
+ documentnaam: string;
18517
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
18518
+ extern_job_id: string | null;
18519
+ foutmelding: string | null;
18520
+ gebruiker_id: string | null;
18521
+ gebruiker_naam: string;
18522
+ gestart_op: string | null;
18523
+ id: string;
18524
+ idempotentie_sleutel: string | null;
18525
+ is_herprint: boolean;
18526
+ kopieen: number;
18527
+ layout_id: string | null;
18528
+ opgepakt_op: string | null;
18529
+ paginas: number;
18530
+ payload: import("../integrations/supabase/types").Json;
18531
+ pdf_base64: string | null;
18532
+ pdf_url: string | null;
18533
+ pogingen: number;
18534
+ printer_id: string | null;
18535
+ render_html: string | null;
18536
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
18537
+ updated_at: string;
18538
+ volgende_poging: string | null;
18539
+ voltooid_op: string | null;
18540
+ }[];
18541
+ SetofOptions: {
18542
+ from: "*";
18543
+ to: "print_jobs";
18544
+ isOneToOne: false;
18545
+ isSetofReturn: true;
18546
+ };
18547
+ };
18548
+ claim_floriday_stock_queue: {
18549
+ Args: {
18550
+ p_limit?: number;
18551
+ p_worker?: string;
18552
+ };
18553
+ Returns: {
18554
+ attempts: number;
18555
+ connection_id: string;
18556
+ created_at: string;
18557
+ desired_available: boolean | null;
18558
+ gateway_attempt_id: string | null;
18559
+ id: string;
18560
+ last_error: string | null;
18561
+ locked_at: string | null;
18562
+ locked_by: string | null;
18563
+ next_attempt_at: string;
18564
+ number_of_pieces: number;
18565
+ sent_at: string | null;
18566
+ status: string;
18567
+ superseded_by: string | null;
18568
+ trade_item_id: string;
18569
+ updated_at: string;
18570
+ user_id: string;
18571
+ }[];
18572
+ SetofOptions: {
18573
+ from: "*";
18574
+ to: "floriday_continuous_stock_queue";
18575
+ isOneToOne: false;
18576
+ isSetofReturn: true;
18577
+ };
18578
+ };
18186
18579
  claim_logistics_tasks: {
18187
18580
  Args: {
18188
18581
  _limit?: number;
@@ -18242,22 +18635,27 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
18242
18635
  created_at: string;
18243
18636
  documentnaam: string;
18244
18637
  documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
18638
+ extern_job_id: string | null;
18245
18639
  foutmelding: string | null;
18246
18640
  gebruiker_id: string | null;
18247
18641
  gebruiker_naam: string;
18248
18642
  gestart_op: string | null;
18249
18643
  id: string;
18644
+ idempotentie_sleutel: string | null;
18250
18645
  is_herprint: boolean;
18251
18646
  kopieen: number;
18252
18647
  layout_id: string | null;
18253
18648
  opgepakt_op: string | null;
18254
18649
  paginas: number;
18255
18650
  payload: import("../integrations/supabase/types").Json;
18651
+ pdf_base64: string | null;
18652
+ pdf_url: string | null;
18256
18653
  pogingen: number;
18257
18654
  printer_id: string | null;
18258
18655
  render_html: string | null;
18259
18656
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
18260
18657
  updated_at: string;
18658
+ volgende_poging: string | null;
18261
18659
  voltooid_op: string | null;
18262
18660
  }[];
18263
18661
  SetofOptions: {
@@ -18295,10 +18693,28 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
18295
18693
  isSetofReturn: true;
18296
18694
  };
18297
18695
  };
18696
+ cleanup_floriday_stock_queue: {
18697
+ Args: never;
18698
+ Returns: undefined;
18699
+ };
18298
18700
  cleanup_old_bookings: {
18299
18701
  Args: never;
18300
18702
  Returns: undefined;
18301
18703
  };
18704
+ cleanup_voorraad_module_history: {
18705
+ Args: never;
18706
+ Returns: undefined;
18707
+ };
18708
+ complete_floriday_stock_queue: {
18709
+ Args: {
18710
+ p_attempt_id?: string;
18711
+ p_error?: string;
18712
+ p_id: string;
18713
+ p_ok: boolean;
18714
+ p_permanent?: boolean;
18715
+ };
18716
+ Returns: undefined;
18717
+ };
18302
18718
  consume_bom_for_production: {
18303
18719
  Args: {
18304
18720
  p_connection_id: string;
@@ -18410,6 +18826,13 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
18410
18826
  };
18411
18827
  Returns: import("../integrations/supabase/types").Json;
18412
18828
  };
18829
+ effective_module_permission: {
18830
+ Args: {
18831
+ _module_id: string;
18832
+ _user_id: string;
18833
+ };
18834
+ Returns: string;
18835
+ };
18413
18836
  email_auth_decrypt: {
18414
18837
  Args: {
18415
18838
  cipher: string;
@@ -19213,6 +19636,51 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
19213
19636
  isSetofReturn: false;
19214
19637
  };
19215
19638
  };
19639
+ logistics_floriday_claim_pushes: {
19640
+ Args: {
19641
+ _lease_seconds?: number;
19642
+ _limit?: number;
19643
+ _worker?: string;
19644
+ };
19645
+ Returns: {
19646
+ attempts: number;
19647
+ fulfillment_order_id: string;
19648
+ id: string;
19649
+ last_sent_hash: string;
19650
+ order_ref: string;
19651
+ payload: import("../integrations/supabase/types").Json;
19652
+ payload_hash: string;
19653
+ revision: number;
19654
+ }[];
19655
+ };
19656
+ logistics_floriday_finish_push: {
19657
+ Args: {
19658
+ _error?: string;
19659
+ _fulfillment_order_id?: string;
19660
+ _id: string;
19661
+ _max_age_hours?: number;
19662
+ _max_attempts?: number;
19663
+ _ok: boolean;
19664
+ _permanent?: boolean;
19665
+ _revision: number;
19666
+ _sent_hash?: string;
19667
+ };
19668
+ Returns: string;
19669
+ };
19670
+ logistics_floriday_prune_pushes: {
19671
+ Args: {
19672
+ _days?: number;
19673
+ };
19674
+ Returns: number;
19675
+ };
19676
+ logistics_floriday_queue_push: {
19677
+ Args: {
19678
+ _order_ref: string;
19679
+ _payload?: import("../integrations/supabase/types").Json;
19680
+ _payload_hash?: string;
19681
+ };
19682
+ Returns: string;
19683
+ };
19216
19684
  logistics_live_carriers: {
19217
19685
  Args: {
19218
19686
  p_order_ref: string;
@@ -19503,6 +19971,13 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
19503
19971
  };
19504
19972
  Returns: undefined;
19505
19973
  };
19974
+ my_module_permissions: {
19975
+ Args: never;
19976
+ Returns: {
19977
+ module_id: string;
19978
+ permission: string;
19979
+ }[];
19980
+ };
19506
19981
  next_manufacture_partij: {
19507
19982
  Args: {
19508
19983
  _tenant_id: string;
@@ -19553,6 +20028,13 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
19553
20028
  };
19554
20029
  Returns: boolean;
19555
20030
  };
20031
+ opruim_print_historie: {
20032
+ Args: never;
20033
+ Returns: {
20034
+ ontdaan: number;
20035
+ verwijderd: number;
20036
+ }[];
20037
+ };
19556
20038
  order_number_prefix: {
19557
20039
  Args: {
19558
20040
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -19560,6 +20042,15 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
19560
20042
  };
19561
20043
  Returns: string;
19562
20044
  };
20045
+ pick_active_printers: {
20046
+ Args: never;
20047
+ Returns: {
20048
+ id: string;
20049
+ locatie: string;
20050
+ naam: string;
20051
+ online: boolean;
20052
+ }[];
20053
+ };
19563
20054
  pick_claim_document: {
19564
20055
  Args: {
19565
20056
  _queue_item_id: string;
@@ -19746,6 +20237,52 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
19746
20237
  };
19747
20238
  Returns: undefined;
19748
20239
  };
20240
+ pick_reset_print: {
20241
+ Args: {
20242
+ _queue_item_id: string;
20243
+ _session_id: string;
20244
+ };
20245
+ Returns: {
20246
+ announced_at: string;
20247
+ assigned_user_id: string | null;
20248
+ barcode: string | null;
20249
+ cancelled_at: string | null;
20250
+ cart_count: number;
20251
+ completed_at: string | null;
20252
+ country_code: string | null;
20253
+ created_at: string;
20254
+ customer_name: string | null;
20255
+ delivery_address: string | null;
20256
+ document_number: string | null;
20257
+ document_type_id: string | null;
20258
+ due_at: string | null;
20259
+ id: string;
20260
+ is_urgent: boolean;
20261
+ line_count: number;
20262
+ order_number: string | null;
20263
+ order_type: string | null;
20264
+ payload: import("../integrations/supabase/types").Json;
20265
+ print_count: number;
20266
+ print_job_id: string | null;
20267
+ printed_at: string | null;
20268
+ printed_by: string | null;
20269
+ printer_id: string | null;
20270
+ priority: number;
20271
+ reference: string | null;
20272
+ route: string | null;
20273
+ screen_id: string | null;
20274
+ station_id: string | null;
20275
+ status_id: string | null;
20276
+ updated_at: string;
20277
+ warnings: import("../integrations/supabase/types").Json;
20278
+ };
20279
+ SetofOptions: {
20280
+ from: "*";
20281
+ to: "pick_queue";
20282
+ isOneToOne: true;
20283
+ isSetofReturn: false;
20284
+ };
20285
+ };
19749
20286
  pick_station_dashboard: {
19750
20287
  Args: never;
19751
20288
  Returns: {
@@ -19892,6 +20429,12 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
19892
20429
  };
19893
20430
  Returns: undefined;
19894
20431
  };
20432
+ reset_stalled_floriday_stock_queue: {
20433
+ Args: {
20434
+ p_include_failed?: boolean;
20435
+ };
20436
+ Returns: number;
20437
+ };
19895
20438
  resolve_group_allocation: {
19896
20439
  Args: {
19897
20440
  _needed: number;
@@ -19936,14 +20479,28 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
19936
20479
  };
19937
20480
  Returns: import("../integrations/supabase/types").Json;
19938
20481
  };
20482
+ ruim_print_jobs_op: {
20483
+ Args: {
20484
+ _bewaar_dagen?: number;
20485
+ };
20486
+ Returns: number;
20487
+ };
19939
20488
  run_floriday_continuous_stock_sync: {
19940
20489
  Args: never;
19941
20490
  Returns: undefined;
19942
20491
  };
20492
+ run_floriday_stock_queue_process: {
20493
+ Args: never;
20494
+ Returns: undefined;
20495
+ };
19943
20496
  run_logistics_tasks_dispatch: {
19944
20497
  Args: never;
19945
20498
  Returns: undefined;
19946
20499
  };
20500
+ run_print_queue_ticks: {
20501
+ Args: never;
20502
+ Returns: number;
20503
+ };
19947
20504
  run_twinfield_queue_tick: {
19948
20505
  Args: never;
19949
20506
  Returns: undefined;
@@ -20184,6 +20741,13 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
20184
20741
  };
20185
20742
  Returns: number;
20186
20743
  };
20744
+ schedule_floriday_stock_queue_process: {
20745
+ Args: {
20746
+ p_apikey: string;
20747
+ p_url: string;
20748
+ };
20749
+ Returns: number;
20750
+ };
20187
20751
  schedule_floriday_token_refresh: {
20188
20752
  Args: {
20189
20753
  p_apikey: string;
@@ -20324,6 +20888,15 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
20324
20888
  };
20325
20889
  Returns: undefined;
20326
20890
  };
20891
+ trade_item_stock_duplicates: {
20892
+ Args: never;
20893
+ Returns: {
20894
+ keys: string[];
20895
+ product_id: string;
20896
+ product_name: string;
20897
+ row_count: number;
20898
+ }[];
20899
+ };
20327
20900
  try_debtor_lock: {
20328
20901
  Args: {
20329
20902
  _group_key: string;
@@ -20373,7 +20946,7 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
20373
20946
  };
20374
20947
  Enums: {
20375
20948
  ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
20376
- app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin";
20949
+ app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
20377
20950
  doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
20378
20951
  doc_orientation: "portrait" | "landscape";
20379
20952
  exact_env: "staging" | "live";