@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
@@ -2224,6 +2224,45 @@ export declare const listOrderShipments: import("@tanstack/start-client-core").O
2224
2224
  };
2225
2225
  Relationships: [];
2226
2226
  };
2227
+ customer_product_stickers: {
2228
+ Row: {
2229
+ created_at: string;
2230
+ customer_key: string;
2231
+ file_name: string;
2232
+ file_path: string;
2233
+ file_size: number | null;
2234
+ id: string;
2235
+ mime_type: string | null;
2236
+ trade_item_key: string;
2237
+ updated_at: string;
2238
+ uploaded_by: string | null;
2239
+ };
2240
+ Insert: {
2241
+ created_at?: string;
2242
+ customer_key: string;
2243
+ file_name: string;
2244
+ file_path: string;
2245
+ file_size?: number | null;
2246
+ id?: string;
2247
+ mime_type?: string | null;
2248
+ trade_item_key: string;
2249
+ updated_at?: string;
2250
+ uploaded_by?: string | null;
2251
+ };
2252
+ Update: {
2253
+ created_at?: string;
2254
+ customer_key?: string;
2255
+ file_name?: string;
2256
+ file_path?: string;
2257
+ file_size?: number | null;
2258
+ id?: string;
2259
+ mime_type?: string | null;
2260
+ trade_item_key?: string;
2261
+ updated_at?: string;
2262
+ uploaded_by?: string | null;
2263
+ };
2264
+ Relationships: [];
2265
+ };
2227
2266
  customer_selected_assortment: {
2228
2267
  Row: {
2229
2268
  article_number: string | null;
@@ -2272,6 +2311,30 @@ export declare const listOrderShipments: import("@tanstack/start-client-core").O
2272
2311
  referencedColumns: ["id"];
2273
2312
  }];
2274
2313
  };
2314
+ customer_sticker_settings: {
2315
+ Row: {
2316
+ created_at: string;
2317
+ customer_key: string;
2318
+ height_mm: number;
2319
+ updated_at: string;
2320
+ width_mm: number;
2321
+ };
2322
+ Insert: {
2323
+ created_at?: string;
2324
+ customer_key: string;
2325
+ height_mm?: number;
2326
+ updated_at?: string;
2327
+ width_mm?: number;
2328
+ };
2329
+ Update: {
2330
+ created_at?: string;
2331
+ customer_key?: string;
2332
+ height_mm?: number;
2333
+ updated_at?: string;
2334
+ width_mm?: number;
2335
+ };
2336
+ Relationships: [];
2337
+ };
2275
2338
  customer_trade_settings: {
2276
2339
  Row: {
2277
2340
  category: string;
@@ -5602,6 +5665,102 @@ export declare const listOrderShipments: import("@tanstack/start-client-core").O
5602
5665
  referencedColumns: ["id"];
5603
5666
  }];
5604
5667
  };
5668
+ floriday_api_log: {
5669
+ Row: {
5670
+ action: string | null;
5671
+ caller: string | null;
5672
+ connection_id: string | null;
5673
+ created_at: string;
5674
+ cursor_from: number | null;
5675
+ direction: string;
5676
+ duration_ms: number | null;
5677
+ environment: string | null;
5678
+ error: string | null;
5679
+ floriday_id: string | null;
5680
+ floriday_reference: string | null;
5681
+ http_status: number;
5682
+ id: string;
5683
+ item_count: number | null;
5684
+ kind: string | null;
5685
+ local_id: string | null;
5686
+ local_reference: string | null;
5687
+ method: string;
5688
+ module: string | null;
5689
+ ok: boolean;
5690
+ path: string;
5691
+ request: import("../integrations/supabase/types").Json | null;
5692
+ resource_type: string | null;
5693
+ response: import("../integrations/supabase/types").Json | null;
5694
+ write_log_id: string | null;
5695
+ };
5696
+ Insert: {
5697
+ action?: string | null;
5698
+ caller?: string | null;
5699
+ connection_id?: string | null;
5700
+ created_at?: string;
5701
+ cursor_from?: number | null;
5702
+ direction: string;
5703
+ duration_ms?: number | null;
5704
+ environment?: string | null;
5705
+ error?: string | null;
5706
+ floriday_id?: string | null;
5707
+ floriday_reference?: string | null;
5708
+ http_status?: number;
5709
+ id?: string;
5710
+ item_count?: number | null;
5711
+ kind?: string | null;
5712
+ local_id?: string | null;
5713
+ local_reference?: string | null;
5714
+ method: string;
5715
+ module?: string | null;
5716
+ ok?: boolean;
5717
+ path: string;
5718
+ request?: import("../integrations/supabase/types").Json | null;
5719
+ resource_type?: string | null;
5720
+ response?: import("../integrations/supabase/types").Json | null;
5721
+ write_log_id?: string | null;
5722
+ };
5723
+ Update: {
5724
+ action?: string | null;
5725
+ caller?: string | null;
5726
+ connection_id?: string | null;
5727
+ created_at?: string;
5728
+ cursor_from?: number | null;
5729
+ direction?: string;
5730
+ duration_ms?: number | null;
5731
+ environment?: string | null;
5732
+ error?: string | null;
5733
+ floriday_id?: string | null;
5734
+ floriday_reference?: string | null;
5735
+ http_status?: number;
5736
+ id?: string;
5737
+ item_count?: number | null;
5738
+ kind?: string | null;
5739
+ local_id?: string | null;
5740
+ local_reference?: string | null;
5741
+ method?: string;
5742
+ module?: string | null;
5743
+ ok?: boolean;
5744
+ path?: string;
5745
+ request?: import("../integrations/supabase/types").Json | null;
5746
+ resource_type?: string | null;
5747
+ response?: import("../integrations/supabase/types").Json | null;
5748
+ write_log_id?: string | null;
5749
+ };
5750
+ Relationships: [{
5751
+ foreignKeyName: "floriday_api_log_connection_id_fkey";
5752
+ columns: ["connection_id"];
5753
+ isOneToOne: false;
5754
+ referencedRelation: "floriday_connections";
5755
+ referencedColumns: ["id"];
5756
+ }, {
5757
+ foreignKeyName: "floriday_api_log_write_log_id_fkey";
5758
+ columns: ["write_log_id"];
5759
+ isOneToOne: false;
5760
+ referencedRelation: "floriday_write_log";
5761
+ referencedColumns: ["id"];
5762
+ }];
5763
+ };
5605
5764
  floriday_auction_letters_cache: {
5606
5765
  Row: {
5607
5766
  auction_letter_code: string;
@@ -5809,6 +5968,84 @@ export declare const listOrderShipments: import("@tanstack/start-client-core").O
5809
5968
  referencedColumns: ["id"];
5810
5969
  }];
5811
5970
  };
5971
+ floriday_catalog_prices_cache: {
5972
+ Row: {
5973
+ connection_id: string;
5974
+ created_at: string;
5975
+ currency: string;
5976
+ id: string;
5977
+ is_deleted: boolean;
5978
+ price: number | null;
5979
+ price_group_id: string | null;
5980
+ price_group_name: string | null;
5981
+ price_type: string;
5982
+ raw: import("../integrations/supabase/types").Json | null;
5983
+ sales_unit: string | null;
5984
+ sequence_number: number;
5985
+ supplier_article_code: string | null;
5986
+ supply_line_id: string;
5987
+ synced_at: string;
5988
+ trade_item_id: string | null;
5989
+ updated_at: string;
5990
+ valid_from: string | null;
5991
+ valid_to: string | null;
5992
+ week: number | null;
5993
+ year: number | null;
5994
+ };
5995
+ Insert: {
5996
+ connection_id: string;
5997
+ created_at?: string;
5998
+ currency?: string;
5999
+ id?: string;
6000
+ is_deleted?: boolean;
6001
+ price?: number | null;
6002
+ price_group_id?: string | null;
6003
+ price_group_name?: string | null;
6004
+ price_type?: string;
6005
+ raw?: import("../integrations/supabase/types").Json | null;
6006
+ sales_unit?: string | null;
6007
+ sequence_number?: number;
6008
+ supplier_article_code?: string | null;
6009
+ supply_line_id: string;
6010
+ synced_at?: string;
6011
+ trade_item_id?: string | null;
6012
+ updated_at?: string;
6013
+ valid_from?: string | null;
6014
+ valid_to?: string | null;
6015
+ week?: number | null;
6016
+ year?: number | null;
6017
+ };
6018
+ Update: {
6019
+ connection_id?: string;
6020
+ created_at?: string;
6021
+ currency?: string;
6022
+ id?: string;
6023
+ is_deleted?: boolean;
6024
+ price?: number | null;
6025
+ price_group_id?: string | null;
6026
+ price_group_name?: string | null;
6027
+ price_type?: string;
6028
+ raw?: import("../integrations/supabase/types").Json | null;
6029
+ sales_unit?: string | null;
6030
+ sequence_number?: number;
6031
+ supplier_article_code?: string | null;
6032
+ supply_line_id?: string;
6033
+ synced_at?: string;
6034
+ trade_item_id?: string | null;
6035
+ updated_at?: string;
6036
+ valid_from?: string | null;
6037
+ valid_to?: string | null;
6038
+ week?: number | null;
6039
+ year?: number | null;
6040
+ };
6041
+ Relationships: [{
6042
+ foreignKeyName: "floriday_catalog_prices_cache_connection_id_fkey";
6043
+ columns: ["connection_id"];
6044
+ isOneToOne: false;
6045
+ referencedRelation: "floriday_connections";
6046
+ referencedColumns: ["id"];
6047
+ }];
6048
+ };
5812
6049
  floriday_clock_presales_cache: {
5813
6050
  Row: {
5814
6051
  buyer_organization_id: string | null;
@@ -6724,6 +6961,69 @@ export declare const listOrderShipments: import("@tanstack/start-client-core").O
6724
6961
  referencedColumns: ["id"];
6725
6962
  }];
6726
6963
  };
6964
+ floriday_link_templates: {
6965
+ Row: {
6966
+ created_at: string;
6967
+ floriday_url_template: string | null;
6968
+ is_active: boolean;
6969
+ label: string;
6970
+ local_url_template: string | null;
6971
+ resource_type: string;
6972
+ updated_at: string;
6973
+ };
6974
+ Insert: {
6975
+ created_at?: string;
6976
+ floriday_url_template?: string | null;
6977
+ is_active?: boolean;
6978
+ label: string;
6979
+ local_url_template?: string | null;
6980
+ resource_type: string;
6981
+ updated_at?: string;
6982
+ };
6983
+ Update: {
6984
+ created_at?: string;
6985
+ floriday_url_template?: string | null;
6986
+ is_active?: boolean;
6987
+ label?: string;
6988
+ local_url_template?: string | null;
6989
+ resource_type?: string;
6990
+ updated_at?: string;
6991
+ };
6992
+ Relationships: [];
6993
+ };
6994
+ floriday_log_retention: {
6995
+ Row: {
6996
+ created_at: string;
6997
+ direction: string | null;
6998
+ id: string;
6999
+ keep_failed_days: number | null;
7000
+ keep_ok_days: number | null;
7001
+ note: string | null;
7002
+ resource_type: string | null;
7003
+ updated_at: string;
7004
+ };
7005
+ Insert: {
7006
+ created_at?: string;
7007
+ direction?: string | null;
7008
+ id?: string;
7009
+ keep_failed_days?: number | null;
7010
+ keep_ok_days?: number | null;
7011
+ note?: string | null;
7012
+ resource_type?: string | null;
7013
+ updated_at?: string;
7014
+ };
7015
+ Update: {
7016
+ created_at?: string;
7017
+ direction?: string | null;
7018
+ id?: string;
7019
+ keep_failed_days?: number | null;
7020
+ keep_ok_days?: number | null;
7021
+ note?: string | null;
7022
+ resource_type?: string | null;
7023
+ updated_at?: string;
7024
+ };
7025
+ Relationships: [];
7026
+ };
6727
7027
  floriday_logistic_labels_cache: {
6728
7028
  Row: {
6729
7029
  byte_size: number | null;
@@ -10348,6 +10648,48 @@ export declare const listOrderShipments: import("@tanstack/start-client-core").O
10348
10648
  };
10349
10649
  Relationships: [];
10350
10650
  };
10651
+ logistics_pick_data_requests: {
10652
+ Row: {
10653
+ actions: import("../integrations/supabase/types").Json;
10654
+ created_at: string;
10655
+ event_id: string | null;
10656
+ finished_at: string | null;
10657
+ id: string;
10658
+ missing: import("../integrations/supabase/types").Json;
10659
+ order_ref: string;
10660
+ reason: string | null;
10661
+ result: import("../integrations/supabase/types").Json | null;
10662
+ status: string;
10663
+ unit_ref: string | null;
10664
+ };
10665
+ Insert: {
10666
+ actions?: import("../integrations/supabase/types").Json;
10667
+ created_at?: string;
10668
+ event_id?: string | null;
10669
+ finished_at?: string | null;
10670
+ id?: string;
10671
+ missing?: import("../integrations/supabase/types").Json;
10672
+ order_ref: string;
10673
+ reason?: string | null;
10674
+ result?: import("../integrations/supabase/types").Json | null;
10675
+ status?: string;
10676
+ unit_ref?: string | null;
10677
+ };
10678
+ Update: {
10679
+ actions?: import("../integrations/supabase/types").Json;
10680
+ created_at?: string;
10681
+ event_id?: string | null;
10682
+ finished_at?: string | null;
10683
+ id?: string;
10684
+ missing?: import("../integrations/supabase/types").Json;
10685
+ order_ref?: string;
10686
+ reason?: string | null;
10687
+ result?: import("../integrations/supabase/types").Json | null;
10688
+ status?: string;
10689
+ unit_ref?: string | null;
10690
+ };
10691
+ Relationships: [];
10692
+ };
10351
10693
  logistics_pickup_moments: {
10352
10694
  Row: {
10353
10695
  carrier_ref: string | null;
@@ -10807,6 +11149,69 @@ export declare const listOrderShipments: import("@tanstack/start-client-core").O
10807
11149
  };
10808
11150
  Relationships: [];
10809
11151
  };
11152
+ logistics_slip_shipping_note: {
11153
+ Row: {
11154
+ attempts: number;
11155
+ batch_key: string | null;
11156
+ cart_id: string | null;
11157
+ created_at: string;
11158
+ error: string | null;
11159
+ error_code: string | null;
11160
+ fulfillment_order_id: string | null;
11161
+ id: string;
11162
+ locked_until: string | null;
11163
+ next_attempt_at: string | null;
11164
+ order_id: string | null;
11165
+ order_number: string | null;
11166
+ print_job_id: string | null;
11167
+ printer_id: string | null;
11168
+ retry_class: string | null;
11169
+ slip_job_id: string;
11170
+ status: string;
11171
+ updated_at: string;
11172
+ };
11173
+ Insert: {
11174
+ attempts?: number;
11175
+ batch_key?: string | null;
11176
+ cart_id?: string | null;
11177
+ created_at?: string;
11178
+ error?: string | null;
11179
+ error_code?: string | null;
11180
+ fulfillment_order_id?: string | null;
11181
+ id?: string;
11182
+ locked_until?: string | null;
11183
+ next_attempt_at?: string | null;
11184
+ order_id?: string | null;
11185
+ order_number?: string | null;
11186
+ print_job_id?: string | null;
11187
+ printer_id?: string | null;
11188
+ retry_class?: string | null;
11189
+ slip_job_id: string;
11190
+ status?: string;
11191
+ updated_at?: string;
11192
+ };
11193
+ Update: {
11194
+ attempts?: number;
11195
+ batch_key?: string | null;
11196
+ cart_id?: string | null;
11197
+ created_at?: string;
11198
+ error?: string | null;
11199
+ error_code?: string | null;
11200
+ fulfillment_order_id?: string | null;
11201
+ id?: string;
11202
+ locked_until?: string | null;
11203
+ next_attempt_at?: string | null;
11204
+ order_id?: string | null;
11205
+ order_number?: string | null;
11206
+ print_job_id?: string | null;
11207
+ printer_id?: string | null;
11208
+ retry_class?: string | null;
11209
+ slip_job_id?: string;
11210
+ status?: string;
11211
+ updated_at?: string;
11212
+ };
11213
+ Relationships: [];
11214
+ };
10810
11215
  logistics_staff_planning: {
10811
11216
  Row: {
10812
11217
  created_at: string;
@@ -11158,6 +11563,111 @@ export declare const listOrderShipments: import("@tanstack/start-client-core").O
11158
11563
  };
11159
11564
  Relationships: [];
11160
11565
  };
11566
+ logistics_trace_events: {
11567
+ Row: {
11568
+ actor: string | null;
11569
+ attempts: number;
11570
+ cart_ref: string | null;
11571
+ created_at: string;
11572
+ db_action: string | null;
11573
+ db_new: import("../integrations/supabase/types").Json | null;
11574
+ db_old: import("../integrations/supabase/types").Json | null;
11575
+ db_record: string | null;
11576
+ db_table: string | null;
11577
+ decision: string | null;
11578
+ duration_ms: number | null;
11579
+ error: string | null;
11580
+ external_action: string | null;
11581
+ external_ref: string | null;
11582
+ external_response: import("../integrations/supabase/types").Json | null;
11583
+ external_status: string | null;
11584
+ external_system: string | null;
11585
+ id: string;
11586
+ input: import("../integrations/supabase/types").Json | null;
11587
+ next_attempt_at: string | null;
11588
+ order_ref: string | null;
11589
+ order_source: string | null;
11590
+ output: import("../integrations/supabase/types").Json | null;
11591
+ phase: string;
11592
+ reads: import("../integrations/supabase/types").Json | null;
11593
+ reason: string | null;
11594
+ rule: string | null;
11595
+ slip_ref: string | null;
11596
+ status: string;
11597
+ step: string;
11598
+ trace_id: string;
11599
+ values_used: import("../integrations/supabase/types").Json | null;
11600
+ };
11601
+ Insert: {
11602
+ actor?: string | null;
11603
+ attempts?: number;
11604
+ cart_ref?: string | null;
11605
+ created_at?: string;
11606
+ db_action?: string | null;
11607
+ db_new?: import("../integrations/supabase/types").Json | null;
11608
+ db_old?: import("../integrations/supabase/types").Json | null;
11609
+ db_record?: string | null;
11610
+ db_table?: string | null;
11611
+ decision?: string | null;
11612
+ duration_ms?: number | null;
11613
+ error?: string | null;
11614
+ external_action?: string | null;
11615
+ external_ref?: string | null;
11616
+ external_response?: import("../integrations/supabase/types").Json | null;
11617
+ external_status?: string | null;
11618
+ external_system?: string | null;
11619
+ id?: string;
11620
+ input?: import("../integrations/supabase/types").Json | null;
11621
+ next_attempt_at?: string | null;
11622
+ order_ref?: string | null;
11623
+ order_source?: string | null;
11624
+ output?: import("../integrations/supabase/types").Json | null;
11625
+ phase: string;
11626
+ reads?: import("../integrations/supabase/types").Json | null;
11627
+ reason?: string | null;
11628
+ rule?: string | null;
11629
+ slip_ref?: string | null;
11630
+ status: string;
11631
+ step: string;
11632
+ trace_id?: string;
11633
+ values_used?: import("../integrations/supabase/types").Json | null;
11634
+ };
11635
+ Update: {
11636
+ actor?: string | null;
11637
+ attempts?: number;
11638
+ cart_ref?: string | null;
11639
+ created_at?: string;
11640
+ db_action?: string | null;
11641
+ db_new?: import("../integrations/supabase/types").Json | null;
11642
+ db_old?: import("../integrations/supabase/types").Json | null;
11643
+ db_record?: string | null;
11644
+ db_table?: string | null;
11645
+ decision?: string | null;
11646
+ duration_ms?: number | null;
11647
+ error?: string | null;
11648
+ external_action?: string | null;
11649
+ external_ref?: string | null;
11650
+ external_response?: import("../integrations/supabase/types").Json | null;
11651
+ external_status?: string | null;
11652
+ external_system?: string | null;
11653
+ id?: string;
11654
+ input?: import("../integrations/supabase/types").Json | null;
11655
+ next_attempt_at?: string | null;
11656
+ order_ref?: string | null;
11657
+ order_source?: string | null;
11658
+ output?: import("../integrations/supabase/types").Json | null;
11659
+ phase?: string;
11660
+ reads?: import("../integrations/supabase/types").Json | null;
11661
+ reason?: string | null;
11662
+ rule?: string | null;
11663
+ slip_ref?: string | null;
11664
+ status?: string;
11665
+ step?: string;
11666
+ trace_id?: string;
11667
+ values_used?: import("../integrations/supabase/types").Json | null;
11668
+ };
11669
+ Relationships: [];
11670
+ };
11161
11671
  logistics_variables: {
11162
11672
  Row: {
11163
11673
  created_at: string;
@@ -21730,6 +22240,15 @@ export declare const listOrderShipments: import("@tanstack/start-client-core").O
21730
22240
  Args: never;
21731
22241
  Returns: boolean;
21732
22242
  };
22243
+ cancel_open_print_jobs: {
22244
+ Args: {
22245
+ _cutoff: string;
22246
+ };
22247
+ Returns: {
22248
+ extern_job_id: string;
22249
+ id: string;
22250
+ }[];
22251
+ };
21733
22252
  check_offer_product_available_stock: {
21734
22253
  Args: {
21735
22254
  p_campaign_product_id: string;
@@ -23268,6 +23787,12 @@ export declare const listOrderShipments: import("@tanstack/start-client-core").O
23268
23787
  };
23269
23788
  Returns: string;
23270
23789
  };
23790
+ logistics_cart_checkin_at: {
23791
+ Args: {
23792
+ p_cart_id: string;
23793
+ };
23794
+ Returns: string;
23795
+ };
23271
23796
  logistics_cart_handled: {
23272
23797
  Args: {
23273
23798
  p_cart_index: number;
@@ -23301,10 +23826,22 @@ export declare const listOrderShipments: import("@tanstack/start-client-core").O
23301
23826
  task_status: string;
23302
23827
  }[];
23303
23828
  };
23829
+ logistics_cart_is_full: {
23830
+ Args: {
23831
+ p_cart_id: string;
23832
+ };
23833
+ Returns: boolean;
23834
+ };
23304
23835
  logistics_cart_layout_method: {
23305
23836
  Args: never;
23306
23837
  Returns: import("../integrations/supabase/types").Json;
23307
23838
  };
23839
+ logistics_cart_order_refs: {
23840
+ Args: {
23841
+ p_cart_id: string;
23842
+ };
23843
+ Returns: string[];
23844
+ };
23308
23845
  logistics_cart_plan_overview: {
23309
23846
  Args: {
23310
23847
  p_days?: number;
@@ -23324,6 +23861,24 @@ export declare const listOrderShipments: import("@tanstack/start-client-core").O
23324
23861
  };
23325
23862
  Returns: import("../integrations/supabase/types").Json;
23326
23863
  };
23864
+ logistics_cart_plan_status_core: {
23865
+ Args: {
23866
+ p_ref: string;
23867
+ };
23868
+ Returns: import("../integrations/supabase/types").Json;
23869
+ };
23870
+ logistics_cart_release_reason: {
23871
+ Args: {
23872
+ p_cart_id: string;
23873
+ };
23874
+ Returns: string;
23875
+ };
23876
+ logistics_cart_released: {
23877
+ Args: {
23878
+ p_cart_id: string;
23879
+ };
23880
+ Returns: boolean;
23881
+ };
23327
23882
  logistics_cart_seq: {
23328
23883
  Args: {
23329
23884
  p_order_uuid?: string;
@@ -23374,6 +23929,10 @@ export declare const listOrderShipments: import("@tanstack/start-client-core").O
23374
23929
  unit_ref: string;
23375
23930
  }[];
23376
23931
  };
23932
+ logistics_carts_per_print: {
23933
+ Args: never;
23934
+ Returns: number;
23935
+ };
23377
23936
  logistics_check_order_allowed: {
23378
23937
  Args: {
23379
23938
  p_lines: import("../integrations/supabase/types").Json;
@@ -23477,6 +24036,10 @@ export declare const listOrderShipments: import("@tanstack/start-client-core").O
23477
24036
  isSetofReturn: false;
23478
24037
  };
23479
24038
  };
24039
+ logistics_cleanup_orphan_print_jobs: {
24040
+ Args: never;
24041
+ Returns: import("../integrations/supabase/types").Json;
24042
+ };
23480
24043
  logistics_complete_task: {
23481
24044
  Args: {
23482
24045
  p_result?: import("../integrations/supabase/types").Json;
@@ -23728,6 +24291,20 @@ export declare const listOrderShipments: import("@tanstack/start-client-core").O
23728
24291
  };
23729
24292
  Returns: string;
23730
24293
  };
24294
+ logistics_ensure_pick_data: {
24295
+ Args: {
24296
+ p_event_id?: string;
24297
+ p_missing?: import("../integrations/supabase/types").Json;
24298
+ p_ref: string;
24299
+ };
24300
+ Returns: import("../integrations/supabase/types").Json;
24301
+ };
24302
+ logistics_ensure_shipping_notes: {
24303
+ Args: {
24304
+ p_limit?: number;
24305
+ };
24306
+ Returns: import("../integrations/supabase/types").Json;
24307
+ };
23731
24308
  logistics_fail_task: {
23732
24309
  Args: {
23733
24310
  p_error: string;
@@ -23773,6 +24350,10 @@ export declare const listOrderShipments: import("@tanstack/start-client-core").O
23773
24350
  isSetofReturn: false;
23774
24351
  };
23775
24352
  };
24353
+ logistics_fix_wrong_shipping_notes: {
24354
+ Args: never;
24355
+ Returns: import("../integrations/supabase/types").Json;
24356
+ };
23776
24357
  logistics_floriday_cart_plan: {
23777
24358
  Args: {
23778
24359
  p_order_id: string;
@@ -23800,6 +24381,10 @@ export declare const listOrderShipments: import("@tanstack/start-client-core").O
23800
24381
  revision: number;
23801
24382
  }[];
23802
24383
  };
24384
+ logistics_floriday_delivery_note_create_enabled: {
24385
+ Args: never;
24386
+ Returns: boolean;
24387
+ };
23803
24388
  logistics_floriday_finish_push: {
23804
24389
  Args: {
23805
24390
  _error?: string;
@@ -23951,6 +24536,12 @@ export declare const listOrderShipments: import("@tanstack/start-client-core").O
23951
24536
  };
23952
24537
  Returns: number;
23953
24538
  };
24539
+ logistics_merge_partial_carts: {
24540
+ Args: {
24541
+ p_limit?: number;
24542
+ };
24543
+ Returns: import("../integrations/supabase/types").Json;
24544
+ };
23954
24545
  logistics_next_workday_date: {
23955
24546
  Args: {
23956
24547
  p_date: string;
@@ -24037,6 +24628,12 @@ export declare const listOrderShipments: import("@tanstack/start-client-core").O
24037
24628
  };
24038
24629
  Returns: string;
24039
24630
  };
24631
+ logistics_payload_is_floriday: {
24632
+ Args: {
24633
+ _payload: import("../integrations/supabase/types").Json;
24634
+ };
24635
+ Returns: boolean;
24636
+ };
24040
24637
  logistics_pick_agenda: {
24041
24638
  Args: {
24042
24639
  p_from?: string;
@@ -24065,6 +24662,10 @@ export declare const listOrderShipments: import("@tanstack/start-client-core").O
24065
24662
  Args: never;
24066
24663
  Returns: import("../integrations/supabase/types").Json;
24067
24664
  };
24665
+ logistics_pick_partial_mode: {
24666
+ Args: never;
24667
+ Returns: string;
24668
+ };
24068
24669
  logistics_pick_start_estimate: {
24069
24670
  Args: {
24070
24671
  p_order: import("../integrations/supabase/types").Json;
@@ -24155,6 +24756,20 @@ export declare const listOrderShipments: import("@tanstack/start-client-core").O
24155
24756
  Args: never;
24156
24757
  Returns: undefined;
24157
24758
  };
24759
+ logistics_plan_progress: {
24760
+ Args: {
24761
+ p_refs: string[];
24762
+ };
24763
+ Returns: {
24764
+ cart_plan_ready: boolean;
24765
+ cart_plan_reason: string;
24766
+ cart_plan_released: boolean;
24767
+ plan_progress: number;
24768
+ plan_state: string;
24769
+ plan_state_since: string;
24770
+ unit_ref: string;
24771
+ }[];
24772
+ };
24158
24773
  logistics_plan_prune: {
24159
24774
  Args: never;
24160
24775
  Returns: number;
@@ -24176,6 +24791,18 @@ export declare const listOrderShipments: import("@tanstack/start-client-core").O
24176
24791
  };
24177
24792
  Returns: number;
24178
24793
  };
24794
+ logistics_plan_state_for: {
24795
+ Args: {
24796
+ p_ref: string;
24797
+ };
24798
+ Returns: import("../integrations/supabase/types").Json;
24799
+ };
24800
+ logistics_prepare_pick_documents: {
24801
+ Args: {
24802
+ p_limit?: number;
24803
+ };
24804
+ Returns: import("../integrations/supabase/types").Json;
24805
+ };
24179
24806
  logistics_prune_buffer_member_queue: {
24180
24807
  Args: never;
24181
24808
  Returns: number;
@@ -24216,18 +24843,36 @@ export declare const listOrderShipments: import("@tanstack/start-client-core").O
24216
24843
  Args: never;
24217
24844
  Returns: import("../integrations/supabase/types").Json;
24218
24845
  };
24846
+ logistics_refresh_pick_queue_status: {
24847
+ Args: {
24848
+ p_ref: string;
24849
+ };
24850
+ Returns: number;
24851
+ };
24219
24852
  logistics_refresh_pickup_moments: {
24220
24853
  Args: {
24221
24854
  p_weeks?: number;
24222
24855
  };
24223
24856
  Returns: import("../integrations/supabase/types").Json;
24224
24857
  };
24858
+ logistics_refresh_plan_state: {
24859
+ Args: {
24860
+ p_limit?: number;
24861
+ };
24862
+ Returns: import("../integrations/supabase/types").Json;
24863
+ };
24225
24864
  logistics_replan_all: {
24226
24865
  Args: {
24227
24866
  p_reason?: string;
24228
24867
  };
24229
24868
  Returns: import("../integrations/supabase/types").Json;
24230
24869
  };
24870
+ logistics_replan_all_force: {
24871
+ Args: {
24872
+ p_reason?: string;
24873
+ };
24874
+ Returns: import("../integrations/supabase/types").Json;
24875
+ };
24231
24876
  logistics_report_delay: {
24232
24877
  Args: {
24233
24878
  p_expected_date?: string;
@@ -24384,6 +25029,74 @@ export declare const listOrderShipments: import("@tanstack/start-client-core").O
24384
25029
  };
24385
25030
  Returns: import("../integrations/supabase/types").Json;
24386
25031
  };
25032
+ logistics_shipping_note_job_for_slip: {
25033
+ Args: {
25034
+ _slip_job_id: string;
25035
+ };
25036
+ Returns: string;
25037
+ };
25038
+ logistics_shipping_notes_wake_all: {
25039
+ Args: never;
25040
+ Returns: import("../integrations/supabase/types").Json;
25041
+ };
25042
+ logistics_slip_is_floriday: {
25043
+ Args: {
25044
+ _slip_job_id: string;
25045
+ };
25046
+ Returns: boolean;
25047
+ };
25048
+ logistics_slip_note_claim: {
25049
+ Args: {
25050
+ _lease_seconds?: number;
25051
+ _limit?: number;
25052
+ };
25053
+ Returns: {
25054
+ attempts: number;
25055
+ batch_key: string | null;
25056
+ cart_id: string | null;
25057
+ created_at: string;
25058
+ error: string | null;
25059
+ error_code: string | null;
25060
+ fulfillment_order_id: string | null;
25061
+ id: string;
25062
+ locked_until: string | null;
25063
+ next_attempt_at: string | null;
25064
+ order_id: string | null;
25065
+ order_number: string | null;
25066
+ print_job_id: string | null;
25067
+ printer_id: string | null;
25068
+ retry_class: string | null;
25069
+ slip_job_id: string;
25070
+ status: string;
25071
+ updated_at: string;
25072
+ }[];
25073
+ SetofOptions: {
25074
+ from: "*";
25075
+ to: "logistics_slip_shipping_note";
25076
+ isOneToOne: false;
25077
+ isSetofReturn: true;
25078
+ };
25079
+ };
25080
+ logistics_slip_note_finish: {
25081
+ Args: {
25082
+ _error?: string;
25083
+ _error_code?: string;
25084
+ _fulfillment_order_id?: string;
25085
+ _id: string;
25086
+ _ok: boolean;
25087
+ _print_job_id?: string;
25088
+ _status?: string;
25089
+ };
25090
+ Returns: undefined;
25091
+ };
25092
+ logistics_slip_note_keep_waiting: {
25093
+ Args: {
25094
+ _class?: string;
25095
+ _id: string;
25096
+ _reason: string;
25097
+ };
25098
+ Returns: undefined;
25099
+ };
24387
25100
  logistics_sticker_follows_slip: {
24388
25101
  Args: never;
24389
25102
  Returns: boolean;
@@ -24438,6 +25151,40 @@ export declare const listOrderShipments: import("@tanstack/start-client-core").O
24438
25151
  name: string;
24439
25152
  }[];
24440
25153
  };
25154
+ logistics_trace: {
25155
+ Args: {
25156
+ p: import("../integrations/supabase/types").Json;
25157
+ };
25158
+ Returns: string;
25159
+ };
25160
+ logistics_trace_batch: {
25161
+ Args: {
25162
+ p: import("../integrations/supabase/types").Json;
25163
+ };
25164
+ Returns: number;
25165
+ };
25166
+ logistics_trace_orders: {
25167
+ Args: {
25168
+ p_limit?: number;
25169
+ p_search?: string;
25170
+ p_since?: string;
25171
+ p_status?: string;
25172
+ };
25173
+ Returns: import("../integrations/supabase/types").Json;
25174
+ };
25175
+ logistics_trace_redact: {
25176
+ Args: {
25177
+ p: import("../integrations/supabase/types").Json;
25178
+ };
25179
+ Returns: import("../integrations/supabase/types").Json;
25180
+ };
25181
+ logistics_trace_timeline: {
25182
+ Args: {
25183
+ p_limit?: number;
25184
+ p_order_ref: string;
25185
+ };
25186
+ Returns: import("../integrations/supabase/types").Json;
25187
+ };
24441
25188
  logistics_upsert_task: {
24442
25189
  Args: {
24443
25190
  p_buffer_ref: string;
@@ -25479,6 +26226,10 @@ export declare const listOrderShipments: import("@tanstack/start-client-core").O
25479
26226
  };
25480
26227
  Returns: undefined;
25481
26228
  };
26229
+ prune_floriday_api_log: {
26230
+ Args: never;
26231
+ Returns: number;
26232
+ };
25482
26233
  quote_create_from_source: {
25483
26234
  Args: {
25484
26235
  _payload?: import("../integrations/supabase/types").Json;
@@ -25912,6 +26663,13 @@ export declare const listOrderShipments: import("@tanstack/start-client-core").O
25912
26663
  };
25913
26664
  Returns: number;
25914
26665
  };
26666
+ schedule_floriday_catalog_prices_sync: {
26667
+ Args: {
26668
+ p_apikey: string;
26669
+ p_url: string;
26670
+ };
26671
+ Returns: number;
26672
+ };
25915
26673
  schedule_floriday_clock_presales_sync: {
25916
26674
  Args: {
25917
26675
  p_apikey: string;
@@ -26212,6 +26970,10 @@ export declare const listOrderShipments: import("@tanstack/start-client-core").O
26212
26970
  };
26213
26971
  Returns: undefined;
26214
26972
  };
26973
+ sync_floriday_prices_into_price_groups: {
26974
+ Args: never;
26975
+ Returns: number;
26976
+ };
26215
26977
  sync_layer_stock: {
26216
26978
  Args: {
26217
26979
  p_product_id: string;
@@ -26344,6 +27106,10 @@ export declare const listOrderShipments: import("@tanstack/start-client-core").O
26344
27106
  Args: never;
26345
27107
  Returns: string;
26346
27108
  };
27109
+ voorraad_cleanup_old_rows: {
27110
+ Args: never;
27111
+ Returns: import("../integrations/supabase/types").Json;
27112
+ };
26347
27113
  wake_print_queue: {
26348
27114
  Args: {
26349
27115
  _min_interval_ms?: number;
@@ -28673,6 +29439,45 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
28673
29439
  };
28674
29440
  Relationships: [];
28675
29441
  };
29442
+ customer_product_stickers: {
29443
+ Row: {
29444
+ created_at: string;
29445
+ customer_key: string;
29446
+ file_name: string;
29447
+ file_path: string;
29448
+ file_size: number | null;
29449
+ id: string;
29450
+ mime_type: string | null;
29451
+ trade_item_key: string;
29452
+ updated_at: string;
29453
+ uploaded_by: string | null;
29454
+ };
29455
+ Insert: {
29456
+ created_at?: string;
29457
+ customer_key: string;
29458
+ file_name: string;
29459
+ file_path: string;
29460
+ file_size?: number | null;
29461
+ id?: string;
29462
+ mime_type?: string | null;
29463
+ trade_item_key: string;
29464
+ updated_at?: string;
29465
+ uploaded_by?: string | null;
29466
+ };
29467
+ Update: {
29468
+ created_at?: string;
29469
+ customer_key?: string;
29470
+ file_name?: string;
29471
+ file_path?: string;
29472
+ file_size?: number | null;
29473
+ id?: string;
29474
+ mime_type?: string | null;
29475
+ trade_item_key?: string;
29476
+ updated_at?: string;
29477
+ uploaded_by?: string | null;
29478
+ };
29479
+ Relationships: [];
29480
+ };
28676
29481
  customer_selected_assortment: {
28677
29482
  Row: {
28678
29483
  article_number: string | null;
@@ -28721,6 +29526,30 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
28721
29526
  referencedColumns: ["id"];
28722
29527
  }];
28723
29528
  };
29529
+ customer_sticker_settings: {
29530
+ Row: {
29531
+ created_at: string;
29532
+ customer_key: string;
29533
+ height_mm: number;
29534
+ updated_at: string;
29535
+ width_mm: number;
29536
+ };
29537
+ Insert: {
29538
+ created_at?: string;
29539
+ customer_key: string;
29540
+ height_mm?: number;
29541
+ updated_at?: string;
29542
+ width_mm?: number;
29543
+ };
29544
+ Update: {
29545
+ created_at?: string;
29546
+ customer_key?: string;
29547
+ height_mm?: number;
29548
+ updated_at?: string;
29549
+ width_mm?: number;
29550
+ };
29551
+ Relationships: [];
29552
+ };
28724
29553
  customer_trade_settings: {
28725
29554
  Row: {
28726
29555
  category: string;
@@ -32051,6 +32880,102 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
32051
32880
  referencedColumns: ["id"];
32052
32881
  }];
32053
32882
  };
32883
+ floriday_api_log: {
32884
+ Row: {
32885
+ action: string | null;
32886
+ caller: string | null;
32887
+ connection_id: string | null;
32888
+ created_at: string;
32889
+ cursor_from: number | null;
32890
+ direction: string;
32891
+ duration_ms: number | null;
32892
+ environment: string | null;
32893
+ error: string | null;
32894
+ floriday_id: string | null;
32895
+ floriday_reference: string | null;
32896
+ http_status: number;
32897
+ id: string;
32898
+ item_count: number | null;
32899
+ kind: string | null;
32900
+ local_id: string | null;
32901
+ local_reference: string | null;
32902
+ method: string;
32903
+ module: string | null;
32904
+ ok: boolean;
32905
+ path: string;
32906
+ request: import("../integrations/supabase/types").Json | null;
32907
+ resource_type: string | null;
32908
+ response: import("../integrations/supabase/types").Json | null;
32909
+ write_log_id: string | null;
32910
+ };
32911
+ Insert: {
32912
+ action?: string | null;
32913
+ caller?: string | null;
32914
+ connection_id?: string | null;
32915
+ created_at?: string;
32916
+ cursor_from?: number | null;
32917
+ direction: string;
32918
+ duration_ms?: number | null;
32919
+ environment?: string | null;
32920
+ error?: string | null;
32921
+ floriday_id?: string | null;
32922
+ floriday_reference?: string | null;
32923
+ http_status?: number;
32924
+ id?: string;
32925
+ item_count?: number | null;
32926
+ kind?: string | null;
32927
+ local_id?: string | null;
32928
+ local_reference?: string | null;
32929
+ method: string;
32930
+ module?: string | null;
32931
+ ok?: boolean;
32932
+ path: string;
32933
+ request?: import("../integrations/supabase/types").Json | null;
32934
+ resource_type?: string | null;
32935
+ response?: import("../integrations/supabase/types").Json | null;
32936
+ write_log_id?: string | null;
32937
+ };
32938
+ Update: {
32939
+ action?: string | null;
32940
+ caller?: string | null;
32941
+ connection_id?: string | null;
32942
+ created_at?: string;
32943
+ cursor_from?: number | null;
32944
+ direction?: string;
32945
+ duration_ms?: number | null;
32946
+ environment?: string | null;
32947
+ error?: string | null;
32948
+ floriday_id?: string | null;
32949
+ floriday_reference?: string | null;
32950
+ http_status?: number;
32951
+ id?: string;
32952
+ item_count?: number | null;
32953
+ kind?: string | null;
32954
+ local_id?: string | null;
32955
+ local_reference?: string | null;
32956
+ method?: string;
32957
+ module?: string | null;
32958
+ ok?: boolean;
32959
+ path?: string;
32960
+ request?: import("../integrations/supabase/types").Json | null;
32961
+ resource_type?: string | null;
32962
+ response?: import("../integrations/supabase/types").Json | null;
32963
+ write_log_id?: string | null;
32964
+ };
32965
+ Relationships: [{
32966
+ foreignKeyName: "floriday_api_log_connection_id_fkey";
32967
+ columns: ["connection_id"];
32968
+ isOneToOne: false;
32969
+ referencedRelation: "floriday_connections";
32970
+ referencedColumns: ["id"];
32971
+ }, {
32972
+ foreignKeyName: "floriday_api_log_write_log_id_fkey";
32973
+ columns: ["write_log_id"];
32974
+ isOneToOne: false;
32975
+ referencedRelation: "floriday_write_log";
32976
+ referencedColumns: ["id"];
32977
+ }];
32978
+ };
32054
32979
  floriday_auction_letters_cache: {
32055
32980
  Row: {
32056
32981
  auction_letter_code: string;
@@ -32258,6 +33183,84 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
32258
33183
  referencedColumns: ["id"];
32259
33184
  }];
32260
33185
  };
33186
+ floriday_catalog_prices_cache: {
33187
+ Row: {
33188
+ connection_id: string;
33189
+ created_at: string;
33190
+ currency: string;
33191
+ id: string;
33192
+ is_deleted: boolean;
33193
+ price: number | null;
33194
+ price_group_id: string | null;
33195
+ price_group_name: string | null;
33196
+ price_type: string;
33197
+ raw: import("../integrations/supabase/types").Json | null;
33198
+ sales_unit: string | null;
33199
+ sequence_number: number;
33200
+ supplier_article_code: string | null;
33201
+ supply_line_id: string;
33202
+ synced_at: string;
33203
+ trade_item_id: string | null;
33204
+ updated_at: string;
33205
+ valid_from: string | null;
33206
+ valid_to: string | null;
33207
+ week: number | null;
33208
+ year: number | null;
33209
+ };
33210
+ Insert: {
33211
+ connection_id: string;
33212
+ created_at?: string;
33213
+ currency?: string;
33214
+ id?: string;
33215
+ is_deleted?: boolean;
33216
+ price?: number | null;
33217
+ price_group_id?: string | null;
33218
+ price_group_name?: string | null;
33219
+ price_type?: string;
33220
+ raw?: import("../integrations/supabase/types").Json | null;
33221
+ sales_unit?: string | null;
33222
+ sequence_number?: number;
33223
+ supplier_article_code?: string | null;
33224
+ supply_line_id: string;
33225
+ synced_at?: string;
33226
+ trade_item_id?: string | null;
33227
+ updated_at?: string;
33228
+ valid_from?: string | null;
33229
+ valid_to?: string | null;
33230
+ week?: number | null;
33231
+ year?: number | null;
33232
+ };
33233
+ Update: {
33234
+ connection_id?: string;
33235
+ created_at?: string;
33236
+ currency?: string;
33237
+ id?: string;
33238
+ is_deleted?: boolean;
33239
+ price?: number | null;
33240
+ price_group_id?: string | null;
33241
+ price_group_name?: string | null;
33242
+ price_type?: string;
33243
+ raw?: import("../integrations/supabase/types").Json | null;
33244
+ sales_unit?: string | null;
33245
+ sequence_number?: number;
33246
+ supplier_article_code?: string | null;
33247
+ supply_line_id?: string;
33248
+ synced_at?: string;
33249
+ trade_item_id?: string | null;
33250
+ updated_at?: string;
33251
+ valid_from?: string | null;
33252
+ valid_to?: string | null;
33253
+ week?: number | null;
33254
+ year?: number | null;
33255
+ };
33256
+ Relationships: [{
33257
+ foreignKeyName: "floriday_catalog_prices_cache_connection_id_fkey";
33258
+ columns: ["connection_id"];
33259
+ isOneToOne: false;
33260
+ referencedRelation: "floriday_connections";
33261
+ referencedColumns: ["id"];
33262
+ }];
33263
+ };
32261
33264
  floriday_clock_presales_cache: {
32262
33265
  Row: {
32263
33266
  buyer_organization_id: string | null;
@@ -33173,6 +34176,69 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
33173
34176
  referencedColumns: ["id"];
33174
34177
  }];
33175
34178
  };
34179
+ floriday_link_templates: {
34180
+ Row: {
34181
+ created_at: string;
34182
+ floriday_url_template: string | null;
34183
+ is_active: boolean;
34184
+ label: string;
34185
+ local_url_template: string | null;
34186
+ resource_type: string;
34187
+ updated_at: string;
34188
+ };
34189
+ Insert: {
34190
+ created_at?: string;
34191
+ floriday_url_template?: string | null;
34192
+ is_active?: boolean;
34193
+ label: string;
34194
+ local_url_template?: string | null;
34195
+ resource_type: string;
34196
+ updated_at?: string;
34197
+ };
34198
+ Update: {
34199
+ created_at?: string;
34200
+ floriday_url_template?: string | null;
34201
+ is_active?: boolean;
34202
+ label?: string;
34203
+ local_url_template?: string | null;
34204
+ resource_type?: string;
34205
+ updated_at?: string;
34206
+ };
34207
+ Relationships: [];
34208
+ };
34209
+ floriday_log_retention: {
34210
+ Row: {
34211
+ created_at: string;
34212
+ direction: string | null;
34213
+ id: string;
34214
+ keep_failed_days: number | null;
34215
+ keep_ok_days: number | null;
34216
+ note: string | null;
34217
+ resource_type: string | null;
34218
+ updated_at: string;
34219
+ };
34220
+ Insert: {
34221
+ created_at?: string;
34222
+ direction?: string | null;
34223
+ id?: string;
34224
+ keep_failed_days?: number | null;
34225
+ keep_ok_days?: number | null;
34226
+ note?: string | null;
34227
+ resource_type?: string | null;
34228
+ updated_at?: string;
34229
+ };
34230
+ Update: {
34231
+ created_at?: string;
34232
+ direction?: string | null;
34233
+ id?: string;
34234
+ keep_failed_days?: number | null;
34235
+ keep_ok_days?: number | null;
34236
+ note?: string | null;
34237
+ resource_type?: string | null;
34238
+ updated_at?: string;
34239
+ };
34240
+ Relationships: [];
34241
+ };
33176
34242
  floriday_logistic_labels_cache: {
33177
34243
  Row: {
33178
34244
  byte_size: number | null;
@@ -36797,6 +37863,48 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
36797
37863
  };
36798
37864
  Relationships: [];
36799
37865
  };
37866
+ logistics_pick_data_requests: {
37867
+ Row: {
37868
+ actions: import("../integrations/supabase/types").Json;
37869
+ created_at: string;
37870
+ event_id: string | null;
37871
+ finished_at: string | null;
37872
+ id: string;
37873
+ missing: import("../integrations/supabase/types").Json;
37874
+ order_ref: string;
37875
+ reason: string | null;
37876
+ result: import("../integrations/supabase/types").Json | null;
37877
+ status: string;
37878
+ unit_ref: string | null;
37879
+ };
37880
+ Insert: {
37881
+ actions?: import("../integrations/supabase/types").Json;
37882
+ created_at?: string;
37883
+ event_id?: string | null;
37884
+ finished_at?: string | null;
37885
+ id?: string;
37886
+ missing?: import("../integrations/supabase/types").Json;
37887
+ order_ref: string;
37888
+ reason?: string | null;
37889
+ result?: import("../integrations/supabase/types").Json | null;
37890
+ status?: string;
37891
+ unit_ref?: string | null;
37892
+ };
37893
+ Update: {
37894
+ actions?: import("../integrations/supabase/types").Json;
37895
+ created_at?: string;
37896
+ event_id?: string | null;
37897
+ finished_at?: string | null;
37898
+ id?: string;
37899
+ missing?: import("../integrations/supabase/types").Json;
37900
+ order_ref?: string;
37901
+ reason?: string | null;
37902
+ result?: import("../integrations/supabase/types").Json | null;
37903
+ status?: string;
37904
+ unit_ref?: string | null;
37905
+ };
37906
+ Relationships: [];
37907
+ };
36800
37908
  logistics_pickup_moments: {
36801
37909
  Row: {
36802
37910
  carrier_ref: string | null;
@@ -37256,6 +38364,69 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
37256
38364
  };
37257
38365
  Relationships: [];
37258
38366
  };
38367
+ logistics_slip_shipping_note: {
38368
+ Row: {
38369
+ attempts: number;
38370
+ batch_key: string | null;
38371
+ cart_id: string | null;
38372
+ created_at: string;
38373
+ error: string | null;
38374
+ error_code: string | null;
38375
+ fulfillment_order_id: string | null;
38376
+ id: string;
38377
+ locked_until: string | null;
38378
+ next_attempt_at: string | null;
38379
+ order_id: string | null;
38380
+ order_number: string | null;
38381
+ print_job_id: string | null;
38382
+ printer_id: string | null;
38383
+ retry_class: string | null;
38384
+ slip_job_id: string;
38385
+ status: string;
38386
+ updated_at: string;
38387
+ };
38388
+ Insert: {
38389
+ attempts?: number;
38390
+ batch_key?: string | null;
38391
+ cart_id?: string | null;
38392
+ created_at?: string;
38393
+ error?: string | null;
38394
+ error_code?: string | null;
38395
+ fulfillment_order_id?: string | null;
38396
+ id?: string;
38397
+ locked_until?: string | null;
38398
+ next_attempt_at?: string | null;
38399
+ order_id?: string | null;
38400
+ order_number?: string | null;
38401
+ print_job_id?: string | null;
38402
+ printer_id?: string | null;
38403
+ retry_class?: string | null;
38404
+ slip_job_id: string;
38405
+ status?: string;
38406
+ updated_at?: string;
38407
+ };
38408
+ Update: {
38409
+ attempts?: number;
38410
+ batch_key?: string | null;
38411
+ cart_id?: string | null;
38412
+ created_at?: string;
38413
+ error?: string | null;
38414
+ error_code?: string | null;
38415
+ fulfillment_order_id?: string | null;
38416
+ id?: string;
38417
+ locked_until?: string | null;
38418
+ next_attempt_at?: string | null;
38419
+ order_id?: string | null;
38420
+ order_number?: string | null;
38421
+ print_job_id?: string | null;
38422
+ printer_id?: string | null;
38423
+ retry_class?: string | null;
38424
+ slip_job_id?: string;
38425
+ status?: string;
38426
+ updated_at?: string;
38427
+ };
38428
+ Relationships: [];
38429
+ };
37259
38430
  logistics_staff_planning: {
37260
38431
  Row: {
37261
38432
  created_at: string;
@@ -37607,6 +38778,111 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
37607
38778
  };
37608
38779
  Relationships: [];
37609
38780
  };
38781
+ logistics_trace_events: {
38782
+ Row: {
38783
+ actor: string | null;
38784
+ attempts: number;
38785
+ cart_ref: string | null;
38786
+ created_at: string;
38787
+ db_action: string | null;
38788
+ db_new: import("../integrations/supabase/types").Json | null;
38789
+ db_old: import("../integrations/supabase/types").Json | null;
38790
+ db_record: string | null;
38791
+ db_table: string | null;
38792
+ decision: string | null;
38793
+ duration_ms: number | null;
38794
+ error: string | null;
38795
+ external_action: string | null;
38796
+ external_ref: string | null;
38797
+ external_response: import("../integrations/supabase/types").Json | null;
38798
+ external_status: string | null;
38799
+ external_system: string | null;
38800
+ id: string;
38801
+ input: import("../integrations/supabase/types").Json | null;
38802
+ next_attempt_at: string | null;
38803
+ order_ref: string | null;
38804
+ order_source: string | null;
38805
+ output: import("../integrations/supabase/types").Json | null;
38806
+ phase: string;
38807
+ reads: import("../integrations/supabase/types").Json | null;
38808
+ reason: string | null;
38809
+ rule: string | null;
38810
+ slip_ref: string | null;
38811
+ status: string;
38812
+ step: string;
38813
+ trace_id: string;
38814
+ values_used: import("../integrations/supabase/types").Json | null;
38815
+ };
38816
+ Insert: {
38817
+ actor?: string | null;
38818
+ attempts?: number;
38819
+ cart_ref?: string | null;
38820
+ created_at?: string;
38821
+ db_action?: string | null;
38822
+ db_new?: import("../integrations/supabase/types").Json | null;
38823
+ db_old?: import("../integrations/supabase/types").Json | null;
38824
+ db_record?: string | null;
38825
+ db_table?: string | null;
38826
+ decision?: string | null;
38827
+ duration_ms?: number | null;
38828
+ error?: string | null;
38829
+ external_action?: string | null;
38830
+ external_ref?: string | null;
38831
+ external_response?: import("../integrations/supabase/types").Json | null;
38832
+ external_status?: string | null;
38833
+ external_system?: string | null;
38834
+ id?: string;
38835
+ input?: import("../integrations/supabase/types").Json | null;
38836
+ next_attempt_at?: string | null;
38837
+ order_ref?: string | null;
38838
+ order_source?: string | null;
38839
+ output?: import("../integrations/supabase/types").Json | null;
38840
+ phase: string;
38841
+ reads?: import("../integrations/supabase/types").Json | null;
38842
+ reason?: string | null;
38843
+ rule?: string | null;
38844
+ slip_ref?: string | null;
38845
+ status: string;
38846
+ step: string;
38847
+ trace_id?: string;
38848
+ values_used?: import("../integrations/supabase/types").Json | null;
38849
+ };
38850
+ Update: {
38851
+ actor?: string | null;
38852
+ attempts?: number;
38853
+ cart_ref?: string | null;
38854
+ created_at?: string;
38855
+ db_action?: string | null;
38856
+ db_new?: import("../integrations/supabase/types").Json | null;
38857
+ db_old?: import("../integrations/supabase/types").Json | null;
38858
+ db_record?: string | null;
38859
+ db_table?: string | null;
38860
+ decision?: string | null;
38861
+ duration_ms?: number | null;
38862
+ error?: string | null;
38863
+ external_action?: string | null;
38864
+ external_ref?: string | null;
38865
+ external_response?: import("../integrations/supabase/types").Json | null;
38866
+ external_status?: string | null;
38867
+ external_system?: string | null;
38868
+ id?: string;
38869
+ input?: import("../integrations/supabase/types").Json | null;
38870
+ next_attempt_at?: string | null;
38871
+ order_ref?: string | null;
38872
+ order_source?: string | null;
38873
+ output?: import("../integrations/supabase/types").Json | null;
38874
+ phase?: string;
38875
+ reads?: import("../integrations/supabase/types").Json | null;
38876
+ reason?: string | null;
38877
+ rule?: string | null;
38878
+ slip_ref?: string | null;
38879
+ status?: string;
38880
+ step?: string;
38881
+ trace_id?: string;
38882
+ values_used?: import("../integrations/supabase/types").Json | null;
38883
+ };
38884
+ Relationships: [];
38885
+ };
37610
38886
  logistics_variables: {
37611
38887
  Row: {
37612
38888
  created_at: string;
@@ -48179,6 +49455,15 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
48179
49455
  Args: never;
48180
49456
  Returns: boolean;
48181
49457
  };
49458
+ cancel_open_print_jobs: {
49459
+ Args: {
49460
+ _cutoff: string;
49461
+ };
49462
+ Returns: {
49463
+ extern_job_id: string;
49464
+ id: string;
49465
+ }[];
49466
+ };
48182
49467
  check_offer_product_available_stock: {
48183
49468
  Args: {
48184
49469
  p_campaign_product_id: string;
@@ -49717,6 +51002,12 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
49717
51002
  };
49718
51003
  Returns: string;
49719
51004
  };
51005
+ logistics_cart_checkin_at: {
51006
+ Args: {
51007
+ p_cart_id: string;
51008
+ };
51009
+ Returns: string;
51010
+ };
49720
51011
  logistics_cart_handled: {
49721
51012
  Args: {
49722
51013
  p_cart_index: number;
@@ -49750,10 +51041,22 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
49750
51041
  task_status: string;
49751
51042
  }[];
49752
51043
  };
51044
+ logistics_cart_is_full: {
51045
+ Args: {
51046
+ p_cart_id: string;
51047
+ };
51048
+ Returns: boolean;
51049
+ };
49753
51050
  logistics_cart_layout_method: {
49754
51051
  Args: never;
49755
51052
  Returns: import("../integrations/supabase/types").Json;
49756
51053
  };
51054
+ logistics_cart_order_refs: {
51055
+ Args: {
51056
+ p_cart_id: string;
51057
+ };
51058
+ Returns: string[];
51059
+ };
49757
51060
  logistics_cart_plan_overview: {
49758
51061
  Args: {
49759
51062
  p_days?: number;
@@ -49773,6 +51076,24 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
49773
51076
  };
49774
51077
  Returns: import("../integrations/supabase/types").Json;
49775
51078
  };
51079
+ logistics_cart_plan_status_core: {
51080
+ Args: {
51081
+ p_ref: string;
51082
+ };
51083
+ Returns: import("../integrations/supabase/types").Json;
51084
+ };
51085
+ logistics_cart_release_reason: {
51086
+ Args: {
51087
+ p_cart_id: string;
51088
+ };
51089
+ Returns: string;
51090
+ };
51091
+ logistics_cart_released: {
51092
+ Args: {
51093
+ p_cart_id: string;
51094
+ };
51095
+ Returns: boolean;
51096
+ };
49776
51097
  logistics_cart_seq: {
49777
51098
  Args: {
49778
51099
  p_order_uuid?: string;
@@ -49823,6 +51144,10 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
49823
51144
  unit_ref: string;
49824
51145
  }[];
49825
51146
  };
51147
+ logistics_carts_per_print: {
51148
+ Args: never;
51149
+ Returns: number;
51150
+ };
49826
51151
  logistics_check_order_allowed: {
49827
51152
  Args: {
49828
51153
  p_lines: import("../integrations/supabase/types").Json;
@@ -49926,6 +51251,10 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
49926
51251
  isSetofReturn: false;
49927
51252
  };
49928
51253
  };
51254
+ logistics_cleanup_orphan_print_jobs: {
51255
+ Args: never;
51256
+ Returns: import("../integrations/supabase/types").Json;
51257
+ };
49929
51258
  logistics_complete_task: {
49930
51259
  Args: {
49931
51260
  p_result?: import("../integrations/supabase/types").Json;
@@ -50177,6 +51506,20 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
50177
51506
  };
50178
51507
  Returns: string;
50179
51508
  };
51509
+ logistics_ensure_pick_data: {
51510
+ Args: {
51511
+ p_event_id?: string;
51512
+ p_missing?: import("../integrations/supabase/types").Json;
51513
+ p_ref: string;
51514
+ };
51515
+ Returns: import("../integrations/supabase/types").Json;
51516
+ };
51517
+ logistics_ensure_shipping_notes: {
51518
+ Args: {
51519
+ p_limit?: number;
51520
+ };
51521
+ Returns: import("../integrations/supabase/types").Json;
51522
+ };
50180
51523
  logistics_fail_task: {
50181
51524
  Args: {
50182
51525
  p_error: string;
@@ -50222,6 +51565,10 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
50222
51565
  isSetofReturn: false;
50223
51566
  };
50224
51567
  };
51568
+ logistics_fix_wrong_shipping_notes: {
51569
+ Args: never;
51570
+ Returns: import("../integrations/supabase/types").Json;
51571
+ };
50225
51572
  logistics_floriday_cart_plan: {
50226
51573
  Args: {
50227
51574
  p_order_id: string;
@@ -50249,6 +51596,10 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
50249
51596
  revision: number;
50250
51597
  }[];
50251
51598
  };
51599
+ logistics_floriday_delivery_note_create_enabled: {
51600
+ Args: never;
51601
+ Returns: boolean;
51602
+ };
50252
51603
  logistics_floriday_finish_push: {
50253
51604
  Args: {
50254
51605
  _error?: string;
@@ -50400,6 +51751,12 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
50400
51751
  };
50401
51752
  Returns: number;
50402
51753
  };
51754
+ logistics_merge_partial_carts: {
51755
+ Args: {
51756
+ p_limit?: number;
51757
+ };
51758
+ Returns: import("../integrations/supabase/types").Json;
51759
+ };
50403
51760
  logistics_next_workday_date: {
50404
51761
  Args: {
50405
51762
  p_date: string;
@@ -50486,6 +51843,12 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
50486
51843
  };
50487
51844
  Returns: string;
50488
51845
  };
51846
+ logistics_payload_is_floriday: {
51847
+ Args: {
51848
+ _payload: import("../integrations/supabase/types").Json;
51849
+ };
51850
+ Returns: boolean;
51851
+ };
50489
51852
  logistics_pick_agenda: {
50490
51853
  Args: {
50491
51854
  p_from?: string;
@@ -50514,6 +51877,10 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
50514
51877
  Args: never;
50515
51878
  Returns: import("../integrations/supabase/types").Json;
50516
51879
  };
51880
+ logistics_pick_partial_mode: {
51881
+ Args: never;
51882
+ Returns: string;
51883
+ };
50517
51884
  logistics_pick_start_estimate: {
50518
51885
  Args: {
50519
51886
  p_order: import("../integrations/supabase/types").Json;
@@ -50604,6 +51971,20 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
50604
51971
  Args: never;
50605
51972
  Returns: undefined;
50606
51973
  };
51974
+ logistics_plan_progress: {
51975
+ Args: {
51976
+ p_refs: string[];
51977
+ };
51978
+ Returns: {
51979
+ cart_plan_ready: boolean;
51980
+ cart_plan_reason: string;
51981
+ cart_plan_released: boolean;
51982
+ plan_progress: number;
51983
+ plan_state: string;
51984
+ plan_state_since: string;
51985
+ unit_ref: string;
51986
+ }[];
51987
+ };
50607
51988
  logistics_plan_prune: {
50608
51989
  Args: never;
50609
51990
  Returns: number;
@@ -50625,6 +52006,18 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
50625
52006
  };
50626
52007
  Returns: number;
50627
52008
  };
52009
+ logistics_plan_state_for: {
52010
+ Args: {
52011
+ p_ref: string;
52012
+ };
52013
+ Returns: import("../integrations/supabase/types").Json;
52014
+ };
52015
+ logistics_prepare_pick_documents: {
52016
+ Args: {
52017
+ p_limit?: number;
52018
+ };
52019
+ Returns: import("../integrations/supabase/types").Json;
52020
+ };
50628
52021
  logistics_prune_buffer_member_queue: {
50629
52022
  Args: never;
50630
52023
  Returns: number;
@@ -50665,18 +52058,36 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
50665
52058
  Args: never;
50666
52059
  Returns: import("../integrations/supabase/types").Json;
50667
52060
  };
52061
+ logistics_refresh_pick_queue_status: {
52062
+ Args: {
52063
+ p_ref: string;
52064
+ };
52065
+ Returns: number;
52066
+ };
50668
52067
  logistics_refresh_pickup_moments: {
50669
52068
  Args: {
50670
52069
  p_weeks?: number;
50671
52070
  };
50672
52071
  Returns: import("../integrations/supabase/types").Json;
50673
52072
  };
52073
+ logistics_refresh_plan_state: {
52074
+ Args: {
52075
+ p_limit?: number;
52076
+ };
52077
+ Returns: import("../integrations/supabase/types").Json;
52078
+ };
50674
52079
  logistics_replan_all: {
50675
52080
  Args: {
50676
52081
  p_reason?: string;
50677
52082
  };
50678
52083
  Returns: import("../integrations/supabase/types").Json;
50679
52084
  };
52085
+ logistics_replan_all_force: {
52086
+ Args: {
52087
+ p_reason?: string;
52088
+ };
52089
+ Returns: import("../integrations/supabase/types").Json;
52090
+ };
50680
52091
  logistics_report_delay: {
50681
52092
  Args: {
50682
52093
  p_expected_date?: string;
@@ -50833,6 +52244,74 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
50833
52244
  };
50834
52245
  Returns: import("../integrations/supabase/types").Json;
50835
52246
  };
52247
+ logistics_shipping_note_job_for_slip: {
52248
+ Args: {
52249
+ _slip_job_id: string;
52250
+ };
52251
+ Returns: string;
52252
+ };
52253
+ logistics_shipping_notes_wake_all: {
52254
+ Args: never;
52255
+ Returns: import("../integrations/supabase/types").Json;
52256
+ };
52257
+ logistics_slip_is_floriday: {
52258
+ Args: {
52259
+ _slip_job_id: string;
52260
+ };
52261
+ Returns: boolean;
52262
+ };
52263
+ logistics_slip_note_claim: {
52264
+ Args: {
52265
+ _lease_seconds?: number;
52266
+ _limit?: number;
52267
+ };
52268
+ Returns: {
52269
+ attempts: number;
52270
+ batch_key: string | null;
52271
+ cart_id: string | null;
52272
+ created_at: string;
52273
+ error: string | null;
52274
+ error_code: string | null;
52275
+ fulfillment_order_id: string | null;
52276
+ id: string;
52277
+ locked_until: string | null;
52278
+ next_attempt_at: string | null;
52279
+ order_id: string | null;
52280
+ order_number: string | null;
52281
+ print_job_id: string | null;
52282
+ printer_id: string | null;
52283
+ retry_class: string | null;
52284
+ slip_job_id: string;
52285
+ status: string;
52286
+ updated_at: string;
52287
+ }[];
52288
+ SetofOptions: {
52289
+ from: "*";
52290
+ to: "logistics_slip_shipping_note";
52291
+ isOneToOne: false;
52292
+ isSetofReturn: true;
52293
+ };
52294
+ };
52295
+ logistics_slip_note_finish: {
52296
+ Args: {
52297
+ _error?: string;
52298
+ _error_code?: string;
52299
+ _fulfillment_order_id?: string;
52300
+ _id: string;
52301
+ _ok: boolean;
52302
+ _print_job_id?: string;
52303
+ _status?: string;
52304
+ };
52305
+ Returns: undefined;
52306
+ };
52307
+ logistics_slip_note_keep_waiting: {
52308
+ Args: {
52309
+ _class?: string;
52310
+ _id: string;
52311
+ _reason: string;
52312
+ };
52313
+ Returns: undefined;
52314
+ };
50836
52315
  logistics_sticker_follows_slip: {
50837
52316
  Args: never;
50838
52317
  Returns: boolean;
@@ -50887,6 +52366,40 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
50887
52366
  name: string;
50888
52367
  }[];
50889
52368
  };
52369
+ logistics_trace: {
52370
+ Args: {
52371
+ p: import("../integrations/supabase/types").Json;
52372
+ };
52373
+ Returns: string;
52374
+ };
52375
+ logistics_trace_batch: {
52376
+ Args: {
52377
+ p: import("../integrations/supabase/types").Json;
52378
+ };
52379
+ Returns: number;
52380
+ };
52381
+ logistics_trace_orders: {
52382
+ Args: {
52383
+ p_limit?: number;
52384
+ p_search?: string;
52385
+ p_since?: string;
52386
+ p_status?: string;
52387
+ };
52388
+ Returns: import("../integrations/supabase/types").Json;
52389
+ };
52390
+ logistics_trace_redact: {
52391
+ Args: {
52392
+ p: import("../integrations/supabase/types").Json;
52393
+ };
52394
+ Returns: import("../integrations/supabase/types").Json;
52395
+ };
52396
+ logistics_trace_timeline: {
52397
+ Args: {
52398
+ p_limit?: number;
52399
+ p_order_ref: string;
52400
+ };
52401
+ Returns: import("../integrations/supabase/types").Json;
52402
+ };
50890
52403
  logistics_upsert_task: {
50891
52404
  Args: {
50892
52405
  p_buffer_ref: string;
@@ -51928,6 +53441,10 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
51928
53441
  };
51929
53442
  Returns: undefined;
51930
53443
  };
53444
+ prune_floriday_api_log: {
53445
+ Args: never;
53446
+ Returns: number;
53447
+ };
51931
53448
  quote_create_from_source: {
51932
53449
  Args: {
51933
53450
  _payload?: import("../integrations/supabase/types").Json;
@@ -52361,6 +53878,13 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
52361
53878
  };
52362
53879
  Returns: number;
52363
53880
  };
53881
+ schedule_floriday_catalog_prices_sync: {
53882
+ Args: {
53883
+ p_apikey: string;
53884
+ p_url: string;
53885
+ };
53886
+ Returns: number;
53887
+ };
52364
53888
  schedule_floriday_clock_presales_sync: {
52365
53889
  Args: {
52366
53890
  p_apikey: string;
@@ -52661,6 +54185,10 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
52661
54185
  };
52662
54186
  Returns: undefined;
52663
54187
  };
54188
+ sync_floriday_prices_into_price_groups: {
54189
+ Args: never;
54190
+ Returns: number;
54191
+ };
52664
54192
  sync_layer_stock: {
52665
54193
  Args: {
52666
54194
  p_product_id: string;
@@ -52793,6 +54321,10 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
52793
54321
  Args: never;
52794
54322
  Returns: string;
52795
54323
  };
54324
+ voorraad_cleanup_old_rows: {
54325
+ Args: never;
54326
+ Returns: import("../integrations/supabase/types").Json;
54327
+ };
52796
54328
  wake_print_queue: {
52797
54329
  Args: {
52798
54330
  _min_interval_ms?: number;
@@ -55103,6 +56635,45 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
55103
56635
  };
55104
56636
  Relationships: [];
55105
56637
  };
56638
+ customer_product_stickers: {
56639
+ Row: {
56640
+ created_at: string;
56641
+ customer_key: string;
56642
+ file_name: string;
56643
+ file_path: string;
56644
+ file_size: number | null;
56645
+ id: string;
56646
+ mime_type: string | null;
56647
+ trade_item_key: string;
56648
+ updated_at: string;
56649
+ uploaded_by: string | null;
56650
+ };
56651
+ Insert: {
56652
+ created_at?: string;
56653
+ customer_key: string;
56654
+ file_name: string;
56655
+ file_path: string;
56656
+ file_size?: number | null;
56657
+ id?: string;
56658
+ mime_type?: string | null;
56659
+ trade_item_key: string;
56660
+ updated_at?: string;
56661
+ uploaded_by?: string | null;
56662
+ };
56663
+ Update: {
56664
+ created_at?: string;
56665
+ customer_key?: string;
56666
+ file_name?: string;
56667
+ file_path?: string;
56668
+ file_size?: number | null;
56669
+ id?: string;
56670
+ mime_type?: string | null;
56671
+ trade_item_key?: string;
56672
+ updated_at?: string;
56673
+ uploaded_by?: string | null;
56674
+ };
56675
+ Relationships: [];
56676
+ };
55106
56677
  customer_selected_assortment: {
55107
56678
  Row: {
55108
56679
  article_number: string | null;
@@ -55151,6 +56722,30 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
55151
56722
  referencedColumns: ["id"];
55152
56723
  }];
55153
56724
  };
56725
+ customer_sticker_settings: {
56726
+ Row: {
56727
+ created_at: string;
56728
+ customer_key: string;
56729
+ height_mm: number;
56730
+ updated_at: string;
56731
+ width_mm: number;
56732
+ };
56733
+ Insert: {
56734
+ created_at?: string;
56735
+ customer_key: string;
56736
+ height_mm?: number;
56737
+ updated_at?: string;
56738
+ width_mm?: number;
56739
+ };
56740
+ Update: {
56741
+ created_at?: string;
56742
+ customer_key?: string;
56743
+ height_mm?: number;
56744
+ updated_at?: string;
56745
+ width_mm?: number;
56746
+ };
56747
+ Relationships: [];
56748
+ };
55154
56749
  customer_trade_settings: {
55155
56750
  Row: {
55156
56751
  category: string;
@@ -58481,6 +60076,102 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
58481
60076
  referencedColumns: ["id"];
58482
60077
  }];
58483
60078
  };
60079
+ floriday_api_log: {
60080
+ Row: {
60081
+ action: string | null;
60082
+ caller: string | null;
60083
+ connection_id: string | null;
60084
+ created_at: string;
60085
+ cursor_from: number | null;
60086
+ direction: string;
60087
+ duration_ms: number | null;
60088
+ environment: string | null;
60089
+ error: string | null;
60090
+ floriday_id: string | null;
60091
+ floriday_reference: string | null;
60092
+ http_status: number;
60093
+ id: string;
60094
+ item_count: number | null;
60095
+ kind: string | null;
60096
+ local_id: string | null;
60097
+ local_reference: string | null;
60098
+ method: string;
60099
+ module: string | null;
60100
+ ok: boolean;
60101
+ path: string;
60102
+ request: import("../integrations/supabase/types").Json | null;
60103
+ resource_type: string | null;
60104
+ response: import("../integrations/supabase/types").Json | null;
60105
+ write_log_id: string | null;
60106
+ };
60107
+ Insert: {
60108
+ action?: string | null;
60109
+ caller?: string | null;
60110
+ connection_id?: string | null;
60111
+ created_at?: string;
60112
+ cursor_from?: number | null;
60113
+ direction: string;
60114
+ duration_ms?: number | null;
60115
+ environment?: string | null;
60116
+ error?: string | null;
60117
+ floriday_id?: string | null;
60118
+ floriday_reference?: string | null;
60119
+ http_status?: number;
60120
+ id?: string;
60121
+ item_count?: number | null;
60122
+ kind?: string | null;
60123
+ local_id?: string | null;
60124
+ local_reference?: string | null;
60125
+ method: string;
60126
+ module?: string | null;
60127
+ ok?: boolean;
60128
+ path: string;
60129
+ request?: import("../integrations/supabase/types").Json | null;
60130
+ resource_type?: string | null;
60131
+ response?: import("../integrations/supabase/types").Json | null;
60132
+ write_log_id?: string | null;
60133
+ };
60134
+ Update: {
60135
+ action?: string | null;
60136
+ caller?: string | null;
60137
+ connection_id?: string | null;
60138
+ created_at?: string;
60139
+ cursor_from?: number | null;
60140
+ direction?: string;
60141
+ duration_ms?: number | null;
60142
+ environment?: string | null;
60143
+ error?: string | null;
60144
+ floriday_id?: string | null;
60145
+ floriday_reference?: string | null;
60146
+ http_status?: number;
60147
+ id?: string;
60148
+ item_count?: number | null;
60149
+ kind?: string | null;
60150
+ local_id?: string | null;
60151
+ local_reference?: string | null;
60152
+ method?: string;
60153
+ module?: string | null;
60154
+ ok?: boolean;
60155
+ path?: string;
60156
+ request?: import("../integrations/supabase/types").Json | null;
60157
+ resource_type?: string | null;
60158
+ response?: import("../integrations/supabase/types").Json | null;
60159
+ write_log_id?: string | null;
60160
+ };
60161
+ Relationships: [{
60162
+ foreignKeyName: "floriday_api_log_connection_id_fkey";
60163
+ columns: ["connection_id"];
60164
+ isOneToOne: false;
60165
+ referencedRelation: "floriday_connections";
60166
+ referencedColumns: ["id"];
60167
+ }, {
60168
+ foreignKeyName: "floriday_api_log_write_log_id_fkey";
60169
+ columns: ["write_log_id"];
60170
+ isOneToOne: false;
60171
+ referencedRelation: "floriday_write_log";
60172
+ referencedColumns: ["id"];
60173
+ }];
60174
+ };
58484
60175
  floriday_auction_letters_cache: {
58485
60176
  Row: {
58486
60177
  auction_letter_code: string;
@@ -58688,6 +60379,84 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
58688
60379
  referencedColumns: ["id"];
58689
60380
  }];
58690
60381
  };
60382
+ floriday_catalog_prices_cache: {
60383
+ Row: {
60384
+ connection_id: string;
60385
+ created_at: string;
60386
+ currency: string;
60387
+ id: string;
60388
+ is_deleted: boolean;
60389
+ price: number | null;
60390
+ price_group_id: string | null;
60391
+ price_group_name: string | null;
60392
+ price_type: string;
60393
+ raw: import("../integrations/supabase/types").Json | null;
60394
+ sales_unit: string | null;
60395
+ sequence_number: number;
60396
+ supplier_article_code: string | null;
60397
+ supply_line_id: string;
60398
+ synced_at: string;
60399
+ trade_item_id: string | null;
60400
+ updated_at: string;
60401
+ valid_from: string | null;
60402
+ valid_to: string | null;
60403
+ week: number | null;
60404
+ year: number | null;
60405
+ };
60406
+ Insert: {
60407
+ connection_id: string;
60408
+ created_at?: string;
60409
+ currency?: string;
60410
+ id?: string;
60411
+ is_deleted?: boolean;
60412
+ price?: number | null;
60413
+ price_group_id?: string | null;
60414
+ price_group_name?: string | null;
60415
+ price_type?: string;
60416
+ raw?: import("../integrations/supabase/types").Json | null;
60417
+ sales_unit?: string | null;
60418
+ sequence_number?: number;
60419
+ supplier_article_code?: string | null;
60420
+ supply_line_id: string;
60421
+ synced_at?: string;
60422
+ trade_item_id?: string | null;
60423
+ updated_at?: string;
60424
+ valid_from?: string | null;
60425
+ valid_to?: string | null;
60426
+ week?: number | null;
60427
+ year?: number | null;
60428
+ };
60429
+ Update: {
60430
+ connection_id?: string;
60431
+ created_at?: string;
60432
+ currency?: string;
60433
+ id?: string;
60434
+ is_deleted?: boolean;
60435
+ price?: number | null;
60436
+ price_group_id?: string | null;
60437
+ price_group_name?: string | null;
60438
+ price_type?: string;
60439
+ raw?: import("../integrations/supabase/types").Json | null;
60440
+ sales_unit?: string | null;
60441
+ sequence_number?: number;
60442
+ supplier_article_code?: string | null;
60443
+ supply_line_id?: string;
60444
+ synced_at?: string;
60445
+ trade_item_id?: string | null;
60446
+ updated_at?: string;
60447
+ valid_from?: string | null;
60448
+ valid_to?: string | null;
60449
+ week?: number | null;
60450
+ year?: number | null;
60451
+ };
60452
+ Relationships: [{
60453
+ foreignKeyName: "floriday_catalog_prices_cache_connection_id_fkey";
60454
+ columns: ["connection_id"];
60455
+ isOneToOne: false;
60456
+ referencedRelation: "floriday_connections";
60457
+ referencedColumns: ["id"];
60458
+ }];
60459
+ };
58691
60460
  floriday_clock_presales_cache: {
58692
60461
  Row: {
58693
60462
  buyer_organization_id: string | null;
@@ -59603,6 +61372,69 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
59603
61372
  referencedColumns: ["id"];
59604
61373
  }];
59605
61374
  };
61375
+ floriday_link_templates: {
61376
+ Row: {
61377
+ created_at: string;
61378
+ floriday_url_template: string | null;
61379
+ is_active: boolean;
61380
+ label: string;
61381
+ local_url_template: string | null;
61382
+ resource_type: string;
61383
+ updated_at: string;
61384
+ };
61385
+ Insert: {
61386
+ created_at?: string;
61387
+ floriday_url_template?: string | null;
61388
+ is_active?: boolean;
61389
+ label: string;
61390
+ local_url_template?: string | null;
61391
+ resource_type: string;
61392
+ updated_at?: string;
61393
+ };
61394
+ Update: {
61395
+ created_at?: string;
61396
+ floriday_url_template?: string | null;
61397
+ is_active?: boolean;
61398
+ label?: string;
61399
+ local_url_template?: string | null;
61400
+ resource_type?: string;
61401
+ updated_at?: string;
61402
+ };
61403
+ Relationships: [];
61404
+ };
61405
+ floriday_log_retention: {
61406
+ Row: {
61407
+ created_at: string;
61408
+ direction: string | null;
61409
+ id: string;
61410
+ keep_failed_days: number | null;
61411
+ keep_ok_days: number | null;
61412
+ note: string | null;
61413
+ resource_type: string | null;
61414
+ updated_at: string;
61415
+ };
61416
+ Insert: {
61417
+ created_at?: string;
61418
+ direction?: string | null;
61419
+ id?: string;
61420
+ keep_failed_days?: number | null;
61421
+ keep_ok_days?: number | null;
61422
+ note?: string | null;
61423
+ resource_type?: string | null;
61424
+ updated_at?: string;
61425
+ };
61426
+ Update: {
61427
+ created_at?: string;
61428
+ direction?: string | null;
61429
+ id?: string;
61430
+ keep_failed_days?: number | null;
61431
+ keep_ok_days?: number | null;
61432
+ note?: string | null;
61433
+ resource_type?: string | null;
61434
+ updated_at?: string;
61435
+ };
61436
+ Relationships: [];
61437
+ };
59606
61438
  floriday_logistic_labels_cache: {
59607
61439
  Row: {
59608
61440
  byte_size: number | null;
@@ -63227,6 +65059,48 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
63227
65059
  };
63228
65060
  Relationships: [];
63229
65061
  };
65062
+ logistics_pick_data_requests: {
65063
+ Row: {
65064
+ actions: import("../integrations/supabase/types").Json;
65065
+ created_at: string;
65066
+ event_id: string | null;
65067
+ finished_at: string | null;
65068
+ id: string;
65069
+ missing: import("../integrations/supabase/types").Json;
65070
+ order_ref: string;
65071
+ reason: string | null;
65072
+ result: import("../integrations/supabase/types").Json | null;
65073
+ status: string;
65074
+ unit_ref: string | null;
65075
+ };
65076
+ Insert: {
65077
+ actions?: import("../integrations/supabase/types").Json;
65078
+ created_at?: string;
65079
+ event_id?: string | null;
65080
+ finished_at?: string | null;
65081
+ id?: string;
65082
+ missing?: import("../integrations/supabase/types").Json;
65083
+ order_ref: string;
65084
+ reason?: string | null;
65085
+ result?: import("../integrations/supabase/types").Json | null;
65086
+ status?: string;
65087
+ unit_ref?: string | null;
65088
+ };
65089
+ Update: {
65090
+ actions?: import("../integrations/supabase/types").Json;
65091
+ created_at?: string;
65092
+ event_id?: string | null;
65093
+ finished_at?: string | null;
65094
+ id?: string;
65095
+ missing?: import("../integrations/supabase/types").Json;
65096
+ order_ref?: string;
65097
+ reason?: string | null;
65098
+ result?: import("../integrations/supabase/types").Json | null;
65099
+ status?: string;
65100
+ unit_ref?: string | null;
65101
+ };
65102
+ Relationships: [];
65103
+ };
63230
65104
  logistics_pickup_moments: {
63231
65105
  Row: {
63232
65106
  carrier_ref: string | null;
@@ -63686,6 +65560,69 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
63686
65560
  };
63687
65561
  Relationships: [];
63688
65562
  };
65563
+ logistics_slip_shipping_note: {
65564
+ Row: {
65565
+ attempts: number;
65566
+ batch_key: string | null;
65567
+ cart_id: string | null;
65568
+ created_at: string;
65569
+ error: string | null;
65570
+ error_code: string | null;
65571
+ fulfillment_order_id: string | null;
65572
+ id: string;
65573
+ locked_until: string | null;
65574
+ next_attempt_at: string | null;
65575
+ order_id: string | null;
65576
+ order_number: string | null;
65577
+ print_job_id: string | null;
65578
+ printer_id: string | null;
65579
+ retry_class: string | null;
65580
+ slip_job_id: string;
65581
+ status: string;
65582
+ updated_at: string;
65583
+ };
65584
+ Insert: {
65585
+ attempts?: number;
65586
+ batch_key?: string | null;
65587
+ cart_id?: string | null;
65588
+ created_at?: string;
65589
+ error?: string | null;
65590
+ error_code?: string | null;
65591
+ fulfillment_order_id?: string | null;
65592
+ id?: string;
65593
+ locked_until?: string | null;
65594
+ next_attempt_at?: string | null;
65595
+ order_id?: string | null;
65596
+ order_number?: string | null;
65597
+ print_job_id?: string | null;
65598
+ printer_id?: string | null;
65599
+ retry_class?: string | null;
65600
+ slip_job_id: string;
65601
+ status?: string;
65602
+ updated_at?: string;
65603
+ };
65604
+ Update: {
65605
+ attempts?: number;
65606
+ batch_key?: string | null;
65607
+ cart_id?: string | null;
65608
+ created_at?: string;
65609
+ error?: string | null;
65610
+ error_code?: string | null;
65611
+ fulfillment_order_id?: string | null;
65612
+ id?: string;
65613
+ locked_until?: string | null;
65614
+ next_attempt_at?: string | null;
65615
+ order_id?: string | null;
65616
+ order_number?: string | null;
65617
+ print_job_id?: string | null;
65618
+ printer_id?: string | null;
65619
+ retry_class?: string | null;
65620
+ slip_job_id?: string;
65621
+ status?: string;
65622
+ updated_at?: string;
65623
+ };
65624
+ Relationships: [];
65625
+ };
63689
65626
  logistics_staff_planning: {
63690
65627
  Row: {
63691
65628
  created_at: string;
@@ -64037,6 +65974,111 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
64037
65974
  };
64038
65975
  Relationships: [];
64039
65976
  };
65977
+ logistics_trace_events: {
65978
+ Row: {
65979
+ actor: string | null;
65980
+ attempts: number;
65981
+ cart_ref: string | null;
65982
+ created_at: string;
65983
+ db_action: string | null;
65984
+ db_new: import("../integrations/supabase/types").Json | null;
65985
+ db_old: import("../integrations/supabase/types").Json | null;
65986
+ db_record: string | null;
65987
+ db_table: string | null;
65988
+ decision: string | null;
65989
+ duration_ms: number | null;
65990
+ error: string | null;
65991
+ external_action: string | null;
65992
+ external_ref: string | null;
65993
+ external_response: import("../integrations/supabase/types").Json | null;
65994
+ external_status: string | null;
65995
+ external_system: string | null;
65996
+ id: string;
65997
+ input: import("../integrations/supabase/types").Json | null;
65998
+ next_attempt_at: string | null;
65999
+ order_ref: string | null;
66000
+ order_source: string | null;
66001
+ output: import("../integrations/supabase/types").Json | null;
66002
+ phase: string;
66003
+ reads: import("../integrations/supabase/types").Json | null;
66004
+ reason: string | null;
66005
+ rule: string | null;
66006
+ slip_ref: string | null;
66007
+ status: string;
66008
+ step: string;
66009
+ trace_id: string;
66010
+ values_used: import("../integrations/supabase/types").Json | null;
66011
+ };
66012
+ Insert: {
66013
+ actor?: string | null;
66014
+ attempts?: number;
66015
+ cart_ref?: string | null;
66016
+ created_at?: string;
66017
+ db_action?: string | null;
66018
+ db_new?: import("../integrations/supabase/types").Json | null;
66019
+ db_old?: import("../integrations/supabase/types").Json | null;
66020
+ db_record?: string | null;
66021
+ db_table?: string | null;
66022
+ decision?: string | null;
66023
+ duration_ms?: number | null;
66024
+ error?: string | null;
66025
+ external_action?: string | null;
66026
+ external_ref?: string | null;
66027
+ external_response?: import("../integrations/supabase/types").Json | null;
66028
+ external_status?: string | null;
66029
+ external_system?: string | null;
66030
+ id?: string;
66031
+ input?: import("../integrations/supabase/types").Json | null;
66032
+ next_attempt_at?: string | null;
66033
+ order_ref?: string | null;
66034
+ order_source?: string | null;
66035
+ output?: import("../integrations/supabase/types").Json | null;
66036
+ phase: string;
66037
+ reads?: import("../integrations/supabase/types").Json | null;
66038
+ reason?: string | null;
66039
+ rule?: string | null;
66040
+ slip_ref?: string | null;
66041
+ status: string;
66042
+ step: string;
66043
+ trace_id?: string;
66044
+ values_used?: import("../integrations/supabase/types").Json | null;
66045
+ };
66046
+ Update: {
66047
+ actor?: string | null;
66048
+ attempts?: number;
66049
+ cart_ref?: string | null;
66050
+ created_at?: string;
66051
+ db_action?: string | null;
66052
+ db_new?: import("../integrations/supabase/types").Json | null;
66053
+ db_old?: import("../integrations/supabase/types").Json | null;
66054
+ db_record?: string | null;
66055
+ db_table?: string | null;
66056
+ decision?: string | null;
66057
+ duration_ms?: number | null;
66058
+ error?: string | null;
66059
+ external_action?: string | null;
66060
+ external_ref?: string | null;
66061
+ external_response?: import("../integrations/supabase/types").Json | null;
66062
+ external_status?: string | null;
66063
+ external_system?: string | null;
66064
+ id?: string;
66065
+ input?: import("../integrations/supabase/types").Json | null;
66066
+ next_attempt_at?: string | null;
66067
+ order_ref?: string | null;
66068
+ order_source?: string | null;
66069
+ output?: import("../integrations/supabase/types").Json | null;
66070
+ phase?: string;
66071
+ reads?: import("../integrations/supabase/types").Json | null;
66072
+ reason?: string | null;
66073
+ rule?: string | null;
66074
+ slip_ref?: string | null;
66075
+ status?: string;
66076
+ step?: string;
66077
+ trace_id?: string;
66078
+ values_used?: import("../integrations/supabase/types").Json | null;
66079
+ };
66080
+ Relationships: [];
66081
+ };
64040
66082
  logistics_variables: {
64041
66083
  Row: {
64042
66084
  created_at: string;
@@ -74609,6 +76651,15 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
74609
76651
  Args: never;
74610
76652
  Returns: boolean;
74611
76653
  };
76654
+ cancel_open_print_jobs: {
76655
+ Args: {
76656
+ _cutoff: string;
76657
+ };
76658
+ Returns: {
76659
+ extern_job_id: string;
76660
+ id: string;
76661
+ }[];
76662
+ };
74612
76663
  check_offer_product_available_stock: {
74613
76664
  Args: {
74614
76665
  p_campaign_product_id: string;
@@ -76147,6 +78198,12 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
76147
78198
  };
76148
78199
  Returns: string;
76149
78200
  };
78201
+ logistics_cart_checkin_at: {
78202
+ Args: {
78203
+ p_cart_id: string;
78204
+ };
78205
+ Returns: string;
78206
+ };
76150
78207
  logistics_cart_handled: {
76151
78208
  Args: {
76152
78209
  p_cart_index: number;
@@ -76180,10 +78237,22 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
76180
78237
  task_status: string;
76181
78238
  }[];
76182
78239
  };
78240
+ logistics_cart_is_full: {
78241
+ Args: {
78242
+ p_cart_id: string;
78243
+ };
78244
+ Returns: boolean;
78245
+ };
76183
78246
  logistics_cart_layout_method: {
76184
78247
  Args: never;
76185
78248
  Returns: import("../integrations/supabase/types").Json;
76186
78249
  };
78250
+ logistics_cart_order_refs: {
78251
+ Args: {
78252
+ p_cart_id: string;
78253
+ };
78254
+ Returns: string[];
78255
+ };
76187
78256
  logistics_cart_plan_overview: {
76188
78257
  Args: {
76189
78258
  p_days?: number;
@@ -76203,6 +78272,24 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
76203
78272
  };
76204
78273
  Returns: import("../integrations/supabase/types").Json;
76205
78274
  };
78275
+ logistics_cart_plan_status_core: {
78276
+ Args: {
78277
+ p_ref: string;
78278
+ };
78279
+ Returns: import("../integrations/supabase/types").Json;
78280
+ };
78281
+ logistics_cart_release_reason: {
78282
+ Args: {
78283
+ p_cart_id: string;
78284
+ };
78285
+ Returns: string;
78286
+ };
78287
+ logistics_cart_released: {
78288
+ Args: {
78289
+ p_cart_id: string;
78290
+ };
78291
+ Returns: boolean;
78292
+ };
76206
78293
  logistics_cart_seq: {
76207
78294
  Args: {
76208
78295
  p_order_uuid?: string;
@@ -76253,6 +78340,10 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
76253
78340
  unit_ref: string;
76254
78341
  }[];
76255
78342
  };
78343
+ logistics_carts_per_print: {
78344
+ Args: never;
78345
+ Returns: number;
78346
+ };
76256
78347
  logistics_check_order_allowed: {
76257
78348
  Args: {
76258
78349
  p_lines: import("../integrations/supabase/types").Json;
@@ -76356,6 +78447,10 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
76356
78447
  isSetofReturn: false;
76357
78448
  };
76358
78449
  };
78450
+ logistics_cleanup_orphan_print_jobs: {
78451
+ Args: never;
78452
+ Returns: import("../integrations/supabase/types").Json;
78453
+ };
76359
78454
  logistics_complete_task: {
76360
78455
  Args: {
76361
78456
  p_result?: import("../integrations/supabase/types").Json;
@@ -76607,6 +78702,20 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
76607
78702
  };
76608
78703
  Returns: string;
76609
78704
  };
78705
+ logistics_ensure_pick_data: {
78706
+ Args: {
78707
+ p_event_id?: string;
78708
+ p_missing?: import("../integrations/supabase/types").Json;
78709
+ p_ref: string;
78710
+ };
78711
+ Returns: import("../integrations/supabase/types").Json;
78712
+ };
78713
+ logistics_ensure_shipping_notes: {
78714
+ Args: {
78715
+ p_limit?: number;
78716
+ };
78717
+ Returns: import("../integrations/supabase/types").Json;
78718
+ };
76610
78719
  logistics_fail_task: {
76611
78720
  Args: {
76612
78721
  p_error: string;
@@ -76652,6 +78761,10 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
76652
78761
  isSetofReturn: false;
76653
78762
  };
76654
78763
  };
78764
+ logistics_fix_wrong_shipping_notes: {
78765
+ Args: never;
78766
+ Returns: import("../integrations/supabase/types").Json;
78767
+ };
76655
78768
  logistics_floriday_cart_plan: {
76656
78769
  Args: {
76657
78770
  p_order_id: string;
@@ -76679,6 +78792,10 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
76679
78792
  revision: number;
76680
78793
  }[];
76681
78794
  };
78795
+ logistics_floriday_delivery_note_create_enabled: {
78796
+ Args: never;
78797
+ Returns: boolean;
78798
+ };
76682
78799
  logistics_floriday_finish_push: {
76683
78800
  Args: {
76684
78801
  _error?: string;
@@ -76830,6 +78947,12 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
76830
78947
  };
76831
78948
  Returns: number;
76832
78949
  };
78950
+ logistics_merge_partial_carts: {
78951
+ Args: {
78952
+ p_limit?: number;
78953
+ };
78954
+ Returns: import("../integrations/supabase/types").Json;
78955
+ };
76833
78956
  logistics_next_workday_date: {
76834
78957
  Args: {
76835
78958
  p_date: string;
@@ -76916,6 +79039,12 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
76916
79039
  };
76917
79040
  Returns: string;
76918
79041
  };
79042
+ logistics_payload_is_floriday: {
79043
+ Args: {
79044
+ _payload: import("../integrations/supabase/types").Json;
79045
+ };
79046
+ Returns: boolean;
79047
+ };
76919
79048
  logistics_pick_agenda: {
76920
79049
  Args: {
76921
79050
  p_from?: string;
@@ -76944,6 +79073,10 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
76944
79073
  Args: never;
76945
79074
  Returns: import("../integrations/supabase/types").Json;
76946
79075
  };
79076
+ logistics_pick_partial_mode: {
79077
+ Args: never;
79078
+ Returns: string;
79079
+ };
76947
79080
  logistics_pick_start_estimate: {
76948
79081
  Args: {
76949
79082
  p_order: import("../integrations/supabase/types").Json;
@@ -77034,6 +79167,20 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
77034
79167
  Args: never;
77035
79168
  Returns: undefined;
77036
79169
  };
79170
+ logistics_plan_progress: {
79171
+ Args: {
79172
+ p_refs: string[];
79173
+ };
79174
+ Returns: {
79175
+ cart_plan_ready: boolean;
79176
+ cart_plan_reason: string;
79177
+ cart_plan_released: boolean;
79178
+ plan_progress: number;
79179
+ plan_state: string;
79180
+ plan_state_since: string;
79181
+ unit_ref: string;
79182
+ }[];
79183
+ };
77037
79184
  logistics_plan_prune: {
77038
79185
  Args: never;
77039
79186
  Returns: number;
@@ -77055,6 +79202,18 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
77055
79202
  };
77056
79203
  Returns: number;
77057
79204
  };
79205
+ logistics_plan_state_for: {
79206
+ Args: {
79207
+ p_ref: string;
79208
+ };
79209
+ Returns: import("../integrations/supabase/types").Json;
79210
+ };
79211
+ logistics_prepare_pick_documents: {
79212
+ Args: {
79213
+ p_limit?: number;
79214
+ };
79215
+ Returns: import("../integrations/supabase/types").Json;
79216
+ };
77058
79217
  logistics_prune_buffer_member_queue: {
77059
79218
  Args: never;
77060
79219
  Returns: number;
@@ -77095,18 +79254,36 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
77095
79254
  Args: never;
77096
79255
  Returns: import("../integrations/supabase/types").Json;
77097
79256
  };
79257
+ logistics_refresh_pick_queue_status: {
79258
+ Args: {
79259
+ p_ref: string;
79260
+ };
79261
+ Returns: number;
79262
+ };
77098
79263
  logistics_refresh_pickup_moments: {
77099
79264
  Args: {
77100
79265
  p_weeks?: number;
77101
79266
  };
77102
79267
  Returns: import("../integrations/supabase/types").Json;
77103
79268
  };
79269
+ logistics_refresh_plan_state: {
79270
+ Args: {
79271
+ p_limit?: number;
79272
+ };
79273
+ Returns: import("../integrations/supabase/types").Json;
79274
+ };
77104
79275
  logistics_replan_all: {
77105
79276
  Args: {
77106
79277
  p_reason?: string;
77107
79278
  };
77108
79279
  Returns: import("../integrations/supabase/types").Json;
77109
79280
  };
79281
+ logistics_replan_all_force: {
79282
+ Args: {
79283
+ p_reason?: string;
79284
+ };
79285
+ Returns: import("../integrations/supabase/types").Json;
79286
+ };
77110
79287
  logistics_report_delay: {
77111
79288
  Args: {
77112
79289
  p_expected_date?: string;
@@ -77263,6 +79440,74 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
77263
79440
  };
77264
79441
  Returns: import("../integrations/supabase/types").Json;
77265
79442
  };
79443
+ logistics_shipping_note_job_for_slip: {
79444
+ Args: {
79445
+ _slip_job_id: string;
79446
+ };
79447
+ Returns: string;
79448
+ };
79449
+ logistics_shipping_notes_wake_all: {
79450
+ Args: never;
79451
+ Returns: import("../integrations/supabase/types").Json;
79452
+ };
79453
+ logistics_slip_is_floriday: {
79454
+ Args: {
79455
+ _slip_job_id: string;
79456
+ };
79457
+ Returns: boolean;
79458
+ };
79459
+ logistics_slip_note_claim: {
79460
+ Args: {
79461
+ _lease_seconds?: number;
79462
+ _limit?: number;
79463
+ };
79464
+ Returns: {
79465
+ attempts: number;
79466
+ batch_key: string | null;
79467
+ cart_id: string | null;
79468
+ created_at: string;
79469
+ error: string | null;
79470
+ error_code: string | null;
79471
+ fulfillment_order_id: string | null;
79472
+ id: string;
79473
+ locked_until: string | null;
79474
+ next_attempt_at: string | null;
79475
+ order_id: string | null;
79476
+ order_number: string | null;
79477
+ print_job_id: string | null;
79478
+ printer_id: string | null;
79479
+ retry_class: string | null;
79480
+ slip_job_id: string;
79481
+ status: string;
79482
+ updated_at: string;
79483
+ }[];
79484
+ SetofOptions: {
79485
+ from: "*";
79486
+ to: "logistics_slip_shipping_note";
79487
+ isOneToOne: false;
79488
+ isSetofReturn: true;
79489
+ };
79490
+ };
79491
+ logistics_slip_note_finish: {
79492
+ Args: {
79493
+ _error?: string;
79494
+ _error_code?: string;
79495
+ _fulfillment_order_id?: string;
79496
+ _id: string;
79497
+ _ok: boolean;
79498
+ _print_job_id?: string;
79499
+ _status?: string;
79500
+ };
79501
+ Returns: undefined;
79502
+ };
79503
+ logistics_slip_note_keep_waiting: {
79504
+ Args: {
79505
+ _class?: string;
79506
+ _id: string;
79507
+ _reason: string;
79508
+ };
79509
+ Returns: undefined;
79510
+ };
77266
79511
  logistics_sticker_follows_slip: {
77267
79512
  Args: never;
77268
79513
  Returns: boolean;
@@ -77317,6 +79562,40 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
77317
79562
  name: string;
77318
79563
  }[];
77319
79564
  };
79565
+ logistics_trace: {
79566
+ Args: {
79567
+ p: import("../integrations/supabase/types").Json;
79568
+ };
79569
+ Returns: string;
79570
+ };
79571
+ logistics_trace_batch: {
79572
+ Args: {
79573
+ p: import("../integrations/supabase/types").Json;
79574
+ };
79575
+ Returns: number;
79576
+ };
79577
+ logistics_trace_orders: {
79578
+ Args: {
79579
+ p_limit?: number;
79580
+ p_search?: string;
79581
+ p_since?: string;
79582
+ p_status?: string;
79583
+ };
79584
+ Returns: import("../integrations/supabase/types").Json;
79585
+ };
79586
+ logistics_trace_redact: {
79587
+ Args: {
79588
+ p: import("../integrations/supabase/types").Json;
79589
+ };
79590
+ Returns: import("../integrations/supabase/types").Json;
79591
+ };
79592
+ logistics_trace_timeline: {
79593
+ Args: {
79594
+ p_limit?: number;
79595
+ p_order_ref: string;
79596
+ };
79597
+ Returns: import("../integrations/supabase/types").Json;
79598
+ };
77320
79599
  logistics_upsert_task: {
77321
79600
  Args: {
77322
79601
  p_buffer_ref: string;
@@ -78358,6 +80637,10 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
78358
80637
  };
78359
80638
  Returns: undefined;
78360
80639
  };
80640
+ prune_floriday_api_log: {
80641
+ Args: never;
80642
+ Returns: number;
80643
+ };
78361
80644
  quote_create_from_source: {
78362
80645
  Args: {
78363
80646
  _payload?: import("../integrations/supabase/types").Json;
@@ -78791,6 +81074,13 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
78791
81074
  };
78792
81075
  Returns: number;
78793
81076
  };
81077
+ schedule_floriday_catalog_prices_sync: {
81078
+ Args: {
81079
+ p_apikey: string;
81080
+ p_url: string;
81081
+ };
81082
+ Returns: number;
81083
+ };
78794
81084
  schedule_floriday_clock_presales_sync: {
78795
81085
  Args: {
78796
81086
  p_apikey: string;
@@ -79091,6 +81381,10 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
79091
81381
  };
79092
81382
  Returns: undefined;
79093
81383
  };
81384
+ sync_floriday_prices_into_price_groups: {
81385
+ Args: never;
81386
+ Returns: number;
81387
+ };
79094
81388
  sync_layer_stock: {
79095
81389
  Args: {
79096
81390
  p_product_id: string;
@@ -79223,6 +81517,10 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
79223
81517
  Args: never;
79224
81518
  Returns: string;
79225
81519
  };
81520
+ voorraad_cleanup_old_rows: {
81521
+ Args: never;
81522
+ Returns: import("../integrations/supabase/types").Json;
81523
+ };
79226
81524
  wake_print_queue: {
79227
81525
  Args: {
79228
81526
  _min_interval_ms?: number;
@@ -81522,6 +83820,45 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
81522
83820
  };
81523
83821
  Relationships: [];
81524
83822
  };
83823
+ customer_product_stickers: {
83824
+ Row: {
83825
+ created_at: string;
83826
+ customer_key: string;
83827
+ file_name: string;
83828
+ file_path: string;
83829
+ file_size: number | null;
83830
+ id: string;
83831
+ mime_type: string | null;
83832
+ trade_item_key: string;
83833
+ updated_at: string;
83834
+ uploaded_by: string | null;
83835
+ };
83836
+ Insert: {
83837
+ created_at?: string;
83838
+ customer_key: string;
83839
+ file_name: string;
83840
+ file_path: string;
83841
+ file_size?: number | null;
83842
+ id?: string;
83843
+ mime_type?: string | null;
83844
+ trade_item_key: string;
83845
+ updated_at?: string;
83846
+ uploaded_by?: string | null;
83847
+ };
83848
+ Update: {
83849
+ created_at?: string;
83850
+ customer_key?: string;
83851
+ file_name?: string;
83852
+ file_path?: string;
83853
+ file_size?: number | null;
83854
+ id?: string;
83855
+ mime_type?: string | null;
83856
+ trade_item_key?: string;
83857
+ updated_at?: string;
83858
+ uploaded_by?: string | null;
83859
+ };
83860
+ Relationships: [];
83861
+ };
81525
83862
  customer_selected_assortment: {
81526
83863
  Row: {
81527
83864
  article_number: string | null;
@@ -81570,6 +83907,30 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
81570
83907
  referencedColumns: ["id"];
81571
83908
  }];
81572
83909
  };
83910
+ customer_sticker_settings: {
83911
+ Row: {
83912
+ created_at: string;
83913
+ customer_key: string;
83914
+ height_mm: number;
83915
+ updated_at: string;
83916
+ width_mm: number;
83917
+ };
83918
+ Insert: {
83919
+ created_at?: string;
83920
+ customer_key: string;
83921
+ height_mm?: number;
83922
+ updated_at?: string;
83923
+ width_mm?: number;
83924
+ };
83925
+ Update: {
83926
+ created_at?: string;
83927
+ customer_key?: string;
83928
+ height_mm?: number;
83929
+ updated_at?: string;
83930
+ width_mm?: number;
83931
+ };
83932
+ Relationships: [];
83933
+ };
81573
83934
  customer_trade_settings: {
81574
83935
  Row: {
81575
83936
  category: string;
@@ -84900,6 +87261,102 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
84900
87261
  referencedColumns: ["id"];
84901
87262
  }];
84902
87263
  };
87264
+ floriday_api_log: {
87265
+ Row: {
87266
+ action: string | null;
87267
+ caller: string | null;
87268
+ connection_id: string | null;
87269
+ created_at: string;
87270
+ cursor_from: number | null;
87271
+ direction: string;
87272
+ duration_ms: number | null;
87273
+ environment: string | null;
87274
+ error: string | null;
87275
+ floriday_id: string | null;
87276
+ floriday_reference: string | null;
87277
+ http_status: number;
87278
+ id: string;
87279
+ item_count: number | null;
87280
+ kind: string | null;
87281
+ local_id: string | null;
87282
+ local_reference: string | null;
87283
+ method: string;
87284
+ module: string | null;
87285
+ ok: boolean;
87286
+ path: string;
87287
+ request: import("../integrations/supabase/types").Json | null;
87288
+ resource_type: string | null;
87289
+ response: import("../integrations/supabase/types").Json | null;
87290
+ write_log_id: string | null;
87291
+ };
87292
+ Insert: {
87293
+ action?: string | null;
87294
+ caller?: string | null;
87295
+ connection_id?: string | null;
87296
+ created_at?: string;
87297
+ cursor_from?: number | null;
87298
+ direction: string;
87299
+ duration_ms?: number | null;
87300
+ environment?: string | null;
87301
+ error?: string | null;
87302
+ floriday_id?: string | null;
87303
+ floriday_reference?: string | null;
87304
+ http_status?: number;
87305
+ id?: string;
87306
+ item_count?: number | null;
87307
+ kind?: string | null;
87308
+ local_id?: string | null;
87309
+ local_reference?: string | null;
87310
+ method: string;
87311
+ module?: string | null;
87312
+ ok?: boolean;
87313
+ path: string;
87314
+ request?: import("../integrations/supabase/types").Json | null;
87315
+ resource_type?: string | null;
87316
+ response?: import("../integrations/supabase/types").Json | null;
87317
+ write_log_id?: string | null;
87318
+ };
87319
+ Update: {
87320
+ action?: string | null;
87321
+ caller?: string | null;
87322
+ connection_id?: string | null;
87323
+ created_at?: string;
87324
+ cursor_from?: number | null;
87325
+ direction?: string;
87326
+ duration_ms?: number | null;
87327
+ environment?: string | null;
87328
+ error?: string | null;
87329
+ floriday_id?: string | null;
87330
+ floriday_reference?: string | null;
87331
+ http_status?: number;
87332
+ id?: string;
87333
+ item_count?: number | null;
87334
+ kind?: string | null;
87335
+ local_id?: string | null;
87336
+ local_reference?: string | null;
87337
+ method?: string;
87338
+ module?: string | null;
87339
+ ok?: boolean;
87340
+ path?: string;
87341
+ request?: import("../integrations/supabase/types").Json | null;
87342
+ resource_type?: string | null;
87343
+ response?: import("../integrations/supabase/types").Json | null;
87344
+ write_log_id?: string | null;
87345
+ };
87346
+ Relationships: [{
87347
+ foreignKeyName: "floriday_api_log_connection_id_fkey";
87348
+ columns: ["connection_id"];
87349
+ isOneToOne: false;
87350
+ referencedRelation: "floriday_connections";
87351
+ referencedColumns: ["id"];
87352
+ }, {
87353
+ foreignKeyName: "floriday_api_log_write_log_id_fkey";
87354
+ columns: ["write_log_id"];
87355
+ isOneToOne: false;
87356
+ referencedRelation: "floriday_write_log";
87357
+ referencedColumns: ["id"];
87358
+ }];
87359
+ };
84903
87360
  floriday_auction_letters_cache: {
84904
87361
  Row: {
84905
87362
  auction_letter_code: string;
@@ -85107,6 +87564,84 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
85107
87564
  referencedColumns: ["id"];
85108
87565
  }];
85109
87566
  };
87567
+ floriday_catalog_prices_cache: {
87568
+ Row: {
87569
+ connection_id: string;
87570
+ created_at: string;
87571
+ currency: string;
87572
+ id: string;
87573
+ is_deleted: boolean;
87574
+ price: number | null;
87575
+ price_group_id: string | null;
87576
+ price_group_name: string | null;
87577
+ price_type: string;
87578
+ raw: import("../integrations/supabase/types").Json | null;
87579
+ sales_unit: string | null;
87580
+ sequence_number: number;
87581
+ supplier_article_code: string | null;
87582
+ supply_line_id: string;
87583
+ synced_at: string;
87584
+ trade_item_id: string | null;
87585
+ updated_at: string;
87586
+ valid_from: string | null;
87587
+ valid_to: string | null;
87588
+ week: number | null;
87589
+ year: number | null;
87590
+ };
87591
+ Insert: {
87592
+ connection_id: string;
87593
+ created_at?: string;
87594
+ currency?: string;
87595
+ id?: string;
87596
+ is_deleted?: boolean;
87597
+ price?: number | null;
87598
+ price_group_id?: string | null;
87599
+ price_group_name?: string | null;
87600
+ price_type?: string;
87601
+ raw?: import("../integrations/supabase/types").Json | null;
87602
+ sales_unit?: string | null;
87603
+ sequence_number?: number;
87604
+ supplier_article_code?: string | null;
87605
+ supply_line_id: string;
87606
+ synced_at?: string;
87607
+ trade_item_id?: string | null;
87608
+ updated_at?: string;
87609
+ valid_from?: string | null;
87610
+ valid_to?: string | null;
87611
+ week?: number | null;
87612
+ year?: number | null;
87613
+ };
87614
+ Update: {
87615
+ connection_id?: string;
87616
+ created_at?: string;
87617
+ currency?: string;
87618
+ id?: string;
87619
+ is_deleted?: boolean;
87620
+ price?: number | null;
87621
+ price_group_id?: string | null;
87622
+ price_group_name?: string | null;
87623
+ price_type?: string;
87624
+ raw?: import("../integrations/supabase/types").Json | null;
87625
+ sales_unit?: string | null;
87626
+ sequence_number?: number;
87627
+ supplier_article_code?: string | null;
87628
+ supply_line_id?: string;
87629
+ synced_at?: string;
87630
+ trade_item_id?: string | null;
87631
+ updated_at?: string;
87632
+ valid_from?: string | null;
87633
+ valid_to?: string | null;
87634
+ week?: number | null;
87635
+ year?: number | null;
87636
+ };
87637
+ Relationships: [{
87638
+ foreignKeyName: "floriday_catalog_prices_cache_connection_id_fkey";
87639
+ columns: ["connection_id"];
87640
+ isOneToOne: false;
87641
+ referencedRelation: "floriday_connections";
87642
+ referencedColumns: ["id"];
87643
+ }];
87644
+ };
85110
87645
  floriday_clock_presales_cache: {
85111
87646
  Row: {
85112
87647
  buyer_organization_id: string | null;
@@ -86022,6 +88557,69 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
86022
88557
  referencedColumns: ["id"];
86023
88558
  }];
86024
88559
  };
88560
+ floriday_link_templates: {
88561
+ Row: {
88562
+ created_at: string;
88563
+ floriday_url_template: string | null;
88564
+ is_active: boolean;
88565
+ label: string;
88566
+ local_url_template: string | null;
88567
+ resource_type: string;
88568
+ updated_at: string;
88569
+ };
88570
+ Insert: {
88571
+ created_at?: string;
88572
+ floriday_url_template?: string | null;
88573
+ is_active?: boolean;
88574
+ label: string;
88575
+ local_url_template?: string | null;
88576
+ resource_type: string;
88577
+ updated_at?: string;
88578
+ };
88579
+ Update: {
88580
+ created_at?: string;
88581
+ floriday_url_template?: string | null;
88582
+ is_active?: boolean;
88583
+ label?: string;
88584
+ local_url_template?: string | null;
88585
+ resource_type?: string;
88586
+ updated_at?: string;
88587
+ };
88588
+ Relationships: [];
88589
+ };
88590
+ floriday_log_retention: {
88591
+ Row: {
88592
+ created_at: string;
88593
+ direction: string | null;
88594
+ id: string;
88595
+ keep_failed_days: number | null;
88596
+ keep_ok_days: number | null;
88597
+ note: string | null;
88598
+ resource_type: string | null;
88599
+ updated_at: string;
88600
+ };
88601
+ Insert: {
88602
+ created_at?: string;
88603
+ direction?: string | null;
88604
+ id?: string;
88605
+ keep_failed_days?: number | null;
88606
+ keep_ok_days?: number | null;
88607
+ note?: string | null;
88608
+ resource_type?: string | null;
88609
+ updated_at?: string;
88610
+ };
88611
+ Update: {
88612
+ created_at?: string;
88613
+ direction?: string | null;
88614
+ id?: string;
88615
+ keep_failed_days?: number | null;
88616
+ keep_ok_days?: number | null;
88617
+ note?: string | null;
88618
+ resource_type?: string | null;
88619
+ updated_at?: string;
88620
+ };
88621
+ Relationships: [];
88622
+ };
86025
88623
  floriday_logistic_labels_cache: {
86026
88624
  Row: {
86027
88625
  byte_size: number | null;
@@ -89646,6 +92244,48 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
89646
92244
  };
89647
92245
  Relationships: [];
89648
92246
  };
92247
+ logistics_pick_data_requests: {
92248
+ Row: {
92249
+ actions: import("../integrations/supabase/types").Json;
92250
+ created_at: string;
92251
+ event_id: string | null;
92252
+ finished_at: string | null;
92253
+ id: string;
92254
+ missing: import("../integrations/supabase/types").Json;
92255
+ order_ref: string;
92256
+ reason: string | null;
92257
+ result: import("../integrations/supabase/types").Json | null;
92258
+ status: string;
92259
+ unit_ref: string | null;
92260
+ };
92261
+ Insert: {
92262
+ actions?: import("../integrations/supabase/types").Json;
92263
+ created_at?: string;
92264
+ event_id?: string | null;
92265
+ finished_at?: string | null;
92266
+ id?: string;
92267
+ missing?: import("../integrations/supabase/types").Json;
92268
+ order_ref: string;
92269
+ reason?: string | null;
92270
+ result?: import("../integrations/supabase/types").Json | null;
92271
+ status?: string;
92272
+ unit_ref?: string | null;
92273
+ };
92274
+ Update: {
92275
+ actions?: import("../integrations/supabase/types").Json;
92276
+ created_at?: string;
92277
+ event_id?: string | null;
92278
+ finished_at?: string | null;
92279
+ id?: string;
92280
+ missing?: import("../integrations/supabase/types").Json;
92281
+ order_ref?: string;
92282
+ reason?: string | null;
92283
+ result?: import("../integrations/supabase/types").Json | null;
92284
+ status?: string;
92285
+ unit_ref?: string | null;
92286
+ };
92287
+ Relationships: [];
92288
+ };
89649
92289
  logistics_pickup_moments: {
89650
92290
  Row: {
89651
92291
  carrier_ref: string | null;
@@ -90105,6 +92745,69 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
90105
92745
  };
90106
92746
  Relationships: [];
90107
92747
  };
92748
+ logistics_slip_shipping_note: {
92749
+ Row: {
92750
+ attempts: number;
92751
+ batch_key: string | null;
92752
+ cart_id: string | null;
92753
+ created_at: string;
92754
+ error: string | null;
92755
+ error_code: string | null;
92756
+ fulfillment_order_id: string | null;
92757
+ id: string;
92758
+ locked_until: string | null;
92759
+ next_attempt_at: string | null;
92760
+ order_id: string | null;
92761
+ order_number: string | null;
92762
+ print_job_id: string | null;
92763
+ printer_id: string | null;
92764
+ retry_class: string | null;
92765
+ slip_job_id: string;
92766
+ status: string;
92767
+ updated_at: string;
92768
+ };
92769
+ Insert: {
92770
+ attempts?: number;
92771
+ batch_key?: string | null;
92772
+ cart_id?: string | null;
92773
+ created_at?: string;
92774
+ error?: string | null;
92775
+ error_code?: string | null;
92776
+ fulfillment_order_id?: string | null;
92777
+ id?: string;
92778
+ locked_until?: string | null;
92779
+ next_attempt_at?: string | null;
92780
+ order_id?: string | null;
92781
+ order_number?: string | null;
92782
+ print_job_id?: string | null;
92783
+ printer_id?: string | null;
92784
+ retry_class?: string | null;
92785
+ slip_job_id: string;
92786
+ status?: string;
92787
+ updated_at?: string;
92788
+ };
92789
+ Update: {
92790
+ attempts?: number;
92791
+ batch_key?: string | null;
92792
+ cart_id?: string | null;
92793
+ created_at?: string;
92794
+ error?: string | null;
92795
+ error_code?: string | null;
92796
+ fulfillment_order_id?: string | null;
92797
+ id?: string;
92798
+ locked_until?: string | null;
92799
+ next_attempt_at?: string | null;
92800
+ order_id?: string | null;
92801
+ order_number?: string | null;
92802
+ print_job_id?: string | null;
92803
+ printer_id?: string | null;
92804
+ retry_class?: string | null;
92805
+ slip_job_id?: string;
92806
+ status?: string;
92807
+ updated_at?: string;
92808
+ };
92809
+ Relationships: [];
92810
+ };
90108
92811
  logistics_staff_planning: {
90109
92812
  Row: {
90110
92813
  created_at: string;
@@ -90456,6 +93159,111 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
90456
93159
  };
90457
93160
  Relationships: [];
90458
93161
  };
93162
+ logistics_trace_events: {
93163
+ Row: {
93164
+ actor: string | null;
93165
+ attempts: number;
93166
+ cart_ref: string | null;
93167
+ created_at: string;
93168
+ db_action: string | null;
93169
+ db_new: import("../integrations/supabase/types").Json | null;
93170
+ db_old: import("../integrations/supabase/types").Json | null;
93171
+ db_record: string | null;
93172
+ db_table: string | null;
93173
+ decision: string | null;
93174
+ duration_ms: number | null;
93175
+ error: string | null;
93176
+ external_action: string | null;
93177
+ external_ref: string | null;
93178
+ external_response: import("../integrations/supabase/types").Json | null;
93179
+ external_status: string | null;
93180
+ external_system: string | null;
93181
+ id: string;
93182
+ input: import("../integrations/supabase/types").Json | null;
93183
+ next_attempt_at: string | null;
93184
+ order_ref: string | null;
93185
+ order_source: string | null;
93186
+ output: import("../integrations/supabase/types").Json | null;
93187
+ phase: string;
93188
+ reads: import("../integrations/supabase/types").Json | null;
93189
+ reason: string | null;
93190
+ rule: string | null;
93191
+ slip_ref: string | null;
93192
+ status: string;
93193
+ step: string;
93194
+ trace_id: string;
93195
+ values_used: import("../integrations/supabase/types").Json | null;
93196
+ };
93197
+ Insert: {
93198
+ actor?: string | null;
93199
+ attempts?: number;
93200
+ cart_ref?: string | null;
93201
+ created_at?: string;
93202
+ db_action?: string | null;
93203
+ db_new?: import("../integrations/supabase/types").Json | null;
93204
+ db_old?: import("../integrations/supabase/types").Json | null;
93205
+ db_record?: string | null;
93206
+ db_table?: string | null;
93207
+ decision?: string | null;
93208
+ duration_ms?: number | null;
93209
+ error?: string | null;
93210
+ external_action?: string | null;
93211
+ external_ref?: string | null;
93212
+ external_response?: import("../integrations/supabase/types").Json | null;
93213
+ external_status?: string | null;
93214
+ external_system?: string | null;
93215
+ id?: string;
93216
+ input?: import("../integrations/supabase/types").Json | null;
93217
+ next_attempt_at?: string | null;
93218
+ order_ref?: string | null;
93219
+ order_source?: string | null;
93220
+ output?: import("../integrations/supabase/types").Json | null;
93221
+ phase: string;
93222
+ reads?: import("../integrations/supabase/types").Json | null;
93223
+ reason?: string | null;
93224
+ rule?: string | null;
93225
+ slip_ref?: string | null;
93226
+ status: string;
93227
+ step: string;
93228
+ trace_id?: string;
93229
+ values_used?: import("../integrations/supabase/types").Json | null;
93230
+ };
93231
+ Update: {
93232
+ actor?: string | null;
93233
+ attempts?: number;
93234
+ cart_ref?: string | null;
93235
+ created_at?: string;
93236
+ db_action?: string | null;
93237
+ db_new?: import("../integrations/supabase/types").Json | null;
93238
+ db_old?: import("../integrations/supabase/types").Json | null;
93239
+ db_record?: string | null;
93240
+ db_table?: string | null;
93241
+ decision?: string | null;
93242
+ duration_ms?: number | null;
93243
+ error?: string | null;
93244
+ external_action?: string | null;
93245
+ external_ref?: string | null;
93246
+ external_response?: import("../integrations/supabase/types").Json | null;
93247
+ external_status?: string | null;
93248
+ external_system?: string | null;
93249
+ id?: string;
93250
+ input?: import("../integrations/supabase/types").Json | null;
93251
+ next_attempt_at?: string | null;
93252
+ order_ref?: string | null;
93253
+ order_source?: string | null;
93254
+ output?: import("../integrations/supabase/types").Json | null;
93255
+ phase?: string;
93256
+ reads?: import("../integrations/supabase/types").Json | null;
93257
+ reason?: string | null;
93258
+ rule?: string | null;
93259
+ slip_ref?: string | null;
93260
+ status?: string;
93261
+ step?: string;
93262
+ trace_id?: string;
93263
+ values_used?: import("../integrations/supabase/types").Json | null;
93264
+ };
93265
+ Relationships: [];
93266
+ };
90459
93267
  logistics_variables: {
90460
93268
  Row: {
90461
93269
  created_at: string;
@@ -101028,6 +103836,15 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
101028
103836
  Args: never;
101029
103837
  Returns: boolean;
101030
103838
  };
103839
+ cancel_open_print_jobs: {
103840
+ Args: {
103841
+ _cutoff: string;
103842
+ };
103843
+ Returns: {
103844
+ extern_job_id: string;
103845
+ id: string;
103846
+ }[];
103847
+ };
101031
103848
  check_offer_product_available_stock: {
101032
103849
  Args: {
101033
103850
  p_campaign_product_id: string;
@@ -102566,6 +105383,12 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
102566
105383
  };
102567
105384
  Returns: string;
102568
105385
  };
105386
+ logistics_cart_checkin_at: {
105387
+ Args: {
105388
+ p_cart_id: string;
105389
+ };
105390
+ Returns: string;
105391
+ };
102569
105392
  logistics_cart_handled: {
102570
105393
  Args: {
102571
105394
  p_cart_index: number;
@@ -102599,10 +105422,22 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
102599
105422
  task_status: string;
102600
105423
  }[];
102601
105424
  };
105425
+ logistics_cart_is_full: {
105426
+ Args: {
105427
+ p_cart_id: string;
105428
+ };
105429
+ Returns: boolean;
105430
+ };
102602
105431
  logistics_cart_layout_method: {
102603
105432
  Args: never;
102604
105433
  Returns: import("../integrations/supabase/types").Json;
102605
105434
  };
105435
+ logistics_cart_order_refs: {
105436
+ Args: {
105437
+ p_cart_id: string;
105438
+ };
105439
+ Returns: string[];
105440
+ };
102606
105441
  logistics_cart_plan_overview: {
102607
105442
  Args: {
102608
105443
  p_days?: number;
@@ -102622,6 +105457,24 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
102622
105457
  };
102623
105458
  Returns: import("../integrations/supabase/types").Json;
102624
105459
  };
105460
+ logistics_cart_plan_status_core: {
105461
+ Args: {
105462
+ p_ref: string;
105463
+ };
105464
+ Returns: import("../integrations/supabase/types").Json;
105465
+ };
105466
+ logistics_cart_release_reason: {
105467
+ Args: {
105468
+ p_cart_id: string;
105469
+ };
105470
+ Returns: string;
105471
+ };
105472
+ logistics_cart_released: {
105473
+ Args: {
105474
+ p_cart_id: string;
105475
+ };
105476
+ Returns: boolean;
105477
+ };
102625
105478
  logistics_cart_seq: {
102626
105479
  Args: {
102627
105480
  p_order_uuid?: string;
@@ -102672,6 +105525,10 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
102672
105525
  unit_ref: string;
102673
105526
  }[];
102674
105527
  };
105528
+ logistics_carts_per_print: {
105529
+ Args: never;
105530
+ Returns: number;
105531
+ };
102675
105532
  logistics_check_order_allowed: {
102676
105533
  Args: {
102677
105534
  p_lines: import("../integrations/supabase/types").Json;
@@ -102775,6 +105632,10 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
102775
105632
  isSetofReturn: false;
102776
105633
  };
102777
105634
  };
105635
+ logistics_cleanup_orphan_print_jobs: {
105636
+ Args: never;
105637
+ Returns: import("../integrations/supabase/types").Json;
105638
+ };
102778
105639
  logistics_complete_task: {
102779
105640
  Args: {
102780
105641
  p_result?: import("../integrations/supabase/types").Json;
@@ -103026,6 +105887,20 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
103026
105887
  };
103027
105888
  Returns: string;
103028
105889
  };
105890
+ logistics_ensure_pick_data: {
105891
+ Args: {
105892
+ p_event_id?: string;
105893
+ p_missing?: import("../integrations/supabase/types").Json;
105894
+ p_ref: string;
105895
+ };
105896
+ Returns: import("../integrations/supabase/types").Json;
105897
+ };
105898
+ logistics_ensure_shipping_notes: {
105899
+ Args: {
105900
+ p_limit?: number;
105901
+ };
105902
+ Returns: import("../integrations/supabase/types").Json;
105903
+ };
103029
105904
  logistics_fail_task: {
103030
105905
  Args: {
103031
105906
  p_error: string;
@@ -103071,6 +105946,10 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
103071
105946
  isSetofReturn: false;
103072
105947
  };
103073
105948
  };
105949
+ logistics_fix_wrong_shipping_notes: {
105950
+ Args: never;
105951
+ Returns: import("../integrations/supabase/types").Json;
105952
+ };
103074
105953
  logistics_floriday_cart_plan: {
103075
105954
  Args: {
103076
105955
  p_order_id: string;
@@ -103098,6 +105977,10 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
103098
105977
  revision: number;
103099
105978
  }[];
103100
105979
  };
105980
+ logistics_floriday_delivery_note_create_enabled: {
105981
+ Args: never;
105982
+ Returns: boolean;
105983
+ };
103101
105984
  logistics_floriday_finish_push: {
103102
105985
  Args: {
103103
105986
  _error?: string;
@@ -103249,6 +106132,12 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
103249
106132
  };
103250
106133
  Returns: number;
103251
106134
  };
106135
+ logistics_merge_partial_carts: {
106136
+ Args: {
106137
+ p_limit?: number;
106138
+ };
106139
+ Returns: import("../integrations/supabase/types").Json;
106140
+ };
103252
106141
  logistics_next_workday_date: {
103253
106142
  Args: {
103254
106143
  p_date: string;
@@ -103335,6 +106224,12 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
103335
106224
  };
103336
106225
  Returns: string;
103337
106226
  };
106227
+ logistics_payload_is_floriday: {
106228
+ Args: {
106229
+ _payload: import("../integrations/supabase/types").Json;
106230
+ };
106231
+ Returns: boolean;
106232
+ };
103338
106233
  logistics_pick_agenda: {
103339
106234
  Args: {
103340
106235
  p_from?: string;
@@ -103363,6 +106258,10 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
103363
106258
  Args: never;
103364
106259
  Returns: import("../integrations/supabase/types").Json;
103365
106260
  };
106261
+ logistics_pick_partial_mode: {
106262
+ Args: never;
106263
+ Returns: string;
106264
+ };
103366
106265
  logistics_pick_start_estimate: {
103367
106266
  Args: {
103368
106267
  p_order: import("../integrations/supabase/types").Json;
@@ -103453,6 +106352,20 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
103453
106352
  Args: never;
103454
106353
  Returns: undefined;
103455
106354
  };
106355
+ logistics_plan_progress: {
106356
+ Args: {
106357
+ p_refs: string[];
106358
+ };
106359
+ Returns: {
106360
+ cart_plan_ready: boolean;
106361
+ cart_plan_reason: string;
106362
+ cart_plan_released: boolean;
106363
+ plan_progress: number;
106364
+ plan_state: string;
106365
+ plan_state_since: string;
106366
+ unit_ref: string;
106367
+ }[];
106368
+ };
103456
106369
  logistics_plan_prune: {
103457
106370
  Args: never;
103458
106371
  Returns: number;
@@ -103474,6 +106387,18 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
103474
106387
  };
103475
106388
  Returns: number;
103476
106389
  };
106390
+ logistics_plan_state_for: {
106391
+ Args: {
106392
+ p_ref: string;
106393
+ };
106394
+ Returns: import("../integrations/supabase/types").Json;
106395
+ };
106396
+ logistics_prepare_pick_documents: {
106397
+ Args: {
106398
+ p_limit?: number;
106399
+ };
106400
+ Returns: import("../integrations/supabase/types").Json;
106401
+ };
103477
106402
  logistics_prune_buffer_member_queue: {
103478
106403
  Args: never;
103479
106404
  Returns: number;
@@ -103514,18 +106439,36 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
103514
106439
  Args: never;
103515
106440
  Returns: import("../integrations/supabase/types").Json;
103516
106441
  };
106442
+ logistics_refresh_pick_queue_status: {
106443
+ Args: {
106444
+ p_ref: string;
106445
+ };
106446
+ Returns: number;
106447
+ };
103517
106448
  logistics_refresh_pickup_moments: {
103518
106449
  Args: {
103519
106450
  p_weeks?: number;
103520
106451
  };
103521
106452
  Returns: import("../integrations/supabase/types").Json;
103522
106453
  };
106454
+ logistics_refresh_plan_state: {
106455
+ Args: {
106456
+ p_limit?: number;
106457
+ };
106458
+ Returns: import("../integrations/supabase/types").Json;
106459
+ };
103523
106460
  logistics_replan_all: {
103524
106461
  Args: {
103525
106462
  p_reason?: string;
103526
106463
  };
103527
106464
  Returns: import("../integrations/supabase/types").Json;
103528
106465
  };
106466
+ logistics_replan_all_force: {
106467
+ Args: {
106468
+ p_reason?: string;
106469
+ };
106470
+ Returns: import("../integrations/supabase/types").Json;
106471
+ };
103529
106472
  logistics_report_delay: {
103530
106473
  Args: {
103531
106474
  p_expected_date?: string;
@@ -103682,6 +106625,74 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
103682
106625
  };
103683
106626
  Returns: import("../integrations/supabase/types").Json;
103684
106627
  };
106628
+ logistics_shipping_note_job_for_slip: {
106629
+ Args: {
106630
+ _slip_job_id: string;
106631
+ };
106632
+ Returns: string;
106633
+ };
106634
+ logistics_shipping_notes_wake_all: {
106635
+ Args: never;
106636
+ Returns: import("../integrations/supabase/types").Json;
106637
+ };
106638
+ logistics_slip_is_floriday: {
106639
+ Args: {
106640
+ _slip_job_id: string;
106641
+ };
106642
+ Returns: boolean;
106643
+ };
106644
+ logistics_slip_note_claim: {
106645
+ Args: {
106646
+ _lease_seconds?: number;
106647
+ _limit?: number;
106648
+ };
106649
+ Returns: {
106650
+ attempts: number;
106651
+ batch_key: string | null;
106652
+ cart_id: string | null;
106653
+ created_at: string;
106654
+ error: string | null;
106655
+ error_code: string | null;
106656
+ fulfillment_order_id: string | null;
106657
+ id: string;
106658
+ locked_until: string | null;
106659
+ next_attempt_at: string | null;
106660
+ order_id: string | null;
106661
+ order_number: string | null;
106662
+ print_job_id: string | null;
106663
+ printer_id: string | null;
106664
+ retry_class: string | null;
106665
+ slip_job_id: string;
106666
+ status: string;
106667
+ updated_at: string;
106668
+ }[];
106669
+ SetofOptions: {
106670
+ from: "*";
106671
+ to: "logistics_slip_shipping_note";
106672
+ isOneToOne: false;
106673
+ isSetofReturn: true;
106674
+ };
106675
+ };
106676
+ logistics_slip_note_finish: {
106677
+ Args: {
106678
+ _error?: string;
106679
+ _error_code?: string;
106680
+ _fulfillment_order_id?: string;
106681
+ _id: string;
106682
+ _ok: boolean;
106683
+ _print_job_id?: string;
106684
+ _status?: string;
106685
+ };
106686
+ Returns: undefined;
106687
+ };
106688
+ logistics_slip_note_keep_waiting: {
106689
+ Args: {
106690
+ _class?: string;
106691
+ _id: string;
106692
+ _reason: string;
106693
+ };
106694
+ Returns: undefined;
106695
+ };
103685
106696
  logistics_sticker_follows_slip: {
103686
106697
  Args: never;
103687
106698
  Returns: boolean;
@@ -103736,6 +106747,40 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
103736
106747
  name: string;
103737
106748
  }[];
103738
106749
  };
106750
+ logistics_trace: {
106751
+ Args: {
106752
+ p: import("../integrations/supabase/types").Json;
106753
+ };
106754
+ Returns: string;
106755
+ };
106756
+ logistics_trace_batch: {
106757
+ Args: {
106758
+ p: import("../integrations/supabase/types").Json;
106759
+ };
106760
+ Returns: number;
106761
+ };
106762
+ logistics_trace_orders: {
106763
+ Args: {
106764
+ p_limit?: number;
106765
+ p_search?: string;
106766
+ p_since?: string;
106767
+ p_status?: string;
106768
+ };
106769
+ Returns: import("../integrations/supabase/types").Json;
106770
+ };
106771
+ logistics_trace_redact: {
106772
+ Args: {
106773
+ p: import("../integrations/supabase/types").Json;
106774
+ };
106775
+ Returns: import("../integrations/supabase/types").Json;
106776
+ };
106777
+ logistics_trace_timeline: {
106778
+ Args: {
106779
+ p_limit?: number;
106780
+ p_order_ref: string;
106781
+ };
106782
+ Returns: import("../integrations/supabase/types").Json;
106783
+ };
103739
106784
  logistics_upsert_task: {
103740
106785
  Args: {
103741
106786
  p_buffer_ref: string;
@@ -104777,6 +107822,10 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
104777
107822
  };
104778
107823
  Returns: undefined;
104779
107824
  };
107825
+ prune_floriday_api_log: {
107826
+ Args: never;
107827
+ Returns: number;
107828
+ };
104780
107829
  quote_create_from_source: {
104781
107830
  Args: {
104782
107831
  _payload?: import("../integrations/supabase/types").Json;
@@ -105210,6 +108259,13 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
105210
108259
  };
105211
108260
  Returns: number;
105212
108261
  };
108262
+ schedule_floriday_catalog_prices_sync: {
108263
+ Args: {
108264
+ p_apikey: string;
108265
+ p_url: string;
108266
+ };
108267
+ Returns: number;
108268
+ };
105213
108269
  schedule_floriday_clock_presales_sync: {
105214
108270
  Args: {
105215
108271
  p_apikey: string;
@@ -105510,6 +108566,10 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
105510
108566
  };
105511
108567
  Returns: undefined;
105512
108568
  };
108569
+ sync_floriday_prices_into_price_groups: {
108570
+ Args: never;
108571
+ Returns: number;
108572
+ };
105513
108573
  sync_layer_stock: {
105514
108574
  Args: {
105515
108575
  p_product_id: string;
@@ -105642,6 +108702,10 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
105642
108702
  Args: never;
105643
108703
  Returns: string;
105644
108704
  };
108705
+ voorraad_cleanup_old_rows: {
108706
+ Args: never;
108707
+ Returns: import("../integrations/supabase/types").Json;
108708
+ };
105645
108709
  wake_print_queue: {
105646
108710
  Args: {
105647
108711
  _min_interval_ms?: number;