@flowselections/floriday-verkoop-module 1.0.60 → 1.0.61

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 (140) hide show
  1. package/dist-lib/components/floriday/FlorydaySyncHealthBanner.d.ts +9 -0
  2. package/dist-lib/components/floriday/FlorydaySyncHealthBanner.d.ts.map +1 -0
  3. package/dist-lib/components/floriday/FlorydaySyncHealthBanner.js +26 -0
  4. package/dist-lib/components/karindeling/AfmetingenTab.d.ts +6 -0
  5. package/dist-lib/components/karindeling/AfmetingenTab.d.ts.map +1 -0
  6. package/dist-lib/components/karindeling/AfmetingenTab.js +128 -0
  7. package/dist-lib/components/karindeling/KarindelingPage.d.ts +2 -0
  8. package/dist-lib/components/karindeling/KarindelingPage.d.ts.map +1 -0
  9. package/dist-lib/components/karindeling/KarindelingPage.js +102 -0
  10. package/dist-lib/components/ui/dropdown-menu.d.ts +9 -0
  11. package/dist-lib/components/ui/dropdown-menu.d.ts.map +1 -0
  12. package/dist-lib/components/ui/dropdown-menu.js +14 -0
  13. package/dist-lib/components/verkoop/AnalyticsCards.d.ts +1 -1
  14. package/dist-lib/components/verkoop/AnalyticsCards.d.ts.map +1 -1
  15. package/dist-lib/components/verkoop/AutoFulfillmentStatusCard.d.ts +1 -1
  16. package/dist-lib/components/verkoop/AutoFulfillmentStatusCard.d.ts.map +1 -1
  17. package/dist-lib/components/verkoop/CartAssignmentWizard.d.ts +1 -1
  18. package/dist-lib/components/verkoop/CartAssignmentWizard.d.ts.map +1 -1
  19. package/dist-lib/components/verkoop/CartLayersDialog.d.ts +1 -1
  20. package/dist-lib/components/verkoop/CartLayersDialog.d.ts.map +1 -1
  21. package/dist-lib/components/verkoop/CreateOrderDialog.d.ts +5 -0
  22. package/dist-lib/components/verkoop/CreateOrderDialog.d.ts.map +1 -0
  23. package/dist-lib/components/verkoop/CreateOrderDialog.js +33 -0
  24. package/dist-lib/components/verkoop/CreateOrderPage.d.ts +1 -1
  25. package/dist-lib/components/verkoop/CreateOrderPage.d.ts.map +1 -1
  26. package/dist-lib/components/verkoop/DiagnoseConnectionDialog.d.ts +1 -1
  27. package/dist-lib/components/verkoop/DiagnoseConnectionDialog.d.ts.map +1 -1
  28. package/dist-lib/components/verkoop/EditLocalOrderDialog.d.ts +1 -1
  29. package/dist-lib/components/verkoop/EditLocalOrderDialog.d.ts.map +1 -1
  30. package/dist-lib/components/verkoop/EngineBufferCard.d.ts +1 -1
  31. package/dist-lib/components/verkoop/EngineBufferCard.d.ts.map +1 -1
  32. package/dist-lib/components/verkoop/InvoiceTimingSettings.d.ts +1 -1
  33. package/dist-lib/components/verkoop/InvoiceTimingSettings.d.ts.map +1 -1
  34. package/dist-lib/components/verkoop/OrderAfleverbrievenCard.d.ts +1 -1
  35. package/dist-lib/components/verkoop/OrderAfleverbrievenCard.d.ts.map +1 -1
  36. package/dist-lib/components/verkoop/OrderCarrierPicker.d.ts +1 -1
  37. package/dist-lib/components/verkoop/OrderCarrierPicker.d.ts.map +1 -1
  38. package/dist-lib/components/verkoop/OrderControlStatusCard.d.ts +1 -1
  39. package/dist-lib/components/verkoop/OrderControlStatusCard.d.ts.map +1 -1
  40. package/dist-lib/components/verkoop/OrderKarindelingCard.d.ts +1 -1
  41. package/dist-lib/components/verkoop/OrderKarindelingCard.d.ts.map +1 -1
  42. package/dist-lib/components/verkoop/OrderPickupMomentPicker.d.ts +1 -1
  43. package/dist-lib/components/verkoop/OrderPickupMomentPicker.d.ts.map +1 -1
  44. package/dist-lib/components/verkoop/OrderShipmentsCard.d.ts +1 -1
  45. package/dist-lib/components/verkoop/OrderShipmentsCard.d.ts.map +1 -1
  46. package/dist-lib/components/verkoop/ProductDimensionsSettings.d.ts +1 -1
  47. package/dist-lib/components/verkoop/ProductDimensionsSettings.d.ts.map +1 -1
  48. package/dist-lib/components/verkoop/SalesOrderDetailPage.d.ts +1 -1
  49. package/dist-lib/components/verkoop/SalesOrderDetailPage.d.ts.map +1 -1
  50. package/dist-lib/components/verkoop/SalesOrderDetailView.d.ts +1 -1
  51. package/dist-lib/components/verkoop/SalesOrderDetailView.d.ts.map +1 -1
  52. package/dist-lib/components/verkoop/SalesOrdersFilterPanel.d.ts +1 -1
  53. package/dist-lib/components/verkoop/SalesOrdersFilterPanel.d.ts.map +1 -1
  54. package/dist-lib/components/verkoop/SalesOrdersFilters.d.ts +1 -1
  55. package/dist-lib/components/verkoop/SalesOrdersFilters.d.ts.map +1 -1
  56. package/dist-lib/components/verkoop/SalesOrdersTable.d.ts +1 -2
  57. package/dist-lib/components/verkoop/SalesOrdersTable.d.ts.map +1 -1
  58. package/dist-lib/components/verkoop/SearchableSelect.d.ts +1 -1
  59. package/dist-lib/components/verkoop/SearchableSelect.d.ts.map +1 -1
  60. package/dist-lib/components/verkoop/StockConsumptionAlertsBanner.d.ts +1 -1
  61. package/dist-lib/components/verkoop/StockConsumptionAlertsBanner.d.ts.map +1 -1
  62. package/dist-lib/components/verkoop/VerkoopOrdersPage.d.ts +1 -1
  63. package/dist-lib/components/verkoop/VerkoopOrdersPage.d.ts.map +1 -1
  64. package/dist-lib/components/verkoop/WeekCalendar.d.ts +1 -1
  65. package/dist-lib/components/verkoop/WeekCalendar.d.ts.map +1 -1
  66. package/dist-lib/integrations/supabase/auth-middleware.d.ts +280 -0
  67. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  68. package/dist-lib/integrations/supabase/client.server.d.ts +280 -0
  69. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  70. package/dist-lib/integrations/supabase/types.d.ts +280 -0
  71. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  72. package/dist-lib/lib/buffer-events.functions.d.ts +280 -0
  73. package/dist-lib/lib/buffer-events.functions.d.ts.map +1 -1
  74. package/dist-lib/lib/cart-layers.functions.d.ts +1124 -36
  75. package/dist-lib/lib/cart-layers.functions.d.ts.map +1 -1
  76. package/dist-lib/lib/cart-lock.functions.d.ts +280 -0
  77. package/dist-lib/lib/cart-lock.functions.d.ts.map +1 -1
  78. package/dist-lib/lib/cart-planning-settings.functions.d.ts +3080 -0
  79. package/dist-lib/lib/cart-planning-settings.functions.d.ts.map +1 -1
  80. package/dist-lib/lib/cart-replan.functions.d.ts +840 -0
  81. package/dist-lib/lib/cart-replan.functions.d.ts.map +1 -1
  82. package/dist-lib/lib/create-order.functions.d.ts +4777 -102
  83. package/dist-lib/lib/create-order.functions.d.ts.map +1 -1
  84. package/dist-lib/lib/cron/push-order-statuses.d.ts +4 -0
  85. package/dist-lib/lib/cron/push-order-statuses.d.ts.map +1 -0
  86. package/dist-lib/lib/cron/push-order-statuses.js +23 -0
  87. package/dist-lib/lib/floriday/floriday.server.d.ts +14 -0
  88. package/dist-lib/lib/floriday/floriday.server.d.ts.map +1 -0
  89. package/dist-lib/lib/floriday/floriday.server.js +92 -0
  90. package/dist-lib/lib/floriday/sales-orders.functions.d.ts +4736 -0
  91. package/dist-lib/lib/floriday/sales-orders.functions.d.ts.map +1 -0
  92. package/dist-lib/lib/floriday/sales-orders.functions.js +193 -0
  93. package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts +13288 -2362
  94. package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts.map +1 -1
  95. package/dist-lib/lib/floriday-logistic-labels.functions.d.ts +560 -0
  96. package/dist-lib/lib/floriday-logistic-labels.functions.d.ts.map +1 -1
  97. package/dist-lib/lib/floriday-mirror.functions.d.ts +280 -0
  98. package/dist-lib/lib/floriday-mirror.functions.d.ts.map +1 -1
  99. package/dist-lib/lib/floriday-mirror.functions.js +282 -117
  100. package/dist-lib/lib/floriday-public.functions.d.ts +1960 -0
  101. package/dist-lib/lib/floriday-public.functions.d.ts.map +1 -1
  102. package/dist-lib/lib/floriday-status-sync.server.d.ts +14 -0
  103. package/dist-lib/lib/floriday-status-sync.server.d.ts.map +1 -0
  104. package/dist-lib/lib/floriday-status-sync.server.js +130 -0
  105. package/dist-lib/lib/floriday-writes.functions.d.ts +560 -0
  106. package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
  107. package/dist-lib/lib/invoice-timing.functions.d.ts +1120 -0
  108. package/dist-lib/lib/invoice-timing.functions.d.ts.map +1 -1
  109. package/dist-lib/lib/load-carriers.functions.d.ts +280 -0
  110. package/dist-lib/lib/load-carriers.functions.d.ts.map +1 -1
  111. package/dist-lib/lib/logistics-engine.functions.d.ts +1405 -15
  112. package/dist-lib/lib/logistics-engine.functions.d.ts.map +1 -1
  113. package/dist-lib/lib/logistics-stock.functions.d.ts +560 -0
  114. package/dist-lib/lib/logistics-stock.functions.d.ts.map +1 -1
  115. package/dist-lib/lib/order-addresses.functions.d.ts +280 -0
  116. package/dist-lib/lib/order-addresses.functions.d.ts.map +1 -1
  117. package/dist-lib/lib/order-buffers.functions.d.ts +840 -0
  118. package/dist-lib/lib/order-buffers.functions.d.ts.map +1 -1
  119. package/dist-lib/lib/order-carrier.functions.d.ts +560 -0
  120. package/dist-lib/lib/order-carrier.functions.d.ts.map +1 -1
  121. package/dist-lib/lib/order-fulfill.functions.d.ts +280 -0
  122. package/dist-lib/lib/order-fulfill.functions.d.ts.map +1 -1
  123. package/dist-lib/lib/order-pickup.functions.d.ts +560 -0
  124. package/dist-lib/lib/order-pickup.functions.d.ts.map +1 -1
  125. package/dist-lib/lib/order-shipments.functions.d.ts +1120 -0
  126. package/dist-lib/lib/order-shipments.functions.d.ts.map +1 -1
  127. package/dist-lib/lib/product-dimensions.functions.d.ts +560 -0
  128. package/dist-lib/lib/product-dimensions.functions.d.ts.map +1 -1
  129. package/dist-lib/lib/salesorders-list.functions.d.ts +560 -0
  130. package/dist-lib/lib/salesorders-list.functions.d.ts.map +1 -1
  131. package/dist-lib/lib/salesorders-list.server.d.ts.map +1 -1
  132. package/dist-lib/lib/salesorders-list.server.js +62 -3
  133. package/dist-lib/lib/salesorders.functions.d.ts +1680 -0
  134. package/dist-lib/lib/salesorders.functions.d.ts.map +1 -1
  135. package/dist-lib/lib/salesorders.functions.js +6 -1
  136. package/dist-lib/lib/stock-consumption-alerts.functions.d.ts +560 -0
  137. package/dist-lib/lib/stock-consumption-alerts.functions.d.ts.map +1 -1
  138. package/dist-lib/lib/tradeitems.functions.d.ts +280 -0
  139. package/dist-lib/lib/tradeitems.functions.d.ts.map +1 -1
  140. package/package.json +1 -1
@@ -10123,22 +10123,31 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
10123
10123
  };
10124
10124
  logistics_floriday_push_refusals: {
10125
10125
  Row: {
10126
+ action: string | null;
10126
10127
  created_at: string;
10127
10128
  id: string;
10128
10129
  order_ref: string;
10129
10130
  reason: string;
10131
+ source_module: string | null;
10132
+ source_shell: string | null;
10130
10133
  };
10131
10134
  Insert: {
10135
+ action?: string | null;
10132
10136
  created_at?: string;
10133
10137
  id?: string;
10134
10138
  order_ref: string;
10135
10139
  reason: string;
10140
+ source_module?: string | null;
10141
+ source_shell?: string | null;
10136
10142
  };
10137
10143
  Update: {
10144
+ action?: string | null;
10138
10145
  created_at?: string;
10139
10146
  id?: string;
10140
10147
  order_ref?: string;
10141
10148
  reason?: string;
10149
+ source_module?: string | null;
10150
+ source_shell?: string | null;
10142
10151
  };
10143
10152
  Relationships: [];
10144
10153
  };
@@ -10217,6 +10226,42 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
10217
10226
  };
10218
10227
  Relationships: [];
10219
10228
  };
10229
+ logistics_floriday_status_sends: {
10230
+ Row: {
10231
+ action: string;
10232
+ created_at: string;
10233
+ detail: string | null;
10234
+ http_status: number | null;
10235
+ id: string;
10236
+ ok: boolean;
10237
+ order_ref: string;
10238
+ source_module: string | null;
10239
+ source_shell: string | null;
10240
+ };
10241
+ Insert: {
10242
+ action: string;
10243
+ created_at?: string;
10244
+ detail?: string | null;
10245
+ http_status?: number | null;
10246
+ id?: string;
10247
+ ok?: boolean;
10248
+ order_ref: string;
10249
+ source_module?: string | null;
10250
+ source_shell?: string | null;
10251
+ };
10252
+ Update: {
10253
+ action?: string;
10254
+ created_at?: string;
10255
+ detail?: string | null;
10256
+ http_status?: number | null;
10257
+ id?: string;
10258
+ ok?: boolean;
10259
+ order_ref?: string;
10260
+ source_module?: string | null;
10261
+ source_shell?: string | null;
10262
+ };
10263
+ Relationships: [];
10264
+ };
10220
10265
  logistics_formulas: {
10221
10266
  Row: {
10222
10267
  created_at: string;
@@ -10289,6 +10334,66 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
10289
10334
  };
10290
10335
  Relationships: [];
10291
10336
  };
10337
+ logistics_opening_exceptions: {
10338
+ Row: {
10339
+ closes: string | null;
10340
+ created_at: string;
10341
+ day: string;
10342
+ id: string;
10343
+ is_closed: boolean;
10344
+ note: string | null;
10345
+ opens: string | null;
10346
+ };
10347
+ Insert: {
10348
+ closes?: string | null;
10349
+ created_at?: string;
10350
+ day: string;
10351
+ id?: string;
10352
+ is_closed?: boolean;
10353
+ note?: string | null;
10354
+ opens?: string | null;
10355
+ };
10356
+ Update: {
10357
+ closes?: string | null;
10358
+ created_at?: string;
10359
+ day?: string;
10360
+ id?: string;
10361
+ is_closed?: boolean;
10362
+ note?: string | null;
10363
+ opens?: string | null;
10364
+ };
10365
+ Relationships: [];
10366
+ };
10367
+ logistics_opening_hours: {
10368
+ Row: {
10369
+ closes: string;
10370
+ created_at: string;
10371
+ id: string;
10372
+ is_active: boolean;
10373
+ note: string | null;
10374
+ opens: string;
10375
+ weekday: number;
10376
+ };
10377
+ Insert: {
10378
+ closes: string;
10379
+ created_at?: string;
10380
+ id?: string;
10381
+ is_active?: boolean;
10382
+ note?: string | null;
10383
+ opens: string;
10384
+ weekday: number;
10385
+ };
10386
+ Update: {
10387
+ closes?: string;
10388
+ created_at?: string;
10389
+ id?: string;
10390
+ is_active?: boolean;
10391
+ note?: string | null;
10392
+ opens?: string;
10393
+ weekday?: number;
10394
+ };
10395
+ Relationships: [];
10396
+ };
10292
10397
  logistics_pickup_moments: {
10293
10398
  Row: {
10294
10399
  carrier_ref: string | null;
@@ -11081,6 +11186,24 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
11081
11186
  };
11082
11187
  Relationships: [];
11083
11188
  };
11189
+ logistics_time_settings: {
11190
+ Row: {
11191
+ id: boolean;
11192
+ timezone: string;
11193
+ updated_at: string;
11194
+ };
11195
+ Insert: {
11196
+ id?: boolean;
11197
+ timezone: string;
11198
+ updated_at?: string;
11199
+ };
11200
+ Update: {
11201
+ id?: boolean;
11202
+ timezone?: string;
11203
+ updated_at?: string;
11204
+ };
11205
+ Relationships: [];
11206
+ };
11084
11207
  logistics_variables: {
11085
11208
  Row: {
11086
11209
  created_at: string;
@@ -13471,6 +13594,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
13471
13594
  customer_name: string;
13472
13595
  deleted_at: string | null;
13473
13596
  delivery_date: string | null;
13597
+ floriday_order_group_key: string | null;
13474
13598
  floriday_sales_order_id: string | null;
13475
13599
  id: string;
13476
13600
  invoice_due_at: string | null;
@@ -13498,6 +13622,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
13498
13622
  customer_name?: string;
13499
13623
  deleted_at?: string | null;
13500
13624
  delivery_date?: string | null;
13625
+ floriday_order_group_key?: string | null;
13501
13626
  floriday_sales_order_id?: string | null;
13502
13627
  id?: string;
13503
13628
  invoice_due_at?: string | null;
@@ -13525,6 +13650,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
13525
13650
  customer_name?: string;
13526
13651
  deleted_at?: string | null;
13527
13652
  delivery_date?: string | null;
13653
+ floriday_order_group_key?: string | null;
13528
13654
  floriday_sales_order_id?: string | null;
13529
13655
  id?: string;
13530
13656
  invoice_due_at?: string | null;
@@ -19388,6 +19514,36 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
19388
19514
  referencedColumns: ["id"];
19389
19515
  }];
19390
19516
  };
19517
+ voorraad_buffer_state: {
19518
+ Row: {
19519
+ buffer_id: string;
19520
+ buffer_key: string | null;
19521
+ closed_at: string | null;
19522
+ created_at: string;
19523
+ detached_orders: import("../integrations/supabase/types").Json;
19524
+ reason: string | null;
19525
+ updated_at: string;
19526
+ };
19527
+ Insert: {
19528
+ buffer_id: string;
19529
+ buffer_key?: string | null;
19530
+ closed_at?: string | null;
19531
+ created_at?: string;
19532
+ detached_orders?: import("../integrations/supabase/types").Json;
19533
+ reason?: string | null;
19534
+ updated_at?: string;
19535
+ };
19536
+ Update: {
19537
+ buffer_id?: string;
19538
+ buffer_key?: string | null;
19539
+ closed_at?: string | null;
19540
+ created_at?: string;
19541
+ detached_orders?: import("../integrations/supabase/types").Json;
19542
+ reason?: string | null;
19543
+ updated_at?: string;
19544
+ };
19545
+ Relationships: [];
19546
+ };
19391
19547
  voorraad_custom_fields: {
19392
19548
  Row: {
19393
19549
  created_at: string;
@@ -19430,6 +19586,36 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
19430
19586
  };
19431
19587
  Relationships: [];
19432
19588
  };
19589
+ voorraad_logistics_event_log: {
19590
+ Row: {
19591
+ created_at: string;
19592
+ event_id: string;
19593
+ event_type: string;
19594
+ order_ref: string | null;
19595
+ processed_at: string;
19596
+ result: import("../integrations/supabase/types").Json;
19597
+ updated_at: string;
19598
+ };
19599
+ Insert: {
19600
+ created_at?: string;
19601
+ event_id: string;
19602
+ event_type: string;
19603
+ order_ref?: string | null;
19604
+ processed_at?: string;
19605
+ result?: import("../integrations/supabase/types").Json;
19606
+ updated_at?: string;
19607
+ };
19608
+ Update: {
19609
+ created_at?: string;
19610
+ event_id?: string;
19611
+ event_type?: string;
19612
+ order_ref?: string | null;
19613
+ processed_at?: string;
19614
+ result?: import("../integrations/supabase/types").Json;
19615
+ updated_at?: string;
19616
+ };
19617
+ Relationships: [];
19618
+ };
19433
19619
  voorraad_media_upload_failures: {
19434
19620
  Row: {
19435
19621
  action: string;
@@ -23399,6 +23585,12 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
23399
23585
  station_carts: number;
23400
23586
  }[];
23401
23587
  };
23588
+ logistics_control_complete_cart: {
23589
+ Args: {
23590
+ p_cart_id: string;
23591
+ };
23592
+ Returns: number;
23593
+ };
23402
23594
  logistics_control_scan_approve: {
23403
23595
  Args: {
23404
23596
  p_allow_reprint?: boolean;
@@ -23478,6 +23670,15 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
23478
23670
  Args: never;
23479
23671
  Returns: import("../integrations/supabase/types").Json;
23480
23672
  };
23673
+ logistics_day_windows: {
23674
+ Args: {
23675
+ p_day: string;
23676
+ };
23677
+ Returns: {
23678
+ win_end: string;
23679
+ win_start: string;
23680
+ }[];
23681
+ };
23481
23682
  logistics_delay_customer_email: {
23482
23683
  Args: {
23483
23684
  p_customer: string;
@@ -23545,6 +23746,17 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
23545
23746
  };
23546
23747
  Returns: import("../integrations/supabase/types").Json;
23547
23748
  };
23749
+ logistics_enqueue_shipping_note_with_slip: {
23750
+ Args: {
23751
+ _cart_id: string;
23752
+ _is_herprint: boolean;
23753
+ _printer_id: string;
23754
+ _queue_item_id: string;
23755
+ _session_id: string;
23756
+ _slip_job_id: string;
23757
+ };
23758
+ Returns: string;
23759
+ };
23548
23760
  logistics_enqueue_sticker_with_slip: {
23549
23761
  Args: {
23550
23762
  _cart_id: string;
@@ -23683,6 +23895,32 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
23683
23895
  };
23684
23896
  Returns: string;
23685
23897
  };
23898
+ logistics_floriday_gate_status: {
23899
+ Args: never;
23900
+ Returns: import("../integrations/supabase/types").Json;
23901
+ };
23902
+ logistics_floriday_log_refusal: {
23903
+ Args: {
23904
+ _action?: string;
23905
+ _module?: string;
23906
+ _order_ref: string;
23907
+ _reason: string;
23908
+ _shell?: string;
23909
+ };
23910
+ Returns: undefined;
23911
+ };
23912
+ logistics_floriday_log_send: {
23913
+ Args: {
23914
+ _action: string;
23915
+ _detail?: string;
23916
+ _http_status?: number;
23917
+ _module?: string;
23918
+ _ok: boolean;
23919
+ _order_ref: string;
23920
+ _shell?: string;
23921
+ };
23922
+ Returns: undefined;
23923
+ };
23686
23924
  logistics_floriday_order_approved: {
23687
23925
  Args: {
23688
23926
  _order_ref: string;
@@ -23707,6 +23945,16 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
23707
23945
  Args: never;
23708
23946
  Returns: boolean;
23709
23947
  };
23948
+ logistics_floriday_stock_updates_enabled: {
23949
+ Args: never;
23950
+ Returns: boolean;
23951
+ };
23952
+ logistics_floriday_write_allowed: {
23953
+ Args: {
23954
+ _action: string;
23955
+ };
23956
+ Returns: boolean;
23957
+ };
23710
23958
  logistics_fulfill_barcode_requests: {
23711
23959
  Args: {
23712
23960
  p_limit?: number;
@@ -23775,6 +24023,10 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
23775
24023
  };
23776
24024
  Returns: string;
23777
24025
  };
24026
+ logistics_opening_timezone: {
24027
+ Args: never;
24028
+ Returns: string;
24029
+ };
23778
24030
  logistics_order_cart_count: {
23779
24031
  Args: {
23780
24032
  p_order_ref: string;
@@ -24166,6 +24418,10 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
24166
24418
  };
24167
24419
  Returns: string;
24168
24420
  };
24421
+ logistics_shipping_note_follows_slip: {
24422
+ Args: never;
24423
+ Returns: boolean;
24424
+ };
24169
24425
  logistics_shipping_note_from_barcode: {
24170
24426
  Args: {
24171
24427
  p_allow_reprint?: boolean;
@@ -24178,6 +24434,14 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
24178
24434
  Args: never;
24179
24435
  Returns: boolean;
24180
24436
  };
24437
+ logistics_subtract_working_minutes: {
24438
+ Args: {
24439
+ p_deadline: string;
24440
+ p_max_workdays?: number;
24441
+ p_minutes: number;
24442
+ };
24443
+ Returns: import("../integrations/supabase/types").Json;
24444
+ };
24181
24445
  logistics_supersede_stale_tasks: {
24182
24446
  Args: {
24183
24447
  p_keep: string[];
@@ -24214,6 +24478,12 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
24214
24478
  Args: never;
24215
24479
  Returns: string;
24216
24480
  };
24481
+ logistics_timezone_options: {
24482
+ Args: never;
24483
+ Returns: {
24484
+ name: string;
24485
+ }[];
24486
+ };
24217
24487
  logistics_upsert_task: {
24218
24488
  Args: {
24219
24489
  p_buffer_ref: string;
@@ -24233,6 +24503,16 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
24233
24503
  };
24234
24504
  Returns: string;
24235
24505
  };
24506
+ logistics_valid_timezone: {
24507
+ Args: {
24508
+ _tz: string;
24509
+ };
24510
+ Returns: boolean;
24511
+ };
24512
+ logistics_working_hours_status: {
24513
+ Args: never;
24514
+ Returns: import("../integrations/supabase/types").Json;
24515
+ };
24236
24516
  logistics_write_buffer_layer_positions: {
24237
24517
  Args: {
24238
24518
  p_buffer_id: string;
@@ -36279,22 +36559,31 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
36279
36559
  };
36280
36560
  logistics_floriday_push_refusals: {
36281
36561
  Row: {
36562
+ action: string | null;
36282
36563
  created_at: string;
36283
36564
  id: string;
36284
36565
  order_ref: string;
36285
36566
  reason: string;
36567
+ source_module: string | null;
36568
+ source_shell: string | null;
36286
36569
  };
36287
36570
  Insert: {
36571
+ action?: string | null;
36288
36572
  created_at?: string;
36289
36573
  id?: string;
36290
36574
  order_ref: string;
36291
36575
  reason: string;
36576
+ source_module?: string | null;
36577
+ source_shell?: string | null;
36292
36578
  };
36293
36579
  Update: {
36580
+ action?: string | null;
36294
36581
  created_at?: string;
36295
36582
  id?: string;
36296
36583
  order_ref?: string;
36297
36584
  reason?: string;
36585
+ source_module?: string | null;
36586
+ source_shell?: string | null;
36298
36587
  };
36299
36588
  Relationships: [];
36300
36589
  };
@@ -36373,6 +36662,42 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
36373
36662
  };
36374
36663
  Relationships: [];
36375
36664
  };
36665
+ logistics_floriday_status_sends: {
36666
+ Row: {
36667
+ action: string;
36668
+ created_at: string;
36669
+ detail: string | null;
36670
+ http_status: number | null;
36671
+ id: string;
36672
+ ok: boolean;
36673
+ order_ref: string;
36674
+ source_module: string | null;
36675
+ source_shell: string | null;
36676
+ };
36677
+ Insert: {
36678
+ action: string;
36679
+ created_at?: string;
36680
+ detail?: string | null;
36681
+ http_status?: number | null;
36682
+ id?: string;
36683
+ ok?: boolean;
36684
+ order_ref: string;
36685
+ source_module?: string | null;
36686
+ source_shell?: string | null;
36687
+ };
36688
+ Update: {
36689
+ action?: string;
36690
+ created_at?: string;
36691
+ detail?: string | null;
36692
+ http_status?: number | null;
36693
+ id?: string;
36694
+ ok?: boolean;
36695
+ order_ref?: string;
36696
+ source_module?: string | null;
36697
+ source_shell?: string | null;
36698
+ };
36699
+ Relationships: [];
36700
+ };
36376
36701
  logistics_formulas: {
36377
36702
  Row: {
36378
36703
  created_at: string;
@@ -36445,6 +36770,66 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
36445
36770
  };
36446
36771
  Relationships: [];
36447
36772
  };
36773
+ logistics_opening_exceptions: {
36774
+ Row: {
36775
+ closes: string | null;
36776
+ created_at: string;
36777
+ day: string;
36778
+ id: string;
36779
+ is_closed: boolean;
36780
+ note: string | null;
36781
+ opens: string | null;
36782
+ };
36783
+ Insert: {
36784
+ closes?: string | null;
36785
+ created_at?: string;
36786
+ day: string;
36787
+ id?: string;
36788
+ is_closed?: boolean;
36789
+ note?: string | null;
36790
+ opens?: string | null;
36791
+ };
36792
+ Update: {
36793
+ closes?: string | null;
36794
+ created_at?: string;
36795
+ day?: string;
36796
+ id?: string;
36797
+ is_closed?: boolean;
36798
+ note?: string | null;
36799
+ opens?: string | null;
36800
+ };
36801
+ Relationships: [];
36802
+ };
36803
+ logistics_opening_hours: {
36804
+ Row: {
36805
+ closes: string;
36806
+ created_at: string;
36807
+ id: string;
36808
+ is_active: boolean;
36809
+ note: string | null;
36810
+ opens: string;
36811
+ weekday: number;
36812
+ };
36813
+ Insert: {
36814
+ closes: string;
36815
+ created_at?: string;
36816
+ id?: string;
36817
+ is_active?: boolean;
36818
+ note?: string | null;
36819
+ opens: string;
36820
+ weekday: number;
36821
+ };
36822
+ Update: {
36823
+ closes?: string;
36824
+ created_at?: string;
36825
+ id?: string;
36826
+ is_active?: boolean;
36827
+ note?: string | null;
36828
+ opens?: string;
36829
+ weekday?: number;
36830
+ };
36831
+ Relationships: [];
36832
+ };
36448
36833
  logistics_pickup_moments: {
36449
36834
  Row: {
36450
36835
  carrier_ref: string | null;
@@ -37237,6 +37622,24 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
37237
37622
  };
37238
37623
  Relationships: [];
37239
37624
  };
37625
+ logistics_time_settings: {
37626
+ Row: {
37627
+ id: boolean;
37628
+ timezone: string;
37629
+ updated_at: string;
37630
+ };
37631
+ Insert: {
37632
+ id?: boolean;
37633
+ timezone: string;
37634
+ updated_at?: string;
37635
+ };
37636
+ Update: {
37637
+ id?: boolean;
37638
+ timezone?: string;
37639
+ updated_at?: string;
37640
+ };
37641
+ Relationships: [];
37642
+ };
37240
37643
  logistics_variables: {
37241
37644
  Row: {
37242
37645
  created_at: string;
@@ -39627,6 +40030,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
39627
40030
  customer_name: string;
39628
40031
  deleted_at: string | null;
39629
40032
  delivery_date: string | null;
40033
+ floriday_order_group_key: string | null;
39630
40034
  floriday_sales_order_id: string | null;
39631
40035
  id: string;
39632
40036
  invoice_due_at: string | null;
@@ -39654,6 +40058,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
39654
40058
  customer_name?: string;
39655
40059
  deleted_at?: string | null;
39656
40060
  delivery_date?: string | null;
40061
+ floriday_order_group_key?: string | null;
39657
40062
  floriday_sales_order_id?: string | null;
39658
40063
  id?: string;
39659
40064
  invoice_due_at?: string | null;
@@ -39681,6 +40086,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
39681
40086
  customer_name?: string;
39682
40087
  deleted_at?: string | null;
39683
40088
  delivery_date?: string | null;
40089
+ floriday_order_group_key?: string | null;
39684
40090
  floriday_sales_order_id?: string | null;
39685
40091
  id?: string;
39686
40092
  invoice_due_at?: string | null;
@@ -45544,6 +45950,36 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
45544
45950
  referencedColumns: ["id"];
45545
45951
  }];
45546
45952
  };
45953
+ voorraad_buffer_state: {
45954
+ Row: {
45955
+ buffer_id: string;
45956
+ buffer_key: string | null;
45957
+ closed_at: string | null;
45958
+ created_at: string;
45959
+ detached_orders: import("../integrations/supabase/types").Json;
45960
+ reason: string | null;
45961
+ updated_at: string;
45962
+ };
45963
+ Insert: {
45964
+ buffer_id: string;
45965
+ buffer_key?: string | null;
45966
+ closed_at?: string | null;
45967
+ created_at?: string;
45968
+ detached_orders?: import("../integrations/supabase/types").Json;
45969
+ reason?: string | null;
45970
+ updated_at?: string;
45971
+ };
45972
+ Update: {
45973
+ buffer_id?: string;
45974
+ buffer_key?: string | null;
45975
+ closed_at?: string | null;
45976
+ created_at?: string;
45977
+ detached_orders?: import("../integrations/supabase/types").Json;
45978
+ reason?: string | null;
45979
+ updated_at?: string;
45980
+ };
45981
+ Relationships: [];
45982
+ };
45547
45983
  voorraad_custom_fields: {
45548
45984
  Row: {
45549
45985
  created_at: string;
@@ -45586,6 +46022,36 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
45586
46022
  };
45587
46023
  Relationships: [];
45588
46024
  };
46025
+ voorraad_logistics_event_log: {
46026
+ Row: {
46027
+ created_at: string;
46028
+ event_id: string;
46029
+ event_type: string;
46030
+ order_ref: string | null;
46031
+ processed_at: string;
46032
+ result: import("../integrations/supabase/types").Json;
46033
+ updated_at: string;
46034
+ };
46035
+ Insert: {
46036
+ created_at?: string;
46037
+ event_id: string;
46038
+ event_type: string;
46039
+ order_ref?: string | null;
46040
+ processed_at?: string;
46041
+ result?: import("../integrations/supabase/types").Json;
46042
+ updated_at?: string;
46043
+ };
46044
+ Update: {
46045
+ created_at?: string;
46046
+ event_id?: string;
46047
+ event_type?: string;
46048
+ order_ref?: string | null;
46049
+ processed_at?: string;
46050
+ result?: import("../integrations/supabase/types").Json;
46051
+ updated_at?: string;
46052
+ };
46053
+ Relationships: [];
46054
+ };
45589
46055
  voorraad_media_upload_failures: {
45590
46056
  Row: {
45591
46057
  action: string;
@@ -49555,6 +50021,12 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
49555
50021
  station_carts: number;
49556
50022
  }[];
49557
50023
  };
50024
+ logistics_control_complete_cart: {
50025
+ Args: {
50026
+ p_cart_id: string;
50027
+ };
50028
+ Returns: number;
50029
+ };
49558
50030
  logistics_control_scan_approve: {
49559
50031
  Args: {
49560
50032
  p_allow_reprint?: boolean;
@@ -49634,6 +50106,15 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
49634
50106
  Args: never;
49635
50107
  Returns: import("../integrations/supabase/types").Json;
49636
50108
  };
50109
+ logistics_day_windows: {
50110
+ Args: {
50111
+ p_day: string;
50112
+ };
50113
+ Returns: {
50114
+ win_end: string;
50115
+ win_start: string;
50116
+ }[];
50117
+ };
49637
50118
  logistics_delay_customer_email: {
49638
50119
  Args: {
49639
50120
  p_customer: string;
@@ -49701,6 +50182,17 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
49701
50182
  };
49702
50183
  Returns: import("../integrations/supabase/types").Json;
49703
50184
  };
50185
+ logistics_enqueue_shipping_note_with_slip: {
50186
+ Args: {
50187
+ _cart_id: string;
50188
+ _is_herprint: boolean;
50189
+ _printer_id: string;
50190
+ _queue_item_id: string;
50191
+ _session_id: string;
50192
+ _slip_job_id: string;
50193
+ };
50194
+ Returns: string;
50195
+ };
49704
50196
  logistics_enqueue_sticker_with_slip: {
49705
50197
  Args: {
49706
50198
  _cart_id: string;
@@ -49839,6 +50331,32 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
49839
50331
  };
49840
50332
  Returns: string;
49841
50333
  };
50334
+ logistics_floriday_gate_status: {
50335
+ Args: never;
50336
+ Returns: import("../integrations/supabase/types").Json;
50337
+ };
50338
+ logistics_floriday_log_refusal: {
50339
+ Args: {
50340
+ _action?: string;
50341
+ _module?: string;
50342
+ _order_ref: string;
50343
+ _reason: string;
50344
+ _shell?: string;
50345
+ };
50346
+ Returns: undefined;
50347
+ };
50348
+ logistics_floriday_log_send: {
50349
+ Args: {
50350
+ _action: string;
50351
+ _detail?: string;
50352
+ _http_status?: number;
50353
+ _module?: string;
50354
+ _ok: boolean;
50355
+ _order_ref: string;
50356
+ _shell?: string;
50357
+ };
50358
+ Returns: undefined;
50359
+ };
49842
50360
  logistics_floriday_order_approved: {
49843
50361
  Args: {
49844
50362
  _order_ref: string;
@@ -49863,6 +50381,16 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
49863
50381
  Args: never;
49864
50382
  Returns: boolean;
49865
50383
  };
50384
+ logistics_floriday_stock_updates_enabled: {
50385
+ Args: never;
50386
+ Returns: boolean;
50387
+ };
50388
+ logistics_floriday_write_allowed: {
50389
+ Args: {
50390
+ _action: string;
50391
+ };
50392
+ Returns: boolean;
50393
+ };
49866
50394
  logistics_fulfill_barcode_requests: {
49867
50395
  Args: {
49868
50396
  p_limit?: number;
@@ -49931,6 +50459,10 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
49931
50459
  };
49932
50460
  Returns: string;
49933
50461
  };
50462
+ logistics_opening_timezone: {
50463
+ Args: never;
50464
+ Returns: string;
50465
+ };
49934
50466
  logistics_order_cart_count: {
49935
50467
  Args: {
49936
50468
  p_order_ref: string;
@@ -50322,6 +50854,10 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
50322
50854
  };
50323
50855
  Returns: string;
50324
50856
  };
50857
+ logistics_shipping_note_follows_slip: {
50858
+ Args: never;
50859
+ Returns: boolean;
50860
+ };
50325
50861
  logistics_shipping_note_from_barcode: {
50326
50862
  Args: {
50327
50863
  p_allow_reprint?: boolean;
@@ -50334,6 +50870,14 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
50334
50870
  Args: never;
50335
50871
  Returns: boolean;
50336
50872
  };
50873
+ logistics_subtract_working_minutes: {
50874
+ Args: {
50875
+ p_deadline: string;
50876
+ p_max_workdays?: number;
50877
+ p_minutes: number;
50878
+ };
50879
+ Returns: import("../integrations/supabase/types").Json;
50880
+ };
50337
50881
  logistics_supersede_stale_tasks: {
50338
50882
  Args: {
50339
50883
  p_keep: string[];
@@ -50370,6 +50914,12 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
50370
50914
  Args: never;
50371
50915
  Returns: string;
50372
50916
  };
50917
+ logistics_timezone_options: {
50918
+ Args: never;
50919
+ Returns: {
50920
+ name: string;
50921
+ }[];
50922
+ };
50373
50923
  logistics_upsert_task: {
50374
50924
  Args: {
50375
50925
  p_buffer_ref: string;
@@ -50389,6 +50939,16 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
50389
50939
  };
50390
50940
  Returns: string;
50391
50941
  };
50942
+ logistics_valid_timezone: {
50943
+ Args: {
50944
+ _tz: string;
50945
+ };
50946
+ Returns: boolean;
50947
+ };
50948
+ logistics_working_hours_status: {
50949
+ Args: never;
50950
+ Returns: import("../integrations/supabase/types").Json;
50951
+ };
50392
50952
  logistics_write_buffer_layer_positions: {
50393
50953
  Args: {
50394
50954
  p_buffer_id: string;
@@ -62434,22 +62994,31 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
62434
62994
  };
62435
62995
  logistics_floriday_push_refusals: {
62436
62996
  Row: {
62997
+ action: string | null;
62437
62998
  created_at: string;
62438
62999
  id: string;
62439
63000
  order_ref: string;
62440
63001
  reason: string;
63002
+ source_module: string | null;
63003
+ source_shell: string | null;
62441
63004
  };
62442
63005
  Insert: {
63006
+ action?: string | null;
62443
63007
  created_at?: string;
62444
63008
  id?: string;
62445
63009
  order_ref: string;
62446
63010
  reason: string;
63011
+ source_module?: string | null;
63012
+ source_shell?: string | null;
62447
63013
  };
62448
63014
  Update: {
63015
+ action?: string | null;
62449
63016
  created_at?: string;
62450
63017
  id?: string;
62451
63018
  order_ref?: string;
62452
63019
  reason?: string;
63020
+ source_module?: string | null;
63021
+ source_shell?: string | null;
62453
63022
  };
62454
63023
  Relationships: [];
62455
63024
  };
@@ -62528,6 +63097,42 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
62528
63097
  };
62529
63098
  Relationships: [];
62530
63099
  };
63100
+ logistics_floriday_status_sends: {
63101
+ Row: {
63102
+ action: string;
63103
+ created_at: string;
63104
+ detail: string | null;
63105
+ http_status: number | null;
63106
+ id: string;
63107
+ ok: boolean;
63108
+ order_ref: string;
63109
+ source_module: string | null;
63110
+ source_shell: string | null;
63111
+ };
63112
+ Insert: {
63113
+ action: string;
63114
+ created_at?: string;
63115
+ detail?: string | null;
63116
+ http_status?: number | null;
63117
+ id?: string;
63118
+ ok?: boolean;
63119
+ order_ref: string;
63120
+ source_module?: string | null;
63121
+ source_shell?: string | null;
63122
+ };
63123
+ Update: {
63124
+ action?: string;
63125
+ created_at?: string;
63126
+ detail?: string | null;
63127
+ http_status?: number | null;
63128
+ id?: string;
63129
+ ok?: boolean;
63130
+ order_ref?: string;
63131
+ source_module?: string | null;
63132
+ source_shell?: string | null;
63133
+ };
63134
+ Relationships: [];
63135
+ };
62531
63136
  logistics_formulas: {
62532
63137
  Row: {
62533
63138
  created_at: string;
@@ -62600,6 +63205,66 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
62600
63205
  };
62601
63206
  Relationships: [];
62602
63207
  };
63208
+ logistics_opening_exceptions: {
63209
+ Row: {
63210
+ closes: string | null;
63211
+ created_at: string;
63212
+ day: string;
63213
+ id: string;
63214
+ is_closed: boolean;
63215
+ note: string | null;
63216
+ opens: string | null;
63217
+ };
63218
+ Insert: {
63219
+ closes?: string | null;
63220
+ created_at?: string;
63221
+ day: string;
63222
+ id?: string;
63223
+ is_closed?: boolean;
63224
+ note?: string | null;
63225
+ opens?: string | null;
63226
+ };
63227
+ Update: {
63228
+ closes?: string | null;
63229
+ created_at?: string;
63230
+ day?: string;
63231
+ id?: string;
63232
+ is_closed?: boolean;
63233
+ note?: string | null;
63234
+ opens?: string | null;
63235
+ };
63236
+ Relationships: [];
63237
+ };
63238
+ logistics_opening_hours: {
63239
+ Row: {
63240
+ closes: string;
63241
+ created_at: string;
63242
+ id: string;
63243
+ is_active: boolean;
63244
+ note: string | null;
63245
+ opens: string;
63246
+ weekday: number;
63247
+ };
63248
+ Insert: {
63249
+ closes: string;
63250
+ created_at?: string;
63251
+ id?: string;
63252
+ is_active?: boolean;
63253
+ note?: string | null;
63254
+ opens: string;
63255
+ weekday: number;
63256
+ };
63257
+ Update: {
63258
+ closes?: string;
63259
+ created_at?: string;
63260
+ id?: string;
63261
+ is_active?: boolean;
63262
+ note?: string | null;
63263
+ opens?: string;
63264
+ weekday?: number;
63265
+ };
63266
+ Relationships: [];
63267
+ };
62603
63268
  logistics_pickup_moments: {
62604
63269
  Row: {
62605
63270
  carrier_ref: string | null;
@@ -63392,6 +64057,24 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
63392
64057
  };
63393
64058
  Relationships: [];
63394
64059
  };
64060
+ logistics_time_settings: {
64061
+ Row: {
64062
+ id: boolean;
64063
+ timezone: string;
64064
+ updated_at: string;
64065
+ };
64066
+ Insert: {
64067
+ id?: boolean;
64068
+ timezone: string;
64069
+ updated_at?: string;
64070
+ };
64071
+ Update: {
64072
+ id?: boolean;
64073
+ timezone?: string;
64074
+ updated_at?: string;
64075
+ };
64076
+ Relationships: [];
64077
+ };
63395
64078
  logistics_variables: {
63396
64079
  Row: {
63397
64080
  created_at: string;
@@ -65782,6 +66465,7 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
65782
66465
  customer_name: string;
65783
66466
  deleted_at: string | null;
65784
66467
  delivery_date: string | null;
66468
+ floriday_order_group_key: string | null;
65785
66469
  floriday_sales_order_id: string | null;
65786
66470
  id: string;
65787
66471
  invoice_due_at: string | null;
@@ -65809,6 +66493,7 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
65809
66493
  customer_name?: string;
65810
66494
  deleted_at?: string | null;
65811
66495
  delivery_date?: string | null;
66496
+ floriday_order_group_key?: string | null;
65812
66497
  floriday_sales_order_id?: string | null;
65813
66498
  id?: string;
65814
66499
  invoice_due_at?: string | null;
@@ -65836,6 +66521,7 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
65836
66521
  customer_name?: string;
65837
66522
  deleted_at?: string | null;
65838
66523
  delivery_date?: string | null;
66524
+ floriday_order_group_key?: string | null;
65839
66525
  floriday_sales_order_id?: string | null;
65840
66526
  id?: string;
65841
66527
  invoice_due_at?: string | null;
@@ -71699,6 +72385,36 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
71699
72385
  referencedColumns: ["id"];
71700
72386
  }];
71701
72387
  };
72388
+ voorraad_buffer_state: {
72389
+ Row: {
72390
+ buffer_id: string;
72391
+ buffer_key: string | null;
72392
+ closed_at: string | null;
72393
+ created_at: string;
72394
+ detached_orders: import("../integrations/supabase/types").Json;
72395
+ reason: string | null;
72396
+ updated_at: string;
72397
+ };
72398
+ Insert: {
72399
+ buffer_id: string;
72400
+ buffer_key?: string | null;
72401
+ closed_at?: string | null;
72402
+ created_at?: string;
72403
+ detached_orders?: import("../integrations/supabase/types").Json;
72404
+ reason?: string | null;
72405
+ updated_at?: string;
72406
+ };
72407
+ Update: {
72408
+ buffer_id?: string;
72409
+ buffer_key?: string | null;
72410
+ closed_at?: string | null;
72411
+ created_at?: string;
72412
+ detached_orders?: import("../integrations/supabase/types").Json;
72413
+ reason?: string | null;
72414
+ updated_at?: string;
72415
+ };
72416
+ Relationships: [];
72417
+ };
71702
72418
  voorraad_custom_fields: {
71703
72419
  Row: {
71704
72420
  created_at: string;
@@ -71741,6 +72457,36 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
71741
72457
  };
71742
72458
  Relationships: [];
71743
72459
  };
72460
+ voorraad_logistics_event_log: {
72461
+ Row: {
72462
+ created_at: string;
72463
+ event_id: string;
72464
+ event_type: string;
72465
+ order_ref: string | null;
72466
+ processed_at: string;
72467
+ result: import("../integrations/supabase/types").Json;
72468
+ updated_at: string;
72469
+ };
72470
+ Insert: {
72471
+ created_at?: string;
72472
+ event_id: string;
72473
+ event_type: string;
72474
+ order_ref?: string | null;
72475
+ processed_at?: string;
72476
+ result?: import("../integrations/supabase/types").Json;
72477
+ updated_at?: string;
72478
+ };
72479
+ Update: {
72480
+ created_at?: string;
72481
+ event_id?: string;
72482
+ event_type?: string;
72483
+ order_ref?: string | null;
72484
+ processed_at?: string;
72485
+ result?: import("../integrations/supabase/types").Json;
72486
+ updated_at?: string;
72487
+ };
72488
+ Relationships: [];
72489
+ };
71744
72490
  voorraad_media_upload_failures: {
71745
72491
  Row: {
71746
72492
  action: string;
@@ -75710,6 +76456,12 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
75710
76456
  station_carts: number;
75711
76457
  }[];
75712
76458
  };
76459
+ logistics_control_complete_cart: {
76460
+ Args: {
76461
+ p_cart_id: string;
76462
+ };
76463
+ Returns: number;
76464
+ };
75713
76465
  logistics_control_scan_approve: {
75714
76466
  Args: {
75715
76467
  p_allow_reprint?: boolean;
@@ -75789,6 +76541,15 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
75789
76541
  Args: never;
75790
76542
  Returns: import("../integrations/supabase/types").Json;
75791
76543
  };
76544
+ logistics_day_windows: {
76545
+ Args: {
76546
+ p_day: string;
76547
+ };
76548
+ Returns: {
76549
+ win_end: string;
76550
+ win_start: string;
76551
+ }[];
76552
+ };
75792
76553
  logistics_delay_customer_email: {
75793
76554
  Args: {
75794
76555
  p_customer: string;
@@ -75856,6 +76617,17 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
75856
76617
  };
75857
76618
  Returns: import("../integrations/supabase/types").Json;
75858
76619
  };
76620
+ logistics_enqueue_shipping_note_with_slip: {
76621
+ Args: {
76622
+ _cart_id: string;
76623
+ _is_herprint: boolean;
76624
+ _printer_id: string;
76625
+ _queue_item_id: string;
76626
+ _session_id: string;
76627
+ _slip_job_id: string;
76628
+ };
76629
+ Returns: string;
76630
+ };
75859
76631
  logistics_enqueue_sticker_with_slip: {
75860
76632
  Args: {
75861
76633
  _cart_id: string;
@@ -75994,6 +76766,32 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
75994
76766
  };
75995
76767
  Returns: string;
75996
76768
  };
76769
+ logistics_floriday_gate_status: {
76770
+ Args: never;
76771
+ Returns: import("../integrations/supabase/types").Json;
76772
+ };
76773
+ logistics_floriday_log_refusal: {
76774
+ Args: {
76775
+ _action?: string;
76776
+ _module?: string;
76777
+ _order_ref: string;
76778
+ _reason: string;
76779
+ _shell?: string;
76780
+ };
76781
+ Returns: undefined;
76782
+ };
76783
+ logistics_floriday_log_send: {
76784
+ Args: {
76785
+ _action: string;
76786
+ _detail?: string;
76787
+ _http_status?: number;
76788
+ _module?: string;
76789
+ _ok: boolean;
76790
+ _order_ref: string;
76791
+ _shell?: string;
76792
+ };
76793
+ Returns: undefined;
76794
+ };
75997
76795
  logistics_floriday_order_approved: {
75998
76796
  Args: {
75999
76797
  _order_ref: string;
@@ -76018,6 +76816,16 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
76018
76816
  Args: never;
76019
76817
  Returns: boolean;
76020
76818
  };
76819
+ logistics_floriday_stock_updates_enabled: {
76820
+ Args: never;
76821
+ Returns: boolean;
76822
+ };
76823
+ logistics_floriday_write_allowed: {
76824
+ Args: {
76825
+ _action: string;
76826
+ };
76827
+ Returns: boolean;
76828
+ };
76021
76829
  logistics_fulfill_barcode_requests: {
76022
76830
  Args: {
76023
76831
  p_limit?: number;
@@ -76086,6 +76894,10 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
76086
76894
  };
76087
76895
  Returns: string;
76088
76896
  };
76897
+ logistics_opening_timezone: {
76898
+ Args: never;
76899
+ Returns: string;
76900
+ };
76089
76901
  logistics_order_cart_count: {
76090
76902
  Args: {
76091
76903
  p_order_ref: string;
@@ -76477,6 +77289,10 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
76477
77289
  };
76478
77290
  Returns: string;
76479
77291
  };
77292
+ logistics_shipping_note_follows_slip: {
77293
+ Args: never;
77294
+ Returns: boolean;
77295
+ };
76480
77296
  logistics_shipping_note_from_barcode: {
76481
77297
  Args: {
76482
77298
  p_allow_reprint?: boolean;
@@ -76489,6 +77305,14 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
76489
77305
  Args: never;
76490
77306
  Returns: boolean;
76491
77307
  };
77308
+ logistics_subtract_working_minutes: {
77309
+ Args: {
77310
+ p_deadline: string;
77311
+ p_max_workdays?: number;
77312
+ p_minutes: number;
77313
+ };
77314
+ Returns: import("../integrations/supabase/types").Json;
77315
+ };
76492
77316
  logistics_supersede_stale_tasks: {
76493
77317
  Args: {
76494
77318
  p_keep: string[];
@@ -76525,6 +77349,12 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
76525
77349
  Args: never;
76526
77350
  Returns: string;
76527
77351
  };
77352
+ logistics_timezone_options: {
77353
+ Args: never;
77354
+ Returns: {
77355
+ name: string;
77356
+ }[];
77357
+ };
76528
77358
  logistics_upsert_task: {
76529
77359
  Args: {
76530
77360
  p_buffer_ref: string;
@@ -76544,6 +77374,16 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
76544
77374
  };
76545
77375
  Returns: string;
76546
77376
  };
77377
+ logistics_valid_timezone: {
77378
+ Args: {
77379
+ _tz: string;
77380
+ };
77381
+ Returns: boolean;
77382
+ };
77383
+ logistics_working_hours_status: {
77384
+ Args: never;
77385
+ Returns: import("../integrations/supabase/types").Json;
77386
+ };
76547
77387
  logistics_write_buffer_layer_positions: {
76548
77388
  Args: {
76549
77389
  p_buffer_id: string;