@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
@@ -92,7 +92,9 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
92
92
  last_synced_at?: string | null;
93
93
  provider: string;
94
94
  selected_calendars?: import("../integrations/supabase/types").Json;
95
- status?: string;
95
+ status
96
+ /** Haalt alle orders van dezelfde buffer als de gegeven order. */
97
+ ?: string;
96
98
  sync_mode?: string;
97
99
  updated_at?: string;
98
100
  user_id: string;
@@ -2239,6 +2241,45 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
2239
2241
  };
2240
2242
  Relationships: [];
2241
2243
  };
2244
+ customer_product_stickers: {
2245
+ Row: {
2246
+ created_at: string;
2247
+ customer_key: string;
2248
+ file_name: string;
2249
+ file_path: string;
2250
+ file_size: number | null;
2251
+ id: string;
2252
+ mime_type: string | null;
2253
+ trade_item_key: string;
2254
+ updated_at: string;
2255
+ uploaded_by: string | null;
2256
+ };
2257
+ Insert: {
2258
+ created_at?: string;
2259
+ customer_key: string;
2260
+ file_name: string;
2261
+ file_path: string;
2262
+ file_size?: number | null;
2263
+ id?: string;
2264
+ mime_type?: string | null;
2265
+ trade_item_key: string;
2266
+ updated_at?: string;
2267
+ uploaded_by?: string | null;
2268
+ };
2269
+ Update: {
2270
+ created_at?: string;
2271
+ customer_key?: string;
2272
+ file_name?: string;
2273
+ file_path?: string;
2274
+ file_size?: number | null;
2275
+ id?: string;
2276
+ mime_type?: string | null;
2277
+ trade_item_key?: string;
2278
+ updated_at?: string;
2279
+ uploaded_by?: string | null;
2280
+ };
2281
+ Relationships: [];
2282
+ };
2242
2283
  customer_selected_assortment: {
2243
2284
  Row: {
2244
2285
  article_number: string | null;
@@ -2287,6 +2328,30 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
2287
2328
  referencedColumns: ["id"];
2288
2329
  }];
2289
2330
  };
2331
+ customer_sticker_settings: {
2332
+ Row: {
2333
+ created_at: string;
2334
+ customer_key: string;
2335
+ height_mm: number;
2336
+ updated_at: string;
2337
+ width_mm: number;
2338
+ };
2339
+ Insert: {
2340
+ created_at?: string;
2341
+ customer_key: string;
2342
+ height_mm?: number;
2343
+ updated_at?: string;
2344
+ width_mm?: number;
2345
+ };
2346
+ Update: {
2347
+ created_at?: string;
2348
+ customer_key?: string;
2349
+ height_mm?: number;
2350
+ updated_at?: string;
2351
+ width_mm?: number;
2352
+ };
2353
+ Relationships: [];
2354
+ };
2290
2355
  customer_trade_settings: {
2291
2356
  Row: {
2292
2357
  category: string;
@@ -5617,6 +5682,102 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
5617
5682
  referencedColumns: ["id"];
5618
5683
  }];
5619
5684
  };
5685
+ floriday_api_log: {
5686
+ Row: {
5687
+ action: string | null;
5688
+ caller: string | null;
5689
+ connection_id: string | null;
5690
+ created_at: string;
5691
+ cursor_from: number | null;
5692
+ direction: string;
5693
+ duration_ms: number | null;
5694
+ environment: string | null;
5695
+ error: string | null;
5696
+ floriday_id: string | null;
5697
+ floriday_reference: string | null;
5698
+ http_status: number;
5699
+ id: string;
5700
+ item_count: number | null;
5701
+ kind: string | null;
5702
+ local_id: string | null;
5703
+ local_reference: string | null;
5704
+ method: string;
5705
+ module: string | null;
5706
+ ok: boolean;
5707
+ path: string;
5708
+ request: import("../integrations/supabase/types").Json | null;
5709
+ resource_type: string | null;
5710
+ response: import("../integrations/supabase/types").Json | null;
5711
+ write_log_id: string | null;
5712
+ };
5713
+ Insert: {
5714
+ action?: string | null;
5715
+ caller?: string | null;
5716
+ connection_id?: string | null;
5717
+ created_at?: string;
5718
+ cursor_from?: number | null;
5719
+ direction: string;
5720
+ duration_ms?: number | null;
5721
+ environment?: string | null;
5722
+ error?: string | null;
5723
+ floriday_id?: string | null;
5724
+ floriday_reference?: string | null;
5725
+ http_status?: number;
5726
+ id?: string;
5727
+ item_count?: number | null;
5728
+ kind?: string | null;
5729
+ local_id?: string | null;
5730
+ local_reference?: string | null;
5731
+ method: string;
5732
+ module?: string | null;
5733
+ ok?: boolean;
5734
+ path: string;
5735
+ request?: import("../integrations/supabase/types").Json | null;
5736
+ resource_type?: string | null;
5737
+ response?: import("../integrations/supabase/types").Json | null;
5738
+ write_log_id?: string | null;
5739
+ };
5740
+ Update: {
5741
+ action?: string | null;
5742
+ caller?: string | null;
5743
+ connection_id?: string | null;
5744
+ created_at?: string;
5745
+ cursor_from?: number | null;
5746
+ direction?: string;
5747
+ duration_ms?: number | null;
5748
+ environment?: string | null;
5749
+ error?: string | null;
5750
+ floriday_id?: string | null;
5751
+ floriday_reference?: string | null;
5752
+ http_status?: number;
5753
+ id?: string;
5754
+ item_count?: number | null;
5755
+ kind?: string | null;
5756
+ local_id?: string | null;
5757
+ local_reference?: string | null;
5758
+ method?: string;
5759
+ module?: string | null;
5760
+ ok?: boolean;
5761
+ path?: string;
5762
+ request?: import("../integrations/supabase/types").Json | null;
5763
+ resource_type?: string | null;
5764
+ response?: import("../integrations/supabase/types").Json | null;
5765
+ write_log_id?: string | null;
5766
+ };
5767
+ Relationships: [{
5768
+ foreignKeyName: "floriday_api_log_connection_id_fkey";
5769
+ columns: ["connection_id"];
5770
+ isOneToOne: false;
5771
+ referencedRelation: "floriday_connections";
5772
+ referencedColumns: ["id"];
5773
+ }, {
5774
+ foreignKeyName: "floriday_api_log_write_log_id_fkey";
5775
+ columns: ["write_log_id"];
5776
+ isOneToOne: false;
5777
+ referencedRelation: "floriday_write_log";
5778
+ referencedColumns: ["id"];
5779
+ }];
5780
+ };
5620
5781
  floriday_auction_letters_cache: {
5621
5782
  Row: {
5622
5783
  auction_letter_code: string;
@@ -5824,6 +5985,84 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
5824
5985
  referencedColumns: ["id"];
5825
5986
  }];
5826
5987
  };
5988
+ floriday_catalog_prices_cache: {
5989
+ Row: {
5990
+ connection_id: string;
5991
+ created_at: string;
5992
+ currency: string;
5993
+ id: string;
5994
+ is_deleted: boolean;
5995
+ price: number | null;
5996
+ price_group_id: string | null;
5997
+ price_group_name: string | null;
5998
+ price_type: string;
5999
+ raw: import("../integrations/supabase/types").Json | null;
6000
+ sales_unit: string | null;
6001
+ sequence_number: number;
6002
+ supplier_article_code: string | null;
6003
+ supply_line_id: string;
6004
+ synced_at: string;
6005
+ trade_item_id: string | null;
6006
+ updated_at: string;
6007
+ valid_from: string | null;
6008
+ valid_to: string | null;
6009
+ week: number | null;
6010
+ year: number | null;
6011
+ };
6012
+ Insert: {
6013
+ connection_id: string;
6014
+ created_at?: string;
6015
+ currency?: string;
6016
+ id?: string;
6017
+ is_deleted?: boolean;
6018
+ price?: number | null;
6019
+ price_group_id?: string | null;
6020
+ price_group_name?: string | null;
6021
+ price_type?: string;
6022
+ raw?: import("../integrations/supabase/types").Json | null;
6023
+ sales_unit?: string | null;
6024
+ sequence_number?: number;
6025
+ supplier_article_code?: string | null;
6026
+ supply_line_id: string;
6027
+ synced_at?: string;
6028
+ trade_item_id?: string | null;
6029
+ updated_at?: string;
6030
+ valid_from?: string | null;
6031
+ valid_to?: string | null;
6032
+ week?: number | null;
6033
+ year?: number | null;
6034
+ };
6035
+ Update: {
6036
+ connection_id?: string;
6037
+ created_at?: string;
6038
+ currency?: string;
6039
+ id?: string;
6040
+ is_deleted?: boolean;
6041
+ price?: number | null;
6042
+ price_group_id?: string | null;
6043
+ price_group_name?: string | null;
6044
+ price_type?: string;
6045
+ raw?: import("../integrations/supabase/types").Json | null;
6046
+ sales_unit?: string | null;
6047
+ sequence_number?: number;
6048
+ supplier_article_code?: string | null;
6049
+ supply_line_id?: string;
6050
+ synced_at?: string;
6051
+ trade_item_id?: string | null;
6052
+ updated_at?: string;
6053
+ valid_from?: string | null;
6054
+ valid_to?: string | null;
6055
+ week?: number | null;
6056
+ year?: number | null;
6057
+ };
6058
+ Relationships: [{
6059
+ foreignKeyName: "floriday_catalog_prices_cache_connection_id_fkey";
6060
+ columns: ["connection_id"];
6061
+ isOneToOne: false;
6062
+ referencedRelation: "floriday_connections";
6063
+ referencedColumns: ["id"];
6064
+ }];
6065
+ };
5827
6066
  floriday_clock_presales_cache: {
5828
6067
  Row: {
5829
6068
  buyer_organization_id: string | null;
@@ -6739,6 +6978,69 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
6739
6978
  referencedColumns: ["id"];
6740
6979
  }];
6741
6980
  };
6981
+ floriday_link_templates: {
6982
+ Row: {
6983
+ created_at: string;
6984
+ floriday_url_template: string | null;
6985
+ is_active: boolean;
6986
+ label: string;
6987
+ local_url_template: string | null;
6988
+ resource_type: string;
6989
+ updated_at: string;
6990
+ };
6991
+ Insert: {
6992
+ created_at?: string;
6993
+ floriday_url_template?: string | null;
6994
+ is_active?: boolean;
6995
+ label: string;
6996
+ local_url_template?: string | null;
6997
+ resource_type: string;
6998
+ updated_at?: string;
6999
+ };
7000
+ Update: {
7001
+ created_at?: string;
7002
+ floriday_url_template?: string | null;
7003
+ is_active?: boolean;
7004
+ label?: string;
7005
+ local_url_template?: string | null;
7006
+ resource_type?: string;
7007
+ updated_at?: string;
7008
+ };
7009
+ Relationships: [];
7010
+ };
7011
+ floriday_log_retention: {
7012
+ Row: {
7013
+ created_at: string;
7014
+ direction: string | null;
7015
+ id: string;
7016
+ keep_failed_days: number | null;
7017
+ keep_ok_days: number | null;
7018
+ note: string | null;
7019
+ resource_type: string | null;
7020
+ updated_at: string;
7021
+ };
7022
+ Insert: {
7023
+ created_at?: string;
7024
+ direction?: string | null;
7025
+ id?: string;
7026
+ keep_failed_days?: number | null;
7027
+ keep_ok_days?: number | null;
7028
+ note?: string | null;
7029
+ resource_type?: string | null;
7030
+ updated_at?: string;
7031
+ };
7032
+ Update: {
7033
+ created_at?: string;
7034
+ direction?: string | null;
7035
+ id?: string;
7036
+ keep_failed_days?: number | null;
7037
+ keep_ok_days?: number | null;
7038
+ note?: string | null;
7039
+ resource_type?: string | null;
7040
+ updated_at?: string;
7041
+ };
7042
+ Relationships: [];
7043
+ };
6742
7044
  floriday_logistic_labels_cache: {
6743
7045
  Row: {
6744
7046
  byte_size: number | null;
@@ -10363,6 +10665,48 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
10363
10665
  };
10364
10666
  Relationships: [];
10365
10667
  };
10668
+ logistics_pick_data_requests: {
10669
+ Row: {
10670
+ actions: import("../integrations/supabase/types").Json;
10671
+ created_at: string;
10672
+ event_id: string | null;
10673
+ finished_at: string | null;
10674
+ id: string;
10675
+ missing: import("../integrations/supabase/types").Json;
10676
+ order_ref: string;
10677
+ reason: string | null;
10678
+ result: import("../integrations/supabase/types").Json | null;
10679
+ status: string;
10680
+ unit_ref: string | null;
10681
+ };
10682
+ Insert: {
10683
+ actions?: import("../integrations/supabase/types").Json;
10684
+ created_at?: string;
10685
+ event_id?: string | null;
10686
+ finished_at?: string | null;
10687
+ id?: string;
10688
+ missing?: import("../integrations/supabase/types").Json;
10689
+ order_ref: string;
10690
+ reason?: string | null;
10691
+ result?: import("../integrations/supabase/types").Json | null;
10692
+ status?: string;
10693
+ unit_ref?: string | null;
10694
+ };
10695
+ Update: {
10696
+ actions?: import("../integrations/supabase/types").Json;
10697
+ created_at?: string;
10698
+ event_id?: string | null;
10699
+ finished_at?: string | null;
10700
+ id?: string;
10701
+ missing?: import("../integrations/supabase/types").Json;
10702
+ order_ref?: string;
10703
+ reason?: string | null;
10704
+ result?: import("../integrations/supabase/types").Json | null;
10705
+ status?: string;
10706
+ unit_ref?: string | null;
10707
+ };
10708
+ Relationships: [];
10709
+ };
10366
10710
  logistics_pickup_moments: {
10367
10711
  Row: {
10368
10712
  carrier_ref: string | null;
@@ -10822,6 +11166,69 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
10822
11166
  };
10823
11167
  Relationships: [];
10824
11168
  };
11169
+ logistics_slip_shipping_note: {
11170
+ Row: {
11171
+ attempts: number;
11172
+ batch_key: string | null;
11173
+ cart_id: string | null;
11174
+ created_at: string;
11175
+ error: string | null;
11176
+ error_code: string | null;
11177
+ fulfillment_order_id: string | null;
11178
+ id: string;
11179
+ locked_until: string | null;
11180
+ next_attempt_at: string | null;
11181
+ order_id: string | null;
11182
+ order_number: string | null;
11183
+ print_job_id: string | null;
11184
+ printer_id: string | null;
11185
+ retry_class: string | null;
11186
+ slip_job_id: string;
11187
+ status: string;
11188
+ updated_at: string;
11189
+ };
11190
+ Insert: {
11191
+ attempts?: number;
11192
+ batch_key?: string | null;
11193
+ cart_id?: string | null;
11194
+ created_at?: string;
11195
+ error?: string | null;
11196
+ error_code?: string | null;
11197
+ fulfillment_order_id?: string | null;
11198
+ id?: string;
11199
+ locked_until?: string | null;
11200
+ next_attempt_at?: string | null;
11201
+ order_id?: string | null;
11202
+ order_number?: string | null;
11203
+ print_job_id?: string | null;
11204
+ printer_id?: string | null;
11205
+ retry_class?: string | null;
11206
+ slip_job_id: string;
11207
+ status?: string;
11208
+ updated_at?: string;
11209
+ };
11210
+ Update: {
11211
+ attempts?: number;
11212
+ batch_key?: string | null;
11213
+ cart_id?: string | null;
11214
+ created_at?: string;
11215
+ error?: string | null;
11216
+ error_code?: string | null;
11217
+ fulfillment_order_id?: string | null;
11218
+ id?: string;
11219
+ locked_until?: string | null;
11220
+ next_attempt_at?: string | null;
11221
+ order_id?: string | null;
11222
+ order_number?: string | null;
11223
+ print_job_id?: string | null;
11224
+ printer_id?: string | null;
11225
+ retry_class?: string | null;
11226
+ slip_job_id?: string;
11227
+ status?: string;
11228
+ updated_at?: string;
11229
+ };
11230
+ Relationships: [];
11231
+ };
10825
11232
  logistics_staff_planning: {
10826
11233
  Row: {
10827
11234
  created_at: string;
@@ -11173,6 +11580,111 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
11173
11580
  };
11174
11581
  Relationships: [];
11175
11582
  };
11583
+ logistics_trace_events: {
11584
+ Row: {
11585
+ actor: string | null;
11586
+ attempts: number;
11587
+ cart_ref: string | null;
11588
+ created_at: string;
11589
+ db_action: string | null;
11590
+ db_new: import("../integrations/supabase/types").Json | null;
11591
+ db_old: import("../integrations/supabase/types").Json | null;
11592
+ db_record: string | null;
11593
+ db_table: string | null;
11594
+ decision: string | null;
11595
+ duration_ms: number | null;
11596
+ error: string | null;
11597
+ external_action: string | null;
11598
+ external_ref: string | null;
11599
+ external_response: import("../integrations/supabase/types").Json | null;
11600
+ external_status: string | null;
11601
+ external_system: string | null;
11602
+ id: string;
11603
+ input: import("../integrations/supabase/types").Json | null;
11604
+ next_attempt_at: string | null;
11605
+ order_ref: string | null;
11606
+ order_source: string | null;
11607
+ output: import("../integrations/supabase/types").Json | null;
11608
+ phase: string;
11609
+ reads: import("../integrations/supabase/types").Json | null;
11610
+ reason: string | null;
11611
+ rule: string | null;
11612
+ slip_ref: string | null;
11613
+ status: string;
11614
+ step: string;
11615
+ trace_id: string;
11616
+ values_used: import("../integrations/supabase/types").Json | null;
11617
+ };
11618
+ Insert: {
11619
+ actor?: string | null;
11620
+ attempts?: number;
11621
+ cart_ref?: string | null;
11622
+ created_at?: string;
11623
+ db_action?: string | null;
11624
+ db_new?: import("../integrations/supabase/types").Json | null;
11625
+ db_old?: import("../integrations/supabase/types").Json | null;
11626
+ db_record?: string | null;
11627
+ db_table?: string | null;
11628
+ decision?: string | null;
11629
+ duration_ms?: number | null;
11630
+ error?: string | null;
11631
+ external_action?: string | null;
11632
+ external_ref?: string | null;
11633
+ external_response?: import("../integrations/supabase/types").Json | null;
11634
+ external_status?: string | null;
11635
+ external_system?: string | null;
11636
+ id?: string;
11637
+ input?: import("../integrations/supabase/types").Json | null;
11638
+ next_attempt_at?: string | null;
11639
+ order_ref?: string | null;
11640
+ order_source?: string | null;
11641
+ output?: import("../integrations/supabase/types").Json | null;
11642
+ phase: string;
11643
+ reads?: import("../integrations/supabase/types").Json | null;
11644
+ reason?: string | null;
11645
+ rule?: string | null;
11646
+ slip_ref?: string | null;
11647
+ status: string;
11648
+ step: string;
11649
+ trace_id?: string;
11650
+ values_used?: import("../integrations/supabase/types").Json | null;
11651
+ };
11652
+ Update: {
11653
+ actor?: string | null;
11654
+ attempts?: number;
11655
+ cart_ref?: string | null;
11656
+ created_at?: string;
11657
+ db_action?: string | null;
11658
+ db_new?: import("../integrations/supabase/types").Json | null;
11659
+ db_old?: import("../integrations/supabase/types").Json | null;
11660
+ db_record?: string | null;
11661
+ db_table?: string | null;
11662
+ decision?: string | null;
11663
+ duration_ms?: number | null;
11664
+ error?: string | null;
11665
+ external_action?: string | null;
11666
+ external_ref?: string | null;
11667
+ external_response?: import("../integrations/supabase/types").Json | null;
11668
+ external_status?: string | null;
11669
+ external_system?: string | null;
11670
+ id?: string;
11671
+ input?: import("../integrations/supabase/types").Json | null;
11672
+ next_attempt_at?: string | null;
11673
+ order_ref?: string | null;
11674
+ order_source?: string | null;
11675
+ output?: import("../integrations/supabase/types").Json | null;
11676
+ phase?: string;
11677
+ reads?: import("../integrations/supabase/types").Json | null;
11678
+ reason?: string | null;
11679
+ rule?: string | null;
11680
+ slip_ref?: string | null;
11681
+ status?: string;
11682
+ step?: string;
11683
+ trace_id?: string;
11684
+ values_used?: import("../integrations/supabase/types").Json | null;
11685
+ };
11686
+ Relationships: [];
11687
+ };
11176
11688
  logistics_variables: {
11177
11689
  Row: {
11178
11690
  created_at: string;
@@ -21745,6 +22257,15 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
21745
22257
  Args: never;
21746
22258
  Returns: boolean;
21747
22259
  };
22260
+ cancel_open_print_jobs: {
22261
+ Args: {
22262
+ _cutoff: string;
22263
+ };
22264
+ Returns: {
22265
+ extern_job_id: string;
22266
+ id: string;
22267
+ }[];
22268
+ };
21748
22269
  check_offer_product_available_stock: {
21749
22270
  Args: {
21750
22271
  p_campaign_product_id: string;
@@ -23283,6 +23804,12 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
23283
23804
  };
23284
23805
  Returns: string;
23285
23806
  };
23807
+ logistics_cart_checkin_at: {
23808
+ Args: {
23809
+ p_cart_id: string;
23810
+ };
23811
+ Returns: string;
23812
+ };
23286
23813
  logistics_cart_handled: {
23287
23814
  Args: {
23288
23815
  p_cart_index: number;
@@ -23316,10 +23843,22 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
23316
23843
  task_status: string;
23317
23844
  }[];
23318
23845
  };
23846
+ logistics_cart_is_full: {
23847
+ Args: {
23848
+ p_cart_id: string;
23849
+ };
23850
+ Returns: boolean;
23851
+ };
23319
23852
  logistics_cart_layout_method: {
23320
23853
  Args: never;
23321
23854
  Returns: import("../integrations/supabase/types").Json;
23322
23855
  };
23856
+ logistics_cart_order_refs: {
23857
+ Args: {
23858
+ p_cart_id: string;
23859
+ };
23860
+ Returns: string[];
23861
+ };
23323
23862
  logistics_cart_plan_overview: {
23324
23863
  Args: {
23325
23864
  p_days?: number;
@@ -23339,6 +23878,24 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
23339
23878
  };
23340
23879
  Returns: import("../integrations/supabase/types").Json;
23341
23880
  };
23881
+ logistics_cart_plan_status_core: {
23882
+ Args: {
23883
+ p_ref: string;
23884
+ };
23885
+ Returns: import("../integrations/supabase/types").Json;
23886
+ };
23887
+ logistics_cart_release_reason: {
23888
+ Args: {
23889
+ p_cart_id: string;
23890
+ };
23891
+ Returns: string;
23892
+ };
23893
+ logistics_cart_released: {
23894
+ Args: {
23895
+ p_cart_id: string;
23896
+ };
23897
+ Returns: boolean;
23898
+ };
23342
23899
  logistics_cart_seq: {
23343
23900
  Args: {
23344
23901
  p_order_uuid?: string;
@@ -23389,6 +23946,10 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
23389
23946
  unit_ref: string;
23390
23947
  }[];
23391
23948
  };
23949
+ logistics_carts_per_print: {
23950
+ Args: never;
23951
+ Returns: number;
23952
+ };
23392
23953
  logistics_check_order_allowed: {
23393
23954
  Args: {
23394
23955
  p_lines: import("../integrations/supabase/types").Json;
@@ -23492,6 +24053,10 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
23492
24053
  isSetofReturn: false;
23493
24054
  };
23494
24055
  };
24056
+ logistics_cleanup_orphan_print_jobs: {
24057
+ Args: never;
24058
+ Returns: import("../integrations/supabase/types").Json;
24059
+ };
23495
24060
  logistics_complete_task: {
23496
24061
  Args: {
23497
24062
  p_result?: import("../integrations/supabase/types").Json;
@@ -23743,6 +24308,20 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
23743
24308
  };
23744
24309
  Returns: string;
23745
24310
  };
24311
+ logistics_ensure_pick_data: {
24312
+ Args: {
24313
+ p_event_id?: string;
24314
+ p_missing?: import("../integrations/supabase/types").Json;
24315
+ p_ref: string;
24316
+ };
24317
+ Returns: import("../integrations/supabase/types").Json;
24318
+ };
24319
+ logistics_ensure_shipping_notes: {
24320
+ Args: {
24321
+ p_limit?: number;
24322
+ };
24323
+ Returns: import("../integrations/supabase/types").Json;
24324
+ };
23746
24325
  logistics_fail_task: {
23747
24326
  Args: {
23748
24327
  p_error: string;
@@ -23788,6 +24367,10 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
23788
24367
  isSetofReturn: false;
23789
24368
  };
23790
24369
  };
24370
+ logistics_fix_wrong_shipping_notes: {
24371
+ Args: never;
24372
+ Returns: import("../integrations/supabase/types").Json;
24373
+ };
23791
24374
  logistics_floriday_cart_plan: {
23792
24375
  Args: {
23793
24376
  p_order_id: string;
@@ -23815,6 +24398,10 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
23815
24398
  revision: number;
23816
24399
  }[];
23817
24400
  };
24401
+ logistics_floriday_delivery_note_create_enabled: {
24402
+ Args: never;
24403
+ Returns: boolean;
24404
+ };
23818
24405
  logistics_floriday_finish_push: {
23819
24406
  Args: {
23820
24407
  _error?: string;
@@ -23966,6 +24553,12 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
23966
24553
  };
23967
24554
  Returns: number;
23968
24555
  };
24556
+ logistics_merge_partial_carts: {
24557
+ Args: {
24558
+ p_limit?: number;
24559
+ };
24560
+ Returns: import("../integrations/supabase/types").Json;
24561
+ };
23969
24562
  logistics_next_workday_date: {
23970
24563
  Args: {
23971
24564
  p_date: string;
@@ -24052,6 +24645,12 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
24052
24645
  };
24053
24646
  Returns: string;
24054
24647
  };
24648
+ logistics_payload_is_floriday: {
24649
+ Args: {
24650
+ _payload: import("../integrations/supabase/types").Json;
24651
+ };
24652
+ Returns: boolean;
24653
+ };
24055
24654
  logistics_pick_agenda: {
24056
24655
  Args: {
24057
24656
  p_from?: string;
@@ -24080,6 +24679,10 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
24080
24679
  Args: never;
24081
24680
  Returns: import("../integrations/supabase/types").Json;
24082
24681
  };
24682
+ logistics_pick_partial_mode: {
24683
+ Args: never;
24684
+ Returns: string;
24685
+ };
24083
24686
  logistics_pick_start_estimate: {
24084
24687
  Args: {
24085
24688
  p_order: import("../integrations/supabase/types").Json;
@@ -24170,6 +24773,20 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
24170
24773
  Args: never;
24171
24774
  Returns: undefined;
24172
24775
  };
24776
+ logistics_plan_progress: {
24777
+ Args: {
24778
+ p_refs: string[];
24779
+ };
24780
+ Returns: {
24781
+ cart_plan_ready: boolean;
24782
+ cart_plan_reason: string;
24783
+ cart_plan_released: boolean;
24784
+ plan_progress: number;
24785
+ plan_state: string;
24786
+ plan_state_since: string;
24787
+ unit_ref: string;
24788
+ }[];
24789
+ };
24173
24790
  logistics_plan_prune: {
24174
24791
  Args: never;
24175
24792
  Returns: number;
@@ -24191,6 +24808,18 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
24191
24808
  };
24192
24809
  Returns: number;
24193
24810
  };
24811
+ logistics_plan_state_for: {
24812
+ Args: {
24813
+ p_ref: string;
24814
+ };
24815
+ Returns: import("../integrations/supabase/types").Json;
24816
+ };
24817
+ logistics_prepare_pick_documents: {
24818
+ Args: {
24819
+ p_limit?: number;
24820
+ };
24821
+ Returns: import("../integrations/supabase/types").Json;
24822
+ };
24194
24823
  logistics_prune_buffer_member_queue: {
24195
24824
  Args: never;
24196
24825
  Returns: number;
@@ -24231,18 +24860,36 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
24231
24860
  Args: never;
24232
24861
  Returns: import("../integrations/supabase/types").Json;
24233
24862
  };
24863
+ logistics_refresh_pick_queue_status: {
24864
+ Args: {
24865
+ p_ref: string;
24866
+ };
24867
+ Returns: number;
24868
+ };
24234
24869
  logistics_refresh_pickup_moments: {
24235
24870
  Args: {
24236
24871
  p_weeks?: number;
24237
24872
  };
24238
24873
  Returns: import("../integrations/supabase/types").Json;
24239
24874
  };
24875
+ logistics_refresh_plan_state: {
24876
+ Args: {
24877
+ p_limit?: number;
24878
+ };
24879
+ Returns: import("../integrations/supabase/types").Json;
24880
+ };
24240
24881
  logistics_replan_all: {
24241
24882
  Args: {
24242
24883
  p_reason?: string;
24243
24884
  };
24244
24885
  Returns: import("../integrations/supabase/types").Json;
24245
24886
  };
24887
+ logistics_replan_all_force: {
24888
+ Args: {
24889
+ p_reason?: string;
24890
+ };
24891
+ Returns: import("../integrations/supabase/types").Json;
24892
+ };
24246
24893
  logistics_report_delay: {
24247
24894
  Args: {
24248
24895
  p_expected_date?: string;
@@ -24399,6 +25046,74 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
24399
25046
  };
24400
25047
  Returns: import("../integrations/supabase/types").Json;
24401
25048
  };
25049
+ logistics_shipping_note_job_for_slip: {
25050
+ Args: {
25051
+ _slip_job_id: string;
25052
+ };
25053
+ Returns: string;
25054
+ };
25055
+ logistics_shipping_notes_wake_all: {
25056
+ Args: never;
25057
+ Returns: import("../integrations/supabase/types").Json;
25058
+ };
25059
+ logistics_slip_is_floriday: {
25060
+ Args: {
25061
+ _slip_job_id: string;
25062
+ };
25063
+ Returns: boolean;
25064
+ };
25065
+ logistics_slip_note_claim: {
25066
+ Args: {
25067
+ _lease_seconds?: number;
25068
+ _limit?: number;
25069
+ };
25070
+ Returns: {
25071
+ attempts: number;
25072
+ batch_key: string | null;
25073
+ cart_id: string | null;
25074
+ created_at: string;
25075
+ error: string | null;
25076
+ error_code: string | null;
25077
+ fulfillment_order_id: string | null;
25078
+ id: string;
25079
+ locked_until: string | null;
25080
+ next_attempt_at: string | null;
25081
+ order_id: string | null;
25082
+ order_number: string | null;
25083
+ print_job_id: string | null;
25084
+ printer_id: string | null;
25085
+ retry_class: string | null;
25086
+ slip_job_id: string;
25087
+ status: string;
25088
+ updated_at: string;
25089
+ }[];
25090
+ SetofOptions: {
25091
+ from: "*";
25092
+ to: "logistics_slip_shipping_note";
25093
+ isOneToOne: false;
25094
+ isSetofReturn: true;
25095
+ };
25096
+ };
25097
+ logistics_slip_note_finish: {
25098
+ Args: {
25099
+ _error?: string;
25100
+ _error_code?: string;
25101
+ _fulfillment_order_id?: string;
25102
+ _id: string;
25103
+ _ok: boolean;
25104
+ _print_job_id?: string;
25105
+ _status?: string;
25106
+ };
25107
+ Returns: undefined;
25108
+ };
25109
+ logistics_slip_note_keep_waiting: {
25110
+ Args: {
25111
+ _class?: string;
25112
+ _id: string;
25113
+ _reason: string;
25114
+ };
25115
+ Returns: undefined;
25116
+ };
24402
25117
  logistics_sticker_follows_slip: {
24403
25118
  Args: never;
24404
25119
  Returns: boolean;
@@ -24453,6 +25168,40 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
24453
25168
  name: string;
24454
25169
  }[];
24455
25170
  };
25171
+ logistics_trace: {
25172
+ Args: {
25173
+ p: import("../integrations/supabase/types").Json;
25174
+ };
25175
+ Returns: string;
25176
+ };
25177
+ logistics_trace_batch: {
25178
+ Args: {
25179
+ p: import("../integrations/supabase/types").Json;
25180
+ };
25181
+ Returns: number;
25182
+ };
25183
+ logistics_trace_orders: {
25184
+ Args: {
25185
+ p_limit?: number;
25186
+ p_search?: string;
25187
+ p_since?: string;
25188
+ p_status?: string;
25189
+ };
25190
+ Returns: import("../integrations/supabase/types").Json;
25191
+ };
25192
+ logistics_trace_redact: {
25193
+ Args: {
25194
+ p: import("../integrations/supabase/types").Json;
25195
+ };
25196
+ Returns: import("../integrations/supabase/types").Json;
25197
+ };
25198
+ logistics_trace_timeline: {
25199
+ Args: {
25200
+ p_limit?: number;
25201
+ p_order_ref: string;
25202
+ };
25203
+ Returns: import("../integrations/supabase/types").Json;
25204
+ };
24456
25205
  logistics_upsert_task: {
24457
25206
  Args: {
24458
25207
  p_buffer_ref: string;
@@ -25494,6 +26243,10 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
25494
26243
  };
25495
26244
  Returns: undefined;
25496
26245
  };
26246
+ prune_floriday_api_log: {
26247
+ Args: never;
26248
+ Returns: number;
26249
+ };
25497
26250
  quote_create_from_source: {
25498
26251
  Args: {
25499
26252
  _payload?: import("../integrations/supabase/types").Json;
@@ -25927,6 +26680,13 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
25927
26680
  };
25928
26681
  Returns: number;
25929
26682
  };
26683
+ schedule_floriday_catalog_prices_sync: {
26684
+ Args: {
26685
+ p_apikey: string;
26686
+ p_url: string;
26687
+ };
26688
+ Returns: number;
26689
+ };
25930
26690
  schedule_floriday_clock_presales_sync: {
25931
26691
  Args: {
25932
26692
  p_apikey: string;
@@ -26227,6 +26987,10 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
26227
26987
  };
26228
26988
  Returns: undefined;
26229
26989
  };
26990
+ sync_floriday_prices_into_price_groups: {
26991
+ Args: never;
26992
+ Returns: number;
26993
+ };
26230
26994
  sync_layer_stock: {
26231
26995
  Args: {
26232
26996
  p_product_id: string;
@@ -26359,6 +27123,10 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
26359
27123
  Args: never;
26360
27124
  Returns: string;
26361
27125
  };
27126
+ voorraad_cleanup_old_rows: {
27127
+ Args: never;
27128
+ Returns: import("../integrations/supabase/types").Json;
27129
+ };
26362
27130
  wake_print_queue: {
26363
27131
  Args: {
26364
27132
  _min_interval_ms?: number;
@@ -26511,7 +27279,9 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
26511
27279
  last_synced_at?: string | null;
26512
27280
  provider: string;
26513
27281
  selected_calendars?: import("../integrations/supabase/types").Json;
26514
- status?: string;
27282
+ status
27283
+ /** Haalt alle orders van dezelfde buffer als de gegeven order. */
27284
+ ?: string;
26515
27285
  sync_mode?: string;
26516
27286
  updated_at?: string;
26517
27287
  user_id: string;
@@ -28658,6 +29428,45 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
28658
29428
  };
28659
29429
  Relationships: [];
28660
29430
  };
29431
+ customer_product_stickers: {
29432
+ Row: {
29433
+ created_at: string;
29434
+ customer_key: string;
29435
+ file_name: string;
29436
+ file_path: string;
29437
+ file_size: number | null;
29438
+ id: string;
29439
+ mime_type: string | null;
29440
+ trade_item_key: string;
29441
+ updated_at: string;
29442
+ uploaded_by: string | null;
29443
+ };
29444
+ Insert: {
29445
+ created_at?: string;
29446
+ customer_key: string;
29447
+ file_name: string;
29448
+ file_path: string;
29449
+ file_size?: number | null;
29450
+ id?: string;
29451
+ mime_type?: string | null;
29452
+ trade_item_key: string;
29453
+ updated_at?: string;
29454
+ uploaded_by?: string | null;
29455
+ };
29456
+ Update: {
29457
+ created_at?: string;
29458
+ customer_key?: string;
29459
+ file_name?: string;
29460
+ file_path?: string;
29461
+ file_size?: number | null;
29462
+ id?: string;
29463
+ mime_type?: string | null;
29464
+ trade_item_key?: string;
29465
+ updated_at?: string;
29466
+ uploaded_by?: string | null;
29467
+ };
29468
+ Relationships: [];
29469
+ };
28661
29470
  customer_selected_assortment: {
28662
29471
  Row: {
28663
29472
  article_number: string | null;
@@ -28706,6 +29515,30 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
28706
29515
  referencedColumns: ["id"];
28707
29516
  }];
28708
29517
  };
29518
+ customer_sticker_settings: {
29519
+ Row: {
29520
+ created_at: string;
29521
+ customer_key: string;
29522
+ height_mm: number;
29523
+ updated_at: string;
29524
+ width_mm: number;
29525
+ };
29526
+ Insert: {
29527
+ created_at?: string;
29528
+ customer_key: string;
29529
+ height_mm?: number;
29530
+ updated_at?: string;
29531
+ width_mm?: number;
29532
+ };
29533
+ Update: {
29534
+ created_at?: string;
29535
+ customer_key?: string;
29536
+ height_mm?: number;
29537
+ updated_at?: string;
29538
+ width_mm?: number;
29539
+ };
29540
+ Relationships: [];
29541
+ };
28709
29542
  customer_trade_settings: {
28710
29543
  Row: {
28711
29544
  category: string;
@@ -32036,6 +32869,102 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
32036
32869
  referencedColumns: ["id"];
32037
32870
  }];
32038
32871
  };
32872
+ floriday_api_log: {
32873
+ Row: {
32874
+ action: string | null;
32875
+ caller: string | null;
32876
+ connection_id: string | null;
32877
+ created_at: string;
32878
+ cursor_from: number | null;
32879
+ direction: string;
32880
+ duration_ms: number | null;
32881
+ environment: string | null;
32882
+ error: string | null;
32883
+ floriday_id: string | null;
32884
+ floriday_reference: string | null;
32885
+ http_status: number;
32886
+ id: string;
32887
+ item_count: number | null;
32888
+ kind: string | null;
32889
+ local_id: string | null;
32890
+ local_reference: string | null;
32891
+ method: string;
32892
+ module: string | null;
32893
+ ok: boolean;
32894
+ path: string;
32895
+ request: import("../integrations/supabase/types").Json | null;
32896
+ resource_type: string | null;
32897
+ response: import("../integrations/supabase/types").Json | null;
32898
+ write_log_id: string | null;
32899
+ };
32900
+ Insert: {
32901
+ action?: string | null;
32902
+ caller?: string | null;
32903
+ connection_id?: string | null;
32904
+ created_at?: string;
32905
+ cursor_from?: number | null;
32906
+ direction: string;
32907
+ duration_ms?: number | null;
32908
+ environment?: string | null;
32909
+ error?: string | null;
32910
+ floriday_id?: string | null;
32911
+ floriday_reference?: string | null;
32912
+ http_status?: number;
32913
+ id?: string;
32914
+ item_count?: number | null;
32915
+ kind?: string | null;
32916
+ local_id?: string | null;
32917
+ local_reference?: string | null;
32918
+ method: string;
32919
+ module?: string | null;
32920
+ ok?: boolean;
32921
+ path: string;
32922
+ request?: import("../integrations/supabase/types").Json | null;
32923
+ resource_type?: string | null;
32924
+ response?: import("../integrations/supabase/types").Json | null;
32925
+ write_log_id?: string | null;
32926
+ };
32927
+ Update: {
32928
+ action?: string | null;
32929
+ caller?: string | null;
32930
+ connection_id?: string | null;
32931
+ created_at?: string;
32932
+ cursor_from?: number | null;
32933
+ direction?: string;
32934
+ duration_ms?: number | null;
32935
+ environment?: string | null;
32936
+ error?: string | null;
32937
+ floriday_id?: string | null;
32938
+ floriday_reference?: string | null;
32939
+ http_status?: number;
32940
+ id?: string;
32941
+ item_count?: number | null;
32942
+ kind?: string | null;
32943
+ local_id?: string | null;
32944
+ local_reference?: string | null;
32945
+ method?: string;
32946
+ module?: string | null;
32947
+ ok?: boolean;
32948
+ path?: string;
32949
+ request?: import("../integrations/supabase/types").Json | null;
32950
+ resource_type?: string | null;
32951
+ response?: import("../integrations/supabase/types").Json | null;
32952
+ write_log_id?: string | null;
32953
+ };
32954
+ Relationships: [{
32955
+ foreignKeyName: "floriday_api_log_connection_id_fkey";
32956
+ columns: ["connection_id"];
32957
+ isOneToOne: false;
32958
+ referencedRelation: "floriday_connections";
32959
+ referencedColumns: ["id"];
32960
+ }, {
32961
+ foreignKeyName: "floriday_api_log_write_log_id_fkey";
32962
+ columns: ["write_log_id"];
32963
+ isOneToOne: false;
32964
+ referencedRelation: "floriday_write_log";
32965
+ referencedColumns: ["id"];
32966
+ }];
32967
+ };
32039
32968
  floriday_auction_letters_cache: {
32040
32969
  Row: {
32041
32970
  auction_letter_code: string;
@@ -32243,6 +33172,84 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
32243
33172
  referencedColumns: ["id"];
32244
33173
  }];
32245
33174
  };
33175
+ floriday_catalog_prices_cache: {
33176
+ Row: {
33177
+ connection_id: string;
33178
+ created_at: string;
33179
+ currency: string;
33180
+ id: string;
33181
+ is_deleted: boolean;
33182
+ price: number | null;
33183
+ price_group_id: string | null;
33184
+ price_group_name: string | null;
33185
+ price_type: string;
33186
+ raw: import("../integrations/supabase/types").Json | null;
33187
+ sales_unit: string | null;
33188
+ sequence_number: number;
33189
+ supplier_article_code: string | null;
33190
+ supply_line_id: string;
33191
+ synced_at: string;
33192
+ trade_item_id: string | null;
33193
+ updated_at: string;
33194
+ valid_from: string | null;
33195
+ valid_to: string | null;
33196
+ week: number | null;
33197
+ year: number | null;
33198
+ };
33199
+ Insert: {
33200
+ connection_id: string;
33201
+ created_at?: string;
33202
+ currency?: string;
33203
+ id?: string;
33204
+ is_deleted?: boolean;
33205
+ price?: number | null;
33206
+ price_group_id?: string | null;
33207
+ price_group_name?: string | null;
33208
+ price_type?: string;
33209
+ raw?: import("../integrations/supabase/types").Json | null;
33210
+ sales_unit?: string | null;
33211
+ sequence_number?: number;
33212
+ supplier_article_code?: string | null;
33213
+ supply_line_id: string;
33214
+ synced_at?: string;
33215
+ trade_item_id?: string | null;
33216
+ updated_at?: string;
33217
+ valid_from?: string | null;
33218
+ valid_to?: string | null;
33219
+ week?: number | null;
33220
+ year?: number | null;
33221
+ };
33222
+ Update: {
33223
+ connection_id?: string;
33224
+ created_at?: string;
33225
+ currency?: string;
33226
+ id?: string;
33227
+ is_deleted?: boolean;
33228
+ price?: number | null;
33229
+ price_group_id?: string | null;
33230
+ price_group_name?: string | null;
33231
+ price_type?: string;
33232
+ raw?: import("../integrations/supabase/types").Json | null;
33233
+ sales_unit?: string | null;
33234
+ sequence_number?: number;
33235
+ supplier_article_code?: string | null;
33236
+ supply_line_id?: string;
33237
+ synced_at?: string;
33238
+ trade_item_id?: string | null;
33239
+ updated_at?: string;
33240
+ valid_from?: string | null;
33241
+ valid_to?: string | null;
33242
+ week?: number | null;
33243
+ year?: number | null;
33244
+ };
33245
+ Relationships: [{
33246
+ foreignKeyName: "floriday_catalog_prices_cache_connection_id_fkey";
33247
+ columns: ["connection_id"];
33248
+ isOneToOne: false;
33249
+ referencedRelation: "floriday_connections";
33250
+ referencedColumns: ["id"];
33251
+ }];
33252
+ };
32246
33253
  floriday_clock_presales_cache: {
32247
33254
  Row: {
32248
33255
  buyer_organization_id: string | null;
@@ -33158,6 +34165,69 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
33158
34165
  referencedColumns: ["id"];
33159
34166
  }];
33160
34167
  };
34168
+ floriday_link_templates: {
34169
+ Row: {
34170
+ created_at: string;
34171
+ floriday_url_template: string | null;
34172
+ is_active: boolean;
34173
+ label: string;
34174
+ local_url_template: string | null;
34175
+ resource_type: string;
34176
+ updated_at: string;
34177
+ };
34178
+ Insert: {
34179
+ created_at?: string;
34180
+ floriday_url_template?: string | null;
34181
+ is_active?: boolean;
34182
+ label: string;
34183
+ local_url_template?: string | null;
34184
+ resource_type: string;
34185
+ updated_at?: string;
34186
+ };
34187
+ Update: {
34188
+ created_at?: string;
34189
+ floriday_url_template?: string | null;
34190
+ is_active?: boolean;
34191
+ label?: string;
34192
+ local_url_template?: string | null;
34193
+ resource_type?: string;
34194
+ updated_at?: string;
34195
+ };
34196
+ Relationships: [];
34197
+ };
34198
+ floriday_log_retention: {
34199
+ Row: {
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
+ Insert: {
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
+ Update: {
34220
+ created_at?: string;
34221
+ direction?: string | null;
34222
+ id?: string;
34223
+ keep_failed_days?: number | null;
34224
+ keep_ok_days?: number | null;
34225
+ note?: string | null;
34226
+ resource_type?: string | null;
34227
+ updated_at?: string;
34228
+ };
34229
+ Relationships: [];
34230
+ };
33161
34231
  floriday_logistic_labels_cache: {
33162
34232
  Row: {
33163
34233
  byte_size: number | null;
@@ -36782,6 +37852,48 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
36782
37852
  };
36783
37853
  Relationships: [];
36784
37854
  };
37855
+ logistics_pick_data_requests: {
37856
+ Row: {
37857
+ actions: import("../integrations/supabase/types").Json;
37858
+ created_at: string;
37859
+ event_id: string | null;
37860
+ finished_at: string | null;
37861
+ id: string;
37862
+ missing: import("../integrations/supabase/types").Json;
37863
+ order_ref: string;
37864
+ reason: string | null;
37865
+ result: import("../integrations/supabase/types").Json | null;
37866
+ status: string;
37867
+ unit_ref: string | null;
37868
+ };
37869
+ Insert: {
37870
+ actions?: import("../integrations/supabase/types").Json;
37871
+ created_at?: string;
37872
+ event_id?: string | null;
37873
+ finished_at?: string | null;
37874
+ id?: string;
37875
+ missing?: import("../integrations/supabase/types").Json;
37876
+ order_ref: string;
37877
+ reason?: string | null;
37878
+ result?: import("../integrations/supabase/types").Json | null;
37879
+ status?: string;
37880
+ unit_ref?: string | null;
37881
+ };
37882
+ Update: {
37883
+ actions?: import("../integrations/supabase/types").Json;
37884
+ created_at?: string;
37885
+ event_id?: string | null;
37886
+ finished_at?: string | null;
37887
+ id?: string;
37888
+ missing?: import("../integrations/supabase/types").Json;
37889
+ order_ref?: string;
37890
+ reason?: string | null;
37891
+ result?: import("../integrations/supabase/types").Json | null;
37892
+ status?: string;
37893
+ unit_ref?: string | null;
37894
+ };
37895
+ Relationships: [];
37896
+ };
36785
37897
  logistics_pickup_moments: {
36786
37898
  Row: {
36787
37899
  carrier_ref: string | null;
@@ -37241,6 +38353,69 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
37241
38353
  };
37242
38354
  Relationships: [];
37243
38355
  };
38356
+ logistics_slip_shipping_note: {
38357
+ Row: {
38358
+ attempts: number;
38359
+ batch_key: string | null;
38360
+ cart_id: string | null;
38361
+ created_at: string;
38362
+ error: string | null;
38363
+ error_code: string | null;
38364
+ fulfillment_order_id: string | null;
38365
+ id: string;
38366
+ locked_until: string | null;
38367
+ next_attempt_at: string | null;
38368
+ order_id: string | null;
38369
+ order_number: string | null;
38370
+ print_job_id: string | null;
38371
+ printer_id: string | null;
38372
+ retry_class: string | null;
38373
+ slip_job_id: string;
38374
+ status: string;
38375
+ updated_at: string;
38376
+ };
38377
+ Insert: {
38378
+ attempts?: number;
38379
+ batch_key?: string | null;
38380
+ cart_id?: string | null;
38381
+ created_at?: string;
38382
+ error?: string | null;
38383
+ error_code?: string | null;
38384
+ fulfillment_order_id?: string | null;
38385
+ id?: string;
38386
+ locked_until?: string | null;
38387
+ next_attempt_at?: string | null;
38388
+ order_id?: string | null;
38389
+ order_number?: string | null;
38390
+ print_job_id?: string | null;
38391
+ printer_id?: string | null;
38392
+ retry_class?: string | null;
38393
+ slip_job_id: string;
38394
+ status?: string;
38395
+ updated_at?: string;
38396
+ };
38397
+ Update: {
38398
+ attempts?: number;
38399
+ batch_key?: string | null;
38400
+ cart_id?: string | null;
38401
+ created_at?: string;
38402
+ error?: string | null;
38403
+ error_code?: string | null;
38404
+ fulfillment_order_id?: string | null;
38405
+ id?: string;
38406
+ locked_until?: string | null;
38407
+ next_attempt_at?: string | null;
38408
+ order_id?: string | null;
38409
+ order_number?: string | null;
38410
+ print_job_id?: string | null;
38411
+ printer_id?: string | null;
38412
+ retry_class?: string | null;
38413
+ slip_job_id?: string;
38414
+ status?: string;
38415
+ updated_at?: string;
38416
+ };
38417
+ Relationships: [];
38418
+ };
37244
38419
  logistics_staff_planning: {
37245
38420
  Row: {
37246
38421
  created_at: string;
@@ -37592,6 +38767,111 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
37592
38767
  };
37593
38768
  Relationships: [];
37594
38769
  };
38770
+ logistics_trace_events: {
38771
+ Row: {
38772
+ actor: string | null;
38773
+ attempts: number;
38774
+ cart_ref: string | null;
38775
+ created_at: string;
38776
+ db_action: string | null;
38777
+ db_new: import("../integrations/supabase/types").Json | null;
38778
+ db_old: import("../integrations/supabase/types").Json | null;
38779
+ db_record: string | null;
38780
+ db_table: string | null;
38781
+ decision: string | null;
38782
+ duration_ms: number | null;
38783
+ error: string | null;
38784
+ external_action: string | null;
38785
+ external_ref: string | null;
38786
+ external_response: import("../integrations/supabase/types").Json | null;
38787
+ external_status: string | null;
38788
+ external_system: string | null;
38789
+ id: string;
38790
+ input: import("../integrations/supabase/types").Json | null;
38791
+ next_attempt_at: string | null;
38792
+ order_ref: string | null;
38793
+ order_source: string | null;
38794
+ output: import("../integrations/supabase/types").Json | null;
38795
+ phase: string;
38796
+ reads: import("../integrations/supabase/types").Json | null;
38797
+ reason: string | null;
38798
+ rule: string | null;
38799
+ slip_ref: string | null;
38800
+ status: string;
38801
+ step: string;
38802
+ trace_id: string;
38803
+ values_used: import("../integrations/supabase/types").Json | null;
38804
+ };
38805
+ Insert: {
38806
+ actor?: string | null;
38807
+ attempts?: number;
38808
+ cart_ref?: string | null;
38809
+ created_at?: string;
38810
+ db_action?: string | null;
38811
+ db_new?: import("../integrations/supabase/types").Json | null;
38812
+ db_old?: import("../integrations/supabase/types").Json | null;
38813
+ db_record?: string | null;
38814
+ db_table?: string | null;
38815
+ decision?: string | null;
38816
+ duration_ms?: number | null;
38817
+ error?: string | null;
38818
+ external_action?: string | null;
38819
+ external_ref?: string | null;
38820
+ external_response?: import("../integrations/supabase/types").Json | null;
38821
+ external_status?: string | null;
38822
+ external_system?: string | null;
38823
+ id?: string;
38824
+ input?: import("../integrations/supabase/types").Json | null;
38825
+ next_attempt_at?: string | null;
38826
+ order_ref?: string | null;
38827
+ order_source?: string | null;
38828
+ output?: import("../integrations/supabase/types").Json | null;
38829
+ phase: string;
38830
+ reads?: import("../integrations/supabase/types").Json | null;
38831
+ reason?: string | null;
38832
+ rule?: string | null;
38833
+ slip_ref?: string | null;
38834
+ status: string;
38835
+ step: string;
38836
+ trace_id?: string;
38837
+ values_used?: import("../integrations/supabase/types").Json | null;
38838
+ };
38839
+ Update: {
38840
+ actor?: string | null;
38841
+ attempts?: number;
38842
+ cart_ref?: string | null;
38843
+ created_at?: string;
38844
+ db_action?: string | null;
38845
+ db_new?: import("../integrations/supabase/types").Json | null;
38846
+ db_old?: import("../integrations/supabase/types").Json | null;
38847
+ db_record?: string | null;
38848
+ db_table?: string | null;
38849
+ decision?: string | null;
38850
+ duration_ms?: number | null;
38851
+ error?: string | null;
38852
+ external_action?: string | null;
38853
+ external_ref?: string | null;
38854
+ external_response?: import("../integrations/supabase/types").Json | null;
38855
+ external_status?: string | null;
38856
+ external_system?: string | null;
38857
+ id?: string;
38858
+ input?: import("../integrations/supabase/types").Json | null;
38859
+ next_attempt_at?: string | null;
38860
+ order_ref?: string | null;
38861
+ order_source?: string | null;
38862
+ output?: import("../integrations/supabase/types").Json | null;
38863
+ phase?: string;
38864
+ reads?: import("../integrations/supabase/types").Json | null;
38865
+ reason?: string | null;
38866
+ rule?: string | null;
38867
+ slip_ref?: string | null;
38868
+ status?: string;
38869
+ step?: string;
38870
+ trace_id?: string;
38871
+ values_used?: import("../integrations/supabase/types").Json | null;
38872
+ };
38873
+ Relationships: [];
38874
+ };
37595
38875
  logistics_variables: {
37596
38876
  Row: {
37597
38877
  created_at: string;
@@ -48164,6 +49444,15 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
48164
49444
  Args: never;
48165
49445
  Returns: boolean;
48166
49446
  };
49447
+ cancel_open_print_jobs: {
49448
+ Args: {
49449
+ _cutoff: string;
49450
+ };
49451
+ Returns: {
49452
+ extern_job_id: string;
49453
+ id: string;
49454
+ }[];
49455
+ };
48167
49456
  check_offer_product_available_stock: {
48168
49457
  Args: {
48169
49458
  p_campaign_product_id: string;
@@ -49702,6 +50991,12 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
49702
50991
  };
49703
50992
  Returns: string;
49704
50993
  };
50994
+ logistics_cart_checkin_at: {
50995
+ Args: {
50996
+ p_cart_id: string;
50997
+ };
50998
+ Returns: string;
50999
+ };
49705
51000
  logistics_cart_handled: {
49706
51001
  Args: {
49707
51002
  p_cart_index: number;
@@ -49735,10 +51030,22 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
49735
51030
  task_status: string;
49736
51031
  }[];
49737
51032
  };
51033
+ logistics_cart_is_full: {
51034
+ Args: {
51035
+ p_cart_id: string;
51036
+ };
51037
+ Returns: boolean;
51038
+ };
49738
51039
  logistics_cart_layout_method: {
49739
51040
  Args: never;
49740
51041
  Returns: import("../integrations/supabase/types").Json;
49741
51042
  };
51043
+ logistics_cart_order_refs: {
51044
+ Args: {
51045
+ p_cart_id: string;
51046
+ };
51047
+ Returns: string[];
51048
+ };
49742
51049
  logistics_cart_plan_overview: {
49743
51050
  Args: {
49744
51051
  p_days?: number;
@@ -49758,6 +51065,24 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
49758
51065
  };
49759
51066
  Returns: import("../integrations/supabase/types").Json;
49760
51067
  };
51068
+ logistics_cart_plan_status_core: {
51069
+ Args: {
51070
+ p_ref: string;
51071
+ };
51072
+ Returns: import("../integrations/supabase/types").Json;
51073
+ };
51074
+ logistics_cart_release_reason: {
51075
+ Args: {
51076
+ p_cart_id: string;
51077
+ };
51078
+ Returns: string;
51079
+ };
51080
+ logistics_cart_released: {
51081
+ Args: {
51082
+ p_cart_id: string;
51083
+ };
51084
+ Returns: boolean;
51085
+ };
49761
51086
  logistics_cart_seq: {
49762
51087
  Args: {
49763
51088
  p_order_uuid?: string;
@@ -49808,6 +51133,10 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
49808
51133
  unit_ref: string;
49809
51134
  }[];
49810
51135
  };
51136
+ logistics_carts_per_print: {
51137
+ Args: never;
51138
+ Returns: number;
51139
+ };
49811
51140
  logistics_check_order_allowed: {
49812
51141
  Args: {
49813
51142
  p_lines: import("../integrations/supabase/types").Json;
@@ -49911,6 +51240,10 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
49911
51240
  isSetofReturn: false;
49912
51241
  };
49913
51242
  };
51243
+ logistics_cleanup_orphan_print_jobs: {
51244
+ Args: never;
51245
+ Returns: import("../integrations/supabase/types").Json;
51246
+ };
49914
51247
  logistics_complete_task: {
49915
51248
  Args: {
49916
51249
  p_result?: import("../integrations/supabase/types").Json;
@@ -50162,6 +51495,20 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
50162
51495
  };
50163
51496
  Returns: string;
50164
51497
  };
51498
+ logistics_ensure_pick_data: {
51499
+ Args: {
51500
+ p_event_id?: string;
51501
+ p_missing?: import("../integrations/supabase/types").Json;
51502
+ p_ref: string;
51503
+ };
51504
+ Returns: import("../integrations/supabase/types").Json;
51505
+ };
51506
+ logistics_ensure_shipping_notes: {
51507
+ Args: {
51508
+ p_limit?: number;
51509
+ };
51510
+ Returns: import("../integrations/supabase/types").Json;
51511
+ };
50165
51512
  logistics_fail_task: {
50166
51513
  Args: {
50167
51514
  p_error: string;
@@ -50207,6 +51554,10 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
50207
51554
  isSetofReturn: false;
50208
51555
  };
50209
51556
  };
51557
+ logistics_fix_wrong_shipping_notes: {
51558
+ Args: never;
51559
+ Returns: import("../integrations/supabase/types").Json;
51560
+ };
50210
51561
  logistics_floriday_cart_plan: {
50211
51562
  Args: {
50212
51563
  p_order_id: string;
@@ -50234,6 +51585,10 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
50234
51585
  revision: number;
50235
51586
  }[];
50236
51587
  };
51588
+ logistics_floriday_delivery_note_create_enabled: {
51589
+ Args: never;
51590
+ Returns: boolean;
51591
+ };
50237
51592
  logistics_floriday_finish_push: {
50238
51593
  Args: {
50239
51594
  _error?: string;
@@ -50385,6 +51740,12 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
50385
51740
  };
50386
51741
  Returns: number;
50387
51742
  };
51743
+ logistics_merge_partial_carts: {
51744
+ Args: {
51745
+ p_limit?: number;
51746
+ };
51747
+ Returns: import("../integrations/supabase/types").Json;
51748
+ };
50388
51749
  logistics_next_workday_date: {
50389
51750
  Args: {
50390
51751
  p_date: string;
@@ -50471,6 +51832,12 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
50471
51832
  };
50472
51833
  Returns: string;
50473
51834
  };
51835
+ logistics_payload_is_floriday: {
51836
+ Args: {
51837
+ _payload: import("../integrations/supabase/types").Json;
51838
+ };
51839
+ Returns: boolean;
51840
+ };
50474
51841
  logistics_pick_agenda: {
50475
51842
  Args: {
50476
51843
  p_from?: string;
@@ -50499,6 +51866,10 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
50499
51866
  Args: never;
50500
51867
  Returns: import("../integrations/supabase/types").Json;
50501
51868
  };
51869
+ logistics_pick_partial_mode: {
51870
+ Args: never;
51871
+ Returns: string;
51872
+ };
50502
51873
  logistics_pick_start_estimate: {
50503
51874
  Args: {
50504
51875
  p_order: import("../integrations/supabase/types").Json;
@@ -50589,6 +51960,20 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
50589
51960
  Args: never;
50590
51961
  Returns: undefined;
50591
51962
  };
51963
+ logistics_plan_progress: {
51964
+ Args: {
51965
+ p_refs: string[];
51966
+ };
51967
+ Returns: {
51968
+ cart_plan_ready: boolean;
51969
+ cart_plan_reason: string;
51970
+ cart_plan_released: boolean;
51971
+ plan_progress: number;
51972
+ plan_state: string;
51973
+ plan_state_since: string;
51974
+ unit_ref: string;
51975
+ }[];
51976
+ };
50592
51977
  logistics_plan_prune: {
50593
51978
  Args: never;
50594
51979
  Returns: number;
@@ -50610,6 +51995,18 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
50610
51995
  };
50611
51996
  Returns: number;
50612
51997
  };
51998
+ logistics_plan_state_for: {
51999
+ Args: {
52000
+ p_ref: string;
52001
+ };
52002
+ Returns: import("../integrations/supabase/types").Json;
52003
+ };
52004
+ logistics_prepare_pick_documents: {
52005
+ Args: {
52006
+ p_limit?: number;
52007
+ };
52008
+ Returns: import("../integrations/supabase/types").Json;
52009
+ };
50613
52010
  logistics_prune_buffer_member_queue: {
50614
52011
  Args: never;
50615
52012
  Returns: number;
@@ -50650,18 +52047,36 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
50650
52047
  Args: never;
50651
52048
  Returns: import("../integrations/supabase/types").Json;
50652
52049
  };
52050
+ logistics_refresh_pick_queue_status: {
52051
+ Args: {
52052
+ p_ref: string;
52053
+ };
52054
+ Returns: number;
52055
+ };
50653
52056
  logistics_refresh_pickup_moments: {
50654
52057
  Args: {
50655
52058
  p_weeks?: number;
50656
52059
  };
50657
52060
  Returns: import("../integrations/supabase/types").Json;
50658
52061
  };
52062
+ logistics_refresh_plan_state: {
52063
+ Args: {
52064
+ p_limit?: number;
52065
+ };
52066
+ Returns: import("../integrations/supabase/types").Json;
52067
+ };
50659
52068
  logistics_replan_all: {
50660
52069
  Args: {
50661
52070
  p_reason?: string;
50662
52071
  };
50663
52072
  Returns: import("../integrations/supabase/types").Json;
50664
52073
  };
52074
+ logistics_replan_all_force: {
52075
+ Args: {
52076
+ p_reason?: string;
52077
+ };
52078
+ Returns: import("../integrations/supabase/types").Json;
52079
+ };
50665
52080
  logistics_report_delay: {
50666
52081
  Args: {
50667
52082
  p_expected_date?: string;
@@ -50818,6 +52233,74 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
50818
52233
  };
50819
52234
  Returns: import("../integrations/supabase/types").Json;
50820
52235
  };
52236
+ logistics_shipping_note_job_for_slip: {
52237
+ Args: {
52238
+ _slip_job_id: string;
52239
+ };
52240
+ Returns: string;
52241
+ };
52242
+ logistics_shipping_notes_wake_all: {
52243
+ Args: never;
52244
+ Returns: import("../integrations/supabase/types").Json;
52245
+ };
52246
+ logistics_slip_is_floriday: {
52247
+ Args: {
52248
+ _slip_job_id: string;
52249
+ };
52250
+ Returns: boolean;
52251
+ };
52252
+ logistics_slip_note_claim: {
52253
+ Args: {
52254
+ _lease_seconds?: number;
52255
+ _limit?: number;
52256
+ };
52257
+ Returns: {
52258
+ attempts: number;
52259
+ batch_key: string | null;
52260
+ cart_id: string | null;
52261
+ created_at: string;
52262
+ error: string | null;
52263
+ error_code: string | null;
52264
+ fulfillment_order_id: string | null;
52265
+ id: string;
52266
+ locked_until: string | null;
52267
+ next_attempt_at: string | null;
52268
+ order_id: string | null;
52269
+ order_number: string | null;
52270
+ print_job_id: string | null;
52271
+ printer_id: string | null;
52272
+ retry_class: string | null;
52273
+ slip_job_id: string;
52274
+ status: string;
52275
+ updated_at: string;
52276
+ }[];
52277
+ SetofOptions: {
52278
+ from: "*";
52279
+ to: "logistics_slip_shipping_note";
52280
+ isOneToOne: false;
52281
+ isSetofReturn: true;
52282
+ };
52283
+ };
52284
+ logistics_slip_note_finish: {
52285
+ Args: {
52286
+ _error?: string;
52287
+ _error_code?: string;
52288
+ _fulfillment_order_id?: string;
52289
+ _id: string;
52290
+ _ok: boolean;
52291
+ _print_job_id?: string;
52292
+ _status?: string;
52293
+ };
52294
+ Returns: undefined;
52295
+ };
52296
+ logistics_slip_note_keep_waiting: {
52297
+ Args: {
52298
+ _class?: string;
52299
+ _id: string;
52300
+ _reason: string;
52301
+ };
52302
+ Returns: undefined;
52303
+ };
50821
52304
  logistics_sticker_follows_slip: {
50822
52305
  Args: never;
50823
52306
  Returns: boolean;
@@ -50872,6 +52355,40 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
50872
52355
  name: string;
50873
52356
  }[];
50874
52357
  };
52358
+ logistics_trace: {
52359
+ Args: {
52360
+ p: import("../integrations/supabase/types").Json;
52361
+ };
52362
+ Returns: string;
52363
+ };
52364
+ logistics_trace_batch: {
52365
+ Args: {
52366
+ p: import("../integrations/supabase/types").Json;
52367
+ };
52368
+ Returns: number;
52369
+ };
52370
+ logistics_trace_orders: {
52371
+ Args: {
52372
+ p_limit?: number;
52373
+ p_search?: string;
52374
+ p_since?: string;
52375
+ p_status?: string;
52376
+ };
52377
+ Returns: import("../integrations/supabase/types").Json;
52378
+ };
52379
+ logistics_trace_redact: {
52380
+ Args: {
52381
+ p: import("../integrations/supabase/types").Json;
52382
+ };
52383
+ Returns: import("../integrations/supabase/types").Json;
52384
+ };
52385
+ logistics_trace_timeline: {
52386
+ Args: {
52387
+ p_limit?: number;
52388
+ p_order_ref: string;
52389
+ };
52390
+ Returns: import("../integrations/supabase/types").Json;
52391
+ };
50875
52392
  logistics_upsert_task: {
50876
52393
  Args: {
50877
52394
  p_buffer_ref: string;
@@ -51913,6 +53430,10 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
51913
53430
  };
51914
53431
  Returns: undefined;
51915
53432
  };
53433
+ prune_floriday_api_log: {
53434
+ Args: never;
53435
+ Returns: number;
53436
+ };
51916
53437
  quote_create_from_source: {
51917
53438
  Args: {
51918
53439
  _payload?: import("../integrations/supabase/types").Json;
@@ -52346,6 +53867,13 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
52346
53867
  };
52347
53868
  Returns: number;
52348
53869
  };
53870
+ schedule_floriday_catalog_prices_sync: {
53871
+ Args: {
53872
+ p_apikey: string;
53873
+ p_url: string;
53874
+ };
53875
+ Returns: number;
53876
+ };
52349
53877
  schedule_floriday_clock_presales_sync: {
52350
53878
  Args: {
52351
53879
  p_apikey: string;
@@ -52646,6 +54174,10 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
52646
54174
  };
52647
54175
  Returns: undefined;
52648
54176
  };
54177
+ sync_floriday_prices_into_price_groups: {
54178
+ Args: never;
54179
+ Returns: number;
54180
+ };
52649
54181
  sync_layer_stock: {
52650
54182
  Args: {
52651
54183
  p_product_id: string;
@@ -52778,6 +54310,10 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
52778
54310
  Args: never;
52779
54311
  Returns: string;
52780
54312
  };
54313
+ voorraad_cleanup_old_rows: {
54314
+ Args: never;
54315
+ Returns: import("../integrations/supabase/types").Json;
54316
+ };
52781
54317
  wake_print_queue: {
52782
54318
  Args: {
52783
54319
  _min_interval_ms?: number;
@@ -52931,7 +54467,9 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
52931
54467
  last_synced_at?: string | null;
52932
54468
  provider: string;
52933
54469
  selected_calendars?: import("../integrations/supabase/types").Json;
52934
- status?: string;
54470
+ status
54471
+ /** Haalt alle orders van dezelfde buffer als de gegeven order. */
54472
+ ?: string;
52935
54473
  sync_mode?: string;
52936
54474
  updated_at?: string;
52937
54475
  user_id: string;
@@ -55078,6 +56616,45 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
55078
56616
  };
55079
56617
  Relationships: [];
55080
56618
  };
56619
+ customer_product_stickers: {
56620
+ Row: {
56621
+ created_at: string;
56622
+ customer_key: string;
56623
+ file_name: string;
56624
+ file_path: string;
56625
+ file_size: number | null;
56626
+ id: string;
56627
+ mime_type: string | null;
56628
+ trade_item_key: string;
56629
+ updated_at: string;
56630
+ uploaded_by: string | null;
56631
+ };
56632
+ Insert: {
56633
+ created_at?: string;
56634
+ customer_key: string;
56635
+ file_name: string;
56636
+ file_path: string;
56637
+ file_size?: number | null;
56638
+ id?: string;
56639
+ mime_type?: string | null;
56640
+ trade_item_key: string;
56641
+ updated_at?: string;
56642
+ uploaded_by?: string | null;
56643
+ };
56644
+ Update: {
56645
+ created_at?: string;
56646
+ customer_key?: string;
56647
+ file_name?: string;
56648
+ file_path?: string;
56649
+ file_size?: number | null;
56650
+ id?: string;
56651
+ mime_type?: string | null;
56652
+ trade_item_key?: string;
56653
+ updated_at?: string;
56654
+ uploaded_by?: string | null;
56655
+ };
56656
+ Relationships: [];
56657
+ };
55081
56658
  customer_selected_assortment: {
55082
56659
  Row: {
55083
56660
  article_number: string | null;
@@ -55126,6 +56703,30 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
55126
56703
  referencedColumns: ["id"];
55127
56704
  }];
55128
56705
  };
56706
+ customer_sticker_settings: {
56707
+ Row: {
56708
+ created_at: string;
56709
+ customer_key: string;
56710
+ height_mm: number;
56711
+ updated_at: string;
56712
+ width_mm: number;
56713
+ };
56714
+ Insert: {
56715
+ created_at?: string;
56716
+ customer_key: string;
56717
+ height_mm?: number;
56718
+ updated_at?: string;
56719
+ width_mm?: number;
56720
+ };
56721
+ Update: {
56722
+ created_at?: string;
56723
+ customer_key?: string;
56724
+ height_mm?: number;
56725
+ updated_at?: string;
56726
+ width_mm?: number;
56727
+ };
56728
+ Relationships: [];
56729
+ };
55129
56730
  customer_trade_settings: {
55130
56731
  Row: {
55131
56732
  category: string;
@@ -58456,6 +60057,102 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
58456
60057
  referencedColumns: ["id"];
58457
60058
  }];
58458
60059
  };
60060
+ floriday_api_log: {
60061
+ Row: {
60062
+ action: string | null;
60063
+ caller: string | null;
60064
+ connection_id: string | null;
60065
+ created_at: string;
60066
+ cursor_from: number | null;
60067
+ direction: string;
60068
+ duration_ms: number | null;
60069
+ environment: string | null;
60070
+ error: string | null;
60071
+ floriday_id: string | null;
60072
+ floriday_reference: string | null;
60073
+ http_status: number;
60074
+ id: string;
60075
+ item_count: number | null;
60076
+ kind: string | null;
60077
+ local_id: string | null;
60078
+ local_reference: string | null;
60079
+ method: string;
60080
+ module: string | null;
60081
+ ok: boolean;
60082
+ path: string;
60083
+ request: import("../integrations/supabase/types").Json | null;
60084
+ resource_type: string | null;
60085
+ response: import("../integrations/supabase/types").Json | null;
60086
+ write_log_id: string | null;
60087
+ };
60088
+ Insert: {
60089
+ action?: string | null;
60090
+ caller?: string | null;
60091
+ connection_id?: string | null;
60092
+ created_at?: string;
60093
+ cursor_from?: number | null;
60094
+ direction: string;
60095
+ duration_ms?: number | null;
60096
+ environment?: string | null;
60097
+ error?: string | null;
60098
+ floriday_id?: string | null;
60099
+ floriday_reference?: string | null;
60100
+ http_status?: number;
60101
+ id?: string;
60102
+ item_count?: number | null;
60103
+ kind?: string | null;
60104
+ local_id?: string | null;
60105
+ local_reference?: string | null;
60106
+ method: string;
60107
+ module?: string | null;
60108
+ ok?: boolean;
60109
+ path: string;
60110
+ request?: import("../integrations/supabase/types").Json | null;
60111
+ resource_type?: string | null;
60112
+ response?: import("../integrations/supabase/types").Json | null;
60113
+ write_log_id?: string | null;
60114
+ };
60115
+ Update: {
60116
+ action?: string | null;
60117
+ caller?: string | null;
60118
+ connection_id?: string | null;
60119
+ created_at?: string;
60120
+ cursor_from?: number | null;
60121
+ direction?: string;
60122
+ duration_ms?: number | null;
60123
+ environment?: string | null;
60124
+ error?: string | null;
60125
+ floriday_id?: string | null;
60126
+ floriday_reference?: string | null;
60127
+ http_status?: number;
60128
+ id?: string;
60129
+ item_count?: number | null;
60130
+ kind?: string | null;
60131
+ local_id?: string | null;
60132
+ local_reference?: string | null;
60133
+ method?: string;
60134
+ module?: string | null;
60135
+ ok?: boolean;
60136
+ path?: string;
60137
+ request?: import("../integrations/supabase/types").Json | null;
60138
+ resource_type?: string | null;
60139
+ response?: import("../integrations/supabase/types").Json | null;
60140
+ write_log_id?: string | null;
60141
+ };
60142
+ Relationships: [{
60143
+ foreignKeyName: "floriday_api_log_connection_id_fkey";
60144
+ columns: ["connection_id"];
60145
+ isOneToOne: false;
60146
+ referencedRelation: "floriday_connections";
60147
+ referencedColumns: ["id"];
60148
+ }, {
60149
+ foreignKeyName: "floriday_api_log_write_log_id_fkey";
60150
+ columns: ["write_log_id"];
60151
+ isOneToOne: false;
60152
+ referencedRelation: "floriday_write_log";
60153
+ referencedColumns: ["id"];
60154
+ }];
60155
+ };
58459
60156
  floriday_auction_letters_cache: {
58460
60157
  Row: {
58461
60158
  auction_letter_code: string;
@@ -58663,6 +60360,84 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
58663
60360
  referencedColumns: ["id"];
58664
60361
  }];
58665
60362
  };
60363
+ floriday_catalog_prices_cache: {
60364
+ Row: {
60365
+ connection_id: string;
60366
+ created_at: string;
60367
+ currency: string;
60368
+ id: string;
60369
+ is_deleted: boolean;
60370
+ price: number | null;
60371
+ price_group_id: string | null;
60372
+ price_group_name: string | null;
60373
+ price_type: string;
60374
+ raw: import("../integrations/supabase/types").Json | null;
60375
+ sales_unit: string | null;
60376
+ sequence_number: number;
60377
+ supplier_article_code: string | null;
60378
+ supply_line_id: string;
60379
+ synced_at: string;
60380
+ trade_item_id: string | null;
60381
+ updated_at: string;
60382
+ valid_from: string | null;
60383
+ valid_to: string | null;
60384
+ week: number | null;
60385
+ year: number | null;
60386
+ };
60387
+ Insert: {
60388
+ connection_id: string;
60389
+ created_at?: string;
60390
+ currency?: string;
60391
+ id?: string;
60392
+ is_deleted?: boolean;
60393
+ price?: number | null;
60394
+ price_group_id?: string | null;
60395
+ price_group_name?: string | null;
60396
+ price_type?: string;
60397
+ raw?: import("../integrations/supabase/types").Json | null;
60398
+ sales_unit?: string | null;
60399
+ sequence_number?: number;
60400
+ supplier_article_code?: string | null;
60401
+ supply_line_id: string;
60402
+ synced_at?: string;
60403
+ trade_item_id?: string | null;
60404
+ updated_at?: string;
60405
+ valid_from?: string | null;
60406
+ valid_to?: string | null;
60407
+ week?: number | null;
60408
+ year?: number | null;
60409
+ };
60410
+ Update: {
60411
+ connection_id?: string;
60412
+ created_at?: string;
60413
+ currency?: string;
60414
+ id?: string;
60415
+ is_deleted?: boolean;
60416
+ price?: number | null;
60417
+ price_group_id?: string | null;
60418
+ price_group_name?: string | null;
60419
+ price_type?: string;
60420
+ raw?: import("../integrations/supabase/types").Json | null;
60421
+ sales_unit?: string | null;
60422
+ sequence_number?: number;
60423
+ supplier_article_code?: string | null;
60424
+ supply_line_id?: string;
60425
+ synced_at?: string;
60426
+ trade_item_id?: string | null;
60427
+ updated_at?: string;
60428
+ valid_from?: string | null;
60429
+ valid_to?: string | null;
60430
+ week?: number | null;
60431
+ year?: number | null;
60432
+ };
60433
+ Relationships: [{
60434
+ foreignKeyName: "floriday_catalog_prices_cache_connection_id_fkey";
60435
+ columns: ["connection_id"];
60436
+ isOneToOne: false;
60437
+ referencedRelation: "floriday_connections";
60438
+ referencedColumns: ["id"];
60439
+ }];
60440
+ };
58666
60441
  floriday_clock_presales_cache: {
58667
60442
  Row: {
58668
60443
  buyer_organization_id: string | null;
@@ -59578,6 +61353,69 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
59578
61353
  referencedColumns: ["id"];
59579
61354
  }];
59580
61355
  };
61356
+ floriday_link_templates: {
61357
+ Row: {
61358
+ created_at: string;
61359
+ floriday_url_template: string | null;
61360
+ is_active: boolean;
61361
+ label: string;
61362
+ local_url_template: string | null;
61363
+ resource_type: string;
61364
+ updated_at: string;
61365
+ };
61366
+ Insert: {
61367
+ created_at?: string;
61368
+ floriday_url_template?: string | null;
61369
+ is_active?: boolean;
61370
+ label: string;
61371
+ local_url_template?: string | null;
61372
+ resource_type: string;
61373
+ updated_at?: string;
61374
+ };
61375
+ Update: {
61376
+ created_at?: string;
61377
+ floriday_url_template?: string | null;
61378
+ is_active?: boolean;
61379
+ label?: string;
61380
+ local_url_template?: string | null;
61381
+ resource_type?: string;
61382
+ updated_at?: string;
61383
+ };
61384
+ Relationships: [];
61385
+ };
61386
+ floriday_log_retention: {
61387
+ Row: {
61388
+ created_at: string;
61389
+ direction: string | null;
61390
+ id: string;
61391
+ keep_failed_days: number | null;
61392
+ keep_ok_days: number | null;
61393
+ note: string | null;
61394
+ resource_type: string | null;
61395
+ updated_at: string;
61396
+ };
61397
+ Insert: {
61398
+ created_at?: string;
61399
+ direction?: string | null;
61400
+ id?: string;
61401
+ keep_failed_days?: number | null;
61402
+ keep_ok_days?: number | null;
61403
+ note?: string | null;
61404
+ resource_type?: string | null;
61405
+ updated_at?: string;
61406
+ };
61407
+ Update: {
61408
+ created_at?: string;
61409
+ direction?: string | null;
61410
+ id?: string;
61411
+ keep_failed_days?: number | null;
61412
+ keep_ok_days?: number | null;
61413
+ note?: string | null;
61414
+ resource_type?: string | null;
61415
+ updated_at?: string;
61416
+ };
61417
+ Relationships: [];
61418
+ };
59581
61419
  floriday_logistic_labels_cache: {
59582
61420
  Row: {
59583
61421
  byte_size: number | null;
@@ -63202,6 +65040,48 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
63202
65040
  };
63203
65041
  Relationships: [];
63204
65042
  };
65043
+ logistics_pick_data_requests: {
65044
+ Row: {
65045
+ actions: import("../integrations/supabase/types").Json;
65046
+ created_at: string;
65047
+ event_id: string | null;
65048
+ finished_at: string | null;
65049
+ id: string;
65050
+ missing: import("../integrations/supabase/types").Json;
65051
+ order_ref: string;
65052
+ reason: string | null;
65053
+ result: import("../integrations/supabase/types").Json | null;
65054
+ status: string;
65055
+ unit_ref: string | null;
65056
+ };
65057
+ Insert: {
65058
+ actions?: import("../integrations/supabase/types").Json;
65059
+ created_at?: string;
65060
+ event_id?: string | null;
65061
+ finished_at?: string | null;
65062
+ id?: string;
65063
+ missing?: import("../integrations/supabase/types").Json;
65064
+ order_ref: string;
65065
+ reason?: string | null;
65066
+ result?: import("../integrations/supabase/types").Json | null;
65067
+ status?: string;
65068
+ unit_ref?: string | null;
65069
+ };
65070
+ Update: {
65071
+ actions?: import("../integrations/supabase/types").Json;
65072
+ created_at?: string;
65073
+ event_id?: string | null;
65074
+ finished_at?: string | null;
65075
+ id?: string;
65076
+ missing?: import("../integrations/supabase/types").Json;
65077
+ order_ref?: string;
65078
+ reason?: string | null;
65079
+ result?: import("../integrations/supabase/types").Json | null;
65080
+ status?: string;
65081
+ unit_ref?: string | null;
65082
+ };
65083
+ Relationships: [];
65084
+ };
63205
65085
  logistics_pickup_moments: {
63206
65086
  Row: {
63207
65087
  carrier_ref: string | null;
@@ -63661,6 +65541,69 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
63661
65541
  };
63662
65542
  Relationships: [];
63663
65543
  };
65544
+ logistics_slip_shipping_note: {
65545
+ Row: {
65546
+ attempts: number;
65547
+ batch_key: string | null;
65548
+ cart_id: string | null;
65549
+ created_at: string;
65550
+ error: string | null;
65551
+ error_code: string | null;
65552
+ fulfillment_order_id: string | null;
65553
+ id: string;
65554
+ locked_until: string | null;
65555
+ next_attempt_at: string | null;
65556
+ order_id: string | null;
65557
+ order_number: string | null;
65558
+ print_job_id: string | null;
65559
+ printer_id: string | null;
65560
+ retry_class: string | null;
65561
+ slip_job_id: string;
65562
+ status: string;
65563
+ updated_at: string;
65564
+ };
65565
+ Insert: {
65566
+ attempts?: number;
65567
+ batch_key?: string | null;
65568
+ cart_id?: string | null;
65569
+ created_at?: string;
65570
+ error?: string | null;
65571
+ error_code?: string | null;
65572
+ fulfillment_order_id?: string | null;
65573
+ id?: string;
65574
+ locked_until?: string | null;
65575
+ next_attempt_at?: string | null;
65576
+ order_id?: string | null;
65577
+ order_number?: string | null;
65578
+ print_job_id?: string | null;
65579
+ printer_id?: string | null;
65580
+ retry_class?: string | null;
65581
+ slip_job_id: string;
65582
+ status?: string;
65583
+ updated_at?: string;
65584
+ };
65585
+ Update: {
65586
+ attempts?: number;
65587
+ batch_key?: string | null;
65588
+ cart_id?: string | null;
65589
+ created_at?: string;
65590
+ error?: string | null;
65591
+ error_code?: string | null;
65592
+ fulfillment_order_id?: string | null;
65593
+ id?: string;
65594
+ locked_until?: string | null;
65595
+ next_attempt_at?: string | null;
65596
+ order_id?: string | null;
65597
+ order_number?: string | null;
65598
+ print_job_id?: string | null;
65599
+ printer_id?: string | null;
65600
+ retry_class?: string | null;
65601
+ slip_job_id?: string;
65602
+ status?: string;
65603
+ updated_at?: string;
65604
+ };
65605
+ Relationships: [];
65606
+ };
63664
65607
  logistics_staff_planning: {
63665
65608
  Row: {
63666
65609
  created_at: string;
@@ -64012,6 +65955,111 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
64012
65955
  };
64013
65956
  Relationships: [];
64014
65957
  };
65958
+ logistics_trace_events: {
65959
+ Row: {
65960
+ actor: string | null;
65961
+ attempts: number;
65962
+ cart_ref: string | null;
65963
+ created_at: string;
65964
+ db_action: string | null;
65965
+ db_new: import("../integrations/supabase/types").Json | null;
65966
+ db_old: import("../integrations/supabase/types").Json | null;
65967
+ db_record: string | null;
65968
+ db_table: string | null;
65969
+ decision: string | null;
65970
+ duration_ms: number | null;
65971
+ error: string | null;
65972
+ external_action: string | null;
65973
+ external_ref: string | null;
65974
+ external_response: import("../integrations/supabase/types").Json | null;
65975
+ external_status: string | null;
65976
+ external_system: string | null;
65977
+ id: string;
65978
+ input: import("../integrations/supabase/types").Json | null;
65979
+ next_attempt_at: string | null;
65980
+ order_ref: string | null;
65981
+ order_source: string | null;
65982
+ output: import("../integrations/supabase/types").Json | null;
65983
+ phase: string;
65984
+ reads: import("../integrations/supabase/types").Json | null;
65985
+ reason: string | null;
65986
+ rule: string | null;
65987
+ slip_ref: string | null;
65988
+ status: string;
65989
+ step: string;
65990
+ trace_id: string;
65991
+ values_used: import("../integrations/supabase/types").Json | null;
65992
+ };
65993
+ Insert: {
65994
+ actor?: string | null;
65995
+ attempts?: number;
65996
+ cart_ref?: string | null;
65997
+ created_at?: string;
65998
+ db_action?: string | null;
65999
+ db_new?: import("../integrations/supabase/types").Json | null;
66000
+ db_old?: import("../integrations/supabase/types").Json | null;
66001
+ db_record?: string | null;
66002
+ db_table?: string | null;
66003
+ decision?: string | null;
66004
+ duration_ms?: number | null;
66005
+ error?: string | null;
66006
+ external_action?: string | null;
66007
+ external_ref?: string | null;
66008
+ external_response?: import("../integrations/supabase/types").Json | null;
66009
+ external_status?: string | null;
66010
+ external_system?: string | null;
66011
+ id?: string;
66012
+ input?: import("../integrations/supabase/types").Json | null;
66013
+ next_attempt_at?: string | null;
66014
+ order_ref?: string | null;
66015
+ order_source?: string | null;
66016
+ output?: import("../integrations/supabase/types").Json | null;
66017
+ phase: string;
66018
+ reads?: import("../integrations/supabase/types").Json | null;
66019
+ reason?: string | null;
66020
+ rule?: string | null;
66021
+ slip_ref?: string | null;
66022
+ status: string;
66023
+ step: string;
66024
+ trace_id?: string;
66025
+ values_used?: import("../integrations/supabase/types").Json | null;
66026
+ };
66027
+ Update: {
66028
+ actor?: string | null;
66029
+ attempts?: number;
66030
+ cart_ref?: string | null;
66031
+ created_at?: string;
66032
+ db_action?: string | null;
66033
+ db_new?: import("../integrations/supabase/types").Json | null;
66034
+ db_old?: import("../integrations/supabase/types").Json | null;
66035
+ db_record?: string | null;
66036
+ db_table?: string | null;
66037
+ decision?: string | null;
66038
+ duration_ms?: number | null;
66039
+ error?: string | null;
66040
+ external_action?: string | null;
66041
+ external_ref?: string | null;
66042
+ external_response?: import("../integrations/supabase/types").Json | null;
66043
+ external_status?: string | null;
66044
+ external_system?: string | null;
66045
+ id?: string;
66046
+ input?: import("../integrations/supabase/types").Json | null;
66047
+ next_attempt_at?: string | null;
66048
+ order_ref?: string | null;
66049
+ order_source?: string | null;
66050
+ output?: import("../integrations/supabase/types").Json | null;
66051
+ phase?: string;
66052
+ reads?: import("../integrations/supabase/types").Json | null;
66053
+ reason?: string | null;
66054
+ rule?: string | null;
66055
+ slip_ref?: string | null;
66056
+ status?: string;
66057
+ step?: string;
66058
+ trace_id?: string;
66059
+ values_used?: import("../integrations/supabase/types").Json | null;
66060
+ };
66061
+ Relationships: [];
66062
+ };
64015
66063
  logistics_variables: {
64016
66064
  Row: {
64017
66065
  created_at: string;
@@ -74584,6 +76632,15 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
74584
76632
  Args: never;
74585
76633
  Returns: boolean;
74586
76634
  };
76635
+ cancel_open_print_jobs: {
76636
+ Args: {
76637
+ _cutoff: string;
76638
+ };
76639
+ Returns: {
76640
+ extern_job_id: string;
76641
+ id: string;
76642
+ }[];
76643
+ };
74587
76644
  check_offer_product_available_stock: {
74588
76645
  Args: {
74589
76646
  p_campaign_product_id: string;
@@ -76122,6 +78179,12 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
76122
78179
  };
76123
78180
  Returns: string;
76124
78181
  };
78182
+ logistics_cart_checkin_at: {
78183
+ Args: {
78184
+ p_cart_id: string;
78185
+ };
78186
+ Returns: string;
78187
+ };
76125
78188
  logistics_cart_handled: {
76126
78189
  Args: {
76127
78190
  p_cart_index: number;
@@ -76155,10 +78218,22 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
76155
78218
  task_status: string;
76156
78219
  }[];
76157
78220
  };
78221
+ logistics_cart_is_full: {
78222
+ Args: {
78223
+ p_cart_id: string;
78224
+ };
78225
+ Returns: boolean;
78226
+ };
76158
78227
  logistics_cart_layout_method: {
76159
78228
  Args: never;
76160
78229
  Returns: import("../integrations/supabase/types").Json;
76161
78230
  };
78231
+ logistics_cart_order_refs: {
78232
+ Args: {
78233
+ p_cart_id: string;
78234
+ };
78235
+ Returns: string[];
78236
+ };
76162
78237
  logistics_cart_plan_overview: {
76163
78238
  Args: {
76164
78239
  p_days?: number;
@@ -76178,6 +78253,24 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
76178
78253
  };
76179
78254
  Returns: import("../integrations/supabase/types").Json;
76180
78255
  };
78256
+ logistics_cart_plan_status_core: {
78257
+ Args: {
78258
+ p_ref: string;
78259
+ };
78260
+ Returns: import("../integrations/supabase/types").Json;
78261
+ };
78262
+ logistics_cart_release_reason: {
78263
+ Args: {
78264
+ p_cart_id: string;
78265
+ };
78266
+ Returns: string;
78267
+ };
78268
+ logistics_cart_released: {
78269
+ Args: {
78270
+ p_cart_id: string;
78271
+ };
78272
+ Returns: boolean;
78273
+ };
76181
78274
  logistics_cart_seq: {
76182
78275
  Args: {
76183
78276
  p_order_uuid?: string;
@@ -76228,6 +78321,10 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
76228
78321
  unit_ref: string;
76229
78322
  }[];
76230
78323
  };
78324
+ logistics_carts_per_print: {
78325
+ Args: never;
78326
+ Returns: number;
78327
+ };
76231
78328
  logistics_check_order_allowed: {
76232
78329
  Args: {
76233
78330
  p_lines: import("../integrations/supabase/types").Json;
@@ -76331,6 +78428,10 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
76331
78428
  isSetofReturn: false;
76332
78429
  };
76333
78430
  };
78431
+ logistics_cleanup_orphan_print_jobs: {
78432
+ Args: never;
78433
+ Returns: import("../integrations/supabase/types").Json;
78434
+ };
76334
78435
  logistics_complete_task: {
76335
78436
  Args: {
76336
78437
  p_result?: import("../integrations/supabase/types").Json;
@@ -76582,6 +78683,20 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
76582
78683
  };
76583
78684
  Returns: string;
76584
78685
  };
78686
+ logistics_ensure_pick_data: {
78687
+ Args: {
78688
+ p_event_id?: string;
78689
+ p_missing?: import("../integrations/supabase/types").Json;
78690
+ p_ref: string;
78691
+ };
78692
+ Returns: import("../integrations/supabase/types").Json;
78693
+ };
78694
+ logistics_ensure_shipping_notes: {
78695
+ Args: {
78696
+ p_limit?: number;
78697
+ };
78698
+ Returns: import("../integrations/supabase/types").Json;
78699
+ };
76585
78700
  logistics_fail_task: {
76586
78701
  Args: {
76587
78702
  p_error: string;
@@ -76627,6 +78742,10 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
76627
78742
  isSetofReturn: false;
76628
78743
  };
76629
78744
  };
78745
+ logistics_fix_wrong_shipping_notes: {
78746
+ Args: never;
78747
+ Returns: import("../integrations/supabase/types").Json;
78748
+ };
76630
78749
  logistics_floriday_cart_plan: {
76631
78750
  Args: {
76632
78751
  p_order_id: string;
@@ -76654,6 +78773,10 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
76654
78773
  revision: number;
76655
78774
  }[];
76656
78775
  };
78776
+ logistics_floriday_delivery_note_create_enabled: {
78777
+ Args: never;
78778
+ Returns: boolean;
78779
+ };
76657
78780
  logistics_floriday_finish_push: {
76658
78781
  Args: {
76659
78782
  _error?: string;
@@ -76805,6 +78928,12 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
76805
78928
  };
76806
78929
  Returns: number;
76807
78930
  };
78931
+ logistics_merge_partial_carts: {
78932
+ Args: {
78933
+ p_limit?: number;
78934
+ };
78935
+ Returns: import("../integrations/supabase/types").Json;
78936
+ };
76808
78937
  logistics_next_workday_date: {
76809
78938
  Args: {
76810
78939
  p_date: string;
@@ -76891,6 +79020,12 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
76891
79020
  };
76892
79021
  Returns: string;
76893
79022
  };
79023
+ logistics_payload_is_floriday: {
79024
+ Args: {
79025
+ _payload: import("../integrations/supabase/types").Json;
79026
+ };
79027
+ Returns: boolean;
79028
+ };
76894
79029
  logistics_pick_agenda: {
76895
79030
  Args: {
76896
79031
  p_from?: string;
@@ -76919,6 +79054,10 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
76919
79054
  Args: never;
76920
79055
  Returns: import("../integrations/supabase/types").Json;
76921
79056
  };
79057
+ logistics_pick_partial_mode: {
79058
+ Args: never;
79059
+ Returns: string;
79060
+ };
76922
79061
  logistics_pick_start_estimate: {
76923
79062
  Args: {
76924
79063
  p_order: import("../integrations/supabase/types").Json;
@@ -77009,6 +79148,20 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
77009
79148
  Args: never;
77010
79149
  Returns: undefined;
77011
79150
  };
79151
+ logistics_plan_progress: {
79152
+ Args: {
79153
+ p_refs: string[];
79154
+ };
79155
+ Returns: {
79156
+ cart_plan_ready: boolean;
79157
+ cart_plan_reason: string;
79158
+ cart_plan_released: boolean;
79159
+ plan_progress: number;
79160
+ plan_state: string;
79161
+ plan_state_since: string;
79162
+ unit_ref: string;
79163
+ }[];
79164
+ };
77012
79165
  logistics_plan_prune: {
77013
79166
  Args: never;
77014
79167
  Returns: number;
@@ -77030,6 +79183,18 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
77030
79183
  };
77031
79184
  Returns: number;
77032
79185
  };
79186
+ logistics_plan_state_for: {
79187
+ Args: {
79188
+ p_ref: string;
79189
+ };
79190
+ Returns: import("../integrations/supabase/types").Json;
79191
+ };
79192
+ logistics_prepare_pick_documents: {
79193
+ Args: {
79194
+ p_limit?: number;
79195
+ };
79196
+ Returns: import("../integrations/supabase/types").Json;
79197
+ };
77033
79198
  logistics_prune_buffer_member_queue: {
77034
79199
  Args: never;
77035
79200
  Returns: number;
@@ -77070,18 +79235,36 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
77070
79235
  Args: never;
77071
79236
  Returns: import("../integrations/supabase/types").Json;
77072
79237
  };
79238
+ logistics_refresh_pick_queue_status: {
79239
+ Args: {
79240
+ p_ref: string;
79241
+ };
79242
+ Returns: number;
79243
+ };
77073
79244
  logistics_refresh_pickup_moments: {
77074
79245
  Args: {
77075
79246
  p_weeks?: number;
77076
79247
  };
77077
79248
  Returns: import("../integrations/supabase/types").Json;
77078
79249
  };
79250
+ logistics_refresh_plan_state: {
79251
+ Args: {
79252
+ p_limit?: number;
79253
+ };
79254
+ Returns: import("../integrations/supabase/types").Json;
79255
+ };
77079
79256
  logistics_replan_all: {
77080
79257
  Args: {
77081
79258
  p_reason?: string;
77082
79259
  };
77083
79260
  Returns: import("../integrations/supabase/types").Json;
77084
79261
  };
79262
+ logistics_replan_all_force: {
79263
+ Args: {
79264
+ p_reason?: string;
79265
+ };
79266
+ Returns: import("../integrations/supabase/types").Json;
79267
+ };
77085
79268
  logistics_report_delay: {
77086
79269
  Args: {
77087
79270
  p_expected_date?: string;
@@ -77238,6 +79421,74 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
77238
79421
  };
77239
79422
  Returns: import("../integrations/supabase/types").Json;
77240
79423
  };
79424
+ logistics_shipping_note_job_for_slip: {
79425
+ Args: {
79426
+ _slip_job_id: string;
79427
+ };
79428
+ Returns: string;
79429
+ };
79430
+ logistics_shipping_notes_wake_all: {
79431
+ Args: never;
79432
+ Returns: import("../integrations/supabase/types").Json;
79433
+ };
79434
+ logistics_slip_is_floriday: {
79435
+ Args: {
79436
+ _slip_job_id: string;
79437
+ };
79438
+ Returns: boolean;
79439
+ };
79440
+ logistics_slip_note_claim: {
79441
+ Args: {
79442
+ _lease_seconds?: number;
79443
+ _limit?: number;
79444
+ };
79445
+ Returns: {
79446
+ attempts: number;
79447
+ batch_key: string | null;
79448
+ cart_id: string | null;
79449
+ created_at: string;
79450
+ error: string | null;
79451
+ error_code: string | null;
79452
+ fulfillment_order_id: string | null;
79453
+ id: string;
79454
+ locked_until: string | null;
79455
+ next_attempt_at: string | null;
79456
+ order_id: string | null;
79457
+ order_number: string | null;
79458
+ print_job_id: string | null;
79459
+ printer_id: string | null;
79460
+ retry_class: string | null;
79461
+ slip_job_id: string;
79462
+ status: string;
79463
+ updated_at: string;
79464
+ }[];
79465
+ SetofOptions: {
79466
+ from: "*";
79467
+ to: "logistics_slip_shipping_note";
79468
+ isOneToOne: false;
79469
+ isSetofReturn: true;
79470
+ };
79471
+ };
79472
+ logistics_slip_note_finish: {
79473
+ Args: {
79474
+ _error?: string;
79475
+ _error_code?: string;
79476
+ _fulfillment_order_id?: string;
79477
+ _id: string;
79478
+ _ok: boolean;
79479
+ _print_job_id?: string;
79480
+ _status?: string;
79481
+ };
79482
+ Returns: undefined;
79483
+ };
79484
+ logistics_slip_note_keep_waiting: {
79485
+ Args: {
79486
+ _class?: string;
79487
+ _id: string;
79488
+ _reason: string;
79489
+ };
79490
+ Returns: undefined;
79491
+ };
77241
79492
  logistics_sticker_follows_slip: {
77242
79493
  Args: never;
77243
79494
  Returns: boolean;
@@ -77292,6 +79543,40 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
77292
79543
  name: string;
77293
79544
  }[];
77294
79545
  };
79546
+ logistics_trace: {
79547
+ Args: {
79548
+ p: import("../integrations/supabase/types").Json;
79549
+ };
79550
+ Returns: string;
79551
+ };
79552
+ logistics_trace_batch: {
79553
+ Args: {
79554
+ p: import("../integrations/supabase/types").Json;
79555
+ };
79556
+ Returns: number;
79557
+ };
79558
+ logistics_trace_orders: {
79559
+ Args: {
79560
+ p_limit?: number;
79561
+ p_search?: string;
79562
+ p_since?: string;
79563
+ p_status?: string;
79564
+ };
79565
+ Returns: import("../integrations/supabase/types").Json;
79566
+ };
79567
+ logistics_trace_redact: {
79568
+ Args: {
79569
+ p: import("../integrations/supabase/types").Json;
79570
+ };
79571
+ Returns: import("../integrations/supabase/types").Json;
79572
+ };
79573
+ logistics_trace_timeline: {
79574
+ Args: {
79575
+ p_limit?: number;
79576
+ p_order_ref: string;
79577
+ };
79578
+ Returns: import("../integrations/supabase/types").Json;
79579
+ };
77295
79580
  logistics_upsert_task: {
77296
79581
  Args: {
77297
79582
  p_buffer_ref: string;
@@ -78333,6 +80618,10 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
78333
80618
  };
78334
80619
  Returns: undefined;
78335
80620
  };
80621
+ prune_floriday_api_log: {
80622
+ Args: never;
80623
+ Returns: number;
80624
+ };
78336
80625
  quote_create_from_source: {
78337
80626
  Args: {
78338
80627
  _payload?: import("../integrations/supabase/types").Json;
@@ -78766,6 +81055,13 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
78766
81055
  };
78767
81056
  Returns: number;
78768
81057
  };
81058
+ schedule_floriday_catalog_prices_sync: {
81059
+ Args: {
81060
+ p_apikey: string;
81061
+ p_url: string;
81062
+ };
81063
+ Returns: number;
81064
+ };
78769
81065
  schedule_floriday_clock_presales_sync: {
78770
81066
  Args: {
78771
81067
  p_apikey: string;
@@ -79066,6 +81362,10 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
79066
81362
  };
79067
81363
  Returns: undefined;
79068
81364
  };
81365
+ sync_floriday_prices_into_price_groups: {
81366
+ Args: never;
81367
+ Returns: number;
81368
+ };
79069
81369
  sync_layer_stock: {
79070
81370
  Args: {
79071
81371
  p_product_id: string;
@@ -79198,6 +81498,10 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
79198
81498
  Args: never;
79199
81499
  Returns: string;
79200
81500
  };
81501
+ voorraad_cleanup_old_rows: {
81502
+ Args: never;
81503
+ Returns: import("../integrations/supabase/types").Json;
81504
+ };
79201
81505
  wake_print_queue: {
79202
81506
  Args: {
79203
81507
  _min_interval_ms?: number;