@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
@@ -1688,7 +1688,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
1688
1688
  city: string | null;
1689
1689
  country: string | null;
1690
1690
  created_at: string;
1691
- customer_id: string | null;
1691
+ customer_id: string;
1692
1692
  external_key: string | null;
1693
1693
  external_provider: string | null;
1694
1694
  floriday_location_id: string | null;
@@ -1712,7 +1712,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
1712
1712
  city?: string | null;
1713
1713
  country?: string | null;
1714
1714
  created_at?: string;
1715
- customer_id?: string | null;
1715
+ customer_id: string;
1716
1716
  external_key?: string | null;
1717
1717
  external_provider?: string | null;
1718
1718
  floriday_location_id?: string | null;
@@ -1736,7 +1736,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
1736
1736
  city?: string | null;
1737
1737
  country?: string | null;
1738
1738
  created_at?: string;
1739
- customer_id?: string | null;
1739
+ customer_id?: string;
1740
1740
  external_key?: string | null;
1741
1741
  external_provider?: string | null;
1742
1742
  floriday_location_id?: string | null;
@@ -5699,12 +5699,17 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
5699
5699
  attempts: number;
5700
5700
  connection_id: string;
5701
5701
  created_at: string;
5702
+ desired_available: boolean | null;
5702
5703
  gateway_attempt_id: string | null;
5703
5704
  id: string;
5704
5705
  last_error: string | null;
5706
+ locked_at: string | null;
5707
+ locked_by: string | null;
5708
+ next_attempt_at: string;
5705
5709
  number_of_pieces: number;
5706
5710
  sent_at: string | null;
5707
5711
  status: string;
5712
+ superseded_by: string | null;
5708
5713
  trade_item_id: string;
5709
5714
  updated_at: string;
5710
5715
  user_id: string;
@@ -5713,12 +5718,17 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
5713
5718
  attempts?: number;
5714
5719
  connection_id: string;
5715
5720
  created_at?: string;
5721
+ desired_available?: boolean | null;
5716
5722
  gateway_attempt_id?: string | null;
5717
5723
  id?: string;
5718
5724
  last_error?: string | null;
5725
+ locked_at?: string | null;
5726
+ locked_by?: string | null;
5727
+ next_attempt_at?: string;
5719
5728
  number_of_pieces?: number;
5720
5729
  sent_at?: string | null;
5721
5730
  status?: string;
5731
+ superseded_by?: string | null;
5722
5732
  trade_item_id: string;
5723
5733
  updated_at?: string;
5724
5734
  user_id: string;
@@ -5727,12 +5737,17 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
5727
5737
  attempts?: number;
5728
5738
  connection_id?: string;
5729
5739
  created_at?: string;
5740
+ desired_available?: boolean | null;
5730
5741
  gateway_attempt_id?: string | null;
5731
5742
  id?: string;
5732
5743
  last_error?: string | null;
5744
+ locked_at?: string | null;
5745
+ locked_by?: string | null;
5746
+ next_attempt_at?: string;
5733
5747
  number_of_pieces?: number;
5734
5748
  sent_at?: string | null;
5735
5749
  status?: string;
5750
+ superseded_by?: string | null;
5736
5751
  trade_item_id?: string;
5737
5752
  updated_at?: string;
5738
5753
  user_id?: string;
@@ -6469,6 +6484,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
6469
6484
  Row: {
6470
6485
  buyer_organization_id: string | null;
6471
6486
  connection_id: string;
6487
+ controlled_at: string | null;
6472
6488
  created_at: string;
6473
6489
  data: import("../integrations/supabase/types").Json;
6474
6490
  floriday_id: string;
@@ -6480,6 +6496,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
6480
6496
  Insert: {
6481
6497
  buyer_organization_id?: string | null;
6482
6498
  connection_id: string;
6499
+ controlled_at?: string | null;
6483
6500
  created_at?: string;
6484
6501
  data: import("../integrations/supabase/types").Json;
6485
6502
  floriday_id: string;
@@ -6491,6 +6508,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
6491
6508
  Update: {
6492
6509
  buyer_organization_id?: string | null;
6493
6510
  connection_id?: string;
6511
+ controlled_at?: string | null;
6494
6512
  created_at?: string;
6495
6513
  data?: import("../integrations/supabase/types").Json;
6496
6514
  floriday_id?: string;
@@ -7392,6 +7410,54 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
7392
7410
  };
7393
7411
  Relationships: [];
7394
7412
  };
7413
+ invoice_timing_settings: {
7414
+ Row: {
7415
+ anchor: string;
7416
+ business_days_only: boolean;
7417
+ created_at: string;
7418
+ enabled: boolean;
7419
+ id: string;
7420
+ offset_days: number;
7421
+ pickup_anchor: string;
7422
+ pickup_business_days_only: boolean;
7423
+ pickup_offset_days: number;
7424
+ pickup_time_of_day: string;
7425
+ singleton: boolean;
7426
+ time_of_day: string;
7427
+ updated_at: string;
7428
+ };
7429
+ Insert: {
7430
+ anchor?: string;
7431
+ business_days_only?: boolean;
7432
+ created_at?: string;
7433
+ enabled?: boolean;
7434
+ id?: string;
7435
+ offset_days?: number;
7436
+ pickup_anchor?: string;
7437
+ pickup_business_days_only?: boolean;
7438
+ pickup_offset_days?: number;
7439
+ pickup_time_of_day?: string;
7440
+ singleton?: boolean;
7441
+ time_of_day?: string;
7442
+ updated_at?: string;
7443
+ };
7444
+ Update: {
7445
+ anchor?: string;
7446
+ business_days_only?: boolean;
7447
+ created_at?: string;
7448
+ enabled?: boolean;
7449
+ id?: string;
7450
+ offset_days?: number;
7451
+ pickup_anchor?: string;
7452
+ pickup_business_days_only?: boolean;
7453
+ pickup_offset_days?: number;
7454
+ pickup_time_of_day?: string;
7455
+ singleton?: boolean;
7456
+ time_of_day?: string;
7457
+ updated_at?: string;
7458
+ };
7459
+ Relationships: [];
7460
+ };
7395
7461
  itk_contact_persons: {
7396
7462
  Row: {
7397
7463
  created_at: string;
@@ -8481,6 +8547,69 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
8481
8547
  };
8482
8548
  Relationships: [];
8483
8549
  };
8550
+ logistics_floriday_pushes: {
8551
+ Row: {
8552
+ attempts: number;
8553
+ created_at: string;
8554
+ first_queued_at: string;
8555
+ fulfillment_order_id: string | null;
8556
+ id: string;
8557
+ last_error: string | null;
8558
+ last_error_at: string | null;
8559
+ last_sent_hash: string | null;
8560
+ locked_by: string | null;
8561
+ locked_until: string | null;
8562
+ next_attempt_at: string;
8563
+ order_ref: string;
8564
+ payload: import("../integrations/supabase/types").Json;
8565
+ payload_hash: string | null;
8566
+ revision: number;
8567
+ sent_at: string | null;
8568
+ status: string;
8569
+ updated_at: string;
8570
+ };
8571
+ Insert: {
8572
+ attempts?: number;
8573
+ created_at?: string;
8574
+ first_queued_at?: string;
8575
+ fulfillment_order_id?: string | null;
8576
+ id?: string;
8577
+ last_error?: string | null;
8578
+ last_error_at?: string | null;
8579
+ last_sent_hash?: string | null;
8580
+ locked_by?: string | null;
8581
+ locked_until?: string | null;
8582
+ next_attempt_at?: string;
8583
+ order_ref: string;
8584
+ payload?: import("../integrations/supabase/types").Json;
8585
+ payload_hash?: string | null;
8586
+ revision?: number;
8587
+ sent_at?: string | null;
8588
+ status?: string;
8589
+ updated_at?: string;
8590
+ };
8591
+ Update: {
8592
+ attempts?: number;
8593
+ created_at?: string;
8594
+ first_queued_at?: string;
8595
+ fulfillment_order_id?: string | null;
8596
+ id?: string;
8597
+ last_error?: string | null;
8598
+ last_error_at?: string | null;
8599
+ last_sent_hash?: string | null;
8600
+ locked_by?: string | null;
8601
+ locked_until?: string | null;
8602
+ next_attempt_at?: string;
8603
+ order_ref?: string;
8604
+ payload?: import("../integrations/supabase/types").Json;
8605
+ payload_hash?: string | null;
8606
+ revision?: number;
8607
+ sent_at?: string | null;
8608
+ status?: string;
8609
+ updated_at?: string;
8610
+ };
8611
+ Relationships: [];
8612
+ };
8484
8613
  logistics_formulas: {
8485
8614
  Row: {
8486
8615
  created_at: string;
@@ -9344,14 +9473,17 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
9344
9473
  };
9345
9474
  mailbox_messages: {
9346
9475
  Row: {
9476
+ attachments: import("../integrations/supabase/types").Json;
9347
9477
  body_html: string | null;
9348
9478
  body_text: string | null;
9479
+ cc_recipients: import("../integrations/supabase/types").Json;
9349
9480
  connection_id: string | null;
9350
9481
  created_at: string;
9351
9482
  error_message: string | null;
9352
9483
  external_id: string | null;
9353
9484
  from_email: string | null;
9354
9485
  from_name: string | null;
9486
+ has_attachments: boolean;
9355
9487
  id: string;
9356
9488
  message_id: string | null;
9357
9489
  profile_id: string | null;
@@ -9359,18 +9491,22 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
9359
9491
  received_at: string | null;
9360
9492
  status: string;
9361
9493
  subject: string | null;
9494
+ to_recipients: import("../integrations/supabase/types").Json;
9362
9495
  uid: number | null;
9363
9496
  updated_at: string;
9364
9497
  };
9365
9498
  Insert: {
9499
+ attachments?: import("../integrations/supabase/types").Json;
9366
9500
  body_html?: string | null;
9367
9501
  body_text?: string | null;
9502
+ cc_recipients?: import("../integrations/supabase/types").Json;
9368
9503
  connection_id?: string | null;
9369
9504
  created_at?: string;
9370
9505
  error_message?: string | null;
9371
9506
  external_id?: string | null;
9372
9507
  from_email?: string | null;
9373
9508
  from_name?: string | null;
9509
+ has_attachments?: boolean;
9374
9510
  id?: string;
9375
9511
  message_id?: string | null;
9376
9512
  profile_id?: string | null;
@@ -9378,18 +9514,22 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
9378
9514
  received_at?: string | null;
9379
9515
  status?: string;
9380
9516
  subject?: string | null;
9517
+ to_recipients?: import("../integrations/supabase/types").Json;
9381
9518
  uid?: number | null;
9382
9519
  updated_at?: string;
9383
9520
  };
9384
9521
  Update: {
9522
+ attachments?: import("../integrations/supabase/types").Json;
9385
9523
  body_html?: string | null;
9386
9524
  body_text?: string | null;
9525
+ cc_recipients?: import("../integrations/supabase/types").Json;
9387
9526
  connection_id?: string | null;
9388
9527
  created_at?: string;
9389
9528
  error_message?: string | null;
9390
9529
  external_id?: string | null;
9391
9530
  from_email?: string | null;
9392
9531
  from_name?: string | null;
9532
+ has_attachments?: boolean;
9393
9533
  id?: string;
9394
9534
  message_id?: string | null;
9395
9535
  profile_id?: string | null;
@@ -9397,6 +9537,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
9397
9537
  received_at?: string | null;
9398
9538
  status?: string;
9399
9539
  subject?: string | null;
9540
+ to_recipients?: import("../integrations/supabase/types").Json;
9400
9541
  uid?: number | null;
9401
9542
  updated_at?: string;
9402
9543
  };
@@ -9804,6 +9945,36 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
9804
9945
  };
9805
9946
  Relationships: [];
9806
9947
  };
9948
+ module_registry: {
9949
+ Row: {
9950
+ created_at: string;
9951
+ is_active: boolean;
9952
+ last_seen_at: string;
9953
+ module_id: string;
9954
+ name: string;
9955
+ shell_id: string | null;
9956
+ sort_order: number | null;
9957
+ };
9958
+ Insert: {
9959
+ created_at?: string;
9960
+ is_active?: boolean;
9961
+ last_seen_at?: string;
9962
+ module_id: string;
9963
+ name: string;
9964
+ shell_id?: string | null;
9965
+ sort_order?: number | null;
9966
+ };
9967
+ Update: {
9968
+ created_at?: string;
9969
+ is_active?: boolean;
9970
+ last_seen_at?: string;
9971
+ module_id?: string;
9972
+ name?: string;
9973
+ shell_id?: string | null;
9974
+ sort_order?: number | null;
9975
+ };
9976
+ Relationships: [];
9977
+ };
9807
9978
  module_runtime_config: {
9808
9979
  Row: {
9809
9980
  key: string;
@@ -10863,6 +11034,42 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
10863
11034
  };
10864
11035
  Relationships: [];
10865
11036
  };
11037
+ order_invoice_links: {
11038
+ Row: {
11039
+ attempts: number;
11040
+ created_at: string;
11041
+ error_message: string | null;
11042
+ id: string;
11043
+ invoice_number: string | null;
11044
+ order_id: string;
11045
+ processed_at: string | null;
11046
+ status: string;
11047
+ updated_at: string;
11048
+ };
11049
+ Insert: {
11050
+ attempts?: number;
11051
+ created_at?: string;
11052
+ error_message?: string | null;
11053
+ id?: string;
11054
+ invoice_number?: string | null;
11055
+ order_id: string;
11056
+ processed_at?: string | null;
11057
+ status?: string;
11058
+ updated_at?: string;
11059
+ };
11060
+ Update: {
11061
+ attempts?: number;
11062
+ created_at?: string;
11063
+ error_message?: string | null;
11064
+ id?: string;
11065
+ invoice_number?: string | null;
11066
+ order_id?: string;
11067
+ processed_at?: string | null;
11068
+ status?: string;
11069
+ updated_at?: string;
11070
+ };
11071
+ Relationships: [];
11072
+ };
10866
11073
  order_items: {
10867
11074
  Row: {
10868
11075
  crates_per_layer: number | null;
@@ -11045,6 +11252,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
11045
11252
  delivery_date: string | null;
11046
11253
  floriday_sales_order_id: string | null;
11047
11254
  id: string;
11255
+ invoice_due_at: string | null;
11048
11256
  is_reservation: boolean;
11049
11257
  notes: string | null;
11050
11258
  order_date: string;
@@ -11066,6 +11274,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
11066
11274
  delivery_date?: string | null;
11067
11275
  floriday_sales_order_id?: string | null;
11068
11276
  id?: string;
11277
+ invoice_due_at?: string | null;
11069
11278
  is_reservation?: boolean;
11070
11279
  notes?: string | null;
11071
11280
  order_date?: string;
@@ -11087,6 +11296,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
11087
11296
  delivery_date?: string | null;
11088
11297
  floriday_sales_order_id?: string | null;
11089
11298
  id?: string;
11299
+ invoice_due_at?: string | null;
11090
11300
  is_reservation?: boolean;
11091
11301
  notes?: string | null;
11092
11302
  order_date?: string;
@@ -12283,22 +12493,27 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
12283
12493
  created_at: string;
12284
12494
  documentnaam: string;
12285
12495
  documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
12496
+ extern_job_id: string | null;
12286
12497
  foutmelding: string | null;
12287
12498
  gebruiker_id: string | null;
12288
12499
  gebruiker_naam: string;
12289
12500
  gestart_op: string | null;
12290
12501
  id: string;
12502
+ idempotentie_sleutel: string | null;
12291
12503
  is_herprint: boolean;
12292
12504
  kopieen: number;
12293
12505
  layout_id: string | null;
12294
12506
  opgepakt_op: string | null;
12295
12507
  paginas: number;
12296
12508
  payload: import("../integrations/supabase/types").Json;
12509
+ pdf_base64: string | null;
12510
+ pdf_url: string | null;
12297
12511
  pogingen: number;
12298
12512
  printer_id: string | null;
12299
12513
  render_html: string | null;
12300
12514
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
12301
12515
  updated_at: string;
12516
+ volgende_poging: string | null;
12302
12517
  voltooid_op: string | null;
12303
12518
  };
12304
12519
  Insert: {
@@ -12307,22 +12522,27 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
12307
12522
  created_at?: string;
12308
12523
  documentnaam?: string;
12309
12524
  documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
12525
+ extern_job_id?: string | null;
12310
12526
  foutmelding?: string | null;
12311
12527
  gebruiker_id?: string | null;
12312
12528
  gebruiker_naam?: string;
12313
12529
  gestart_op?: string | null;
12314
12530
  id?: string;
12531
+ idempotentie_sleutel?: string | null;
12315
12532
  is_herprint?: boolean;
12316
12533
  kopieen?: number;
12317
12534
  layout_id?: string | null;
12318
12535
  opgepakt_op?: string | null;
12319
12536
  paginas?: number;
12320
12537
  payload?: import("../integrations/supabase/types").Json;
12538
+ pdf_base64?: string | null;
12539
+ pdf_url?: string | null;
12321
12540
  pogingen?: number;
12322
12541
  printer_id?: string | null;
12323
12542
  render_html?: string | null;
12324
12543
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
12325
12544
  updated_at?: string;
12545
+ volgende_poging?: string | null;
12326
12546
  voltooid_op?: string | null;
12327
12547
  };
12328
12548
  Update: {
@@ -12331,22 +12551,27 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
12331
12551
  created_at?: string;
12332
12552
  documentnaam?: string;
12333
12553
  documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
12554
+ extern_job_id?: string | null;
12334
12555
  foutmelding?: string | null;
12335
12556
  gebruiker_id?: string | null;
12336
12557
  gebruiker_naam?: string;
12337
12558
  gestart_op?: string | null;
12338
12559
  id?: string;
12560
+ idempotentie_sleutel?: string | null;
12339
12561
  is_herprint?: boolean;
12340
12562
  kopieen?: number;
12341
12563
  layout_id?: string | null;
12342
12564
  opgepakt_op?: string | null;
12343
12565
  paginas?: number;
12344
12566
  payload?: import("../integrations/supabase/types").Json;
12567
+ pdf_base64?: string | null;
12568
+ pdf_url?: string | null;
12345
12569
  pogingen?: number;
12346
12570
  printer_id?: string | null;
12347
12571
  render_html?: string | null;
12348
12572
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
12349
12573
  updated_at?: string;
12574
+ volgende_poging?: string | null;
12350
12575
  voltooid_op?: string | null;
12351
12576
  };
12352
12577
  Relationships: [{
@@ -12369,6 +12594,63 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
12369
12594
  referencedColumns: ["id"];
12370
12595
  }];
12371
12596
  };
12597
+ print_queue_runners: {
12598
+ Row: {
12599
+ actief: boolean;
12600
+ basis_url: string;
12601
+ created_at: string;
12602
+ id: string;
12603
+ laatst_gezien: string;
12604
+ tick_sleutel: string;
12605
+ updated_at: string;
12606
+ };
12607
+ Insert: {
12608
+ actief?: boolean;
12609
+ basis_url: string;
12610
+ created_at?: string;
12611
+ id?: string;
12612
+ laatst_gezien?: string;
12613
+ tick_sleutel?: string;
12614
+ updated_at?: string;
12615
+ };
12616
+ Update: {
12617
+ actief?: boolean;
12618
+ basis_url?: string;
12619
+ created_at?: string;
12620
+ id?: string;
12621
+ laatst_gezien?: string;
12622
+ tick_sleutel?: string;
12623
+ updated_at?: string;
12624
+ };
12625
+ Relationships: [];
12626
+ };
12627
+ print_queue_settings: {
12628
+ Row: {
12629
+ bewaar_bestanden_dagen: number;
12630
+ bewaar_opdrachten_dagen: number;
12631
+ created_at: string;
12632
+ dubbel_venster_minuten: number;
12633
+ id: string;
12634
+ updated_at: string;
12635
+ };
12636
+ Insert: {
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
+ Update: {
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
+ Relationships: [];
12653
+ };
12372
12654
  print_rules: {
12373
12655
  Row: {
12374
12656
  actief: boolean;
@@ -12529,6 +12811,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
12529
12811
  agent_id: string | null;
12530
12812
  created_at: string;
12531
12813
  driver: string;
12814
+ extern_printer_id: string | null;
12532
12815
  id: string;
12533
12816
  ip_adres: string | null;
12534
12817
  laatst_gezien: string | null;
@@ -12550,6 +12833,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
12550
12833
  agent_id?: string | null;
12551
12834
  created_at?: string;
12552
12835
  driver?: string;
12836
+ extern_printer_id?: string | null;
12553
12837
  id?: string;
12554
12838
  ip_adres?: string | null;
12555
12839
  laatst_gezien?: string | null;
@@ -12571,6 +12855,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
12571
12855
  agent_id?: string | null;
12572
12856
  created_at?: string;
12573
12857
  driver?: string;
12858
+ extern_printer_id?: string | null;
12574
12859
  id?: string;
12575
12860
  ip_adres?: string | null;
12576
12861
  laatst_gezien?: string | null;
@@ -15206,6 +15491,8 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
15206
15491
  };
15207
15492
  twinfield_invoice_settings: {
15208
15493
  Row: {
15494
+ auto_invoice_enabled: boolean;
15495
+ auto_invoice_trigger_statuses: string[];
15209
15496
  created_at: string;
15210
15497
  debtor_gl_account: string;
15211
15498
  default_credit_invoice_type: string | null;
@@ -15226,6 +15513,8 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
15226
15513
  vat_code_export: string | null;
15227
15514
  };
15228
15515
  Insert: {
15516
+ auto_invoice_enabled?: boolean;
15517
+ auto_invoice_trigger_statuses?: string[];
15229
15518
  created_at?: string;
15230
15519
  debtor_gl_account?: string;
15231
15520
  default_credit_invoice_type?: string | null;
@@ -15246,6 +15535,8 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
15246
15535
  vat_code_export?: string | null;
15247
15536
  };
15248
15537
  Update: {
15538
+ auto_invoice_enabled?: boolean;
15539
+ auto_invoice_trigger_statuses?: string[];
15249
15540
  created_at?: string;
15250
15541
  debtor_gl_account?: string;
15251
15542
  default_credit_invoice_type?: string | null;
@@ -16308,6 +16599,33 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
16308
16599
  referencedColumns: ["id"];
16309
16600
  }];
16310
16601
  };
16602
+ user_module_permissions: {
16603
+ Row: {
16604
+ created_at: string;
16605
+ id: string;
16606
+ module_id: string;
16607
+ permission: string;
16608
+ updated_at: string;
16609
+ user_id: string;
16610
+ };
16611
+ Insert: {
16612
+ created_at?: string;
16613
+ id?: string;
16614
+ module_id: string;
16615
+ permission: string;
16616
+ updated_at?: string;
16617
+ user_id: string;
16618
+ };
16619
+ Update: {
16620
+ created_at?: string;
16621
+ id?: string;
16622
+ module_id?: string;
16623
+ permission?: string;
16624
+ updated_at?: string;
16625
+ user_id?: string;
16626
+ };
16627
+ Relationships: [];
16628
+ };
16311
16629
  user_roles: {
16312
16630
  Row: {
16313
16631
  created_at: string;
@@ -18141,6 +18459,10 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
18141
18459
  processed_items: number;
18142
18460
  }[];
18143
18461
  };
18462
+ backfill_order_auto_invoice_queue: {
18463
+ Args: never;
18464
+ Returns: number;
18465
+ };
18144
18466
  calculate_layer_stock: {
18145
18467
  Args: {
18146
18468
  p_product_id: string;
@@ -18175,6 +18497,77 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
18175
18497
  };
18176
18498
  Returns: import("../integrations/supabase/types").Json;
18177
18499
  };
18500
+ claim_cloud_print_jobs: {
18501
+ Args: {
18502
+ _max?: number;
18503
+ };
18504
+ Returns: {
18505
+ agent_id: string | null;
18506
+ bron_job_id: string | null;
18507
+ created_at: string;
18508
+ documentnaam: string;
18509
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
18510
+ extern_job_id: string | null;
18511
+ foutmelding: string | null;
18512
+ gebruiker_id: string | null;
18513
+ gebruiker_naam: string;
18514
+ gestart_op: string | null;
18515
+ id: string;
18516
+ idempotentie_sleutel: string | null;
18517
+ is_herprint: boolean;
18518
+ kopieen: number;
18519
+ layout_id: string | null;
18520
+ opgepakt_op: string | null;
18521
+ paginas: number;
18522
+ payload: import("../integrations/supabase/types").Json;
18523
+ pdf_base64: string | null;
18524
+ pdf_url: string | null;
18525
+ pogingen: number;
18526
+ printer_id: string | null;
18527
+ render_html: string | null;
18528
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
18529
+ updated_at: string;
18530
+ volgende_poging: string | null;
18531
+ voltooid_op: string | null;
18532
+ }[];
18533
+ SetofOptions: {
18534
+ from: "*";
18535
+ to: "print_jobs";
18536
+ isOneToOne: false;
18537
+ isSetofReturn: true;
18538
+ };
18539
+ };
18540
+ claim_floriday_stock_queue: {
18541
+ Args: {
18542
+ p_limit?: number;
18543
+ p_worker?: string;
18544
+ };
18545
+ Returns: {
18546
+ attempts: number;
18547
+ connection_id: string;
18548
+ created_at: string;
18549
+ desired_available: boolean | null;
18550
+ gateway_attempt_id: string | null;
18551
+ id: string;
18552
+ last_error: string | null;
18553
+ locked_at: string | null;
18554
+ locked_by: string | null;
18555
+ next_attempt_at: string;
18556
+ number_of_pieces: number;
18557
+ sent_at: string | null;
18558
+ status: string;
18559
+ superseded_by: string | null;
18560
+ trade_item_id: string;
18561
+ updated_at: string;
18562
+ user_id: string;
18563
+ }[];
18564
+ SetofOptions: {
18565
+ from: "*";
18566
+ to: "floriday_continuous_stock_queue";
18567
+ isOneToOne: false;
18568
+ isSetofReturn: true;
18569
+ };
18570
+ };
18178
18571
  claim_logistics_tasks: {
18179
18572
  Args: {
18180
18573
  _limit?: number;
@@ -18234,22 +18627,27 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
18234
18627
  created_at: string;
18235
18628
  documentnaam: string;
18236
18629
  documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
18630
+ extern_job_id: string | null;
18237
18631
  foutmelding: string | null;
18238
18632
  gebruiker_id: string | null;
18239
18633
  gebruiker_naam: string;
18240
18634
  gestart_op: string | null;
18241
18635
  id: string;
18636
+ idempotentie_sleutel: string | null;
18242
18637
  is_herprint: boolean;
18243
18638
  kopieen: number;
18244
18639
  layout_id: string | null;
18245
18640
  opgepakt_op: string | null;
18246
18641
  paginas: number;
18247
18642
  payload: import("../integrations/supabase/types").Json;
18643
+ pdf_base64: string | null;
18644
+ pdf_url: string | null;
18248
18645
  pogingen: number;
18249
18646
  printer_id: string | null;
18250
18647
  render_html: string | null;
18251
18648
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
18252
18649
  updated_at: string;
18650
+ volgende_poging: string | null;
18253
18651
  voltooid_op: string | null;
18254
18652
  }[];
18255
18653
  SetofOptions: {
@@ -18287,10 +18685,28 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
18287
18685
  isSetofReturn: true;
18288
18686
  };
18289
18687
  };
18688
+ cleanup_floriday_stock_queue: {
18689
+ Args: never;
18690
+ Returns: undefined;
18691
+ };
18290
18692
  cleanup_old_bookings: {
18291
18693
  Args: never;
18292
18694
  Returns: undefined;
18293
18695
  };
18696
+ cleanup_voorraad_module_history: {
18697
+ Args: never;
18698
+ Returns: undefined;
18699
+ };
18700
+ complete_floriday_stock_queue: {
18701
+ Args: {
18702
+ p_attempt_id?: string;
18703
+ p_error?: string;
18704
+ p_id: string;
18705
+ p_ok: boolean;
18706
+ p_permanent?: boolean;
18707
+ };
18708
+ Returns: undefined;
18709
+ };
18294
18710
  consume_bom_for_production: {
18295
18711
  Args: {
18296
18712
  p_connection_id: string;
@@ -18402,6 +18818,13 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
18402
18818
  };
18403
18819
  Returns: import("../integrations/supabase/types").Json;
18404
18820
  };
18821
+ effective_module_permission: {
18822
+ Args: {
18823
+ _module_id: string;
18824
+ _user_id: string;
18825
+ };
18826
+ Returns: string;
18827
+ };
18405
18828
  email_auth_decrypt: {
18406
18829
  Args: {
18407
18830
  cipher: string;
@@ -19205,6 +19628,51 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
19205
19628
  isSetofReturn: false;
19206
19629
  };
19207
19630
  };
19631
+ logistics_floriday_claim_pushes: {
19632
+ Args: {
19633
+ _lease_seconds?: number;
19634
+ _limit?: number;
19635
+ _worker?: string;
19636
+ };
19637
+ Returns: {
19638
+ attempts: number;
19639
+ fulfillment_order_id: string;
19640
+ id: string;
19641
+ last_sent_hash: string;
19642
+ order_ref: string;
19643
+ payload: import("../integrations/supabase/types").Json;
19644
+ payload_hash: string;
19645
+ revision: number;
19646
+ }[];
19647
+ };
19648
+ logistics_floriday_finish_push: {
19649
+ Args: {
19650
+ _error?: string;
19651
+ _fulfillment_order_id?: string;
19652
+ _id: string;
19653
+ _max_age_hours?: number;
19654
+ _max_attempts?: number;
19655
+ _ok: boolean;
19656
+ _permanent?: boolean;
19657
+ _revision: number;
19658
+ _sent_hash?: string;
19659
+ };
19660
+ Returns: string;
19661
+ };
19662
+ logistics_floriday_prune_pushes: {
19663
+ Args: {
19664
+ _days?: number;
19665
+ };
19666
+ Returns: number;
19667
+ };
19668
+ logistics_floriday_queue_push: {
19669
+ Args: {
19670
+ _order_ref: string;
19671
+ _payload?: import("../integrations/supabase/types").Json;
19672
+ _payload_hash?: string;
19673
+ };
19674
+ Returns: string;
19675
+ };
19208
19676
  logistics_live_carriers: {
19209
19677
  Args: {
19210
19678
  p_order_ref: string;
@@ -19495,6 +19963,13 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
19495
19963
  };
19496
19964
  Returns: undefined;
19497
19965
  };
19966
+ my_module_permissions: {
19967
+ Args: never;
19968
+ Returns: {
19969
+ module_id: string;
19970
+ permission: string;
19971
+ }[];
19972
+ };
19498
19973
  next_manufacture_partij: {
19499
19974
  Args: {
19500
19975
  _tenant_id: string;
@@ -19545,6 +20020,13 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
19545
20020
  };
19546
20021
  Returns: boolean;
19547
20022
  };
20023
+ opruim_print_historie: {
20024
+ Args: never;
20025
+ Returns: {
20026
+ ontdaan: number;
20027
+ verwijderd: number;
20028
+ }[];
20029
+ };
19548
20030
  order_number_prefix: {
19549
20031
  Args: {
19550
20032
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -19552,6 +20034,15 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
19552
20034
  };
19553
20035
  Returns: string;
19554
20036
  };
20037
+ pick_active_printers: {
20038
+ Args: never;
20039
+ Returns: {
20040
+ id: string;
20041
+ locatie: string;
20042
+ naam: string;
20043
+ online: boolean;
20044
+ }[];
20045
+ };
19555
20046
  pick_claim_document: {
19556
20047
  Args: {
19557
20048
  _queue_item_id: string;
@@ -19738,6 +20229,52 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
19738
20229
  };
19739
20230
  Returns: undefined;
19740
20231
  };
20232
+ pick_reset_print: {
20233
+ Args: {
20234
+ _queue_item_id: string;
20235
+ _session_id: string;
20236
+ };
20237
+ Returns: {
20238
+ announced_at: string;
20239
+ assigned_user_id: string | null;
20240
+ barcode: string | null;
20241
+ cancelled_at: string | null;
20242
+ cart_count: number;
20243
+ completed_at: string | null;
20244
+ country_code: string | null;
20245
+ created_at: string;
20246
+ customer_name: string | null;
20247
+ delivery_address: string | null;
20248
+ document_number: string | null;
20249
+ document_type_id: string | null;
20250
+ due_at: string | null;
20251
+ id: string;
20252
+ is_urgent: boolean;
20253
+ line_count: number;
20254
+ order_number: string | null;
20255
+ order_type: string | null;
20256
+ payload: import("../integrations/supabase/types").Json;
20257
+ print_count: number;
20258
+ print_job_id: string | null;
20259
+ printed_at: string | null;
20260
+ printed_by: string | null;
20261
+ printer_id: string | null;
20262
+ priority: number;
20263
+ reference: string | null;
20264
+ route: string | null;
20265
+ screen_id: string | null;
20266
+ station_id: string | null;
20267
+ status_id: string | null;
20268
+ updated_at: string;
20269
+ warnings: import("../integrations/supabase/types").Json;
20270
+ };
20271
+ SetofOptions: {
20272
+ from: "*";
20273
+ to: "pick_queue";
20274
+ isOneToOne: true;
20275
+ isSetofReturn: false;
20276
+ };
20277
+ };
19741
20278
  pick_station_dashboard: {
19742
20279
  Args: never;
19743
20280
  Returns: {
@@ -19884,6 +20421,12 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
19884
20421
  };
19885
20422
  Returns: undefined;
19886
20423
  };
20424
+ reset_stalled_floriday_stock_queue: {
20425
+ Args: {
20426
+ p_include_failed?: boolean;
20427
+ };
20428
+ Returns: number;
20429
+ };
19887
20430
  resolve_group_allocation: {
19888
20431
  Args: {
19889
20432
  _needed: number;
@@ -19928,14 +20471,28 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
19928
20471
  };
19929
20472
  Returns: import("../integrations/supabase/types").Json;
19930
20473
  };
20474
+ ruim_print_jobs_op: {
20475
+ Args: {
20476
+ _bewaar_dagen?: number;
20477
+ };
20478
+ Returns: number;
20479
+ };
19931
20480
  run_floriday_continuous_stock_sync: {
19932
20481
  Args: never;
19933
20482
  Returns: undefined;
19934
20483
  };
20484
+ run_floriday_stock_queue_process: {
20485
+ Args: never;
20486
+ Returns: undefined;
20487
+ };
19935
20488
  run_logistics_tasks_dispatch: {
19936
20489
  Args: never;
19937
20490
  Returns: undefined;
19938
20491
  };
20492
+ run_print_queue_ticks: {
20493
+ Args: never;
20494
+ Returns: number;
20495
+ };
19939
20496
  run_twinfield_queue_tick: {
19940
20497
  Args: never;
19941
20498
  Returns: undefined;
@@ -20176,6 +20733,13 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
20176
20733
  };
20177
20734
  Returns: number;
20178
20735
  };
20736
+ schedule_floriday_stock_queue_process: {
20737
+ Args: {
20738
+ p_apikey: string;
20739
+ p_url: string;
20740
+ };
20741
+ Returns: number;
20742
+ };
20179
20743
  schedule_floriday_token_refresh: {
20180
20744
  Args: {
20181
20745
  p_apikey: string;
@@ -20316,6 +20880,15 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
20316
20880
  };
20317
20881
  Returns: undefined;
20318
20882
  };
20883
+ trade_item_stock_duplicates: {
20884
+ Args: never;
20885
+ Returns: {
20886
+ keys: string[];
20887
+ product_id: string;
20888
+ product_name: string;
20889
+ row_count: number;
20890
+ }[];
20891
+ };
20319
20892
  try_debtor_lock: {
20320
20893
  Args: {
20321
20894
  _group_key: string;
@@ -20365,7 +20938,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
20365
20938
  };
20366
20939
  Enums: {
20367
20940
  ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
20368
- app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin";
20941
+ app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
20369
20942
  doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
20370
20943
  doc_orientation: "portrait" | "landscape";
20371
20944
  exact_env: "staging" | "live";