@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
@@ -2239,6 +2239,45 @@ export declare const listOpenStockConsumptionAlerts: import("@tanstack/start-cli
2239
2239
  };
2240
2240
  Relationships: [];
2241
2241
  };
2242
+ customer_product_stickers: {
2243
+ Row: {
2244
+ created_at: string;
2245
+ customer_key: string;
2246
+ file_name: string;
2247
+ file_path: string;
2248
+ file_size: number | null;
2249
+ id: string;
2250
+ mime_type: string | null;
2251
+ trade_item_key: string;
2252
+ updated_at: string;
2253
+ uploaded_by: string | null;
2254
+ };
2255
+ Insert: {
2256
+ created_at?: string;
2257
+ customer_key: string;
2258
+ file_name: string;
2259
+ file_path: string;
2260
+ file_size?: number | null;
2261
+ id?: string;
2262
+ mime_type?: string | null;
2263
+ trade_item_key: string;
2264
+ updated_at?: string;
2265
+ uploaded_by?: string | null;
2266
+ };
2267
+ Update: {
2268
+ created_at?: string;
2269
+ customer_key?: string;
2270
+ file_name?: string;
2271
+ file_path?: string;
2272
+ file_size?: number | null;
2273
+ id?: string;
2274
+ mime_type?: string | null;
2275
+ trade_item_key?: string;
2276
+ updated_at?: string;
2277
+ uploaded_by?: string | null;
2278
+ };
2279
+ Relationships: [];
2280
+ };
2242
2281
  customer_selected_assortment: {
2243
2282
  Row: {
2244
2283
  article_number: string | null;
@@ -2287,6 +2326,30 @@ export declare const listOpenStockConsumptionAlerts: import("@tanstack/start-cli
2287
2326
  referencedColumns: ["id"];
2288
2327
  }];
2289
2328
  };
2329
+ customer_sticker_settings: {
2330
+ Row: {
2331
+ created_at: string;
2332
+ customer_key: string;
2333
+ height_mm: number;
2334
+ updated_at: string;
2335
+ width_mm: number;
2336
+ };
2337
+ Insert: {
2338
+ created_at?: string;
2339
+ customer_key: string;
2340
+ height_mm?: number;
2341
+ updated_at?: string;
2342
+ width_mm?: number;
2343
+ };
2344
+ Update: {
2345
+ created_at?: string;
2346
+ customer_key?: string;
2347
+ height_mm?: number;
2348
+ updated_at?: string;
2349
+ width_mm?: number;
2350
+ };
2351
+ Relationships: [];
2352
+ };
2290
2353
  customer_trade_settings: {
2291
2354
  Row: {
2292
2355
  category: string;
@@ -5617,6 +5680,102 @@ export declare const listOpenStockConsumptionAlerts: import("@tanstack/start-cli
5617
5680
  referencedColumns: ["id"];
5618
5681
  }];
5619
5682
  };
5683
+ floriday_api_log: {
5684
+ Row: {
5685
+ action: string | null;
5686
+ caller: string | null;
5687
+ connection_id: string | null;
5688
+ created_at: string;
5689
+ cursor_from: number | null;
5690
+ direction: string;
5691
+ duration_ms: number | null;
5692
+ environment: string | null;
5693
+ error: string | null;
5694
+ floriday_id: string | null;
5695
+ floriday_reference: string | null;
5696
+ http_status: number;
5697
+ id: string;
5698
+ item_count: number | null;
5699
+ kind: string | null;
5700
+ local_id: string | null;
5701
+ local_reference: string | null;
5702
+ method: string;
5703
+ module: string | null;
5704
+ ok: boolean;
5705
+ path: string;
5706
+ request: import("../integrations/supabase/types").Json | null;
5707
+ resource_type: string | null;
5708
+ response: import("../integrations/supabase/types").Json | null;
5709
+ write_log_id: string | null;
5710
+ };
5711
+ Insert: {
5712
+ action?: string | null;
5713
+ caller?: string | null;
5714
+ connection_id?: string | null;
5715
+ created_at?: string;
5716
+ cursor_from?: number | null;
5717
+ direction: string;
5718
+ duration_ms?: number | null;
5719
+ environment?: string | null;
5720
+ error?: string | null;
5721
+ floriday_id?: string | null;
5722
+ floriday_reference?: string | null;
5723
+ http_status?: number;
5724
+ id?: string;
5725
+ item_count?: number | null;
5726
+ kind?: string | null;
5727
+ local_id?: string | null;
5728
+ local_reference?: string | null;
5729
+ method: string;
5730
+ module?: string | null;
5731
+ ok?: boolean;
5732
+ path: string;
5733
+ request?: import("../integrations/supabase/types").Json | null;
5734
+ resource_type?: string | null;
5735
+ response?: import("../integrations/supabase/types").Json | null;
5736
+ write_log_id?: string | null;
5737
+ };
5738
+ Update: {
5739
+ action?: string | null;
5740
+ caller?: string | null;
5741
+ connection_id?: string | null;
5742
+ created_at?: string;
5743
+ cursor_from?: number | null;
5744
+ direction?: string;
5745
+ duration_ms?: number | null;
5746
+ environment?: string | null;
5747
+ error?: string | null;
5748
+ floriday_id?: string | null;
5749
+ floriday_reference?: string | null;
5750
+ http_status?: number;
5751
+ id?: string;
5752
+ item_count?: number | null;
5753
+ kind?: string | null;
5754
+ local_id?: string | null;
5755
+ local_reference?: string | null;
5756
+ method?: string;
5757
+ module?: string | null;
5758
+ ok?: boolean;
5759
+ path?: string;
5760
+ request?: import("../integrations/supabase/types").Json | null;
5761
+ resource_type?: string | null;
5762
+ response?: import("../integrations/supabase/types").Json | null;
5763
+ write_log_id?: string | null;
5764
+ };
5765
+ Relationships: [{
5766
+ foreignKeyName: "floriday_api_log_connection_id_fkey";
5767
+ columns: ["connection_id"];
5768
+ isOneToOne: false;
5769
+ referencedRelation: "floriday_connections";
5770
+ referencedColumns: ["id"];
5771
+ }, {
5772
+ foreignKeyName: "floriday_api_log_write_log_id_fkey";
5773
+ columns: ["write_log_id"];
5774
+ isOneToOne: false;
5775
+ referencedRelation: "floriday_write_log";
5776
+ referencedColumns: ["id"];
5777
+ }];
5778
+ };
5620
5779
  floriday_auction_letters_cache: {
5621
5780
  Row: {
5622
5781
  auction_letter_code: string;
@@ -5824,6 +5983,84 @@ export declare const listOpenStockConsumptionAlerts: import("@tanstack/start-cli
5824
5983
  referencedColumns: ["id"];
5825
5984
  }];
5826
5985
  };
5986
+ floriday_catalog_prices_cache: {
5987
+ Row: {
5988
+ connection_id: string;
5989
+ created_at: string;
5990
+ currency: string;
5991
+ id: string;
5992
+ is_deleted: boolean;
5993
+ price: number | null;
5994
+ price_group_id: string | null;
5995
+ price_group_name: string | null;
5996
+ price_type: string;
5997
+ raw: import("../integrations/supabase/types").Json | null;
5998
+ sales_unit: string | null;
5999
+ sequence_number: number;
6000
+ supplier_article_code: string | null;
6001
+ supply_line_id: string;
6002
+ synced_at: string;
6003
+ trade_item_id: string | null;
6004
+ updated_at: string;
6005
+ valid_from: string | null;
6006
+ valid_to: string | null;
6007
+ week: number | null;
6008
+ year: number | null;
6009
+ };
6010
+ Insert: {
6011
+ connection_id: string;
6012
+ created_at?: string;
6013
+ currency?: string;
6014
+ id?: string;
6015
+ is_deleted?: boolean;
6016
+ price?: number | null;
6017
+ price_group_id?: string | null;
6018
+ price_group_name?: string | null;
6019
+ price_type?: string;
6020
+ raw?: import("../integrations/supabase/types").Json | null;
6021
+ sales_unit?: string | null;
6022
+ sequence_number?: number;
6023
+ supplier_article_code?: string | null;
6024
+ supply_line_id: string;
6025
+ synced_at?: string;
6026
+ trade_item_id?: string | null;
6027
+ updated_at?: string;
6028
+ valid_from?: string | null;
6029
+ valid_to?: string | null;
6030
+ week?: number | null;
6031
+ year?: number | null;
6032
+ };
6033
+ Update: {
6034
+ connection_id?: string;
6035
+ created_at?: string;
6036
+ currency?: string;
6037
+ id?: string;
6038
+ is_deleted?: boolean;
6039
+ price?: number | null;
6040
+ price_group_id?: string | null;
6041
+ price_group_name?: string | null;
6042
+ price_type?: string;
6043
+ raw?: import("../integrations/supabase/types").Json | null;
6044
+ sales_unit?: string | null;
6045
+ sequence_number?: number;
6046
+ supplier_article_code?: string | null;
6047
+ supply_line_id?: string;
6048
+ synced_at?: string;
6049
+ trade_item_id?: string | null;
6050
+ updated_at?: string;
6051
+ valid_from?: string | null;
6052
+ valid_to?: string | null;
6053
+ week?: number | null;
6054
+ year?: number | null;
6055
+ };
6056
+ Relationships: [{
6057
+ foreignKeyName: "floriday_catalog_prices_cache_connection_id_fkey";
6058
+ columns: ["connection_id"];
6059
+ isOneToOne: false;
6060
+ referencedRelation: "floriday_connections";
6061
+ referencedColumns: ["id"];
6062
+ }];
6063
+ };
5827
6064
  floriday_clock_presales_cache: {
5828
6065
  Row: {
5829
6066
  buyer_organization_id: string | null;
@@ -6739,6 +6976,69 @@ export declare const listOpenStockConsumptionAlerts: import("@tanstack/start-cli
6739
6976
  referencedColumns: ["id"];
6740
6977
  }];
6741
6978
  };
6979
+ floriday_link_templates: {
6980
+ Row: {
6981
+ created_at: string;
6982
+ floriday_url_template: string | null;
6983
+ is_active: boolean;
6984
+ label: string;
6985
+ local_url_template: string | null;
6986
+ resource_type: string;
6987
+ updated_at: string;
6988
+ };
6989
+ Insert: {
6990
+ created_at?: string;
6991
+ floriday_url_template?: string | null;
6992
+ is_active?: boolean;
6993
+ label: string;
6994
+ local_url_template?: string | null;
6995
+ resource_type: string;
6996
+ updated_at?: string;
6997
+ };
6998
+ Update: {
6999
+ created_at?: string;
7000
+ floriday_url_template?: string | null;
7001
+ is_active?: boolean;
7002
+ label?: string;
7003
+ local_url_template?: string | null;
7004
+ resource_type?: string;
7005
+ updated_at?: string;
7006
+ };
7007
+ Relationships: [];
7008
+ };
7009
+ floriday_log_retention: {
7010
+ Row: {
7011
+ created_at: string;
7012
+ direction: string | null;
7013
+ id: string;
7014
+ keep_failed_days: number | null;
7015
+ keep_ok_days: number | null;
7016
+ note: string | null;
7017
+ resource_type: string | null;
7018
+ updated_at: string;
7019
+ };
7020
+ Insert: {
7021
+ created_at?: string;
7022
+ direction?: string | null;
7023
+ id?: string;
7024
+ keep_failed_days?: number | null;
7025
+ keep_ok_days?: number | null;
7026
+ note?: string | null;
7027
+ resource_type?: string | null;
7028
+ updated_at?: string;
7029
+ };
7030
+ Update: {
7031
+ created_at?: string;
7032
+ direction?: string | null;
7033
+ id?: string;
7034
+ keep_failed_days?: number | null;
7035
+ keep_ok_days?: number | null;
7036
+ note?: string | null;
7037
+ resource_type?: string | null;
7038
+ updated_at?: string;
7039
+ };
7040
+ Relationships: [];
7041
+ };
6742
7042
  floriday_logistic_labels_cache: {
6743
7043
  Row: {
6744
7044
  byte_size: number | null;
@@ -10363,6 +10663,48 @@ export declare const listOpenStockConsumptionAlerts: import("@tanstack/start-cli
10363
10663
  };
10364
10664
  Relationships: [];
10365
10665
  };
10666
+ logistics_pick_data_requests: {
10667
+ Row: {
10668
+ actions: import("../integrations/supabase/types").Json;
10669
+ created_at: string;
10670
+ event_id: string | null;
10671
+ finished_at: string | null;
10672
+ id: string;
10673
+ missing: import("../integrations/supabase/types").Json;
10674
+ order_ref: string;
10675
+ reason: string | null;
10676
+ result: import("../integrations/supabase/types").Json | null;
10677
+ status: string;
10678
+ unit_ref: string | null;
10679
+ };
10680
+ Insert: {
10681
+ actions?: import("../integrations/supabase/types").Json;
10682
+ created_at?: string;
10683
+ event_id?: string | null;
10684
+ finished_at?: string | null;
10685
+ id?: string;
10686
+ missing?: import("../integrations/supabase/types").Json;
10687
+ order_ref: string;
10688
+ reason?: string | null;
10689
+ result?: import("../integrations/supabase/types").Json | null;
10690
+ status?: string;
10691
+ unit_ref?: string | null;
10692
+ };
10693
+ Update: {
10694
+ actions?: import("../integrations/supabase/types").Json;
10695
+ created_at?: string;
10696
+ event_id?: string | null;
10697
+ finished_at?: string | null;
10698
+ id?: string;
10699
+ missing?: import("../integrations/supabase/types").Json;
10700
+ order_ref?: string;
10701
+ reason?: string | null;
10702
+ result?: import("../integrations/supabase/types").Json | null;
10703
+ status?: string;
10704
+ unit_ref?: string | null;
10705
+ };
10706
+ Relationships: [];
10707
+ };
10366
10708
  logistics_pickup_moments: {
10367
10709
  Row: {
10368
10710
  carrier_ref: string | null;
@@ -10822,6 +11164,69 @@ export declare const listOpenStockConsumptionAlerts: import("@tanstack/start-cli
10822
11164
  };
10823
11165
  Relationships: [];
10824
11166
  };
11167
+ logistics_slip_shipping_note: {
11168
+ Row: {
11169
+ attempts: number;
11170
+ batch_key: string | null;
11171
+ cart_id: string | null;
11172
+ created_at: string;
11173
+ error: string | null;
11174
+ error_code: string | null;
11175
+ fulfillment_order_id: string | null;
11176
+ id: string;
11177
+ locked_until: string | null;
11178
+ next_attempt_at: string | null;
11179
+ order_id: string | null;
11180
+ order_number: string | null;
11181
+ print_job_id: string | null;
11182
+ printer_id: string | null;
11183
+ retry_class: string | null;
11184
+ slip_job_id: string;
11185
+ status: string;
11186
+ updated_at: string;
11187
+ };
11188
+ Insert: {
11189
+ attempts?: number;
11190
+ batch_key?: string | null;
11191
+ cart_id?: string | null;
11192
+ created_at?: string;
11193
+ error?: string | null;
11194
+ error_code?: string | null;
11195
+ fulfillment_order_id?: string | null;
11196
+ id?: string;
11197
+ locked_until?: string | null;
11198
+ next_attempt_at?: string | null;
11199
+ order_id?: string | null;
11200
+ order_number?: string | null;
11201
+ print_job_id?: string | null;
11202
+ printer_id?: string | null;
11203
+ retry_class?: string | null;
11204
+ slip_job_id: string;
11205
+ status?: string;
11206
+ updated_at?: string;
11207
+ };
11208
+ Update: {
11209
+ attempts?: number;
11210
+ batch_key?: string | null;
11211
+ cart_id?: string | null;
11212
+ created_at?: string;
11213
+ error?: string | null;
11214
+ error_code?: string | null;
11215
+ fulfillment_order_id?: string | null;
11216
+ id?: string;
11217
+ locked_until?: string | null;
11218
+ next_attempt_at?: string | null;
11219
+ order_id?: string | null;
11220
+ order_number?: string | null;
11221
+ print_job_id?: string | null;
11222
+ printer_id?: string | null;
11223
+ retry_class?: string | null;
11224
+ slip_job_id?: string;
11225
+ status?: string;
11226
+ updated_at?: string;
11227
+ };
11228
+ Relationships: [];
11229
+ };
10825
11230
  logistics_staff_planning: {
10826
11231
  Row: {
10827
11232
  created_at: string;
@@ -11173,6 +11578,111 @@ export declare const listOpenStockConsumptionAlerts: import("@tanstack/start-cli
11173
11578
  };
11174
11579
  Relationships: [];
11175
11580
  };
11581
+ logistics_trace_events: {
11582
+ Row: {
11583
+ actor: string | null;
11584
+ attempts: number;
11585
+ cart_ref: string | null;
11586
+ created_at: string;
11587
+ db_action: string | null;
11588
+ db_new: import("../integrations/supabase/types").Json | null;
11589
+ db_old: import("../integrations/supabase/types").Json | null;
11590
+ db_record: string | null;
11591
+ db_table: string | null;
11592
+ decision: string | null;
11593
+ duration_ms: number | null;
11594
+ error: string | null;
11595
+ external_action: string | null;
11596
+ external_ref: string | null;
11597
+ external_response: import("../integrations/supabase/types").Json | null;
11598
+ external_status: string | null;
11599
+ external_system: string | null;
11600
+ id: string;
11601
+ input: import("../integrations/supabase/types").Json | null;
11602
+ next_attempt_at: string | null;
11603
+ order_ref: string | null;
11604
+ order_source: string | null;
11605
+ output: import("../integrations/supabase/types").Json | null;
11606
+ phase: string;
11607
+ reads: import("../integrations/supabase/types").Json | null;
11608
+ reason: string | null;
11609
+ rule: string | null;
11610
+ slip_ref: string | null;
11611
+ status: string;
11612
+ step: string;
11613
+ trace_id: string;
11614
+ values_used: import("../integrations/supabase/types").Json | null;
11615
+ };
11616
+ Insert: {
11617
+ actor?: string | null;
11618
+ attempts?: number;
11619
+ cart_ref?: string | null;
11620
+ created_at?: string;
11621
+ db_action?: string | null;
11622
+ db_new?: import("../integrations/supabase/types").Json | null;
11623
+ db_old?: import("../integrations/supabase/types").Json | null;
11624
+ db_record?: string | null;
11625
+ db_table?: string | null;
11626
+ decision?: string | null;
11627
+ duration_ms?: number | null;
11628
+ error?: string | null;
11629
+ external_action?: string | null;
11630
+ external_ref?: string | null;
11631
+ external_response?: import("../integrations/supabase/types").Json | null;
11632
+ external_status?: string | null;
11633
+ external_system?: string | null;
11634
+ id?: string;
11635
+ input?: import("../integrations/supabase/types").Json | null;
11636
+ next_attempt_at?: string | null;
11637
+ order_ref?: string | null;
11638
+ order_source?: string | null;
11639
+ output?: import("../integrations/supabase/types").Json | null;
11640
+ phase: string;
11641
+ reads?: import("../integrations/supabase/types").Json | null;
11642
+ reason?: string | null;
11643
+ rule?: string | null;
11644
+ slip_ref?: string | null;
11645
+ status: string;
11646
+ step: string;
11647
+ trace_id?: string;
11648
+ values_used?: import("../integrations/supabase/types").Json | null;
11649
+ };
11650
+ Update: {
11651
+ actor?: string | null;
11652
+ attempts?: number;
11653
+ cart_ref?: string | null;
11654
+ created_at?: string;
11655
+ db_action?: string | null;
11656
+ db_new?: import("../integrations/supabase/types").Json | null;
11657
+ db_old?: import("../integrations/supabase/types").Json | null;
11658
+ db_record?: string | null;
11659
+ db_table?: string | null;
11660
+ decision?: string | null;
11661
+ duration_ms?: number | null;
11662
+ error?: string | null;
11663
+ external_action?: string | null;
11664
+ external_ref?: string | null;
11665
+ external_response?: import("../integrations/supabase/types").Json | null;
11666
+ external_status?: string | null;
11667
+ external_system?: string | null;
11668
+ id?: string;
11669
+ input?: import("../integrations/supabase/types").Json | null;
11670
+ next_attempt_at?: string | null;
11671
+ order_ref?: string | null;
11672
+ order_source?: string | null;
11673
+ output?: import("../integrations/supabase/types").Json | null;
11674
+ phase?: string;
11675
+ reads?: import("../integrations/supabase/types").Json | null;
11676
+ reason?: string | null;
11677
+ rule?: string | null;
11678
+ slip_ref?: string | null;
11679
+ status?: string;
11680
+ step?: string;
11681
+ trace_id?: string;
11682
+ values_used?: import("../integrations/supabase/types").Json | null;
11683
+ };
11684
+ Relationships: [];
11685
+ };
11176
11686
  logistics_variables: {
11177
11687
  Row: {
11178
11688
  created_at: string;
@@ -21745,6 +22255,15 @@ export declare const listOpenStockConsumptionAlerts: import("@tanstack/start-cli
21745
22255
  Args: never;
21746
22256
  Returns: boolean;
21747
22257
  };
22258
+ cancel_open_print_jobs: {
22259
+ Args: {
22260
+ _cutoff: string;
22261
+ };
22262
+ Returns: {
22263
+ extern_job_id: string;
22264
+ id: string;
22265
+ }[];
22266
+ };
21748
22267
  check_offer_product_available_stock: {
21749
22268
  Args: {
21750
22269
  p_campaign_product_id: string;
@@ -23283,6 +23802,12 @@ export declare const listOpenStockConsumptionAlerts: import("@tanstack/start-cli
23283
23802
  };
23284
23803
  Returns: string;
23285
23804
  };
23805
+ logistics_cart_checkin_at: {
23806
+ Args: {
23807
+ p_cart_id: string;
23808
+ };
23809
+ Returns: string;
23810
+ };
23286
23811
  logistics_cart_handled: {
23287
23812
  Args: {
23288
23813
  p_cart_index: number;
@@ -23316,10 +23841,22 @@ export declare const listOpenStockConsumptionAlerts: import("@tanstack/start-cli
23316
23841
  task_status: string;
23317
23842
  }[];
23318
23843
  };
23844
+ logistics_cart_is_full: {
23845
+ Args: {
23846
+ p_cart_id: string;
23847
+ };
23848
+ Returns: boolean;
23849
+ };
23319
23850
  logistics_cart_layout_method: {
23320
23851
  Args: never;
23321
23852
  Returns: import("../integrations/supabase/types").Json;
23322
23853
  };
23854
+ logistics_cart_order_refs: {
23855
+ Args: {
23856
+ p_cart_id: string;
23857
+ };
23858
+ Returns: string[];
23859
+ };
23323
23860
  logistics_cart_plan_overview: {
23324
23861
  Args: {
23325
23862
  p_days?: number;
@@ -23339,6 +23876,24 @@ export declare const listOpenStockConsumptionAlerts: import("@tanstack/start-cli
23339
23876
  };
23340
23877
  Returns: import("../integrations/supabase/types").Json;
23341
23878
  };
23879
+ logistics_cart_plan_status_core: {
23880
+ Args: {
23881
+ p_ref: string;
23882
+ };
23883
+ Returns: import("../integrations/supabase/types").Json;
23884
+ };
23885
+ logistics_cart_release_reason: {
23886
+ Args: {
23887
+ p_cart_id: string;
23888
+ };
23889
+ Returns: string;
23890
+ };
23891
+ logistics_cart_released: {
23892
+ Args: {
23893
+ p_cart_id: string;
23894
+ };
23895
+ Returns: boolean;
23896
+ };
23342
23897
  logistics_cart_seq: {
23343
23898
  Args: {
23344
23899
  p_order_uuid?: string;
@@ -23389,6 +23944,10 @@ export declare const listOpenStockConsumptionAlerts: import("@tanstack/start-cli
23389
23944
  unit_ref: string;
23390
23945
  }[];
23391
23946
  };
23947
+ logistics_carts_per_print: {
23948
+ Args: never;
23949
+ Returns: number;
23950
+ };
23392
23951
  logistics_check_order_allowed: {
23393
23952
  Args: {
23394
23953
  p_lines: import("../integrations/supabase/types").Json;
@@ -23492,6 +24051,10 @@ export declare const listOpenStockConsumptionAlerts: import("@tanstack/start-cli
23492
24051
  isSetofReturn: false;
23493
24052
  };
23494
24053
  };
24054
+ logistics_cleanup_orphan_print_jobs: {
24055
+ Args: never;
24056
+ Returns: import("../integrations/supabase/types").Json;
24057
+ };
23495
24058
  logistics_complete_task: {
23496
24059
  Args: {
23497
24060
  p_result?: import("../integrations/supabase/types").Json;
@@ -23743,6 +24306,20 @@ export declare const listOpenStockConsumptionAlerts: import("@tanstack/start-cli
23743
24306
  };
23744
24307
  Returns: string;
23745
24308
  };
24309
+ logistics_ensure_pick_data: {
24310
+ Args: {
24311
+ p_event_id?: string;
24312
+ p_missing?: import("../integrations/supabase/types").Json;
24313
+ p_ref: string;
24314
+ };
24315
+ Returns: import("../integrations/supabase/types").Json;
24316
+ };
24317
+ logistics_ensure_shipping_notes: {
24318
+ Args: {
24319
+ p_limit?: number;
24320
+ };
24321
+ Returns: import("../integrations/supabase/types").Json;
24322
+ };
23746
24323
  logistics_fail_task: {
23747
24324
  Args: {
23748
24325
  p_error: string;
@@ -23788,6 +24365,10 @@ export declare const listOpenStockConsumptionAlerts: import("@tanstack/start-cli
23788
24365
  isSetofReturn: false;
23789
24366
  };
23790
24367
  };
24368
+ logistics_fix_wrong_shipping_notes: {
24369
+ Args: never;
24370
+ Returns: import("../integrations/supabase/types").Json;
24371
+ };
23791
24372
  logistics_floriday_cart_plan: {
23792
24373
  Args: {
23793
24374
  p_order_id: string;
@@ -23815,6 +24396,10 @@ export declare const listOpenStockConsumptionAlerts: import("@tanstack/start-cli
23815
24396
  revision: number;
23816
24397
  }[];
23817
24398
  };
24399
+ logistics_floriday_delivery_note_create_enabled: {
24400
+ Args: never;
24401
+ Returns: boolean;
24402
+ };
23818
24403
  logistics_floriday_finish_push: {
23819
24404
  Args: {
23820
24405
  _error?: string;
@@ -23966,6 +24551,12 @@ export declare const listOpenStockConsumptionAlerts: import("@tanstack/start-cli
23966
24551
  };
23967
24552
  Returns: number;
23968
24553
  };
24554
+ logistics_merge_partial_carts: {
24555
+ Args: {
24556
+ p_limit?: number;
24557
+ };
24558
+ Returns: import("../integrations/supabase/types").Json;
24559
+ };
23969
24560
  logistics_next_workday_date: {
23970
24561
  Args: {
23971
24562
  p_date: string;
@@ -24052,6 +24643,12 @@ export declare const listOpenStockConsumptionAlerts: import("@tanstack/start-cli
24052
24643
  };
24053
24644
  Returns: string;
24054
24645
  };
24646
+ logistics_payload_is_floriday: {
24647
+ Args: {
24648
+ _payload: import("../integrations/supabase/types").Json;
24649
+ };
24650
+ Returns: boolean;
24651
+ };
24055
24652
  logistics_pick_agenda: {
24056
24653
  Args: {
24057
24654
  p_from?: string;
@@ -24080,6 +24677,10 @@ export declare const listOpenStockConsumptionAlerts: import("@tanstack/start-cli
24080
24677
  Args: never;
24081
24678
  Returns: import("../integrations/supabase/types").Json;
24082
24679
  };
24680
+ logistics_pick_partial_mode: {
24681
+ Args: never;
24682
+ Returns: string;
24683
+ };
24083
24684
  logistics_pick_start_estimate: {
24084
24685
  Args: {
24085
24686
  p_order: import("../integrations/supabase/types").Json;
@@ -24170,6 +24771,20 @@ export declare const listOpenStockConsumptionAlerts: import("@tanstack/start-cli
24170
24771
  Args: never;
24171
24772
  Returns: undefined;
24172
24773
  };
24774
+ logistics_plan_progress: {
24775
+ Args: {
24776
+ p_refs: string[];
24777
+ };
24778
+ Returns: {
24779
+ cart_plan_ready: boolean;
24780
+ cart_plan_reason: string;
24781
+ cart_plan_released: boolean;
24782
+ plan_progress: number;
24783
+ plan_state: string;
24784
+ plan_state_since: string;
24785
+ unit_ref: string;
24786
+ }[];
24787
+ };
24173
24788
  logistics_plan_prune: {
24174
24789
  Args: never;
24175
24790
  Returns: number;
@@ -24191,6 +24806,18 @@ export declare const listOpenStockConsumptionAlerts: import("@tanstack/start-cli
24191
24806
  };
24192
24807
  Returns: number;
24193
24808
  };
24809
+ logistics_plan_state_for: {
24810
+ Args: {
24811
+ p_ref: string;
24812
+ };
24813
+ Returns: import("../integrations/supabase/types").Json;
24814
+ };
24815
+ logistics_prepare_pick_documents: {
24816
+ Args: {
24817
+ p_limit?: number;
24818
+ };
24819
+ Returns: import("../integrations/supabase/types").Json;
24820
+ };
24194
24821
  logistics_prune_buffer_member_queue: {
24195
24822
  Args: never;
24196
24823
  Returns: number;
@@ -24231,18 +24858,36 @@ export declare const listOpenStockConsumptionAlerts: import("@tanstack/start-cli
24231
24858
  Args: never;
24232
24859
  Returns: import("../integrations/supabase/types").Json;
24233
24860
  };
24861
+ logistics_refresh_pick_queue_status: {
24862
+ Args: {
24863
+ p_ref: string;
24864
+ };
24865
+ Returns: number;
24866
+ };
24234
24867
  logistics_refresh_pickup_moments: {
24235
24868
  Args: {
24236
24869
  p_weeks?: number;
24237
24870
  };
24238
24871
  Returns: import("../integrations/supabase/types").Json;
24239
24872
  };
24873
+ logistics_refresh_plan_state: {
24874
+ Args: {
24875
+ p_limit?: number;
24876
+ };
24877
+ Returns: import("../integrations/supabase/types").Json;
24878
+ };
24240
24879
  logistics_replan_all: {
24241
24880
  Args: {
24242
24881
  p_reason?: string;
24243
24882
  };
24244
24883
  Returns: import("../integrations/supabase/types").Json;
24245
24884
  };
24885
+ logistics_replan_all_force: {
24886
+ Args: {
24887
+ p_reason?: string;
24888
+ };
24889
+ Returns: import("../integrations/supabase/types").Json;
24890
+ };
24246
24891
  logistics_report_delay: {
24247
24892
  Args: {
24248
24893
  p_expected_date?: string;
@@ -24399,6 +25044,74 @@ export declare const listOpenStockConsumptionAlerts: import("@tanstack/start-cli
24399
25044
  };
24400
25045
  Returns: import("../integrations/supabase/types").Json;
24401
25046
  };
25047
+ logistics_shipping_note_job_for_slip: {
25048
+ Args: {
25049
+ _slip_job_id: string;
25050
+ };
25051
+ Returns: string;
25052
+ };
25053
+ logistics_shipping_notes_wake_all: {
25054
+ Args: never;
25055
+ Returns: import("../integrations/supabase/types").Json;
25056
+ };
25057
+ logistics_slip_is_floriday: {
25058
+ Args: {
25059
+ _slip_job_id: string;
25060
+ };
25061
+ Returns: boolean;
25062
+ };
25063
+ logistics_slip_note_claim: {
25064
+ Args: {
25065
+ _lease_seconds?: number;
25066
+ _limit?: number;
25067
+ };
25068
+ Returns: {
25069
+ attempts: number;
25070
+ batch_key: string | null;
25071
+ cart_id: string | null;
25072
+ created_at: string;
25073
+ error: string | null;
25074
+ error_code: string | null;
25075
+ fulfillment_order_id: string | null;
25076
+ id: string;
25077
+ locked_until: string | null;
25078
+ next_attempt_at: string | null;
25079
+ order_id: string | null;
25080
+ order_number: string | null;
25081
+ print_job_id: string | null;
25082
+ printer_id: string | null;
25083
+ retry_class: string | null;
25084
+ slip_job_id: string;
25085
+ status: string;
25086
+ updated_at: string;
25087
+ }[];
25088
+ SetofOptions: {
25089
+ from: "*";
25090
+ to: "logistics_slip_shipping_note";
25091
+ isOneToOne: false;
25092
+ isSetofReturn: true;
25093
+ };
25094
+ };
25095
+ logistics_slip_note_finish: {
25096
+ Args: {
25097
+ _error?: string;
25098
+ _error_code?: string;
25099
+ _fulfillment_order_id?: string;
25100
+ _id: string;
25101
+ _ok: boolean;
25102
+ _print_job_id?: string;
25103
+ _status?: string;
25104
+ };
25105
+ Returns: undefined;
25106
+ };
25107
+ logistics_slip_note_keep_waiting: {
25108
+ Args: {
25109
+ _class?: string;
25110
+ _id: string;
25111
+ _reason: string;
25112
+ };
25113
+ Returns: undefined;
25114
+ };
24402
25115
  logistics_sticker_follows_slip: {
24403
25116
  Args: never;
24404
25117
  Returns: boolean;
@@ -24453,6 +25166,40 @@ export declare const listOpenStockConsumptionAlerts: import("@tanstack/start-cli
24453
25166
  name: string;
24454
25167
  }[];
24455
25168
  };
25169
+ logistics_trace: {
25170
+ Args: {
25171
+ p: import("../integrations/supabase/types").Json;
25172
+ };
25173
+ Returns: string;
25174
+ };
25175
+ logistics_trace_batch: {
25176
+ Args: {
25177
+ p: import("../integrations/supabase/types").Json;
25178
+ };
25179
+ Returns: number;
25180
+ };
25181
+ logistics_trace_orders: {
25182
+ Args: {
25183
+ p_limit?: number;
25184
+ p_search?: string;
25185
+ p_since?: string;
25186
+ p_status?: string;
25187
+ };
25188
+ Returns: import("../integrations/supabase/types").Json;
25189
+ };
25190
+ logistics_trace_redact: {
25191
+ Args: {
25192
+ p: import("../integrations/supabase/types").Json;
25193
+ };
25194
+ Returns: import("../integrations/supabase/types").Json;
25195
+ };
25196
+ logistics_trace_timeline: {
25197
+ Args: {
25198
+ p_limit?: number;
25199
+ p_order_ref: string;
25200
+ };
25201
+ Returns: import("../integrations/supabase/types").Json;
25202
+ };
24456
25203
  logistics_upsert_task: {
24457
25204
  Args: {
24458
25205
  p_buffer_ref: string;
@@ -25494,6 +26241,10 @@ export declare const listOpenStockConsumptionAlerts: import("@tanstack/start-cli
25494
26241
  };
25495
26242
  Returns: undefined;
25496
26243
  };
26244
+ prune_floriday_api_log: {
26245
+ Args: never;
26246
+ Returns: number;
26247
+ };
25497
26248
  quote_create_from_source: {
25498
26249
  Args: {
25499
26250
  _payload?: import("../integrations/supabase/types").Json;
@@ -25927,6 +26678,13 @@ export declare const listOpenStockConsumptionAlerts: import("@tanstack/start-cli
25927
26678
  };
25928
26679
  Returns: number;
25929
26680
  };
26681
+ schedule_floriday_catalog_prices_sync: {
26682
+ Args: {
26683
+ p_apikey: string;
26684
+ p_url: string;
26685
+ };
26686
+ Returns: number;
26687
+ };
25930
26688
  schedule_floriday_clock_presales_sync: {
25931
26689
  Args: {
25932
26690
  p_apikey: string;
@@ -26227,6 +26985,10 @@ export declare const listOpenStockConsumptionAlerts: import("@tanstack/start-cli
26227
26985
  };
26228
26986
  Returns: undefined;
26229
26987
  };
26988
+ sync_floriday_prices_into_price_groups: {
26989
+ Args: never;
26990
+ Returns: number;
26991
+ };
26230
26992
  sync_layer_stock: {
26231
26993
  Args: {
26232
26994
  p_product_id: string;
@@ -26359,6 +27121,10 @@ export declare const listOpenStockConsumptionAlerts: import("@tanstack/start-cli
26359
27121
  Args: never;
26360
27122
  Returns: string;
26361
27123
  };
27124
+ voorraad_cleanup_old_rows: {
27125
+ Args: never;
27126
+ Returns: import("../integrations/supabase/types").Json;
27127
+ };
26362
27128
  wake_print_queue: {
26363
27129
  Args: {
26364
27130
  _min_interval_ms?: number;
@@ -28654,6 +29420,45 @@ export declare const resolveStockConsumptionAlert: import("@tanstack/start-clien
28654
29420
  };
28655
29421
  Relationships: [];
28656
29422
  };
29423
+ customer_product_stickers: {
29424
+ Row: {
29425
+ created_at: string;
29426
+ customer_key: string;
29427
+ file_name: string;
29428
+ file_path: string;
29429
+ file_size: number | null;
29430
+ id: string;
29431
+ mime_type: string | null;
29432
+ trade_item_key: string;
29433
+ updated_at: string;
29434
+ uploaded_by: string | null;
29435
+ };
29436
+ Insert: {
29437
+ created_at?: string;
29438
+ customer_key: string;
29439
+ file_name: string;
29440
+ file_path: string;
29441
+ file_size?: number | null;
29442
+ id?: string;
29443
+ mime_type?: string | null;
29444
+ trade_item_key: string;
29445
+ updated_at?: string;
29446
+ uploaded_by?: string | null;
29447
+ };
29448
+ Update: {
29449
+ created_at?: string;
29450
+ customer_key?: string;
29451
+ file_name?: string;
29452
+ file_path?: string;
29453
+ file_size?: number | null;
29454
+ id?: string;
29455
+ mime_type?: string | null;
29456
+ trade_item_key?: string;
29457
+ updated_at?: string;
29458
+ uploaded_by?: string | null;
29459
+ };
29460
+ Relationships: [];
29461
+ };
28657
29462
  customer_selected_assortment: {
28658
29463
  Row: {
28659
29464
  article_number: string | null;
@@ -28702,6 +29507,30 @@ export declare const resolveStockConsumptionAlert: import("@tanstack/start-clien
28702
29507
  referencedColumns: ["id"];
28703
29508
  }];
28704
29509
  };
29510
+ customer_sticker_settings: {
29511
+ Row: {
29512
+ created_at: string;
29513
+ customer_key: string;
29514
+ height_mm: number;
29515
+ updated_at: string;
29516
+ width_mm: number;
29517
+ };
29518
+ Insert: {
29519
+ created_at?: string;
29520
+ customer_key: string;
29521
+ height_mm?: number;
29522
+ updated_at?: string;
29523
+ width_mm?: number;
29524
+ };
29525
+ Update: {
29526
+ created_at?: string;
29527
+ customer_key?: string;
29528
+ height_mm?: number;
29529
+ updated_at?: string;
29530
+ width_mm?: number;
29531
+ };
29532
+ Relationships: [];
29533
+ };
28705
29534
  customer_trade_settings: {
28706
29535
  Row: {
28707
29536
  category: string;
@@ -32032,6 +32861,102 @@ export declare const resolveStockConsumptionAlert: import("@tanstack/start-clien
32032
32861
  referencedColumns: ["id"];
32033
32862
  }];
32034
32863
  };
32864
+ floriday_api_log: {
32865
+ Row: {
32866
+ action: string | null;
32867
+ caller: string | null;
32868
+ connection_id: string | null;
32869
+ created_at: string;
32870
+ cursor_from: number | null;
32871
+ direction: string;
32872
+ duration_ms: number | null;
32873
+ environment: string | null;
32874
+ error: string | null;
32875
+ floriday_id: string | null;
32876
+ floriday_reference: string | null;
32877
+ http_status: number;
32878
+ id: string;
32879
+ item_count: number | null;
32880
+ kind: string | null;
32881
+ local_id: string | null;
32882
+ local_reference: string | null;
32883
+ method: string;
32884
+ module: string | null;
32885
+ ok: boolean;
32886
+ path: string;
32887
+ request: import("../integrations/supabase/types").Json | null;
32888
+ resource_type: string | null;
32889
+ response: import("../integrations/supabase/types").Json | null;
32890
+ write_log_id: string | null;
32891
+ };
32892
+ Insert: {
32893
+ action?: string | null;
32894
+ caller?: string | null;
32895
+ connection_id?: string | null;
32896
+ created_at?: string;
32897
+ cursor_from?: number | null;
32898
+ direction: string;
32899
+ duration_ms?: number | null;
32900
+ environment?: string | null;
32901
+ error?: string | null;
32902
+ floriday_id?: string | null;
32903
+ floriday_reference?: string | null;
32904
+ http_status?: number;
32905
+ id?: string;
32906
+ item_count?: number | null;
32907
+ kind?: string | null;
32908
+ local_id?: string | null;
32909
+ local_reference?: string | null;
32910
+ method: string;
32911
+ module?: string | null;
32912
+ ok?: boolean;
32913
+ path: string;
32914
+ request?: import("../integrations/supabase/types").Json | null;
32915
+ resource_type?: string | null;
32916
+ response?: import("../integrations/supabase/types").Json | null;
32917
+ write_log_id?: string | null;
32918
+ };
32919
+ Update: {
32920
+ action?: string | null;
32921
+ caller?: string | null;
32922
+ connection_id?: string | null;
32923
+ created_at?: string;
32924
+ cursor_from?: number | null;
32925
+ direction?: string;
32926
+ duration_ms?: number | null;
32927
+ environment?: string | null;
32928
+ error?: string | null;
32929
+ floriday_id?: string | null;
32930
+ floriday_reference?: string | null;
32931
+ http_status?: number;
32932
+ id?: string;
32933
+ item_count?: number | null;
32934
+ kind?: string | null;
32935
+ local_id?: string | null;
32936
+ local_reference?: string | null;
32937
+ method?: string;
32938
+ module?: string | null;
32939
+ ok?: boolean;
32940
+ path?: string;
32941
+ request?: import("../integrations/supabase/types").Json | null;
32942
+ resource_type?: string | null;
32943
+ response?: import("../integrations/supabase/types").Json | null;
32944
+ write_log_id?: string | null;
32945
+ };
32946
+ Relationships: [{
32947
+ foreignKeyName: "floriday_api_log_connection_id_fkey";
32948
+ columns: ["connection_id"];
32949
+ isOneToOne: false;
32950
+ referencedRelation: "floriday_connections";
32951
+ referencedColumns: ["id"];
32952
+ }, {
32953
+ foreignKeyName: "floriday_api_log_write_log_id_fkey";
32954
+ columns: ["write_log_id"];
32955
+ isOneToOne: false;
32956
+ referencedRelation: "floriday_write_log";
32957
+ referencedColumns: ["id"];
32958
+ }];
32959
+ };
32035
32960
  floriday_auction_letters_cache: {
32036
32961
  Row: {
32037
32962
  auction_letter_code: string;
@@ -32239,6 +33164,84 @@ export declare const resolveStockConsumptionAlert: import("@tanstack/start-clien
32239
33164
  referencedColumns: ["id"];
32240
33165
  }];
32241
33166
  };
33167
+ floriday_catalog_prices_cache: {
33168
+ Row: {
33169
+ connection_id: string;
33170
+ created_at: string;
33171
+ currency: string;
33172
+ id: string;
33173
+ is_deleted: boolean;
33174
+ price: number | null;
33175
+ price_group_id: string | null;
33176
+ price_group_name: string | null;
33177
+ price_type: string;
33178
+ raw: import("../integrations/supabase/types").Json | null;
33179
+ sales_unit: string | null;
33180
+ sequence_number: number;
33181
+ supplier_article_code: string | null;
33182
+ supply_line_id: string;
33183
+ synced_at: string;
33184
+ trade_item_id: string | null;
33185
+ updated_at: string;
33186
+ valid_from: string | null;
33187
+ valid_to: string | null;
33188
+ week: number | null;
33189
+ year: number | null;
33190
+ };
33191
+ Insert: {
33192
+ connection_id: string;
33193
+ created_at?: string;
33194
+ currency?: string;
33195
+ id?: string;
33196
+ is_deleted?: boolean;
33197
+ price?: number | null;
33198
+ price_group_id?: string | null;
33199
+ price_group_name?: string | null;
33200
+ price_type?: string;
33201
+ raw?: import("../integrations/supabase/types").Json | null;
33202
+ sales_unit?: string | null;
33203
+ sequence_number?: number;
33204
+ supplier_article_code?: string | null;
33205
+ supply_line_id: string;
33206
+ synced_at?: string;
33207
+ trade_item_id?: string | null;
33208
+ updated_at?: string;
33209
+ valid_from?: string | null;
33210
+ valid_to?: string | null;
33211
+ week?: number | null;
33212
+ year?: number | null;
33213
+ };
33214
+ Update: {
33215
+ connection_id?: string;
33216
+ created_at?: string;
33217
+ currency?: string;
33218
+ id?: string;
33219
+ is_deleted?: boolean;
33220
+ price?: number | null;
33221
+ price_group_id?: string | null;
33222
+ price_group_name?: string | null;
33223
+ price_type?: string;
33224
+ raw?: import("../integrations/supabase/types").Json | null;
33225
+ sales_unit?: string | null;
33226
+ sequence_number?: number;
33227
+ supplier_article_code?: string | null;
33228
+ supply_line_id?: string;
33229
+ synced_at?: string;
33230
+ trade_item_id?: string | null;
33231
+ updated_at?: string;
33232
+ valid_from?: string | null;
33233
+ valid_to?: string | null;
33234
+ week?: number | null;
33235
+ year?: number | null;
33236
+ };
33237
+ Relationships: [{
33238
+ foreignKeyName: "floriday_catalog_prices_cache_connection_id_fkey";
33239
+ columns: ["connection_id"];
33240
+ isOneToOne: false;
33241
+ referencedRelation: "floriday_connections";
33242
+ referencedColumns: ["id"];
33243
+ }];
33244
+ };
32242
33245
  floriday_clock_presales_cache: {
32243
33246
  Row: {
32244
33247
  buyer_organization_id: string | null;
@@ -33154,6 +34157,69 @@ export declare const resolveStockConsumptionAlert: import("@tanstack/start-clien
33154
34157
  referencedColumns: ["id"];
33155
34158
  }];
33156
34159
  };
34160
+ floriday_link_templates: {
34161
+ Row: {
34162
+ created_at: string;
34163
+ floriday_url_template: string | null;
34164
+ is_active: boolean;
34165
+ label: string;
34166
+ local_url_template: string | null;
34167
+ resource_type: string;
34168
+ updated_at: string;
34169
+ };
34170
+ Insert: {
34171
+ created_at?: string;
34172
+ floriday_url_template?: string | null;
34173
+ is_active?: boolean;
34174
+ label: string;
34175
+ local_url_template?: string | null;
34176
+ resource_type: string;
34177
+ updated_at?: string;
34178
+ };
34179
+ Update: {
34180
+ created_at?: string;
34181
+ floriday_url_template?: string | null;
34182
+ is_active?: boolean;
34183
+ label?: string;
34184
+ local_url_template?: string | null;
34185
+ resource_type?: string;
34186
+ updated_at?: string;
34187
+ };
34188
+ Relationships: [];
34189
+ };
34190
+ floriday_log_retention: {
34191
+ Row: {
34192
+ created_at: string;
34193
+ direction: string | null;
34194
+ id: string;
34195
+ keep_failed_days: number | null;
34196
+ keep_ok_days: number | null;
34197
+ note: string | null;
34198
+ resource_type: string | null;
34199
+ updated_at: string;
34200
+ };
34201
+ Insert: {
34202
+ created_at?: string;
34203
+ direction?: string | null;
34204
+ id?: string;
34205
+ keep_failed_days?: number | null;
34206
+ keep_ok_days?: number | null;
34207
+ note?: string | null;
34208
+ resource_type?: string | null;
34209
+ updated_at?: string;
34210
+ };
34211
+ Update: {
34212
+ created_at?: string;
34213
+ direction?: string | null;
34214
+ id?: string;
34215
+ keep_failed_days?: number | null;
34216
+ keep_ok_days?: number | null;
34217
+ note?: string | null;
34218
+ resource_type?: string | null;
34219
+ updated_at?: string;
34220
+ };
34221
+ Relationships: [];
34222
+ };
33157
34223
  floriday_logistic_labels_cache: {
33158
34224
  Row: {
33159
34225
  byte_size: number | null;
@@ -36778,6 +37844,48 @@ export declare const resolveStockConsumptionAlert: import("@tanstack/start-clien
36778
37844
  };
36779
37845
  Relationships: [];
36780
37846
  };
37847
+ logistics_pick_data_requests: {
37848
+ Row: {
37849
+ actions: import("../integrations/supabase/types").Json;
37850
+ created_at: string;
37851
+ event_id: string | null;
37852
+ finished_at: string | null;
37853
+ id: string;
37854
+ missing: import("../integrations/supabase/types").Json;
37855
+ order_ref: string;
37856
+ reason: string | null;
37857
+ result: import("../integrations/supabase/types").Json | null;
37858
+ status: string;
37859
+ unit_ref: string | null;
37860
+ };
37861
+ Insert: {
37862
+ actions?: import("../integrations/supabase/types").Json;
37863
+ created_at?: string;
37864
+ event_id?: string | null;
37865
+ finished_at?: string | null;
37866
+ id?: string;
37867
+ missing?: import("../integrations/supabase/types").Json;
37868
+ order_ref: string;
37869
+ reason?: string | null;
37870
+ result?: import("../integrations/supabase/types").Json | null;
37871
+ status?: string;
37872
+ unit_ref?: string | null;
37873
+ };
37874
+ Update: {
37875
+ actions?: import("../integrations/supabase/types").Json;
37876
+ created_at?: string;
37877
+ event_id?: string | null;
37878
+ finished_at?: string | null;
37879
+ id?: string;
37880
+ missing?: import("../integrations/supabase/types").Json;
37881
+ order_ref?: string;
37882
+ reason?: string | null;
37883
+ result?: import("../integrations/supabase/types").Json | null;
37884
+ status?: string;
37885
+ unit_ref?: string | null;
37886
+ };
37887
+ Relationships: [];
37888
+ };
36781
37889
  logistics_pickup_moments: {
36782
37890
  Row: {
36783
37891
  carrier_ref: string | null;
@@ -37237,6 +38345,69 @@ export declare const resolveStockConsumptionAlert: import("@tanstack/start-clien
37237
38345
  };
37238
38346
  Relationships: [];
37239
38347
  };
38348
+ logistics_slip_shipping_note: {
38349
+ Row: {
38350
+ attempts: number;
38351
+ batch_key: string | null;
38352
+ cart_id: string | null;
38353
+ created_at: string;
38354
+ error: string | null;
38355
+ error_code: string | null;
38356
+ fulfillment_order_id: string | null;
38357
+ id: string;
38358
+ locked_until: string | null;
38359
+ next_attempt_at: string | null;
38360
+ order_id: string | null;
38361
+ order_number: string | null;
38362
+ print_job_id: string | null;
38363
+ printer_id: string | null;
38364
+ retry_class: string | null;
38365
+ slip_job_id: string;
38366
+ status: string;
38367
+ updated_at: string;
38368
+ };
38369
+ Insert: {
38370
+ attempts?: number;
38371
+ batch_key?: string | null;
38372
+ cart_id?: string | null;
38373
+ created_at?: string;
38374
+ error?: string | null;
38375
+ error_code?: string | null;
38376
+ fulfillment_order_id?: string | null;
38377
+ id?: string;
38378
+ locked_until?: string | null;
38379
+ next_attempt_at?: string | null;
38380
+ order_id?: string | null;
38381
+ order_number?: string | null;
38382
+ print_job_id?: string | null;
38383
+ printer_id?: string | null;
38384
+ retry_class?: string | null;
38385
+ slip_job_id: string;
38386
+ status?: string;
38387
+ updated_at?: string;
38388
+ };
38389
+ Update: {
38390
+ attempts?: number;
38391
+ batch_key?: string | null;
38392
+ cart_id?: string | null;
38393
+ created_at?: string;
38394
+ error?: string | null;
38395
+ error_code?: string | null;
38396
+ fulfillment_order_id?: string | null;
38397
+ id?: string;
38398
+ locked_until?: string | null;
38399
+ next_attempt_at?: string | null;
38400
+ order_id?: string | null;
38401
+ order_number?: string | null;
38402
+ print_job_id?: string | null;
38403
+ printer_id?: string | null;
38404
+ retry_class?: string | null;
38405
+ slip_job_id?: string;
38406
+ status?: string;
38407
+ updated_at?: string;
38408
+ };
38409
+ Relationships: [];
38410
+ };
37240
38411
  logistics_staff_planning: {
37241
38412
  Row: {
37242
38413
  created_at: string;
@@ -37588,6 +38759,111 @@ export declare const resolveStockConsumptionAlert: import("@tanstack/start-clien
37588
38759
  };
37589
38760
  Relationships: [];
37590
38761
  };
38762
+ logistics_trace_events: {
38763
+ Row: {
38764
+ actor: string | null;
38765
+ attempts: number;
38766
+ cart_ref: string | null;
38767
+ created_at: string;
38768
+ db_action: string | null;
38769
+ db_new: import("../integrations/supabase/types").Json | null;
38770
+ db_old: import("../integrations/supabase/types").Json | null;
38771
+ db_record: string | null;
38772
+ db_table: string | null;
38773
+ decision: string | null;
38774
+ duration_ms: number | null;
38775
+ error: string | null;
38776
+ external_action: string | null;
38777
+ external_ref: string | null;
38778
+ external_response: import("../integrations/supabase/types").Json | null;
38779
+ external_status: string | null;
38780
+ external_system: string | null;
38781
+ id: string;
38782
+ input: import("../integrations/supabase/types").Json | null;
38783
+ next_attempt_at: string | null;
38784
+ order_ref: string | null;
38785
+ order_source: string | null;
38786
+ output: import("../integrations/supabase/types").Json | null;
38787
+ phase: string;
38788
+ reads: import("../integrations/supabase/types").Json | null;
38789
+ reason: string | null;
38790
+ rule: string | null;
38791
+ slip_ref: string | null;
38792
+ status: string;
38793
+ step: string;
38794
+ trace_id: string;
38795
+ values_used: import("../integrations/supabase/types").Json | null;
38796
+ };
38797
+ Insert: {
38798
+ actor?: string | null;
38799
+ attempts?: number;
38800
+ cart_ref?: string | null;
38801
+ created_at?: string;
38802
+ db_action?: string | null;
38803
+ db_new?: import("../integrations/supabase/types").Json | null;
38804
+ db_old?: import("../integrations/supabase/types").Json | null;
38805
+ db_record?: string | null;
38806
+ db_table?: string | null;
38807
+ decision?: string | null;
38808
+ duration_ms?: number | null;
38809
+ error?: string | null;
38810
+ external_action?: string | null;
38811
+ external_ref?: string | null;
38812
+ external_response?: import("../integrations/supabase/types").Json | null;
38813
+ external_status?: string | null;
38814
+ external_system?: string | null;
38815
+ id?: string;
38816
+ input?: import("../integrations/supabase/types").Json | null;
38817
+ next_attempt_at?: string | null;
38818
+ order_ref?: string | null;
38819
+ order_source?: string | null;
38820
+ output?: import("../integrations/supabase/types").Json | null;
38821
+ phase: string;
38822
+ reads?: import("../integrations/supabase/types").Json | null;
38823
+ reason?: string | null;
38824
+ rule?: string | null;
38825
+ slip_ref?: string | null;
38826
+ status: string;
38827
+ step: string;
38828
+ trace_id?: string;
38829
+ values_used?: import("../integrations/supabase/types").Json | null;
38830
+ };
38831
+ Update: {
38832
+ actor?: string | null;
38833
+ attempts?: number;
38834
+ cart_ref?: string | null;
38835
+ created_at?: string;
38836
+ db_action?: string | null;
38837
+ db_new?: import("../integrations/supabase/types").Json | null;
38838
+ db_old?: import("../integrations/supabase/types").Json | null;
38839
+ db_record?: string | null;
38840
+ db_table?: string | null;
38841
+ decision?: string | null;
38842
+ duration_ms?: number | null;
38843
+ error?: string | null;
38844
+ external_action?: string | null;
38845
+ external_ref?: string | null;
38846
+ external_response?: import("../integrations/supabase/types").Json | null;
38847
+ external_status?: string | null;
38848
+ external_system?: string | null;
38849
+ id?: string;
38850
+ input?: import("../integrations/supabase/types").Json | null;
38851
+ next_attempt_at?: string | null;
38852
+ order_ref?: string | null;
38853
+ order_source?: string | null;
38854
+ output?: import("../integrations/supabase/types").Json | null;
38855
+ phase?: string;
38856
+ reads?: import("../integrations/supabase/types").Json | null;
38857
+ reason?: string | null;
38858
+ rule?: string | null;
38859
+ slip_ref?: string | null;
38860
+ status?: string;
38861
+ step?: string;
38862
+ trace_id?: string;
38863
+ values_used?: import("../integrations/supabase/types").Json | null;
38864
+ };
38865
+ Relationships: [];
38866
+ };
37591
38867
  logistics_variables: {
37592
38868
  Row: {
37593
38869
  created_at: string;
@@ -48160,6 +49436,15 @@ export declare const resolveStockConsumptionAlert: import("@tanstack/start-clien
48160
49436
  Args: never;
48161
49437
  Returns: boolean;
48162
49438
  };
49439
+ cancel_open_print_jobs: {
49440
+ Args: {
49441
+ _cutoff: string;
49442
+ };
49443
+ Returns: {
49444
+ extern_job_id: string;
49445
+ id: string;
49446
+ }[];
49447
+ };
48163
49448
  check_offer_product_available_stock: {
48164
49449
  Args: {
48165
49450
  p_campaign_product_id: string;
@@ -49698,6 +50983,12 @@ export declare const resolveStockConsumptionAlert: import("@tanstack/start-clien
49698
50983
  };
49699
50984
  Returns: string;
49700
50985
  };
50986
+ logistics_cart_checkin_at: {
50987
+ Args: {
50988
+ p_cart_id: string;
50989
+ };
50990
+ Returns: string;
50991
+ };
49701
50992
  logistics_cart_handled: {
49702
50993
  Args: {
49703
50994
  p_cart_index: number;
@@ -49731,10 +51022,22 @@ export declare const resolveStockConsumptionAlert: import("@tanstack/start-clien
49731
51022
  task_status: string;
49732
51023
  }[];
49733
51024
  };
51025
+ logistics_cart_is_full: {
51026
+ Args: {
51027
+ p_cart_id: string;
51028
+ };
51029
+ Returns: boolean;
51030
+ };
49734
51031
  logistics_cart_layout_method: {
49735
51032
  Args: never;
49736
51033
  Returns: import("../integrations/supabase/types").Json;
49737
51034
  };
51035
+ logistics_cart_order_refs: {
51036
+ Args: {
51037
+ p_cart_id: string;
51038
+ };
51039
+ Returns: string[];
51040
+ };
49738
51041
  logistics_cart_plan_overview: {
49739
51042
  Args: {
49740
51043
  p_days?: number;
@@ -49754,6 +51057,24 @@ export declare const resolveStockConsumptionAlert: import("@tanstack/start-clien
49754
51057
  };
49755
51058
  Returns: import("../integrations/supabase/types").Json;
49756
51059
  };
51060
+ logistics_cart_plan_status_core: {
51061
+ Args: {
51062
+ p_ref: string;
51063
+ };
51064
+ Returns: import("../integrations/supabase/types").Json;
51065
+ };
51066
+ logistics_cart_release_reason: {
51067
+ Args: {
51068
+ p_cart_id: string;
51069
+ };
51070
+ Returns: string;
51071
+ };
51072
+ logistics_cart_released: {
51073
+ Args: {
51074
+ p_cart_id: string;
51075
+ };
51076
+ Returns: boolean;
51077
+ };
49757
51078
  logistics_cart_seq: {
49758
51079
  Args: {
49759
51080
  p_order_uuid?: string;
@@ -49804,6 +51125,10 @@ export declare const resolveStockConsumptionAlert: import("@tanstack/start-clien
49804
51125
  unit_ref: string;
49805
51126
  }[];
49806
51127
  };
51128
+ logistics_carts_per_print: {
51129
+ Args: never;
51130
+ Returns: number;
51131
+ };
49807
51132
  logistics_check_order_allowed: {
49808
51133
  Args: {
49809
51134
  p_lines: import("../integrations/supabase/types").Json;
@@ -49907,6 +51232,10 @@ export declare const resolveStockConsumptionAlert: import("@tanstack/start-clien
49907
51232
  isSetofReturn: false;
49908
51233
  };
49909
51234
  };
51235
+ logistics_cleanup_orphan_print_jobs: {
51236
+ Args: never;
51237
+ Returns: import("../integrations/supabase/types").Json;
51238
+ };
49910
51239
  logistics_complete_task: {
49911
51240
  Args: {
49912
51241
  p_result?: import("../integrations/supabase/types").Json;
@@ -50158,6 +51487,20 @@ export declare const resolveStockConsumptionAlert: import("@tanstack/start-clien
50158
51487
  };
50159
51488
  Returns: string;
50160
51489
  };
51490
+ logistics_ensure_pick_data: {
51491
+ Args: {
51492
+ p_event_id?: string;
51493
+ p_missing?: import("../integrations/supabase/types").Json;
51494
+ p_ref: string;
51495
+ };
51496
+ Returns: import("../integrations/supabase/types").Json;
51497
+ };
51498
+ logistics_ensure_shipping_notes: {
51499
+ Args: {
51500
+ p_limit?: number;
51501
+ };
51502
+ Returns: import("../integrations/supabase/types").Json;
51503
+ };
50161
51504
  logistics_fail_task: {
50162
51505
  Args: {
50163
51506
  p_error: string;
@@ -50203,6 +51546,10 @@ export declare const resolveStockConsumptionAlert: import("@tanstack/start-clien
50203
51546
  isSetofReturn: false;
50204
51547
  };
50205
51548
  };
51549
+ logistics_fix_wrong_shipping_notes: {
51550
+ Args: never;
51551
+ Returns: import("../integrations/supabase/types").Json;
51552
+ };
50206
51553
  logistics_floriday_cart_plan: {
50207
51554
  Args: {
50208
51555
  p_order_id: string;
@@ -50230,6 +51577,10 @@ export declare const resolveStockConsumptionAlert: import("@tanstack/start-clien
50230
51577
  revision: number;
50231
51578
  }[];
50232
51579
  };
51580
+ logistics_floriday_delivery_note_create_enabled: {
51581
+ Args: never;
51582
+ Returns: boolean;
51583
+ };
50233
51584
  logistics_floriday_finish_push: {
50234
51585
  Args: {
50235
51586
  _error?: string;
@@ -50381,6 +51732,12 @@ export declare const resolveStockConsumptionAlert: import("@tanstack/start-clien
50381
51732
  };
50382
51733
  Returns: number;
50383
51734
  };
51735
+ logistics_merge_partial_carts: {
51736
+ Args: {
51737
+ p_limit?: number;
51738
+ };
51739
+ Returns: import("../integrations/supabase/types").Json;
51740
+ };
50384
51741
  logistics_next_workday_date: {
50385
51742
  Args: {
50386
51743
  p_date: string;
@@ -50467,6 +51824,12 @@ export declare const resolveStockConsumptionAlert: import("@tanstack/start-clien
50467
51824
  };
50468
51825
  Returns: string;
50469
51826
  };
51827
+ logistics_payload_is_floriday: {
51828
+ Args: {
51829
+ _payload: import("../integrations/supabase/types").Json;
51830
+ };
51831
+ Returns: boolean;
51832
+ };
50470
51833
  logistics_pick_agenda: {
50471
51834
  Args: {
50472
51835
  p_from?: string;
@@ -50495,6 +51858,10 @@ export declare const resolveStockConsumptionAlert: import("@tanstack/start-clien
50495
51858
  Args: never;
50496
51859
  Returns: import("../integrations/supabase/types").Json;
50497
51860
  };
51861
+ logistics_pick_partial_mode: {
51862
+ Args: never;
51863
+ Returns: string;
51864
+ };
50498
51865
  logistics_pick_start_estimate: {
50499
51866
  Args: {
50500
51867
  p_order: import("../integrations/supabase/types").Json;
@@ -50585,6 +51952,20 @@ export declare const resolveStockConsumptionAlert: import("@tanstack/start-clien
50585
51952
  Args: never;
50586
51953
  Returns: undefined;
50587
51954
  };
51955
+ logistics_plan_progress: {
51956
+ Args: {
51957
+ p_refs: string[];
51958
+ };
51959
+ Returns: {
51960
+ cart_plan_ready: boolean;
51961
+ cart_plan_reason: string;
51962
+ cart_plan_released: boolean;
51963
+ plan_progress: number;
51964
+ plan_state: string;
51965
+ plan_state_since: string;
51966
+ unit_ref: string;
51967
+ }[];
51968
+ };
50588
51969
  logistics_plan_prune: {
50589
51970
  Args: never;
50590
51971
  Returns: number;
@@ -50606,6 +51987,18 @@ export declare const resolveStockConsumptionAlert: import("@tanstack/start-clien
50606
51987
  };
50607
51988
  Returns: number;
50608
51989
  };
51990
+ logistics_plan_state_for: {
51991
+ Args: {
51992
+ p_ref: string;
51993
+ };
51994
+ Returns: import("../integrations/supabase/types").Json;
51995
+ };
51996
+ logistics_prepare_pick_documents: {
51997
+ Args: {
51998
+ p_limit?: number;
51999
+ };
52000
+ Returns: import("../integrations/supabase/types").Json;
52001
+ };
50609
52002
  logistics_prune_buffer_member_queue: {
50610
52003
  Args: never;
50611
52004
  Returns: number;
@@ -50646,18 +52039,36 @@ export declare const resolveStockConsumptionAlert: import("@tanstack/start-clien
50646
52039
  Args: never;
50647
52040
  Returns: import("../integrations/supabase/types").Json;
50648
52041
  };
52042
+ logistics_refresh_pick_queue_status: {
52043
+ Args: {
52044
+ p_ref: string;
52045
+ };
52046
+ Returns: number;
52047
+ };
50649
52048
  logistics_refresh_pickup_moments: {
50650
52049
  Args: {
50651
52050
  p_weeks?: number;
50652
52051
  };
50653
52052
  Returns: import("../integrations/supabase/types").Json;
50654
52053
  };
52054
+ logistics_refresh_plan_state: {
52055
+ Args: {
52056
+ p_limit?: number;
52057
+ };
52058
+ Returns: import("../integrations/supabase/types").Json;
52059
+ };
50655
52060
  logistics_replan_all: {
50656
52061
  Args: {
50657
52062
  p_reason?: string;
50658
52063
  };
50659
52064
  Returns: import("../integrations/supabase/types").Json;
50660
52065
  };
52066
+ logistics_replan_all_force: {
52067
+ Args: {
52068
+ p_reason?: string;
52069
+ };
52070
+ Returns: import("../integrations/supabase/types").Json;
52071
+ };
50661
52072
  logistics_report_delay: {
50662
52073
  Args: {
50663
52074
  p_expected_date?: string;
@@ -50814,6 +52225,74 @@ export declare const resolveStockConsumptionAlert: import("@tanstack/start-clien
50814
52225
  };
50815
52226
  Returns: import("../integrations/supabase/types").Json;
50816
52227
  };
52228
+ logistics_shipping_note_job_for_slip: {
52229
+ Args: {
52230
+ _slip_job_id: string;
52231
+ };
52232
+ Returns: string;
52233
+ };
52234
+ logistics_shipping_notes_wake_all: {
52235
+ Args: never;
52236
+ Returns: import("../integrations/supabase/types").Json;
52237
+ };
52238
+ logistics_slip_is_floriday: {
52239
+ Args: {
52240
+ _slip_job_id: string;
52241
+ };
52242
+ Returns: boolean;
52243
+ };
52244
+ logistics_slip_note_claim: {
52245
+ Args: {
52246
+ _lease_seconds?: number;
52247
+ _limit?: number;
52248
+ };
52249
+ Returns: {
52250
+ attempts: number;
52251
+ batch_key: string | null;
52252
+ cart_id: string | null;
52253
+ created_at: string;
52254
+ error: string | null;
52255
+ error_code: string | null;
52256
+ fulfillment_order_id: string | null;
52257
+ id: string;
52258
+ locked_until: string | null;
52259
+ next_attempt_at: string | null;
52260
+ order_id: string | null;
52261
+ order_number: string | null;
52262
+ print_job_id: string | null;
52263
+ printer_id: string | null;
52264
+ retry_class: string | null;
52265
+ slip_job_id: string;
52266
+ status: string;
52267
+ updated_at: string;
52268
+ }[];
52269
+ SetofOptions: {
52270
+ from: "*";
52271
+ to: "logistics_slip_shipping_note";
52272
+ isOneToOne: false;
52273
+ isSetofReturn: true;
52274
+ };
52275
+ };
52276
+ logistics_slip_note_finish: {
52277
+ Args: {
52278
+ _error?: string;
52279
+ _error_code?: string;
52280
+ _fulfillment_order_id?: string;
52281
+ _id: string;
52282
+ _ok: boolean;
52283
+ _print_job_id?: string;
52284
+ _status?: string;
52285
+ };
52286
+ Returns: undefined;
52287
+ };
52288
+ logistics_slip_note_keep_waiting: {
52289
+ Args: {
52290
+ _class?: string;
52291
+ _id: string;
52292
+ _reason: string;
52293
+ };
52294
+ Returns: undefined;
52295
+ };
50817
52296
  logistics_sticker_follows_slip: {
50818
52297
  Args: never;
50819
52298
  Returns: boolean;
@@ -50868,6 +52347,40 @@ export declare const resolveStockConsumptionAlert: import("@tanstack/start-clien
50868
52347
  name: string;
50869
52348
  }[];
50870
52349
  };
52350
+ logistics_trace: {
52351
+ Args: {
52352
+ p: import("../integrations/supabase/types").Json;
52353
+ };
52354
+ Returns: string;
52355
+ };
52356
+ logistics_trace_batch: {
52357
+ Args: {
52358
+ p: import("../integrations/supabase/types").Json;
52359
+ };
52360
+ Returns: number;
52361
+ };
52362
+ logistics_trace_orders: {
52363
+ Args: {
52364
+ p_limit?: number;
52365
+ p_search?: string;
52366
+ p_since?: string;
52367
+ p_status?: string;
52368
+ };
52369
+ Returns: import("../integrations/supabase/types").Json;
52370
+ };
52371
+ logistics_trace_redact: {
52372
+ Args: {
52373
+ p: import("../integrations/supabase/types").Json;
52374
+ };
52375
+ Returns: import("../integrations/supabase/types").Json;
52376
+ };
52377
+ logistics_trace_timeline: {
52378
+ Args: {
52379
+ p_limit?: number;
52380
+ p_order_ref: string;
52381
+ };
52382
+ Returns: import("../integrations/supabase/types").Json;
52383
+ };
50871
52384
  logistics_upsert_task: {
50872
52385
  Args: {
50873
52386
  p_buffer_ref: string;
@@ -51909,6 +53422,10 @@ export declare const resolveStockConsumptionAlert: import("@tanstack/start-clien
51909
53422
  };
51910
53423
  Returns: undefined;
51911
53424
  };
53425
+ prune_floriday_api_log: {
53426
+ Args: never;
53427
+ Returns: number;
53428
+ };
51912
53429
  quote_create_from_source: {
51913
53430
  Args: {
51914
53431
  _payload?: import("../integrations/supabase/types").Json;
@@ -52342,6 +53859,13 @@ export declare const resolveStockConsumptionAlert: import("@tanstack/start-clien
52342
53859
  };
52343
53860
  Returns: number;
52344
53861
  };
53862
+ schedule_floriday_catalog_prices_sync: {
53863
+ Args: {
53864
+ p_apikey: string;
53865
+ p_url: string;
53866
+ };
53867
+ Returns: number;
53868
+ };
52345
53869
  schedule_floriday_clock_presales_sync: {
52346
53870
  Args: {
52347
53871
  p_apikey: string;
@@ -52642,6 +54166,10 @@ export declare const resolveStockConsumptionAlert: import("@tanstack/start-clien
52642
54166
  };
52643
54167
  Returns: undefined;
52644
54168
  };
54169
+ sync_floriday_prices_into_price_groups: {
54170
+ Args: never;
54171
+ Returns: number;
54172
+ };
52645
54173
  sync_layer_stock: {
52646
54174
  Args: {
52647
54175
  p_product_id: string;
@@ -52774,6 +54302,10 @@ export declare const resolveStockConsumptionAlert: import("@tanstack/start-clien
52774
54302
  Args: never;
52775
54303
  Returns: string;
52776
54304
  };
54305
+ voorraad_cleanup_old_rows: {
54306
+ Args: never;
54307
+ Returns: import("../integrations/supabase/types").Json;
54308
+ };
52777
54309
  wake_print_queue: {
52778
54310
  Args: {
52779
54311
  _min_interval_ms?: number;