@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
@@ -10077,22 +10077,31 @@ export declare const getFlorydayCachedList: import("@tanstack/start-client-core"
10077
10077
  };
10078
10078
  logistics_floriday_push_refusals: {
10079
10079
  Row: {
10080
+ action: string | null;
10080
10081
  created_at: string;
10081
10082
  id: string;
10082
10083
  order_ref: string;
10083
10084
  reason: string;
10085
+ source_module: string | null;
10086
+ source_shell: string | null;
10084
10087
  };
10085
10088
  Insert: {
10089
+ action?: string | null;
10086
10090
  created_at?: string;
10087
10091
  id?: string;
10088
10092
  order_ref: string;
10089
10093
  reason: string;
10094
+ source_module?: string | null;
10095
+ source_shell?: string | null;
10090
10096
  };
10091
10097
  Update: {
10098
+ action?: string | null;
10092
10099
  created_at?: string;
10093
10100
  id?: string;
10094
10101
  order_ref?: string;
10095
10102
  reason?: string;
10103
+ source_module?: string | null;
10104
+ source_shell?: string | null;
10096
10105
  };
10097
10106
  Relationships: [];
10098
10107
  };
@@ -10171,6 +10180,42 @@ export declare const getFlorydayCachedList: import("@tanstack/start-client-core"
10171
10180
  };
10172
10181
  Relationships: [];
10173
10182
  };
10183
+ logistics_floriday_status_sends: {
10184
+ Row: {
10185
+ action: string;
10186
+ created_at: string;
10187
+ detail: string | null;
10188
+ http_status: number | null;
10189
+ id: string;
10190
+ ok: boolean;
10191
+ order_ref: string;
10192
+ source_module: string | null;
10193
+ source_shell: string | null;
10194
+ };
10195
+ Insert: {
10196
+ action: string;
10197
+ created_at?: string;
10198
+ detail?: string | null;
10199
+ http_status?: number | null;
10200
+ id?: string;
10201
+ ok?: boolean;
10202
+ order_ref: string;
10203
+ source_module?: string | null;
10204
+ source_shell?: string | null;
10205
+ };
10206
+ Update: {
10207
+ action?: string;
10208
+ created_at?: string;
10209
+ detail?: string | null;
10210
+ http_status?: number | null;
10211
+ id?: string;
10212
+ ok?: boolean;
10213
+ order_ref?: string;
10214
+ source_module?: string | null;
10215
+ source_shell?: string | null;
10216
+ };
10217
+ Relationships: [];
10218
+ };
10174
10219
  logistics_formulas: {
10175
10220
  Row: {
10176
10221
  created_at: string;
@@ -10243,6 +10288,66 @@ export declare const getFlorydayCachedList: import("@tanstack/start-client-core"
10243
10288
  };
10244
10289
  Relationships: [];
10245
10290
  };
10291
+ logistics_opening_exceptions: {
10292
+ Row: {
10293
+ closes: string | null;
10294
+ created_at: string;
10295
+ day: string;
10296
+ id: string;
10297
+ is_closed: boolean;
10298
+ note: string | null;
10299
+ opens: string | null;
10300
+ };
10301
+ Insert: {
10302
+ closes?: string | null;
10303
+ created_at?: string;
10304
+ day: string;
10305
+ id?: string;
10306
+ is_closed?: boolean;
10307
+ note?: string | null;
10308
+ opens?: string | null;
10309
+ };
10310
+ Update: {
10311
+ closes?: string | null;
10312
+ created_at?: string;
10313
+ day?: string;
10314
+ id?: string;
10315
+ is_closed?: boolean;
10316
+ note?: string | null;
10317
+ opens?: string | null;
10318
+ };
10319
+ Relationships: [];
10320
+ };
10321
+ logistics_opening_hours: {
10322
+ Row: {
10323
+ closes: string;
10324
+ created_at: string;
10325
+ id: string;
10326
+ is_active: boolean;
10327
+ note: string | null;
10328
+ opens: string;
10329
+ weekday: number;
10330
+ };
10331
+ Insert: {
10332
+ closes: string;
10333
+ created_at?: string;
10334
+ id?: string;
10335
+ is_active?: boolean;
10336
+ note?: string | null;
10337
+ opens: string;
10338
+ weekday: number;
10339
+ };
10340
+ Update: {
10341
+ closes?: string;
10342
+ created_at?: string;
10343
+ id?: string;
10344
+ is_active?: boolean;
10345
+ note?: string | null;
10346
+ opens?: string;
10347
+ weekday?: number;
10348
+ };
10349
+ Relationships: [];
10350
+ };
10246
10351
  logistics_pickup_moments: {
10247
10352
  Row: {
10248
10353
  carrier_ref: string | null;
@@ -11035,6 +11140,24 @@ export declare const getFlorydayCachedList: import("@tanstack/start-client-core"
11035
11140
  };
11036
11141
  Relationships: [];
11037
11142
  };
11143
+ logistics_time_settings: {
11144
+ Row: {
11145
+ id: boolean;
11146
+ timezone: string;
11147
+ updated_at: string;
11148
+ };
11149
+ Insert: {
11150
+ id?: boolean;
11151
+ timezone: string;
11152
+ updated_at?: string;
11153
+ };
11154
+ Update: {
11155
+ id?: boolean;
11156
+ timezone?: string;
11157
+ updated_at?: string;
11158
+ };
11159
+ Relationships: [];
11160
+ };
11038
11161
  logistics_variables: {
11039
11162
  Row: {
11040
11163
  created_at: string;
@@ -13425,6 +13548,7 @@ export declare const getFlorydayCachedList: import("@tanstack/start-client-core"
13425
13548
  customer_name: string;
13426
13549
  deleted_at: string | null;
13427
13550
  delivery_date: string | null;
13551
+ floriday_order_group_key: string | null;
13428
13552
  floriday_sales_order_id: string | null;
13429
13553
  id: string;
13430
13554
  invoice_due_at: string | null;
@@ -13452,6 +13576,7 @@ export declare const getFlorydayCachedList: import("@tanstack/start-client-core"
13452
13576
  customer_name?: string;
13453
13577
  deleted_at?: string | null;
13454
13578
  delivery_date?: string | null;
13579
+ floriday_order_group_key?: string | null;
13455
13580
  floriday_sales_order_id?: string | null;
13456
13581
  id?: string;
13457
13582
  invoice_due_at?: string | null;
@@ -13479,6 +13604,7 @@ export declare const getFlorydayCachedList: import("@tanstack/start-client-core"
13479
13604
  customer_name?: string;
13480
13605
  deleted_at?: string | null;
13481
13606
  delivery_date?: string | null;
13607
+ floriday_order_group_key?: string | null;
13482
13608
  floriday_sales_order_id?: string | null;
13483
13609
  id?: string;
13484
13610
  invoice_due_at?: string | null;
@@ -19342,6 +19468,36 @@ export declare const getFlorydayCachedList: import("@tanstack/start-client-core"
19342
19468
  referencedColumns: ["id"];
19343
19469
  }];
19344
19470
  };
19471
+ voorraad_buffer_state: {
19472
+ Row: {
19473
+ buffer_id: string;
19474
+ buffer_key: string | null;
19475
+ closed_at: string | null;
19476
+ created_at: string;
19477
+ detached_orders: import("../integrations/supabase/types").Json;
19478
+ reason: string | null;
19479
+ updated_at: string;
19480
+ };
19481
+ Insert: {
19482
+ buffer_id: string;
19483
+ buffer_key?: string | null;
19484
+ closed_at?: string | null;
19485
+ created_at?: string;
19486
+ detached_orders?: import("../integrations/supabase/types").Json;
19487
+ reason?: string | null;
19488
+ updated_at?: string;
19489
+ };
19490
+ Update: {
19491
+ buffer_id?: string;
19492
+ buffer_key?: string | null;
19493
+ closed_at?: string | null;
19494
+ created_at?: string;
19495
+ detached_orders?: import("../integrations/supabase/types").Json;
19496
+ reason?: string | null;
19497
+ updated_at?: string;
19498
+ };
19499
+ Relationships: [];
19500
+ };
19345
19501
  voorraad_custom_fields: {
19346
19502
  Row: {
19347
19503
  created_at: string;
@@ -19384,6 +19540,36 @@ export declare const getFlorydayCachedList: import("@tanstack/start-client-core"
19384
19540
  };
19385
19541
  Relationships: [];
19386
19542
  };
19543
+ voorraad_logistics_event_log: {
19544
+ Row: {
19545
+ created_at: string;
19546
+ event_id: string;
19547
+ event_type: string;
19548
+ order_ref: string | null;
19549
+ processed_at: string;
19550
+ result: import("../integrations/supabase/types").Json;
19551
+ updated_at: string;
19552
+ };
19553
+ Insert: {
19554
+ created_at?: string;
19555
+ event_id: string;
19556
+ event_type: string;
19557
+ order_ref?: string | null;
19558
+ processed_at?: string;
19559
+ result?: import("../integrations/supabase/types").Json;
19560
+ updated_at?: string;
19561
+ };
19562
+ Update: {
19563
+ created_at?: string;
19564
+ event_id?: string;
19565
+ event_type?: string;
19566
+ order_ref?: string | null;
19567
+ processed_at?: string;
19568
+ result?: import("../integrations/supabase/types").Json;
19569
+ updated_at?: string;
19570
+ };
19571
+ Relationships: [];
19572
+ };
19387
19573
  voorraad_media_upload_failures: {
19388
19574
  Row: {
19389
19575
  action: string;
@@ -23353,6 +23539,12 @@ export declare const getFlorydayCachedList: import("@tanstack/start-client-core"
23353
23539
  station_carts: number;
23354
23540
  }[];
23355
23541
  };
23542
+ logistics_control_complete_cart: {
23543
+ Args: {
23544
+ p_cart_id: string;
23545
+ };
23546
+ Returns: number;
23547
+ };
23356
23548
  logistics_control_scan_approve: {
23357
23549
  Args: {
23358
23550
  p_allow_reprint?: boolean;
@@ -23432,6 +23624,15 @@ export declare const getFlorydayCachedList: import("@tanstack/start-client-core"
23432
23624
  Args: never;
23433
23625
  Returns: import("../integrations/supabase/types").Json;
23434
23626
  };
23627
+ logistics_day_windows: {
23628
+ Args: {
23629
+ p_day: string;
23630
+ };
23631
+ Returns: {
23632
+ win_end: string;
23633
+ win_start: string;
23634
+ }[];
23635
+ };
23435
23636
  logistics_delay_customer_email: {
23436
23637
  Args: {
23437
23638
  p_customer: string;
@@ -23499,6 +23700,17 @@ export declare const getFlorydayCachedList: import("@tanstack/start-client-core"
23499
23700
  };
23500
23701
  Returns: import("../integrations/supabase/types").Json;
23501
23702
  };
23703
+ logistics_enqueue_shipping_note_with_slip: {
23704
+ Args: {
23705
+ _cart_id: string;
23706
+ _is_herprint: boolean;
23707
+ _printer_id: string;
23708
+ _queue_item_id: string;
23709
+ _session_id: string;
23710
+ _slip_job_id: string;
23711
+ };
23712
+ Returns: string;
23713
+ };
23502
23714
  logistics_enqueue_sticker_with_slip: {
23503
23715
  Args: {
23504
23716
  _cart_id: string;
@@ -23637,6 +23849,32 @@ export declare const getFlorydayCachedList: import("@tanstack/start-client-core"
23637
23849
  };
23638
23850
  Returns: string;
23639
23851
  };
23852
+ logistics_floriday_gate_status: {
23853
+ Args: never;
23854
+ Returns: import("../integrations/supabase/types").Json;
23855
+ };
23856
+ logistics_floriday_log_refusal: {
23857
+ Args: {
23858
+ _action?: string;
23859
+ _module?: string;
23860
+ _order_ref: string;
23861
+ _reason: string;
23862
+ _shell?: string;
23863
+ };
23864
+ Returns: undefined;
23865
+ };
23866
+ logistics_floriday_log_send: {
23867
+ Args: {
23868
+ _action: string;
23869
+ _detail?: string;
23870
+ _http_status?: number;
23871
+ _module?: string;
23872
+ _ok: boolean;
23873
+ _order_ref: string;
23874
+ _shell?: string;
23875
+ };
23876
+ Returns: undefined;
23877
+ };
23640
23878
  logistics_floriday_order_approved: {
23641
23879
  Args: {
23642
23880
  _order_ref: string;
@@ -23661,6 +23899,16 @@ export declare const getFlorydayCachedList: import("@tanstack/start-client-core"
23661
23899
  Args: never;
23662
23900
  Returns: boolean;
23663
23901
  };
23902
+ logistics_floriday_stock_updates_enabled: {
23903
+ Args: never;
23904
+ Returns: boolean;
23905
+ };
23906
+ logistics_floriday_write_allowed: {
23907
+ Args: {
23908
+ _action: string;
23909
+ };
23910
+ Returns: boolean;
23911
+ };
23664
23912
  logistics_fulfill_barcode_requests: {
23665
23913
  Args: {
23666
23914
  p_limit?: number;
@@ -23729,6 +23977,10 @@ export declare const getFlorydayCachedList: import("@tanstack/start-client-core"
23729
23977
  };
23730
23978
  Returns: string;
23731
23979
  };
23980
+ logistics_opening_timezone: {
23981
+ Args: never;
23982
+ Returns: string;
23983
+ };
23732
23984
  logistics_order_cart_count: {
23733
23985
  Args: {
23734
23986
  p_order_ref: string;
@@ -24120,6 +24372,10 @@ export declare const getFlorydayCachedList: import("@tanstack/start-client-core"
24120
24372
  };
24121
24373
  Returns: string;
24122
24374
  };
24375
+ logistics_shipping_note_follows_slip: {
24376
+ Args: never;
24377
+ Returns: boolean;
24378
+ };
24123
24379
  logistics_shipping_note_from_barcode: {
24124
24380
  Args: {
24125
24381
  p_allow_reprint?: boolean;
@@ -24132,6 +24388,14 @@ export declare const getFlorydayCachedList: import("@tanstack/start-client-core"
24132
24388
  Args: never;
24133
24389
  Returns: boolean;
24134
24390
  };
24391
+ logistics_subtract_working_minutes: {
24392
+ Args: {
24393
+ p_deadline: string;
24394
+ p_max_workdays?: number;
24395
+ p_minutes: number;
24396
+ };
24397
+ Returns: import("../integrations/supabase/types").Json;
24398
+ };
24135
24399
  logistics_supersede_stale_tasks: {
24136
24400
  Args: {
24137
24401
  p_keep: string[];
@@ -24168,6 +24432,12 @@ export declare const getFlorydayCachedList: import("@tanstack/start-client-core"
24168
24432
  Args: never;
24169
24433
  Returns: string;
24170
24434
  };
24435
+ logistics_timezone_options: {
24436
+ Args: never;
24437
+ Returns: {
24438
+ name: string;
24439
+ }[];
24440
+ };
24171
24441
  logistics_upsert_task: {
24172
24442
  Args: {
24173
24443
  p_buffer_ref: string;
@@ -24187,6 +24457,16 @@ export declare const getFlorydayCachedList: import("@tanstack/start-client-core"
24187
24457
  };
24188
24458
  Returns: string;
24189
24459
  };
24460
+ logistics_valid_timezone: {
24461
+ Args: {
24462
+ _tz: string;
24463
+ };
24464
+ Returns: boolean;
24465
+ };
24466
+ logistics_working_hours_status: {
24467
+ Args: never;
24468
+ Returns: import("../integrations/supabase/types").Json;
24469
+ };
24190
24470
  logistics_write_buffer_layer_positions: {
24191
24471
  Args: {
24192
24472
  p_buffer_id: string;
@@ -36222,22 +36502,31 @@ export declare const getFlorydayCodeList: import("@tanstack/start-client-core").
36222
36502
  };
36223
36503
  logistics_floriday_push_refusals: {
36224
36504
  Row: {
36505
+ action: string | null;
36225
36506
  created_at: string;
36226
36507
  id: string;
36227
36508
  order_ref: string;
36228
36509
  reason: string;
36510
+ source_module: string | null;
36511
+ source_shell: string | null;
36229
36512
  };
36230
36513
  Insert: {
36514
+ action?: string | null;
36231
36515
  created_at?: string;
36232
36516
  id?: string;
36233
36517
  order_ref: string;
36234
36518
  reason: string;
36519
+ source_module?: string | null;
36520
+ source_shell?: string | null;
36235
36521
  };
36236
36522
  Update: {
36523
+ action?: string | null;
36237
36524
  created_at?: string;
36238
36525
  id?: string;
36239
36526
  order_ref?: string;
36240
36527
  reason?: string;
36528
+ source_module?: string | null;
36529
+ source_shell?: string | null;
36241
36530
  };
36242
36531
  Relationships: [];
36243
36532
  };
@@ -36316,6 +36605,42 @@ export declare const getFlorydayCodeList: import("@tanstack/start-client-core").
36316
36605
  };
36317
36606
  Relationships: [];
36318
36607
  };
36608
+ logistics_floriday_status_sends: {
36609
+ Row: {
36610
+ action: string;
36611
+ created_at: string;
36612
+ detail: string | null;
36613
+ http_status: number | null;
36614
+ id: string;
36615
+ ok: boolean;
36616
+ order_ref: string;
36617
+ source_module: string | null;
36618
+ source_shell: string | null;
36619
+ };
36620
+ Insert: {
36621
+ action: string;
36622
+ created_at?: string;
36623
+ detail?: string | null;
36624
+ http_status?: number | null;
36625
+ id?: string;
36626
+ ok?: boolean;
36627
+ order_ref: string;
36628
+ source_module?: string | null;
36629
+ source_shell?: string | null;
36630
+ };
36631
+ Update: {
36632
+ action?: string;
36633
+ created_at?: string;
36634
+ detail?: string | null;
36635
+ http_status?: number | null;
36636
+ id?: string;
36637
+ ok?: boolean;
36638
+ order_ref?: string;
36639
+ source_module?: string | null;
36640
+ source_shell?: string | null;
36641
+ };
36642
+ Relationships: [];
36643
+ };
36319
36644
  logistics_formulas: {
36320
36645
  Row: {
36321
36646
  created_at: string;
@@ -36388,6 +36713,66 @@ export declare const getFlorydayCodeList: import("@tanstack/start-client-core").
36388
36713
  };
36389
36714
  Relationships: [];
36390
36715
  };
36716
+ logistics_opening_exceptions: {
36717
+ Row: {
36718
+ closes: string | null;
36719
+ created_at: string;
36720
+ day: string;
36721
+ id: string;
36722
+ is_closed: boolean;
36723
+ note: string | null;
36724
+ opens: string | null;
36725
+ };
36726
+ Insert: {
36727
+ closes?: string | null;
36728
+ created_at?: string;
36729
+ day: string;
36730
+ id?: string;
36731
+ is_closed?: boolean;
36732
+ note?: string | null;
36733
+ opens?: string | null;
36734
+ };
36735
+ Update: {
36736
+ closes?: string | null;
36737
+ created_at?: string;
36738
+ day?: string;
36739
+ id?: string;
36740
+ is_closed?: boolean;
36741
+ note?: string | null;
36742
+ opens?: string | null;
36743
+ };
36744
+ Relationships: [];
36745
+ };
36746
+ logistics_opening_hours: {
36747
+ Row: {
36748
+ closes: string;
36749
+ created_at: string;
36750
+ id: string;
36751
+ is_active: boolean;
36752
+ note: string | null;
36753
+ opens: string;
36754
+ weekday: number;
36755
+ };
36756
+ Insert: {
36757
+ closes: string;
36758
+ created_at?: string;
36759
+ id?: string;
36760
+ is_active?: boolean;
36761
+ note?: string | null;
36762
+ opens: string;
36763
+ weekday: number;
36764
+ };
36765
+ Update: {
36766
+ closes?: string;
36767
+ created_at?: string;
36768
+ id?: string;
36769
+ is_active?: boolean;
36770
+ note?: string | null;
36771
+ opens?: string;
36772
+ weekday?: number;
36773
+ };
36774
+ Relationships: [];
36775
+ };
36391
36776
  logistics_pickup_moments: {
36392
36777
  Row: {
36393
36778
  carrier_ref: string | null;
@@ -37180,6 +37565,24 @@ export declare const getFlorydayCodeList: import("@tanstack/start-client-core").
37180
37565
  };
37181
37566
  Relationships: [];
37182
37567
  };
37568
+ logistics_time_settings: {
37569
+ Row: {
37570
+ id: boolean;
37571
+ timezone: string;
37572
+ updated_at: string;
37573
+ };
37574
+ Insert: {
37575
+ id?: boolean;
37576
+ timezone: string;
37577
+ updated_at?: string;
37578
+ };
37579
+ Update: {
37580
+ id?: boolean;
37581
+ timezone?: string;
37582
+ updated_at?: string;
37583
+ };
37584
+ Relationships: [];
37585
+ };
37183
37586
  logistics_variables: {
37184
37587
  Row: {
37185
37588
  created_at: string;
@@ -39570,6 +39973,7 @@ export declare const getFlorydayCodeList: import("@tanstack/start-client-core").
39570
39973
  customer_name: string;
39571
39974
  deleted_at: string | null;
39572
39975
  delivery_date: string | null;
39976
+ floriday_order_group_key: string | null;
39573
39977
  floriday_sales_order_id: string | null;
39574
39978
  id: string;
39575
39979
  invoice_due_at: string | null;
@@ -39597,6 +40001,7 @@ export declare const getFlorydayCodeList: import("@tanstack/start-client-core").
39597
40001
  customer_name?: string;
39598
40002
  deleted_at?: string | null;
39599
40003
  delivery_date?: string | null;
40004
+ floriday_order_group_key?: string | null;
39600
40005
  floriday_sales_order_id?: string | null;
39601
40006
  id?: string;
39602
40007
  invoice_due_at?: string | null;
@@ -39624,6 +40029,7 @@ export declare const getFlorydayCodeList: import("@tanstack/start-client-core").
39624
40029
  customer_name?: string;
39625
40030
  deleted_at?: string | null;
39626
40031
  delivery_date?: string | null;
40032
+ floriday_order_group_key?: string | null;
39627
40033
  floriday_sales_order_id?: string | null;
39628
40034
  id?: string;
39629
40035
  invoice_due_at?: string | null;
@@ -45487,6 +45893,36 @@ export declare const getFlorydayCodeList: import("@tanstack/start-client-core").
45487
45893
  referencedColumns: ["id"];
45488
45894
  }];
45489
45895
  };
45896
+ voorraad_buffer_state: {
45897
+ Row: {
45898
+ buffer_id: string;
45899
+ buffer_key: string | null;
45900
+ closed_at: string | null;
45901
+ created_at: string;
45902
+ detached_orders: import("../integrations/supabase/types").Json;
45903
+ reason: string | null;
45904
+ updated_at: string;
45905
+ };
45906
+ Insert: {
45907
+ buffer_id: string;
45908
+ buffer_key?: string | null;
45909
+ closed_at?: string | null;
45910
+ created_at?: string;
45911
+ detached_orders?: import("../integrations/supabase/types").Json;
45912
+ reason?: string | null;
45913
+ updated_at?: string;
45914
+ };
45915
+ Update: {
45916
+ buffer_id?: string;
45917
+ buffer_key?: string | null;
45918
+ closed_at?: string | null;
45919
+ created_at?: string;
45920
+ detached_orders?: import("../integrations/supabase/types").Json;
45921
+ reason?: string | null;
45922
+ updated_at?: string;
45923
+ };
45924
+ Relationships: [];
45925
+ };
45490
45926
  voorraad_custom_fields: {
45491
45927
  Row: {
45492
45928
  created_at: string;
@@ -45529,6 +45965,36 @@ export declare const getFlorydayCodeList: import("@tanstack/start-client-core").
45529
45965
  };
45530
45966
  Relationships: [];
45531
45967
  };
45968
+ voorraad_logistics_event_log: {
45969
+ Row: {
45970
+ created_at: string;
45971
+ event_id: string;
45972
+ event_type: string;
45973
+ order_ref: string | null;
45974
+ processed_at: string;
45975
+ result: import("../integrations/supabase/types").Json;
45976
+ updated_at: string;
45977
+ };
45978
+ Insert: {
45979
+ created_at?: string;
45980
+ event_id: string;
45981
+ event_type: string;
45982
+ order_ref?: string | null;
45983
+ processed_at?: string;
45984
+ result?: import("../integrations/supabase/types").Json;
45985
+ updated_at?: string;
45986
+ };
45987
+ Update: {
45988
+ created_at?: string;
45989
+ event_id?: string;
45990
+ event_type?: string;
45991
+ order_ref?: string | null;
45992
+ processed_at?: string;
45993
+ result?: import("../integrations/supabase/types").Json;
45994
+ updated_at?: string;
45995
+ };
45996
+ Relationships: [];
45997
+ };
45532
45998
  voorraad_media_upload_failures: {
45533
45999
  Row: {
45534
46000
  action: string;
@@ -49498,6 +49964,12 @@ export declare const getFlorydayCodeList: import("@tanstack/start-client-core").
49498
49964
  station_carts: number;
49499
49965
  }[];
49500
49966
  };
49967
+ logistics_control_complete_cart: {
49968
+ Args: {
49969
+ p_cart_id: string;
49970
+ };
49971
+ Returns: number;
49972
+ };
49501
49973
  logistics_control_scan_approve: {
49502
49974
  Args: {
49503
49975
  p_allow_reprint?: boolean;
@@ -49577,6 +50049,15 @@ export declare const getFlorydayCodeList: import("@tanstack/start-client-core").
49577
50049
  Args: never;
49578
50050
  Returns: import("../integrations/supabase/types").Json;
49579
50051
  };
50052
+ logistics_day_windows: {
50053
+ Args: {
50054
+ p_day: string;
50055
+ };
50056
+ Returns: {
50057
+ win_end: string;
50058
+ win_start: string;
50059
+ }[];
50060
+ };
49580
50061
  logistics_delay_customer_email: {
49581
50062
  Args: {
49582
50063
  p_customer: string;
@@ -49644,6 +50125,17 @@ export declare const getFlorydayCodeList: import("@tanstack/start-client-core").
49644
50125
  };
49645
50126
  Returns: import("../integrations/supabase/types").Json;
49646
50127
  };
50128
+ logistics_enqueue_shipping_note_with_slip: {
50129
+ Args: {
50130
+ _cart_id: string;
50131
+ _is_herprint: boolean;
50132
+ _printer_id: string;
50133
+ _queue_item_id: string;
50134
+ _session_id: string;
50135
+ _slip_job_id: string;
50136
+ };
50137
+ Returns: string;
50138
+ };
49647
50139
  logistics_enqueue_sticker_with_slip: {
49648
50140
  Args: {
49649
50141
  _cart_id: string;
@@ -49782,6 +50274,32 @@ export declare const getFlorydayCodeList: import("@tanstack/start-client-core").
49782
50274
  };
49783
50275
  Returns: string;
49784
50276
  };
50277
+ logistics_floriday_gate_status: {
50278
+ Args: never;
50279
+ Returns: import("../integrations/supabase/types").Json;
50280
+ };
50281
+ logistics_floriday_log_refusal: {
50282
+ Args: {
50283
+ _action?: string;
50284
+ _module?: string;
50285
+ _order_ref: string;
50286
+ _reason: string;
50287
+ _shell?: string;
50288
+ };
50289
+ Returns: undefined;
50290
+ };
50291
+ logistics_floriday_log_send: {
50292
+ Args: {
50293
+ _action: string;
50294
+ _detail?: string;
50295
+ _http_status?: number;
50296
+ _module?: string;
50297
+ _ok: boolean;
50298
+ _order_ref: string;
50299
+ _shell?: string;
50300
+ };
50301
+ Returns: undefined;
50302
+ };
49785
50303
  logistics_floriday_order_approved: {
49786
50304
  Args: {
49787
50305
  _order_ref: string;
@@ -49806,6 +50324,16 @@ export declare const getFlorydayCodeList: import("@tanstack/start-client-core").
49806
50324
  Args: never;
49807
50325
  Returns: boolean;
49808
50326
  };
50327
+ logistics_floriday_stock_updates_enabled: {
50328
+ Args: never;
50329
+ Returns: boolean;
50330
+ };
50331
+ logistics_floriday_write_allowed: {
50332
+ Args: {
50333
+ _action: string;
50334
+ };
50335
+ Returns: boolean;
50336
+ };
49809
50337
  logistics_fulfill_barcode_requests: {
49810
50338
  Args: {
49811
50339
  p_limit?: number;
@@ -49874,6 +50402,10 @@ export declare const getFlorydayCodeList: import("@tanstack/start-client-core").
49874
50402
  };
49875
50403
  Returns: string;
49876
50404
  };
50405
+ logistics_opening_timezone: {
50406
+ Args: never;
50407
+ Returns: string;
50408
+ };
49877
50409
  logistics_order_cart_count: {
49878
50410
  Args: {
49879
50411
  p_order_ref: string;
@@ -50265,6 +50797,10 @@ export declare const getFlorydayCodeList: import("@tanstack/start-client-core").
50265
50797
  };
50266
50798
  Returns: string;
50267
50799
  };
50800
+ logistics_shipping_note_follows_slip: {
50801
+ Args: never;
50802
+ Returns: boolean;
50803
+ };
50268
50804
  logistics_shipping_note_from_barcode: {
50269
50805
  Args: {
50270
50806
  p_allow_reprint?: boolean;
@@ -50277,6 +50813,14 @@ export declare const getFlorydayCodeList: import("@tanstack/start-client-core").
50277
50813
  Args: never;
50278
50814
  Returns: boolean;
50279
50815
  };
50816
+ logistics_subtract_working_minutes: {
50817
+ Args: {
50818
+ p_deadline: string;
50819
+ p_max_workdays?: number;
50820
+ p_minutes: number;
50821
+ };
50822
+ Returns: import("../integrations/supabase/types").Json;
50823
+ };
50280
50824
  logistics_supersede_stale_tasks: {
50281
50825
  Args: {
50282
50826
  p_keep: string[];
@@ -50313,6 +50857,12 @@ export declare const getFlorydayCodeList: import("@tanstack/start-client-core").
50313
50857
  Args: never;
50314
50858
  Returns: string;
50315
50859
  };
50860
+ logistics_timezone_options: {
50861
+ Args: never;
50862
+ Returns: {
50863
+ name: string;
50864
+ }[];
50865
+ };
50316
50866
  logistics_upsert_task: {
50317
50867
  Args: {
50318
50868
  p_buffer_ref: string;
@@ -50332,6 +50882,16 @@ export declare const getFlorydayCodeList: import("@tanstack/start-client-core").
50332
50882
  };
50333
50883
  Returns: string;
50334
50884
  };
50885
+ logistics_valid_timezone: {
50886
+ Args: {
50887
+ _tz: string;
50888
+ };
50889
+ Returns: boolean;
50890
+ };
50891
+ logistics_working_hours_status: {
50892
+ Args: never;
50893
+ Returns: import("../integrations/supabase/types").Json;
50894
+ };
50335
50895
  logistics_write_buffer_layer_positions: {
50336
50896
  Args: {
50337
50897
  p_buffer_id: string;
@@ -62363,22 +62923,31 @@ export declare const getFlorydayAllowedValues: import("@tanstack/start-client-co
62363
62923
  };
62364
62924
  logistics_floriday_push_refusals: {
62365
62925
  Row: {
62926
+ action: string | null;
62366
62927
  created_at: string;
62367
62928
  id: string;
62368
62929
  order_ref: string;
62369
62930
  reason: string;
62931
+ source_module: string | null;
62932
+ source_shell: string | null;
62370
62933
  };
62371
62934
  Insert: {
62935
+ action?: string | null;
62372
62936
  created_at?: string;
62373
62937
  id?: string;
62374
62938
  order_ref: string;
62375
62939
  reason: string;
62940
+ source_module?: string | null;
62941
+ source_shell?: string | null;
62376
62942
  };
62377
62943
  Update: {
62944
+ action?: string | null;
62378
62945
  created_at?: string;
62379
62946
  id?: string;
62380
62947
  order_ref?: string;
62381
62948
  reason?: string;
62949
+ source_module?: string | null;
62950
+ source_shell?: string | null;
62382
62951
  };
62383
62952
  Relationships: [];
62384
62953
  };
@@ -62457,6 +63026,42 @@ export declare const getFlorydayAllowedValues: import("@tanstack/start-client-co
62457
63026
  };
62458
63027
  Relationships: [];
62459
63028
  };
63029
+ logistics_floriday_status_sends: {
63030
+ Row: {
63031
+ action: string;
63032
+ created_at: string;
63033
+ detail: string | null;
63034
+ http_status: number | null;
63035
+ id: string;
63036
+ ok: boolean;
63037
+ order_ref: string;
63038
+ source_module: string | null;
63039
+ source_shell: string | null;
63040
+ };
63041
+ Insert: {
63042
+ action: string;
63043
+ created_at?: string;
63044
+ detail?: string | null;
63045
+ http_status?: number | null;
63046
+ id?: string;
63047
+ ok?: boolean;
63048
+ order_ref: string;
63049
+ source_module?: string | null;
63050
+ source_shell?: string | null;
63051
+ };
63052
+ Update: {
63053
+ action?: string;
63054
+ created_at?: string;
63055
+ detail?: string | null;
63056
+ http_status?: number | null;
63057
+ id?: string;
63058
+ ok?: boolean;
63059
+ order_ref?: string;
63060
+ source_module?: string | null;
63061
+ source_shell?: string | null;
63062
+ };
63063
+ Relationships: [];
63064
+ };
62460
63065
  logistics_formulas: {
62461
63066
  Row: {
62462
63067
  created_at: string;
@@ -62529,6 +63134,66 @@ export declare const getFlorydayAllowedValues: import("@tanstack/start-client-co
62529
63134
  };
62530
63135
  Relationships: [];
62531
63136
  };
63137
+ logistics_opening_exceptions: {
63138
+ Row: {
63139
+ closes: string | null;
63140
+ created_at: string;
63141
+ day: string;
63142
+ id: string;
63143
+ is_closed: boolean;
63144
+ note: string | null;
63145
+ opens: string | null;
63146
+ };
63147
+ Insert: {
63148
+ closes?: string | null;
63149
+ created_at?: string;
63150
+ day: string;
63151
+ id?: string;
63152
+ is_closed?: boolean;
63153
+ note?: string | null;
63154
+ opens?: string | null;
63155
+ };
63156
+ Update: {
63157
+ closes?: string | null;
63158
+ created_at?: string;
63159
+ day?: string;
63160
+ id?: string;
63161
+ is_closed?: boolean;
63162
+ note?: string | null;
63163
+ opens?: string | null;
63164
+ };
63165
+ Relationships: [];
63166
+ };
63167
+ logistics_opening_hours: {
63168
+ Row: {
63169
+ closes: string;
63170
+ created_at: string;
63171
+ id: string;
63172
+ is_active: boolean;
63173
+ note: string | null;
63174
+ opens: string;
63175
+ weekday: number;
63176
+ };
63177
+ Insert: {
63178
+ closes: string;
63179
+ created_at?: string;
63180
+ id?: string;
63181
+ is_active?: boolean;
63182
+ note?: string | null;
63183
+ opens: string;
63184
+ weekday: number;
63185
+ };
63186
+ Update: {
63187
+ closes?: string;
63188
+ created_at?: string;
63189
+ id?: string;
63190
+ is_active?: boolean;
63191
+ note?: string | null;
63192
+ opens?: string;
63193
+ weekday?: number;
63194
+ };
63195
+ Relationships: [];
63196
+ };
62532
63197
  logistics_pickup_moments: {
62533
63198
  Row: {
62534
63199
  carrier_ref: string | null;
@@ -63321,6 +63986,24 @@ export declare const getFlorydayAllowedValues: import("@tanstack/start-client-co
63321
63986
  };
63322
63987
  Relationships: [];
63323
63988
  };
63989
+ logistics_time_settings: {
63990
+ Row: {
63991
+ id: boolean;
63992
+ timezone: string;
63993
+ updated_at: string;
63994
+ };
63995
+ Insert: {
63996
+ id?: boolean;
63997
+ timezone: string;
63998
+ updated_at?: string;
63999
+ };
64000
+ Update: {
64001
+ id?: boolean;
64002
+ timezone?: string;
64003
+ updated_at?: string;
64004
+ };
64005
+ Relationships: [];
64006
+ };
63324
64007
  logistics_variables: {
63325
64008
  Row: {
63326
64009
  created_at: string;
@@ -65711,6 +66394,7 @@ export declare const getFlorydayAllowedValues: import("@tanstack/start-client-co
65711
66394
  customer_name: string;
65712
66395
  deleted_at: string | null;
65713
66396
  delivery_date: string | null;
66397
+ floriday_order_group_key: string | null;
65714
66398
  floriday_sales_order_id: string | null;
65715
66399
  id: string;
65716
66400
  invoice_due_at: string | null;
@@ -65738,6 +66422,7 @@ export declare const getFlorydayAllowedValues: import("@tanstack/start-client-co
65738
66422
  customer_name?: string;
65739
66423
  deleted_at?: string | null;
65740
66424
  delivery_date?: string | null;
66425
+ floriday_order_group_key?: string | null;
65741
66426
  floriday_sales_order_id?: string | null;
65742
66427
  id?: string;
65743
66428
  invoice_due_at?: string | null;
@@ -65765,6 +66450,7 @@ export declare const getFlorydayAllowedValues: import("@tanstack/start-client-co
65765
66450
  customer_name?: string;
65766
66451
  deleted_at?: string | null;
65767
66452
  delivery_date?: string | null;
66453
+ floriday_order_group_key?: string | null;
65768
66454
  floriday_sales_order_id?: string | null;
65769
66455
  id?: string;
65770
66456
  invoice_due_at?: string | null;
@@ -71628,6 +72314,36 @@ export declare const getFlorydayAllowedValues: import("@tanstack/start-client-co
71628
72314
  referencedColumns: ["id"];
71629
72315
  }];
71630
72316
  };
72317
+ voorraad_buffer_state: {
72318
+ Row: {
72319
+ buffer_id: string;
72320
+ buffer_key: string | null;
72321
+ closed_at: string | null;
72322
+ created_at: string;
72323
+ detached_orders: import("../integrations/supabase/types").Json;
72324
+ reason: string | null;
72325
+ updated_at: string;
72326
+ };
72327
+ Insert: {
72328
+ buffer_id: string;
72329
+ buffer_key?: string | null;
72330
+ closed_at?: string | null;
72331
+ created_at?: string;
72332
+ detached_orders?: import("../integrations/supabase/types").Json;
72333
+ reason?: string | null;
72334
+ updated_at?: string;
72335
+ };
72336
+ Update: {
72337
+ buffer_id?: string;
72338
+ buffer_key?: string | null;
72339
+ closed_at?: string | null;
72340
+ created_at?: string;
72341
+ detached_orders?: import("../integrations/supabase/types").Json;
72342
+ reason?: string | null;
72343
+ updated_at?: string;
72344
+ };
72345
+ Relationships: [];
72346
+ };
71631
72347
  voorraad_custom_fields: {
71632
72348
  Row: {
71633
72349
  created_at: string;
@@ -71670,6 +72386,36 @@ export declare const getFlorydayAllowedValues: import("@tanstack/start-client-co
71670
72386
  };
71671
72387
  Relationships: [];
71672
72388
  };
72389
+ voorraad_logistics_event_log: {
72390
+ Row: {
72391
+ created_at: string;
72392
+ event_id: string;
72393
+ event_type: string;
72394
+ order_ref: string | null;
72395
+ processed_at: string;
72396
+ result: import("../integrations/supabase/types").Json;
72397
+ updated_at: string;
72398
+ };
72399
+ Insert: {
72400
+ created_at?: string;
72401
+ event_id: string;
72402
+ event_type: string;
72403
+ order_ref?: string | null;
72404
+ processed_at?: string;
72405
+ result?: import("../integrations/supabase/types").Json;
72406
+ updated_at?: string;
72407
+ };
72408
+ Update: {
72409
+ created_at?: string;
72410
+ event_id?: string;
72411
+ event_type?: string;
72412
+ order_ref?: string | null;
72413
+ processed_at?: string;
72414
+ result?: import("../integrations/supabase/types").Json;
72415
+ updated_at?: string;
72416
+ };
72417
+ Relationships: [];
72418
+ };
71673
72419
  voorraad_media_upload_failures: {
71674
72420
  Row: {
71675
72421
  action: string;
@@ -75639,6 +76385,12 @@ export declare const getFlorydayAllowedValues: import("@tanstack/start-client-co
75639
76385
  station_carts: number;
75640
76386
  }[];
75641
76387
  };
76388
+ logistics_control_complete_cart: {
76389
+ Args: {
76390
+ p_cart_id: string;
76391
+ };
76392
+ Returns: number;
76393
+ };
75642
76394
  logistics_control_scan_approve: {
75643
76395
  Args: {
75644
76396
  p_allow_reprint?: boolean;
@@ -75718,6 +76470,15 @@ export declare const getFlorydayAllowedValues: import("@tanstack/start-client-co
75718
76470
  Args: never;
75719
76471
  Returns: import("../integrations/supabase/types").Json;
75720
76472
  };
76473
+ logistics_day_windows: {
76474
+ Args: {
76475
+ p_day: string;
76476
+ };
76477
+ Returns: {
76478
+ win_end: string;
76479
+ win_start: string;
76480
+ }[];
76481
+ };
75721
76482
  logistics_delay_customer_email: {
75722
76483
  Args: {
75723
76484
  p_customer: string;
@@ -75785,6 +76546,17 @@ export declare const getFlorydayAllowedValues: import("@tanstack/start-client-co
75785
76546
  };
75786
76547
  Returns: import("../integrations/supabase/types").Json;
75787
76548
  };
76549
+ logistics_enqueue_shipping_note_with_slip: {
76550
+ Args: {
76551
+ _cart_id: string;
76552
+ _is_herprint: boolean;
76553
+ _printer_id: string;
76554
+ _queue_item_id: string;
76555
+ _session_id: string;
76556
+ _slip_job_id: string;
76557
+ };
76558
+ Returns: string;
76559
+ };
75788
76560
  logistics_enqueue_sticker_with_slip: {
75789
76561
  Args: {
75790
76562
  _cart_id: string;
@@ -75923,6 +76695,32 @@ export declare const getFlorydayAllowedValues: import("@tanstack/start-client-co
75923
76695
  };
75924
76696
  Returns: string;
75925
76697
  };
76698
+ logistics_floriday_gate_status: {
76699
+ Args: never;
76700
+ Returns: import("../integrations/supabase/types").Json;
76701
+ };
76702
+ logistics_floriday_log_refusal: {
76703
+ Args: {
76704
+ _action?: string;
76705
+ _module?: string;
76706
+ _order_ref: string;
76707
+ _reason: string;
76708
+ _shell?: string;
76709
+ };
76710
+ Returns: undefined;
76711
+ };
76712
+ logistics_floriday_log_send: {
76713
+ Args: {
76714
+ _action: string;
76715
+ _detail?: string;
76716
+ _http_status?: number;
76717
+ _module?: string;
76718
+ _ok: boolean;
76719
+ _order_ref: string;
76720
+ _shell?: string;
76721
+ };
76722
+ Returns: undefined;
76723
+ };
75926
76724
  logistics_floriday_order_approved: {
75927
76725
  Args: {
75928
76726
  _order_ref: string;
@@ -75947,6 +76745,16 @@ export declare const getFlorydayAllowedValues: import("@tanstack/start-client-co
75947
76745
  Args: never;
75948
76746
  Returns: boolean;
75949
76747
  };
76748
+ logistics_floriday_stock_updates_enabled: {
76749
+ Args: never;
76750
+ Returns: boolean;
76751
+ };
76752
+ logistics_floriday_write_allowed: {
76753
+ Args: {
76754
+ _action: string;
76755
+ };
76756
+ Returns: boolean;
76757
+ };
75950
76758
  logistics_fulfill_barcode_requests: {
75951
76759
  Args: {
75952
76760
  p_limit?: number;
@@ -76015,6 +76823,10 @@ export declare const getFlorydayAllowedValues: import("@tanstack/start-client-co
76015
76823
  };
76016
76824
  Returns: string;
76017
76825
  };
76826
+ logistics_opening_timezone: {
76827
+ Args: never;
76828
+ Returns: string;
76829
+ };
76018
76830
  logistics_order_cart_count: {
76019
76831
  Args: {
76020
76832
  p_order_ref: string;
@@ -76406,6 +77218,10 @@ export declare const getFlorydayAllowedValues: import("@tanstack/start-client-co
76406
77218
  };
76407
77219
  Returns: string;
76408
77220
  };
77221
+ logistics_shipping_note_follows_slip: {
77222
+ Args: never;
77223
+ Returns: boolean;
77224
+ };
76409
77225
  logistics_shipping_note_from_barcode: {
76410
77226
  Args: {
76411
77227
  p_allow_reprint?: boolean;
@@ -76418,6 +77234,14 @@ export declare const getFlorydayAllowedValues: import("@tanstack/start-client-co
76418
77234
  Args: never;
76419
77235
  Returns: boolean;
76420
77236
  };
77237
+ logistics_subtract_working_minutes: {
77238
+ Args: {
77239
+ p_deadline: string;
77240
+ p_max_workdays?: number;
77241
+ p_minutes: number;
77242
+ };
77243
+ Returns: import("../integrations/supabase/types").Json;
77244
+ };
76421
77245
  logistics_supersede_stale_tasks: {
76422
77246
  Args: {
76423
77247
  p_keep: string[];
@@ -76454,6 +77278,12 @@ export declare const getFlorydayAllowedValues: import("@tanstack/start-client-co
76454
77278
  Args: never;
76455
77279
  Returns: string;
76456
77280
  };
77281
+ logistics_timezone_options: {
77282
+ Args: never;
77283
+ Returns: {
77284
+ name: string;
77285
+ }[];
77286
+ };
76457
77287
  logistics_upsert_task: {
76458
77288
  Args: {
76459
77289
  p_buffer_ref: string;
@@ -76473,6 +77303,16 @@ export declare const getFlorydayAllowedValues: import("@tanstack/start-client-co
76473
77303
  };
76474
77304
  Returns: string;
76475
77305
  };
77306
+ logistics_valid_timezone: {
77307
+ Args: {
77308
+ _tz: string;
77309
+ };
77310
+ Returns: boolean;
77311
+ };
77312
+ logistics_working_hours_status: {
77313
+ Args: never;
77314
+ Returns: import("../integrations/supabase/types").Json;
77315
+ };
76476
77316
  logistics_write_buffer_layer_positions: {
76477
77317
  Args: {
76478
77318
  p_buffer_id: string;
@@ -88504,22 +89344,31 @@ export declare const assertFlorydayValue: import("@tanstack/start-client-core").
88504
89344
  };
88505
89345
  logistics_floriday_push_refusals: {
88506
89346
  Row: {
89347
+ action: string | null;
88507
89348
  created_at: string;
88508
89349
  id: string;
88509
89350
  order_ref: string;
88510
89351
  reason: string;
89352
+ source_module: string | null;
89353
+ source_shell: string | null;
88511
89354
  };
88512
89355
  Insert: {
89356
+ action?: string | null;
88513
89357
  created_at?: string;
88514
89358
  id?: string;
88515
89359
  order_ref: string;
88516
89360
  reason: string;
89361
+ source_module?: string | null;
89362
+ source_shell?: string | null;
88517
89363
  };
88518
89364
  Update: {
89365
+ action?: string | null;
88519
89366
  created_at?: string;
88520
89367
  id?: string;
88521
89368
  order_ref?: string;
88522
89369
  reason?: string;
89370
+ source_module?: string | null;
89371
+ source_shell?: string | null;
88523
89372
  };
88524
89373
  Relationships: [];
88525
89374
  };
@@ -88598,6 +89447,42 @@ export declare const assertFlorydayValue: import("@tanstack/start-client-core").
88598
89447
  };
88599
89448
  Relationships: [];
88600
89449
  };
89450
+ logistics_floriday_status_sends: {
89451
+ Row: {
89452
+ action: string;
89453
+ created_at: string;
89454
+ detail: string | null;
89455
+ http_status: number | null;
89456
+ id: string;
89457
+ ok: boolean;
89458
+ order_ref: string;
89459
+ source_module: string | null;
89460
+ source_shell: string | null;
89461
+ };
89462
+ Insert: {
89463
+ action: string;
89464
+ created_at?: string;
89465
+ detail?: string | null;
89466
+ http_status?: number | null;
89467
+ id?: string;
89468
+ ok?: boolean;
89469
+ order_ref: string;
89470
+ source_module?: string | null;
89471
+ source_shell?: string | null;
89472
+ };
89473
+ Update: {
89474
+ action?: string;
89475
+ created_at?: string;
89476
+ detail?: string | null;
89477
+ http_status?: number | null;
89478
+ id?: string;
89479
+ ok?: boolean;
89480
+ order_ref?: string;
89481
+ source_module?: string | null;
89482
+ source_shell?: string | null;
89483
+ };
89484
+ Relationships: [];
89485
+ };
88601
89486
  logistics_formulas: {
88602
89487
  Row: {
88603
89488
  created_at: string;
@@ -88670,6 +89555,66 @@ export declare const assertFlorydayValue: import("@tanstack/start-client-core").
88670
89555
  };
88671
89556
  Relationships: [];
88672
89557
  };
89558
+ logistics_opening_exceptions: {
89559
+ Row: {
89560
+ closes: string | null;
89561
+ created_at: string;
89562
+ day: string;
89563
+ id: string;
89564
+ is_closed: boolean;
89565
+ note: string | null;
89566
+ opens: string | null;
89567
+ };
89568
+ Insert: {
89569
+ closes?: string | null;
89570
+ created_at?: string;
89571
+ day: string;
89572
+ id?: string;
89573
+ is_closed?: boolean;
89574
+ note?: string | null;
89575
+ opens?: string | null;
89576
+ };
89577
+ Update: {
89578
+ closes?: string | null;
89579
+ created_at?: string;
89580
+ day?: string;
89581
+ id?: string;
89582
+ is_closed?: boolean;
89583
+ note?: string | null;
89584
+ opens?: string | null;
89585
+ };
89586
+ Relationships: [];
89587
+ };
89588
+ logistics_opening_hours: {
89589
+ Row: {
89590
+ closes: string;
89591
+ created_at: string;
89592
+ id: string;
89593
+ is_active: boolean;
89594
+ note: string | null;
89595
+ opens: string;
89596
+ weekday: number;
89597
+ };
89598
+ Insert: {
89599
+ closes: string;
89600
+ created_at?: string;
89601
+ id?: string;
89602
+ is_active?: boolean;
89603
+ note?: string | null;
89604
+ opens: string;
89605
+ weekday: number;
89606
+ };
89607
+ Update: {
89608
+ closes?: string;
89609
+ created_at?: string;
89610
+ id?: string;
89611
+ is_active?: boolean;
89612
+ note?: string | null;
89613
+ opens?: string;
89614
+ weekday?: number;
89615
+ };
89616
+ Relationships: [];
89617
+ };
88673
89618
  logistics_pickup_moments: {
88674
89619
  Row: {
88675
89620
  carrier_ref: string | null;
@@ -89462,6 +90407,24 @@ export declare const assertFlorydayValue: import("@tanstack/start-client-core").
89462
90407
  };
89463
90408
  Relationships: [];
89464
90409
  };
90410
+ logistics_time_settings: {
90411
+ Row: {
90412
+ id: boolean;
90413
+ timezone: string;
90414
+ updated_at: string;
90415
+ };
90416
+ Insert: {
90417
+ id?: boolean;
90418
+ timezone: string;
90419
+ updated_at?: string;
90420
+ };
90421
+ Update: {
90422
+ id?: boolean;
90423
+ timezone?: string;
90424
+ updated_at?: string;
90425
+ };
90426
+ Relationships: [];
90427
+ };
89465
90428
  logistics_variables: {
89466
90429
  Row: {
89467
90430
  created_at: string;
@@ -91852,6 +92815,7 @@ export declare const assertFlorydayValue: import("@tanstack/start-client-core").
91852
92815
  customer_name: string;
91853
92816
  deleted_at: string | null;
91854
92817
  delivery_date: string | null;
92818
+ floriday_order_group_key: string | null;
91855
92819
  floriday_sales_order_id: string | null;
91856
92820
  id: string;
91857
92821
  invoice_due_at: string | null;
@@ -91879,6 +92843,7 @@ export declare const assertFlorydayValue: import("@tanstack/start-client-core").
91879
92843
  customer_name?: string;
91880
92844
  deleted_at?: string | null;
91881
92845
  delivery_date?: string | null;
92846
+ floriday_order_group_key?: string | null;
91882
92847
  floriday_sales_order_id?: string | null;
91883
92848
  id?: string;
91884
92849
  invoice_due_at?: string | null;
@@ -91906,6 +92871,7 @@ export declare const assertFlorydayValue: import("@tanstack/start-client-core").
91906
92871
  customer_name?: string;
91907
92872
  deleted_at?: string | null;
91908
92873
  delivery_date?: string | null;
92874
+ floriday_order_group_key?: string | null;
91909
92875
  floriday_sales_order_id?: string | null;
91910
92876
  id?: string;
91911
92877
  invoice_due_at?: string | null;
@@ -97769,6 +98735,36 @@ export declare const assertFlorydayValue: import("@tanstack/start-client-core").
97769
98735
  referencedColumns: ["id"];
97770
98736
  }];
97771
98737
  };
98738
+ voorraad_buffer_state: {
98739
+ Row: {
98740
+ buffer_id: string;
98741
+ buffer_key: string | null;
98742
+ closed_at: string | null;
98743
+ created_at: string;
98744
+ detached_orders: import("../integrations/supabase/types").Json;
98745
+ reason: string | null;
98746
+ updated_at: string;
98747
+ };
98748
+ Insert: {
98749
+ buffer_id: string;
98750
+ buffer_key?: string | null;
98751
+ closed_at?: string | null;
98752
+ created_at?: string;
98753
+ detached_orders?: import("../integrations/supabase/types").Json;
98754
+ reason?: string | null;
98755
+ updated_at?: string;
98756
+ };
98757
+ Update: {
98758
+ buffer_id?: string;
98759
+ buffer_key?: string | null;
98760
+ closed_at?: string | null;
98761
+ created_at?: string;
98762
+ detached_orders?: import("../integrations/supabase/types").Json;
98763
+ reason?: string | null;
98764
+ updated_at?: string;
98765
+ };
98766
+ Relationships: [];
98767
+ };
97772
98768
  voorraad_custom_fields: {
97773
98769
  Row: {
97774
98770
  created_at: string;
@@ -97811,6 +98807,36 @@ export declare const assertFlorydayValue: import("@tanstack/start-client-core").
97811
98807
  };
97812
98808
  Relationships: [];
97813
98809
  };
98810
+ voorraad_logistics_event_log: {
98811
+ Row: {
98812
+ created_at: string;
98813
+ event_id: string;
98814
+ event_type: string;
98815
+ order_ref: string | null;
98816
+ processed_at: string;
98817
+ result: import("../integrations/supabase/types").Json;
98818
+ updated_at: string;
98819
+ };
98820
+ Insert: {
98821
+ created_at?: string;
98822
+ event_id: string;
98823
+ event_type: string;
98824
+ order_ref?: string | null;
98825
+ processed_at?: string;
98826
+ result?: import("../integrations/supabase/types").Json;
98827
+ updated_at?: string;
98828
+ };
98829
+ Update: {
98830
+ created_at?: string;
98831
+ event_id?: string;
98832
+ event_type?: string;
98833
+ order_ref?: string | null;
98834
+ processed_at?: string;
98835
+ result?: import("../integrations/supabase/types").Json;
98836
+ updated_at?: string;
98837
+ };
98838
+ Relationships: [];
98839
+ };
97814
98840
  voorraad_media_upload_failures: {
97815
98841
  Row: {
97816
98842
  action: string;
@@ -101780,6 +102806,12 @@ export declare const assertFlorydayValue: import("@tanstack/start-client-core").
101780
102806
  station_carts: number;
101781
102807
  }[];
101782
102808
  };
102809
+ logistics_control_complete_cart: {
102810
+ Args: {
102811
+ p_cart_id: string;
102812
+ };
102813
+ Returns: number;
102814
+ };
101783
102815
  logistics_control_scan_approve: {
101784
102816
  Args: {
101785
102817
  p_allow_reprint?: boolean;
@@ -101859,6 +102891,15 @@ export declare const assertFlorydayValue: import("@tanstack/start-client-core").
101859
102891
  Args: never;
101860
102892
  Returns: import("../integrations/supabase/types").Json;
101861
102893
  };
102894
+ logistics_day_windows: {
102895
+ Args: {
102896
+ p_day: string;
102897
+ };
102898
+ Returns: {
102899
+ win_end: string;
102900
+ win_start: string;
102901
+ }[];
102902
+ };
101862
102903
  logistics_delay_customer_email: {
101863
102904
  Args: {
101864
102905
  p_customer: string;
@@ -101926,6 +102967,17 @@ export declare const assertFlorydayValue: import("@tanstack/start-client-core").
101926
102967
  };
101927
102968
  Returns: import("../integrations/supabase/types").Json;
101928
102969
  };
102970
+ logistics_enqueue_shipping_note_with_slip: {
102971
+ Args: {
102972
+ _cart_id: string;
102973
+ _is_herprint: boolean;
102974
+ _printer_id: string;
102975
+ _queue_item_id: string;
102976
+ _session_id: string;
102977
+ _slip_job_id: string;
102978
+ };
102979
+ Returns: string;
102980
+ };
101929
102981
  logistics_enqueue_sticker_with_slip: {
101930
102982
  Args: {
101931
102983
  _cart_id: string;
@@ -102064,6 +103116,32 @@ export declare const assertFlorydayValue: import("@tanstack/start-client-core").
102064
103116
  };
102065
103117
  Returns: string;
102066
103118
  };
103119
+ logistics_floriday_gate_status: {
103120
+ Args: never;
103121
+ Returns: import("../integrations/supabase/types").Json;
103122
+ };
103123
+ logistics_floriday_log_refusal: {
103124
+ Args: {
103125
+ _action?: string;
103126
+ _module?: string;
103127
+ _order_ref: string;
103128
+ _reason: string;
103129
+ _shell?: string;
103130
+ };
103131
+ Returns: undefined;
103132
+ };
103133
+ logistics_floriday_log_send: {
103134
+ Args: {
103135
+ _action: string;
103136
+ _detail?: string;
103137
+ _http_status?: number;
103138
+ _module?: string;
103139
+ _ok: boolean;
103140
+ _order_ref: string;
103141
+ _shell?: string;
103142
+ };
103143
+ Returns: undefined;
103144
+ };
102067
103145
  logistics_floriday_order_approved: {
102068
103146
  Args: {
102069
103147
  _order_ref: string;
@@ -102088,6 +103166,16 @@ export declare const assertFlorydayValue: import("@tanstack/start-client-core").
102088
103166
  Args: never;
102089
103167
  Returns: boolean;
102090
103168
  };
103169
+ logistics_floriday_stock_updates_enabled: {
103170
+ Args: never;
103171
+ Returns: boolean;
103172
+ };
103173
+ logistics_floriday_write_allowed: {
103174
+ Args: {
103175
+ _action: string;
103176
+ };
103177
+ Returns: boolean;
103178
+ };
102091
103179
  logistics_fulfill_barcode_requests: {
102092
103180
  Args: {
102093
103181
  p_limit?: number;
@@ -102156,6 +103244,10 @@ export declare const assertFlorydayValue: import("@tanstack/start-client-core").
102156
103244
  };
102157
103245
  Returns: string;
102158
103246
  };
103247
+ logistics_opening_timezone: {
103248
+ Args: never;
103249
+ Returns: string;
103250
+ };
102159
103251
  logistics_order_cart_count: {
102160
103252
  Args: {
102161
103253
  p_order_ref: string;
@@ -102547,6 +103639,10 @@ export declare const assertFlorydayValue: import("@tanstack/start-client-core").
102547
103639
  };
102548
103640
  Returns: string;
102549
103641
  };
103642
+ logistics_shipping_note_follows_slip: {
103643
+ Args: never;
103644
+ Returns: boolean;
103645
+ };
102550
103646
  logistics_shipping_note_from_barcode: {
102551
103647
  Args: {
102552
103648
  p_allow_reprint?: boolean;
@@ -102559,6 +103655,14 @@ export declare const assertFlorydayValue: import("@tanstack/start-client-core").
102559
103655
  Args: never;
102560
103656
  Returns: boolean;
102561
103657
  };
103658
+ logistics_subtract_working_minutes: {
103659
+ Args: {
103660
+ p_deadline: string;
103661
+ p_max_workdays?: number;
103662
+ p_minutes: number;
103663
+ };
103664
+ Returns: import("../integrations/supabase/types").Json;
103665
+ };
102562
103666
  logistics_supersede_stale_tasks: {
102563
103667
  Args: {
102564
103668
  p_keep: string[];
@@ -102595,6 +103699,12 @@ export declare const assertFlorydayValue: import("@tanstack/start-client-core").
102595
103699
  Args: never;
102596
103700
  Returns: string;
102597
103701
  };
103702
+ logistics_timezone_options: {
103703
+ Args: never;
103704
+ Returns: {
103705
+ name: string;
103706
+ }[];
103707
+ };
102598
103708
  logistics_upsert_task: {
102599
103709
  Args: {
102600
103710
  p_buffer_ref: string;
@@ -102614,6 +103724,16 @@ export declare const assertFlorydayValue: import("@tanstack/start-client-core").
102614
103724
  };
102615
103725
  Returns: string;
102616
103726
  };
103727
+ logistics_valid_timezone: {
103728
+ Args: {
103729
+ _tz: string;
103730
+ };
103731
+ Returns: boolean;
103732
+ };
103733
+ logistics_working_hours_status: {
103734
+ Args: never;
103735
+ Returns: import("../integrations/supabase/types").Json;
103736
+ };
102617
103737
  logistics_write_buffer_layer_positions: {
102618
103738
  Args: {
102619
103739
  p_buffer_id: string;
@@ -114655,22 +115775,31 @@ export declare const getFlorydayVbnProduct: import("@tanstack/start-client-core"
114655
115775
  };
114656
115776
  logistics_floriday_push_refusals: {
114657
115777
  Row: {
115778
+ action: string | null;
114658
115779
  created_at: string;
114659
115780
  id: string;
114660
115781
  order_ref: string;
114661
115782
  reason: string;
115783
+ source_module: string | null;
115784
+ source_shell: string | null;
114662
115785
  };
114663
115786
  Insert: {
115787
+ action?: string | null;
114664
115788
  created_at?: string;
114665
115789
  id?: string;
114666
115790
  order_ref: string;
114667
115791
  reason: string;
115792
+ source_module?: string | null;
115793
+ source_shell?: string | null;
114668
115794
  };
114669
115795
  Update: {
115796
+ action?: string | null;
114670
115797
  created_at?: string;
114671
115798
  id?: string;
114672
115799
  order_ref?: string;
114673
115800
  reason?: string;
115801
+ source_module?: string | null;
115802
+ source_shell?: string | null;
114674
115803
  };
114675
115804
  Relationships: [];
114676
115805
  };
@@ -114749,6 +115878,42 @@ export declare const getFlorydayVbnProduct: import("@tanstack/start-client-core"
114749
115878
  };
114750
115879
  Relationships: [];
114751
115880
  };
115881
+ logistics_floriday_status_sends: {
115882
+ Row: {
115883
+ action: string;
115884
+ created_at: string;
115885
+ detail: string | null;
115886
+ http_status: number | null;
115887
+ id: string;
115888
+ ok: boolean;
115889
+ order_ref: string;
115890
+ source_module: string | null;
115891
+ source_shell: string | null;
115892
+ };
115893
+ Insert: {
115894
+ action: string;
115895
+ created_at?: string;
115896
+ detail?: string | null;
115897
+ http_status?: number | null;
115898
+ id?: string;
115899
+ ok?: boolean;
115900
+ order_ref: string;
115901
+ source_module?: string | null;
115902
+ source_shell?: string | null;
115903
+ };
115904
+ Update: {
115905
+ action?: string;
115906
+ created_at?: string;
115907
+ detail?: string | null;
115908
+ http_status?: number | null;
115909
+ id?: string;
115910
+ ok?: boolean;
115911
+ order_ref?: string;
115912
+ source_module?: string | null;
115913
+ source_shell?: string | null;
115914
+ };
115915
+ Relationships: [];
115916
+ };
114752
115917
  logistics_formulas: {
114753
115918
  Row: {
114754
115919
  created_at: string;
@@ -114821,6 +115986,66 @@ export declare const getFlorydayVbnProduct: import("@tanstack/start-client-core"
114821
115986
  };
114822
115987
  Relationships: [];
114823
115988
  };
115989
+ logistics_opening_exceptions: {
115990
+ Row: {
115991
+ closes: string | null;
115992
+ created_at: string;
115993
+ day: string;
115994
+ id: string;
115995
+ is_closed: boolean;
115996
+ note: string | null;
115997
+ opens: string | null;
115998
+ };
115999
+ Insert: {
116000
+ closes?: string | null;
116001
+ created_at?: string;
116002
+ day: string;
116003
+ id?: string;
116004
+ is_closed?: boolean;
116005
+ note?: string | null;
116006
+ opens?: string | null;
116007
+ };
116008
+ Update: {
116009
+ closes?: string | null;
116010
+ created_at?: string;
116011
+ day?: string;
116012
+ id?: string;
116013
+ is_closed?: boolean;
116014
+ note?: string | null;
116015
+ opens?: string | null;
116016
+ };
116017
+ Relationships: [];
116018
+ };
116019
+ logistics_opening_hours: {
116020
+ Row: {
116021
+ closes: string;
116022
+ created_at: string;
116023
+ id: string;
116024
+ is_active: boolean;
116025
+ note: string | null;
116026
+ opens: string;
116027
+ weekday: number;
116028
+ };
116029
+ Insert: {
116030
+ closes: string;
116031
+ created_at?: string;
116032
+ id?: string;
116033
+ is_active?: boolean;
116034
+ note?: string | null;
116035
+ opens: string;
116036
+ weekday: number;
116037
+ };
116038
+ Update: {
116039
+ closes?: string;
116040
+ created_at?: string;
116041
+ id?: string;
116042
+ is_active?: boolean;
116043
+ note?: string | null;
116044
+ opens?: string;
116045
+ weekday?: number;
116046
+ };
116047
+ Relationships: [];
116048
+ };
114824
116049
  logistics_pickup_moments: {
114825
116050
  Row: {
114826
116051
  carrier_ref: string | null;
@@ -115613,6 +116838,24 @@ export declare const getFlorydayVbnProduct: import("@tanstack/start-client-core"
115613
116838
  };
115614
116839
  Relationships: [];
115615
116840
  };
116841
+ logistics_time_settings: {
116842
+ Row: {
116843
+ id: boolean;
116844
+ timezone: string;
116845
+ updated_at: string;
116846
+ };
116847
+ Insert: {
116848
+ id?: boolean;
116849
+ timezone: string;
116850
+ updated_at?: string;
116851
+ };
116852
+ Update: {
116853
+ id?: boolean;
116854
+ timezone?: string;
116855
+ updated_at?: string;
116856
+ };
116857
+ Relationships: [];
116858
+ };
115616
116859
  logistics_variables: {
115617
116860
  Row: {
115618
116861
  created_at: string;
@@ -118003,6 +119246,7 @@ export declare const getFlorydayVbnProduct: import("@tanstack/start-client-core"
118003
119246
  customer_name: string;
118004
119247
  deleted_at: string | null;
118005
119248
  delivery_date: string | null;
119249
+ floriday_order_group_key: string | null;
118006
119250
  floriday_sales_order_id: string | null;
118007
119251
  id: string;
118008
119252
  invoice_due_at: string | null;
@@ -118030,6 +119274,7 @@ export declare const getFlorydayVbnProduct: import("@tanstack/start-client-core"
118030
119274
  customer_name?: string;
118031
119275
  deleted_at?: string | null;
118032
119276
  delivery_date?: string | null;
119277
+ floriday_order_group_key?: string | null;
118033
119278
  floriday_sales_order_id?: string | null;
118034
119279
  id?: string;
118035
119280
  invoice_due_at?: string | null;
@@ -118057,6 +119302,7 @@ export declare const getFlorydayVbnProduct: import("@tanstack/start-client-core"
118057
119302
  customer_name?: string;
118058
119303
  deleted_at?: string | null;
118059
119304
  delivery_date?: string | null;
119305
+ floriday_order_group_key?: string | null;
118060
119306
  floriday_sales_order_id?: string | null;
118061
119307
  id?: string;
118062
119308
  invoice_due_at?: string | null;
@@ -123920,6 +125166,36 @@ export declare const getFlorydayVbnProduct: import("@tanstack/start-client-core"
123920
125166
  referencedColumns: ["id"];
123921
125167
  }];
123922
125168
  };
125169
+ voorraad_buffer_state: {
125170
+ Row: {
125171
+ buffer_id: string;
125172
+ buffer_key: string | null;
125173
+ closed_at: string | null;
125174
+ created_at: string;
125175
+ detached_orders: import("../integrations/supabase/types").Json;
125176
+ reason: string | null;
125177
+ updated_at: string;
125178
+ };
125179
+ Insert: {
125180
+ buffer_id: string;
125181
+ buffer_key?: string | null;
125182
+ closed_at?: string | null;
125183
+ created_at?: string;
125184
+ detached_orders?: import("../integrations/supabase/types").Json;
125185
+ reason?: string | null;
125186
+ updated_at?: string;
125187
+ };
125188
+ Update: {
125189
+ buffer_id?: string;
125190
+ buffer_key?: string | null;
125191
+ closed_at?: string | null;
125192
+ created_at?: string;
125193
+ detached_orders?: import("../integrations/supabase/types").Json;
125194
+ reason?: string | null;
125195
+ updated_at?: string;
125196
+ };
125197
+ Relationships: [];
125198
+ };
123923
125199
  voorraad_custom_fields: {
123924
125200
  Row: {
123925
125201
  created_at: string;
@@ -123962,6 +125238,36 @@ export declare const getFlorydayVbnProduct: import("@tanstack/start-client-core"
123962
125238
  };
123963
125239
  Relationships: [];
123964
125240
  };
125241
+ voorraad_logistics_event_log: {
125242
+ Row: {
125243
+ created_at: string;
125244
+ event_id: string;
125245
+ event_type: string;
125246
+ order_ref: string | null;
125247
+ processed_at: string;
125248
+ result: import("../integrations/supabase/types").Json;
125249
+ updated_at: string;
125250
+ };
125251
+ Insert: {
125252
+ created_at?: string;
125253
+ event_id: string;
125254
+ event_type: string;
125255
+ order_ref?: string | null;
125256
+ processed_at?: string;
125257
+ result?: import("../integrations/supabase/types").Json;
125258
+ updated_at?: string;
125259
+ };
125260
+ Update: {
125261
+ created_at?: string;
125262
+ event_id?: string;
125263
+ event_type?: string;
125264
+ order_ref?: string | null;
125265
+ processed_at?: string;
125266
+ result?: import("../integrations/supabase/types").Json;
125267
+ updated_at?: string;
125268
+ };
125269
+ Relationships: [];
125270
+ };
123965
125271
  voorraad_media_upload_failures: {
123966
125272
  Row: {
123967
125273
  action: string;
@@ -127931,6 +129237,12 @@ export declare const getFlorydayVbnProduct: import("@tanstack/start-client-core"
127931
129237
  station_carts: number;
127932
129238
  }[];
127933
129239
  };
129240
+ logistics_control_complete_cart: {
129241
+ Args: {
129242
+ p_cart_id: string;
129243
+ };
129244
+ Returns: number;
129245
+ };
127934
129246
  logistics_control_scan_approve: {
127935
129247
  Args: {
127936
129248
  p_allow_reprint?: boolean;
@@ -128010,6 +129322,15 @@ export declare const getFlorydayVbnProduct: import("@tanstack/start-client-core"
128010
129322
  Args: never;
128011
129323
  Returns: import("../integrations/supabase/types").Json;
128012
129324
  };
129325
+ logistics_day_windows: {
129326
+ Args: {
129327
+ p_day: string;
129328
+ };
129329
+ Returns: {
129330
+ win_end: string;
129331
+ win_start: string;
129332
+ }[];
129333
+ };
128013
129334
  logistics_delay_customer_email: {
128014
129335
  Args: {
128015
129336
  p_customer: string;
@@ -128077,6 +129398,17 @@ export declare const getFlorydayVbnProduct: import("@tanstack/start-client-core"
128077
129398
  };
128078
129399
  Returns: import("../integrations/supabase/types").Json;
128079
129400
  };
129401
+ logistics_enqueue_shipping_note_with_slip: {
129402
+ Args: {
129403
+ _cart_id: string;
129404
+ _is_herprint: boolean;
129405
+ _printer_id: string;
129406
+ _queue_item_id: string;
129407
+ _session_id: string;
129408
+ _slip_job_id: string;
129409
+ };
129410
+ Returns: string;
129411
+ };
128080
129412
  logistics_enqueue_sticker_with_slip: {
128081
129413
  Args: {
128082
129414
  _cart_id: string;
@@ -128215,6 +129547,32 @@ export declare const getFlorydayVbnProduct: import("@tanstack/start-client-core"
128215
129547
  };
128216
129548
  Returns: string;
128217
129549
  };
129550
+ logistics_floriday_gate_status: {
129551
+ Args: never;
129552
+ Returns: import("../integrations/supabase/types").Json;
129553
+ };
129554
+ logistics_floriday_log_refusal: {
129555
+ Args: {
129556
+ _action?: string;
129557
+ _module?: string;
129558
+ _order_ref: string;
129559
+ _reason: string;
129560
+ _shell?: string;
129561
+ };
129562
+ Returns: undefined;
129563
+ };
129564
+ logistics_floriday_log_send: {
129565
+ Args: {
129566
+ _action: string;
129567
+ _detail?: string;
129568
+ _http_status?: number;
129569
+ _module?: string;
129570
+ _ok: boolean;
129571
+ _order_ref: string;
129572
+ _shell?: string;
129573
+ };
129574
+ Returns: undefined;
129575
+ };
128218
129576
  logistics_floriday_order_approved: {
128219
129577
  Args: {
128220
129578
  _order_ref: string;
@@ -128239,6 +129597,16 @@ export declare const getFlorydayVbnProduct: import("@tanstack/start-client-core"
128239
129597
  Args: never;
128240
129598
  Returns: boolean;
128241
129599
  };
129600
+ logistics_floriday_stock_updates_enabled: {
129601
+ Args: never;
129602
+ Returns: boolean;
129603
+ };
129604
+ logistics_floriday_write_allowed: {
129605
+ Args: {
129606
+ _action: string;
129607
+ };
129608
+ Returns: boolean;
129609
+ };
128242
129610
  logistics_fulfill_barcode_requests: {
128243
129611
  Args: {
128244
129612
  p_limit?: number;
@@ -128307,6 +129675,10 @@ export declare const getFlorydayVbnProduct: import("@tanstack/start-client-core"
128307
129675
  };
128308
129676
  Returns: string;
128309
129677
  };
129678
+ logistics_opening_timezone: {
129679
+ Args: never;
129680
+ Returns: string;
129681
+ };
128310
129682
  logistics_order_cart_count: {
128311
129683
  Args: {
128312
129684
  p_order_ref: string;
@@ -128698,6 +130070,10 @@ export declare const getFlorydayVbnProduct: import("@tanstack/start-client-core"
128698
130070
  };
128699
130071
  Returns: string;
128700
130072
  };
130073
+ logistics_shipping_note_follows_slip: {
130074
+ Args: never;
130075
+ Returns: boolean;
130076
+ };
128701
130077
  logistics_shipping_note_from_barcode: {
128702
130078
  Args: {
128703
130079
  p_allow_reprint?: boolean;
@@ -128710,6 +130086,14 @@ export declare const getFlorydayVbnProduct: import("@tanstack/start-client-core"
128710
130086
  Args: never;
128711
130087
  Returns: boolean;
128712
130088
  };
130089
+ logistics_subtract_working_minutes: {
130090
+ Args: {
130091
+ p_deadline: string;
130092
+ p_max_workdays?: number;
130093
+ p_minutes: number;
130094
+ };
130095
+ Returns: import("../integrations/supabase/types").Json;
130096
+ };
128713
130097
  logistics_supersede_stale_tasks: {
128714
130098
  Args: {
128715
130099
  p_keep: string[];
@@ -128746,6 +130130,12 @@ export declare const getFlorydayVbnProduct: import("@tanstack/start-client-core"
128746
130130
  Args: never;
128747
130131
  Returns: string;
128748
130132
  };
130133
+ logistics_timezone_options: {
130134
+ Args: never;
130135
+ Returns: {
130136
+ name: string;
130137
+ }[];
130138
+ };
128749
130139
  logistics_upsert_task: {
128750
130140
  Args: {
128751
130141
  p_buffer_ref: string;
@@ -128765,6 +130155,16 @@ export declare const getFlorydayVbnProduct: import("@tanstack/start-client-core"
128765
130155
  };
128766
130156
  Returns: string;
128767
130157
  };
130158
+ logistics_valid_timezone: {
130159
+ Args: {
130160
+ _tz: string;
130161
+ };
130162
+ Returns: boolean;
130163
+ };
130164
+ logistics_working_hours_status: {
130165
+ Args: never;
130166
+ Returns: import("../integrations/supabase/types").Json;
130167
+ };
128768
130168
  logistics_write_buffer_layer_positions: {
128769
130169
  Args: {
128770
130170
  p_buffer_id: string;
@@ -140796,22 +142196,31 @@ export declare const getFlorydayResourceSchema: import("@tanstack/start-client-c
140796
142196
  };
140797
142197
  logistics_floriday_push_refusals: {
140798
142198
  Row: {
142199
+ action: string | null;
140799
142200
  created_at: string;
140800
142201
  id: string;
140801
142202
  order_ref: string;
140802
142203
  reason: string;
142204
+ source_module: string | null;
142205
+ source_shell: string | null;
140803
142206
  };
140804
142207
  Insert: {
142208
+ action?: string | null;
140805
142209
  created_at?: string;
140806
142210
  id?: string;
140807
142211
  order_ref: string;
140808
142212
  reason: string;
142213
+ source_module?: string | null;
142214
+ source_shell?: string | null;
140809
142215
  };
140810
142216
  Update: {
142217
+ action?: string | null;
140811
142218
  created_at?: string;
140812
142219
  id?: string;
140813
142220
  order_ref?: string;
140814
142221
  reason?: string;
142222
+ source_module?: string | null;
142223
+ source_shell?: string | null;
140815
142224
  };
140816
142225
  Relationships: [];
140817
142226
  };
@@ -140890,6 +142299,42 @@ export declare const getFlorydayResourceSchema: import("@tanstack/start-client-c
140890
142299
  };
140891
142300
  Relationships: [];
140892
142301
  };
142302
+ logistics_floriday_status_sends: {
142303
+ Row: {
142304
+ action: string;
142305
+ created_at: string;
142306
+ detail: string | null;
142307
+ http_status: number | null;
142308
+ id: string;
142309
+ ok: boolean;
142310
+ order_ref: string;
142311
+ source_module: string | null;
142312
+ source_shell: string | null;
142313
+ };
142314
+ Insert: {
142315
+ action: string;
142316
+ created_at?: string;
142317
+ detail?: string | null;
142318
+ http_status?: number | null;
142319
+ id?: string;
142320
+ ok?: boolean;
142321
+ order_ref: string;
142322
+ source_module?: string | null;
142323
+ source_shell?: string | null;
142324
+ };
142325
+ Update: {
142326
+ action?: string;
142327
+ created_at?: string;
142328
+ detail?: string | null;
142329
+ http_status?: number | null;
142330
+ id?: string;
142331
+ ok?: boolean;
142332
+ order_ref?: string;
142333
+ source_module?: string | null;
142334
+ source_shell?: string | null;
142335
+ };
142336
+ Relationships: [];
142337
+ };
140893
142338
  logistics_formulas: {
140894
142339
  Row: {
140895
142340
  created_at: string;
@@ -140962,6 +142407,66 @@ export declare const getFlorydayResourceSchema: import("@tanstack/start-client-c
140962
142407
  };
140963
142408
  Relationships: [];
140964
142409
  };
142410
+ logistics_opening_exceptions: {
142411
+ Row: {
142412
+ closes: string | null;
142413
+ created_at: string;
142414
+ day: string;
142415
+ id: string;
142416
+ is_closed: boolean;
142417
+ note: string | null;
142418
+ opens: string | null;
142419
+ };
142420
+ Insert: {
142421
+ closes?: string | null;
142422
+ created_at?: string;
142423
+ day: string;
142424
+ id?: string;
142425
+ is_closed?: boolean;
142426
+ note?: string | null;
142427
+ opens?: string | null;
142428
+ };
142429
+ Update: {
142430
+ closes?: string | null;
142431
+ created_at?: string;
142432
+ day?: string;
142433
+ id?: string;
142434
+ is_closed?: boolean;
142435
+ note?: string | null;
142436
+ opens?: string | null;
142437
+ };
142438
+ Relationships: [];
142439
+ };
142440
+ logistics_opening_hours: {
142441
+ Row: {
142442
+ closes: string;
142443
+ created_at: string;
142444
+ id: string;
142445
+ is_active: boolean;
142446
+ note: string | null;
142447
+ opens: string;
142448
+ weekday: number;
142449
+ };
142450
+ Insert: {
142451
+ closes: string;
142452
+ created_at?: string;
142453
+ id?: string;
142454
+ is_active?: boolean;
142455
+ note?: string | null;
142456
+ opens: string;
142457
+ weekday: number;
142458
+ };
142459
+ Update: {
142460
+ closes?: string;
142461
+ created_at?: string;
142462
+ id?: string;
142463
+ is_active?: boolean;
142464
+ note?: string | null;
142465
+ opens?: string;
142466
+ weekday?: number;
142467
+ };
142468
+ Relationships: [];
142469
+ };
140965
142470
  logistics_pickup_moments: {
140966
142471
  Row: {
140967
142472
  carrier_ref: string | null;
@@ -141754,6 +143259,24 @@ export declare const getFlorydayResourceSchema: import("@tanstack/start-client-c
141754
143259
  };
141755
143260
  Relationships: [];
141756
143261
  };
143262
+ logistics_time_settings: {
143263
+ Row: {
143264
+ id: boolean;
143265
+ timezone: string;
143266
+ updated_at: string;
143267
+ };
143268
+ Insert: {
143269
+ id?: boolean;
143270
+ timezone: string;
143271
+ updated_at?: string;
143272
+ };
143273
+ Update: {
143274
+ id?: boolean;
143275
+ timezone?: string;
143276
+ updated_at?: string;
143277
+ };
143278
+ Relationships: [];
143279
+ };
141757
143280
  logistics_variables: {
141758
143281
  Row: {
141759
143282
  created_at: string;
@@ -144144,6 +145667,7 @@ export declare const getFlorydayResourceSchema: import("@tanstack/start-client-c
144144
145667
  customer_name: string;
144145
145668
  deleted_at: string | null;
144146
145669
  delivery_date: string | null;
145670
+ floriday_order_group_key: string | null;
144147
145671
  floriday_sales_order_id: string | null;
144148
145672
  id: string;
144149
145673
  invoice_due_at: string | null;
@@ -144171,6 +145695,7 @@ export declare const getFlorydayResourceSchema: import("@tanstack/start-client-c
144171
145695
  customer_name?: string;
144172
145696
  deleted_at?: string | null;
144173
145697
  delivery_date?: string | null;
145698
+ floriday_order_group_key?: string | null;
144174
145699
  floriday_sales_order_id?: string | null;
144175
145700
  id?: string;
144176
145701
  invoice_due_at?: string | null;
@@ -144198,6 +145723,7 @@ export declare const getFlorydayResourceSchema: import("@tanstack/start-client-c
144198
145723
  customer_name?: string;
144199
145724
  deleted_at?: string | null;
144200
145725
  delivery_date?: string | null;
145726
+ floriday_order_group_key?: string | null;
144201
145727
  floriday_sales_order_id?: string | null;
144202
145728
  id?: string;
144203
145729
  invoice_due_at?: string | null;
@@ -150061,6 +151587,36 @@ export declare const getFlorydayResourceSchema: import("@tanstack/start-client-c
150061
151587
  referencedColumns: ["id"];
150062
151588
  }];
150063
151589
  };
151590
+ voorraad_buffer_state: {
151591
+ Row: {
151592
+ buffer_id: string;
151593
+ buffer_key: string | null;
151594
+ closed_at: string | null;
151595
+ created_at: string;
151596
+ detached_orders: import("../integrations/supabase/types").Json;
151597
+ reason: string | null;
151598
+ updated_at: string;
151599
+ };
151600
+ Insert: {
151601
+ buffer_id: string;
151602
+ buffer_key?: string | null;
151603
+ closed_at?: string | null;
151604
+ created_at?: string;
151605
+ detached_orders?: import("../integrations/supabase/types").Json;
151606
+ reason?: string | null;
151607
+ updated_at?: string;
151608
+ };
151609
+ Update: {
151610
+ buffer_id?: string;
151611
+ buffer_key?: string | null;
151612
+ closed_at?: string | null;
151613
+ created_at?: string;
151614
+ detached_orders?: import("../integrations/supabase/types").Json;
151615
+ reason?: string | null;
151616
+ updated_at?: string;
151617
+ };
151618
+ Relationships: [];
151619
+ };
150064
151620
  voorraad_custom_fields: {
150065
151621
  Row: {
150066
151622
  created_at: string;
@@ -150103,6 +151659,36 @@ export declare const getFlorydayResourceSchema: import("@tanstack/start-client-c
150103
151659
  };
150104
151660
  Relationships: [];
150105
151661
  };
151662
+ voorraad_logistics_event_log: {
151663
+ Row: {
151664
+ created_at: string;
151665
+ event_id: string;
151666
+ event_type: string;
151667
+ order_ref: string | null;
151668
+ processed_at: string;
151669
+ result: import("../integrations/supabase/types").Json;
151670
+ updated_at: string;
151671
+ };
151672
+ Insert: {
151673
+ created_at?: string;
151674
+ event_id: string;
151675
+ event_type: string;
151676
+ order_ref?: string | null;
151677
+ processed_at?: string;
151678
+ result?: import("../integrations/supabase/types").Json;
151679
+ updated_at?: string;
151680
+ };
151681
+ Update: {
151682
+ created_at?: string;
151683
+ event_id?: string;
151684
+ event_type?: string;
151685
+ order_ref?: string | null;
151686
+ processed_at?: string;
151687
+ result?: import("../integrations/supabase/types").Json;
151688
+ updated_at?: string;
151689
+ };
151690
+ Relationships: [];
151691
+ };
150106
151692
  voorraad_media_upload_failures: {
150107
151693
  Row: {
150108
151694
  action: string;
@@ -154072,6 +155658,12 @@ export declare const getFlorydayResourceSchema: import("@tanstack/start-client-c
154072
155658
  station_carts: number;
154073
155659
  }[];
154074
155660
  };
155661
+ logistics_control_complete_cart: {
155662
+ Args: {
155663
+ p_cart_id: string;
155664
+ };
155665
+ Returns: number;
155666
+ };
154075
155667
  logistics_control_scan_approve: {
154076
155668
  Args: {
154077
155669
  p_allow_reprint?: boolean;
@@ -154151,6 +155743,15 @@ export declare const getFlorydayResourceSchema: import("@tanstack/start-client-c
154151
155743
  Args: never;
154152
155744
  Returns: import("../integrations/supabase/types").Json;
154153
155745
  };
155746
+ logistics_day_windows: {
155747
+ Args: {
155748
+ p_day: string;
155749
+ };
155750
+ Returns: {
155751
+ win_end: string;
155752
+ win_start: string;
155753
+ }[];
155754
+ };
154154
155755
  logistics_delay_customer_email: {
154155
155756
  Args: {
154156
155757
  p_customer: string;
@@ -154218,6 +155819,17 @@ export declare const getFlorydayResourceSchema: import("@tanstack/start-client-c
154218
155819
  };
154219
155820
  Returns: import("../integrations/supabase/types").Json;
154220
155821
  };
155822
+ logistics_enqueue_shipping_note_with_slip: {
155823
+ Args: {
155824
+ _cart_id: string;
155825
+ _is_herprint: boolean;
155826
+ _printer_id: string;
155827
+ _queue_item_id: string;
155828
+ _session_id: string;
155829
+ _slip_job_id: string;
155830
+ };
155831
+ Returns: string;
155832
+ };
154221
155833
  logistics_enqueue_sticker_with_slip: {
154222
155834
  Args: {
154223
155835
  _cart_id: string;
@@ -154356,6 +155968,32 @@ export declare const getFlorydayResourceSchema: import("@tanstack/start-client-c
154356
155968
  };
154357
155969
  Returns: string;
154358
155970
  };
155971
+ logistics_floriday_gate_status: {
155972
+ Args: never;
155973
+ Returns: import("../integrations/supabase/types").Json;
155974
+ };
155975
+ logistics_floriday_log_refusal: {
155976
+ Args: {
155977
+ _action?: string;
155978
+ _module?: string;
155979
+ _order_ref: string;
155980
+ _reason: string;
155981
+ _shell?: string;
155982
+ };
155983
+ Returns: undefined;
155984
+ };
155985
+ logistics_floriday_log_send: {
155986
+ Args: {
155987
+ _action: string;
155988
+ _detail?: string;
155989
+ _http_status?: number;
155990
+ _module?: string;
155991
+ _ok: boolean;
155992
+ _order_ref: string;
155993
+ _shell?: string;
155994
+ };
155995
+ Returns: undefined;
155996
+ };
154359
155997
  logistics_floriday_order_approved: {
154360
155998
  Args: {
154361
155999
  _order_ref: string;
@@ -154380,6 +156018,16 @@ export declare const getFlorydayResourceSchema: import("@tanstack/start-client-c
154380
156018
  Args: never;
154381
156019
  Returns: boolean;
154382
156020
  };
156021
+ logistics_floriday_stock_updates_enabled: {
156022
+ Args: never;
156023
+ Returns: boolean;
156024
+ };
156025
+ logistics_floriday_write_allowed: {
156026
+ Args: {
156027
+ _action: string;
156028
+ };
156029
+ Returns: boolean;
156030
+ };
154383
156031
  logistics_fulfill_barcode_requests: {
154384
156032
  Args: {
154385
156033
  p_limit?: number;
@@ -154448,6 +156096,10 @@ export declare const getFlorydayResourceSchema: import("@tanstack/start-client-c
154448
156096
  };
154449
156097
  Returns: string;
154450
156098
  };
156099
+ logistics_opening_timezone: {
156100
+ Args: never;
156101
+ Returns: string;
156102
+ };
154451
156103
  logistics_order_cart_count: {
154452
156104
  Args: {
154453
156105
  p_order_ref: string;
@@ -154839,6 +156491,10 @@ export declare const getFlorydayResourceSchema: import("@tanstack/start-client-c
154839
156491
  };
154840
156492
  Returns: string;
154841
156493
  };
156494
+ logistics_shipping_note_follows_slip: {
156495
+ Args: never;
156496
+ Returns: boolean;
156497
+ };
154842
156498
  logistics_shipping_note_from_barcode: {
154843
156499
  Args: {
154844
156500
  p_allow_reprint?: boolean;
@@ -154851,6 +156507,14 @@ export declare const getFlorydayResourceSchema: import("@tanstack/start-client-c
154851
156507
  Args: never;
154852
156508
  Returns: boolean;
154853
156509
  };
156510
+ logistics_subtract_working_minutes: {
156511
+ Args: {
156512
+ p_deadline: string;
156513
+ p_max_workdays?: number;
156514
+ p_minutes: number;
156515
+ };
156516
+ Returns: import("../integrations/supabase/types").Json;
156517
+ };
154854
156518
  logistics_supersede_stale_tasks: {
154855
156519
  Args: {
154856
156520
  p_keep: string[];
@@ -154887,6 +156551,12 @@ export declare const getFlorydayResourceSchema: import("@tanstack/start-client-c
154887
156551
  Args: never;
154888
156552
  Returns: string;
154889
156553
  };
156554
+ logistics_timezone_options: {
156555
+ Args: never;
156556
+ Returns: {
156557
+ name: string;
156558
+ }[];
156559
+ };
154890
156560
  logistics_upsert_task: {
154891
156561
  Args: {
154892
156562
  p_buffer_ref: string;
@@ -154906,6 +156576,16 @@ export declare const getFlorydayResourceSchema: import("@tanstack/start-client-c
154906
156576
  };
154907
156577
  Returns: string;
154908
156578
  };
156579
+ logistics_valid_timezone: {
156580
+ Args: {
156581
+ _tz: string;
156582
+ };
156583
+ Returns: boolean;
156584
+ };
156585
+ logistics_working_hours_status: {
156586
+ Args: never;
156587
+ Returns: import("../integrations/supabase/types").Json;
156588
+ };
154909
156589
  logistics_write_buffer_layer_positions: {
154910
156590
  Args: {
154911
156591
  p_buffer_id: string;
@@ -166934,22 +168614,31 @@ export declare const getActiveFloridayEnvironment: import("@tanstack/start-clien
166934
168614
  };
166935
168615
  logistics_floriday_push_refusals: {
166936
168616
  Row: {
168617
+ action: string | null;
166937
168618
  created_at: string;
166938
168619
  id: string;
166939
168620
  order_ref: string;
166940
168621
  reason: string;
168622
+ source_module: string | null;
168623
+ source_shell: string | null;
166941
168624
  };
166942
168625
  Insert: {
168626
+ action?: string | null;
166943
168627
  created_at?: string;
166944
168628
  id?: string;
166945
168629
  order_ref: string;
166946
168630
  reason: string;
168631
+ source_module?: string | null;
168632
+ source_shell?: string | null;
166947
168633
  };
166948
168634
  Update: {
168635
+ action?: string | null;
166949
168636
  created_at?: string;
166950
168637
  id?: string;
166951
168638
  order_ref?: string;
166952
168639
  reason?: string;
168640
+ source_module?: string | null;
168641
+ source_shell?: string | null;
166953
168642
  };
166954
168643
  Relationships: [];
166955
168644
  };
@@ -167028,6 +168717,42 @@ export declare const getActiveFloridayEnvironment: import("@tanstack/start-clien
167028
168717
  };
167029
168718
  Relationships: [];
167030
168719
  };
168720
+ logistics_floriday_status_sends: {
168721
+ Row: {
168722
+ action: string;
168723
+ created_at: string;
168724
+ detail: string | null;
168725
+ http_status: number | null;
168726
+ id: string;
168727
+ ok: boolean;
168728
+ order_ref: string;
168729
+ source_module: string | null;
168730
+ source_shell: string | null;
168731
+ };
168732
+ Insert: {
168733
+ action: string;
168734
+ created_at?: string;
168735
+ detail?: string | null;
168736
+ http_status?: number | null;
168737
+ id?: string;
168738
+ ok?: boolean;
168739
+ order_ref: string;
168740
+ source_module?: string | null;
168741
+ source_shell?: string | null;
168742
+ };
168743
+ Update: {
168744
+ action?: string;
168745
+ created_at?: string;
168746
+ detail?: string | null;
168747
+ http_status?: number | null;
168748
+ id?: string;
168749
+ ok?: boolean;
168750
+ order_ref?: string;
168751
+ source_module?: string | null;
168752
+ source_shell?: string | null;
168753
+ };
168754
+ Relationships: [];
168755
+ };
167031
168756
  logistics_formulas: {
167032
168757
  Row: {
167033
168758
  created_at: string;
@@ -167100,6 +168825,66 @@ export declare const getActiveFloridayEnvironment: import("@tanstack/start-clien
167100
168825
  };
167101
168826
  Relationships: [];
167102
168827
  };
168828
+ logistics_opening_exceptions: {
168829
+ Row: {
168830
+ closes: string | null;
168831
+ created_at: string;
168832
+ day: string;
168833
+ id: string;
168834
+ is_closed: boolean;
168835
+ note: string | null;
168836
+ opens: string | null;
168837
+ };
168838
+ Insert: {
168839
+ closes?: string | null;
168840
+ created_at?: string;
168841
+ day: string;
168842
+ id?: string;
168843
+ is_closed?: boolean;
168844
+ note?: string | null;
168845
+ opens?: string | null;
168846
+ };
168847
+ Update: {
168848
+ closes?: string | null;
168849
+ created_at?: string;
168850
+ day?: string;
168851
+ id?: string;
168852
+ is_closed?: boolean;
168853
+ note?: string | null;
168854
+ opens?: string | null;
168855
+ };
168856
+ Relationships: [];
168857
+ };
168858
+ logistics_opening_hours: {
168859
+ Row: {
168860
+ closes: string;
168861
+ created_at: string;
168862
+ id: string;
168863
+ is_active: boolean;
168864
+ note: string | null;
168865
+ opens: string;
168866
+ weekday: number;
168867
+ };
168868
+ Insert: {
168869
+ closes: string;
168870
+ created_at?: string;
168871
+ id?: string;
168872
+ is_active?: boolean;
168873
+ note?: string | null;
168874
+ opens: string;
168875
+ weekday: number;
168876
+ };
168877
+ Update: {
168878
+ closes?: string;
168879
+ created_at?: string;
168880
+ id?: string;
168881
+ is_active?: boolean;
168882
+ note?: string | null;
168883
+ opens?: string;
168884
+ weekday?: number;
168885
+ };
168886
+ Relationships: [];
168887
+ };
167103
168888
  logistics_pickup_moments: {
167104
168889
  Row: {
167105
168890
  carrier_ref: string | null;
@@ -167892,6 +169677,24 @@ export declare const getActiveFloridayEnvironment: import("@tanstack/start-clien
167892
169677
  };
167893
169678
  Relationships: [];
167894
169679
  };
169680
+ logistics_time_settings: {
169681
+ Row: {
169682
+ id: boolean;
169683
+ timezone: string;
169684
+ updated_at: string;
169685
+ };
169686
+ Insert: {
169687
+ id?: boolean;
169688
+ timezone: string;
169689
+ updated_at?: string;
169690
+ };
169691
+ Update: {
169692
+ id?: boolean;
169693
+ timezone?: string;
169694
+ updated_at?: string;
169695
+ };
169696
+ Relationships: [];
169697
+ };
167895
169698
  logistics_variables: {
167896
169699
  Row: {
167897
169700
  created_at: string;
@@ -170282,6 +172085,7 @@ export declare const getActiveFloridayEnvironment: import("@tanstack/start-clien
170282
172085
  customer_name: string;
170283
172086
  deleted_at: string | null;
170284
172087
  delivery_date: string | null;
172088
+ floriday_order_group_key: string | null;
170285
172089
  floriday_sales_order_id: string | null;
170286
172090
  id: string;
170287
172091
  invoice_due_at: string | null;
@@ -170309,6 +172113,7 @@ export declare const getActiveFloridayEnvironment: import("@tanstack/start-clien
170309
172113
  customer_name?: string;
170310
172114
  deleted_at?: string | null;
170311
172115
  delivery_date?: string | null;
172116
+ floriday_order_group_key?: string | null;
170312
172117
  floriday_sales_order_id?: string | null;
170313
172118
  id?: string;
170314
172119
  invoice_due_at?: string | null;
@@ -170336,6 +172141,7 @@ export declare const getActiveFloridayEnvironment: import("@tanstack/start-clien
170336
172141
  customer_name?: string;
170337
172142
  deleted_at?: string | null;
170338
172143
  delivery_date?: string | null;
172144
+ floriday_order_group_key?: string | null;
170339
172145
  floriday_sales_order_id?: string | null;
170340
172146
  id?: string;
170341
172147
  invoice_due_at?: string | null;
@@ -176199,6 +178005,36 @@ export declare const getActiveFloridayEnvironment: import("@tanstack/start-clien
176199
178005
  referencedColumns: ["id"];
176200
178006
  }];
176201
178007
  };
178008
+ voorraad_buffer_state: {
178009
+ Row: {
178010
+ buffer_id: string;
178011
+ buffer_key: string | null;
178012
+ closed_at: string | null;
178013
+ created_at: string;
178014
+ detached_orders: import("../integrations/supabase/types").Json;
178015
+ reason: string | null;
178016
+ updated_at: string;
178017
+ };
178018
+ Insert: {
178019
+ buffer_id: string;
178020
+ buffer_key?: string | null;
178021
+ closed_at?: string | null;
178022
+ created_at?: string;
178023
+ detached_orders?: import("../integrations/supabase/types").Json;
178024
+ reason?: string | null;
178025
+ updated_at?: string;
178026
+ };
178027
+ Update: {
178028
+ buffer_id?: string;
178029
+ buffer_key?: string | null;
178030
+ closed_at?: string | null;
178031
+ created_at?: string;
178032
+ detached_orders?: import("../integrations/supabase/types").Json;
178033
+ reason?: string | null;
178034
+ updated_at?: string;
178035
+ };
178036
+ Relationships: [];
178037
+ };
176202
178038
  voorraad_custom_fields: {
176203
178039
  Row: {
176204
178040
  created_at: string;
@@ -176241,6 +178077,36 @@ export declare const getActiveFloridayEnvironment: import("@tanstack/start-clien
176241
178077
  };
176242
178078
  Relationships: [];
176243
178079
  };
178080
+ voorraad_logistics_event_log: {
178081
+ Row: {
178082
+ created_at: string;
178083
+ event_id: string;
178084
+ event_type: string;
178085
+ order_ref: string | null;
178086
+ processed_at: string;
178087
+ result: import("../integrations/supabase/types").Json;
178088
+ updated_at: string;
178089
+ };
178090
+ Insert: {
178091
+ created_at?: string;
178092
+ event_id: string;
178093
+ event_type: string;
178094
+ order_ref?: string | null;
178095
+ processed_at?: string;
178096
+ result?: import("../integrations/supabase/types").Json;
178097
+ updated_at?: string;
178098
+ };
178099
+ Update: {
178100
+ created_at?: string;
178101
+ event_id?: string;
178102
+ event_type?: string;
178103
+ order_ref?: string | null;
178104
+ processed_at?: string;
178105
+ result?: import("../integrations/supabase/types").Json;
178106
+ updated_at?: string;
178107
+ };
178108
+ Relationships: [];
178109
+ };
176244
178110
  voorraad_media_upload_failures: {
176245
178111
  Row: {
176246
178112
  action: string;
@@ -180210,6 +182076,12 @@ export declare const getActiveFloridayEnvironment: import("@tanstack/start-clien
180210
182076
  station_carts: number;
180211
182077
  }[];
180212
182078
  };
182079
+ logistics_control_complete_cart: {
182080
+ Args: {
182081
+ p_cart_id: string;
182082
+ };
182083
+ Returns: number;
182084
+ };
180213
182085
  logistics_control_scan_approve: {
180214
182086
  Args: {
180215
182087
  p_allow_reprint?: boolean;
@@ -180289,6 +182161,15 @@ export declare const getActiveFloridayEnvironment: import("@tanstack/start-clien
180289
182161
  Args: never;
180290
182162
  Returns: import("../integrations/supabase/types").Json;
180291
182163
  };
182164
+ logistics_day_windows: {
182165
+ Args: {
182166
+ p_day: string;
182167
+ };
182168
+ Returns: {
182169
+ win_end: string;
182170
+ win_start: string;
182171
+ }[];
182172
+ };
180292
182173
  logistics_delay_customer_email: {
180293
182174
  Args: {
180294
182175
  p_customer: string;
@@ -180356,6 +182237,17 @@ export declare const getActiveFloridayEnvironment: import("@tanstack/start-clien
180356
182237
  };
180357
182238
  Returns: import("../integrations/supabase/types").Json;
180358
182239
  };
182240
+ logistics_enqueue_shipping_note_with_slip: {
182241
+ Args: {
182242
+ _cart_id: string;
182243
+ _is_herprint: boolean;
182244
+ _printer_id: string;
182245
+ _queue_item_id: string;
182246
+ _session_id: string;
182247
+ _slip_job_id: string;
182248
+ };
182249
+ Returns: string;
182250
+ };
180359
182251
  logistics_enqueue_sticker_with_slip: {
180360
182252
  Args: {
180361
182253
  _cart_id: string;
@@ -180494,6 +182386,32 @@ export declare const getActiveFloridayEnvironment: import("@tanstack/start-clien
180494
182386
  };
180495
182387
  Returns: string;
180496
182388
  };
182389
+ logistics_floriday_gate_status: {
182390
+ Args: never;
182391
+ Returns: import("../integrations/supabase/types").Json;
182392
+ };
182393
+ logistics_floriday_log_refusal: {
182394
+ Args: {
182395
+ _action?: string;
182396
+ _module?: string;
182397
+ _order_ref: string;
182398
+ _reason: string;
182399
+ _shell?: string;
182400
+ };
182401
+ Returns: undefined;
182402
+ };
182403
+ logistics_floriday_log_send: {
182404
+ Args: {
182405
+ _action: string;
182406
+ _detail?: string;
182407
+ _http_status?: number;
182408
+ _module?: string;
182409
+ _ok: boolean;
182410
+ _order_ref: string;
182411
+ _shell?: string;
182412
+ };
182413
+ Returns: undefined;
182414
+ };
180497
182415
  logistics_floriday_order_approved: {
180498
182416
  Args: {
180499
182417
  _order_ref: string;
@@ -180518,6 +182436,16 @@ export declare const getActiveFloridayEnvironment: import("@tanstack/start-clien
180518
182436
  Args: never;
180519
182437
  Returns: boolean;
180520
182438
  };
182439
+ logistics_floriday_stock_updates_enabled: {
182440
+ Args: never;
182441
+ Returns: boolean;
182442
+ };
182443
+ logistics_floriday_write_allowed: {
182444
+ Args: {
182445
+ _action: string;
182446
+ };
182447
+ Returns: boolean;
182448
+ };
180521
182449
  logistics_fulfill_barcode_requests: {
180522
182450
  Args: {
180523
182451
  p_limit?: number;
@@ -180586,6 +182514,10 @@ export declare const getActiveFloridayEnvironment: import("@tanstack/start-clien
180586
182514
  };
180587
182515
  Returns: string;
180588
182516
  };
182517
+ logistics_opening_timezone: {
182518
+ Args: never;
182519
+ Returns: string;
182520
+ };
180589
182521
  logistics_order_cart_count: {
180590
182522
  Args: {
180591
182523
  p_order_ref: string;
@@ -180977,6 +182909,10 @@ export declare const getActiveFloridayEnvironment: import("@tanstack/start-clien
180977
182909
  };
180978
182910
  Returns: string;
180979
182911
  };
182912
+ logistics_shipping_note_follows_slip: {
182913
+ Args: never;
182914
+ Returns: boolean;
182915
+ };
180980
182916
  logistics_shipping_note_from_barcode: {
180981
182917
  Args: {
180982
182918
  p_allow_reprint?: boolean;
@@ -180989,6 +182925,14 @@ export declare const getActiveFloridayEnvironment: import("@tanstack/start-clien
180989
182925
  Args: never;
180990
182926
  Returns: boolean;
180991
182927
  };
182928
+ logistics_subtract_working_minutes: {
182929
+ Args: {
182930
+ p_deadline: string;
182931
+ p_max_workdays?: number;
182932
+ p_minutes: number;
182933
+ };
182934
+ Returns: import("../integrations/supabase/types").Json;
182935
+ };
180992
182936
  logistics_supersede_stale_tasks: {
180993
182937
  Args: {
180994
182938
  p_keep: string[];
@@ -181025,6 +182969,12 @@ export declare const getActiveFloridayEnvironment: import("@tanstack/start-clien
181025
182969
  Args: never;
181026
182970
  Returns: string;
181027
182971
  };
182972
+ logistics_timezone_options: {
182973
+ Args: never;
182974
+ Returns: {
182975
+ name: string;
182976
+ }[];
182977
+ };
181028
182978
  logistics_upsert_task: {
181029
182979
  Args: {
181030
182980
  p_buffer_ref: string;
@@ -181044,6 +182994,16 @@ export declare const getActiveFloridayEnvironment: import("@tanstack/start-clien
181044
182994
  };
181045
182995
  Returns: string;
181046
182996
  };
182997
+ logistics_valid_timezone: {
182998
+ Args: {
182999
+ _tz: string;
183000
+ };
183001
+ Returns: boolean;
183002
+ };
183003
+ logistics_working_hours_status: {
183004
+ Args: never;
183005
+ Returns: import("../integrations/supabase/types").Json;
183006
+ };
181047
183007
  logistics_write_buffer_layer_positions: {
181048
183008
  Args: {
181049
183009
  p_buffer_id: string;