@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
@@ -2228,6 +2228,45 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
2228
2228
  };
2229
2229
  Relationships: [];
2230
2230
  };
2231
+ customer_product_stickers: {
2232
+ Row: {
2233
+ created_at: string;
2234
+ customer_key: string;
2235
+ file_name: string;
2236
+ file_path: string;
2237
+ file_size: number | null;
2238
+ id: string;
2239
+ mime_type: string | null;
2240
+ trade_item_key: string;
2241
+ updated_at: string;
2242
+ uploaded_by: string | null;
2243
+ };
2244
+ Insert: {
2245
+ created_at?: string;
2246
+ customer_key: string;
2247
+ file_name: string;
2248
+ file_path: string;
2249
+ file_size?: number | null;
2250
+ id?: string;
2251
+ mime_type?: string | null;
2252
+ trade_item_key: string;
2253
+ updated_at?: string;
2254
+ uploaded_by?: string | null;
2255
+ };
2256
+ Update: {
2257
+ created_at?: string;
2258
+ customer_key?: string;
2259
+ file_name?: string;
2260
+ file_path?: string;
2261
+ file_size?: number | null;
2262
+ id?: string;
2263
+ mime_type?: string | null;
2264
+ trade_item_key?: string;
2265
+ updated_at?: string;
2266
+ uploaded_by?: string | null;
2267
+ };
2268
+ Relationships: [];
2269
+ };
2231
2270
  customer_selected_assortment: {
2232
2271
  Row: {
2233
2272
  article_number: string | null;
@@ -2276,6 +2315,30 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
2276
2315
  referencedColumns: ["id"];
2277
2316
  }];
2278
2317
  };
2318
+ customer_sticker_settings: {
2319
+ Row: {
2320
+ created_at: string;
2321
+ customer_key: string;
2322
+ height_mm: number;
2323
+ updated_at: string;
2324
+ width_mm: number;
2325
+ };
2326
+ Insert: {
2327
+ created_at?: string;
2328
+ customer_key: string;
2329
+ height_mm?: number;
2330
+ updated_at?: string;
2331
+ width_mm?: number;
2332
+ };
2333
+ Update: {
2334
+ created_at?: string;
2335
+ customer_key?: string;
2336
+ height_mm?: number;
2337
+ updated_at?: string;
2338
+ width_mm?: number;
2339
+ };
2340
+ Relationships: [];
2341
+ };
2279
2342
  customer_trade_settings: {
2280
2343
  Row: {
2281
2344
  category: string;
@@ -5606,6 +5669,102 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
5606
5669
  referencedColumns: ["id"];
5607
5670
  }];
5608
5671
  };
5672
+ floriday_api_log: {
5673
+ Row: {
5674
+ action: string | null;
5675
+ caller: string | null;
5676
+ connection_id: string | null;
5677
+ created_at: string;
5678
+ cursor_from: number | null;
5679
+ direction: string;
5680
+ duration_ms: number | null;
5681
+ environment: string | null;
5682
+ error: string | null;
5683
+ floriday_id: string | null;
5684
+ floriday_reference: string | null;
5685
+ http_status: number;
5686
+ id: string;
5687
+ item_count: number | null;
5688
+ kind: string | null;
5689
+ local_id: string | null;
5690
+ local_reference: string | null;
5691
+ method: string;
5692
+ module: string | null;
5693
+ ok: boolean;
5694
+ path: string;
5695
+ request: import("../integrations/supabase/types").Json | null;
5696
+ resource_type: string | null;
5697
+ response: import("../integrations/supabase/types").Json | null;
5698
+ write_log_id: string | null;
5699
+ };
5700
+ Insert: {
5701
+ action?: string | null;
5702
+ caller?: string | null;
5703
+ connection_id?: string | null;
5704
+ created_at?: string;
5705
+ cursor_from?: number | null;
5706
+ direction: string;
5707
+ duration_ms?: number | null;
5708
+ environment?: string | null;
5709
+ error?: string | null;
5710
+ floriday_id?: string | null;
5711
+ floriday_reference?: string | null;
5712
+ http_status?: number;
5713
+ id?: string;
5714
+ item_count?: number | null;
5715
+ kind?: string | null;
5716
+ local_id?: string | null;
5717
+ local_reference?: string | null;
5718
+ method: string;
5719
+ module?: string | null;
5720
+ ok?: boolean;
5721
+ path: string;
5722
+ request?: import("../integrations/supabase/types").Json | null;
5723
+ resource_type?: string | null;
5724
+ response?: import("../integrations/supabase/types").Json | null;
5725
+ write_log_id?: string | null;
5726
+ };
5727
+ Update: {
5728
+ action?: string | null;
5729
+ caller?: string | null;
5730
+ connection_id?: string | null;
5731
+ created_at?: string;
5732
+ cursor_from?: number | null;
5733
+ direction?: string;
5734
+ duration_ms?: number | null;
5735
+ environment?: string | null;
5736
+ error?: string | null;
5737
+ floriday_id?: string | null;
5738
+ floriday_reference?: string | null;
5739
+ http_status?: number;
5740
+ id?: string;
5741
+ item_count?: number | null;
5742
+ kind?: string | null;
5743
+ local_id?: string | null;
5744
+ local_reference?: string | null;
5745
+ method?: string;
5746
+ module?: string | null;
5747
+ ok?: boolean;
5748
+ path?: string;
5749
+ request?: import("../integrations/supabase/types").Json | null;
5750
+ resource_type?: string | null;
5751
+ response?: import("../integrations/supabase/types").Json | null;
5752
+ write_log_id?: string | null;
5753
+ };
5754
+ Relationships: [{
5755
+ foreignKeyName: "floriday_api_log_connection_id_fkey";
5756
+ columns: ["connection_id"];
5757
+ isOneToOne: false;
5758
+ referencedRelation: "floriday_connections";
5759
+ referencedColumns: ["id"];
5760
+ }, {
5761
+ foreignKeyName: "floriday_api_log_write_log_id_fkey";
5762
+ columns: ["write_log_id"];
5763
+ isOneToOne: false;
5764
+ referencedRelation: "floriday_write_log";
5765
+ referencedColumns: ["id"];
5766
+ }];
5767
+ };
5609
5768
  floriday_auction_letters_cache: {
5610
5769
  Row: {
5611
5770
  auction_letter_code: string;
@@ -5813,6 +5972,84 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
5813
5972
  referencedColumns: ["id"];
5814
5973
  }];
5815
5974
  };
5975
+ floriday_catalog_prices_cache: {
5976
+ Row: {
5977
+ connection_id: string;
5978
+ created_at: string;
5979
+ currency: string;
5980
+ id: string;
5981
+ is_deleted: boolean;
5982
+ price: number | null;
5983
+ price_group_id: string | null;
5984
+ price_group_name: string | null;
5985
+ price_type: string;
5986
+ raw: import("../integrations/supabase/types").Json | null;
5987
+ sales_unit: string | null;
5988
+ sequence_number: number;
5989
+ supplier_article_code: string | null;
5990
+ supply_line_id: string;
5991
+ synced_at: string;
5992
+ trade_item_id: string | null;
5993
+ updated_at: string;
5994
+ valid_from: string | null;
5995
+ valid_to: string | null;
5996
+ week: number | null;
5997
+ year: number | null;
5998
+ };
5999
+ Insert: {
6000
+ connection_id: string;
6001
+ created_at?: string;
6002
+ currency?: string;
6003
+ id?: string;
6004
+ is_deleted?: boolean;
6005
+ price?: number | null;
6006
+ price_group_id?: string | null;
6007
+ price_group_name?: string | null;
6008
+ price_type?: string;
6009
+ raw?: import("../integrations/supabase/types").Json | null;
6010
+ sales_unit?: string | null;
6011
+ sequence_number?: number;
6012
+ supplier_article_code?: string | null;
6013
+ supply_line_id: string;
6014
+ synced_at?: string;
6015
+ trade_item_id?: string | null;
6016
+ updated_at?: string;
6017
+ valid_from?: string | null;
6018
+ valid_to?: string | null;
6019
+ week?: number | null;
6020
+ year?: number | null;
6021
+ };
6022
+ Update: {
6023
+ connection_id?: string;
6024
+ created_at?: string;
6025
+ currency?: string;
6026
+ id?: string;
6027
+ is_deleted?: boolean;
6028
+ price?: number | null;
6029
+ price_group_id?: string | null;
6030
+ price_group_name?: string | null;
6031
+ price_type?: string;
6032
+ raw?: import("../integrations/supabase/types").Json | null;
6033
+ sales_unit?: string | null;
6034
+ sequence_number?: number;
6035
+ supplier_article_code?: string | null;
6036
+ supply_line_id?: string;
6037
+ synced_at?: string;
6038
+ trade_item_id?: string | null;
6039
+ updated_at?: string;
6040
+ valid_from?: string | null;
6041
+ valid_to?: string | null;
6042
+ week?: number | null;
6043
+ year?: number | null;
6044
+ };
6045
+ Relationships: [{
6046
+ foreignKeyName: "floriday_catalog_prices_cache_connection_id_fkey";
6047
+ columns: ["connection_id"];
6048
+ isOneToOne: false;
6049
+ referencedRelation: "floriday_connections";
6050
+ referencedColumns: ["id"];
6051
+ }];
6052
+ };
5816
6053
  floriday_clock_presales_cache: {
5817
6054
  Row: {
5818
6055
  buyer_organization_id: string | null;
@@ -6728,6 +6965,69 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
6728
6965
  referencedColumns: ["id"];
6729
6966
  }];
6730
6967
  };
6968
+ floriday_link_templates: {
6969
+ Row: {
6970
+ created_at: string;
6971
+ floriday_url_template: string | null;
6972
+ is_active: boolean;
6973
+ label: string;
6974
+ local_url_template: string | null;
6975
+ resource_type: string;
6976
+ updated_at: string;
6977
+ };
6978
+ Insert: {
6979
+ created_at?: string;
6980
+ floriday_url_template?: string | null;
6981
+ is_active?: boolean;
6982
+ label: string;
6983
+ local_url_template?: string | null;
6984
+ resource_type: string;
6985
+ updated_at?: string;
6986
+ };
6987
+ Update: {
6988
+ created_at?: string;
6989
+ floriday_url_template?: string | null;
6990
+ is_active?: boolean;
6991
+ label?: string;
6992
+ local_url_template?: string | null;
6993
+ resource_type?: string;
6994
+ updated_at?: string;
6995
+ };
6996
+ Relationships: [];
6997
+ };
6998
+ floriday_log_retention: {
6999
+ Row: {
7000
+ created_at: string;
7001
+ direction: string | null;
7002
+ id: string;
7003
+ keep_failed_days: number | null;
7004
+ keep_ok_days: number | null;
7005
+ note: string | null;
7006
+ resource_type: string | null;
7007
+ updated_at: string;
7008
+ };
7009
+ Insert: {
7010
+ created_at?: string;
7011
+ direction?: string | null;
7012
+ id?: string;
7013
+ keep_failed_days?: number | null;
7014
+ keep_ok_days?: number | null;
7015
+ note?: string | null;
7016
+ resource_type?: string | null;
7017
+ updated_at?: string;
7018
+ };
7019
+ Update: {
7020
+ created_at?: string;
7021
+ direction?: string | null;
7022
+ id?: string;
7023
+ keep_failed_days?: number | null;
7024
+ keep_ok_days?: number | null;
7025
+ note?: string | null;
7026
+ resource_type?: string | null;
7027
+ updated_at?: string;
7028
+ };
7029
+ Relationships: [];
7030
+ };
6731
7031
  floriday_logistic_labels_cache: {
6732
7032
  Row: {
6733
7033
  byte_size: number | null;
@@ -10352,6 +10652,48 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
10352
10652
  };
10353
10653
  Relationships: [];
10354
10654
  };
10655
+ logistics_pick_data_requests: {
10656
+ Row: {
10657
+ actions: import("../integrations/supabase/types").Json;
10658
+ created_at: string;
10659
+ event_id: string | null;
10660
+ finished_at: string | null;
10661
+ id: string;
10662
+ missing: import("../integrations/supabase/types").Json;
10663
+ order_ref: string;
10664
+ reason: string | null;
10665
+ result: import("../integrations/supabase/types").Json | null;
10666
+ status: string;
10667
+ unit_ref: string | null;
10668
+ };
10669
+ Insert: {
10670
+ actions?: import("../integrations/supabase/types").Json;
10671
+ created_at?: string;
10672
+ event_id?: string | null;
10673
+ finished_at?: string | null;
10674
+ id?: string;
10675
+ missing?: import("../integrations/supabase/types").Json;
10676
+ order_ref: string;
10677
+ reason?: string | null;
10678
+ result?: import("../integrations/supabase/types").Json | null;
10679
+ status?: string;
10680
+ unit_ref?: string | null;
10681
+ };
10682
+ Update: {
10683
+ actions?: import("../integrations/supabase/types").Json;
10684
+ created_at?: string;
10685
+ event_id?: string | null;
10686
+ finished_at?: string | null;
10687
+ id?: string;
10688
+ missing?: import("../integrations/supabase/types").Json;
10689
+ order_ref?: string;
10690
+ reason?: string | null;
10691
+ result?: import("../integrations/supabase/types").Json | null;
10692
+ status?: string;
10693
+ unit_ref?: string | null;
10694
+ };
10695
+ Relationships: [];
10696
+ };
10355
10697
  logistics_pickup_moments: {
10356
10698
  Row: {
10357
10699
  carrier_ref: string | null;
@@ -10811,6 +11153,69 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
10811
11153
  };
10812
11154
  Relationships: [];
10813
11155
  };
11156
+ logistics_slip_shipping_note: {
11157
+ Row: {
11158
+ attempts: number;
11159
+ batch_key: string | null;
11160
+ cart_id: string | null;
11161
+ created_at: string;
11162
+ error: string | null;
11163
+ error_code: string | null;
11164
+ fulfillment_order_id: string | null;
11165
+ id: string;
11166
+ locked_until: string | null;
11167
+ next_attempt_at: string | null;
11168
+ order_id: string | null;
11169
+ order_number: string | null;
11170
+ print_job_id: string | null;
11171
+ printer_id: string | null;
11172
+ retry_class: string | null;
11173
+ slip_job_id: string;
11174
+ status: string;
11175
+ updated_at: string;
11176
+ };
11177
+ Insert: {
11178
+ attempts?: number;
11179
+ batch_key?: string | null;
11180
+ cart_id?: string | null;
11181
+ created_at?: string;
11182
+ error?: string | null;
11183
+ error_code?: string | null;
11184
+ fulfillment_order_id?: string | null;
11185
+ id?: string;
11186
+ locked_until?: string | null;
11187
+ next_attempt_at?: string | null;
11188
+ order_id?: string | null;
11189
+ order_number?: string | null;
11190
+ print_job_id?: string | null;
11191
+ printer_id?: string | null;
11192
+ retry_class?: string | null;
11193
+ slip_job_id: string;
11194
+ status?: string;
11195
+ updated_at?: string;
11196
+ };
11197
+ Update: {
11198
+ attempts?: number;
11199
+ batch_key?: string | null;
11200
+ cart_id?: string | null;
11201
+ created_at?: string;
11202
+ error?: string | null;
11203
+ error_code?: string | null;
11204
+ fulfillment_order_id?: string | null;
11205
+ id?: string;
11206
+ locked_until?: string | null;
11207
+ next_attempt_at?: string | null;
11208
+ order_id?: string | null;
11209
+ order_number?: string | null;
11210
+ print_job_id?: string | null;
11211
+ printer_id?: string | null;
11212
+ retry_class?: string | null;
11213
+ slip_job_id?: string;
11214
+ status?: string;
11215
+ updated_at?: string;
11216
+ };
11217
+ Relationships: [];
11218
+ };
10814
11219
  logistics_staff_planning: {
10815
11220
  Row: {
10816
11221
  created_at: string;
@@ -11162,6 +11567,111 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
11162
11567
  };
11163
11568
  Relationships: [];
11164
11569
  };
11570
+ logistics_trace_events: {
11571
+ Row: {
11572
+ actor: string | null;
11573
+ attempts: number;
11574
+ cart_ref: string | null;
11575
+ created_at: string;
11576
+ db_action: string | null;
11577
+ db_new: import("../integrations/supabase/types").Json | null;
11578
+ db_old: import("../integrations/supabase/types").Json | null;
11579
+ db_record: string | null;
11580
+ db_table: string | null;
11581
+ decision: string | null;
11582
+ duration_ms: number | null;
11583
+ error: string | null;
11584
+ external_action: string | null;
11585
+ external_ref: string | null;
11586
+ external_response: import("../integrations/supabase/types").Json | null;
11587
+ external_status: string | null;
11588
+ external_system: string | null;
11589
+ id: string;
11590
+ input: import("../integrations/supabase/types").Json | null;
11591
+ next_attempt_at: string | null;
11592
+ order_ref: string | null;
11593
+ order_source: string | null;
11594
+ output: import("../integrations/supabase/types").Json | null;
11595
+ phase: string;
11596
+ reads: import("../integrations/supabase/types").Json | null;
11597
+ reason: string | null;
11598
+ rule: string | null;
11599
+ slip_ref: string | null;
11600
+ status: string;
11601
+ step: string;
11602
+ trace_id: string;
11603
+ values_used: import("../integrations/supabase/types").Json | null;
11604
+ };
11605
+ Insert: {
11606
+ actor?: string | null;
11607
+ attempts?: number;
11608
+ cart_ref?: string | null;
11609
+ created_at?: string;
11610
+ db_action?: string | null;
11611
+ db_new?: import("../integrations/supabase/types").Json | null;
11612
+ db_old?: import("../integrations/supabase/types").Json | null;
11613
+ db_record?: string | null;
11614
+ db_table?: string | null;
11615
+ decision?: string | null;
11616
+ duration_ms?: number | null;
11617
+ error?: string | null;
11618
+ external_action?: string | null;
11619
+ external_ref?: string | null;
11620
+ external_response?: import("../integrations/supabase/types").Json | null;
11621
+ external_status?: string | null;
11622
+ external_system?: string | null;
11623
+ id?: string;
11624
+ input?: import("../integrations/supabase/types").Json | null;
11625
+ next_attempt_at?: string | null;
11626
+ order_ref?: string | null;
11627
+ order_source?: string | null;
11628
+ output?: import("../integrations/supabase/types").Json | null;
11629
+ phase: string;
11630
+ reads?: import("../integrations/supabase/types").Json | null;
11631
+ reason?: string | null;
11632
+ rule?: string | null;
11633
+ slip_ref?: string | null;
11634
+ status: string;
11635
+ step: string;
11636
+ trace_id?: string;
11637
+ values_used?: import("../integrations/supabase/types").Json | null;
11638
+ };
11639
+ Update: {
11640
+ actor?: string | null;
11641
+ attempts?: number;
11642
+ cart_ref?: string | null;
11643
+ created_at?: string;
11644
+ db_action?: string | null;
11645
+ db_new?: import("../integrations/supabase/types").Json | null;
11646
+ db_old?: import("../integrations/supabase/types").Json | null;
11647
+ db_record?: string | null;
11648
+ db_table?: string | null;
11649
+ decision?: string | null;
11650
+ duration_ms?: number | null;
11651
+ error?: string | null;
11652
+ external_action?: string | null;
11653
+ external_ref?: string | null;
11654
+ external_response?: import("../integrations/supabase/types").Json | null;
11655
+ external_status?: string | null;
11656
+ external_system?: string | null;
11657
+ id?: string;
11658
+ input?: import("../integrations/supabase/types").Json | null;
11659
+ next_attempt_at?: string | null;
11660
+ order_ref?: string | null;
11661
+ order_source?: string | null;
11662
+ output?: import("../integrations/supabase/types").Json | null;
11663
+ phase?: string;
11664
+ reads?: import("../integrations/supabase/types").Json | null;
11665
+ reason?: string | null;
11666
+ rule?: string | null;
11667
+ slip_ref?: string | null;
11668
+ status?: string;
11669
+ step?: string;
11670
+ trace_id?: string;
11671
+ values_used?: import("../integrations/supabase/types").Json | null;
11672
+ };
11673
+ Relationships: [];
11674
+ };
11165
11675
  logistics_variables: {
11166
11676
  Row: {
11167
11677
  created_at: string;
@@ -21734,6 +22244,15 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
21734
22244
  Args: never;
21735
22245
  Returns: boolean;
21736
22246
  };
22247
+ cancel_open_print_jobs: {
22248
+ Args: {
22249
+ _cutoff: string;
22250
+ };
22251
+ Returns: {
22252
+ extern_job_id: string;
22253
+ id: string;
22254
+ }[];
22255
+ };
21737
22256
  check_offer_product_available_stock: {
21738
22257
  Args: {
21739
22258
  p_campaign_product_id: string;
@@ -23272,6 +23791,12 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
23272
23791
  };
23273
23792
  Returns: string;
23274
23793
  };
23794
+ logistics_cart_checkin_at: {
23795
+ Args: {
23796
+ p_cart_id: string;
23797
+ };
23798
+ Returns: string;
23799
+ };
23275
23800
  logistics_cart_handled: {
23276
23801
  Args: {
23277
23802
  p_cart_index: number;
@@ -23305,10 +23830,22 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
23305
23830
  task_status: string;
23306
23831
  }[];
23307
23832
  };
23833
+ logistics_cart_is_full: {
23834
+ Args: {
23835
+ p_cart_id: string;
23836
+ };
23837
+ Returns: boolean;
23838
+ };
23308
23839
  logistics_cart_layout_method: {
23309
23840
  Args: never;
23310
23841
  Returns: import("../integrations/supabase/types").Json;
23311
23842
  };
23843
+ logistics_cart_order_refs: {
23844
+ Args: {
23845
+ p_cart_id: string;
23846
+ };
23847
+ Returns: string[];
23848
+ };
23312
23849
  logistics_cart_plan_overview: {
23313
23850
  Args: {
23314
23851
  p_days?: number;
@@ -23328,6 +23865,24 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
23328
23865
  };
23329
23866
  Returns: import("../integrations/supabase/types").Json;
23330
23867
  };
23868
+ logistics_cart_plan_status_core: {
23869
+ Args: {
23870
+ p_ref: string;
23871
+ };
23872
+ Returns: import("../integrations/supabase/types").Json;
23873
+ };
23874
+ logistics_cart_release_reason: {
23875
+ Args: {
23876
+ p_cart_id: string;
23877
+ };
23878
+ Returns: string;
23879
+ };
23880
+ logistics_cart_released: {
23881
+ Args: {
23882
+ p_cart_id: string;
23883
+ };
23884
+ Returns: boolean;
23885
+ };
23331
23886
  logistics_cart_seq: {
23332
23887
  Args: {
23333
23888
  p_order_uuid?: string;
@@ -23378,6 +23933,10 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
23378
23933
  unit_ref: string;
23379
23934
  }[];
23380
23935
  };
23936
+ logistics_carts_per_print: {
23937
+ Args: never;
23938
+ Returns: number;
23939
+ };
23381
23940
  logistics_check_order_allowed: {
23382
23941
  Args: {
23383
23942
  p_lines: import("../integrations/supabase/types").Json;
@@ -23481,6 +24040,10 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
23481
24040
  isSetofReturn: false;
23482
24041
  };
23483
24042
  };
24043
+ logistics_cleanup_orphan_print_jobs: {
24044
+ Args: never;
24045
+ Returns: import("../integrations/supabase/types").Json;
24046
+ };
23484
24047
  logistics_complete_task: {
23485
24048
  Args: {
23486
24049
  p_result?: import("../integrations/supabase/types").Json;
@@ -23732,6 +24295,20 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
23732
24295
  };
23733
24296
  Returns: string;
23734
24297
  };
24298
+ logistics_ensure_pick_data: {
24299
+ Args: {
24300
+ p_event_id?: string;
24301
+ p_missing?: import("../integrations/supabase/types").Json;
24302
+ p_ref: string;
24303
+ };
24304
+ Returns: import("../integrations/supabase/types").Json;
24305
+ };
24306
+ logistics_ensure_shipping_notes: {
24307
+ Args: {
24308
+ p_limit?: number;
24309
+ };
24310
+ Returns: import("../integrations/supabase/types").Json;
24311
+ };
23735
24312
  logistics_fail_task: {
23736
24313
  Args: {
23737
24314
  p_error: string;
@@ -23777,6 +24354,10 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
23777
24354
  isSetofReturn: false;
23778
24355
  };
23779
24356
  };
24357
+ logistics_fix_wrong_shipping_notes: {
24358
+ Args: never;
24359
+ Returns: import("../integrations/supabase/types").Json;
24360
+ };
23780
24361
  logistics_floriday_cart_plan: {
23781
24362
  Args: {
23782
24363
  p_order_id: string;
@@ -23804,6 +24385,10 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
23804
24385
  revision: number;
23805
24386
  }[];
23806
24387
  };
24388
+ logistics_floriday_delivery_note_create_enabled: {
24389
+ Args: never;
24390
+ Returns: boolean;
24391
+ };
23807
24392
  logistics_floriday_finish_push: {
23808
24393
  Args: {
23809
24394
  _error?: string;
@@ -23955,6 +24540,12 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
23955
24540
  };
23956
24541
  Returns: number;
23957
24542
  };
24543
+ logistics_merge_partial_carts: {
24544
+ Args: {
24545
+ p_limit?: number;
24546
+ };
24547
+ Returns: import("../integrations/supabase/types").Json;
24548
+ };
23958
24549
  logistics_next_workday_date: {
23959
24550
  Args: {
23960
24551
  p_date: string;
@@ -24041,6 +24632,12 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
24041
24632
  };
24042
24633
  Returns: string;
24043
24634
  };
24635
+ logistics_payload_is_floriday: {
24636
+ Args: {
24637
+ _payload: import("../integrations/supabase/types").Json;
24638
+ };
24639
+ Returns: boolean;
24640
+ };
24044
24641
  logistics_pick_agenda: {
24045
24642
  Args: {
24046
24643
  p_from?: string;
@@ -24069,6 +24666,10 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
24069
24666
  Args: never;
24070
24667
  Returns: import("../integrations/supabase/types").Json;
24071
24668
  };
24669
+ logistics_pick_partial_mode: {
24670
+ Args: never;
24671
+ Returns: string;
24672
+ };
24072
24673
  logistics_pick_start_estimate: {
24073
24674
  Args: {
24074
24675
  p_order: import("../integrations/supabase/types").Json;
@@ -24159,6 +24760,20 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
24159
24760
  Args: never;
24160
24761
  Returns: undefined;
24161
24762
  };
24763
+ logistics_plan_progress: {
24764
+ Args: {
24765
+ p_refs: string[];
24766
+ };
24767
+ Returns: {
24768
+ cart_plan_ready: boolean;
24769
+ cart_plan_reason: string;
24770
+ cart_plan_released: boolean;
24771
+ plan_progress: number;
24772
+ plan_state: string;
24773
+ plan_state_since: string;
24774
+ unit_ref: string;
24775
+ }[];
24776
+ };
24162
24777
  logistics_plan_prune: {
24163
24778
  Args: never;
24164
24779
  Returns: number;
@@ -24180,6 +24795,18 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
24180
24795
  };
24181
24796
  Returns: number;
24182
24797
  };
24798
+ logistics_plan_state_for: {
24799
+ Args: {
24800
+ p_ref: string;
24801
+ };
24802
+ Returns: import("../integrations/supabase/types").Json;
24803
+ };
24804
+ logistics_prepare_pick_documents: {
24805
+ Args: {
24806
+ p_limit?: number;
24807
+ };
24808
+ Returns: import("../integrations/supabase/types").Json;
24809
+ };
24183
24810
  logistics_prune_buffer_member_queue: {
24184
24811
  Args: never;
24185
24812
  Returns: number;
@@ -24220,18 +24847,36 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
24220
24847
  Args: never;
24221
24848
  Returns: import("../integrations/supabase/types").Json;
24222
24849
  };
24850
+ logistics_refresh_pick_queue_status: {
24851
+ Args: {
24852
+ p_ref: string;
24853
+ };
24854
+ Returns: number;
24855
+ };
24223
24856
  logistics_refresh_pickup_moments: {
24224
24857
  Args: {
24225
24858
  p_weeks?: number;
24226
24859
  };
24227
24860
  Returns: import("../integrations/supabase/types").Json;
24228
24861
  };
24862
+ logistics_refresh_plan_state: {
24863
+ Args: {
24864
+ p_limit?: number;
24865
+ };
24866
+ Returns: import("../integrations/supabase/types").Json;
24867
+ };
24229
24868
  logistics_replan_all: {
24230
24869
  Args: {
24231
24870
  p_reason?: string;
24232
24871
  };
24233
24872
  Returns: import("../integrations/supabase/types").Json;
24234
24873
  };
24874
+ logistics_replan_all_force: {
24875
+ Args: {
24876
+ p_reason?: string;
24877
+ };
24878
+ Returns: import("../integrations/supabase/types").Json;
24879
+ };
24235
24880
  logistics_report_delay: {
24236
24881
  Args: {
24237
24882
  p_expected_date?: string;
@@ -24388,6 +25033,74 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
24388
25033
  };
24389
25034
  Returns: import("../integrations/supabase/types").Json;
24390
25035
  };
25036
+ logistics_shipping_note_job_for_slip: {
25037
+ Args: {
25038
+ _slip_job_id: string;
25039
+ };
25040
+ Returns: string;
25041
+ };
25042
+ logistics_shipping_notes_wake_all: {
25043
+ Args: never;
25044
+ Returns: import("../integrations/supabase/types").Json;
25045
+ };
25046
+ logistics_slip_is_floriday: {
25047
+ Args: {
25048
+ _slip_job_id: string;
25049
+ };
25050
+ Returns: boolean;
25051
+ };
25052
+ logistics_slip_note_claim: {
25053
+ Args: {
25054
+ _lease_seconds?: number;
25055
+ _limit?: number;
25056
+ };
25057
+ Returns: {
25058
+ attempts: number;
25059
+ batch_key: string | null;
25060
+ cart_id: string | null;
25061
+ created_at: string;
25062
+ error: string | null;
25063
+ error_code: string | null;
25064
+ fulfillment_order_id: string | null;
25065
+ id: string;
25066
+ locked_until: string | null;
25067
+ next_attempt_at: string | null;
25068
+ order_id: string | null;
25069
+ order_number: string | null;
25070
+ print_job_id: string | null;
25071
+ printer_id: string | null;
25072
+ retry_class: string | null;
25073
+ slip_job_id: string;
25074
+ status: string;
25075
+ updated_at: string;
25076
+ }[];
25077
+ SetofOptions: {
25078
+ from: "*";
25079
+ to: "logistics_slip_shipping_note";
25080
+ isOneToOne: false;
25081
+ isSetofReturn: true;
25082
+ };
25083
+ };
25084
+ logistics_slip_note_finish: {
25085
+ Args: {
25086
+ _error?: string;
25087
+ _error_code?: string;
25088
+ _fulfillment_order_id?: string;
25089
+ _id: string;
25090
+ _ok: boolean;
25091
+ _print_job_id?: string;
25092
+ _status?: string;
25093
+ };
25094
+ Returns: undefined;
25095
+ };
25096
+ logistics_slip_note_keep_waiting: {
25097
+ Args: {
25098
+ _class?: string;
25099
+ _id: string;
25100
+ _reason: string;
25101
+ };
25102
+ Returns: undefined;
25103
+ };
24391
25104
  logistics_sticker_follows_slip: {
24392
25105
  Args: never;
24393
25106
  Returns: boolean;
@@ -24442,6 +25155,40 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
24442
25155
  name: string;
24443
25156
  }[];
24444
25157
  };
25158
+ logistics_trace: {
25159
+ Args: {
25160
+ p: import("../integrations/supabase/types").Json;
25161
+ };
25162
+ Returns: string;
25163
+ };
25164
+ logistics_trace_batch: {
25165
+ Args: {
25166
+ p: import("../integrations/supabase/types").Json;
25167
+ };
25168
+ Returns: number;
25169
+ };
25170
+ logistics_trace_orders: {
25171
+ Args: {
25172
+ p_limit?: number;
25173
+ p_search?: string;
25174
+ p_since?: string;
25175
+ p_status?: string;
25176
+ };
25177
+ Returns: import("../integrations/supabase/types").Json;
25178
+ };
25179
+ logistics_trace_redact: {
25180
+ Args: {
25181
+ p: import("../integrations/supabase/types").Json;
25182
+ };
25183
+ Returns: import("../integrations/supabase/types").Json;
25184
+ };
25185
+ logistics_trace_timeline: {
25186
+ Args: {
25187
+ p_limit?: number;
25188
+ p_order_ref: string;
25189
+ };
25190
+ Returns: import("../integrations/supabase/types").Json;
25191
+ };
24445
25192
  logistics_upsert_task: {
24446
25193
  Args: {
24447
25194
  p_buffer_ref: string;
@@ -25483,6 +26230,10 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
25483
26230
  };
25484
26231
  Returns: undefined;
25485
26232
  };
26233
+ prune_floriday_api_log: {
26234
+ Args: never;
26235
+ Returns: number;
26236
+ };
25486
26237
  quote_create_from_source: {
25487
26238
  Args: {
25488
26239
  _payload?: import("../integrations/supabase/types").Json;
@@ -25916,6 +26667,13 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
25916
26667
  };
25917
26668
  Returns: number;
25918
26669
  };
26670
+ schedule_floriday_catalog_prices_sync: {
26671
+ Args: {
26672
+ p_apikey: string;
26673
+ p_url: string;
26674
+ };
26675
+ Returns: number;
26676
+ };
25919
26677
  schedule_floriday_clock_presales_sync: {
25920
26678
  Args: {
25921
26679
  p_apikey: string;
@@ -26216,6 +26974,10 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
26216
26974
  };
26217
26975
  Returns: undefined;
26218
26976
  };
26977
+ sync_floriday_prices_into_price_groups: {
26978
+ Args: never;
26979
+ Returns: number;
26980
+ };
26219
26981
  sync_layer_stock: {
26220
26982
  Args: {
26221
26983
  p_product_id: string;
@@ -26348,6 +27110,10 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
26348
27110
  Args: never;
26349
27111
  Returns: string;
26350
27112
  };
27113
+ voorraad_cleanup_old_rows: {
27114
+ Args: never;
27115
+ Returns: import("../integrations/supabase/types").Json;
27116
+ };
26351
27117
  wake_print_queue: {
26352
27118
  Args: {
26353
27119
  _min_interval_ms?: number;
@@ -28650,6 +29416,45 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
28650
29416
  };
28651
29417
  Relationships: [];
28652
29418
  };
29419
+ customer_product_stickers: {
29420
+ Row: {
29421
+ created_at: string;
29422
+ customer_key: string;
29423
+ file_name: string;
29424
+ file_path: string;
29425
+ file_size: number | null;
29426
+ id: string;
29427
+ mime_type: string | null;
29428
+ trade_item_key: string;
29429
+ updated_at: string;
29430
+ uploaded_by: string | null;
29431
+ };
29432
+ Insert: {
29433
+ created_at?: string;
29434
+ customer_key: string;
29435
+ file_name: string;
29436
+ file_path: string;
29437
+ file_size?: number | null;
29438
+ id?: string;
29439
+ mime_type?: string | null;
29440
+ trade_item_key: string;
29441
+ updated_at?: string;
29442
+ uploaded_by?: string | null;
29443
+ };
29444
+ Update: {
29445
+ created_at?: string;
29446
+ customer_key?: string;
29447
+ file_name?: string;
29448
+ file_path?: string;
29449
+ file_size?: number | null;
29450
+ id?: string;
29451
+ mime_type?: string | null;
29452
+ trade_item_key?: string;
29453
+ updated_at?: string;
29454
+ uploaded_by?: string | null;
29455
+ };
29456
+ Relationships: [];
29457
+ };
28653
29458
  customer_selected_assortment: {
28654
29459
  Row: {
28655
29460
  article_number: string | null;
@@ -28698,6 +29503,30 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
28698
29503
  referencedColumns: ["id"];
28699
29504
  }];
28700
29505
  };
29506
+ customer_sticker_settings: {
29507
+ Row: {
29508
+ created_at: string;
29509
+ customer_key: string;
29510
+ height_mm: number;
29511
+ updated_at: string;
29512
+ width_mm: number;
29513
+ };
29514
+ Insert: {
29515
+ created_at?: string;
29516
+ customer_key: string;
29517
+ height_mm?: number;
29518
+ updated_at?: string;
29519
+ width_mm?: number;
29520
+ };
29521
+ Update: {
29522
+ created_at?: string;
29523
+ customer_key?: string;
29524
+ height_mm?: number;
29525
+ updated_at?: string;
29526
+ width_mm?: number;
29527
+ };
29528
+ Relationships: [];
29529
+ };
28701
29530
  customer_trade_settings: {
28702
29531
  Row: {
28703
29532
  category: string;
@@ -32028,6 +32857,102 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
32028
32857
  referencedColumns: ["id"];
32029
32858
  }];
32030
32859
  };
32860
+ floriday_api_log: {
32861
+ Row: {
32862
+ action: string | null;
32863
+ caller: string | null;
32864
+ connection_id: string | null;
32865
+ created_at: string;
32866
+ cursor_from: number | null;
32867
+ direction: string;
32868
+ duration_ms: number | null;
32869
+ environment: string | null;
32870
+ error: string | null;
32871
+ floriday_id: string | null;
32872
+ floriday_reference: string | null;
32873
+ http_status: number;
32874
+ id: string;
32875
+ item_count: number | null;
32876
+ kind: string | null;
32877
+ local_id: string | null;
32878
+ local_reference: string | null;
32879
+ method: string;
32880
+ module: string | null;
32881
+ ok: boolean;
32882
+ path: string;
32883
+ request: import("../integrations/supabase/types").Json | null;
32884
+ resource_type: string | null;
32885
+ response: import("../integrations/supabase/types").Json | null;
32886
+ write_log_id: string | null;
32887
+ };
32888
+ Insert: {
32889
+ action?: string | null;
32890
+ caller?: string | null;
32891
+ connection_id?: string | null;
32892
+ created_at?: string;
32893
+ cursor_from?: number | null;
32894
+ direction: string;
32895
+ duration_ms?: number | null;
32896
+ environment?: string | null;
32897
+ error?: string | null;
32898
+ floriday_id?: string | null;
32899
+ floriday_reference?: string | null;
32900
+ http_status?: number;
32901
+ id?: string;
32902
+ item_count?: number | null;
32903
+ kind?: string | null;
32904
+ local_id?: string | null;
32905
+ local_reference?: string | null;
32906
+ method: string;
32907
+ module?: string | null;
32908
+ ok?: boolean;
32909
+ path: string;
32910
+ request?: import("../integrations/supabase/types").Json | null;
32911
+ resource_type?: string | null;
32912
+ response?: import("../integrations/supabase/types").Json | null;
32913
+ write_log_id?: string | null;
32914
+ };
32915
+ Update: {
32916
+ action?: string | null;
32917
+ caller?: string | null;
32918
+ connection_id?: string | null;
32919
+ created_at?: string;
32920
+ cursor_from?: number | null;
32921
+ direction?: string;
32922
+ duration_ms?: number | null;
32923
+ environment?: string | null;
32924
+ error?: string | null;
32925
+ floriday_id?: string | null;
32926
+ floriday_reference?: string | null;
32927
+ http_status?: number;
32928
+ id?: string;
32929
+ item_count?: number | null;
32930
+ kind?: string | null;
32931
+ local_id?: string | null;
32932
+ local_reference?: string | null;
32933
+ method?: string;
32934
+ module?: string | null;
32935
+ ok?: boolean;
32936
+ path?: string;
32937
+ request?: import("../integrations/supabase/types").Json | null;
32938
+ resource_type?: string | null;
32939
+ response?: import("../integrations/supabase/types").Json | null;
32940
+ write_log_id?: string | null;
32941
+ };
32942
+ Relationships: [{
32943
+ foreignKeyName: "floriday_api_log_connection_id_fkey";
32944
+ columns: ["connection_id"];
32945
+ isOneToOne: false;
32946
+ referencedRelation: "floriday_connections";
32947
+ referencedColumns: ["id"];
32948
+ }, {
32949
+ foreignKeyName: "floriday_api_log_write_log_id_fkey";
32950
+ columns: ["write_log_id"];
32951
+ isOneToOne: false;
32952
+ referencedRelation: "floriday_write_log";
32953
+ referencedColumns: ["id"];
32954
+ }];
32955
+ };
32031
32956
  floriday_auction_letters_cache: {
32032
32957
  Row: {
32033
32958
  auction_letter_code: string;
@@ -32235,6 +33160,84 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
32235
33160
  referencedColumns: ["id"];
32236
33161
  }];
32237
33162
  };
33163
+ floriday_catalog_prices_cache: {
33164
+ Row: {
33165
+ connection_id: string;
33166
+ created_at: string;
33167
+ currency: string;
33168
+ id: string;
33169
+ is_deleted: boolean;
33170
+ price: number | null;
33171
+ price_group_id: string | null;
33172
+ price_group_name: string | null;
33173
+ price_type: string;
33174
+ raw: import("../integrations/supabase/types").Json | null;
33175
+ sales_unit: string | null;
33176
+ sequence_number: number;
33177
+ supplier_article_code: string | null;
33178
+ supply_line_id: string;
33179
+ synced_at: string;
33180
+ trade_item_id: string | null;
33181
+ updated_at: string;
33182
+ valid_from: string | null;
33183
+ valid_to: string | null;
33184
+ week: number | null;
33185
+ year: number | null;
33186
+ };
33187
+ Insert: {
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
+ Update: {
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
+ Relationships: [{
33234
+ foreignKeyName: "floriday_catalog_prices_cache_connection_id_fkey";
33235
+ columns: ["connection_id"];
33236
+ isOneToOne: false;
33237
+ referencedRelation: "floriday_connections";
33238
+ referencedColumns: ["id"];
33239
+ }];
33240
+ };
32238
33241
  floriday_clock_presales_cache: {
32239
33242
  Row: {
32240
33243
  buyer_organization_id: string | null;
@@ -33150,6 +34153,69 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
33150
34153
  referencedColumns: ["id"];
33151
34154
  }];
33152
34155
  };
34156
+ floriday_link_templates: {
34157
+ Row: {
34158
+ created_at: string;
34159
+ floriday_url_template: string | null;
34160
+ is_active: boolean;
34161
+ label: string;
34162
+ local_url_template: string | null;
34163
+ resource_type: string;
34164
+ updated_at: string;
34165
+ };
34166
+ Insert: {
34167
+ created_at?: string;
34168
+ floriday_url_template?: string | null;
34169
+ is_active?: boolean;
34170
+ label: string;
34171
+ local_url_template?: string | null;
34172
+ resource_type: string;
34173
+ updated_at?: string;
34174
+ };
34175
+ Update: {
34176
+ created_at?: string;
34177
+ floriday_url_template?: string | null;
34178
+ is_active?: boolean;
34179
+ label?: string;
34180
+ local_url_template?: string | null;
34181
+ resource_type?: string;
34182
+ updated_at?: string;
34183
+ };
34184
+ Relationships: [];
34185
+ };
34186
+ floriday_log_retention: {
34187
+ Row: {
34188
+ created_at: string;
34189
+ direction: string | null;
34190
+ id: string;
34191
+ keep_failed_days: number | null;
34192
+ keep_ok_days: number | null;
34193
+ note: string | null;
34194
+ resource_type: string | null;
34195
+ updated_at: string;
34196
+ };
34197
+ Insert: {
34198
+ created_at?: string;
34199
+ direction?: string | null;
34200
+ id?: string;
34201
+ keep_failed_days?: number | null;
34202
+ keep_ok_days?: number | null;
34203
+ note?: string | null;
34204
+ resource_type?: string | null;
34205
+ updated_at?: string;
34206
+ };
34207
+ Update: {
34208
+ created_at?: string;
34209
+ direction?: string | null;
34210
+ id?: string;
34211
+ keep_failed_days?: number | null;
34212
+ keep_ok_days?: number | null;
34213
+ note?: string | null;
34214
+ resource_type?: string | null;
34215
+ updated_at?: string;
34216
+ };
34217
+ Relationships: [];
34218
+ };
33153
34219
  floriday_logistic_labels_cache: {
33154
34220
  Row: {
33155
34221
  byte_size: number | null;
@@ -36774,6 +37840,48 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
36774
37840
  };
36775
37841
  Relationships: [];
36776
37842
  };
37843
+ logistics_pick_data_requests: {
37844
+ Row: {
37845
+ actions: import("../integrations/supabase/types").Json;
37846
+ created_at: string;
37847
+ event_id: string | null;
37848
+ finished_at: string | null;
37849
+ id: string;
37850
+ missing: import("../integrations/supabase/types").Json;
37851
+ order_ref: string;
37852
+ reason: string | null;
37853
+ result: import("../integrations/supabase/types").Json | null;
37854
+ status: string;
37855
+ unit_ref: string | null;
37856
+ };
37857
+ Insert: {
37858
+ actions?: import("../integrations/supabase/types").Json;
37859
+ created_at?: string;
37860
+ event_id?: string | null;
37861
+ finished_at?: string | null;
37862
+ id?: string;
37863
+ missing?: import("../integrations/supabase/types").Json;
37864
+ order_ref: string;
37865
+ reason?: string | null;
37866
+ result?: import("../integrations/supabase/types").Json | null;
37867
+ status?: string;
37868
+ unit_ref?: string | null;
37869
+ };
37870
+ Update: {
37871
+ actions?: import("../integrations/supabase/types").Json;
37872
+ created_at?: string;
37873
+ event_id?: string | null;
37874
+ finished_at?: string | null;
37875
+ id?: string;
37876
+ missing?: import("../integrations/supabase/types").Json;
37877
+ order_ref?: string;
37878
+ reason?: string | null;
37879
+ result?: import("../integrations/supabase/types").Json | null;
37880
+ status?: string;
37881
+ unit_ref?: string | null;
37882
+ };
37883
+ Relationships: [];
37884
+ };
36777
37885
  logistics_pickup_moments: {
36778
37886
  Row: {
36779
37887
  carrier_ref: string | null;
@@ -37233,6 +38341,69 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
37233
38341
  };
37234
38342
  Relationships: [];
37235
38343
  };
38344
+ logistics_slip_shipping_note: {
38345
+ Row: {
38346
+ attempts: number;
38347
+ batch_key: string | null;
38348
+ cart_id: string | null;
38349
+ created_at: string;
38350
+ error: string | null;
38351
+ error_code: string | null;
38352
+ fulfillment_order_id: string | null;
38353
+ id: string;
38354
+ locked_until: string | null;
38355
+ next_attempt_at: string | null;
38356
+ order_id: string | null;
38357
+ order_number: string | null;
38358
+ print_job_id: string | null;
38359
+ printer_id: string | null;
38360
+ retry_class: string | null;
38361
+ slip_job_id: string;
38362
+ status: string;
38363
+ updated_at: string;
38364
+ };
38365
+ Insert: {
38366
+ attempts?: number;
38367
+ batch_key?: string | null;
38368
+ cart_id?: string | null;
38369
+ created_at?: string;
38370
+ error?: string | null;
38371
+ error_code?: string | null;
38372
+ fulfillment_order_id?: string | null;
38373
+ id?: string;
38374
+ locked_until?: string | null;
38375
+ next_attempt_at?: string | null;
38376
+ order_id?: string | null;
38377
+ order_number?: string | null;
38378
+ print_job_id?: string | null;
38379
+ printer_id?: string | null;
38380
+ retry_class?: string | null;
38381
+ slip_job_id: string;
38382
+ status?: string;
38383
+ updated_at?: string;
38384
+ };
38385
+ Update: {
38386
+ attempts?: number;
38387
+ batch_key?: string | null;
38388
+ cart_id?: string | null;
38389
+ created_at?: string;
38390
+ error?: string | null;
38391
+ error_code?: string | null;
38392
+ fulfillment_order_id?: string | null;
38393
+ id?: string;
38394
+ locked_until?: string | null;
38395
+ next_attempt_at?: string | null;
38396
+ order_id?: string | null;
38397
+ order_number?: string | null;
38398
+ print_job_id?: string | null;
38399
+ printer_id?: string | null;
38400
+ retry_class?: string | null;
38401
+ slip_job_id?: string;
38402
+ status?: string;
38403
+ updated_at?: string;
38404
+ };
38405
+ Relationships: [];
38406
+ };
37236
38407
  logistics_staff_planning: {
37237
38408
  Row: {
37238
38409
  created_at: string;
@@ -37584,6 +38755,111 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
37584
38755
  };
37585
38756
  Relationships: [];
37586
38757
  };
38758
+ logistics_trace_events: {
38759
+ Row: {
38760
+ actor: string | null;
38761
+ attempts: number;
38762
+ cart_ref: string | null;
38763
+ created_at: string;
38764
+ db_action: string | null;
38765
+ db_new: import("../integrations/supabase/types").Json | null;
38766
+ db_old: import("../integrations/supabase/types").Json | null;
38767
+ db_record: string | null;
38768
+ db_table: string | null;
38769
+ decision: string | null;
38770
+ duration_ms: number | null;
38771
+ error: string | null;
38772
+ external_action: string | null;
38773
+ external_ref: string | null;
38774
+ external_response: import("../integrations/supabase/types").Json | null;
38775
+ external_status: string | null;
38776
+ external_system: string | null;
38777
+ id: string;
38778
+ input: import("../integrations/supabase/types").Json | null;
38779
+ next_attempt_at: string | null;
38780
+ order_ref: string | null;
38781
+ order_source: string | null;
38782
+ output: import("../integrations/supabase/types").Json | null;
38783
+ phase: string;
38784
+ reads: import("../integrations/supabase/types").Json | null;
38785
+ reason: string | null;
38786
+ rule: string | null;
38787
+ slip_ref: string | null;
38788
+ status: string;
38789
+ step: string;
38790
+ trace_id: string;
38791
+ values_used: import("../integrations/supabase/types").Json | null;
38792
+ };
38793
+ Insert: {
38794
+ actor?: string | null;
38795
+ attempts?: number;
38796
+ cart_ref?: string | null;
38797
+ created_at?: string;
38798
+ db_action?: string | null;
38799
+ db_new?: import("../integrations/supabase/types").Json | null;
38800
+ db_old?: import("../integrations/supabase/types").Json | null;
38801
+ db_record?: string | null;
38802
+ db_table?: string | null;
38803
+ decision?: string | null;
38804
+ duration_ms?: number | null;
38805
+ error?: string | null;
38806
+ external_action?: string | null;
38807
+ external_ref?: string | null;
38808
+ external_response?: import("../integrations/supabase/types").Json | null;
38809
+ external_status?: string | null;
38810
+ external_system?: string | null;
38811
+ id?: string;
38812
+ input?: import("../integrations/supabase/types").Json | null;
38813
+ next_attempt_at?: string | null;
38814
+ order_ref?: string | null;
38815
+ order_source?: string | null;
38816
+ output?: import("../integrations/supabase/types").Json | null;
38817
+ phase: string;
38818
+ reads?: import("../integrations/supabase/types").Json | null;
38819
+ reason?: string | null;
38820
+ rule?: string | null;
38821
+ slip_ref?: string | null;
38822
+ status: string;
38823
+ step: string;
38824
+ trace_id?: string;
38825
+ values_used?: import("../integrations/supabase/types").Json | null;
38826
+ };
38827
+ Update: {
38828
+ actor?: string | null;
38829
+ attempts?: number;
38830
+ cart_ref?: string | null;
38831
+ created_at?: string;
38832
+ db_action?: string | null;
38833
+ db_new?: import("../integrations/supabase/types").Json | null;
38834
+ db_old?: import("../integrations/supabase/types").Json | null;
38835
+ db_record?: string | null;
38836
+ db_table?: string | null;
38837
+ decision?: string | null;
38838
+ duration_ms?: number | null;
38839
+ error?: string | null;
38840
+ external_action?: string | null;
38841
+ external_ref?: string | null;
38842
+ external_response?: import("../integrations/supabase/types").Json | null;
38843
+ external_status?: string | null;
38844
+ external_system?: string | null;
38845
+ id?: string;
38846
+ input?: import("../integrations/supabase/types").Json | null;
38847
+ next_attempt_at?: string | null;
38848
+ order_ref?: string | null;
38849
+ order_source?: string | null;
38850
+ output?: import("../integrations/supabase/types").Json | null;
38851
+ phase?: string;
38852
+ reads?: import("../integrations/supabase/types").Json | null;
38853
+ reason?: string | null;
38854
+ rule?: string | null;
38855
+ slip_ref?: string | null;
38856
+ status?: string;
38857
+ step?: string;
38858
+ trace_id?: string;
38859
+ values_used?: import("../integrations/supabase/types").Json | null;
38860
+ };
38861
+ Relationships: [];
38862
+ };
37587
38863
  logistics_variables: {
37588
38864
  Row: {
37589
38865
  created_at: string;
@@ -48156,6 +49432,15 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
48156
49432
  Args: never;
48157
49433
  Returns: boolean;
48158
49434
  };
49435
+ cancel_open_print_jobs: {
49436
+ Args: {
49437
+ _cutoff: string;
49438
+ };
49439
+ Returns: {
49440
+ extern_job_id: string;
49441
+ id: string;
49442
+ }[];
49443
+ };
48159
49444
  check_offer_product_available_stock: {
48160
49445
  Args: {
48161
49446
  p_campaign_product_id: string;
@@ -49694,6 +50979,12 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
49694
50979
  };
49695
50980
  Returns: string;
49696
50981
  };
50982
+ logistics_cart_checkin_at: {
50983
+ Args: {
50984
+ p_cart_id: string;
50985
+ };
50986
+ Returns: string;
50987
+ };
49697
50988
  logistics_cart_handled: {
49698
50989
  Args: {
49699
50990
  p_cart_index: number;
@@ -49727,10 +51018,22 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
49727
51018
  task_status: string;
49728
51019
  }[];
49729
51020
  };
51021
+ logistics_cart_is_full: {
51022
+ Args: {
51023
+ p_cart_id: string;
51024
+ };
51025
+ Returns: boolean;
51026
+ };
49730
51027
  logistics_cart_layout_method: {
49731
51028
  Args: never;
49732
51029
  Returns: import("../integrations/supabase/types").Json;
49733
51030
  };
51031
+ logistics_cart_order_refs: {
51032
+ Args: {
51033
+ p_cart_id: string;
51034
+ };
51035
+ Returns: string[];
51036
+ };
49734
51037
  logistics_cart_plan_overview: {
49735
51038
  Args: {
49736
51039
  p_days?: number;
@@ -49750,6 +51053,24 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
49750
51053
  };
49751
51054
  Returns: import("../integrations/supabase/types").Json;
49752
51055
  };
51056
+ logistics_cart_plan_status_core: {
51057
+ Args: {
51058
+ p_ref: string;
51059
+ };
51060
+ Returns: import("../integrations/supabase/types").Json;
51061
+ };
51062
+ logistics_cart_release_reason: {
51063
+ Args: {
51064
+ p_cart_id: string;
51065
+ };
51066
+ Returns: string;
51067
+ };
51068
+ logistics_cart_released: {
51069
+ Args: {
51070
+ p_cart_id: string;
51071
+ };
51072
+ Returns: boolean;
51073
+ };
49753
51074
  logistics_cart_seq: {
49754
51075
  Args: {
49755
51076
  p_order_uuid?: string;
@@ -49800,6 +51121,10 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
49800
51121
  unit_ref: string;
49801
51122
  }[];
49802
51123
  };
51124
+ logistics_carts_per_print: {
51125
+ Args: never;
51126
+ Returns: number;
51127
+ };
49803
51128
  logistics_check_order_allowed: {
49804
51129
  Args: {
49805
51130
  p_lines: import("../integrations/supabase/types").Json;
@@ -49903,6 +51228,10 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
49903
51228
  isSetofReturn: false;
49904
51229
  };
49905
51230
  };
51231
+ logistics_cleanup_orphan_print_jobs: {
51232
+ Args: never;
51233
+ Returns: import("../integrations/supabase/types").Json;
51234
+ };
49906
51235
  logistics_complete_task: {
49907
51236
  Args: {
49908
51237
  p_result?: import("../integrations/supabase/types").Json;
@@ -50154,6 +51483,20 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
50154
51483
  };
50155
51484
  Returns: string;
50156
51485
  };
51486
+ logistics_ensure_pick_data: {
51487
+ Args: {
51488
+ p_event_id?: string;
51489
+ p_missing?: import("../integrations/supabase/types").Json;
51490
+ p_ref: string;
51491
+ };
51492
+ Returns: import("../integrations/supabase/types").Json;
51493
+ };
51494
+ logistics_ensure_shipping_notes: {
51495
+ Args: {
51496
+ p_limit?: number;
51497
+ };
51498
+ Returns: import("../integrations/supabase/types").Json;
51499
+ };
50157
51500
  logistics_fail_task: {
50158
51501
  Args: {
50159
51502
  p_error: string;
@@ -50199,6 +51542,10 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
50199
51542
  isSetofReturn: false;
50200
51543
  };
50201
51544
  };
51545
+ logistics_fix_wrong_shipping_notes: {
51546
+ Args: never;
51547
+ Returns: import("../integrations/supabase/types").Json;
51548
+ };
50202
51549
  logistics_floriday_cart_plan: {
50203
51550
  Args: {
50204
51551
  p_order_id: string;
@@ -50226,6 +51573,10 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
50226
51573
  revision: number;
50227
51574
  }[];
50228
51575
  };
51576
+ logistics_floriday_delivery_note_create_enabled: {
51577
+ Args: never;
51578
+ Returns: boolean;
51579
+ };
50229
51580
  logistics_floriday_finish_push: {
50230
51581
  Args: {
50231
51582
  _error?: string;
@@ -50377,6 +51728,12 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
50377
51728
  };
50378
51729
  Returns: number;
50379
51730
  };
51731
+ logistics_merge_partial_carts: {
51732
+ Args: {
51733
+ p_limit?: number;
51734
+ };
51735
+ Returns: import("../integrations/supabase/types").Json;
51736
+ };
50380
51737
  logistics_next_workday_date: {
50381
51738
  Args: {
50382
51739
  p_date: string;
@@ -50463,6 +51820,12 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
50463
51820
  };
50464
51821
  Returns: string;
50465
51822
  };
51823
+ logistics_payload_is_floriday: {
51824
+ Args: {
51825
+ _payload: import("../integrations/supabase/types").Json;
51826
+ };
51827
+ Returns: boolean;
51828
+ };
50466
51829
  logistics_pick_agenda: {
50467
51830
  Args: {
50468
51831
  p_from?: string;
@@ -50491,6 +51854,10 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
50491
51854
  Args: never;
50492
51855
  Returns: import("../integrations/supabase/types").Json;
50493
51856
  };
51857
+ logistics_pick_partial_mode: {
51858
+ Args: never;
51859
+ Returns: string;
51860
+ };
50494
51861
  logistics_pick_start_estimate: {
50495
51862
  Args: {
50496
51863
  p_order: import("../integrations/supabase/types").Json;
@@ -50581,6 +51948,20 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
50581
51948
  Args: never;
50582
51949
  Returns: undefined;
50583
51950
  };
51951
+ logistics_plan_progress: {
51952
+ Args: {
51953
+ p_refs: string[];
51954
+ };
51955
+ Returns: {
51956
+ cart_plan_ready: boolean;
51957
+ cart_plan_reason: string;
51958
+ cart_plan_released: boolean;
51959
+ plan_progress: number;
51960
+ plan_state: string;
51961
+ plan_state_since: string;
51962
+ unit_ref: string;
51963
+ }[];
51964
+ };
50584
51965
  logistics_plan_prune: {
50585
51966
  Args: never;
50586
51967
  Returns: number;
@@ -50602,6 +51983,18 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
50602
51983
  };
50603
51984
  Returns: number;
50604
51985
  };
51986
+ logistics_plan_state_for: {
51987
+ Args: {
51988
+ p_ref: string;
51989
+ };
51990
+ Returns: import("../integrations/supabase/types").Json;
51991
+ };
51992
+ logistics_prepare_pick_documents: {
51993
+ Args: {
51994
+ p_limit?: number;
51995
+ };
51996
+ Returns: import("../integrations/supabase/types").Json;
51997
+ };
50605
51998
  logistics_prune_buffer_member_queue: {
50606
51999
  Args: never;
50607
52000
  Returns: number;
@@ -50642,18 +52035,36 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
50642
52035
  Args: never;
50643
52036
  Returns: import("../integrations/supabase/types").Json;
50644
52037
  };
52038
+ logistics_refresh_pick_queue_status: {
52039
+ Args: {
52040
+ p_ref: string;
52041
+ };
52042
+ Returns: number;
52043
+ };
50645
52044
  logistics_refresh_pickup_moments: {
50646
52045
  Args: {
50647
52046
  p_weeks?: number;
50648
52047
  };
50649
52048
  Returns: import("../integrations/supabase/types").Json;
50650
52049
  };
52050
+ logistics_refresh_plan_state: {
52051
+ Args: {
52052
+ p_limit?: number;
52053
+ };
52054
+ Returns: import("../integrations/supabase/types").Json;
52055
+ };
50651
52056
  logistics_replan_all: {
50652
52057
  Args: {
50653
52058
  p_reason?: string;
50654
52059
  };
50655
52060
  Returns: import("../integrations/supabase/types").Json;
50656
52061
  };
52062
+ logistics_replan_all_force: {
52063
+ Args: {
52064
+ p_reason?: string;
52065
+ };
52066
+ Returns: import("../integrations/supabase/types").Json;
52067
+ };
50657
52068
  logistics_report_delay: {
50658
52069
  Args: {
50659
52070
  p_expected_date?: string;
@@ -50810,6 +52221,74 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
50810
52221
  };
50811
52222
  Returns: import("../integrations/supabase/types").Json;
50812
52223
  };
52224
+ logistics_shipping_note_job_for_slip: {
52225
+ Args: {
52226
+ _slip_job_id: string;
52227
+ };
52228
+ Returns: string;
52229
+ };
52230
+ logistics_shipping_notes_wake_all: {
52231
+ Args: never;
52232
+ Returns: import("../integrations/supabase/types").Json;
52233
+ };
52234
+ logistics_slip_is_floriday: {
52235
+ Args: {
52236
+ _slip_job_id: string;
52237
+ };
52238
+ Returns: boolean;
52239
+ };
52240
+ logistics_slip_note_claim: {
52241
+ Args: {
52242
+ _lease_seconds?: number;
52243
+ _limit?: number;
52244
+ };
52245
+ Returns: {
52246
+ attempts: number;
52247
+ batch_key: string | null;
52248
+ cart_id: string | null;
52249
+ created_at: string;
52250
+ error: string | null;
52251
+ error_code: string | null;
52252
+ fulfillment_order_id: string | null;
52253
+ id: string;
52254
+ locked_until: string | null;
52255
+ next_attempt_at: string | null;
52256
+ order_id: string | null;
52257
+ order_number: string | null;
52258
+ print_job_id: string | null;
52259
+ printer_id: string | null;
52260
+ retry_class: string | null;
52261
+ slip_job_id: string;
52262
+ status: string;
52263
+ updated_at: string;
52264
+ }[];
52265
+ SetofOptions: {
52266
+ from: "*";
52267
+ to: "logistics_slip_shipping_note";
52268
+ isOneToOne: false;
52269
+ isSetofReturn: true;
52270
+ };
52271
+ };
52272
+ logistics_slip_note_finish: {
52273
+ Args: {
52274
+ _error?: string;
52275
+ _error_code?: string;
52276
+ _fulfillment_order_id?: string;
52277
+ _id: string;
52278
+ _ok: boolean;
52279
+ _print_job_id?: string;
52280
+ _status?: string;
52281
+ };
52282
+ Returns: undefined;
52283
+ };
52284
+ logistics_slip_note_keep_waiting: {
52285
+ Args: {
52286
+ _class?: string;
52287
+ _id: string;
52288
+ _reason: string;
52289
+ };
52290
+ Returns: undefined;
52291
+ };
50813
52292
  logistics_sticker_follows_slip: {
50814
52293
  Args: never;
50815
52294
  Returns: boolean;
@@ -50864,6 +52343,40 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
50864
52343
  name: string;
50865
52344
  }[];
50866
52345
  };
52346
+ logistics_trace: {
52347
+ Args: {
52348
+ p: import("../integrations/supabase/types").Json;
52349
+ };
52350
+ Returns: string;
52351
+ };
52352
+ logistics_trace_batch: {
52353
+ Args: {
52354
+ p: import("../integrations/supabase/types").Json;
52355
+ };
52356
+ Returns: number;
52357
+ };
52358
+ logistics_trace_orders: {
52359
+ Args: {
52360
+ p_limit?: number;
52361
+ p_search?: string;
52362
+ p_since?: string;
52363
+ p_status?: string;
52364
+ };
52365
+ Returns: import("../integrations/supabase/types").Json;
52366
+ };
52367
+ logistics_trace_redact: {
52368
+ Args: {
52369
+ p: import("../integrations/supabase/types").Json;
52370
+ };
52371
+ Returns: import("../integrations/supabase/types").Json;
52372
+ };
52373
+ logistics_trace_timeline: {
52374
+ Args: {
52375
+ p_limit?: number;
52376
+ p_order_ref: string;
52377
+ };
52378
+ Returns: import("../integrations/supabase/types").Json;
52379
+ };
50867
52380
  logistics_upsert_task: {
50868
52381
  Args: {
50869
52382
  p_buffer_ref: string;
@@ -51905,6 +53418,10 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
51905
53418
  };
51906
53419
  Returns: undefined;
51907
53420
  };
53421
+ prune_floriday_api_log: {
53422
+ Args: never;
53423
+ Returns: number;
53424
+ };
51908
53425
  quote_create_from_source: {
51909
53426
  Args: {
51910
53427
  _payload?: import("../integrations/supabase/types").Json;
@@ -52338,6 +53855,13 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
52338
53855
  };
52339
53856
  Returns: number;
52340
53857
  };
53858
+ schedule_floriday_catalog_prices_sync: {
53859
+ Args: {
53860
+ p_apikey: string;
53861
+ p_url: string;
53862
+ };
53863
+ Returns: number;
53864
+ };
52341
53865
  schedule_floriday_clock_presales_sync: {
52342
53866
  Args: {
52343
53867
  p_apikey: string;
@@ -52638,6 +54162,10 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
52638
54162
  };
52639
54163
  Returns: undefined;
52640
54164
  };
54165
+ sync_floriday_prices_into_price_groups: {
54166
+ Args: never;
54167
+ Returns: number;
54168
+ };
52641
54169
  sync_layer_stock: {
52642
54170
  Args: {
52643
54171
  p_product_id: string;
@@ -52770,6 +54298,10 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
52770
54298
  Args: never;
52771
54299
  Returns: string;
52772
54300
  };
54301
+ voorraad_cleanup_old_rows: {
54302
+ Args: never;
54303
+ Returns: import("../integrations/supabase/types").Json;
54304
+ };
52773
54305
  wake_print_queue: {
52774
54306
  Args: {
52775
54307
  _min_interval_ms?: number;