@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
@@ -2235,6 +2235,45 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
2235
2235
  };
2236
2236
  Relationships: [];
2237
2237
  };
2238
+ customer_product_stickers: {
2239
+ Row: {
2240
+ created_at: string;
2241
+ customer_key: string;
2242
+ file_name: string;
2243
+ file_path: string;
2244
+ file_size: number | null;
2245
+ id: string;
2246
+ mime_type: string | null;
2247
+ trade_item_key: string;
2248
+ updated_at: string;
2249
+ uploaded_by: string | null;
2250
+ };
2251
+ Insert: {
2252
+ created_at?: string;
2253
+ customer_key: string;
2254
+ file_name: string;
2255
+ file_path: string;
2256
+ file_size?: number | null;
2257
+ id?: string;
2258
+ mime_type?: string | null;
2259
+ trade_item_key: string;
2260
+ updated_at?: string;
2261
+ uploaded_by?: string | null;
2262
+ };
2263
+ Update: {
2264
+ created_at?: string;
2265
+ customer_key?: string;
2266
+ file_name?: string;
2267
+ file_path?: string;
2268
+ file_size?: number | null;
2269
+ id?: string;
2270
+ mime_type?: string | null;
2271
+ trade_item_key?: string;
2272
+ updated_at?: string;
2273
+ uploaded_by?: string | null;
2274
+ };
2275
+ Relationships: [];
2276
+ };
2238
2277
  customer_selected_assortment: {
2239
2278
  Row: {
2240
2279
  article_number: string | null;
@@ -2283,6 +2322,30 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
2283
2322
  referencedColumns: ["id"];
2284
2323
  }];
2285
2324
  };
2325
+ customer_sticker_settings: {
2326
+ Row: {
2327
+ created_at: string;
2328
+ customer_key: string;
2329
+ height_mm: number;
2330
+ updated_at: string;
2331
+ width_mm: number;
2332
+ };
2333
+ Insert: {
2334
+ created_at?: string;
2335
+ customer_key: string;
2336
+ height_mm?: number;
2337
+ updated_at?: string;
2338
+ width_mm?: number;
2339
+ };
2340
+ Update: {
2341
+ created_at?: string;
2342
+ customer_key?: string;
2343
+ height_mm?: number;
2344
+ updated_at?: string;
2345
+ width_mm?: number;
2346
+ };
2347
+ Relationships: [];
2348
+ };
2286
2349
  customer_trade_settings: {
2287
2350
  Row: {
2288
2351
  category: string;
@@ -5613,6 +5676,102 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
5613
5676
  referencedColumns: ["id"];
5614
5677
  }];
5615
5678
  };
5679
+ floriday_api_log: {
5680
+ Row: {
5681
+ action: string | null;
5682
+ caller: string | null;
5683
+ connection_id: string | null;
5684
+ created_at: string;
5685
+ cursor_from: number | null;
5686
+ direction: string;
5687
+ duration_ms: number | null;
5688
+ environment: string | null;
5689
+ error: string | null;
5690
+ floriday_id: string | null;
5691
+ floriday_reference: string | null;
5692
+ http_status: number;
5693
+ id: string;
5694
+ item_count: number | null;
5695
+ kind: string | null;
5696
+ local_id: string | null;
5697
+ local_reference: string | null;
5698
+ method: string;
5699
+ module: string | null;
5700
+ ok: boolean;
5701
+ path: string;
5702
+ request: import("../integrations/supabase/types").Json | null;
5703
+ resource_type: string | null;
5704
+ response: import("../integrations/supabase/types").Json | null;
5705
+ write_log_id: string | null;
5706
+ };
5707
+ Insert: {
5708
+ action?: string | null;
5709
+ caller?: string | null;
5710
+ connection_id?: string | null;
5711
+ created_at?: string;
5712
+ cursor_from?: number | null;
5713
+ direction: string;
5714
+ duration_ms?: number | null;
5715
+ environment?: string | null;
5716
+ error?: string | null;
5717
+ floriday_id?: string | null;
5718
+ floriday_reference?: string | null;
5719
+ http_status?: number;
5720
+ id?: string;
5721
+ item_count?: number | null;
5722
+ kind?: string | null;
5723
+ local_id?: string | null;
5724
+ local_reference?: string | null;
5725
+ method: string;
5726
+ module?: string | null;
5727
+ ok?: boolean;
5728
+ path: string;
5729
+ request?: import("../integrations/supabase/types").Json | null;
5730
+ resource_type?: string | null;
5731
+ response?: import("../integrations/supabase/types").Json | null;
5732
+ write_log_id?: string | null;
5733
+ };
5734
+ Update: {
5735
+ action?: string | null;
5736
+ caller?: string | null;
5737
+ connection_id?: string | null;
5738
+ created_at?: string;
5739
+ cursor_from?: number | null;
5740
+ direction?: string;
5741
+ duration_ms?: number | null;
5742
+ environment?: string | null;
5743
+ error?: string | null;
5744
+ floriday_id?: string | null;
5745
+ floriday_reference?: string | null;
5746
+ http_status?: number;
5747
+ id?: string;
5748
+ item_count?: number | null;
5749
+ kind?: string | null;
5750
+ local_id?: string | null;
5751
+ local_reference?: string | null;
5752
+ method?: string;
5753
+ module?: string | null;
5754
+ ok?: boolean;
5755
+ path?: string;
5756
+ request?: import("../integrations/supabase/types").Json | null;
5757
+ resource_type?: string | null;
5758
+ response?: import("../integrations/supabase/types").Json | null;
5759
+ write_log_id?: string | null;
5760
+ };
5761
+ Relationships: [{
5762
+ foreignKeyName: "floriday_api_log_connection_id_fkey";
5763
+ columns: ["connection_id"];
5764
+ isOneToOne: false;
5765
+ referencedRelation: "floriday_connections";
5766
+ referencedColumns: ["id"];
5767
+ }, {
5768
+ foreignKeyName: "floriday_api_log_write_log_id_fkey";
5769
+ columns: ["write_log_id"];
5770
+ isOneToOne: false;
5771
+ referencedRelation: "floriday_write_log";
5772
+ referencedColumns: ["id"];
5773
+ }];
5774
+ };
5616
5775
  floriday_auction_letters_cache: {
5617
5776
  Row: {
5618
5777
  auction_letter_code: string;
@@ -5820,6 +5979,84 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
5820
5979
  referencedColumns: ["id"];
5821
5980
  }];
5822
5981
  };
5982
+ floriday_catalog_prices_cache: {
5983
+ Row: {
5984
+ connection_id: string;
5985
+ created_at: string;
5986
+ currency: string;
5987
+ id: string;
5988
+ is_deleted: boolean;
5989
+ price: number | null;
5990
+ price_group_id: string | null;
5991
+ price_group_name: string | null;
5992
+ price_type: string;
5993
+ raw: import("../integrations/supabase/types").Json | null;
5994
+ sales_unit: string | null;
5995
+ sequence_number: number;
5996
+ supplier_article_code: string | null;
5997
+ supply_line_id: string;
5998
+ synced_at: string;
5999
+ trade_item_id: string | null;
6000
+ updated_at: string;
6001
+ valid_from: string | null;
6002
+ valid_to: string | null;
6003
+ week: number | null;
6004
+ year: number | null;
6005
+ };
6006
+ Insert: {
6007
+ connection_id: string;
6008
+ created_at?: string;
6009
+ currency?: string;
6010
+ id?: string;
6011
+ is_deleted?: boolean;
6012
+ price?: number | null;
6013
+ price_group_id?: string | null;
6014
+ price_group_name?: string | null;
6015
+ price_type?: string;
6016
+ raw?: import("../integrations/supabase/types").Json | null;
6017
+ sales_unit?: string | null;
6018
+ sequence_number?: number;
6019
+ supplier_article_code?: string | null;
6020
+ supply_line_id: string;
6021
+ synced_at?: string;
6022
+ trade_item_id?: string | null;
6023
+ updated_at?: string;
6024
+ valid_from?: string | null;
6025
+ valid_to?: string | null;
6026
+ week?: number | null;
6027
+ year?: number | null;
6028
+ };
6029
+ Update: {
6030
+ connection_id?: string;
6031
+ created_at?: string;
6032
+ currency?: string;
6033
+ id?: string;
6034
+ is_deleted?: boolean;
6035
+ price?: number | null;
6036
+ price_group_id?: string | null;
6037
+ price_group_name?: string | null;
6038
+ price_type?: string;
6039
+ raw?: import("../integrations/supabase/types").Json | null;
6040
+ sales_unit?: string | null;
6041
+ sequence_number?: number;
6042
+ supplier_article_code?: string | null;
6043
+ supply_line_id?: string;
6044
+ synced_at?: string;
6045
+ trade_item_id?: string | null;
6046
+ updated_at?: string;
6047
+ valid_from?: string | null;
6048
+ valid_to?: string | null;
6049
+ week?: number | null;
6050
+ year?: number | null;
6051
+ };
6052
+ Relationships: [{
6053
+ foreignKeyName: "floriday_catalog_prices_cache_connection_id_fkey";
6054
+ columns: ["connection_id"];
6055
+ isOneToOne: false;
6056
+ referencedRelation: "floriday_connections";
6057
+ referencedColumns: ["id"];
6058
+ }];
6059
+ };
5823
6060
  floriday_clock_presales_cache: {
5824
6061
  Row: {
5825
6062
  buyer_organization_id: string | null;
@@ -6735,6 +6972,69 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
6735
6972
  referencedColumns: ["id"];
6736
6973
  }];
6737
6974
  };
6975
+ floriday_link_templates: {
6976
+ Row: {
6977
+ created_at: string;
6978
+ floriday_url_template: string | null;
6979
+ is_active: boolean;
6980
+ label: string;
6981
+ local_url_template: string | null;
6982
+ resource_type: string;
6983
+ updated_at: string;
6984
+ };
6985
+ Insert: {
6986
+ created_at?: string;
6987
+ floriday_url_template?: string | null;
6988
+ is_active?: boolean;
6989
+ label: string;
6990
+ local_url_template?: string | null;
6991
+ resource_type: string;
6992
+ updated_at?: string;
6993
+ };
6994
+ Update: {
6995
+ created_at?: string;
6996
+ floriday_url_template?: string | null;
6997
+ is_active?: boolean;
6998
+ label?: string;
6999
+ local_url_template?: string | null;
7000
+ resource_type?: string;
7001
+ updated_at?: string;
7002
+ };
7003
+ Relationships: [];
7004
+ };
7005
+ floriday_log_retention: {
7006
+ Row: {
7007
+ created_at: string;
7008
+ direction: string | null;
7009
+ id: string;
7010
+ keep_failed_days: number | null;
7011
+ keep_ok_days: number | null;
7012
+ note: string | null;
7013
+ resource_type: string | null;
7014
+ updated_at: string;
7015
+ };
7016
+ Insert: {
7017
+ created_at?: string;
7018
+ direction?: string | null;
7019
+ id?: string;
7020
+ keep_failed_days?: number | null;
7021
+ keep_ok_days?: number | null;
7022
+ note?: string | null;
7023
+ resource_type?: string | null;
7024
+ updated_at?: string;
7025
+ };
7026
+ Update: {
7027
+ created_at?: string;
7028
+ direction?: string | null;
7029
+ id?: string;
7030
+ keep_failed_days?: number | null;
7031
+ keep_ok_days?: number | null;
7032
+ note?: string | null;
7033
+ resource_type?: string | null;
7034
+ updated_at?: string;
7035
+ };
7036
+ Relationships: [];
7037
+ };
6738
7038
  floriday_logistic_labels_cache: {
6739
7039
  Row: {
6740
7040
  byte_size: number | null;
@@ -10359,6 +10659,48 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
10359
10659
  };
10360
10660
  Relationships: [];
10361
10661
  };
10662
+ logistics_pick_data_requests: {
10663
+ Row: {
10664
+ actions: import("../integrations/supabase/types").Json;
10665
+ created_at: string;
10666
+ event_id: string | null;
10667
+ finished_at: string | null;
10668
+ id: string;
10669
+ missing: import("../integrations/supabase/types").Json;
10670
+ order_ref: string;
10671
+ reason: string | null;
10672
+ result: import("../integrations/supabase/types").Json | null;
10673
+ status: string;
10674
+ unit_ref: string | null;
10675
+ };
10676
+ Insert: {
10677
+ actions?: import("../integrations/supabase/types").Json;
10678
+ created_at?: string;
10679
+ event_id?: string | null;
10680
+ finished_at?: string | null;
10681
+ id?: string;
10682
+ missing?: import("../integrations/supabase/types").Json;
10683
+ order_ref: string;
10684
+ reason?: string | null;
10685
+ result?: import("../integrations/supabase/types").Json | null;
10686
+ status?: string;
10687
+ unit_ref?: string | null;
10688
+ };
10689
+ Update: {
10690
+ actions?: import("../integrations/supabase/types").Json;
10691
+ created_at?: string;
10692
+ event_id?: string | null;
10693
+ finished_at?: string | null;
10694
+ id?: string;
10695
+ missing?: import("../integrations/supabase/types").Json;
10696
+ order_ref?: string;
10697
+ reason?: string | null;
10698
+ result?: import("../integrations/supabase/types").Json | null;
10699
+ status?: string;
10700
+ unit_ref?: string | null;
10701
+ };
10702
+ Relationships: [];
10703
+ };
10362
10704
  logistics_pickup_moments: {
10363
10705
  Row: {
10364
10706
  carrier_ref: string | null;
@@ -10818,6 +11160,69 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
10818
11160
  };
10819
11161
  Relationships: [];
10820
11162
  };
11163
+ logistics_slip_shipping_note: {
11164
+ Row: {
11165
+ attempts: number;
11166
+ batch_key: string | null;
11167
+ cart_id: string | null;
11168
+ created_at: string;
11169
+ error: string | null;
11170
+ error_code: string | null;
11171
+ fulfillment_order_id: string | null;
11172
+ id: string;
11173
+ locked_until: string | null;
11174
+ next_attempt_at: string | null;
11175
+ order_id: string | null;
11176
+ order_number: string | null;
11177
+ print_job_id: string | null;
11178
+ printer_id: string | null;
11179
+ retry_class: string | null;
11180
+ slip_job_id: string;
11181
+ status: string;
11182
+ updated_at: string;
11183
+ };
11184
+ Insert: {
11185
+ attempts?: number;
11186
+ batch_key?: string | null;
11187
+ cart_id?: string | null;
11188
+ created_at?: string;
11189
+ error?: string | null;
11190
+ error_code?: string | null;
11191
+ fulfillment_order_id?: string | null;
11192
+ id?: string;
11193
+ locked_until?: string | null;
11194
+ next_attempt_at?: string | null;
11195
+ order_id?: string | null;
11196
+ order_number?: string | null;
11197
+ print_job_id?: string | null;
11198
+ printer_id?: string | null;
11199
+ retry_class?: string | null;
11200
+ slip_job_id: string;
11201
+ status?: string;
11202
+ updated_at?: string;
11203
+ };
11204
+ Update: {
11205
+ attempts?: number;
11206
+ batch_key?: string | null;
11207
+ cart_id?: string | null;
11208
+ created_at?: string;
11209
+ error?: string | null;
11210
+ error_code?: string | null;
11211
+ fulfillment_order_id?: string | null;
11212
+ id?: string;
11213
+ locked_until?: string | null;
11214
+ next_attempt_at?: string | null;
11215
+ order_id?: string | null;
11216
+ order_number?: string | null;
11217
+ print_job_id?: string | null;
11218
+ printer_id?: string | null;
11219
+ retry_class?: string | null;
11220
+ slip_job_id?: string;
11221
+ status?: string;
11222
+ updated_at?: string;
11223
+ };
11224
+ Relationships: [];
11225
+ };
10821
11226
  logistics_staff_planning: {
10822
11227
  Row: {
10823
11228
  created_at: string;
@@ -11169,6 +11574,111 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
11169
11574
  };
11170
11575
  Relationships: [];
11171
11576
  };
11577
+ logistics_trace_events: {
11578
+ Row: {
11579
+ actor: string | null;
11580
+ attempts: number;
11581
+ cart_ref: string | null;
11582
+ created_at: string;
11583
+ db_action: string | null;
11584
+ db_new: import("../integrations/supabase/types").Json | null;
11585
+ db_old: import("../integrations/supabase/types").Json | null;
11586
+ db_record: string | null;
11587
+ db_table: string | null;
11588
+ decision: string | null;
11589
+ duration_ms: number | null;
11590
+ error: string | null;
11591
+ external_action: string | null;
11592
+ external_ref: string | null;
11593
+ external_response: import("../integrations/supabase/types").Json | null;
11594
+ external_status: string | null;
11595
+ external_system: string | null;
11596
+ id: string;
11597
+ input: import("../integrations/supabase/types").Json | null;
11598
+ next_attempt_at: string | null;
11599
+ order_ref: string | null;
11600
+ order_source: string | null;
11601
+ output: import("../integrations/supabase/types").Json | null;
11602
+ phase: string;
11603
+ reads: import("../integrations/supabase/types").Json | null;
11604
+ reason: string | null;
11605
+ rule: string | null;
11606
+ slip_ref: string | null;
11607
+ status: string;
11608
+ step: string;
11609
+ trace_id: string;
11610
+ values_used: import("../integrations/supabase/types").Json | null;
11611
+ };
11612
+ Insert: {
11613
+ actor?: string | null;
11614
+ attempts?: number;
11615
+ cart_ref?: string | null;
11616
+ created_at?: string;
11617
+ db_action?: string | null;
11618
+ db_new?: import("../integrations/supabase/types").Json | null;
11619
+ db_old?: import("../integrations/supabase/types").Json | null;
11620
+ db_record?: string | null;
11621
+ db_table?: string | null;
11622
+ decision?: string | null;
11623
+ duration_ms?: number | null;
11624
+ error?: string | null;
11625
+ external_action?: string | null;
11626
+ external_ref?: string | null;
11627
+ external_response?: import("../integrations/supabase/types").Json | null;
11628
+ external_status?: string | null;
11629
+ external_system?: string | null;
11630
+ id?: string;
11631
+ input?: import("../integrations/supabase/types").Json | null;
11632
+ next_attempt_at?: string | null;
11633
+ order_ref?: string | null;
11634
+ order_source?: string | null;
11635
+ output?: import("../integrations/supabase/types").Json | null;
11636
+ phase: string;
11637
+ reads?: import("../integrations/supabase/types").Json | null;
11638
+ reason?: string | null;
11639
+ rule?: string | null;
11640
+ slip_ref?: string | null;
11641
+ status: string;
11642
+ step: string;
11643
+ trace_id?: string;
11644
+ values_used?: import("../integrations/supabase/types").Json | null;
11645
+ };
11646
+ Update: {
11647
+ actor?: string | null;
11648
+ attempts?: number;
11649
+ cart_ref?: string | null;
11650
+ created_at?: string;
11651
+ db_action?: string | null;
11652
+ db_new?: import("../integrations/supabase/types").Json | null;
11653
+ db_old?: import("../integrations/supabase/types").Json | null;
11654
+ db_record?: string | null;
11655
+ db_table?: string | null;
11656
+ decision?: string | null;
11657
+ duration_ms?: number | null;
11658
+ error?: string | null;
11659
+ external_action?: string | null;
11660
+ external_ref?: string | null;
11661
+ external_response?: import("../integrations/supabase/types").Json | null;
11662
+ external_status?: string | null;
11663
+ external_system?: string | null;
11664
+ id?: string;
11665
+ input?: import("../integrations/supabase/types").Json | null;
11666
+ next_attempt_at?: string | null;
11667
+ order_ref?: string | null;
11668
+ order_source?: string | null;
11669
+ output?: import("../integrations/supabase/types").Json | null;
11670
+ phase?: string;
11671
+ reads?: import("../integrations/supabase/types").Json | null;
11672
+ reason?: string | null;
11673
+ rule?: string | null;
11674
+ slip_ref?: string | null;
11675
+ status?: string;
11676
+ step?: string;
11677
+ trace_id?: string;
11678
+ values_used?: import("../integrations/supabase/types").Json | null;
11679
+ };
11680
+ Relationships: [];
11681
+ };
11172
11682
  logistics_variables: {
11173
11683
  Row: {
11174
11684
  created_at: string;
@@ -21741,6 +22251,15 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
21741
22251
  Args: never;
21742
22252
  Returns: boolean;
21743
22253
  };
22254
+ cancel_open_print_jobs: {
22255
+ Args: {
22256
+ _cutoff: string;
22257
+ };
22258
+ Returns: {
22259
+ extern_job_id: string;
22260
+ id: string;
22261
+ }[];
22262
+ };
21744
22263
  check_offer_product_available_stock: {
21745
22264
  Args: {
21746
22265
  p_campaign_product_id: string;
@@ -23279,6 +23798,12 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
23279
23798
  };
23280
23799
  Returns: string;
23281
23800
  };
23801
+ logistics_cart_checkin_at: {
23802
+ Args: {
23803
+ p_cart_id: string;
23804
+ };
23805
+ Returns: string;
23806
+ };
23282
23807
  logistics_cart_handled: {
23283
23808
  Args: {
23284
23809
  p_cart_index: number;
@@ -23312,10 +23837,22 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
23312
23837
  task_status: string;
23313
23838
  }[];
23314
23839
  };
23840
+ logistics_cart_is_full: {
23841
+ Args: {
23842
+ p_cart_id: string;
23843
+ };
23844
+ Returns: boolean;
23845
+ };
23315
23846
  logistics_cart_layout_method: {
23316
23847
  Args: never;
23317
23848
  Returns: import("../integrations/supabase/types").Json;
23318
23849
  };
23850
+ logistics_cart_order_refs: {
23851
+ Args: {
23852
+ p_cart_id: string;
23853
+ };
23854
+ Returns: string[];
23855
+ };
23319
23856
  logistics_cart_plan_overview: {
23320
23857
  Args: {
23321
23858
  p_days?: number;
@@ -23335,6 +23872,24 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
23335
23872
  };
23336
23873
  Returns: import("../integrations/supabase/types").Json;
23337
23874
  };
23875
+ logistics_cart_plan_status_core: {
23876
+ Args: {
23877
+ p_ref: string;
23878
+ };
23879
+ Returns: import("../integrations/supabase/types").Json;
23880
+ };
23881
+ logistics_cart_release_reason: {
23882
+ Args: {
23883
+ p_cart_id: string;
23884
+ };
23885
+ Returns: string;
23886
+ };
23887
+ logistics_cart_released: {
23888
+ Args: {
23889
+ p_cart_id: string;
23890
+ };
23891
+ Returns: boolean;
23892
+ };
23338
23893
  logistics_cart_seq: {
23339
23894
  Args: {
23340
23895
  p_order_uuid?: string;
@@ -23385,6 +23940,10 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
23385
23940
  unit_ref: string;
23386
23941
  }[];
23387
23942
  };
23943
+ logistics_carts_per_print: {
23944
+ Args: never;
23945
+ Returns: number;
23946
+ };
23388
23947
  logistics_check_order_allowed: {
23389
23948
  Args: {
23390
23949
  p_lines: import("../integrations/supabase/types").Json;
@@ -23488,6 +24047,10 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
23488
24047
  isSetofReturn: false;
23489
24048
  };
23490
24049
  };
24050
+ logistics_cleanup_orphan_print_jobs: {
24051
+ Args: never;
24052
+ Returns: import("../integrations/supabase/types").Json;
24053
+ };
23491
24054
  logistics_complete_task: {
23492
24055
  Args: {
23493
24056
  p_result?: import("../integrations/supabase/types").Json;
@@ -23739,6 +24302,20 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
23739
24302
  };
23740
24303
  Returns: string;
23741
24304
  };
24305
+ logistics_ensure_pick_data: {
24306
+ Args: {
24307
+ p_event_id?: string;
24308
+ p_missing?: import("../integrations/supabase/types").Json;
24309
+ p_ref: string;
24310
+ };
24311
+ Returns: import("../integrations/supabase/types").Json;
24312
+ };
24313
+ logistics_ensure_shipping_notes: {
24314
+ Args: {
24315
+ p_limit?: number;
24316
+ };
24317
+ Returns: import("../integrations/supabase/types").Json;
24318
+ };
23742
24319
  logistics_fail_task: {
23743
24320
  Args: {
23744
24321
  p_error: string;
@@ -23784,6 +24361,10 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
23784
24361
  isSetofReturn: false;
23785
24362
  };
23786
24363
  };
24364
+ logistics_fix_wrong_shipping_notes: {
24365
+ Args: never;
24366
+ Returns: import("../integrations/supabase/types").Json;
24367
+ };
23787
24368
  logistics_floriday_cart_plan: {
23788
24369
  Args: {
23789
24370
  p_order_id: string;
@@ -23811,6 +24392,10 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
23811
24392
  revision: number;
23812
24393
  }[];
23813
24394
  };
24395
+ logistics_floriday_delivery_note_create_enabled: {
24396
+ Args: never;
24397
+ Returns: boolean;
24398
+ };
23814
24399
  logistics_floriday_finish_push: {
23815
24400
  Args: {
23816
24401
  _error?: string;
@@ -23962,6 +24547,12 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
23962
24547
  };
23963
24548
  Returns: number;
23964
24549
  };
24550
+ logistics_merge_partial_carts: {
24551
+ Args: {
24552
+ p_limit?: number;
24553
+ };
24554
+ Returns: import("../integrations/supabase/types").Json;
24555
+ };
23965
24556
  logistics_next_workday_date: {
23966
24557
  Args: {
23967
24558
  p_date: string;
@@ -24048,6 +24639,12 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
24048
24639
  };
24049
24640
  Returns: string;
24050
24641
  };
24642
+ logistics_payload_is_floriday: {
24643
+ Args: {
24644
+ _payload: import("../integrations/supabase/types").Json;
24645
+ };
24646
+ Returns: boolean;
24647
+ };
24051
24648
  logistics_pick_agenda: {
24052
24649
  Args: {
24053
24650
  p_from?: string;
@@ -24076,6 +24673,10 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
24076
24673
  Args: never;
24077
24674
  Returns: import("../integrations/supabase/types").Json;
24078
24675
  };
24676
+ logistics_pick_partial_mode: {
24677
+ Args: never;
24678
+ Returns: string;
24679
+ };
24079
24680
  logistics_pick_start_estimate: {
24080
24681
  Args: {
24081
24682
  p_order: import("../integrations/supabase/types").Json;
@@ -24166,6 +24767,20 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
24166
24767
  Args: never;
24167
24768
  Returns: undefined;
24168
24769
  };
24770
+ logistics_plan_progress: {
24771
+ Args: {
24772
+ p_refs: string[];
24773
+ };
24774
+ Returns: {
24775
+ cart_plan_ready: boolean;
24776
+ cart_plan_reason: string;
24777
+ cart_plan_released: boolean;
24778
+ plan_progress: number;
24779
+ plan_state: string;
24780
+ plan_state_since: string;
24781
+ unit_ref: string;
24782
+ }[];
24783
+ };
24169
24784
  logistics_plan_prune: {
24170
24785
  Args: never;
24171
24786
  Returns: number;
@@ -24187,6 +24802,18 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
24187
24802
  };
24188
24803
  Returns: number;
24189
24804
  };
24805
+ logistics_plan_state_for: {
24806
+ Args: {
24807
+ p_ref: string;
24808
+ };
24809
+ Returns: import("../integrations/supabase/types").Json;
24810
+ };
24811
+ logistics_prepare_pick_documents: {
24812
+ Args: {
24813
+ p_limit?: number;
24814
+ };
24815
+ Returns: import("../integrations/supabase/types").Json;
24816
+ };
24190
24817
  logistics_prune_buffer_member_queue: {
24191
24818
  Args: never;
24192
24819
  Returns: number;
@@ -24227,18 +24854,36 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
24227
24854
  Args: never;
24228
24855
  Returns: import("../integrations/supabase/types").Json;
24229
24856
  };
24857
+ logistics_refresh_pick_queue_status: {
24858
+ Args: {
24859
+ p_ref: string;
24860
+ };
24861
+ Returns: number;
24862
+ };
24230
24863
  logistics_refresh_pickup_moments: {
24231
24864
  Args: {
24232
24865
  p_weeks?: number;
24233
24866
  };
24234
24867
  Returns: import("../integrations/supabase/types").Json;
24235
24868
  };
24869
+ logistics_refresh_plan_state: {
24870
+ Args: {
24871
+ p_limit?: number;
24872
+ };
24873
+ Returns: import("../integrations/supabase/types").Json;
24874
+ };
24236
24875
  logistics_replan_all: {
24237
24876
  Args: {
24238
24877
  p_reason?: string;
24239
24878
  };
24240
24879
  Returns: import("../integrations/supabase/types").Json;
24241
24880
  };
24881
+ logistics_replan_all_force: {
24882
+ Args: {
24883
+ p_reason?: string;
24884
+ };
24885
+ Returns: import("../integrations/supabase/types").Json;
24886
+ };
24242
24887
  logistics_report_delay: {
24243
24888
  Args: {
24244
24889
  p_expected_date?: string;
@@ -24395,6 +25040,74 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
24395
25040
  };
24396
25041
  Returns: import("../integrations/supabase/types").Json;
24397
25042
  };
25043
+ logistics_shipping_note_job_for_slip: {
25044
+ Args: {
25045
+ _slip_job_id: string;
25046
+ };
25047
+ Returns: string;
25048
+ };
25049
+ logistics_shipping_notes_wake_all: {
25050
+ Args: never;
25051
+ Returns: import("../integrations/supabase/types").Json;
25052
+ };
25053
+ logistics_slip_is_floriday: {
25054
+ Args: {
25055
+ _slip_job_id: string;
25056
+ };
25057
+ Returns: boolean;
25058
+ };
25059
+ logistics_slip_note_claim: {
25060
+ Args: {
25061
+ _lease_seconds?: number;
25062
+ _limit?: number;
25063
+ };
25064
+ Returns: {
25065
+ attempts: number;
25066
+ batch_key: string | null;
25067
+ cart_id: string | null;
25068
+ created_at: string;
25069
+ error: string | null;
25070
+ error_code: string | null;
25071
+ fulfillment_order_id: string | null;
25072
+ id: string;
25073
+ locked_until: string | null;
25074
+ next_attempt_at: string | null;
25075
+ order_id: string | null;
25076
+ order_number: string | null;
25077
+ print_job_id: string | null;
25078
+ printer_id: string | null;
25079
+ retry_class: string | null;
25080
+ slip_job_id: string;
25081
+ status: string;
25082
+ updated_at: string;
25083
+ }[];
25084
+ SetofOptions: {
25085
+ from: "*";
25086
+ to: "logistics_slip_shipping_note";
25087
+ isOneToOne: false;
25088
+ isSetofReturn: true;
25089
+ };
25090
+ };
25091
+ logistics_slip_note_finish: {
25092
+ Args: {
25093
+ _error?: string;
25094
+ _error_code?: string;
25095
+ _fulfillment_order_id?: string;
25096
+ _id: string;
25097
+ _ok: boolean;
25098
+ _print_job_id?: string;
25099
+ _status?: string;
25100
+ };
25101
+ Returns: undefined;
25102
+ };
25103
+ logistics_slip_note_keep_waiting: {
25104
+ Args: {
25105
+ _class?: string;
25106
+ _id: string;
25107
+ _reason: string;
25108
+ };
25109
+ Returns: undefined;
25110
+ };
24398
25111
  logistics_sticker_follows_slip: {
24399
25112
  Args: never;
24400
25113
  Returns: boolean;
@@ -24449,6 +25162,40 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
24449
25162
  name: string;
24450
25163
  }[];
24451
25164
  };
25165
+ logistics_trace: {
25166
+ Args: {
25167
+ p: import("../integrations/supabase/types").Json;
25168
+ };
25169
+ Returns: string;
25170
+ };
25171
+ logistics_trace_batch: {
25172
+ Args: {
25173
+ p: import("../integrations/supabase/types").Json;
25174
+ };
25175
+ Returns: number;
25176
+ };
25177
+ logistics_trace_orders: {
25178
+ Args: {
25179
+ p_limit?: number;
25180
+ p_search?: string;
25181
+ p_since?: string;
25182
+ p_status?: string;
25183
+ };
25184
+ Returns: import("../integrations/supabase/types").Json;
25185
+ };
25186
+ logistics_trace_redact: {
25187
+ Args: {
25188
+ p: import("../integrations/supabase/types").Json;
25189
+ };
25190
+ Returns: import("../integrations/supabase/types").Json;
25191
+ };
25192
+ logistics_trace_timeline: {
25193
+ Args: {
25194
+ p_limit?: number;
25195
+ p_order_ref: string;
25196
+ };
25197
+ Returns: import("../integrations/supabase/types").Json;
25198
+ };
24452
25199
  logistics_upsert_task: {
24453
25200
  Args: {
24454
25201
  p_buffer_ref: string;
@@ -25490,6 +26237,10 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
25490
26237
  };
25491
26238
  Returns: undefined;
25492
26239
  };
26240
+ prune_floriday_api_log: {
26241
+ Args: never;
26242
+ Returns: number;
26243
+ };
25493
26244
  quote_create_from_source: {
25494
26245
  Args: {
25495
26246
  _payload?: import("../integrations/supabase/types").Json;
@@ -25923,6 +26674,13 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
25923
26674
  };
25924
26675
  Returns: number;
25925
26676
  };
26677
+ schedule_floriday_catalog_prices_sync: {
26678
+ Args: {
26679
+ p_apikey: string;
26680
+ p_url: string;
26681
+ };
26682
+ Returns: number;
26683
+ };
25926
26684
  schedule_floriday_clock_presales_sync: {
25927
26685
  Args: {
25928
26686
  p_apikey: string;
@@ -26223,6 +26981,10 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
26223
26981
  };
26224
26982
  Returns: undefined;
26225
26983
  };
26984
+ sync_floriday_prices_into_price_groups: {
26985
+ Args: never;
26986
+ Returns: number;
26987
+ };
26226
26988
  sync_layer_stock: {
26227
26989
  Args: {
26228
26990
  p_product_id: string;
@@ -26355,6 +27117,10 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
26355
27117
  Args: never;
26356
27118
  Returns: string;
26357
27119
  };
27120
+ voorraad_cleanup_old_rows: {
27121
+ Args: never;
27122
+ Returns: import("../integrations/supabase/types").Json;
27123
+ };
26358
27124
  wake_print_queue: {
26359
27125
  Args: {
26360
27126
  _min_interval_ms?: number;
@@ -28662,6 +29428,45 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
28662
29428
  };
28663
29429
  Relationships: [];
28664
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
+ };
28665
29470
  customer_selected_assortment: {
28666
29471
  Row: {
28667
29472
  article_number: string | null;
@@ -28710,6 +29515,30 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
28710
29515
  referencedColumns: ["id"];
28711
29516
  }];
28712
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
+ };
28713
29542
  customer_trade_settings: {
28714
29543
  Row: {
28715
29544
  category: string;
@@ -32040,6 +32869,102 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
32040
32869
  referencedColumns: ["id"];
32041
32870
  }];
32042
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
+ };
32043
32968
  floriday_auction_letters_cache: {
32044
32969
  Row: {
32045
32970
  auction_letter_code: string;
@@ -32247,6 +33172,84 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
32247
33172
  referencedColumns: ["id"];
32248
33173
  }];
32249
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
+ };
32250
33253
  floriday_clock_presales_cache: {
32251
33254
  Row: {
32252
33255
  buyer_organization_id: string | null;
@@ -33162,6 +34165,69 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
33162
34165
  referencedColumns: ["id"];
33163
34166
  }];
33164
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
+ };
33165
34231
  floriday_logistic_labels_cache: {
33166
34232
  Row: {
33167
34233
  byte_size: number | null;
@@ -36786,6 +37852,48 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
36786
37852
  };
36787
37853
  Relationships: [];
36788
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
+ };
36789
37897
  logistics_pickup_moments: {
36790
37898
  Row: {
36791
37899
  carrier_ref: string | null;
@@ -37245,6 +38353,69 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
37245
38353
  };
37246
38354
  Relationships: [];
37247
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
+ };
37248
38419
  logistics_staff_planning: {
37249
38420
  Row: {
37250
38421
  created_at: string;
@@ -37596,6 +38767,111 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
37596
38767
  };
37597
38768
  Relationships: [];
37598
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
+ };
37599
38875
  logistics_variables: {
37600
38876
  Row: {
37601
38877
  created_at: string;
@@ -48168,6 +49444,15 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
48168
49444
  Args: never;
48169
49445
  Returns: boolean;
48170
49446
  };
49447
+ cancel_open_print_jobs: {
49448
+ Args: {
49449
+ _cutoff: string;
49450
+ };
49451
+ Returns: {
49452
+ extern_job_id: string;
49453
+ id: string;
49454
+ }[];
49455
+ };
48171
49456
  check_offer_product_available_stock: {
48172
49457
  Args: {
48173
49458
  p_campaign_product_id: string;
@@ -49706,6 +50991,12 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
49706
50991
  };
49707
50992
  Returns: string;
49708
50993
  };
50994
+ logistics_cart_checkin_at: {
50995
+ Args: {
50996
+ p_cart_id: string;
50997
+ };
50998
+ Returns: string;
50999
+ };
49709
51000
  logistics_cart_handled: {
49710
51001
  Args: {
49711
51002
  p_cart_index: number;
@@ -49739,10 +51030,22 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
49739
51030
  task_status: string;
49740
51031
  }[];
49741
51032
  };
51033
+ logistics_cart_is_full: {
51034
+ Args: {
51035
+ p_cart_id: string;
51036
+ };
51037
+ Returns: boolean;
51038
+ };
49742
51039
  logistics_cart_layout_method: {
49743
51040
  Args: never;
49744
51041
  Returns: import("../integrations/supabase/types").Json;
49745
51042
  };
51043
+ logistics_cart_order_refs: {
51044
+ Args: {
51045
+ p_cart_id: string;
51046
+ };
51047
+ Returns: string[];
51048
+ };
49746
51049
  logistics_cart_plan_overview: {
49747
51050
  Args: {
49748
51051
  p_days?: number;
@@ -49762,6 +51065,24 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
49762
51065
  };
49763
51066
  Returns: import("../integrations/supabase/types").Json;
49764
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
+ };
49765
51086
  logistics_cart_seq: {
49766
51087
  Args: {
49767
51088
  p_order_uuid?: string;
@@ -49812,6 +51133,10 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
49812
51133
  unit_ref: string;
49813
51134
  }[];
49814
51135
  };
51136
+ logistics_carts_per_print: {
51137
+ Args: never;
51138
+ Returns: number;
51139
+ };
49815
51140
  logistics_check_order_allowed: {
49816
51141
  Args: {
49817
51142
  p_lines: import("../integrations/supabase/types").Json;
@@ -49915,6 +51240,10 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
49915
51240
  isSetofReturn: false;
49916
51241
  };
49917
51242
  };
51243
+ logistics_cleanup_orphan_print_jobs: {
51244
+ Args: never;
51245
+ Returns: import("../integrations/supabase/types").Json;
51246
+ };
49918
51247
  logistics_complete_task: {
49919
51248
  Args: {
49920
51249
  p_result?: import("../integrations/supabase/types").Json;
@@ -50166,6 +51495,20 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
50166
51495
  };
50167
51496
  Returns: string;
50168
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
+ };
50169
51512
  logistics_fail_task: {
50170
51513
  Args: {
50171
51514
  p_error: string;
@@ -50211,6 +51554,10 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
50211
51554
  isSetofReturn: false;
50212
51555
  };
50213
51556
  };
51557
+ logistics_fix_wrong_shipping_notes: {
51558
+ Args: never;
51559
+ Returns: import("../integrations/supabase/types").Json;
51560
+ };
50214
51561
  logistics_floriday_cart_plan: {
50215
51562
  Args: {
50216
51563
  p_order_id: string;
@@ -50238,6 +51585,10 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
50238
51585
  revision: number;
50239
51586
  }[];
50240
51587
  };
51588
+ logistics_floriday_delivery_note_create_enabled: {
51589
+ Args: never;
51590
+ Returns: boolean;
51591
+ };
50241
51592
  logistics_floriday_finish_push: {
50242
51593
  Args: {
50243
51594
  _error?: string;
@@ -50389,6 +51740,12 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
50389
51740
  };
50390
51741
  Returns: number;
50391
51742
  };
51743
+ logistics_merge_partial_carts: {
51744
+ Args: {
51745
+ p_limit?: number;
51746
+ };
51747
+ Returns: import("../integrations/supabase/types").Json;
51748
+ };
50392
51749
  logistics_next_workday_date: {
50393
51750
  Args: {
50394
51751
  p_date: string;
@@ -50475,6 +51832,12 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
50475
51832
  };
50476
51833
  Returns: string;
50477
51834
  };
51835
+ logistics_payload_is_floriday: {
51836
+ Args: {
51837
+ _payload: import("../integrations/supabase/types").Json;
51838
+ };
51839
+ Returns: boolean;
51840
+ };
50478
51841
  logistics_pick_agenda: {
50479
51842
  Args: {
50480
51843
  p_from?: string;
@@ -50503,6 +51866,10 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
50503
51866
  Args: never;
50504
51867
  Returns: import("../integrations/supabase/types").Json;
50505
51868
  };
51869
+ logistics_pick_partial_mode: {
51870
+ Args: never;
51871
+ Returns: string;
51872
+ };
50506
51873
  logistics_pick_start_estimate: {
50507
51874
  Args: {
50508
51875
  p_order: import("../integrations/supabase/types").Json;
@@ -50593,6 +51960,20 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
50593
51960
  Args: never;
50594
51961
  Returns: undefined;
50595
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
+ };
50596
51977
  logistics_plan_prune: {
50597
51978
  Args: never;
50598
51979
  Returns: number;
@@ -50614,6 +51995,18 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
50614
51995
  };
50615
51996
  Returns: number;
50616
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
+ };
50617
52010
  logistics_prune_buffer_member_queue: {
50618
52011
  Args: never;
50619
52012
  Returns: number;
@@ -50654,18 +52047,36 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
50654
52047
  Args: never;
50655
52048
  Returns: import("../integrations/supabase/types").Json;
50656
52049
  };
52050
+ logistics_refresh_pick_queue_status: {
52051
+ Args: {
52052
+ p_ref: string;
52053
+ };
52054
+ Returns: number;
52055
+ };
50657
52056
  logistics_refresh_pickup_moments: {
50658
52057
  Args: {
50659
52058
  p_weeks?: number;
50660
52059
  };
50661
52060
  Returns: import("../integrations/supabase/types").Json;
50662
52061
  };
52062
+ logistics_refresh_plan_state: {
52063
+ Args: {
52064
+ p_limit?: number;
52065
+ };
52066
+ Returns: import("../integrations/supabase/types").Json;
52067
+ };
50663
52068
  logistics_replan_all: {
50664
52069
  Args: {
50665
52070
  p_reason?: string;
50666
52071
  };
50667
52072
  Returns: import("../integrations/supabase/types").Json;
50668
52073
  };
52074
+ logistics_replan_all_force: {
52075
+ Args: {
52076
+ p_reason?: string;
52077
+ };
52078
+ Returns: import("../integrations/supabase/types").Json;
52079
+ };
50669
52080
  logistics_report_delay: {
50670
52081
  Args: {
50671
52082
  p_expected_date?: string;
@@ -50822,6 +52233,74 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
50822
52233
  };
50823
52234
  Returns: import("../integrations/supabase/types").Json;
50824
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
+ };
50825
52304
  logistics_sticker_follows_slip: {
50826
52305
  Args: never;
50827
52306
  Returns: boolean;
@@ -50876,6 +52355,40 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
50876
52355
  name: string;
50877
52356
  }[];
50878
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
+ };
50879
52392
  logistics_upsert_task: {
50880
52393
  Args: {
50881
52394
  p_buffer_ref: string;
@@ -51917,6 +53430,10 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
51917
53430
  };
51918
53431
  Returns: undefined;
51919
53432
  };
53433
+ prune_floriday_api_log: {
53434
+ Args: never;
53435
+ Returns: number;
53436
+ };
51920
53437
  quote_create_from_source: {
51921
53438
  Args: {
51922
53439
  _payload?: import("../integrations/supabase/types").Json;
@@ -52350,6 +53867,13 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
52350
53867
  };
52351
53868
  Returns: number;
52352
53869
  };
53870
+ schedule_floriday_catalog_prices_sync: {
53871
+ Args: {
53872
+ p_apikey: string;
53873
+ p_url: string;
53874
+ };
53875
+ Returns: number;
53876
+ };
52353
53877
  schedule_floriday_clock_presales_sync: {
52354
53878
  Args: {
52355
53879
  p_apikey: string;
@@ -52650,6 +54174,10 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
52650
54174
  };
52651
54175
  Returns: undefined;
52652
54176
  };
54177
+ sync_floriday_prices_into_price_groups: {
54178
+ Args: never;
54179
+ Returns: number;
54180
+ };
52653
54181
  sync_layer_stock: {
52654
54182
  Args: {
52655
54183
  p_product_id: string;
@@ -52782,6 +54310,10 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
52782
54310
  Args: never;
52783
54311
  Returns: string;
52784
54312
  };
54313
+ voorraad_cleanup_old_rows: {
54314
+ Args: never;
54315
+ Returns: import("../integrations/supabase/types").Json;
54316
+ };
52785
54317
  wake_print_queue: {
52786
54318
  Args: {
52787
54319
  _min_interval_ms?: number;