@flowselections/floriday-verkoop-module 1.0.61 → 1.0.62

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 (68) hide show
  1. package/dist-lib/components/verkoop/VerkoopOrdersPage.d.ts.map +1 -1
  2. package/dist-lib/components/verkoop/VerkoopOrdersPage.js +18 -5
  3. package/dist-lib/integrations/supabase/auth-middleware.d.ts +771 -5
  4. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  5. package/dist-lib/integrations/supabase/client.server.d.ts +771 -5
  6. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  7. package/dist-lib/integrations/supabase/types.d.ts +776 -5
  8. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  9. package/dist-lib/lib/buffer-events.functions.d.ts +771 -5
  10. package/dist-lib/lib/buffer-events.functions.d.ts.map +1 -1
  11. package/dist-lib/lib/cart-layers.functions.d.ts +3064 -0
  12. package/dist-lib/lib/cart-layers.functions.d.ts.map +1 -1
  13. package/dist-lib/lib/cart-lock.functions.d.ts +771 -5
  14. package/dist-lib/lib/cart-lock.functions.d.ts.map +1 -1
  15. package/dist-lib/lib/cart-planning-settings.functions.d.ts +8426 -0
  16. package/dist-lib/lib/cart-planning-settings.functions.d.ts.map +1 -1
  17. package/dist-lib/lib/cart-replan.functions.d.ts +2299 -1
  18. package/dist-lib/lib/cart-replan.functions.d.ts.map +1 -1
  19. package/dist-lib/lib/cart-replan.functions.js +8 -47
  20. package/dist-lib/lib/create-order.functions.d.ts +13022 -0
  21. package/dist-lib/lib/create-order.functions.d.ts.map +1 -1
  22. package/dist-lib/lib/create-order.functions.js +3 -16
  23. package/dist-lib/lib/cron/replan-carts.d.ts +1 -1
  24. package/dist-lib/lib/cron/replan-carts.d.ts.map +1 -1
  25. package/dist-lib/lib/cron/replan-carts.js +10 -15
  26. package/dist-lib/lib/floriday-logistic-labels.functions.d.ts +1532 -0
  27. package/dist-lib/lib/floriday-logistic-labels.functions.d.ts.map +1 -1
  28. package/dist-lib/lib/floriday-mirror.functions.d.ts +771 -5
  29. package/dist-lib/lib/floriday-mirror.functions.d.ts.map +1 -1
  30. package/dist-lib/lib/floriday-public.functions.d.ts +5362 -0
  31. package/dist-lib/lib/floriday-public.functions.d.ts.map +1 -1
  32. package/dist-lib/lib/floriday-writes.functions.d.ts +1532 -0
  33. package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
  34. package/dist-lib/lib/invoice-timing.functions.d.ts +3064 -0
  35. package/dist-lib/lib/invoice-timing.functions.d.ts.map +1 -1
  36. package/dist-lib/lib/load-carriers.functions.d.ts +771 -5
  37. package/dist-lib/lib/load-carriers.functions.d.ts.map +1 -1
  38. package/dist-lib/lib/logistics-engine.functions.d.ts +3830 -0
  39. package/dist-lib/lib/logistics-engine.functions.d.ts.map +1 -1
  40. package/dist-lib/lib/logistics-engine.server.d.ts.map +1 -1
  41. package/dist-lib/lib/logistics-engine.server.js +2 -9
  42. package/dist-lib/lib/logistics-stock.functions.d.ts +1532 -0
  43. package/dist-lib/lib/logistics-stock.functions.d.ts.map +1 -1
  44. package/dist-lib/lib/order-addresses.functions.d.ts +771 -5
  45. package/dist-lib/lib/order-addresses.functions.d.ts.map +1 -1
  46. package/dist-lib/lib/order-buffers.functions.d.ts +2307 -3
  47. package/dist-lib/lib/order-buffers.functions.d.ts.map +1 -1
  48. package/dist-lib/lib/order-buffers.functions.js +3 -12
  49. package/dist-lib/lib/order-carrier.functions.d.ts +1532 -0
  50. package/dist-lib/lib/order-carrier.functions.d.ts.map +1 -1
  51. package/dist-lib/lib/order-fulfill.functions.d.ts +771 -5
  52. package/dist-lib/lib/order-fulfill.functions.d.ts.map +1 -1
  53. package/dist-lib/lib/order-pickup.functions.d.ts +1532 -0
  54. package/dist-lib/lib/order-pickup.functions.d.ts.map +1 -1
  55. package/dist-lib/lib/order-shipments.functions.d.ts +3064 -0
  56. package/dist-lib/lib/order-shipments.functions.d.ts.map +1 -1
  57. package/dist-lib/lib/product-dimensions.functions.d.ts +1532 -0
  58. package/dist-lib/lib/product-dimensions.functions.d.ts.map +1 -1
  59. package/dist-lib/lib/salesorders-list.functions.d.ts +1532 -0
  60. package/dist-lib/lib/salesorders-list.functions.d.ts.map +1 -1
  61. package/dist-lib/lib/salesorders.functions.d.ts +4623 -17
  62. package/dist-lib/lib/salesorders.functions.d.ts.map +1 -1
  63. package/dist-lib/lib/salesorders.functions.js +16 -21
  64. package/dist-lib/lib/stock-consumption-alerts.functions.d.ts +1532 -0
  65. package/dist-lib/lib/stock-consumption-alerts.functions.d.ts.map +1 -1
  66. package/dist-lib/lib/tradeitems.functions.d.ts +771 -5
  67. package/dist-lib/lib/tradeitems.functions.d.ts.map +1 -1
  68. package/package.json +1 -1
@@ -2225,6 +2225,45 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
2225
2225
  };
2226
2226
  Relationships: [];
2227
2227
  };
2228
+ customer_product_stickers: {
2229
+ Row: {
2230
+ created_at: string;
2231
+ customer_key: string;
2232
+ file_name: string;
2233
+ file_path: string;
2234
+ file_size: number | null;
2235
+ id: string;
2236
+ mime_type: string | null;
2237
+ trade_item_key: string;
2238
+ updated_at: string;
2239
+ uploaded_by: string | null;
2240
+ };
2241
+ Insert: {
2242
+ created_at?: string;
2243
+ customer_key: string;
2244
+ file_name: string;
2245
+ file_path: string;
2246
+ file_size?: number | null;
2247
+ id?: string;
2248
+ mime_type?: string | null;
2249
+ trade_item_key: string;
2250
+ updated_at?: string;
2251
+ uploaded_by?: string | null;
2252
+ };
2253
+ Update: {
2254
+ created_at?: string;
2255
+ customer_key?: string;
2256
+ file_name?: string;
2257
+ file_path?: string;
2258
+ file_size?: number | null;
2259
+ id?: string;
2260
+ mime_type?: string | null;
2261
+ trade_item_key?: string;
2262
+ updated_at?: string;
2263
+ uploaded_by?: string | null;
2264
+ };
2265
+ Relationships: [];
2266
+ };
2228
2267
  customer_selected_assortment: {
2229
2268
  Row: {
2230
2269
  article_number: string | null;
@@ -2273,6 +2312,30 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
2273
2312
  referencedColumns: ["id"];
2274
2313
  }];
2275
2314
  };
2315
+ customer_sticker_settings: {
2316
+ Row: {
2317
+ created_at: string;
2318
+ customer_key: string;
2319
+ height_mm: number;
2320
+ updated_at: string;
2321
+ width_mm: number;
2322
+ };
2323
+ Insert: {
2324
+ created_at?: string;
2325
+ customer_key: string;
2326
+ height_mm?: number;
2327
+ updated_at?: string;
2328
+ width_mm?: number;
2329
+ };
2330
+ Update: {
2331
+ created_at?: string;
2332
+ customer_key?: string;
2333
+ height_mm?: number;
2334
+ updated_at?: string;
2335
+ width_mm?: number;
2336
+ };
2337
+ Relationships: [];
2338
+ };
2276
2339
  customer_trade_settings: {
2277
2340
  Row: {
2278
2341
  category: string;
@@ -5603,6 +5666,102 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
5603
5666
  referencedColumns: ["id"];
5604
5667
  }];
5605
5668
  };
5669
+ floriday_api_log: {
5670
+ Row: {
5671
+ action: string | null;
5672
+ caller: string | null;
5673
+ connection_id: string | null;
5674
+ created_at: string;
5675
+ cursor_from: number | null;
5676
+ direction: string;
5677
+ duration_ms: number | null;
5678
+ environment: string | null;
5679
+ error: string | null;
5680
+ floriday_id: string | null;
5681
+ floriday_reference: string | null;
5682
+ http_status: number;
5683
+ id: string;
5684
+ item_count: number | null;
5685
+ kind: string | null;
5686
+ local_id: string | null;
5687
+ local_reference: string | null;
5688
+ method: string;
5689
+ module: string | null;
5690
+ ok: boolean;
5691
+ path: string;
5692
+ request: import("../integrations/supabase/types").Json | null;
5693
+ resource_type: string | null;
5694
+ response: import("../integrations/supabase/types").Json | null;
5695
+ write_log_id: string | null;
5696
+ };
5697
+ Insert: {
5698
+ action?: string | null;
5699
+ caller?: string | null;
5700
+ connection_id?: string | null;
5701
+ created_at?: string;
5702
+ cursor_from?: number | null;
5703
+ direction: string;
5704
+ duration_ms?: number | null;
5705
+ environment?: string | null;
5706
+ error?: string | null;
5707
+ floriday_id?: string | null;
5708
+ floriday_reference?: string | null;
5709
+ http_status?: number;
5710
+ id?: string;
5711
+ item_count?: number | null;
5712
+ kind?: string | null;
5713
+ local_id?: string | null;
5714
+ local_reference?: string | null;
5715
+ method: string;
5716
+ module?: string | null;
5717
+ ok?: boolean;
5718
+ path: string;
5719
+ request?: import("../integrations/supabase/types").Json | null;
5720
+ resource_type?: string | null;
5721
+ response?: import("../integrations/supabase/types").Json | null;
5722
+ write_log_id?: string | null;
5723
+ };
5724
+ Update: {
5725
+ action?: string | null;
5726
+ caller?: string | null;
5727
+ connection_id?: string | null;
5728
+ created_at?: string;
5729
+ cursor_from?: number | null;
5730
+ direction?: string;
5731
+ duration_ms?: number | null;
5732
+ environment?: string | null;
5733
+ error?: string | null;
5734
+ floriday_id?: string | null;
5735
+ floriday_reference?: string | null;
5736
+ http_status?: number;
5737
+ id?: string;
5738
+ item_count?: number | null;
5739
+ kind?: string | null;
5740
+ local_id?: string | null;
5741
+ local_reference?: string | null;
5742
+ method?: string;
5743
+ module?: string | null;
5744
+ ok?: boolean;
5745
+ path?: string;
5746
+ request?: import("../integrations/supabase/types").Json | null;
5747
+ resource_type?: string | null;
5748
+ response?: import("../integrations/supabase/types").Json | null;
5749
+ write_log_id?: string | null;
5750
+ };
5751
+ Relationships: [{
5752
+ foreignKeyName: "floriday_api_log_connection_id_fkey";
5753
+ columns: ["connection_id"];
5754
+ isOneToOne: false;
5755
+ referencedRelation: "floriday_connections";
5756
+ referencedColumns: ["id"];
5757
+ }, {
5758
+ foreignKeyName: "floriday_api_log_write_log_id_fkey";
5759
+ columns: ["write_log_id"];
5760
+ isOneToOne: false;
5761
+ referencedRelation: "floriday_write_log";
5762
+ referencedColumns: ["id"];
5763
+ }];
5764
+ };
5606
5765
  floriday_auction_letters_cache: {
5607
5766
  Row: {
5608
5767
  auction_letter_code: string;
@@ -5810,6 +5969,84 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
5810
5969
  referencedColumns: ["id"];
5811
5970
  }];
5812
5971
  };
5972
+ floriday_catalog_prices_cache: {
5973
+ Row: {
5974
+ connection_id: string;
5975
+ created_at: string;
5976
+ currency: string;
5977
+ id: string;
5978
+ is_deleted: boolean;
5979
+ price: number | null;
5980
+ price_group_id: string | null;
5981
+ price_group_name: string | null;
5982
+ price_type: string;
5983
+ raw: import("../integrations/supabase/types").Json | null;
5984
+ sales_unit: string | null;
5985
+ sequence_number: number;
5986
+ supplier_article_code: string | null;
5987
+ supply_line_id: string;
5988
+ synced_at: string;
5989
+ trade_item_id: string | null;
5990
+ updated_at: string;
5991
+ valid_from: string | null;
5992
+ valid_to: string | null;
5993
+ week: number | null;
5994
+ year: number | null;
5995
+ };
5996
+ Insert: {
5997
+ connection_id: string;
5998
+ created_at?: string;
5999
+ currency?: string;
6000
+ id?: string;
6001
+ is_deleted?: boolean;
6002
+ price?: number | null;
6003
+ price_group_id?: string | null;
6004
+ price_group_name?: string | null;
6005
+ price_type?: string;
6006
+ raw?: import("../integrations/supabase/types").Json | null;
6007
+ sales_unit?: string | null;
6008
+ sequence_number?: number;
6009
+ supplier_article_code?: string | null;
6010
+ supply_line_id: string;
6011
+ synced_at?: string;
6012
+ trade_item_id?: string | null;
6013
+ updated_at?: string;
6014
+ valid_from?: string | null;
6015
+ valid_to?: string | null;
6016
+ week?: number | null;
6017
+ year?: number | null;
6018
+ };
6019
+ Update: {
6020
+ connection_id?: string;
6021
+ created_at?: string;
6022
+ currency?: string;
6023
+ id?: string;
6024
+ is_deleted?: boolean;
6025
+ price?: number | null;
6026
+ price_group_id?: string | null;
6027
+ price_group_name?: string | null;
6028
+ price_type?: string;
6029
+ raw?: import("../integrations/supabase/types").Json | null;
6030
+ sales_unit?: string | null;
6031
+ sequence_number?: number;
6032
+ supplier_article_code?: string | null;
6033
+ supply_line_id?: string;
6034
+ synced_at?: string;
6035
+ trade_item_id?: string | null;
6036
+ updated_at?: string;
6037
+ valid_from?: string | null;
6038
+ valid_to?: string | null;
6039
+ week?: number | null;
6040
+ year?: number | null;
6041
+ };
6042
+ Relationships: [{
6043
+ foreignKeyName: "floriday_catalog_prices_cache_connection_id_fkey";
6044
+ columns: ["connection_id"];
6045
+ isOneToOne: false;
6046
+ referencedRelation: "floriday_connections";
6047
+ referencedColumns: ["id"];
6048
+ }];
6049
+ };
5813
6050
  floriday_clock_presales_cache: {
5814
6051
  Row: {
5815
6052
  buyer_organization_id: string | null;
@@ -6725,6 +6962,69 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
6725
6962
  referencedColumns: ["id"];
6726
6963
  }];
6727
6964
  };
6965
+ floriday_link_templates: {
6966
+ Row: {
6967
+ created_at: string;
6968
+ floriday_url_template: string | null;
6969
+ is_active: boolean;
6970
+ label: string;
6971
+ local_url_template: string | null;
6972
+ resource_type: string;
6973
+ updated_at: string;
6974
+ };
6975
+ Insert: {
6976
+ created_at?: string;
6977
+ floriday_url_template?: string | null;
6978
+ is_active?: boolean;
6979
+ label: string;
6980
+ local_url_template?: string | null;
6981
+ resource_type: string;
6982
+ updated_at?: string;
6983
+ };
6984
+ Update: {
6985
+ created_at?: string;
6986
+ floriday_url_template?: string | null;
6987
+ is_active?: boolean;
6988
+ label?: string;
6989
+ local_url_template?: string | null;
6990
+ resource_type?: string;
6991
+ updated_at?: string;
6992
+ };
6993
+ Relationships: [];
6994
+ };
6995
+ floriday_log_retention: {
6996
+ Row: {
6997
+ created_at: string;
6998
+ direction: string | null;
6999
+ id: string;
7000
+ keep_failed_days: number | null;
7001
+ keep_ok_days: number | null;
7002
+ note: string | null;
7003
+ resource_type: string | null;
7004
+ updated_at: string;
7005
+ };
7006
+ Insert: {
7007
+ created_at?: string;
7008
+ direction?: string | null;
7009
+ id?: string;
7010
+ keep_failed_days?: number | null;
7011
+ keep_ok_days?: number | null;
7012
+ note?: string | null;
7013
+ resource_type?: string | null;
7014
+ updated_at?: string;
7015
+ };
7016
+ Update: {
7017
+ created_at?: string;
7018
+ direction?: string | null;
7019
+ id?: string;
7020
+ keep_failed_days?: number | null;
7021
+ keep_ok_days?: number | null;
7022
+ note?: string | null;
7023
+ resource_type?: string | null;
7024
+ updated_at?: string;
7025
+ };
7026
+ Relationships: [];
7027
+ };
6728
7028
  floriday_logistic_labels_cache: {
6729
7029
  Row: {
6730
7030
  byte_size: number | null;
@@ -10349,6 +10649,48 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
10349
10649
  };
10350
10650
  Relationships: [];
10351
10651
  };
10652
+ logistics_pick_data_requests: {
10653
+ Row: {
10654
+ actions: import("../integrations/supabase/types").Json;
10655
+ created_at: string;
10656
+ event_id: string | null;
10657
+ finished_at: string | null;
10658
+ id: string;
10659
+ missing: import("../integrations/supabase/types").Json;
10660
+ order_ref: string;
10661
+ reason: string | null;
10662
+ result: import("../integrations/supabase/types").Json | null;
10663
+ status: string;
10664
+ unit_ref: string | null;
10665
+ };
10666
+ Insert: {
10667
+ actions?: import("../integrations/supabase/types").Json;
10668
+ created_at?: string;
10669
+ event_id?: string | null;
10670
+ finished_at?: string | null;
10671
+ id?: string;
10672
+ missing?: import("../integrations/supabase/types").Json;
10673
+ order_ref: string;
10674
+ reason?: string | null;
10675
+ result?: import("../integrations/supabase/types").Json | null;
10676
+ status?: string;
10677
+ unit_ref?: string | null;
10678
+ };
10679
+ Update: {
10680
+ actions?: import("../integrations/supabase/types").Json;
10681
+ created_at?: string;
10682
+ event_id?: string | null;
10683
+ finished_at?: string | null;
10684
+ id?: string;
10685
+ missing?: import("../integrations/supabase/types").Json;
10686
+ order_ref?: string;
10687
+ reason?: string | null;
10688
+ result?: import("../integrations/supabase/types").Json | null;
10689
+ status?: string;
10690
+ unit_ref?: string | null;
10691
+ };
10692
+ Relationships: [];
10693
+ };
10352
10694
  logistics_pickup_moments: {
10353
10695
  Row: {
10354
10696
  carrier_ref: string | null;
@@ -10808,6 +11150,69 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
10808
11150
  };
10809
11151
  Relationships: [];
10810
11152
  };
11153
+ logistics_slip_shipping_note: {
11154
+ Row: {
11155
+ attempts: number;
11156
+ batch_key: string | null;
11157
+ cart_id: string | null;
11158
+ created_at: string;
11159
+ error: string | null;
11160
+ error_code: string | null;
11161
+ fulfillment_order_id: string | null;
11162
+ id: string;
11163
+ locked_until: string | null;
11164
+ next_attempt_at: string | null;
11165
+ order_id: string | null;
11166
+ order_number: string | null;
11167
+ print_job_id: string | null;
11168
+ printer_id: string | null;
11169
+ retry_class: string | null;
11170
+ slip_job_id: string;
11171
+ status: string;
11172
+ updated_at: string;
11173
+ };
11174
+ Insert: {
11175
+ attempts?: number;
11176
+ batch_key?: string | null;
11177
+ cart_id?: string | null;
11178
+ created_at?: string;
11179
+ error?: string | null;
11180
+ error_code?: string | null;
11181
+ fulfillment_order_id?: string | null;
11182
+ id?: string;
11183
+ locked_until?: string | null;
11184
+ next_attempt_at?: string | null;
11185
+ order_id?: string | null;
11186
+ order_number?: string | null;
11187
+ print_job_id?: string | null;
11188
+ printer_id?: string | null;
11189
+ retry_class?: string | null;
11190
+ slip_job_id: string;
11191
+ status?: string;
11192
+ updated_at?: string;
11193
+ };
11194
+ Update: {
11195
+ attempts?: number;
11196
+ batch_key?: string | null;
11197
+ cart_id?: string | null;
11198
+ created_at?: string;
11199
+ error?: string | null;
11200
+ error_code?: string | null;
11201
+ fulfillment_order_id?: string | null;
11202
+ id?: string;
11203
+ locked_until?: string | null;
11204
+ next_attempt_at?: string | null;
11205
+ order_id?: string | null;
11206
+ order_number?: string | null;
11207
+ print_job_id?: string | null;
11208
+ printer_id?: string | null;
11209
+ retry_class?: string | null;
11210
+ slip_job_id?: string;
11211
+ status?: string;
11212
+ updated_at?: string;
11213
+ };
11214
+ Relationships: [];
11215
+ };
10811
11216
  logistics_staff_planning: {
10812
11217
  Row: {
10813
11218
  created_at: string;
@@ -11159,6 +11564,111 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
11159
11564
  };
11160
11565
  Relationships: [];
11161
11566
  };
11567
+ logistics_trace_events: {
11568
+ Row: {
11569
+ actor: string | null;
11570
+ attempts: number;
11571
+ cart_ref: string | null;
11572
+ created_at: string;
11573
+ db_action: string | null;
11574
+ db_new: import("../integrations/supabase/types").Json | null;
11575
+ db_old: import("../integrations/supabase/types").Json | null;
11576
+ db_record: string | null;
11577
+ db_table: string | null;
11578
+ decision: string | null;
11579
+ duration_ms: number | null;
11580
+ error: string | null;
11581
+ external_action: string | null;
11582
+ external_ref: string | null;
11583
+ external_response: import("../integrations/supabase/types").Json | null;
11584
+ external_status: string | null;
11585
+ external_system: string | null;
11586
+ id: string;
11587
+ input: import("../integrations/supabase/types").Json | null;
11588
+ next_attempt_at: string | null;
11589
+ order_ref: string | null;
11590
+ order_source: string | null;
11591
+ output: import("../integrations/supabase/types").Json | null;
11592
+ phase: string;
11593
+ reads: import("../integrations/supabase/types").Json | null;
11594
+ reason: string | null;
11595
+ rule: string | null;
11596
+ slip_ref: string | null;
11597
+ status: string;
11598
+ step: string;
11599
+ trace_id: string;
11600
+ values_used: import("../integrations/supabase/types").Json | null;
11601
+ };
11602
+ Insert: {
11603
+ actor?: string | null;
11604
+ attempts?: number;
11605
+ cart_ref?: string | null;
11606
+ created_at?: string;
11607
+ db_action?: string | null;
11608
+ db_new?: import("../integrations/supabase/types").Json | null;
11609
+ db_old?: import("../integrations/supabase/types").Json | null;
11610
+ db_record?: string | null;
11611
+ db_table?: string | null;
11612
+ decision?: string | null;
11613
+ duration_ms?: number | null;
11614
+ error?: string | null;
11615
+ external_action?: string | null;
11616
+ external_ref?: string | null;
11617
+ external_response?: import("../integrations/supabase/types").Json | null;
11618
+ external_status?: string | null;
11619
+ external_system?: string | null;
11620
+ id?: string;
11621
+ input?: import("../integrations/supabase/types").Json | null;
11622
+ next_attempt_at?: string | null;
11623
+ order_ref?: string | null;
11624
+ order_source?: string | null;
11625
+ output?: import("../integrations/supabase/types").Json | null;
11626
+ phase: string;
11627
+ reads?: import("../integrations/supabase/types").Json | null;
11628
+ reason?: string | null;
11629
+ rule?: string | null;
11630
+ slip_ref?: string | null;
11631
+ status: string;
11632
+ step: string;
11633
+ trace_id?: string;
11634
+ values_used?: import("../integrations/supabase/types").Json | null;
11635
+ };
11636
+ Update: {
11637
+ actor?: string | null;
11638
+ attempts?: number;
11639
+ cart_ref?: string | null;
11640
+ created_at?: string;
11641
+ db_action?: string | null;
11642
+ db_new?: import("../integrations/supabase/types").Json | null;
11643
+ db_old?: import("../integrations/supabase/types").Json | null;
11644
+ db_record?: string | null;
11645
+ db_table?: string | null;
11646
+ decision?: string | null;
11647
+ duration_ms?: number | null;
11648
+ error?: string | null;
11649
+ external_action?: string | null;
11650
+ external_ref?: string | null;
11651
+ external_response?: import("../integrations/supabase/types").Json | null;
11652
+ external_status?: string | null;
11653
+ external_system?: string | null;
11654
+ id?: string;
11655
+ input?: import("../integrations/supabase/types").Json | null;
11656
+ next_attempt_at?: string | null;
11657
+ order_ref?: string | null;
11658
+ order_source?: string | null;
11659
+ output?: import("../integrations/supabase/types").Json | null;
11660
+ phase?: string;
11661
+ reads?: import("../integrations/supabase/types").Json | null;
11662
+ reason?: string | null;
11663
+ rule?: string | null;
11664
+ slip_ref?: string | null;
11665
+ status?: string;
11666
+ step?: string;
11667
+ trace_id?: string;
11668
+ values_used?: import("../integrations/supabase/types").Json | null;
11669
+ };
11670
+ Relationships: [];
11671
+ };
11162
11672
  logistics_variables: {
11163
11673
  Row: {
11164
11674
  created_at: string;
@@ -21731,6 +22241,15 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
21731
22241
  Args: never;
21732
22242
  Returns: boolean;
21733
22243
  };
22244
+ cancel_open_print_jobs: {
22245
+ Args: {
22246
+ _cutoff: string;
22247
+ };
22248
+ Returns: {
22249
+ extern_job_id: string;
22250
+ id: string;
22251
+ }[];
22252
+ };
21734
22253
  check_offer_product_available_stock: {
21735
22254
  Args: {
21736
22255
  p_campaign_product_id: string;
@@ -23269,6 +23788,12 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
23269
23788
  };
23270
23789
  Returns: string;
23271
23790
  };
23791
+ logistics_cart_checkin_at: {
23792
+ Args: {
23793
+ p_cart_id: string;
23794
+ };
23795
+ Returns: string;
23796
+ };
23272
23797
  logistics_cart_handled: {
23273
23798
  Args: {
23274
23799
  p_cart_index: number;
@@ -23302,10 +23827,22 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
23302
23827
  task_status: string;
23303
23828
  }[];
23304
23829
  };
23830
+ logistics_cart_is_full: {
23831
+ Args: {
23832
+ p_cart_id: string;
23833
+ };
23834
+ Returns: boolean;
23835
+ };
23305
23836
  logistics_cart_layout_method: {
23306
23837
  Args: never;
23307
23838
  Returns: import("../integrations/supabase/types").Json;
23308
23839
  };
23840
+ logistics_cart_order_refs: {
23841
+ Args: {
23842
+ p_cart_id: string;
23843
+ };
23844
+ Returns: string[];
23845
+ };
23309
23846
  logistics_cart_plan_overview: {
23310
23847
  Args: {
23311
23848
  p_days?: number;
@@ -23325,6 +23862,24 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
23325
23862
  };
23326
23863
  Returns: import("../integrations/supabase/types").Json;
23327
23864
  };
23865
+ logistics_cart_plan_status_core: {
23866
+ Args: {
23867
+ p_ref: string;
23868
+ };
23869
+ Returns: import("../integrations/supabase/types").Json;
23870
+ };
23871
+ logistics_cart_release_reason: {
23872
+ Args: {
23873
+ p_cart_id: string;
23874
+ };
23875
+ Returns: string;
23876
+ };
23877
+ logistics_cart_released: {
23878
+ Args: {
23879
+ p_cart_id: string;
23880
+ };
23881
+ Returns: boolean;
23882
+ };
23328
23883
  logistics_cart_seq: {
23329
23884
  Args: {
23330
23885
  p_order_uuid?: string;
@@ -23375,6 +23930,10 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
23375
23930
  unit_ref: string;
23376
23931
  }[];
23377
23932
  };
23933
+ logistics_carts_per_print: {
23934
+ Args: never;
23935
+ Returns: number;
23936
+ };
23378
23937
  logistics_check_order_allowed: {
23379
23938
  Args: {
23380
23939
  p_lines: import("../integrations/supabase/types").Json;
@@ -23478,6 +24037,10 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
23478
24037
  isSetofReturn: false;
23479
24038
  };
23480
24039
  };
24040
+ logistics_cleanup_orphan_print_jobs: {
24041
+ Args: never;
24042
+ Returns: import("../integrations/supabase/types").Json;
24043
+ };
23481
24044
  logistics_complete_task: {
23482
24045
  Args: {
23483
24046
  p_result?: import("../integrations/supabase/types").Json;
@@ -23729,6 +24292,20 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
23729
24292
  };
23730
24293
  Returns: string;
23731
24294
  };
24295
+ logistics_ensure_pick_data: {
24296
+ Args: {
24297
+ p_event_id?: string;
24298
+ p_missing?: import("../integrations/supabase/types").Json;
24299
+ p_ref: string;
24300
+ };
24301
+ Returns: import("../integrations/supabase/types").Json;
24302
+ };
24303
+ logistics_ensure_shipping_notes: {
24304
+ Args: {
24305
+ p_limit?: number;
24306
+ };
24307
+ Returns: import("../integrations/supabase/types").Json;
24308
+ };
23732
24309
  logistics_fail_task: {
23733
24310
  Args: {
23734
24311
  p_error: string;
@@ -23774,6 +24351,10 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
23774
24351
  isSetofReturn: false;
23775
24352
  };
23776
24353
  };
24354
+ logistics_fix_wrong_shipping_notes: {
24355
+ Args: never;
24356
+ Returns: import("../integrations/supabase/types").Json;
24357
+ };
23777
24358
  logistics_floriday_cart_plan: {
23778
24359
  Args: {
23779
24360
  p_order_id: string;
@@ -23801,6 +24382,10 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
23801
24382
  revision: number;
23802
24383
  }[];
23803
24384
  };
24385
+ logistics_floriday_delivery_note_create_enabled: {
24386
+ Args: never;
24387
+ Returns: boolean;
24388
+ };
23804
24389
  logistics_floriday_finish_push: {
23805
24390
  Args: {
23806
24391
  _error?: string;
@@ -23952,6 +24537,12 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
23952
24537
  };
23953
24538
  Returns: number;
23954
24539
  };
24540
+ logistics_merge_partial_carts: {
24541
+ Args: {
24542
+ p_limit?: number;
24543
+ };
24544
+ Returns: import("../integrations/supabase/types").Json;
24545
+ };
23955
24546
  logistics_next_workday_date: {
23956
24547
  Args: {
23957
24548
  p_date: string;
@@ -24038,6 +24629,12 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
24038
24629
  };
24039
24630
  Returns: string;
24040
24631
  };
24632
+ logistics_payload_is_floriday: {
24633
+ Args: {
24634
+ _payload: import("../integrations/supabase/types").Json;
24635
+ };
24636
+ Returns: boolean;
24637
+ };
24041
24638
  logistics_pick_agenda: {
24042
24639
  Args: {
24043
24640
  p_from?: string;
@@ -24066,6 +24663,10 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
24066
24663
  Args: never;
24067
24664
  Returns: import("../integrations/supabase/types").Json;
24068
24665
  };
24666
+ logistics_pick_partial_mode: {
24667
+ Args: never;
24668
+ Returns: string;
24669
+ };
24069
24670
  logistics_pick_start_estimate: {
24070
24671
  Args: {
24071
24672
  p_order: import("../integrations/supabase/types").Json;
@@ -24156,6 +24757,20 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
24156
24757
  Args: never;
24157
24758
  Returns: undefined;
24158
24759
  };
24760
+ logistics_plan_progress: {
24761
+ Args: {
24762
+ p_refs: string[];
24763
+ };
24764
+ Returns: {
24765
+ cart_plan_ready: boolean;
24766
+ cart_plan_reason: string;
24767
+ cart_plan_released: boolean;
24768
+ plan_progress: number;
24769
+ plan_state: string;
24770
+ plan_state_since: string;
24771
+ unit_ref: string;
24772
+ }[];
24773
+ };
24159
24774
  logistics_plan_prune: {
24160
24775
  Args: never;
24161
24776
  Returns: number;
@@ -24177,6 +24792,18 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
24177
24792
  };
24178
24793
  Returns: number;
24179
24794
  };
24795
+ logistics_plan_state_for: {
24796
+ Args: {
24797
+ p_ref: string;
24798
+ };
24799
+ Returns: import("../integrations/supabase/types").Json;
24800
+ };
24801
+ logistics_prepare_pick_documents: {
24802
+ Args: {
24803
+ p_limit?: number;
24804
+ };
24805
+ Returns: import("../integrations/supabase/types").Json;
24806
+ };
24180
24807
  logistics_prune_buffer_member_queue: {
24181
24808
  Args: never;
24182
24809
  Returns: number;
@@ -24217,18 +24844,36 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
24217
24844
  Args: never;
24218
24845
  Returns: import("../integrations/supabase/types").Json;
24219
24846
  };
24847
+ logistics_refresh_pick_queue_status: {
24848
+ Args: {
24849
+ p_ref: string;
24850
+ };
24851
+ Returns: number;
24852
+ };
24220
24853
  logistics_refresh_pickup_moments: {
24221
24854
  Args: {
24222
24855
  p_weeks?: number;
24223
24856
  };
24224
24857
  Returns: import("../integrations/supabase/types").Json;
24225
24858
  };
24859
+ logistics_refresh_plan_state: {
24860
+ Args: {
24861
+ p_limit?: number;
24862
+ };
24863
+ Returns: import("../integrations/supabase/types").Json;
24864
+ };
24226
24865
  logistics_replan_all: {
24227
24866
  Args: {
24228
24867
  p_reason?: string;
24229
24868
  };
24230
24869
  Returns: import("../integrations/supabase/types").Json;
24231
24870
  };
24871
+ logistics_replan_all_force: {
24872
+ Args: {
24873
+ p_reason?: string;
24874
+ };
24875
+ Returns: import("../integrations/supabase/types").Json;
24876
+ };
24232
24877
  logistics_report_delay: {
24233
24878
  Args: {
24234
24879
  p_expected_date?: string;
@@ -24385,6 +25030,74 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
24385
25030
  };
24386
25031
  Returns: import("../integrations/supabase/types").Json;
24387
25032
  };
25033
+ logistics_shipping_note_job_for_slip: {
25034
+ Args: {
25035
+ _slip_job_id: string;
25036
+ };
25037
+ Returns: string;
25038
+ };
25039
+ logistics_shipping_notes_wake_all: {
25040
+ Args: never;
25041
+ Returns: import("../integrations/supabase/types").Json;
25042
+ };
25043
+ logistics_slip_is_floriday: {
25044
+ Args: {
25045
+ _slip_job_id: string;
25046
+ };
25047
+ Returns: boolean;
25048
+ };
25049
+ logistics_slip_note_claim: {
25050
+ Args: {
25051
+ _lease_seconds?: number;
25052
+ _limit?: number;
25053
+ };
25054
+ Returns: {
25055
+ attempts: number;
25056
+ batch_key: string | null;
25057
+ cart_id: string | null;
25058
+ created_at: string;
25059
+ error: string | null;
25060
+ error_code: string | null;
25061
+ fulfillment_order_id: string | null;
25062
+ id: string;
25063
+ locked_until: string | null;
25064
+ next_attempt_at: string | null;
25065
+ order_id: string | null;
25066
+ order_number: string | null;
25067
+ print_job_id: string | null;
25068
+ printer_id: string | null;
25069
+ retry_class: string | null;
25070
+ slip_job_id: string;
25071
+ status: string;
25072
+ updated_at: string;
25073
+ }[];
25074
+ SetofOptions: {
25075
+ from: "*";
25076
+ to: "logistics_slip_shipping_note";
25077
+ isOneToOne: false;
25078
+ isSetofReturn: true;
25079
+ };
25080
+ };
25081
+ logistics_slip_note_finish: {
25082
+ Args: {
25083
+ _error?: string;
25084
+ _error_code?: string;
25085
+ _fulfillment_order_id?: string;
25086
+ _id: string;
25087
+ _ok: boolean;
25088
+ _print_job_id?: string;
25089
+ _status?: string;
25090
+ };
25091
+ Returns: undefined;
25092
+ };
25093
+ logistics_slip_note_keep_waiting: {
25094
+ Args: {
25095
+ _class?: string;
25096
+ _id: string;
25097
+ _reason: string;
25098
+ };
25099
+ Returns: undefined;
25100
+ };
24388
25101
  logistics_sticker_follows_slip: {
24389
25102
  Args: never;
24390
25103
  Returns: boolean;
@@ -24439,6 +25152,40 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
24439
25152
  name: string;
24440
25153
  }[];
24441
25154
  };
25155
+ logistics_trace: {
25156
+ Args: {
25157
+ p: import("../integrations/supabase/types").Json;
25158
+ };
25159
+ Returns: string;
25160
+ };
25161
+ logistics_trace_batch: {
25162
+ Args: {
25163
+ p: import("../integrations/supabase/types").Json;
25164
+ };
25165
+ Returns: number;
25166
+ };
25167
+ logistics_trace_orders: {
25168
+ Args: {
25169
+ p_limit?: number;
25170
+ p_search?: string;
25171
+ p_since?: string;
25172
+ p_status?: string;
25173
+ };
25174
+ Returns: import("../integrations/supabase/types").Json;
25175
+ };
25176
+ logistics_trace_redact: {
25177
+ Args: {
25178
+ p: import("../integrations/supabase/types").Json;
25179
+ };
25180
+ Returns: import("../integrations/supabase/types").Json;
25181
+ };
25182
+ logistics_trace_timeline: {
25183
+ Args: {
25184
+ p_limit?: number;
25185
+ p_order_ref: string;
25186
+ };
25187
+ Returns: import("../integrations/supabase/types").Json;
25188
+ };
24442
25189
  logistics_upsert_task: {
24443
25190
  Args: {
24444
25191
  p_buffer_ref: string;
@@ -25480,6 +26227,10 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
25480
26227
  };
25481
26228
  Returns: undefined;
25482
26229
  };
26230
+ prune_floriday_api_log: {
26231
+ Args: never;
26232
+ Returns: number;
26233
+ };
25483
26234
  quote_create_from_source: {
25484
26235
  Args: {
25485
26236
  _payload?: import("../integrations/supabase/types").Json;
@@ -25913,6 +26664,13 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
25913
26664
  };
25914
26665
  Returns: number;
25915
26666
  };
26667
+ schedule_floriday_catalog_prices_sync: {
26668
+ Args: {
26669
+ p_apikey: string;
26670
+ p_url: string;
26671
+ };
26672
+ Returns: number;
26673
+ };
25916
26674
  schedule_floriday_clock_presales_sync: {
25917
26675
  Args: {
25918
26676
  p_apikey: string;
@@ -26213,6 +26971,10 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
26213
26971
  };
26214
26972
  Returns: undefined;
26215
26973
  };
26974
+ sync_floriday_prices_into_price_groups: {
26975
+ Args: never;
26976
+ Returns: number;
26977
+ };
26216
26978
  sync_layer_stock: {
26217
26979
  Args: {
26218
26980
  p_product_id: string;
@@ -26345,6 +27107,10 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
26345
27107
  Args: never;
26346
27108
  Returns: string;
26347
27109
  };
27110
+ voorraad_cleanup_old_rows: {
27111
+ Args: never;
27112
+ Returns: import("../integrations/supabase/types").Json;
27113
+ };
26348
27114
  wake_print_queue: {
26349
27115
  Args: {
26350
27116
  _min_interval_ms?: number;
@@ -28652,6 +29418,45 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
28652
29418
  };
28653
29419
  Relationships: [];
28654
29420
  };
29421
+ customer_product_stickers: {
29422
+ Row: {
29423
+ created_at: string;
29424
+ customer_key: string;
29425
+ file_name: string;
29426
+ file_path: string;
29427
+ file_size: number | null;
29428
+ id: string;
29429
+ mime_type: string | null;
29430
+ trade_item_key: string;
29431
+ updated_at: string;
29432
+ uploaded_by: string | null;
29433
+ };
29434
+ Insert: {
29435
+ created_at?: string;
29436
+ customer_key: string;
29437
+ file_name: string;
29438
+ file_path: string;
29439
+ file_size?: number | null;
29440
+ id?: string;
29441
+ mime_type?: string | null;
29442
+ trade_item_key: string;
29443
+ updated_at?: string;
29444
+ uploaded_by?: string | null;
29445
+ };
29446
+ Update: {
29447
+ created_at?: string;
29448
+ customer_key?: string;
29449
+ file_name?: string;
29450
+ file_path?: string;
29451
+ file_size?: number | null;
29452
+ id?: string;
29453
+ mime_type?: string | null;
29454
+ trade_item_key?: string;
29455
+ updated_at?: string;
29456
+ uploaded_by?: string | null;
29457
+ };
29458
+ Relationships: [];
29459
+ };
28655
29460
  customer_selected_assortment: {
28656
29461
  Row: {
28657
29462
  article_number: string | null;
@@ -28700,6 +29505,30 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
28700
29505
  referencedColumns: ["id"];
28701
29506
  }];
28702
29507
  };
29508
+ customer_sticker_settings: {
29509
+ Row: {
29510
+ created_at: string;
29511
+ customer_key: string;
29512
+ height_mm: number;
29513
+ updated_at: string;
29514
+ width_mm: number;
29515
+ };
29516
+ Insert: {
29517
+ created_at?: string;
29518
+ customer_key: string;
29519
+ height_mm?: number;
29520
+ updated_at?: string;
29521
+ width_mm?: number;
29522
+ };
29523
+ Update: {
29524
+ created_at?: string;
29525
+ customer_key?: string;
29526
+ height_mm?: number;
29527
+ updated_at?: string;
29528
+ width_mm?: number;
29529
+ };
29530
+ Relationships: [];
29531
+ };
28703
29532
  customer_trade_settings: {
28704
29533
  Row: {
28705
29534
  category: string;
@@ -32030,6 +32859,102 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
32030
32859
  referencedColumns: ["id"];
32031
32860
  }];
32032
32861
  };
32862
+ floriday_api_log: {
32863
+ Row: {
32864
+ action: string | null;
32865
+ caller: string | null;
32866
+ connection_id: string | null;
32867
+ created_at: string;
32868
+ cursor_from: number | null;
32869
+ direction: string;
32870
+ duration_ms: number | null;
32871
+ environment: string | null;
32872
+ error: string | null;
32873
+ floriday_id: string | null;
32874
+ floriday_reference: string | null;
32875
+ http_status: number;
32876
+ id: string;
32877
+ item_count: number | null;
32878
+ kind: string | null;
32879
+ local_id: string | null;
32880
+ local_reference: string | null;
32881
+ method: string;
32882
+ module: string | null;
32883
+ ok: boolean;
32884
+ path: string;
32885
+ request: import("../integrations/supabase/types").Json | null;
32886
+ resource_type: string | null;
32887
+ response: import("../integrations/supabase/types").Json | null;
32888
+ write_log_id: string | null;
32889
+ };
32890
+ Insert: {
32891
+ action?: string | null;
32892
+ caller?: string | null;
32893
+ connection_id?: string | null;
32894
+ created_at?: string;
32895
+ cursor_from?: number | null;
32896
+ direction: string;
32897
+ duration_ms?: number | null;
32898
+ environment?: string | null;
32899
+ error?: string | null;
32900
+ floriday_id?: string | null;
32901
+ floriday_reference?: string | null;
32902
+ http_status?: number;
32903
+ id?: string;
32904
+ item_count?: number | null;
32905
+ kind?: string | null;
32906
+ local_id?: string | null;
32907
+ local_reference?: string | null;
32908
+ method: string;
32909
+ module?: string | null;
32910
+ ok?: boolean;
32911
+ path: string;
32912
+ request?: import("../integrations/supabase/types").Json | null;
32913
+ resource_type?: string | null;
32914
+ response?: import("../integrations/supabase/types").Json | null;
32915
+ write_log_id?: string | null;
32916
+ };
32917
+ Update: {
32918
+ action?: string | null;
32919
+ caller?: string | null;
32920
+ connection_id?: string | null;
32921
+ created_at?: string;
32922
+ cursor_from?: number | null;
32923
+ direction?: string;
32924
+ duration_ms?: number | null;
32925
+ environment?: string | null;
32926
+ error?: string | null;
32927
+ floriday_id?: string | null;
32928
+ floriday_reference?: string | null;
32929
+ http_status?: number;
32930
+ id?: string;
32931
+ item_count?: number | null;
32932
+ kind?: string | null;
32933
+ local_id?: string | null;
32934
+ local_reference?: string | null;
32935
+ method?: string;
32936
+ module?: string | null;
32937
+ ok?: boolean;
32938
+ path?: string;
32939
+ request?: import("../integrations/supabase/types").Json | null;
32940
+ resource_type?: string | null;
32941
+ response?: import("../integrations/supabase/types").Json | null;
32942
+ write_log_id?: string | null;
32943
+ };
32944
+ Relationships: [{
32945
+ foreignKeyName: "floriday_api_log_connection_id_fkey";
32946
+ columns: ["connection_id"];
32947
+ isOneToOne: false;
32948
+ referencedRelation: "floriday_connections";
32949
+ referencedColumns: ["id"];
32950
+ }, {
32951
+ foreignKeyName: "floriday_api_log_write_log_id_fkey";
32952
+ columns: ["write_log_id"];
32953
+ isOneToOne: false;
32954
+ referencedRelation: "floriday_write_log";
32955
+ referencedColumns: ["id"];
32956
+ }];
32957
+ };
32033
32958
  floriday_auction_letters_cache: {
32034
32959
  Row: {
32035
32960
  auction_letter_code: string;
@@ -32237,6 +33162,84 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
32237
33162
  referencedColumns: ["id"];
32238
33163
  }];
32239
33164
  };
33165
+ floriday_catalog_prices_cache: {
33166
+ Row: {
33167
+ connection_id: string;
33168
+ created_at: string;
33169
+ currency: string;
33170
+ id: string;
33171
+ is_deleted: boolean;
33172
+ price: number | null;
33173
+ price_group_id: string | null;
33174
+ price_group_name: string | null;
33175
+ price_type: string;
33176
+ raw: import("../integrations/supabase/types").Json | null;
33177
+ sales_unit: string | null;
33178
+ sequence_number: number;
33179
+ supplier_article_code: string | null;
33180
+ supply_line_id: string;
33181
+ synced_at: string;
33182
+ trade_item_id: string | null;
33183
+ updated_at: string;
33184
+ valid_from: string | null;
33185
+ valid_to: string | null;
33186
+ week: number | null;
33187
+ year: number | null;
33188
+ };
33189
+ Insert: {
33190
+ connection_id: string;
33191
+ created_at?: string;
33192
+ currency?: string;
33193
+ id?: string;
33194
+ is_deleted?: boolean;
33195
+ price?: number | null;
33196
+ price_group_id?: string | null;
33197
+ price_group_name?: string | null;
33198
+ price_type?: string;
33199
+ raw?: import("../integrations/supabase/types").Json | null;
33200
+ sales_unit?: string | null;
33201
+ sequence_number?: number;
33202
+ supplier_article_code?: string | null;
33203
+ supply_line_id: string;
33204
+ synced_at?: string;
33205
+ trade_item_id?: string | null;
33206
+ updated_at?: string;
33207
+ valid_from?: string | null;
33208
+ valid_to?: string | null;
33209
+ week?: number | null;
33210
+ year?: number | null;
33211
+ };
33212
+ Update: {
33213
+ connection_id?: string;
33214
+ created_at?: string;
33215
+ currency?: string;
33216
+ id?: string;
33217
+ is_deleted?: boolean;
33218
+ price?: number | null;
33219
+ price_group_id?: string | null;
33220
+ price_group_name?: string | null;
33221
+ price_type?: string;
33222
+ raw?: import("../integrations/supabase/types").Json | null;
33223
+ sales_unit?: string | null;
33224
+ sequence_number?: number;
33225
+ supplier_article_code?: string | null;
33226
+ supply_line_id?: string;
33227
+ synced_at?: string;
33228
+ trade_item_id?: string | null;
33229
+ updated_at?: string;
33230
+ valid_from?: string | null;
33231
+ valid_to?: string | null;
33232
+ week?: number | null;
33233
+ year?: number | null;
33234
+ };
33235
+ Relationships: [{
33236
+ foreignKeyName: "floriday_catalog_prices_cache_connection_id_fkey";
33237
+ columns: ["connection_id"];
33238
+ isOneToOne: false;
33239
+ referencedRelation: "floriday_connections";
33240
+ referencedColumns: ["id"];
33241
+ }];
33242
+ };
32240
33243
  floriday_clock_presales_cache: {
32241
33244
  Row: {
32242
33245
  buyer_organization_id: string | null;
@@ -33152,6 +34155,69 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
33152
34155
  referencedColumns: ["id"];
33153
34156
  }];
33154
34157
  };
34158
+ floriday_link_templates: {
34159
+ Row: {
34160
+ created_at: string;
34161
+ floriday_url_template: string | null;
34162
+ is_active: boolean;
34163
+ label: string;
34164
+ local_url_template: string | null;
34165
+ resource_type: string;
34166
+ updated_at: string;
34167
+ };
34168
+ Insert: {
34169
+ created_at?: string;
34170
+ floriday_url_template?: string | null;
34171
+ is_active?: boolean;
34172
+ label: string;
34173
+ local_url_template?: string | null;
34174
+ resource_type: string;
34175
+ updated_at?: string;
34176
+ };
34177
+ Update: {
34178
+ created_at?: string;
34179
+ floriday_url_template?: string | null;
34180
+ is_active?: boolean;
34181
+ label?: string;
34182
+ local_url_template?: string | null;
34183
+ resource_type?: string;
34184
+ updated_at?: string;
34185
+ };
34186
+ Relationships: [];
34187
+ };
34188
+ floriday_log_retention: {
34189
+ Row: {
34190
+ created_at: string;
34191
+ direction: string | null;
34192
+ id: string;
34193
+ keep_failed_days: number | null;
34194
+ keep_ok_days: number | null;
34195
+ note: string | null;
34196
+ resource_type: string | null;
34197
+ updated_at: string;
34198
+ };
34199
+ Insert: {
34200
+ created_at?: string;
34201
+ direction?: string | null;
34202
+ id?: string;
34203
+ keep_failed_days?: number | null;
34204
+ keep_ok_days?: number | null;
34205
+ note?: string | null;
34206
+ resource_type?: string | null;
34207
+ updated_at?: string;
34208
+ };
34209
+ Update: {
34210
+ created_at?: string;
34211
+ direction?: string | null;
34212
+ id?: string;
34213
+ keep_failed_days?: number | null;
34214
+ keep_ok_days?: number | null;
34215
+ note?: string | null;
34216
+ resource_type?: string | null;
34217
+ updated_at?: string;
34218
+ };
34219
+ Relationships: [];
34220
+ };
33155
34221
  floriday_logistic_labels_cache: {
33156
34222
  Row: {
33157
34223
  byte_size: number | null;
@@ -36776,6 +37842,48 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
36776
37842
  };
36777
37843
  Relationships: [];
36778
37844
  };
37845
+ logistics_pick_data_requests: {
37846
+ Row: {
37847
+ actions: import("../integrations/supabase/types").Json;
37848
+ created_at: string;
37849
+ event_id: string | null;
37850
+ finished_at: string | null;
37851
+ id: string;
37852
+ missing: import("../integrations/supabase/types").Json;
37853
+ order_ref: string;
37854
+ reason: string | null;
37855
+ result: import("../integrations/supabase/types").Json | null;
37856
+ status: string;
37857
+ unit_ref: string | null;
37858
+ };
37859
+ Insert: {
37860
+ actions?: import("../integrations/supabase/types").Json;
37861
+ created_at?: string;
37862
+ event_id?: string | null;
37863
+ finished_at?: string | null;
37864
+ id?: string;
37865
+ missing?: import("../integrations/supabase/types").Json;
37866
+ order_ref: string;
37867
+ reason?: string | null;
37868
+ result?: import("../integrations/supabase/types").Json | null;
37869
+ status?: string;
37870
+ unit_ref?: string | null;
37871
+ };
37872
+ Update: {
37873
+ actions?: import("../integrations/supabase/types").Json;
37874
+ created_at?: string;
37875
+ event_id?: string | null;
37876
+ finished_at?: string | null;
37877
+ id?: string;
37878
+ missing?: import("../integrations/supabase/types").Json;
37879
+ order_ref?: string;
37880
+ reason?: string | null;
37881
+ result?: import("../integrations/supabase/types").Json | null;
37882
+ status?: string;
37883
+ unit_ref?: string | null;
37884
+ };
37885
+ Relationships: [];
37886
+ };
36779
37887
  logistics_pickup_moments: {
36780
37888
  Row: {
36781
37889
  carrier_ref: string | null;
@@ -37235,6 +38343,69 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
37235
38343
  };
37236
38344
  Relationships: [];
37237
38345
  };
38346
+ logistics_slip_shipping_note: {
38347
+ Row: {
38348
+ attempts: number;
38349
+ batch_key: string | null;
38350
+ cart_id: string | null;
38351
+ created_at: string;
38352
+ error: string | null;
38353
+ error_code: string | null;
38354
+ fulfillment_order_id: string | null;
38355
+ id: string;
38356
+ locked_until: string | null;
38357
+ next_attempt_at: string | null;
38358
+ order_id: string | null;
38359
+ order_number: string | null;
38360
+ print_job_id: string | null;
38361
+ printer_id: string | null;
38362
+ retry_class: string | null;
38363
+ slip_job_id: string;
38364
+ status: string;
38365
+ updated_at: string;
38366
+ };
38367
+ Insert: {
38368
+ attempts?: number;
38369
+ batch_key?: string | null;
38370
+ cart_id?: string | null;
38371
+ created_at?: string;
38372
+ error?: string | null;
38373
+ error_code?: string | null;
38374
+ fulfillment_order_id?: string | null;
38375
+ id?: string;
38376
+ locked_until?: string | null;
38377
+ next_attempt_at?: string | null;
38378
+ order_id?: string | null;
38379
+ order_number?: string | null;
38380
+ print_job_id?: string | null;
38381
+ printer_id?: string | null;
38382
+ retry_class?: string | null;
38383
+ slip_job_id: string;
38384
+ status?: string;
38385
+ updated_at?: string;
38386
+ };
38387
+ Update: {
38388
+ attempts?: number;
38389
+ batch_key?: string | null;
38390
+ cart_id?: string | null;
38391
+ created_at?: string;
38392
+ error?: string | null;
38393
+ error_code?: string | null;
38394
+ fulfillment_order_id?: string | null;
38395
+ id?: string;
38396
+ locked_until?: string | null;
38397
+ next_attempt_at?: string | null;
38398
+ order_id?: string | null;
38399
+ order_number?: string | null;
38400
+ print_job_id?: string | null;
38401
+ printer_id?: string | null;
38402
+ retry_class?: string | null;
38403
+ slip_job_id?: string;
38404
+ status?: string;
38405
+ updated_at?: string;
38406
+ };
38407
+ Relationships: [];
38408
+ };
37238
38409
  logistics_staff_planning: {
37239
38410
  Row: {
37240
38411
  created_at: string;
@@ -37586,6 +38757,111 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
37586
38757
  };
37587
38758
  Relationships: [];
37588
38759
  };
38760
+ logistics_trace_events: {
38761
+ Row: {
38762
+ actor: string | null;
38763
+ attempts: number;
38764
+ cart_ref: string | null;
38765
+ created_at: string;
38766
+ db_action: string | null;
38767
+ db_new: import("../integrations/supabase/types").Json | null;
38768
+ db_old: import("../integrations/supabase/types").Json | null;
38769
+ db_record: string | null;
38770
+ db_table: string | null;
38771
+ decision: string | null;
38772
+ duration_ms: number | null;
38773
+ error: string | null;
38774
+ external_action: string | null;
38775
+ external_ref: string | null;
38776
+ external_response: import("../integrations/supabase/types").Json | null;
38777
+ external_status: string | null;
38778
+ external_system: string | null;
38779
+ id: string;
38780
+ input: import("../integrations/supabase/types").Json | null;
38781
+ next_attempt_at: string | null;
38782
+ order_ref: string | null;
38783
+ order_source: string | null;
38784
+ output: import("../integrations/supabase/types").Json | null;
38785
+ phase: string;
38786
+ reads: import("../integrations/supabase/types").Json | null;
38787
+ reason: string | null;
38788
+ rule: string | null;
38789
+ slip_ref: string | null;
38790
+ status: string;
38791
+ step: string;
38792
+ trace_id: string;
38793
+ values_used: import("../integrations/supabase/types").Json | null;
38794
+ };
38795
+ Insert: {
38796
+ actor?: string | null;
38797
+ attempts?: number;
38798
+ cart_ref?: string | null;
38799
+ created_at?: string;
38800
+ db_action?: string | null;
38801
+ db_new?: import("../integrations/supabase/types").Json | null;
38802
+ db_old?: import("../integrations/supabase/types").Json | null;
38803
+ db_record?: string | null;
38804
+ db_table?: string | null;
38805
+ decision?: string | null;
38806
+ duration_ms?: number | null;
38807
+ error?: string | null;
38808
+ external_action?: string | null;
38809
+ external_ref?: string | null;
38810
+ external_response?: import("../integrations/supabase/types").Json | null;
38811
+ external_status?: string | null;
38812
+ external_system?: string | null;
38813
+ id?: string;
38814
+ input?: import("../integrations/supabase/types").Json | null;
38815
+ next_attempt_at?: string | null;
38816
+ order_ref?: string | null;
38817
+ order_source?: string | null;
38818
+ output?: import("../integrations/supabase/types").Json | null;
38819
+ phase: string;
38820
+ reads?: import("../integrations/supabase/types").Json | null;
38821
+ reason?: string | null;
38822
+ rule?: string | null;
38823
+ slip_ref?: string | null;
38824
+ status: string;
38825
+ step: string;
38826
+ trace_id?: string;
38827
+ values_used?: import("../integrations/supabase/types").Json | null;
38828
+ };
38829
+ Update: {
38830
+ actor?: string | null;
38831
+ attempts?: number;
38832
+ cart_ref?: string | null;
38833
+ created_at?: string;
38834
+ db_action?: string | null;
38835
+ db_new?: import("../integrations/supabase/types").Json | null;
38836
+ db_old?: import("../integrations/supabase/types").Json | null;
38837
+ db_record?: string | null;
38838
+ db_table?: string | null;
38839
+ decision?: string | null;
38840
+ duration_ms?: number | null;
38841
+ error?: string | null;
38842
+ external_action?: string | null;
38843
+ external_ref?: string | null;
38844
+ external_response?: import("../integrations/supabase/types").Json | null;
38845
+ external_status?: string | null;
38846
+ external_system?: string | null;
38847
+ id?: string;
38848
+ input?: import("../integrations/supabase/types").Json | null;
38849
+ next_attempt_at?: string | null;
38850
+ order_ref?: string | null;
38851
+ order_source?: string | null;
38852
+ output?: import("../integrations/supabase/types").Json | null;
38853
+ phase?: string;
38854
+ reads?: import("../integrations/supabase/types").Json | null;
38855
+ reason?: string | null;
38856
+ rule?: string | null;
38857
+ slip_ref?: string | null;
38858
+ status?: string;
38859
+ step?: string;
38860
+ trace_id?: string;
38861
+ values_used?: import("../integrations/supabase/types").Json | null;
38862
+ };
38863
+ Relationships: [];
38864
+ };
37589
38865
  logistics_variables: {
37590
38866
  Row: {
37591
38867
  created_at: string;
@@ -48158,6 +49434,15 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
48158
49434
  Args: never;
48159
49435
  Returns: boolean;
48160
49436
  };
49437
+ cancel_open_print_jobs: {
49438
+ Args: {
49439
+ _cutoff: string;
49440
+ };
49441
+ Returns: {
49442
+ extern_job_id: string;
49443
+ id: string;
49444
+ }[];
49445
+ };
48161
49446
  check_offer_product_available_stock: {
48162
49447
  Args: {
48163
49448
  p_campaign_product_id: string;
@@ -49696,6 +50981,12 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
49696
50981
  };
49697
50982
  Returns: string;
49698
50983
  };
50984
+ logistics_cart_checkin_at: {
50985
+ Args: {
50986
+ p_cart_id: string;
50987
+ };
50988
+ Returns: string;
50989
+ };
49699
50990
  logistics_cart_handled: {
49700
50991
  Args: {
49701
50992
  p_cart_index: number;
@@ -49729,10 +51020,22 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
49729
51020
  task_status: string;
49730
51021
  }[];
49731
51022
  };
51023
+ logistics_cart_is_full: {
51024
+ Args: {
51025
+ p_cart_id: string;
51026
+ };
51027
+ Returns: boolean;
51028
+ };
49732
51029
  logistics_cart_layout_method: {
49733
51030
  Args: never;
49734
51031
  Returns: import("../integrations/supabase/types").Json;
49735
51032
  };
51033
+ logistics_cart_order_refs: {
51034
+ Args: {
51035
+ p_cart_id: string;
51036
+ };
51037
+ Returns: string[];
51038
+ };
49736
51039
  logistics_cart_plan_overview: {
49737
51040
  Args: {
49738
51041
  p_days?: number;
@@ -49752,6 +51055,24 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
49752
51055
  };
49753
51056
  Returns: import("../integrations/supabase/types").Json;
49754
51057
  };
51058
+ logistics_cart_plan_status_core: {
51059
+ Args: {
51060
+ p_ref: string;
51061
+ };
51062
+ Returns: import("../integrations/supabase/types").Json;
51063
+ };
51064
+ logistics_cart_release_reason: {
51065
+ Args: {
51066
+ p_cart_id: string;
51067
+ };
51068
+ Returns: string;
51069
+ };
51070
+ logistics_cart_released: {
51071
+ Args: {
51072
+ p_cart_id: string;
51073
+ };
51074
+ Returns: boolean;
51075
+ };
49755
51076
  logistics_cart_seq: {
49756
51077
  Args: {
49757
51078
  p_order_uuid?: string;
@@ -49802,6 +51123,10 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
49802
51123
  unit_ref: string;
49803
51124
  }[];
49804
51125
  };
51126
+ logistics_carts_per_print: {
51127
+ Args: never;
51128
+ Returns: number;
51129
+ };
49805
51130
  logistics_check_order_allowed: {
49806
51131
  Args: {
49807
51132
  p_lines: import("../integrations/supabase/types").Json;
@@ -49905,6 +51230,10 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
49905
51230
  isSetofReturn: false;
49906
51231
  };
49907
51232
  };
51233
+ logistics_cleanup_orphan_print_jobs: {
51234
+ Args: never;
51235
+ Returns: import("../integrations/supabase/types").Json;
51236
+ };
49908
51237
  logistics_complete_task: {
49909
51238
  Args: {
49910
51239
  p_result?: import("../integrations/supabase/types").Json;
@@ -50156,6 +51485,20 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
50156
51485
  };
50157
51486
  Returns: string;
50158
51487
  };
51488
+ logistics_ensure_pick_data: {
51489
+ Args: {
51490
+ p_event_id?: string;
51491
+ p_missing?: import("../integrations/supabase/types").Json;
51492
+ p_ref: string;
51493
+ };
51494
+ Returns: import("../integrations/supabase/types").Json;
51495
+ };
51496
+ logistics_ensure_shipping_notes: {
51497
+ Args: {
51498
+ p_limit?: number;
51499
+ };
51500
+ Returns: import("../integrations/supabase/types").Json;
51501
+ };
50159
51502
  logistics_fail_task: {
50160
51503
  Args: {
50161
51504
  p_error: string;
@@ -50201,6 +51544,10 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
50201
51544
  isSetofReturn: false;
50202
51545
  };
50203
51546
  };
51547
+ logistics_fix_wrong_shipping_notes: {
51548
+ Args: never;
51549
+ Returns: import("../integrations/supabase/types").Json;
51550
+ };
50204
51551
  logistics_floriday_cart_plan: {
50205
51552
  Args: {
50206
51553
  p_order_id: string;
@@ -50228,6 +51575,10 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
50228
51575
  revision: number;
50229
51576
  }[];
50230
51577
  };
51578
+ logistics_floriday_delivery_note_create_enabled: {
51579
+ Args: never;
51580
+ Returns: boolean;
51581
+ };
50231
51582
  logistics_floriday_finish_push: {
50232
51583
  Args: {
50233
51584
  _error?: string;
@@ -50379,6 +51730,12 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
50379
51730
  };
50380
51731
  Returns: number;
50381
51732
  };
51733
+ logistics_merge_partial_carts: {
51734
+ Args: {
51735
+ p_limit?: number;
51736
+ };
51737
+ Returns: import("../integrations/supabase/types").Json;
51738
+ };
50382
51739
  logistics_next_workday_date: {
50383
51740
  Args: {
50384
51741
  p_date: string;
@@ -50465,6 +51822,12 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
50465
51822
  };
50466
51823
  Returns: string;
50467
51824
  };
51825
+ logistics_payload_is_floriday: {
51826
+ Args: {
51827
+ _payload: import("../integrations/supabase/types").Json;
51828
+ };
51829
+ Returns: boolean;
51830
+ };
50468
51831
  logistics_pick_agenda: {
50469
51832
  Args: {
50470
51833
  p_from?: string;
@@ -50493,6 +51856,10 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
50493
51856
  Args: never;
50494
51857
  Returns: import("../integrations/supabase/types").Json;
50495
51858
  };
51859
+ logistics_pick_partial_mode: {
51860
+ Args: never;
51861
+ Returns: string;
51862
+ };
50496
51863
  logistics_pick_start_estimate: {
50497
51864
  Args: {
50498
51865
  p_order: import("../integrations/supabase/types").Json;
@@ -50583,6 +51950,20 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
50583
51950
  Args: never;
50584
51951
  Returns: undefined;
50585
51952
  };
51953
+ logistics_plan_progress: {
51954
+ Args: {
51955
+ p_refs: string[];
51956
+ };
51957
+ Returns: {
51958
+ cart_plan_ready: boolean;
51959
+ cart_plan_reason: string;
51960
+ cart_plan_released: boolean;
51961
+ plan_progress: number;
51962
+ plan_state: string;
51963
+ plan_state_since: string;
51964
+ unit_ref: string;
51965
+ }[];
51966
+ };
50586
51967
  logistics_plan_prune: {
50587
51968
  Args: never;
50588
51969
  Returns: number;
@@ -50604,6 +51985,18 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
50604
51985
  };
50605
51986
  Returns: number;
50606
51987
  };
51988
+ logistics_plan_state_for: {
51989
+ Args: {
51990
+ p_ref: string;
51991
+ };
51992
+ Returns: import("../integrations/supabase/types").Json;
51993
+ };
51994
+ logistics_prepare_pick_documents: {
51995
+ Args: {
51996
+ p_limit?: number;
51997
+ };
51998
+ Returns: import("../integrations/supabase/types").Json;
51999
+ };
50607
52000
  logistics_prune_buffer_member_queue: {
50608
52001
  Args: never;
50609
52002
  Returns: number;
@@ -50644,18 +52037,36 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
50644
52037
  Args: never;
50645
52038
  Returns: import("../integrations/supabase/types").Json;
50646
52039
  };
52040
+ logistics_refresh_pick_queue_status: {
52041
+ Args: {
52042
+ p_ref: string;
52043
+ };
52044
+ Returns: number;
52045
+ };
50647
52046
  logistics_refresh_pickup_moments: {
50648
52047
  Args: {
50649
52048
  p_weeks?: number;
50650
52049
  };
50651
52050
  Returns: import("../integrations/supabase/types").Json;
50652
52051
  };
52052
+ logistics_refresh_plan_state: {
52053
+ Args: {
52054
+ p_limit?: number;
52055
+ };
52056
+ Returns: import("../integrations/supabase/types").Json;
52057
+ };
50653
52058
  logistics_replan_all: {
50654
52059
  Args: {
50655
52060
  p_reason?: string;
50656
52061
  };
50657
52062
  Returns: import("../integrations/supabase/types").Json;
50658
52063
  };
52064
+ logistics_replan_all_force: {
52065
+ Args: {
52066
+ p_reason?: string;
52067
+ };
52068
+ Returns: import("../integrations/supabase/types").Json;
52069
+ };
50659
52070
  logistics_report_delay: {
50660
52071
  Args: {
50661
52072
  p_expected_date?: string;
@@ -50812,6 +52223,74 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
50812
52223
  };
50813
52224
  Returns: import("../integrations/supabase/types").Json;
50814
52225
  };
52226
+ logistics_shipping_note_job_for_slip: {
52227
+ Args: {
52228
+ _slip_job_id: string;
52229
+ };
52230
+ Returns: string;
52231
+ };
52232
+ logistics_shipping_notes_wake_all: {
52233
+ Args: never;
52234
+ Returns: import("../integrations/supabase/types").Json;
52235
+ };
52236
+ logistics_slip_is_floriday: {
52237
+ Args: {
52238
+ _slip_job_id: string;
52239
+ };
52240
+ Returns: boolean;
52241
+ };
52242
+ logistics_slip_note_claim: {
52243
+ Args: {
52244
+ _lease_seconds?: number;
52245
+ _limit?: number;
52246
+ };
52247
+ Returns: {
52248
+ attempts: number;
52249
+ batch_key: string | null;
52250
+ cart_id: string | null;
52251
+ created_at: string;
52252
+ error: string | null;
52253
+ error_code: string | null;
52254
+ fulfillment_order_id: string | null;
52255
+ id: string;
52256
+ locked_until: string | null;
52257
+ next_attempt_at: string | null;
52258
+ order_id: string | null;
52259
+ order_number: string | null;
52260
+ print_job_id: string | null;
52261
+ printer_id: string | null;
52262
+ retry_class: string | null;
52263
+ slip_job_id: string;
52264
+ status: string;
52265
+ updated_at: string;
52266
+ }[];
52267
+ SetofOptions: {
52268
+ from: "*";
52269
+ to: "logistics_slip_shipping_note";
52270
+ isOneToOne: false;
52271
+ isSetofReturn: true;
52272
+ };
52273
+ };
52274
+ logistics_slip_note_finish: {
52275
+ Args: {
52276
+ _error?: string;
52277
+ _error_code?: string;
52278
+ _fulfillment_order_id?: string;
52279
+ _id: string;
52280
+ _ok: boolean;
52281
+ _print_job_id?: string;
52282
+ _status?: string;
52283
+ };
52284
+ Returns: undefined;
52285
+ };
52286
+ logistics_slip_note_keep_waiting: {
52287
+ Args: {
52288
+ _class?: string;
52289
+ _id: string;
52290
+ _reason: string;
52291
+ };
52292
+ Returns: undefined;
52293
+ };
50815
52294
  logistics_sticker_follows_slip: {
50816
52295
  Args: never;
50817
52296
  Returns: boolean;
@@ -50866,6 +52345,40 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
50866
52345
  name: string;
50867
52346
  }[];
50868
52347
  };
52348
+ logistics_trace: {
52349
+ Args: {
52350
+ p: import("../integrations/supabase/types").Json;
52351
+ };
52352
+ Returns: string;
52353
+ };
52354
+ logistics_trace_batch: {
52355
+ Args: {
52356
+ p: import("../integrations/supabase/types").Json;
52357
+ };
52358
+ Returns: number;
52359
+ };
52360
+ logistics_trace_orders: {
52361
+ Args: {
52362
+ p_limit?: number;
52363
+ p_search?: string;
52364
+ p_since?: string;
52365
+ p_status?: string;
52366
+ };
52367
+ Returns: import("../integrations/supabase/types").Json;
52368
+ };
52369
+ logistics_trace_redact: {
52370
+ Args: {
52371
+ p: import("../integrations/supabase/types").Json;
52372
+ };
52373
+ Returns: import("../integrations/supabase/types").Json;
52374
+ };
52375
+ logistics_trace_timeline: {
52376
+ Args: {
52377
+ p_limit?: number;
52378
+ p_order_ref: string;
52379
+ };
52380
+ Returns: import("../integrations/supabase/types").Json;
52381
+ };
50869
52382
  logistics_upsert_task: {
50870
52383
  Args: {
50871
52384
  p_buffer_ref: string;
@@ -51907,6 +53420,10 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
51907
53420
  };
51908
53421
  Returns: undefined;
51909
53422
  };
53423
+ prune_floriday_api_log: {
53424
+ Args: never;
53425
+ Returns: number;
53426
+ };
51910
53427
  quote_create_from_source: {
51911
53428
  Args: {
51912
53429
  _payload?: import("../integrations/supabase/types").Json;
@@ -52340,6 +53857,13 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
52340
53857
  };
52341
53858
  Returns: number;
52342
53859
  };
53860
+ schedule_floriday_catalog_prices_sync: {
53861
+ Args: {
53862
+ p_apikey: string;
53863
+ p_url: string;
53864
+ };
53865
+ Returns: number;
53866
+ };
52343
53867
  schedule_floriday_clock_presales_sync: {
52344
53868
  Args: {
52345
53869
  p_apikey: string;
@@ -52640,6 +54164,10 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
52640
54164
  };
52641
54165
  Returns: undefined;
52642
54166
  };
54167
+ sync_floriday_prices_into_price_groups: {
54168
+ Args: never;
54169
+ Returns: number;
54170
+ };
52643
54171
  sync_layer_stock: {
52644
54172
  Args: {
52645
54173
  p_product_id: string;
@@ -52772,6 +54300,10 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
52772
54300
  Args: never;
52773
54301
  Returns: string;
52774
54302
  };
54303
+ voorraad_cleanup_old_rows: {
54304
+ Args: never;
54305
+ Returns: import("../integrations/supabase/types").Json;
54306
+ };
52775
54307
  wake_print_queue: {
52776
54308
  Args: {
52777
54309
  _min_interval_ms?: number;
@@ -55113,6 +56645,45 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
55113
56645
  };
55114
56646
  Relationships: [];
55115
56647
  };
56648
+ customer_product_stickers: {
56649
+ Row: {
56650
+ created_at: string;
56651
+ customer_key: string;
56652
+ file_name: string;
56653
+ file_path: string;
56654
+ file_size: number | null;
56655
+ id: string;
56656
+ mime_type: string | null;
56657
+ trade_item_key: string;
56658
+ updated_at: string;
56659
+ uploaded_by: string | null;
56660
+ };
56661
+ Insert: {
56662
+ created_at?: string;
56663
+ customer_key: string;
56664
+ file_name: string;
56665
+ file_path: string;
56666
+ file_size?: number | null;
56667
+ id?: string;
56668
+ mime_type?: string | null;
56669
+ trade_item_key: string;
56670
+ updated_at?: string;
56671
+ uploaded_by?: string | null;
56672
+ };
56673
+ Update: {
56674
+ created_at?: string;
56675
+ customer_key?: string;
56676
+ file_name?: string;
56677
+ file_path?: string;
56678
+ file_size?: number | null;
56679
+ id?: string;
56680
+ mime_type?: string | null;
56681
+ trade_item_key?: string;
56682
+ updated_at?: string;
56683
+ uploaded_by?: string | null;
56684
+ };
56685
+ Relationships: [];
56686
+ };
55116
56687
  customer_selected_assortment: {
55117
56688
  Row: {
55118
56689
  article_number: string | null;
@@ -55161,6 +56732,30 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
55161
56732
  referencedColumns: ["id"];
55162
56733
  }];
55163
56734
  };
56735
+ customer_sticker_settings: {
56736
+ Row: {
56737
+ created_at: string;
56738
+ customer_key: string;
56739
+ height_mm: number;
56740
+ updated_at: string;
56741
+ width_mm: number;
56742
+ };
56743
+ Insert: {
56744
+ created_at?: string;
56745
+ customer_key: string;
56746
+ height_mm?: number;
56747
+ updated_at?: string;
56748
+ width_mm?: number;
56749
+ };
56750
+ Update: {
56751
+ created_at?: string;
56752
+ customer_key?: string;
56753
+ height_mm?: number;
56754
+ updated_at?: string;
56755
+ width_mm?: number;
56756
+ };
56757
+ Relationships: [];
56758
+ };
55164
56759
  customer_trade_settings: {
55165
56760
  Row: {
55166
56761
  category: string;
@@ -58491,6 +60086,102 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
58491
60086
  referencedColumns: ["id"];
58492
60087
  }];
58493
60088
  };
60089
+ floriday_api_log: {
60090
+ Row: {
60091
+ action: string | null;
60092
+ caller: string | null;
60093
+ connection_id: string | null;
60094
+ created_at: string;
60095
+ cursor_from: number | null;
60096
+ direction: string;
60097
+ duration_ms: number | null;
60098
+ environment: string | null;
60099
+ error: string | null;
60100
+ floriday_id: string | null;
60101
+ floriday_reference: string | null;
60102
+ http_status: number;
60103
+ id: string;
60104
+ item_count: number | null;
60105
+ kind: string | null;
60106
+ local_id: string | null;
60107
+ local_reference: string | null;
60108
+ method: string;
60109
+ module: string | null;
60110
+ ok: boolean;
60111
+ path: string;
60112
+ request: import("../integrations/supabase/types").Json | null;
60113
+ resource_type: string | null;
60114
+ response: import("../integrations/supabase/types").Json | null;
60115
+ write_log_id: string | null;
60116
+ };
60117
+ Insert: {
60118
+ action?: string | null;
60119
+ caller?: string | null;
60120
+ connection_id?: string | null;
60121
+ created_at?: string;
60122
+ cursor_from?: number | null;
60123
+ direction: string;
60124
+ duration_ms?: number | null;
60125
+ environment?: string | null;
60126
+ error?: string | null;
60127
+ floriday_id?: string | null;
60128
+ floriday_reference?: string | null;
60129
+ http_status?: number;
60130
+ id?: string;
60131
+ item_count?: number | null;
60132
+ kind?: string | null;
60133
+ local_id?: string | null;
60134
+ local_reference?: string | null;
60135
+ method: string;
60136
+ module?: string | null;
60137
+ ok?: boolean;
60138
+ path: string;
60139
+ request?: import("../integrations/supabase/types").Json | null;
60140
+ resource_type?: string | null;
60141
+ response?: import("../integrations/supabase/types").Json | null;
60142
+ write_log_id?: string | null;
60143
+ };
60144
+ Update: {
60145
+ action?: string | null;
60146
+ caller?: string | null;
60147
+ connection_id?: string | null;
60148
+ created_at?: string;
60149
+ cursor_from?: number | null;
60150
+ direction?: string;
60151
+ duration_ms?: number | null;
60152
+ environment?: string | null;
60153
+ error?: string | null;
60154
+ floriday_id?: string | null;
60155
+ floriday_reference?: string | null;
60156
+ http_status?: number;
60157
+ id?: string;
60158
+ item_count?: number | null;
60159
+ kind?: string | null;
60160
+ local_id?: string | null;
60161
+ local_reference?: string | null;
60162
+ method?: string;
60163
+ module?: string | null;
60164
+ ok?: boolean;
60165
+ path?: string;
60166
+ request?: import("../integrations/supabase/types").Json | null;
60167
+ resource_type?: string | null;
60168
+ response?: import("../integrations/supabase/types").Json | null;
60169
+ write_log_id?: string | null;
60170
+ };
60171
+ Relationships: [{
60172
+ foreignKeyName: "floriday_api_log_connection_id_fkey";
60173
+ columns: ["connection_id"];
60174
+ isOneToOne: false;
60175
+ referencedRelation: "floriday_connections";
60176
+ referencedColumns: ["id"];
60177
+ }, {
60178
+ foreignKeyName: "floriday_api_log_write_log_id_fkey";
60179
+ columns: ["write_log_id"];
60180
+ isOneToOne: false;
60181
+ referencedRelation: "floriday_write_log";
60182
+ referencedColumns: ["id"];
60183
+ }];
60184
+ };
58494
60185
  floriday_auction_letters_cache: {
58495
60186
  Row: {
58496
60187
  auction_letter_code: string;
@@ -58698,6 +60389,84 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
58698
60389
  referencedColumns: ["id"];
58699
60390
  }];
58700
60391
  };
60392
+ floriday_catalog_prices_cache: {
60393
+ Row: {
60394
+ connection_id: string;
60395
+ created_at: string;
60396
+ currency: string;
60397
+ id: string;
60398
+ is_deleted: boolean;
60399
+ price: number | null;
60400
+ price_group_id: string | null;
60401
+ price_group_name: string | null;
60402
+ price_type: string;
60403
+ raw: import("../integrations/supabase/types").Json | null;
60404
+ sales_unit: string | null;
60405
+ sequence_number: number;
60406
+ supplier_article_code: string | null;
60407
+ supply_line_id: string;
60408
+ synced_at: string;
60409
+ trade_item_id: string | null;
60410
+ updated_at: string;
60411
+ valid_from: string | null;
60412
+ valid_to: string | null;
60413
+ week: number | null;
60414
+ year: number | null;
60415
+ };
60416
+ Insert: {
60417
+ connection_id: string;
60418
+ created_at?: string;
60419
+ currency?: string;
60420
+ id?: string;
60421
+ is_deleted?: boolean;
60422
+ price?: number | null;
60423
+ price_group_id?: string | null;
60424
+ price_group_name?: string | null;
60425
+ price_type?: string;
60426
+ raw?: import("../integrations/supabase/types").Json | null;
60427
+ sales_unit?: string | null;
60428
+ sequence_number?: number;
60429
+ supplier_article_code?: string | null;
60430
+ supply_line_id: string;
60431
+ synced_at?: string;
60432
+ trade_item_id?: string | null;
60433
+ updated_at?: string;
60434
+ valid_from?: string | null;
60435
+ valid_to?: string | null;
60436
+ week?: number | null;
60437
+ year?: number | null;
60438
+ };
60439
+ Update: {
60440
+ connection_id?: string;
60441
+ created_at?: string;
60442
+ currency?: string;
60443
+ id?: string;
60444
+ is_deleted?: boolean;
60445
+ price?: number | null;
60446
+ price_group_id?: string | null;
60447
+ price_group_name?: string | null;
60448
+ price_type?: string;
60449
+ raw?: import("../integrations/supabase/types").Json | null;
60450
+ sales_unit?: string | null;
60451
+ sequence_number?: number;
60452
+ supplier_article_code?: string | null;
60453
+ supply_line_id?: string;
60454
+ synced_at?: string;
60455
+ trade_item_id?: string | null;
60456
+ updated_at?: string;
60457
+ valid_from?: string | null;
60458
+ valid_to?: string | null;
60459
+ week?: number | null;
60460
+ year?: number | null;
60461
+ };
60462
+ Relationships: [{
60463
+ foreignKeyName: "floriday_catalog_prices_cache_connection_id_fkey";
60464
+ columns: ["connection_id"];
60465
+ isOneToOne: false;
60466
+ referencedRelation: "floriday_connections";
60467
+ referencedColumns: ["id"];
60468
+ }];
60469
+ };
58701
60470
  floriday_clock_presales_cache: {
58702
60471
  Row: {
58703
60472
  buyer_organization_id: string | null;
@@ -59613,6 +61382,69 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
59613
61382
  referencedColumns: ["id"];
59614
61383
  }];
59615
61384
  };
61385
+ floriday_link_templates: {
61386
+ Row: {
61387
+ created_at: string;
61388
+ floriday_url_template: string | null;
61389
+ is_active: boolean;
61390
+ label: string;
61391
+ local_url_template: string | null;
61392
+ resource_type: string;
61393
+ updated_at: string;
61394
+ };
61395
+ Insert: {
61396
+ created_at?: string;
61397
+ floriday_url_template?: string | null;
61398
+ is_active?: boolean;
61399
+ label: string;
61400
+ local_url_template?: string | null;
61401
+ resource_type: string;
61402
+ updated_at?: string;
61403
+ };
61404
+ Update: {
61405
+ created_at?: string;
61406
+ floriday_url_template?: string | null;
61407
+ is_active?: boolean;
61408
+ label?: string;
61409
+ local_url_template?: string | null;
61410
+ resource_type?: string;
61411
+ updated_at?: string;
61412
+ };
61413
+ Relationships: [];
61414
+ };
61415
+ floriday_log_retention: {
61416
+ Row: {
61417
+ created_at: string;
61418
+ direction: string | null;
61419
+ id: string;
61420
+ keep_failed_days: number | null;
61421
+ keep_ok_days: number | null;
61422
+ note: string | null;
61423
+ resource_type: string | null;
61424
+ updated_at: string;
61425
+ };
61426
+ Insert: {
61427
+ created_at?: string;
61428
+ direction?: string | null;
61429
+ id?: string;
61430
+ keep_failed_days?: number | null;
61431
+ keep_ok_days?: number | null;
61432
+ note?: string | null;
61433
+ resource_type?: string | null;
61434
+ updated_at?: string;
61435
+ };
61436
+ Update: {
61437
+ created_at?: string;
61438
+ direction?: string | null;
61439
+ id?: string;
61440
+ keep_failed_days?: number | null;
61441
+ keep_ok_days?: number | null;
61442
+ note?: string | null;
61443
+ resource_type?: string | null;
61444
+ updated_at?: string;
61445
+ };
61446
+ Relationships: [];
61447
+ };
59616
61448
  floriday_logistic_labels_cache: {
59617
61449
  Row: {
59618
61450
  byte_size: number | null;
@@ -63237,6 +65069,48 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
63237
65069
  };
63238
65070
  Relationships: [];
63239
65071
  };
65072
+ logistics_pick_data_requests: {
65073
+ Row: {
65074
+ actions: import("../integrations/supabase/types").Json;
65075
+ created_at: string;
65076
+ event_id: string | null;
65077
+ finished_at: string | null;
65078
+ id: string;
65079
+ missing: import("../integrations/supabase/types").Json;
65080
+ order_ref: string;
65081
+ reason: string | null;
65082
+ result: import("../integrations/supabase/types").Json | null;
65083
+ status: string;
65084
+ unit_ref: string | null;
65085
+ };
65086
+ Insert: {
65087
+ actions?: import("../integrations/supabase/types").Json;
65088
+ created_at?: string;
65089
+ event_id?: string | null;
65090
+ finished_at?: string | null;
65091
+ id?: string;
65092
+ missing?: import("../integrations/supabase/types").Json;
65093
+ order_ref: string;
65094
+ reason?: string | null;
65095
+ result?: import("../integrations/supabase/types").Json | null;
65096
+ status?: string;
65097
+ unit_ref?: string | null;
65098
+ };
65099
+ Update: {
65100
+ actions?: import("../integrations/supabase/types").Json;
65101
+ created_at?: string;
65102
+ event_id?: string | null;
65103
+ finished_at?: string | null;
65104
+ id?: string;
65105
+ missing?: import("../integrations/supabase/types").Json;
65106
+ order_ref?: string;
65107
+ reason?: string | null;
65108
+ result?: import("../integrations/supabase/types").Json | null;
65109
+ status?: string;
65110
+ unit_ref?: string | null;
65111
+ };
65112
+ Relationships: [];
65113
+ };
63240
65114
  logistics_pickup_moments: {
63241
65115
  Row: {
63242
65116
  carrier_ref: string | null;
@@ -63696,6 +65570,69 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
63696
65570
  };
63697
65571
  Relationships: [];
63698
65572
  };
65573
+ logistics_slip_shipping_note: {
65574
+ Row: {
65575
+ attempts: number;
65576
+ batch_key: string | null;
65577
+ cart_id: string | null;
65578
+ created_at: string;
65579
+ error: string | null;
65580
+ error_code: string | null;
65581
+ fulfillment_order_id: string | null;
65582
+ id: string;
65583
+ locked_until: string | null;
65584
+ next_attempt_at: string | null;
65585
+ order_id: string | null;
65586
+ order_number: string | null;
65587
+ print_job_id: string | null;
65588
+ printer_id: string | null;
65589
+ retry_class: string | null;
65590
+ slip_job_id: string;
65591
+ status: string;
65592
+ updated_at: string;
65593
+ };
65594
+ Insert: {
65595
+ attempts?: number;
65596
+ batch_key?: string | null;
65597
+ cart_id?: string | null;
65598
+ created_at?: string;
65599
+ error?: string | null;
65600
+ error_code?: string | null;
65601
+ fulfillment_order_id?: string | null;
65602
+ id?: string;
65603
+ locked_until?: string | null;
65604
+ next_attempt_at?: string | null;
65605
+ order_id?: string | null;
65606
+ order_number?: string | null;
65607
+ print_job_id?: string | null;
65608
+ printer_id?: string | null;
65609
+ retry_class?: string | null;
65610
+ slip_job_id: string;
65611
+ status?: string;
65612
+ updated_at?: string;
65613
+ };
65614
+ Update: {
65615
+ attempts?: number;
65616
+ batch_key?: string | null;
65617
+ cart_id?: string | null;
65618
+ created_at?: string;
65619
+ error?: string | null;
65620
+ error_code?: string | null;
65621
+ fulfillment_order_id?: string | null;
65622
+ id?: string;
65623
+ locked_until?: string | null;
65624
+ next_attempt_at?: string | null;
65625
+ order_id?: string | null;
65626
+ order_number?: string | null;
65627
+ print_job_id?: string | null;
65628
+ printer_id?: string | null;
65629
+ retry_class?: string | null;
65630
+ slip_job_id?: string;
65631
+ status?: string;
65632
+ updated_at?: string;
65633
+ };
65634
+ Relationships: [];
65635
+ };
63699
65636
  logistics_staff_planning: {
63700
65637
  Row: {
63701
65638
  created_at: string;
@@ -64047,6 +65984,111 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
64047
65984
  };
64048
65985
  Relationships: [];
64049
65986
  };
65987
+ logistics_trace_events: {
65988
+ Row: {
65989
+ actor: string | null;
65990
+ attempts: number;
65991
+ cart_ref: string | null;
65992
+ created_at: string;
65993
+ db_action: string | null;
65994
+ db_new: import("../integrations/supabase/types").Json | null;
65995
+ db_old: import("../integrations/supabase/types").Json | null;
65996
+ db_record: string | null;
65997
+ db_table: string | null;
65998
+ decision: string | null;
65999
+ duration_ms: number | null;
66000
+ error: string | null;
66001
+ external_action: string | null;
66002
+ external_ref: string | null;
66003
+ external_response: import("../integrations/supabase/types").Json | null;
66004
+ external_status: string | null;
66005
+ external_system: string | null;
66006
+ id: string;
66007
+ input: import("../integrations/supabase/types").Json | null;
66008
+ next_attempt_at: string | null;
66009
+ order_ref: string | null;
66010
+ order_source: string | null;
66011
+ output: import("../integrations/supabase/types").Json | null;
66012
+ phase: string;
66013
+ reads: import("../integrations/supabase/types").Json | null;
66014
+ reason: string | null;
66015
+ rule: string | null;
66016
+ slip_ref: string | null;
66017
+ status: string;
66018
+ step: string;
66019
+ trace_id: string;
66020
+ values_used: import("../integrations/supabase/types").Json | null;
66021
+ };
66022
+ Insert: {
66023
+ actor?: string | null;
66024
+ attempts?: number;
66025
+ cart_ref?: string | null;
66026
+ created_at?: string;
66027
+ db_action?: string | null;
66028
+ db_new?: import("../integrations/supabase/types").Json | null;
66029
+ db_old?: import("../integrations/supabase/types").Json | null;
66030
+ db_record?: string | null;
66031
+ db_table?: string | null;
66032
+ decision?: string | null;
66033
+ duration_ms?: number | null;
66034
+ error?: string | null;
66035
+ external_action?: string | null;
66036
+ external_ref?: string | null;
66037
+ external_response?: import("../integrations/supabase/types").Json | null;
66038
+ external_status?: string | null;
66039
+ external_system?: string | null;
66040
+ id?: string;
66041
+ input?: import("../integrations/supabase/types").Json | null;
66042
+ next_attempt_at?: string | null;
66043
+ order_ref?: string | null;
66044
+ order_source?: string | null;
66045
+ output?: import("../integrations/supabase/types").Json | null;
66046
+ phase: string;
66047
+ reads?: import("../integrations/supabase/types").Json | null;
66048
+ reason?: string | null;
66049
+ rule?: string | null;
66050
+ slip_ref?: string | null;
66051
+ status: string;
66052
+ step: string;
66053
+ trace_id?: string;
66054
+ values_used?: import("../integrations/supabase/types").Json | null;
66055
+ };
66056
+ Update: {
66057
+ actor?: string | null;
66058
+ attempts?: number;
66059
+ cart_ref?: string | null;
66060
+ created_at?: string;
66061
+ db_action?: string | null;
66062
+ db_new?: import("../integrations/supabase/types").Json | null;
66063
+ db_old?: import("../integrations/supabase/types").Json | null;
66064
+ db_record?: string | null;
66065
+ db_table?: string | null;
66066
+ decision?: string | null;
66067
+ duration_ms?: number | null;
66068
+ error?: string | null;
66069
+ external_action?: string | null;
66070
+ external_ref?: string | null;
66071
+ external_response?: import("../integrations/supabase/types").Json | null;
66072
+ external_status?: string | null;
66073
+ external_system?: string | null;
66074
+ id?: string;
66075
+ input?: import("../integrations/supabase/types").Json | null;
66076
+ next_attempt_at?: string | null;
66077
+ order_ref?: string | null;
66078
+ order_source?: string | null;
66079
+ output?: import("../integrations/supabase/types").Json | null;
66080
+ phase?: string;
66081
+ reads?: import("../integrations/supabase/types").Json | null;
66082
+ reason?: string | null;
66083
+ rule?: string | null;
66084
+ slip_ref?: string | null;
66085
+ status?: string;
66086
+ step?: string;
66087
+ trace_id?: string;
66088
+ values_used?: import("../integrations/supabase/types").Json | null;
66089
+ };
66090
+ Relationships: [];
66091
+ };
64050
66092
  logistics_variables: {
64051
66093
  Row: {
64052
66094
  created_at: string;
@@ -74619,6 +76661,15 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
74619
76661
  Args: never;
74620
76662
  Returns: boolean;
74621
76663
  };
76664
+ cancel_open_print_jobs: {
76665
+ Args: {
76666
+ _cutoff: string;
76667
+ };
76668
+ Returns: {
76669
+ extern_job_id: string;
76670
+ id: string;
76671
+ }[];
76672
+ };
74622
76673
  check_offer_product_available_stock: {
74623
76674
  Args: {
74624
76675
  p_campaign_product_id: string;
@@ -76157,6 +78208,12 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
76157
78208
  };
76158
78209
  Returns: string;
76159
78210
  };
78211
+ logistics_cart_checkin_at: {
78212
+ Args: {
78213
+ p_cart_id: string;
78214
+ };
78215
+ Returns: string;
78216
+ };
76160
78217
  logistics_cart_handled: {
76161
78218
  Args: {
76162
78219
  p_cart_index: number;
@@ -76190,10 +78247,22 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
76190
78247
  task_status: string;
76191
78248
  }[];
76192
78249
  };
78250
+ logistics_cart_is_full: {
78251
+ Args: {
78252
+ p_cart_id: string;
78253
+ };
78254
+ Returns: boolean;
78255
+ };
76193
78256
  logistics_cart_layout_method: {
76194
78257
  Args: never;
76195
78258
  Returns: import("../integrations/supabase/types").Json;
76196
78259
  };
78260
+ logistics_cart_order_refs: {
78261
+ Args: {
78262
+ p_cart_id: string;
78263
+ };
78264
+ Returns: string[];
78265
+ };
76197
78266
  logistics_cart_plan_overview: {
76198
78267
  Args: {
76199
78268
  p_days?: number;
@@ -76213,6 +78282,24 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
76213
78282
  };
76214
78283
  Returns: import("../integrations/supabase/types").Json;
76215
78284
  };
78285
+ logistics_cart_plan_status_core: {
78286
+ Args: {
78287
+ p_ref: string;
78288
+ };
78289
+ Returns: import("../integrations/supabase/types").Json;
78290
+ };
78291
+ logistics_cart_release_reason: {
78292
+ Args: {
78293
+ p_cart_id: string;
78294
+ };
78295
+ Returns: string;
78296
+ };
78297
+ logistics_cart_released: {
78298
+ Args: {
78299
+ p_cart_id: string;
78300
+ };
78301
+ Returns: boolean;
78302
+ };
76216
78303
  logistics_cart_seq: {
76217
78304
  Args: {
76218
78305
  p_order_uuid?: string;
@@ -76263,6 +78350,10 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
76263
78350
  unit_ref: string;
76264
78351
  }[];
76265
78352
  };
78353
+ logistics_carts_per_print: {
78354
+ Args: never;
78355
+ Returns: number;
78356
+ };
76266
78357
  logistics_check_order_allowed: {
76267
78358
  Args: {
76268
78359
  p_lines: import("../integrations/supabase/types").Json;
@@ -76366,6 +78457,10 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
76366
78457
  isSetofReturn: false;
76367
78458
  };
76368
78459
  };
78460
+ logistics_cleanup_orphan_print_jobs: {
78461
+ Args: never;
78462
+ Returns: import("../integrations/supabase/types").Json;
78463
+ };
76369
78464
  logistics_complete_task: {
76370
78465
  Args: {
76371
78466
  p_result?: import("../integrations/supabase/types").Json;
@@ -76617,6 +78712,20 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
76617
78712
  };
76618
78713
  Returns: string;
76619
78714
  };
78715
+ logistics_ensure_pick_data: {
78716
+ Args: {
78717
+ p_event_id?: string;
78718
+ p_missing?: import("../integrations/supabase/types").Json;
78719
+ p_ref: string;
78720
+ };
78721
+ Returns: import("../integrations/supabase/types").Json;
78722
+ };
78723
+ logistics_ensure_shipping_notes: {
78724
+ Args: {
78725
+ p_limit?: number;
78726
+ };
78727
+ Returns: import("../integrations/supabase/types").Json;
78728
+ };
76620
78729
  logistics_fail_task: {
76621
78730
  Args: {
76622
78731
  p_error: string;
@@ -76662,6 +78771,10 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
76662
78771
  isSetofReturn: false;
76663
78772
  };
76664
78773
  };
78774
+ logistics_fix_wrong_shipping_notes: {
78775
+ Args: never;
78776
+ Returns: import("../integrations/supabase/types").Json;
78777
+ };
76665
78778
  logistics_floriday_cart_plan: {
76666
78779
  Args: {
76667
78780
  p_order_id: string;
@@ -76689,6 +78802,10 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
76689
78802
  revision: number;
76690
78803
  }[];
76691
78804
  };
78805
+ logistics_floriday_delivery_note_create_enabled: {
78806
+ Args: never;
78807
+ Returns: boolean;
78808
+ };
76692
78809
  logistics_floriday_finish_push: {
76693
78810
  Args: {
76694
78811
  _error?: string;
@@ -76840,6 +78957,12 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
76840
78957
  };
76841
78958
  Returns: number;
76842
78959
  };
78960
+ logistics_merge_partial_carts: {
78961
+ Args: {
78962
+ p_limit?: number;
78963
+ };
78964
+ Returns: import("../integrations/supabase/types").Json;
78965
+ };
76843
78966
  logistics_next_workday_date: {
76844
78967
  Args: {
76845
78968
  p_date: string;
@@ -76926,6 +79049,12 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
76926
79049
  };
76927
79050
  Returns: string;
76928
79051
  };
79052
+ logistics_payload_is_floriday: {
79053
+ Args: {
79054
+ _payload: import("../integrations/supabase/types").Json;
79055
+ };
79056
+ Returns: boolean;
79057
+ };
76929
79058
  logistics_pick_agenda: {
76930
79059
  Args: {
76931
79060
  p_from?: string;
@@ -76954,6 +79083,10 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
76954
79083
  Args: never;
76955
79084
  Returns: import("../integrations/supabase/types").Json;
76956
79085
  };
79086
+ logistics_pick_partial_mode: {
79087
+ Args: never;
79088
+ Returns: string;
79089
+ };
76957
79090
  logistics_pick_start_estimate: {
76958
79091
  Args: {
76959
79092
  p_order: import("../integrations/supabase/types").Json;
@@ -77044,6 +79177,20 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
77044
79177
  Args: never;
77045
79178
  Returns: undefined;
77046
79179
  };
79180
+ logistics_plan_progress: {
79181
+ Args: {
79182
+ p_refs: string[];
79183
+ };
79184
+ Returns: {
79185
+ cart_plan_ready: boolean;
79186
+ cart_plan_reason: string;
79187
+ cart_plan_released: boolean;
79188
+ plan_progress: number;
79189
+ plan_state: string;
79190
+ plan_state_since: string;
79191
+ unit_ref: string;
79192
+ }[];
79193
+ };
77047
79194
  logistics_plan_prune: {
77048
79195
  Args: never;
77049
79196
  Returns: number;
@@ -77065,6 +79212,18 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
77065
79212
  };
77066
79213
  Returns: number;
77067
79214
  };
79215
+ logistics_plan_state_for: {
79216
+ Args: {
79217
+ p_ref: string;
79218
+ };
79219
+ Returns: import("../integrations/supabase/types").Json;
79220
+ };
79221
+ logistics_prepare_pick_documents: {
79222
+ Args: {
79223
+ p_limit?: number;
79224
+ };
79225
+ Returns: import("../integrations/supabase/types").Json;
79226
+ };
77068
79227
  logistics_prune_buffer_member_queue: {
77069
79228
  Args: never;
77070
79229
  Returns: number;
@@ -77105,18 +79264,36 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
77105
79264
  Args: never;
77106
79265
  Returns: import("../integrations/supabase/types").Json;
77107
79266
  };
79267
+ logistics_refresh_pick_queue_status: {
79268
+ Args: {
79269
+ p_ref: string;
79270
+ };
79271
+ Returns: number;
79272
+ };
77108
79273
  logistics_refresh_pickup_moments: {
77109
79274
  Args: {
77110
79275
  p_weeks?: number;
77111
79276
  };
77112
79277
  Returns: import("../integrations/supabase/types").Json;
77113
79278
  };
79279
+ logistics_refresh_plan_state: {
79280
+ Args: {
79281
+ p_limit?: number;
79282
+ };
79283
+ Returns: import("../integrations/supabase/types").Json;
79284
+ };
77114
79285
  logistics_replan_all: {
77115
79286
  Args: {
77116
79287
  p_reason?: string;
77117
79288
  };
77118
79289
  Returns: import("../integrations/supabase/types").Json;
77119
79290
  };
79291
+ logistics_replan_all_force: {
79292
+ Args: {
79293
+ p_reason?: string;
79294
+ };
79295
+ Returns: import("../integrations/supabase/types").Json;
79296
+ };
77120
79297
  logistics_report_delay: {
77121
79298
  Args: {
77122
79299
  p_expected_date?: string;
@@ -77273,6 +79450,74 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
77273
79450
  };
77274
79451
  Returns: import("../integrations/supabase/types").Json;
77275
79452
  };
79453
+ logistics_shipping_note_job_for_slip: {
79454
+ Args: {
79455
+ _slip_job_id: string;
79456
+ };
79457
+ Returns: string;
79458
+ };
79459
+ logistics_shipping_notes_wake_all: {
79460
+ Args: never;
79461
+ Returns: import("../integrations/supabase/types").Json;
79462
+ };
79463
+ logistics_slip_is_floriday: {
79464
+ Args: {
79465
+ _slip_job_id: string;
79466
+ };
79467
+ Returns: boolean;
79468
+ };
79469
+ logistics_slip_note_claim: {
79470
+ Args: {
79471
+ _lease_seconds?: number;
79472
+ _limit?: number;
79473
+ };
79474
+ Returns: {
79475
+ attempts: number;
79476
+ batch_key: string | null;
79477
+ cart_id: string | null;
79478
+ created_at: string;
79479
+ error: string | null;
79480
+ error_code: string | null;
79481
+ fulfillment_order_id: string | null;
79482
+ id: string;
79483
+ locked_until: string | null;
79484
+ next_attempt_at: string | null;
79485
+ order_id: string | null;
79486
+ order_number: string | null;
79487
+ print_job_id: string | null;
79488
+ printer_id: string | null;
79489
+ retry_class: string | null;
79490
+ slip_job_id: string;
79491
+ status: string;
79492
+ updated_at: string;
79493
+ }[];
79494
+ SetofOptions: {
79495
+ from: "*";
79496
+ to: "logistics_slip_shipping_note";
79497
+ isOneToOne: false;
79498
+ isSetofReturn: true;
79499
+ };
79500
+ };
79501
+ logistics_slip_note_finish: {
79502
+ Args: {
79503
+ _error?: string;
79504
+ _error_code?: string;
79505
+ _fulfillment_order_id?: string;
79506
+ _id: string;
79507
+ _ok: boolean;
79508
+ _print_job_id?: string;
79509
+ _status?: string;
79510
+ };
79511
+ Returns: undefined;
79512
+ };
79513
+ logistics_slip_note_keep_waiting: {
79514
+ Args: {
79515
+ _class?: string;
79516
+ _id: string;
79517
+ _reason: string;
79518
+ };
79519
+ Returns: undefined;
79520
+ };
77276
79521
  logistics_sticker_follows_slip: {
77277
79522
  Args: never;
77278
79523
  Returns: boolean;
@@ -77327,6 +79572,40 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
77327
79572
  name: string;
77328
79573
  }[];
77329
79574
  };
79575
+ logistics_trace: {
79576
+ Args: {
79577
+ p: import("../integrations/supabase/types").Json;
79578
+ };
79579
+ Returns: string;
79580
+ };
79581
+ logistics_trace_batch: {
79582
+ Args: {
79583
+ p: import("../integrations/supabase/types").Json;
79584
+ };
79585
+ Returns: number;
79586
+ };
79587
+ logistics_trace_orders: {
79588
+ Args: {
79589
+ p_limit?: number;
79590
+ p_search?: string;
79591
+ p_since?: string;
79592
+ p_status?: string;
79593
+ };
79594
+ Returns: import("../integrations/supabase/types").Json;
79595
+ };
79596
+ logistics_trace_redact: {
79597
+ Args: {
79598
+ p: import("../integrations/supabase/types").Json;
79599
+ };
79600
+ Returns: import("../integrations/supabase/types").Json;
79601
+ };
79602
+ logistics_trace_timeline: {
79603
+ Args: {
79604
+ p_limit?: number;
79605
+ p_order_ref: string;
79606
+ };
79607
+ Returns: import("../integrations/supabase/types").Json;
79608
+ };
77330
79609
  logistics_upsert_task: {
77331
79610
  Args: {
77332
79611
  p_buffer_ref: string;
@@ -78368,6 +80647,10 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
78368
80647
  };
78369
80648
  Returns: undefined;
78370
80649
  };
80650
+ prune_floriday_api_log: {
80651
+ Args: never;
80652
+ Returns: number;
80653
+ };
78371
80654
  quote_create_from_source: {
78372
80655
  Args: {
78373
80656
  _payload?: import("../integrations/supabase/types").Json;
@@ -78801,6 +81084,13 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
78801
81084
  };
78802
81085
  Returns: number;
78803
81086
  };
81087
+ schedule_floriday_catalog_prices_sync: {
81088
+ Args: {
81089
+ p_apikey: string;
81090
+ p_url: string;
81091
+ };
81092
+ Returns: number;
81093
+ };
78804
81094
  schedule_floriday_clock_presales_sync: {
78805
81095
  Args: {
78806
81096
  p_apikey: string;
@@ -79101,6 +81391,10 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
79101
81391
  };
79102
81392
  Returns: undefined;
79103
81393
  };
81394
+ sync_floriday_prices_into_price_groups: {
81395
+ Args: never;
81396
+ Returns: number;
81397
+ };
79104
81398
  sync_layer_stock: {
79105
81399
  Args: {
79106
81400
  p_product_id: string;
@@ -79233,6 +81527,10 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
79233
81527
  Args: never;
79234
81528
  Returns: string;
79235
81529
  };
81530
+ voorraad_cleanup_old_rows: {
81531
+ Args: never;
81532
+ Returns: import("../integrations/supabase/types").Json;
81533
+ };
79236
81534
  wake_print_queue: {
79237
81535
  Args: {
79238
81536
  _min_interval_ms?: number;
@@ -81538,6 +83836,45 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
81538
83836
  };
81539
83837
  Relationships: [];
81540
83838
  };
83839
+ customer_product_stickers: {
83840
+ Row: {
83841
+ created_at: string;
83842
+ customer_key: string;
83843
+ file_name: string;
83844
+ file_path: string;
83845
+ file_size: number | null;
83846
+ id: string;
83847
+ mime_type: string | null;
83848
+ trade_item_key: string;
83849
+ updated_at: string;
83850
+ uploaded_by: string | null;
83851
+ };
83852
+ Insert: {
83853
+ created_at?: string;
83854
+ customer_key: string;
83855
+ file_name: string;
83856
+ file_path: string;
83857
+ file_size?: number | null;
83858
+ id?: string;
83859
+ mime_type?: string | null;
83860
+ trade_item_key: string;
83861
+ updated_at?: string;
83862
+ uploaded_by?: string | null;
83863
+ };
83864
+ Update: {
83865
+ created_at?: string;
83866
+ customer_key?: string;
83867
+ file_name?: string;
83868
+ file_path?: string;
83869
+ file_size?: number | null;
83870
+ id?: string;
83871
+ mime_type?: string | null;
83872
+ trade_item_key?: string;
83873
+ updated_at?: string;
83874
+ uploaded_by?: string | null;
83875
+ };
83876
+ Relationships: [];
83877
+ };
81541
83878
  customer_selected_assortment: {
81542
83879
  Row: {
81543
83880
  article_number: string | null;
@@ -81586,6 +83923,30 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
81586
83923
  referencedColumns: ["id"];
81587
83924
  }];
81588
83925
  };
83926
+ customer_sticker_settings: {
83927
+ Row: {
83928
+ created_at: string;
83929
+ customer_key: string;
83930
+ height_mm: number;
83931
+ updated_at: string;
83932
+ width_mm: number;
83933
+ };
83934
+ Insert: {
83935
+ created_at?: string;
83936
+ customer_key: string;
83937
+ height_mm?: number;
83938
+ updated_at?: string;
83939
+ width_mm?: number;
83940
+ };
83941
+ Update: {
83942
+ created_at?: string;
83943
+ customer_key?: string;
83944
+ height_mm?: number;
83945
+ updated_at?: string;
83946
+ width_mm?: number;
83947
+ };
83948
+ Relationships: [];
83949
+ };
81589
83950
  customer_trade_settings: {
81590
83951
  Row: {
81591
83952
  category: string;
@@ -84916,6 +87277,102 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
84916
87277
  referencedColumns: ["id"];
84917
87278
  }];
84918
87279
  };
87280
+ floriday_api_log: {
87281
+ Row: {
87282
+ action: string | null;
87283
+ caller: string | null;
87284
+ connection_id: string | null;
87285
+ created_at: string;
87286
+ cursor_from: number | null;
87287
+ direction: string;
87288
+ duration_ms: number | null;
87289
+ environment: string | null;
87290
+ error: string | null;
87291
+ floriday_id: string | null;
87292
+ floriday_reference: string | null;
87293
+ http_status: number;
87294
+ id: string;
87295
+ item_count: number | null;
87296
+ kind: string | null;
87297
+ local_id: string | null;
87298
+ local_reference: string | null;
87299
+ method: string;
87300
+ module: string | null;
87301
+ ok: boolean;
87302
+ path: string;
87303
+ request: import("../integrations/supabase/types").Json | null;
87304
+ resource_type: string | null;
87305
+ response: import("../integrations/supabase/types").Json | null;
87306
+ write_log_id: string | null;
87307
+ };
87308
+ Insert: {
87309
+ action?: string | null;
87310
+ caller?: string | null;
87311
+ connection_id?: string | null;
87312
+ created_at?: string;
87313
+ cursor_from?: number | null;
87314
+ direction: string;
87315
+ duration_ms?: number | null;
87316
+ environment?: string | null;
87317
+ error?: string | null;
87318
+ floriday_id?: string | null;
87319
+ floriday_reference?: string | null;
87320
+ http_status?: number;
87321
+ id?: string;
87322
+ item_count?: number | null;
87323
+ kind?: string | null;
87324
+ local_id?: string | null;
87325
+ local_reference?: string | null;
87326
+ method: string;
87327
+ module?: string | null;
87328
+ ok?: boolean;
87329
+ path: string;
87330
+ request?: import("../integrations/supabase/types").Json | null;
87331
+ resource_type?: string | null;
87332
+ response?: import("../integrations/supabase/types").Json | null;
87333
+ write_log_id?: string | null;
87334
+ };
87335
+ Update: {
87336
+ action?: string | null;
87337
+ caller?: string | null;
87338
+ connection_id?: string | null;
87339
+ created_at?: string;
87340
+ cursor_from?: number | null;
87341
+ direction?: string;
87342
+ duration_ms?: number | null;
87343
+ environment?: string | null;
87344
+ error?: string | null;
87345
+ floriday_id?: string | null;
87346
+ floriday_reference?: string | null;
87347
+ http_status?: number;
87348
+ id?: string;
87349
+ item_count?: number | null;
87350
+ kind?: string | null;
87351
+ local_id?: string | null;
87352
+ local_reference?: string | null;
87353
+ method?: string;
87354
+ module?: string | null;
87355
+ ok?: boolean;
87356
+ path?: string;
87357
+ request?: import("../integrations/supabase/types").Json | null;
87358
+ resource_type?: string | null;
87359
+ response?: import("../integrations/supabase/types").Json | null;
87360
+ write_log_id?: string | null;
87361
+ };
87362
+ Relationships: [{
87363
+ foreignKeyName: "floriday_api_log_connection_id_fkey";
87364
+ columns: ["connection_id"];
87365
+ isOneToOne: false;
87366
+ referencedRelation: "floriday_connections";
87367
+ referencedColumns: ["id"];
87368
+ }, {
87369
+ foreignKeyName: "floriday_api_log_write_log_id_fkey";
87370
+ columns: ["write_log_id"];
87371
+ isOneToOne: false;
87372
+ referencedRelation: "floriday_write_log";
87373
+ referencedColumns: ["id"];
87374
+ }];
87375
+ };
84919
87376
  floriday_auction_letters_cache: {
84920
87377
  Row: {
84921
87378
  auction_letter_code: string;
@@ -85123,6 +87580,84 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
85123
87580
  referencedColumns: ["id"];
85124
87581
  }];
85125
87582
  };
87583
+ floriday_catalog_prices_cache: {
87584
+ Row: {
87585
+ connection_id: string;
87586
+ created_at: string;
87587
+ currency: string;
87588
+ id: string;
87589
+ is_deleted: boolean;
87590
+ price: number | null;
87591
+ price_group_id: string | null;
87592
+ price_group_name: string | null;
87593
+ price_type: string;
87594
+ raw: import("../integrations/supabase/types").Json | null;
87595
+ sales_unit: string | null;
87596
+ sequence_number: number;
87597
+ supplier_article_code: string | null;
87598
+ supply_line_id: string;
87599
+ synced_at: string;
87600
+ trade_item_id: string | null;
87601
+ updated_at: string;
87602
+ valid_from: string | null;
87603
+ valid_to: string | null;
87604
+ week: number | null;
87605
+ year: number | null;
87606
+ };
87607
+ Insert: {
87608
+ connection_id: string;
87609
+ created_at?: string;
87610
+ currency?: string;
87611
+ id?: string;
87612
+ is_deleted?: boolean;
87613
+ price?: number | null;
87614
+ price_group_id?: string | null;
87615
+ price_group_name?: string | null;
87616
+ price_type?: string;
87617
+ raw?: import("../integrations/supabase/types").Json | null;
87618
+ sales_unit?: string | null;
87619
+ sequence_number?: number;
87620
+ supplier_article_code?: string | null;
87621
+ supply_line_id: string;
87622
+ synced_at?: string;
87623
+ trade_item_id?: string | null;
87624
+ updated_at?: string;
87625
+ valid_from?: string | null;
87626
+ valid_to?: string | null;
87627
+ week?: number | null;
87628
+ year?: number | null;
87629
+ };
87630
+ Update: {
87631
+ connection_id?: string;
87632
+ created_at?: string;
87633
+ currency?: string;
87634
+ id?: string;
87635
+ is_deleted?: boolean;
87636
+ price?: number | null;
87637
+ price_group_id?: string | null;
87638
+ price_group_name?: string | null;
87639
+ price_type?: string;
87640
+ raw?: import("../integrations/supabase/types").Json | null;
87641
+ sales_unit?: string | null;
87642
+ sequence_number?: number;
87643
+ supplier_article_code?: string | null;
87644
+ supply_line_id?: string;
87645
+ synced_at?: string;
87646
+ trade_item_id?: string | null;
87647
+ updated_at?: string;
87648
+ valid_from?: string | null;
87649
+ valid_to?: string | null;
87650
+ week?: number | null;
87651
+ year?: number | null;
87652
+ };
87653
+ Relationships: [{
87654
+ foreignKeyName: "floriday_catalog_prices_cache_connection_id_fkey";
87655
+ columns: ["connection_id"];
87656
+ isOneToOne: false;
87657
+ referencedRelation: "floriday_connections";
87658
+ referencedColumns: ["id"];
87659
+ }];
87660
+ };
85126
87661
  floriday_clock_presales_cache: {
85127
87662
  Row: {
85128
87663
  buyer_organization_id: string | null;
@@ -86038,6 +88573,69 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
86038
88573
  referencedColumns: ["id"];
86039
88574
  }];
86040
88575
  };
88576
+ floriday_link_templates: {
88577
+ Row: {
88578
+ created_at: string;
88579
+ floriday_url_template: string | null;
88580
+ is_active: boolean;
88581
+ label: string;
88582
+ local_url_template: string | null;
88583
+ resource_type: string;
88584
+ updated_at: string;
88585
+ };
88586
+ Insert: {
88587
+ created_at?: string;
88588
+ floriday_url_template?: string | null;
88589
+ is_active?: boolean;
88590
+ label: string;
88591
+ local_url_template?: string | null;
88592
+ resource_type: string;
88593
+ updated_at?: string;
88594
+ };
88595
+ Update: {
88596
+ created_at?: string;
88597
+ floriday_url_template?: string | null;
88598
+ is_active?: boolean;
88599
+ label?: string;
88600
+ local_url_template?: string | null;
88601
+ resource_type?: string;
88602
+ updated_at?: string;
88603
+ };
88604
+ Relationships: [];
88605
+ };
88606
+ floriday_log_retention: {
88607
+ Row: {
88608
+ created_at: string;
88609
+ direction: string | null;
88610
+ id: string;
88611
+ keep_failed_days: number | null;
88612
+ keep_ok_days: number | null;
88613
+ note: string | null;
88614
+ resource_type: string | null;
88615
+ updated_at: string;
88616
+ };
88617
+ Insert: {
88618
+ created_at?: string;
88619
+ direction?: string | null;
88620
+ id?: string;
88621
+ keep_failed_days?: number | null;
88622
+ keep_ok_days?: number | null;
88623
+ note?: string | null;
88624
+ resource_type?: string | null;
88625
+ updated_at?: string;
88626
+ };
88627
+ Update: {
88628
+ created_at?: string;
88629
+ direction?: string | null;
88630
+ id?: string;
88631
+ keep_failed_days?: number | null;
88632
+ keep_ok_days?: number | null;
88633
+ note?: string | null;
88634
+ resource_type?: string | null;
88635
+ updated_at?: string;
88636
+ };
88637
+ Relationships: [];
88638
+ };
86041
88639
  floriday_logistic_labels_cache: {
86042
88640
  Row: {
86043
88641
  byte_size: number | null;
@@ -89662,6 +92260,48 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
89662
92260
  };
89663
92261
  Relationships: [];
89664
92262
  };
92263
+ logistics_pick_data_requests: {
92264
+ Row: {
92265
+ actions: import("../integrations/supabase/types").Json;
92266
+ created_at: string;
92267
+ event_id: string | null;
92268
+ finished_at: string | null;
92269
+ id: string;
92270
+ missing: import("../integrations/supabase/types").Json;
92271
+ order_ref: string;
92272
+ reason: string | null;
92273
+ result: import("../integrations/supabase/types").Json | null;
92274
+ status: string;
92275
+ unit_ref: string | null;
92276
+ };
92277
+ Insert: {
92278
+ actions?: import("../integrations/supabase/types").Json;
92279
+ created_at?: string;
92280
+ event_id?: string | null;
92281
+ finished_at?: string | null;
92282
+ id?: string;
92283
+ missing?: import("../integrations/supabase/types").Json;
92284
+ order_ref: string;
92285
+ reason?: string | null;
92286
+ result?: import("../integrations/supabase/types").Json | null;
92287
+ status?: string;
92288
+ unit_ref?: string | null;
92289
+ };
92290
+ Update: {
92291
+ actions?: import("../integrations/supabase/types").Json;
92292
+ created_at?: string;
92293
+ event_id?: string | null;
92294
+ finished_at?: string | null;
92295
+ id?: string;
92296
+ missing?: import("../integrations/supabase/types").Json;
92297
+ order_ref?: string;
92298
+ reason?: string | null;
92299
+ result?: import("../integrations/supabase/types").Json | null;
92300
+ status?: string;
92301
+ unit_ref?: string | null;
92302
+ };
92303
+ Relationships: [];
92304
+ };
89665
92305
  logistics_pickup_moments: {
89666
92306
  Row: {
89667
92307
  carrier_ref: string | null;
@@ -90121,6 +92761,69 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
90121
92761
  };
90122
92762
  Relationships: [];
90123
92763
  };
92764
+ logistics_slip_shipping_note: {
92765
+ Row: {
92766
+ attempts: number;
92767
+ batch_key: string | null;
92768
+ cart_id: string | null;
92769
+ created_at: string;
92770
+ error: string | null;
92771
+ error_code: string | null;
92772
+ fulfillment_order_id: string | null;
92773
+ id: string;
92774
+ locked_until: string | null;
92775
+ next_attempt_at: string | null;
92776
+ order_id: string | null;
92777
+ order_number: string | null;
92778
+ print_job_id: string | null;
92779
+ printer_id: string | null;
92780
+ retry_class: string | null;
92781
+ slip_job_id: string;
92782
+ status: string;
92783
+ updated_at: string;
92784
+ };
92785
+ Insert: {
92786
+ attempts?: number;
92787
+ batch_key?: string | null;
92788
+ cart_id?: string | null;
92789
+ created_at?: string;
92790
+ error?: string | null;
92791
+ error_code?: string | null;
92792
+ fulfillment_order_id?: string | null;
92793
+ id?: string;
92794
+ locked_until?: string | null;
92795
+ next_attempt_at?: string | null;
92796
+ order_id?: string | null;
92797
+ order_number?: string | null;
92798
+ print_job_id?: string | null;
92799
+ printer_id?: string | null;
92800
+ retry_class?: string | null;
92801
+ slip_job_id: string;
92802
+ status?: string;
92803
+ updated_at?: string;
92804
+ };
92805
+ Update: {
92806
+ attempts?: number;
92807
+ batch_key?: string | null;
92808
+ cart_id?: string | null;
92809
+ created_at?: string;
92810
+ error?: string | null;
92811
+ error_code?: string | null;
92812
+ fulfillment_order_id?: string | null;
92813
+ id?: string;
92814
+ locked_until?: string | null;
92815
+ next_attempt_at?: string | null;
92816
+ order_id?: string | null;
92817
+ order_number?: string | null;
92818
+ print_job_id?: string | null;
92819
+ printer_id?: string | null;
92820
+ retry_class?: string | null;
92821
+ slip_job_id?: string;
92822
+ status?: string;
92823
+ updated_at?: string;
92824
+ };
92825
+ Relationships: [];
92826
+ };
90124
92827
  logistics_staff_planning: {
90125
92828
  Row: {
90126
92829
  created_at: string;
@@ -90472,6 +93175,111 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
90472
93175
  };
90473
93176
  Relationships: [];
90474
93177
  };
93178
+ logistics_trace_events: {
93179
+ Row: {
93180
+ actor: string | null;
93181
+ attempts: number;
93182
+ cart_ref: string | null;
93183
+ created_at: string;
93184
+ db_action: string | null;
93185
+ db_new: import("../integrations/supabase/types").Json | null;
93186
+ db_old: import("../integrations/supabase/types").Json | null;
93187
+ db_record: string | null;
93188
+ db_table: string | null;
93189
+ decision: string | null;
93190
+ duration_ms: number | null;
93191
+ error: string | null;
93192
+ external_action: string | null;
93193
+ external_ref: string | null;
93194
+ external_response: import("../integrations/supabase/types").Json | null;
93195
+ external_status: string | null;
93196
+ external_system: string | null;
93197
+ id: string;
93198
+ input: import("../integrations/supabase/types").Json | null;
93199
+ next_attempt_at: string | null;
93200
+ order_ref: string | null;
93201
+ order_source: string | null;
93202
+ output: import("../integrations/supabase/types").Json | null;
93203
+ phase: string;
93204
+ reads: import("../integrations/supabase/types").Json | null;
93205
+ reason: string | null;
93206
+ rule: string | null;
93207
+ slip_ref: string | null;
93208
+ status: string;
93209
+ step: string;
93210
+ trace_id: string;
93211
+ values_used: import("../integrations/supabase/types").Json | null;
93212
+ };
93213
+ Insert: {
93214
+ actor?: string | null;
93215
+ attempts?: number;
93216
+ cart_ref?: string | null;
93217
+ created_at?: string;
93218
+ db_action?: string | null;
93219
+ db_new?: import("../integrations/supabase/types").Json | null;
93220
+ db_old?: import("../integrations/supabase/types").Json | null;
93221
+ db_record?: string | null;
93222
+ db_table?: string | null;
93223
+ decision?: string | null;
93224
+ duration_ms?: number | null;
93225
+ error?: string | null;
93226
+ external_action?: string | null;
93227
+ external_ref?: string | null;
93228
+ external_response?: import("../integrations/supabase/types").Json | null;
93229
+ external_status?: string | null;
93230
+ external_system?: string | null;
93231
+ id?: string;
93232
+ input?: import("../integrations/supabase/types").Json | null;
93233
+ next_attempt_at?: string | null;
93234
+ order_ref?: string | null;
93235
+ order_source?: string | null;
93236
+ output?: import("../integrations/supabase/types").Json | null;
93237
+ phase: string;
93238
+ reads?: import("../integrations/supabase/types").Json | null;
93239
+ reason?: string | null;
93240
+ rule?: string | null;
93241
+ slip_ref?: string | null;
93242
+ status: string;
93243
+ step: string;
93244
+ trace_id?: string;
93245
+ values_used?: import("../integrations/supabase/types").Json | null;
93246
+ };
93247
+ Update: {
93248
+ actor?: string | null;
93249
+ attempts?: number;
93250
+ cart_ref?: string | null;
93251
+ created_at?: string;
93252
+ db_action?: string | null;
93253
+ db_new?: import("../integrations/supabase/types").Json | null;
93254
+ db_old?: import("../integrations/supabase/types").Json | null;
93255
+ db_record?: string | null;
93256
+ db_table?: string | null;
93257
+ decision?: string | null;
93258
+ duration_ms?: number | null;
93259
+ error?: string | null;
93260
+ external_action?: string | null;
93261
+ external_ref?: string | null;
93262
+ external_response?: import("../integrations/supabase/types").Json | null;
93263
+ external_status?: string | null;
93264
+ external_system?: string | null;
93265
+ id?: string;
93266
+ input?: import("../integrations/supabase/types").Json | null;
93267
+ next_attempt_at?: string | null;
93268
+ order_ref?: string | null;
93269
+ order_source?: string | null;
93270
+ output?: import("../integrations/supabase/types").Json | null;
93271
+ phase?: string;
93272
+ reads?: import("../integrations/supabase/types").Json | null;
93273
+ reason?: string | null;
93274
+ rule?: string | null;
93275
+ slip_ref?: string | null;
93276
+ status?: string;
93277
+ step?: string;
93278
+ trace_id?: string;
93279
+ values_used?: import("../integrations/supabase/types").Json | null;
93280
+ };
93281
+ Relationships: [];
93282
+ };
90475
93283
  logistics_variables: {
90476
93284
  Row: {
90477
93285
  created_at: string;
@@ -101044,6 +103852,15 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
101044
103852
  Args: never;
101045
103853
  Returns: boolean;
101046
103854
  };
103855
+ cancel_open_print_jobs: {
103856
+ Args: {
103857
+ _cutoff: string;
103858
+ };
103859
+ Returns: {
103860
+ extern_job_id: string;
103861
+ id: string;
103862
+ }[];
103863
+ };
101047
103864
  check_offer_product_available_stock: {
101048
103865
  Args: {
101049
103866
  p_campaign_product_id: string;
@@ -102582,6 +105399,12 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
102582
105399
  };
102583
105400
  Returns: string;
102584
105401
  };
105402
+ logistics_cart_checkin_at: {
105403
+ Args: {
105404
+ p_cart_id: string;
105405
+ };
105406
+ Returns: string;
105407
+ };
102585
105408
  logistics_cart_handled: {
102586
105409
  Args: {
102587
105410
  p_cart_index: number;
@@ -102615,10 +105438,22 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
102615
105438
  task_status: string;
102616
105439
  }[];
102617
105440
  };
105441
+ logistics_cart_is_full: {
105442
+ Args: {
105443
+ p_cart_id: string;
105444
+ };
105445
+ Returns: boolean;
105446
+ };
102618
105447
  logistics_cart_layout_method: {
102619
105448
  Args: never;
102620
105449
  Returns: import("../integrations/supabase/types").Json;
102621
105450
  };
105451
+ logistics_cart_order_refs: {
105452
+ Args: {
105453
+ p_cart_id: string;
105454
+ };
105455
+ Returns: string[];
105456
+ };
102622
105457
  logistics_cart_plan_overview: {
102623
105458
  Args: {
102624
105459
  p_days?: number;
@@ -102638,6 +105473,24 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
102638
105473
  };
102639
105474
  Returns: import("../integrations/supabase/types").Json;
102640
105475
  };
105476
+ logistics_cart_plan_status_core: {
105477
+ Args: {
105478
+ p_ref: string;
105479
+ };
105480
+ Returns: import("../integrations/supabase/types").Json;
105481
+ };
105482
+ logistics_cart_release_reason: {
105483
+ Args: {
105484
+ p_cart_id: string;
105485
+ };
105486
+ Returns: string;
105487
+ };
105488
+ logistics_cart_released: {
105489
+ Args: {
105490
+ p_cart_id: string;
105491
+ };
105492
+ Returns: boolean;
105493
+ };
102641
105494
  logistics_cart_seq: {
102642
105495
  Args: {
102643
105496
  p_order_uuid?: string;
@@ -102688,6 +105541,10 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
102688
105541
  unit_ref: string;
102689
105542
  }[];
102690
105543
  };
105544
+ logistics_carts_per_print: {
105545
+ Args: never;
105546
+ Returns: number;
105547
+ };
102691
105548
  logistics_check_order_allowed: {
102692
105549
  Args: {
102693
105550
  p_lines: import("../integrations/supabase/types").Json;
@@ -102791,6 +105648,10 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
102791
105648
  isSetofReturn: false;
102792
105649
  };
102793
105650
  };
105651
+ logistics_cleanup_orphan_print_jobs: {
105652
+ Args: never;
105653
+ Returns: import("../integrations/supabase/types").Json;
105654
+ };
102794
105655
  logistics_complete_task: {
102795
105656
  Args: {
102796
105657
  p_result?: import("../integrations/supabase/types").Json;
@@ -103042,6 +105903,20 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
103042
105903
  };
103043
105904
  Returns: string;
103044
105905
  };
105906
+ logistics_ensure_pick_data: {
105907
+ Args: {
105908
+ p_event_id?: string;
105909
+ p_missing?: import("../integrations/supabase/types").Json;
105910
+ p_ref: string;
105911
+ };
105912
+ Returns: import("../integrations/supabase/types").Json;
105913
+ };
105914
+ logistics_ensure_shipping_notes: {
105915
+ Args: {
105916
+ p_limit?: number;
105917
+ };
105918
+ Returns: import("../integrations/supabase/types").Json;
105919
+ };
103045
105920
  logistics_fail_task: {
103046
105921
  Args: {
103047
105922
  p_error: string;
@@ -103087,6 +105962,10 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
103087
105962
  isSetofReturn: false;
103088
105963
  };
103089
105964
  };
105965
+ logistics_fix_wrong_shipping_notes: {
105966
+ Args: never;
105967
+ Returns: import("../integrations/supabase/types").Json;
105968
+ };
103090
105969
  logistics_floriday_cart_plan: {
103091
105970
  Args: {
103092
105971
  p_order_id: string;
@@ -103114,6 +105993,10 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
103114
105993
  revision: number;
103115
105994
  }[];
103116
105995
  };
105996
+ logistics_floriday_delivery_note_create_enabled: {
105997
+ Args: never;
105998
+ Returns: boolean;
105999
+ };
103117
106000
  logistics_floriday_finish_push: {
103118
106001
  Args: {
103119
106002
  _error?: string;
@@ -103265,6 +106148,12 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
103265
106148
  };
103266
106149
  Returns: number;
103267
106150
  };
106151
+ logistics_merge_partial_carts: {
106152
+ Args: {
106153
+ p_limit?: number;
106154
+ };
106155
+ Returns: import("../integrations/supabase/types").Json;
106156
+ };
103268
106157
  logistics_next_workday_date: {
103269
106158
  Args: {
103270
106159
  p_date: string;
@@ -103351,6 +106240,12 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
103351
106240
  };
103352
106241
  Returns: string;
103353
106242
  };
106243
+ logistics_payload_is_floriday: {
106244
+ Args: {
106245
+ _payload: import("../integrations/supabase/types").Json;
106246
+ };
106247
+ Returns: boolean;
106248
+ };
103354
106249
  logistics_pick_agenda: {
103355
106250
  Args: {
103356
106251
  p_from?: string;
@@ -103379,6 +106274,10 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
103379
106274
  Args: never;
103380
106275
  Returns: import("../integrations/supabase/types").Json;
103381
106276
  };
106277
+ logistics_pick_partial_mode: {
106278
+ Args: never;
106279
+ Returns: string;
106280
+ };
103382
106281
  logistics_pick_start_estimate: {
103383
106282
  Args: {
103384
106283
  p_order: import("../integrations/supabase/types").Json;
@@ -103469,6 +106368,20 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
103469
106368
  Args: never;
103470
106369
  Returns: undefined;
103471
106370
  };
106371
+ logistics_plan_progress: {
106372
+ Args: {
106373
+ p_refs: string[];
106374
+ };
106375
+ Returns: {
106376
+ cart_plan_ready: boolean;
106377
+ cart_plan_reason: string;
106378
+ cart_plan_released: boolean;
106379
+ plan_progress: number;
106380
+ plan_state: string;
106381
+ plan_state_since: string;
106382
+ unit_ref: string;
106383
+ }[];
106384
+ };
103472
106385
  logistics_plan_prune: {
103473
106386
  Args: never;
103474
106387
  Returns: number;
@@ -103490,6 +106403,18 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
103490
106403
  };
103491
106404
  Returns: number;
103492
106405
  };
106406
+ logistics_plan_state_for: {
106407
+ Args: {
106408
+ p_ref: string;
106409
+ };
106410
+ Returns: import("../integrations/supabase/types").Json;
106411
+ };
106412
+ logistics_prepare_pick_documents: {
106413
+ Args: {
106414
+ p_limit?: number;
106415
+ };
106416
+ Returns: import("../integrations/supabase/types").Json;
106417
+ };
103493
106418
  logistics_prune_buffer_member_queue: {
103494
106419
  Args: never;
103495
106420
  Returns: number;
@@ -103530,18 +106455,36 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
103530
106455
  Args: never;
103531
106456
  Returns: import("../integrations/supabase/types").Json;
103532
106457
  };
106458
+ logistics_refresh_pick_queue_status: {
106459
+ Args: {
106460
+ p_ref: string;
106461
+ };
106462
+ Returns: number;
106463
+ };
103533
106464
  logistics_refresh_pickup_moments: {
103534
106465
  Args: {
103535
106466
  p_weeks?: number;
103536
106467
  };
103537
106468
  Returns: import("../integrations/supabase/types").Json;
103538
106469
  };
106470
+ logistics_refresh_plan_state: {
106471
+ Args: {
106472
+ p_limit?: number;
106473
+ };
106474
+ Returns: import("../integrations/supabase/types").Json;
106475
+ };
103539
106476
  logistics_replan_all: {
103540
106477
  Args: {
103541
106478
  p_reason?: string;
103542
106479
  };
103543
106480
  Returns: import("../integrations/supabase/types").Json;
103544
106481
  };
106482
+ logistics_replan_all_force: {
106483
+ Args: {
106484
+ p_reason?: string;
106485
+ };
106486
+ Returns: import("../integrations/supabase/types").Json;
106487
+ };
103545
106488
  logistics_report_delay: {
103546
106489
  Args: {
103547
106490
  p_expected_date?: string;
@@ -103698,6 +106641,74 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
103698
106641
  };
103699
106642
  Returns: import("../integrations/supabase/types").Json;
103700
106643
  };
106644
+ logistics_shipping_note_job_for_slip: {
106645
+ Args: {
106646
+ _slip_job_id: string;
106647
+ };
106648
+ Returns: string;
106649
+ };
106650
+ logistics_shipping_notes_wake_all: {
106651
+ Args: never;
106652
+ Returns: import("../integrations/supabase/types").Json;
106653
+ };
106654
+ logistics_slip_is_floriday: {
106655
+ Args: {
106656
+ _slip_job_id: string;
106657
+ };
106658
+ Returns: boolean;
106659
+ };
106660
+ logistics_slip_note_claim: {
106661
+ Args: {
106662
+ _lease_seconds?: number;
106663
+ _limit?: number;
106664
+ };
106665
+ Returns: {
106666
+ attempts: number;
106667
+ batch_key: string | null;
106668
+ cart_id: string | null;
106669
+ created_at: string;
106670
+ error: string | null;
106671
+ error_code: string | null;
106672
+ fulfillment_order_id: string | null;
106673
+ id: string;
106674
+ locked_until: string | null;
106675
+ next_attempt_at: string | null;
106676
+ order_id: string | null;
106677
+ order_number: string | null;
106678
+ print_job_id: string | null;
106679
+ printer_id: string | null;
106680
+ retry_class: string | null;
106681
+ slip_job_id: string;
106682
+ status: string;
106683
+ updated_at: string;
106684
+ }[];
106685
+ SetofOptions: {
106686
+ from: "*";
106687
+ to: "logistics_slip_shipping_note";
106688
+ isOneToOne: false;
106689
+ isSetofReturn: true;
106690
+ };
106691
+ };
106692
+ logistics_slip_note_finish: {
106693
+ Args: {
106694
+ _error?: string;
106695
+ _error_code?: string;
106696
+ _fulfillment_order_id?: string;
106697
+ _id: string;
106698
+ _ok: boolean;
106699
+ _print_job_id?: string;
106700
+ _status?: string;
106701
+ };
106702
+ Returns: undefined;
106703
+ };
106704
+ logistics_slip_note_keep_waiting: {
106705
+ Args: {
106706
+ _class?: string;
106707
+ _id: string;
106708
+ _reason: string;
106709
+ };
106710
+ Returns: undefined;
106711
+ };
103701
106712
  logistics_sticker_follows_slip: {
103702
106713
  Args: never;
103703
106714
  Returns: boolean;
@@ -103752,6 +106763,40 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
103752
106763
  name: string;
103753
106764
  }[];
103754
106765
  };
106766
+ logistics_trace: {
106767
+ Args: {
106768
+ p: import("../integrations/supabase/types").Json;
106769
+ };
106770
+ Returns: string;
106771
+ };
106772
+ logistics_trace_batch: {
106773
+ Args: {
106774
+ p: import("../integrations/supabase/types").Json;
106775
+ };
106776
+ Returns: number;
106777
+ };
106778
+ logistics_trace_orders: {
106779
+ Args: {
106780
+ p_limit?: number;
106781
+ p_search?: string;
106782
+ p_since?: string;
106783
+ p_status?: string;
106784
+ };
106785
+ Returns: import("../integrations/supabase/types").Json;
106786
+ };
106787
+ logistics_trace_redact: {
106788
+ Args: {
106789
+ p: import("../integrations/supabase/types").Json;
106790
+ };
106791
+ Returns: import("../integrations/supabase/types").Json;
106792
+ };
106793
+ logistics_trace_timeline: {
106794
+ Args: {
106795
+ p_limit?: number;
106796
+ p_order_ref: string;
106797
+ };
106798
+ Returns: import("../integrations/supabase/types").Json;
106799
+ };
103755
106800
  logistics_upsert_task: {
103756
106801
  Args: {
103757
106802
  p_buffer_ref: string;
@@ -104793,6 +107838,10 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
104793
107838
  };
104794
107839
  Returns: undefined;
104795
107840
  };
107841
+ prune_floriday_api_log: {
107842
+ Args: never;
107843
+ Returns: number;
107844
+ };
104796
107845
  quote_create_from_source: {
104797
107846
  Args: {
104798
107847
  _payload?: import("../integrations/supabase/types").Json;
@@ -105226,6 +108275,13 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
105226
108275
  };
105227
108276
  Returns: number;
105228
108277
  };
108278
+ schedule_floriday_catalog_prices_sync: {
108279
+ Args: {
108280
+ p_apikey: string;
108281
+ p_url: string;
108282
+ };
108283
+ Returns: number;
108284
+ };
105229
108285
  schedule_floriday_clock_presales_sync: {
105230
108286
  Args: {
105231
108287
  p_apikey: string;
@@ -105526,6 +108582,10 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
105526
108582
  };
105527
108583
  Returns: undefined;
105528
108584
  };
108585
+ sync_floriday_prices_into_price_groups: {
108586
+ Args: never;
108587
+ Returns: number;
108588
+ };
105529
108589
  sync_layer_stock: {
105530
108590
  Args: {
105531
108591
  p_product_id: string;
@@ -105658,6 +108718,10 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
105658
108718
  Args: never;
105659
108719
  Returns: string;
105660
108720
  };
108721
+ voorraad_cleanup_old_rows: {
108722
+ Args: never;
108723
+ Returns: import("../integrations/supabase/types").Json;
108724
+ };
105661
108725
  wake_print_queue: {
105662
108726
  Args: {
105663
108727
  _min_interval_ms?: number;
@@ -107977,6 +111041,45 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
107977
111041
  };
107978
111042
  Relationships: [];
107979
111043
  };
111044
+ customer_product_stickers: {
111045
+ Row: {
111046
+ created_at: string;
111047
+ customer_key: string;
111048
+ file_name: string;
111049
+ file_path: string;
111050
+ file_size: number | null;
111051
+ id: string;
111052
+ mime_type: string | null;
111053
+ trade_item_key: string;
111054
+ updated_at: string;
111055
+ uploaded_by: string | null;
111056
+ };
111057
+ Insert: {
111058
+ created_at?: string;
111059
+ customer_key: string;
111060
+ file_name: string;
111061
+ file_path: string;
111062
+ file_size?: number | null;
111063
+ id?: string;
111064
+ mime_type?: string | null;
111065
+ trade_item_key: string;
111066
+ updated_at?: string;
111067
+ uploaded_by?: string | null;
111068
+ };
111069
+ Update: {
111070
+ created_at?: string;
111071
+ customer_key?: string;
111072
+ file_name?: string;
111073
+ file_path?: string;
111074
+ file_size?: number | null;
111075
+ id?: string;
111076
+ mime_type?: string | null;
111077
+ trade_item_key?: string;
111078
+ updated_at?: string;
111079
+ uploaded_by?: string | null;
111080
+ };
111081
+ Relationships: [];
111082
+ };
107980
111083
  customer_selected_assortment: {
107981
111084
  Row: {
107982
111085
  article_number: string | null;
@@ -108025,6 +111128,30 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
108025
111128
  referencedColumns: ["id"];
108026
111129
  }];
108027
111130
  };
111131
+ customer_sticker_settings: {
111132
+ Row: {
111133
+ created_at: string;
111134
+ customer_key: string;
111135
+ height_mm: number;
111136
+ updated_at: string;
111137
+ width_mm: number;
111138
+ };
111139
+ Insert: {
111140
+ created_at?: string;
111141
+ customer_key: string;
111142
+ height_mm?: number;
111143
+ updated_at?: string;
111144
+ width_mm?: number;
111145
+ };
111146
+ Update: {
111147
+ created_at?: string;
111148
+ customer_key?: string;
111149
+ height_mm?: number;
111150
+ updated_at?: string;
111151
+ width_mm?: number;
111152
+ };
111153
+ Relationships: [];
111154
+ };
108028
111155
  customer_trade_settings: {
108029
111156
  Row: {
108030
111157
  category: string;
@@ -111355,6 +114482,102 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
111355
114482
  referencedColumns: ["id"];
111356
114483
  }];
111357
114484
  };
114485
+ floriday_api_log: {
114486
+ Row: {
114487
+ action: string | null;
114488
+ caller: string | null;
114489
+ connection_id: string | null;
114490
+ created_at: string;
114491
+ cursor_from: number | null;
114492
+ direction: string;
114493
+ duration_ms: number | null;
114494
+ environment: string | null;
114495
+ error: string | null;
114496
+ floriday_id: string | null;
114497
+ floriday_reference: string | null;
114498
+ http_status: number;
114499
+ id: string;
114500
+ item_count: number | null;
114501
+ kind: string | null;
114502
+ local_id: string | null;
114503
+ local_reference: string | null;
114504
+ method: string;
114505
+ module: string | null;
114506
+ ok: boolean;
114507
+ path: string;
114508
+ request: import("../integrations/supabase/types").Json | null;
114509
+ resource_type: string | null;
114510
+ response: import("../integrations/supabase/types").Json | null;
114511
+ write_log_id: string | null;
114512
+ };
114513
+ Insert: {
114514
+ action?: string | null;
114515
+ caller?: string | null;
114516
+ connection_id?: string | null;
114517
+ created_at?: string;
114518
+ cursor_from?: number | null;
114519
+ direction: string;
114520
+ duration_ms?: number | null;
114521
+ environment?: string | null;
114522
+ error?: string | null;
114523
+ floriday_id?: string | null;
114524
+ floriday_reference?: string | null;
114525
+ http_status?: number;
114526
+ id?: string;
114527
+ item_count?: number | null;
114528
+ kind?: string | null;
114529
+ local_id?: string | null;
114530
+ local_reference?: string | null;
114531
+ method: string;
114532
+ module?: string | null;
114533
+ ok?: boolean;
114534
+ path: string;
114535
+ request?: import("../integrations/supabase/types").Json | null;
114536
+ resource_type?: string | null;
114537
+ response?: import("../integrations/supabase/types").Json | null;
114538
+ write_log_id?: string | null;
114539
+ };
114540
+ Update: {
114541
+ action?: string | null;
114542
+ caller?: string | null;
114543
+ connection_id?: string | null;
114544
+ created_at?: string;
114545
+ cursor_from?: number | null;
114546
+ direction?: string;
114547
+ duration_ms?: number | null;
114548
+ environment?: string | null;
114549
+ error?: string | null;
114550
+ floriday_id?: string | null;
114551
+ floriday_reference?: string | null;
114552
+ http_status?: number;
114553
+ id?: string;
114554
+ item_count?: number | null;
114555
+ kind?: string | null;
114556
+ local_id?: string | null;
114557
+ local_reference?: string | null;
114558
+ method?: string;
114559
+ module?: string | null;
114560
+ ok?: boolean;
114561
+ path?: string;
114562
+ request?: import("../integrations/supabase/types").Json | null;
114563
+ resource_type?: string | null;
114564
+ response?: import("../integrations/supabase/types").Json | null;
114565
+ write_log_id?: string | null;
114566
+ };
114567
+ Relationships: [{
114568
+ foreignKeyName: "floriday_api_log_connection_id_fkey";
114569
+ columns: ["connection_id"];
114570
+ isOneToOne: false;
114571
+ referencedRelation: "floriday_connections";
114572
+ referencedColumns: ["id"];
114573
+ }, {
114574
+ foreignKeyName: "floriday_api_log_write_log_id_fkey";
114575
+ columns: ["write_log_id"];
114576
+ isOneToOne: false;
114577
+ referencedRelation: "floriday_write_log";
114578
+ referencedColumns: ["id"];
114579
+ }];
114580
+ };
111358
114581
  floriday_auction_letters_cache: {
111359
114582
  Row: {
111360
114583
  auction_letter_code: string;
@@ -111562,6 +114785,84 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
111562
114785
  referencedColumns: ["id"];
111563
114786
  }];
111564
114787
  };
114788
+ floriday_catalog_prices_cache: {
114789
+ Row: {
114790
+ connection_id: string;
114791
+ created_at: string;
114792
+ currency: string;
114793
+ id: string;
114794
+ is_deleted: boolean;
114795
+ price: number | null;
114796
+ price_group_id: string | null;
114797
+ price_group_name: string | null;
114798
+ price_type: string;
114799
+ raw: import("../integrations/supabase/types").Json | null;
114800
+ sales_unit: string | null;
114801
+ sequence_number: number;
114802
+ supplier_article_code: string | null;
114803
+ supply_line_id: string;
114804
+ synced_at: string;
114805
+ trade_item_id: string | null;
114806
+ updated_at: string;
114807
+ valid_from: string | null;
114808
+ valid_to: string | null;
114809
+ week: number | null;
114810
+ year: number | null;
114811
+ };
114812
+ Insert: {
114813
+ connection_id: string;
114814
+ created_at?: string;
114815
+ currency?: string;
114816
+ id?: string;
114817
+ is_deleted?: boolean;
114818
+ price?: number | null;
114819
+ price_group_id?: string | null;
114820
+ price_group_name?: string | null;
114821
+ price_type?: string;
114822
+ raw?: import("../integrations/supabase/types").Json | null;
114823
+ sales_unit?: string | null;
114824
+ sequence_number?: number;
114825
+ supplier_article_code?: string | null;
114826
+ supply_line_id: string;
114827
+ synced_at?: string;
114828
+ trade_item_id?: string | null;
114829
+ updated_at?: string;
114830
+ valid_from?: string | null;
114831
+ valid_to?: string | null;
114832
+ week?: number | null;
114833
+ year?: number | null;
114834
+ };
114835
+ Update: {
114836
+ connection_id?: string;
114837
+ created_at?: string;
114838
+ currency?: string;
114839
+ id?: string;
114840
+ is_deleted?: boolean;
114841
+ price?: number | null;
114842
+ price_group_id?: string | null;
114843
+ price_group_name?: string | null;
114844
+ price_type?: string;
114845
+ raw?: import("../integrations/supabase/types").Json | null;
114846
+ sales_unit?: string | null;
114847
+ sequence_number?: number;
114848
+ supplier_article_code?: string | null;
114849
+ supply_line_id?: string;
114850
+ synced_at?: string;
114851
+ trade_item_id?: string | null;
114852
+ updated_at?: string;
114853
+ valid_from?: string | null;
114854
+ valid_to?: string | null;
114855
+ week?: number | null;
114856
+ year?: number | null;
114857
+ };
114858
+ Relationships: [{
114859
+ foreignKeyName: "floriday_catalog_prices_cache_connection_id_fkey";
114860
+ columns: ["connection_id"];
114861
+ isOneToOne: false;
114862
+ referencedRelation: "floriday_connections";
114863
+ referencedColumns: ["id"];
114864
+ }];
114865
+ };
111565
114866
  floriday_clock_presales_cache: {
111566
114867
  Row: {
111567
114868
  buyer_organization_id: string | null;
@@ -112477,6 +115778,69 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
112477
115778
  referencedColumns: ["id"];
112478
115779
  }];
112479
115780
  };
115781
+ floriday_link_templates: {
115782
+ Row: {
115783
+ created_at: string;
115784
+ floriday_url_template: string | null;
115785
+ is_active: boolean;
115786
+ label: string;
115787
+ local_url_template: string | null;
115788
+ resource_type: string;
115789
+ updated_at: string;
115790
+ };
115791
+ Insert: {
115792
+ created_at?: string;
115793
+ floriday_url_template?: string | null;
115794
+ is_active?: boolean;
115795
+ label: string;
115796
+ local_url_template?: string | null;
115797
+ resource_type: string;
115798
+ updated_at?: string;
115799
+ };
115800
+ Update: {
115801
+ created_at?: string;
115802
+ floriday_url_template?: string | null;
115803
+ is_active?: boolean;
115804
+ label?: string;
115805
+ local_url_template?: string | null;
115806
+ resource_type?: string;
115807
+ updated_at?: string;
115808
+ };
115809
+ Relationships: [];
115810
+ };
115811
+ floriday_log_retention: {
115812
+ Row: {
115813
+ created_at: string;
115814
+ direction: string | null;
115815
+ id: string;
115816
+ keep_failed_days: number | null;
115817
+ keep_ok_days: number | null;
115818
+ note: string | null;
115819
+ resource_type: string | null;
115820
+ updated_at: string;
115821
+ };
115822
+ Insert: {
115823
+ created_at?: string;
115824
+ direction?: string | null;
115825
+ id?: string;
115826
+ keep_failed_days?: number | null;
115827
+ keep_ok_days?: number | null;
115828
+ note?: string | null;
115829
+ resource_type?: string | null;
115830
+ updated_at?: string;
115831
+ };
115832
+ Update: {
115833
+ created_at?: string;
115834
+ direction?: string | null;
115835
+ id?: string;
115836
+ keep_failed_days?: number | null;
115837
+ keep_ok_days?: number | null;
115838
+ note?: string | null;
115839
+ resource_type?: string | null;
115840
+ updated_at?: string;
115841
+ };
115842
+ Relationships: [];
115843
+ };
112480
115844
  floriday_logistic_labels_cache: {
112481
115845
  Row: {
112482
115846
  byte_size: number | null;
@@ -116101,6 +119465,48 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
116101
119465
  };
116102
119466
  Relationships: [];
116103
119467
  };
119468
+ logistics_pick_data_requests: {
119469
+ Row: {
119470
+ actions: import("../integrations/supabase/types").Json;
119471
+ created_at: string;
119472
+ event_id: string | null;
119473
+ finished_at: string | null;
119474
+ id: string;
119475
+ missing: import("../integrations/supabase/types").Json;
119476
+ order_ref: string;
119477
+ reason: string | null;
119478
+ result: import("../integrations/supabase/types").Json | null;
119479
+ status: string;
119480
+ unit_ref: string | null;
119481
+ };
119482
+ Insert: {
119483
+ actions?: import("../integrations/supabase/types").Json;
119484
+ created_at?: string;
119485
+ event_id?: string | null;
119486
+ finished_at?: string | null;
119487
+ id?: string;
119488
+ missing?: import("../integrations/supabase/types").Json;
119489
+ order_ref: string;
119490
+ reason?: string | null;
119491
+ result?: import("../integrations/supabase/types").Json | null;
119492
+ status?: string;
119493
+ unit_ref?: string | null;
119494
+ };
119495
+ Update: {
119496
+ actions?: import("../integrations/supabase/types").Json;
119497
+ created_at?: string;
119498
+ event_id?: string | null;
119499
+ finished_at?: string | null;
119500
+ id?: string;
119501
+ missing?: import("../integrations/supabase/types").Json;
119502
+ order_ref?: string;
119503
+ reason?: string | null;
119504
+ result?: import("../integrations/supabase/types").Json | null;
119505
+ status?: string;
119506
+ unit_ref?: string | null;
119507
+ };
119508
+ Relationships: [];
119509
+ };
116104
119510
  logistics_pickup_moments: {
116105
119511
  Row: {
116106
119512
  carrier_ref: string | null;
@@ -116560,6 +119966,69 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
116560
119966
  };
116561
119967
  Relationships: [];
116562
119968
  };
119969
+ logistics_slip_shipping_note: {
119970
+ Row: {
119971
+ attempts: number;
119972
+ batch_key: string | null;
119973
+ cart_id: string | null;
119974
+ created_at: string;
119975
+ error: string | null;
119976
+ error_code: string | null;
119977
+ fulfillment_order_id: string | null;
119978
+ id: string;
119979
+ locked_until: string | null;
119980
+ next_attempt_at: string | null;
119981
+ order_id: string | null;
119982
+ order_number: string | null;
119983
+ print_job_id: string | null;
119984
+ printer_id: string | null;
119985
+ retry_class: string | null;
119986
+ slip_job_id: string;
119987
+ status: string;
119988
+ updated_at: string;
119989
+ };
119990
+ Insert: {
119991
+ attempts?: number;
119992
+ batch_key?: string | null;
119993
+ cart_id?: string | null;
119994
+ created_at?: string;
119995
+ error?: string | null;
119996
+ error_code?: string | null;
119997
+ fulfillment_order_id?: string | null;
119998
+ id?: string;
119999
+ locked_until?: string | null;
120000
+ next_attempt_at?: string | null;
120001
+ order_id?: string | null;
120002
+ order_number?: string | null;
120003
+ print_job_id?: string | null;
120004
+ printer_id?: string | null;
120005
+ retry_class?: string | null;
120006
+ slip_job_id: string;
120007
+ status?: string;
120008
+ updated_at?: string;
120009
+ };
120010
+ Update: {
120011
+ attempts?: number;
120012
+ batch_key?: string | null;
120013
+ cart_id?: string | null;
120014
+ created_at?: string;
120015
+ error?: string | null;
120016
+ error_code?: string | null;
120017
+ fulfillment_order_id?: string | null;
120018
+ id?: string;
120019
+ locked_until?: string | null;
120020
+ next_attempt_at?: string | null;
120021
+ order_id?: string | null;
120022
+ order_number?: string | null;
120023
+ print_job_id?: string | null;
120024
+ printer_id?: string | null;
120025
+ retry_class?: string | null;
120026
+ slip_job_id?: string;
120027
+ status?: string;
120028
+ updated_at?: string;
120029
+ };
120030
+ Relationships: [];
120031
+ };
116563
120032
  logistics_staff_planning: {
116564
120033
  Row: {
116565
120034
  created_at: string;
@@ -116911,6 +120380,111 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
116911
120380
  };
116912
120381
  Relationships: [];
116913
120382
  };
120383
+ logistics_trace_events: {
120384
+ Row: {
120385
+ actor: string | null;
120386
+ attempts: number;
120387
+ cart_ref: string | null;
120388
+ created_at: string;
120389
+ db_action: string | null;
120390
+ db_new: import("../integrations/supabase/types").Json | null;
120391
+ db_old: import("../integrations/supabase/types").Json | null;
120392
+ db_record: string | null;
120393
+ db_table: string | null;
120394
+ decision: string | null;
120395
+ duration_ms: number | null;
120396
+ error: string | null;
120397
+ external_action: string | null;
120398
+ external_ref: string | null;
120399
+ external_response: import("../integrations/supabase/types").Json | null;
120400
+ external_status: string | null;
120401
+ external_system: string | null;
120402
+ id: string;
120403
+ input: import("../integrations/supabase/types").Json | null;
120404
+ next_attempt_at: string | null;
120405
+ order_ref: string | null;
120406
+ order_source: string | null;
120407
+ output: import("../integrations/supabase/types").Json | null;
120408
+ phase: string;
120409
+ reads: import("../integrations/supabase/types").Json | null;
120410
+ reason: string | null;
120411
+ rule: string | null;
120412
+ slip_ref: string | null;
120413
+ status: string;
120414
+ step: string;
120415
+ trace_id: string;
120416
+ values_used: import("../integrations/supabase/types").Json | null;
120417
+ };
120418
+ Insert: {
120419
+ actor?: string | null;
120420
+ attempts?: number;
120421
+ cart_ref?: string | null;
120422
+ created_at?: string;
120423
+ db_action?: string | null;
120424
+ db_new?: import("../integrations/supabase/types").Json | null;
120425
+ db_old?: import("../integrations/supabase/types").Json | null;
120426
+ db_record?: string | null;
120427
+ db_table?: string | null;
120428
+ decision?: string | null;
120429
+ duration_ms?: number | null;
120430
+ error?: string | null;
120431
+ external_action?: string | null;
120432
+ external_ref?: string | null;
120433
+ external_response?: import("../integrations/supabase/types").Json | null;
120434
+ external_status?: string | null;
120435
+ external_system?: string | null;
120436
+ id?: string;
120437
+ input?: import("../integrations/supabase/types").Json | null;
120438
+ next_attempt_at?: string | null;
120439
+ order_ref?: string | null;
120440
+ order_source?: string | null;
120441
+ output?: import("../integrations/supabase/types").Json | null;
120442
+ phase: string;
120443
+ reads?: import("../integrations/supabase/types").Json | null;
120444
+ reason?: string | null;
120445
+ rule?: string | null;
120446
+ slip_ref?: string | null;
120447
+ status: string;
120448
+ step: string;
120449
+ trace_id?: string;
120450
+ values_used?: import("../integrations/supabase/types").Json | null;
120451
+ };
120452
+ Update: {
120453
+ actor?: string | null;
120454
+ attempts?: number;
120455
+ cart_ref?: string | null;
120456
+ created_at?: string;
120457
+ db_action?: string | null;
120458
+ db_new?: import("../integrations/supabase/types").Json | null;
120459
+ db_old?: import("../integrations/supabase/types").Json | null;
120460
+ db_record?: string | null;
120461
+ db_table?: string | null;
120462
+ decision?: string | null;
120463
+ duration_ms?: number | null;
120464
+ error?: string | null;
120465
+ external_action?: string | null;
120466
+ external_ref?: string | null;
120467
+ external_response?: import("../integrations/supabase/types").Json | null;
120468
+ external_status?: string | null;
120469
+ external_system?: string | null;
120470
+ id?: string;
120471
+ input?: import("../integrations/supabase/types").Json | null;
120472
+ next_attempt_at?: string | null;
120473
+ order_ref?: string | null;
120474
+ order_source?: string | null;
120475
+ output?: import("../integrations/supabase/types").Json | null;
120476
+ phase?: string;
120477
+ reads?: import("../integrations/supabase/types").Json | null;
120478
+ reason?: string | null;
120479
+ rule?: string | null;
120480
+ slip_ref?: string | null;
120481
+ status?: string;
120482
+ step?: string;
120483
+ trace_id?: string;
120484
+ values_used?: import("../integrations/supabase/types").Json | null;
120485
+ };
120486
+ Relationships: [];
120487
+ };
116914
120488
  logistics_variables: {
116915
120489
  Row: {
116916
120490
  created_at: string;
@@ -127483,6 +131057,15 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
127483
131057
  Args: never;
127484
131058
  Returns: boolean;
127485
131059
  };
131060
+ cancel_open_print_jobs: {
131061
+ Args: {
131062
+ _cutoff: string;
131063
+ };
131064
+ Returns: {
131065
+ extern_job_id: string;
131066
+ id: string;
131067
+ }[];
131068
+ };
127486
131069
  check_offer_product_available_stock: {
127487
131070
  Args: {
127488
131071
  p_campaign_product_id: string;
@@ -129021,6 +132604,12 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
129021
132604
  };
129022
132605
  Returns: string;
129023
132606
  };
132607
+ logistics_cart_checkin_at: {
132608
+ Args: {
132609
+ p_cart_id: string;
132610
+ };
132611
+ Returns: string;
132612
+ };
129024
132613
  logistics_cart_handled: {
129025
132614
  Args: {
129026
132615
  p_cart_index: number;
@@ -129054,10 +132643,22 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
129054
132643
  task_status: string;
129055
132644
  }[];
129056
132645
  };
132646
+ logistics_cart_is_full: {
132647
+ Args: {
132648
+ p_cart_id: string;
132649
+ };
132650
+ Returns: boolean;
132651
+ };
129057
132652
  logistics_cart_layout_method: {
129058
132653
  Args: never;
129059
132654
  Returns: import("../integrations/supabase/types").Json;
129060
132655
  };
132656
+ logistics_cart_order_refs: {
132657
+ Args: {
132658
+ p_cart_id: string;
132659
+ };
132660
+ Returns: string[];
132661
+ };
129061
132662
  logistics_cart_plan_overview: {
129062
132663
  Args: {
129063
132664
  p_days?: number;
@@ -129077,6 +132678,24 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
129077
132678
  };
129078
132679
  Returns: import("../integrations/supabase/types").Json;
129079
132680
  };
132681
+ logistics_cart_plan_status_core: {
132682
+ Args: {
132683
+ p_ref: string;
132684
+ };
132685
+ Returns: import("../integrations/supabase/types").Json;
132686
+ };
132687
+ logistics_cart_release_reason: {
132688
+ Args: {
132689
+ p_cart_id: string;
132690
+ };
132691
+ Returns: string;
132692
+ };
132693
+ logistics_cart_released: {
132694
+ Args: {
132695
+ p_cart_id: string;
132696
+ };
132697
+ Returns: boolean;
132698
+ };
129080
132699
  logistics_cart_seq: {
129081
132700
  Args: {
129082
132701
  p_order_uuid?: string;
@@ -129127,6 +132746,10 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
129127
132746
  unit_ref: string;
129128
132747
  }[];
129129
132748
  };
132749
+ logistics_carts_per_print: {
132750
+ Args: never;
132751
+ Returns: number;
132752
+ };
129130
132753
  logistics_check_order_allowed: {
129131
132754
  Args: {
129132
132755
  p_lines: import("../integrations/supabase/types").Json;
@@ -129230,6 +132853,10 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
129230
132853
  isSetofReturn: false;
129231
132854
  };
129232
132855
  };
132856
+ logistics_cleanup_orphan_print_jobs: {
132857
+ Args: never;
132858
+ Returns: import("../integrations/supabase/types").Json;
132859
+ };
129233
132860
  logistics_complete_task: {
129234
132861
  Args: {
129235
132862
  p_result?: import("../integrations/supabase/types").Json;
@@ -129481,6 +133108,20 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
129481
133108
  };
129482
133109
  Returns: string;
129483
133110
  };
133111
+ logistics_ensure_pick_data: {
133112
+ Args: {
133113
+ p_event_id?: string;
133114
+ p_missing?: import("../integrations/supabase/types").Json;
133115
+ p_ref: string;
133116
+ };
133117
+ Returns: import("../integrations/supabase/types").Json;
133118
+ };
133119
+ logistics_ensure_shipping_notes: {
133120
+ Args: {
133121
+ p_limit?: number;
133122
+ };
133123
+ Returns: import("../integrations/supabase/types").Json;
133124
+ };
129484
133125
  logistics_fail_task: {
129485
133126
  Args: {
129486
133127
  p_error: string;
@@ -129526,6 +133167,10 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
129526
133167
  isSetofReturn: false;
129527
133168
  };
129528
133169
  };
133170
+ logistics_fix_wrong_shipping_notes: {
133171
+ Args: never;
133172
+ Returns: import("../integrations/supabase/types").Json;
133173
+ };
129529
133174
  logistics_floriday_cart_plan: {
129530
133175
  Args: {
129531
133176
  p_order_id: string;
@@ -129553,6 +133198,10 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
129553
133198
  revision: number;
129554
133199
  }[];
129555
133200
  };
133201
+ logistics_floriday_delivery_note_create_enabled: {
133202
+ Args: never;
133203
+ Returns: boolean;
133204
+ };
129556
133205
  logistics_floriday_finish_push: {
129557
133206
  Args: {
129558
133207
  _error?: string;
@@ -129704,6 +133353,12 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
129704
133353
  };
129705
133354
  Returns: number;
129706
133355
  };
133356
+ logistics_merge_partial_carts: {
133357
+ Args: {
133358
+ p_limit?: number;
133359
+ };
133360
+ Returns: import("../integrations/supabase/types").Json;
133361
+ };
129707
133362
  logistics_next_workday_date: {
129708
133363
  Args: {
129709
133364
  p_date: string;
@@ -129790,6 +133445,12 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
129790
133445
  };
129791
133446
  Returns: string;
129792
133447
  };
133448
+ logistics_payload_is_floriday: {
133449
+ Args: {
133450
+ _payload: import("../integrations/supabase/types").Json;
133451
+ };
133452
+ Returns: boolean;
133453
+ };
129793
133454
  logistics_pick_agenda: {
129794
133455
  Args: {
129795
133456
  p_from?: string;
@@ -129818,6 +133479,10 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
129818
133479
  Args: never;
129819
133480
  Returns: import("../integrations/supabase/types").Json;
129820
133481
  };
133482
+ logistics_pick_partial_mode: {
133483
+ Args: never;
133484
+ Returns: string;
133485
+ };
129821
133486
  logistics_pick_start_estimate: {
129822
133487
  Args: {
129823
133488
  p_order: import("../integrations/supabase/types").Json;
@@ -129908,6 +133573,20 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
129908
133573
  Args: never;
129909
133574
  Returns: undefined;
129910
133575
  };
133576
+ logistics_plan_progress: {
133577
+ Args: {
133578
+ p_refs: string[];
133579
+ };
133580
+ Returns: {
133581
+ cart_plan_ready: boolean;
133582
+ cart_plan_reason: string;
133583
+ cart_plan_released: boolean;
133584
+ plan_progress: number;
133585
+ plan_state: string;
133586
+ plan_state_since: string;
133587
+ unit_ref: string;
133588
+ }[];
133589
+ };
129911
133590
  logistics_plan_prune: {
129912
133591
  Args: never;
129913
133592
  Returns: number;
@@ -129929,6 +133608,18 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
129929
133608
  };
129930
133609
  Returns: number;
129931
133610
  };
133611
+ logistics_plan_state_for: {
133612
+ Args: {
133613
+ p_ref: string;
133614
+ };
133615
+ Returns: import("../integrations/supabase/types").Json;
133616
+ };
133617
+ logistics_prepare_pick_documents: {
133618
+ Args: {
133619
+ p_limit?: number;
133620
+ };
133621
+ Returns: import("../integrations/supabase/types").Json;
133622
+ };
129932
133623
  logistics_prune_buffer_member_queue: {
129933
133624
  Args: never;
129934
133625
  Returns: number;
@@ -129969,18 +133660,36 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
129969
133660
  Args: never;
129970
133661
  Returns: import("../integrations/supabase/types").Json;
129971
133662
  };
133663
+ logistics_refresh_pick_queue_status: {
133664
+ Args: {
133665
+ p_ref: string;
133666
+ };
133667
+ Returns: number;
133668
+ };
129972
133669
  logistics_refresh_pickup_moments: {
129973
133670
  Args: {
129974
133671
  p_weeks?: number;
129975
133672
  };
129976
133673
  Returns: import("../integrations/supabase/types").Json;
129977
133674
  };
133675
+ logistics_refresh_plan_state: {
133676
+ Args: {
133677
+ p_limit?: number;
133678
+ };
133679
+ Returns: import("../integrations/supabase/types").Json;
133680
+ };
129978
133681
  logistics_replan_all: {
129979
133682
  Args: {
129980
133683
  p_reason?: string;
129981
133684
  };
129982
133685
  Returns: import("../integrations/supabase/types").Json;
129983
133686
  };
133687
+ logistics_replan_all_force: {
133688
+ Args: {
133689
+ p_reason?: string;
133690
+ };
133691
+ Returns: import("../integrations/supabase/types").Json;
133692
+ };
129984
133693
  logistics_report_delay: {
129985
133694
  Args: {
129986
133695
  p_expected_date?: string;
@@ -130137,6 +133846,74 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
130137
133846
  };
130138
133847
  Returns: import("../integrations/supabase/types").Json;
130139
133848
  };
133849
+ logistics_shipping_note_job_for_slip: {
133850
+ Args: {
133851
+ _slip_job_id: string;
133852
+ };
133853
+ Returns: string;
133854
+ };
133855
+ logistics_shipping_notes_wake_all: {
133856
+ Args: never;
133857
+ Returns: import("../integrations/supabase/types").Json;
133858
+ };
133859
+ logistics_slip_is_floriday: {
133860
+ Args: {
133861
+ _slip_job_id: string;
133862
+ };
133863
+ Returns: boolean;
133864
+ };
133865
+ logistics_slip_note_claim: {
133866
+ Args: {
133867
+ _lease_seconds?: number;
133868
+ _limit?: number;
133869
+ };
133870
+ Returns: {
133871
+ attempts: number;
133872
+ batch_key: string | null;
133873
+ cart_id: string | null;
133874
+ created_at: string;
133875
+ error: string | null;
133876
+ error_code: string | null;
133877
+ fulfillment_order_id: string | null;
133878
+ id: string;
133879
+ locked_until: string | null;
133880
+ next_attempt_at: string | null;
133881
+ order_id: string | null;
133882
+ order_number: string | null;
133883
+ print_job_id: string | null;
133884
+ printer_id: string | null;
133885
+ retry_class: string | null;
133886
+ slip_job_id: string;
133887
+ status: string;
133888
+ updated_at: string;
133889
+ }[];
133890
+ SetofOptions: {
133891
+ from: "*";
133892
+ to: "logistics_slip_shipping_note";
133893
+ isOneToOne: false;
133894
+ isSetofReturn: true;
133895
+ };
133896
+ };
133897
+ logistics_slip_note_finish: {
133898
+ Args: {
133899
+ _error?: string;
133900
+ _error_code?: string;
133901
+ _fulfillment_order_id?: string;
133902
+ _id: string;
133903
+ _ok: boolean;
133904
+ _print_job_id?: string;
133905
+ _status?: string;
133906
+ };
133907
+ Returns: undefined;
133908
+ };
133909
+ logistics_slip_note_keep_waiting: {
133910
+ Args: {
133911
+ _class?: string;
133912
+ _id: string;
133913
+ _reason: string;
133914
+ };
133915
+ Returns: undefined;
133916
+ };
130140
133917
  logistics_sticker_follows_slip: {
130141
133918
  Args: never;
130142
133919
  Returns: boolean;
@@ -130191,6 +133968,40 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
130191
133968
  name: string;
130192
133969
  }[];
130193
133970
  };
133971
+ logistics_trace: {
133972
+ Args: {
133973
+ p: import("../integrations/supabase/types").Json;
133974
+ };
133975
+ Returns: string;
133976
+ };
133977
+ logistics_trace_batch: {
133978
+ Args: {
133979
+ p: import("../integrations/supabase/types").Json;
133980
+ };
133981
+ Returns: number;
133982
+ };
133983
+ logistics_trace_orders: {
133984
+ Args: {
133985
+ p_limit?: number;
133986
+ p_search?: string;
133987
+ p_since?: string;
133988
+ p_status?: string;
133989
+ };
133990
+ Returns: import("../integrations/supabase/types").Json;
133991
+ };
133992
+ logistics_trace_redact: {
133993
+ Args: {
133994
+ p: import("../integrations/supabase/types").Json;
133995
+ };
133996
+ Returns: import("../integrations/supabase/types").Json;
133997
+ };
133998
+ logistics_trace_timeline: {
133999
+ Args: {
134000
+ p_limit?: number;
134001
+ p_order_ref: string;
134002
+ };
134003
+ Returns: import("../integrations/supabase/types").Json;
134004
+ };
130194
134005
  logistics_upsert_task: {
130195
134006
  Args: {
130196
134007
  p_buffer_ref: string;
@@ -131232,6 +135043,10 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
131232
135043
  };
131233
135044
  Returns: undefined;
131234
135045
  };
135046
+ prune_floriday_api_log: {
135047
+ Args: never;
135048
+ Returns: number;
135049
+ };
131235
135050
  quote_create_from_source: {
131236
135051
  Args: {
131237
135052
  _payload?: import("../integrations/supabase/types").Json;
@@ -131665,6 +135480,13 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
131665
135480
  };
131666
135481
  Returns: number;
131667
135482
  };
135483
+ schedule_floriday_catalog_prices_sync: {
135484
+ Args: {
135485
+ p_apikey: string;
135486
+ p_url: string;
135487
+ };
135488
+ Returns: number;
135489
+ };
131668
135490
  schedule_floriday_clock_presales_sync: {
131669
135491
  Args: {
131670
135492
  p_apikey: string;
@@ -131965,6 +135787,10 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
131965
135787
  };
131966
135788
  Returns: undefined;
131967
135789
  };
135790
+ sync_floriday_prices_into_price_groups: {
135791
+ Args: never;
135792
+ Returns: number;
135793
+ };
131968
135794
  sync_layer_stock: {
131969
135795
  Args: {
131970
135796
  p_product_id: string;
@@ -132097,6 +135923,10 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
132097
135923
  Args: never;
132098
135924
  Returns: string;
132099
135925
  };
135926
+ voorraad_cleanup_old_rows: {
135927
+ Args: never;
135928
+ Returns: import("../integrations/supabase/types").Json;
135929
+ };
132100
135930
  wake_print_queue: {
132101
135931
  Args: {
132102
135932
  _min_interval_ms?: number;