@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
@@ -2225,6 +2225,45 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
2225
2225
  };
2226
2226
  Relationships: [];
2227
2227
  };
2228
+ customer_product_stickers: {
2229
+ Row: {
2230
+ created_at: string;
2231
+ customer_key: string;
2232
+ file_name: string;
2233
+ file_path: string;
2234
+ file_size: number | null;
2235
+ id: string;
2236
+ mime_type: string | null;
2237
+ trade_item_key: string;
2238
+ updated_at: string;
2239
+ uploaded_by: string | null;
2240
+ };
2241
+ Insert: {
2242
+ created_at?: string;
2243
+ customer_key: string;
2244
+ file_name: string;
2245
+ file_path: string;
2246
+ file_size?: number | null;
2247
+ id?: string;
2248
+ mime_type?: string | null;
2249
+ trade_item_key: string;
2250
+ updated_at?: string;
2251
+ uploaded_by?: string | null;
2252
+ };
2253
+ Update: {
2254
+ created_at?: string;
2255
+ customer_key?: string;
2256
+ file_name?: string;
2257
+ file_path?: string;
2258
+ file_size?: number | null;
2259
+ id?: string;
2260
+ mime_type?: string | null;
2261
+ trade_item_key?: string;
2262
+ updated_at?: string;
2263
+ uploaded_by?: string | null;
2264
+ };
2265
+ Relationships: [];
2266
+ };
2228
2267
  customer_selected_assortment: {
2229
2268
  Row: {
2230
2269
  article_number: string | null;
@@ -2273,6 +2312,30 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
2273
2312
  referencedColumns: ["id"];
2274
2313
  }];
2275
2314
  };
2315
+ customer_sticker_settings: {
2316
+ Row: {
2317
+ created_at: string;
2318
+ customer_key: string;
2319
+ height_mm: number;
2320
+ updated_at: string;
2321
+ width_mm: number;
2322
+ };
2323
+ Insert: {
2324
+ created_at?: string;
2325
+ customer_key: string;
2326
+ height_mm?: number;
2327
+ updated_at?: string;
2328
+ width_mm?: number;
2329
+ };
2330
+ Update: {
2331
+ created_at?: string;
2332
+ customer_key?: string;
2333
+ height_mm?: number;
2334
+ updated_at?: string;
2335
+ width_mm?: number;
2336
+ };
2337
+ Relationships: [];
2338
+ };
2276
2339
  customer_trade_settings: {
2277
2340
  Row: {
2278
2341
  category: string;
@@ -5603,6 +5666,102 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
5603
5666
  referencedColumns: ["id"];
5604
5667
  }];
5605
5668
  };
5669
+ floriday_api_log: {
5670
+ Row: {
5671
+ action: string | null;
5672
+ caller: string | null;
5673
+ connection_id: string | null;
5674
+ created_at: string;
5675
+ cursor_from: number | null;
5676
+ direction: string;
5677
+ duration_ms: number | null;
5678
+ environment: string | null;
5679
+ error: string | null;
5680
+ floriday_id: string | null;
5681
+ floriday_reference: string | null;
5682
+ http_status: number;
5683
+ id: string;
5684
+ item_count: number | null;
5685
+ kind: string | null;
5686
+ local_id: string | null;
5687
+ local_reference: string | null;
5688
+ method: string;
5689
+ module: string | null;
5690
+ ok: boolean;
5691
+ path: string;
5692
+ request: import("../integrations/supabase/types").Json | null;
5693
+ resource_type: string | null;
5694
+ response: import("../integrations/supabase/types").Json | null;
5695
+ write_log_id: string | null;
5696
+ };
5697
+ Insert: {
5698
+ action?: string | null;
5699
+ caller?: string | null;
5700
+ connection_id?: string | null;
5701
+ created_at?: string;
5702
+ cursor_from?: number | null;
5703
+ direction: string;
5704
+ duration_ms?: number | null;
5705
+ environment?: string | null;
5706
+ error?: string | null;
5707
+ floriday_id?: string | null;
5708
+ floriday_reference?: string | null;
5709
+ http_status?: number;
5710
+ id?: string;
5711
+ item_count?: number | null;
5712
+ kind?: string | null;
5713
+ local_id?: string | null;
5714
+ local_reference?: string | null;
5715
+ method: string;
5716
+ module?: string | null;
5717
+ ok?: boolean;
5718
+ path: string;
5719
+ request?: import("../integrations/supabase/types").Json | null;
5720
+ resource_type?: string | null;
5721
+ response?: import("../integrations/supabase/types").Json | null;
5722
+ write_log_id?: string | null;
5723
+ };
5724
+ Update: {
5725
+ action?: string | null;
5726
+ caller?: string | null;
5727
+ connection_id?: string | null;
5728
+ created_at?: string;
5729
+ cursor_from?: number | null;
5730
+ direction?: string;
5731
+ duration_ms?: number | null;
5732
+ environment?: string | null;
5733
+ error?: string | null;
5734
+ floriday_id?: string | null;
5735
+ floriday_reference?: string | null;
5736
+ http_status?: number;
5737
+ id?: string;
5738
+ item_count?: number | null;
5739
+ kind?: string | null;
5740
+ local_id?: string | null;
5741
+ local_reference?: string | null;
5742
+ method?: string;
5743
+ module?: string | null;
5744
+ ok?: boolean;
5745
+ path?: string;
5746
+ request?: import("../integrations/supabase/types").Json | null;
5747
+ resource_type?: string | null;
5748
+ response?: import("../integrations/supabase/types").Json | null;
5749
+ write_log_id?: string | null;
5750
+ };
5751
+ Relationships: [{
5752
+ foreignKeyName: "floriday_api_log_connection_id_fkey";
5753
+ columns: ["connection_id"];
5754
+ isOneToOne: false;
5755
+ referencedRelation: "floriday_connections";
5756
+ referencedColumns: ["id"];
5757
+ }, {
5758
+ foreignKeyName: "floriday_api_log_write_log_id_fkey";
5759
+ columns: ["write_log_id"];
5760
+ isOneToOne: false;
5761
+ referencedRelation: "floriday_write_log";
5762
+ referencedColumns: ["id"];
5763
+ }];
5764
+ };
5606
5765
  floriday_auction_letters_cache: {
5607
5766
  Row: {
5608
5767
  auction_letter_code: string;
@@ -5810,6 +5969,84 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
5810
5969
  referencedColumns: ["id"];
5811
5970
  }];
5812
5971
  };
5972
+ floriday_catalog_prices_cache: {
5973
+ Row: {
5974
+ connection_id: string;
5975
+ created_at: string;
5976
+ currency: string;
5977
+ id: string;
5978
+ is_deleted: boolean;
5979
+ price: number | null;
5980
+ price_group_id: string | null;
5981
+ price_group_name: string | null;
5982
+ price_type: string;
5983
+ raw: import("../integrations/supabase/types").Json | null;
5984
+ sales_unit: string | null;
5985
+ sequence_number: number;
5986
+ supplier_article_code: string | null;
5987
+ supply_line_id: string;
5988
+ synced_at: string;
5989
+ trade_item_id: string | null;
5990
+ updated_at: string;
5991
+ valid_from: string | null;
5992
+ valid_to: string | null;
5993
+ week: number | null;
5994
+ year: number | null;
5995
+ };
5996
+ Insert: {
5997
+ connection_id: string;
5998
+ created_at?: string;
5999
+ currency?: string;
6000
+ id?: string;
6001
+ is_deleted?: boolean;
6002
+ price?: number | null;
6003
+ price_group_id?: string | null;
6004
+ price_group_name?: string | null;
6005
+ price_type?: string;
6006
+ raw?: import("../integrations/supabase/types").Json | null;
6007
+ sales_unit?: string | null;
6008
+ sequence_number?: number;
6009
+ supplier_article_code?: string | null;
6010
+ supply_line_id: string;
6011
+ synced_at?: string;
6012
+ trade_item_id?: string | null;
6013
+ updated_at?: string;
6014
+ valid_from?: string | null;
6015
+ valid_to?: string | null;
6016
+ week?: number | null;
6017
+ year?: number | null;
6018
+ };
6019
+ Update: {
6020
+ connection_id?: string;
6021
+ created_at?: string;
6022
+ currency?: string;
6023
+ id?: string;
6024
+ is_deleted?: boolean;
6025
+ price?: number | null;
6026
+ price_group_id?: string | null;
6027
+ price_group_name?: string | null;
6028
+ price_type?: string;
6029
+ raw?: import("../integrations/supabase/types").Json | null;
6030
+ sales_unit?: string | null;
6031
+ sequence_number?: number;
6032
+ supplier_article_code?: string | null;
6033
+ supply_line_id?: string;
6034
+ synced_at?: string;
6035
+ trade_item_id?: string | null;
6036
+ updated_at?: string;
6037
+ valid_from?: string | null;
6038
+ valid_to?: string | null;
6039
+ week?: number | null;
6040
+ year?: number | null;
6041
+ };
6042
+ Relationships: [{
6043
+ foreignKeyName: "floriday_catalog_prices_cache_connection_id_fkey";
6044
+ columns: ["connection_id"];
6045
+ isOneToOne: false;
6046
+ referencedRelation: "floriday_connections";
6047
+ referencedColumns: ["id"];
6048
+ }];
6049
+ };
5813
6050
  floriday_clock_presales_cache: {
5814
6051
  Row: {
5815
6052
  buyer_organization_id: string | null;
@@ -6725,6 +6962,69 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
6725
6962
  referencedColumns: ["id"];
6726
6963
  }];
6727
6964
  };
6965
+ floriday_link_templates: {
6966
+ Row: {
6967
+ created_at: string;
6968
+ floriday_url_template: string | null;
6969
+ is_active: boolean;
6970
+ label: string;
6971
+ local_url_template: string | null;
6972
+ resource_type: string;
6973
+ updated_at: string;
6974
+ };
6975
+ Insert: {
6976
+ created_at?: string;
6977
+ floriday_url_template?: string | null;
6978
+ is_active?: boolean;
6979
+ label: string;
6980
+ local_url_template?: string | null;
6981
+ resource_type: string;
6982
+ updated_at?: string;
6983
+ };
6984
+ Update: {
6985
+ created_at?: string;
6986
+ floriday_url_template?: string | null;
6987
+ is_active?: boolean;
6988
+ label?: string;
6989
+ local_url_template?: string | null;
6990
+ resource_type?: string;
6991
+ updated_at?: string;
6992
+ };
6993
+ Relationships: [];
6994
+ };
6995
+ floriday_log_retention: {
6996
+ Row: {
6997
+ created_at: string;
6998
+ direction: string | null;
6999
+ id: string;
7000
+ keep_failed_days: number | null;
7001
+ keep_ok_days: number | null;
7002
+ note: string | null;
7003
+ resource_type: string | null;
7004
+ updated_at: string;
7005
+ };
7006
+ Insert: {
7007
+ created_at?: string;
7008
+ direction?: string | null;
7009
+ id?: string;
7010
+ keep_failed_days?: number | null;
7011
+ keep_ok_days?: number | null;
7012
+ note?: string | null;
7013
+ resource_type?: string | null;
7014
+ updated_at?: string;
7015
+ };
7016
+ Update: {
7017
+ created_at?: string;
7018
+ direction?: string | null;
7019
+ id?: string;
7020
+ keep_failed_days?: number | null;
7021
+ keep_ok_days?: number | null;
7022
+ note?: string | null;
7023
+ resource_type?: string | null;
7024
+ updated_at?: string;
7025
+ };
7026
+ Relationships: [];
7027
+ };
6728
7028
  floriday_logistic_labels_cache: {
6729
7029
  Row: {
6730
7030
  byte_size: number | null;
@@ -10349,6 +10649,48 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
10349
10649
  };
10350
10650
  Relationships: [];
10351
10651
  };
10652
+ logistics_pick_data_requests: {
10653
+ Row: {
10654
+ actions: import("../integrations/supabase/types").Json;
10655
+ created_at: string;
10656
+ event_id: string | null;
10657
+ finished_at: string | null;
10658
+ id: string;
10659
+ missing: import("../integrations/supabase/types").Json;
10660
+ order_ref: string;
10661
+ reason: string | null;
10662
+ result: import("../integrations/supabase/types").Json | null;
10663
+ status: string;
10664
+ unit_ref: string | null;
10665
+ };
10666
+ Insert: {
10667
+ actions?: import("../integrations/supabase/types").Json;
10668
+ created_at?: string;
10669
+ event_id?: string | null;
10670
+ finished_at?: string | null;
10671
+ id?: string;
10672
+ missing?: import("../integrations/supabase/types").Json;
10673
+ order_ref: string;
10674
+ reason?: string | null;
10675
+ result?: import("../integrations/supabase/types").Json | null;
10676
+ status?: string;
10677
+ unit_ref?: string | null;
10678
+ };
10679
+ Update: {
10680
+ actions?: import("../integrations/supabase/types").Json;
10681
+ created_at?: string;
10682
+ event_id?: string | null;
10683
+ finished_at?: string | null;
10684
+ id?: string;
10685
+ missing?: import("../integrations/supabase/types").Json;
10686
+ order_ref?: string;
10687
+ reason?: string | null;
10688
+ result?: import("../integrations/supabase/types").Json | null;
10689
+ status?: string;
10690
+ unit_ref?: string | null;
10691
+ };
10692
+ Relationships: [];
10693
+ };
10352
10694
  logistics_pickup_moments: {
10353
10695
  Row: {
10354
10696
  carrier_ref: string | null;
@@ -10808,6 +11150,69 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
10808
11150
  };
10809
11151
  Relationships: [];
10810
11152
  };
11153
+ logistics_slip_shipping_note: {
11154
+ Row: {
11155
+ attempts: number;
11156
+ batch_key: string | null;
11157
+ cart_id: string | null;
11158
+ created_at: string;
11159
+ error: string | null;
11160
+ error_code: string | null;
11161
+ fulfillment_order_id: string | null;
11162
+ id: string;
11163
+ locked_until: string | null;
11164
+ next_attempt_at: string | null;
11165
+ order_id: string | null;
11166
+ order_number: string | null;
11167
+ print_job_id: string | null;
11168
+ printer_id: string | null;
11169
+ retry_class: string | null;
11170
+ slip_job_id: string;
11171
+ status: string;
11172
+ updated_at: string;
11173
+ };
11174
+ Insert: {
11175
+ attempts?: number;
11176
+ batch_key?: string | null;
11177
+ cart_id?: string | null;
11178
+ created_at?: string;
11179
+ error?: string | null;
11180
+ error_code?: string | null;
11181
+ fulfillment_order_id?: string | null;
11182
+ id?: string;
11183
+ locked_until?: string | null;
11184
+ next_attempt_at?: string | null;
11185
+ order_id?: string | null;
11186
+ order_number?: string | null;
11187
+ print_job_id?: string | null;
11188
+ printer_id?: string | null;
11189
+ retry_class?: string | null;
11190
+ slip_job_id: string;
11191
+ status?: string;
11192
+ updated_at?: string;
11193
+ };
11194
+ Update: {
11195
+ attempts?: number;
11196
+ batch_key?: string | null;
11197
+ cart_id?: string | null;
11198
+ created_at?: string;
11199
+ error?: string | null;
11200
+ error_code?: string | null;
11201
+ fulfillment_order_id?: string | null;
11202
+ id?: string;
11203
+ locked_until?: string | null;
11204
+ next_attempt_at?: string | null;
11205
+ order_id?: string | null;
11206
+ order_number?: string | null;
11207
+ print_job_id?: string | null;
11208
+ printer_id?: string | null;
11209
+ retry_class?: string | null;
11210
+ slip_job_id?: string;
11211
+ status?: string;
11212
+ updated_at?: string;
11213
+ };
11214
+ Relationships: [];
11215
+ };
10811
11216
  logistics_staff_planning: {
10812
11217
  Row: {
10813
11218
  created_at: string;
@@ -11159,6 +11564,111 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
11159
11564
  };
11160
11565
  Relationships: [];
11161
11566
  };
11567
+ logistics_trace_events: {
11568
+ Row: {
11569
+ actor: string | null;
11570
+ attempts: number;
11571
+ cart_ref: string | null;
11572
+ created_at: string;
11573
+ db_action: string | null;
11574
+ db_new: import("../integrations/supabase/types").Json | null;
11575
+ db_old: import("../integrations/supabase/types").Json | null;
11576
+ db_record: string | null;
11577
+ db_table: string | null;
11578
+ decision: string | null;
11579
+ duration_ms: number | null;
11580
+ error: string | null;
11581
+ external_action: string | null;
11582
+ external_ref: string | null;
11583
+ external_response: import("../integrations/supabase/types").Json | null;
11584
+ external_status: string | null;
11585
+ external_system: string | null;
11586
+ id: string;
11587
+ input: import("../integrations/supabase/types").Json | null;
11588
+ next_attempt_at: string | null;
11589
+ order_ref: string | null;
11590
+ order_source: string | null;
11591
+ output: import("../integrations/supabase/types").Json | null;
11592
+ phase: string;
11593
+ reads: import("../integrations/supabase/types").Json | null;
11594
+ reason: string | null;
11595
+ rule: string | null;
11596
+ slip_ref: string | null;
11597
+ status: string;
11598
+ step: string;
11599
+ trace_id: string;
11600
+ values_used: import("../integrations/supabase/types").Json | null;
11601
+ };
11602
+ Insert: {
11603
+ actor?: string | null;
11604
+ attempts?: number;
11605
+ cart_ref?: string | null;
11606
+ created_at?: string;
11607
+ db_action?: string | null;
11608
+ db_new?: import("../integrations/supabase/types").Json | null;
11609
+ db_old?: import("../integrations/supabase/types").Json | null;
11610
+ db_record?: string | null;
11611
+ db_table?: string | null;
11612
+ decision?: string | null;
11613
+ duration_ms?: number | null;
11614
+ error?: string | null;
11615
+ external_action?: string | null;
11616
+ external_ref?: string | null;
11617
+ external_response?: import("../integrations/supabase/types").Json | null;
11618
+ external_status?: string | null;
11619
+ external_system?: string | null;
11620
+ id?: string;
11621
+ input?: import("../integrations/supabase/types").Json | null;
11622
+ next_attempt_at?: string | null;
11623
+ order_ref?: string | null;
11624
+ order_source?: string | null;
11625
+ output?: import("../integrations/supabase/types").Json | null;
11626
+ phase: string;
11627
+ reads?: import("../integrations/supabase/types").Json | null;
11628
+ reason?: string | null;
11629
+ rule?: string | null;
11630
+ slip_ref?: string | null;
11631
+ status: string;
11632
+ step: string;
11633
+ trace_id?: string;
11634
+ values_used?: import("../integrations/supabase/types").Json | null;
11635
+ };
11636
+ Update: {
11637
+ actor?: string | null;
11638
+ attempts?: number;
11639
+ cart_ref?: string | null;
11640
+ created_at?: string;
11641
+ db_action?: string | null;
11642
+ db_new?: import("../integrations/supabase/types").Json | null;
11643
+ db_old?: import("../integrations/supabase/types").Json | null;
11644
+ db_record?: string | null;
11645
+ db_table?: string | null;
11646
+ decision?: string | null;
11647
+ duration_ms?: number | null;
11648
+ error?: string | null;
11649
+ external_action?: string | null;
11650
+ external_ref?: string | null;
11651
+ external_response?: import("../integrations/supabase/types").Json | null;
11652
+ external_status?: string | null;
11653
+ external_system?: string | null;
11654
+ id?: string;
11655
+ input?: import("../integrations/supabase/types").Json | null;
11656
+ next_attempt_at?: string | null;
11657
+ order_ref?: string | null;
11658
+ order_source?: string | null;
11659
+ output?: import("../integrations/supabase/types").Json | null;
11660
+ phase?: string;
11661
+ reads?: import("../integrations/supabase/types").Json | null;
11662
+ reason?: string | null;
11663
+ rule?: string | null;
11664
+ slip_ref?: string | null;
11665
+ status?: string;
11666
+ step?: string;
11667
+ trace_id?: string;
11668
+ values_used?: import("../integrations/supabase/types").Json | null;
11669
+ };
11670
+ Relationships: [];
11671
+ };
11162
11672
  logistics_variables: {
11163
11673
  Row: {
11164
11674
  created_at: string;
@@ -21731,6 +22241,15 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
21731
22241
  Args: never;
21732
22242
  Returns: boolean;
21733
22243
  };
22244
+ cancel_open_print_jobs: {
22245
+ Args: {
22246
+ _cutoff: string;
22247
+ };
22248
+ Returns: {
22249
+ extern_job_id: string;
22250
+ id: string;
22251
+ }[];
22252
+ };
21734
22253
  check_offer_product_available_stock: {
21735
22254
  Args: {
21736
22255
  p_campaign_product_id: string;
@@ -23269,6 +23788,12 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
23269
23788
  };
23270
23789
  Returns: string;
23271
23790
  };
23791
+ logistics_cart_checkin_at: {
23792
+ Args: {
23793
+ p_cart_id: string;
23794
+ };
23795
+ Returns: string;
23796
+ };
23272
23797
  logistics_cart_handled: {
23273
23798
  Args: {
23274
23799
  p_cart_index: number;
@@ -23302,10 +23827,22 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
23302
23827
  task_status: string;
23303
23828
  }[];
23304
23829
  };
23830
+ logistics_cart_is_full: {
23831
+ Args: {
23832
+ p_cart_id: string;
23833
+ };
23834
+ Returns: boolean;
23835
+ };
23305
23836
  logistics_cart_layout_method: {
23306
23837
  Args: never;
23307
23838
  Returns: import("../integrations/supabase/types").Json;
23308
23839
  };
23840
+ logistics_cart_order_refs: {
23841
+ Args: {
23842
+ p_cart_id: string;
23843
+ };
23844
+ Returns: string[];
23845
+ };
23309
23846
  logistics_cart_plan_overview: {
23310
23847
  Args: {
23311
23848
  p_days?: number;
@@ -23325,6 +23862,24 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
23325
23862
  };
23326
23863
  Returns: import("../integrations/supabase/types").Json;
23327
23864
  };
23865
+ logistics_cart_plan_status_core: {
23866
+ Args: {
23867
+ p_ref: string;
23868
+ };
23869
+ Returns: import("../integrations/supabase/types").Json;
23870
+ };
23871
+ logistics_cart_release_reason: {
23872
+ Args: {
23873
+ p_cart_id: string;
23874
+ };
23875
+ Returns: string;
23876
+ };
23877
+ logistics_cart_released: {
23878
+ Args: {
23879
+ p_cart_id: string;
23880
+ };
23881
+ Returns: boolean;
23882
+ };
23328
23883
  logistics_cart_seq: {
23329
23884
  Args: {
23330
23885
  p_order_uuid?: string;
@@ -23375,6 +23930,10 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
23375
23930
  unit_ref: string;
23376
23931
  }[];
23377
23932
  };
23933
+ logistics_carts_per_print: {
23934
+ Args: never;
23935
+ Returns: number;
23936
+ };
23378
23937
  logistics_check_order_allowed: {
23379
23938
  Args: {
23380
23939
  p_lines: import("../integrations/supabase/types").Json;
@@ -23478,6 +24037,10 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
23478
24037
  isSetofReturn: false;
23479
24038
  };
23480
24039
  };
24040
+ logistics_cleanup_orphan_print_jobs: {
24041
+ Args: never;
24042
+ Returns: import("../integrations/supabase/types").Json;
24043
+ };
23481
24044
  logistics_complete_task: {
23482
24045
  Args: {
23483
24046
  p_result?: import("../integrations/supabase/types").Json;
@@ -23729,6 +24292,20 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
23729
24292
  };
23730
24293
  Returns: string;
23731
24294
  };
24295
+ logistics_ensure_pick_data: {
24296
+ Args: {
24297
+ p_event_id?: string;
24298
+ p_missing?: import("../integrations/supabase/types").Json;
24299
+ p_ref: string;
24300
+ };
24301
+ Returns: import("../integrations/supabase/types").Json;
24302
+ };
24303
+ logistics_ensure_shipping_notes: {
24304
+ Args: {
24305
+ p_limit?: number;
24306
+ };
24307
+ Returns: import("../integrations/supabase/types").Json;
24308
+ };
23732
24309
  logistics_fail_task: {
23733
24310
  Args: {
23734
24311
  p_error: string;
@@ -23774,6 +24351,10 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
23774
24351
  isSetofReturn: false;
23775
24352
  };
23776
24353
  };
24354
+ logistics_fix_wrong_shipping_notes: {
24355
+ Args: never;
24356
+ Returns: import("../integrations/supabase/types").Json;
24357
+ };
23777
24358
  logistics_floriday_cart_plan: {
23778
24359
  Args: {
23779
24360
  p_order_id: string;
@@ -23801,6 +24382,10 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
23801
24382
  revision: number;
23802
24383
  }[];
23803
24384
  };
24385
+ logistics_floriday_delivery_note_create_enabled: {
24386
+ Args: never;
24387
+ Returns: boolean;
24388
+ };
23804
24389
  logistics_floriday_finish_push: {
23805
24390
  Args: {
23806
24391
  _error?: string;
@@ -23952,6 +24537,12 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
23952
24537
  };
23953
24538
  Returns: number;
23954
24539
  };
24540
+ logistics_merge_partial_carts: {
24541
+ Args: {
24542
+ p_limit?: number;
24543
+ };
24544
+ Returns: import("../integrations/supabase/types").Json;
24545
+ };
23955
24546
  logistics_next_workday_date: {
23956
24547
  Args: {
23957
24548
  p_date: string;
@@ -24038,6 +24629,12 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
24038
24629
  };
24039
24630
  Returns: string;
24040
24631
  };
24632
+ logistics_payload_is_floriday: {
24633
+ Args: {
24634
+ _payload: import("../integrations/supabase/types").Json;
24635
+ };
24636
+ Returns: boolean;
24637
+ };
24041
24638
  logistics_pick_agenda: {
24042
24639
  Args: {
24043
24640
  p_from?: string;
@@ -24066,6 +24663,10 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
24066
24663
  Args: never;
24067
24664
  Returns: import("../integrations/supabase/types").Json;
24068
24665
  };
24666
+ logistics_pick_partial_mode: {
24667
+ Args: never;
24668
+ Returns: string;
24669
+ };
24069
24670
  logistics_pick_start_estimate: {
24070
24671
  Args: {
24071
24672
  p_order: import("../integrations/supabase/types").Json;
@@ -24156,6 +24757,20 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
24156
24757
  Args: never;
24157
24758
  Returns: undefined;
24158
24759
  };
24760
+ logistics_plan_progress: {
24761
+ Args: {
24762
+ p_refs: string[];
24763
+ };
24764
+ Returns: {
24765
+ cart_plan_ready: boolean;
24766
+ cart_plan_reason: string;
24767
+ cart_plan_released: boolean;
24768
+ plan_progress: number;
24769
+ plan_state: string;
24770
+ plan_state_since: string;
24771
+ unit_ref: string;
24772
+ }[];
24773
+ };
24159
24774
  logistics_plan_prune: {
24160
24775
  Args: never;
24161
24776
  Returns: number;
@@ -24177,6 +24792,18 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
24177
24792
  };
24178
24793
  Returns: number;
24179
24794
  };
24795
+ logistics_plan_state_for: {
24796
+ Args: {
24797
+ p_ref: string;
24798
+ };
24799
+ Returns: import("../integrations/supabase/types").Json;
24800
+ };
24801
+ logistics_prepare_pick_documents: {
24802
+ Args: {
24803
+ p_limit?: number;
24804
+ };
24805
+ Returns: import("../integrations/supabase/types").Json;
24806
+ };
24180
24807
  logistics_prune_buffer_member_queue: {
24181
24808
  Args: never;
24182
24809
  Returns: number;
@@ -24217,18 +24844,36 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
24217
24844
  Args: never;
24218
24845
  Returns: import("../integrations/supabase/types").Json;
24219
24846
  };
24847
+ logistics_refresh_pick_queue_status: {
24848
+ Args: {
24849
+ p_ref: string;
24850
+ };
24851
+ Returns: number;
24852
+ };
24220
24853
  logistics_refresh_pickup_moments: {
24221
24854
  Args: {
24222
24855
  p_weeks?: number;
24223
24856
  };
24224
24857
  Returns: import("../integrations/supabase/types").Json;
24225
24858
  };
24859
+ logistics_refresh_plan_state: {
24860
+ Args: {
24861
+ p_limit?: number;
24862
+ };
24863
+ Returns: import("../integrations/supabase/types").Json;
24864
+ };
24226
24865
  logistics_replan_all: {
24227
24866
  Args: {
24228
24867
  p_reason?: string;
24229
24868
  };
24230
24869
  Returns: import("../integrations/supabase/types").Json;
24231
24870
  };
24871
+ logistics_replan_all_force: {
24872
+ Args: {
24873
+ p_reason?: string;
24874
+ };
24875
+ Returns: import("../integrations/supabase/types").Json;
24876
+ };
24232
24877
  logistics_report_delay: {
24233
24878
  Args: {
24234
24879
  p_expected_date?: string;
@@ -24385,6 +25030,74 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
24385
25030
  };
24386
25031
  Returns: import("../integrations/supabase/types").Json;
24387
25032
  };
25033
+ logistics_shipping_note_job_for_slip: {
25034
+ Args: {
25035
+ _slip_job_id: string;
25036
+ };
25037
+ Returns: string;
25038
+ };
25039
+ logistics_shipping_notes_wake_all: {
25040
+ Args: never;
25041
+ Returns: import("../integrations/supabase/types").Json;
25042
+ };
25043
+ logistics_slip_is_floriday: {
25044
+ Args: {
25045
+ _slip_job_id: string;
25046
+ };
25047
+ Returns: boolean;
25048
+ };
25049
+ logistics_slip_note_claim: {
25050
+ Args: {
25051
+ _lease_seconds?: number;
25052
+ _limit?: number;
25053
+ };
25054
+ Returns: {
25055
+ attempts: number;
25056
+ batch_key: string | null;
25057
+ cart_id: string | null;
25058
+ created_at: string;
25059
+ error: string | null;
25060
+ error_code: string | null;
25061
+ fulfillment_order_id: string | null;
25062
+ id: string;
25063
+ locked_until: string | null;
25064
+ next_attempt_at: string | null;
25065
+ order_id: string | null;
25066
+ order_number: string | null;
25067
+ print_job_id: string | null;
25068
+ printer_id: string | null;
25069
+ retry_class: string | null;
25070
+ slip_job_id: string;
25071
+ status: string;
25072
+ updated_at: string;
25073
+ }[];
25074
+ SetofOptions: {
25075
+ from: "*";
25076
+ to: "logistics_slip_shipping_note";
25077
+ isOneToOne: false;
25078
+ isSetofReturn: true;
25079
+ };
25080
+ };
25081
+ logistics_slip_note_finish: {
25082
+ Args: {
25083
+ _error?: string;
25084
+ _error_code?: string;
25085
+ _fulfillment_order_id?: string;
25086
+ _id: string;
25087
+ _ok: boolean;
25088
+ _print_job_id?: string;
25089
+ _status?: string;
25090
+ };
25091
+ Returns: undefined;
25092
+ };
25093
+ logistics_slip_note_keep_waiting: {
25094
+ Args: {
25095
+ _class?: string;
25096
+ _id: string;
25097
+ _reason: string;
25098
+ };
25099
+ Returns: undefined;
25100
+ };
24388
25101
  logistics_sticker_follows_slip: {
24389
25102
  Args: never;
24390
25103
  Returns: boolean;
@@ -24439,6 +25152,40 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
24439
25152
  name: string;
24440
25153
  }[];
24441
25154
  };
25155
+ logistics_trace: {
25156
+ Args: {
25157
+ p: import("../integrations/supabase/types").Json;
25158
+ };
25159
+ Returns: string;
25160
+ };
25161
+ logistics_trace_batch: {
25162
+ Args: {
25163
+ p: import("../integrations/supabase/types").Json;
25164
+ };
25165
+ Returns: number;
25166
+ };
25167
+ logistics_trace_orders: {
25168
+ Args: {
25169
+ p_limit?: number;
25170
+ p_search?: string;
25171
+ p_since?: string;
25172
+ p_status?: string;
25173
+ };
25174
+ Returns: import("../integrations/supabase/types").Json;
25175
+ };
25176
+ logistics_trace_redact: {
25177
+ Args: {
25178
+ p: import("../integrations/supabase/types").Json;
25179
+ };
25180
+ Returns: import("../integrations/supabase/types").Json;
25181
+ };
25182
+ logistics_trace_timeline: {
25183
+ Args: {
25184
+ p_limit?: number;
25185
+ p_order_ref: string;
25186
+ };
25187
+ Returns: import("../integrations/supabase/types").Json;
25188
+ };
24442
25189
  logistics_upsert_task: {
24443
25190
  Args: {
24444
25191
  p_buffer_ref: string;
@@ -25480,6 +26227,10 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
25480
26227
  };
25481
26228
  Returns: undefined;
25482
26229
  };
26230
+ prune_floriday_api_log: {
26231
+ Args: never;
26232
+ Returns: number;
26233
+ };
25483
26234
  quote_create_from_source: {
25484
26235
  Args: {
25485
26236
  _payload?: import("../integrations/supabase/types").Json;
@@ -25913,6 +26664,13 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
25913
26664
  };
25914
26665
  Returns: number;
25915
26666
  };
26667
+ schedule_floriday_catalog_prices_sync: {
26668
+ Args: {
26669
+ p_apikey: string;
26670
+ p_url: string;
26671
+ };
26672
+ Returns: number;
26673
+ };
25916
26674
  schedule_floriday_clock_presales_sync: {
25917
26675
  Args: {
25918
26676
  p_apikey: string;
@@ -26213,6 +26971,10 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
26213
26971
  };
26214
26972
  Returns: undefined;
26215
26973
  };
26974
+ sync_floriday_prices_into_price_groups: {
26975
+ Args: never;
26976
+ Returns: number;
26977
+ };
26216
26978
  sync_layer_stock: {
26217
26979
  Args: {
26218
26980
  p_product_id: string;
@@ -26345,6 +27107,10 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
26345
27107
  Args: never;
26346
27108
  Returns: string;
26347
27109
  };
27110
+ voorraad_cleanup_old_rows: {
27111
+ Args: never;
27112
+ Returns: import("../integrations/supabase/types").Json;
27113
+ };
26348
27114
  wake_print_queue: {
26349
27115
  Args: {
26350
27116
  _min_interval_ms?: number;
@@ -28647,6 +29413,45 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
28647
29413
  };
28648
29414
  Relationships: [];
28649
29415
  };
29416
+ customer_product_stickers: {
29417
+ Row: {
29418
+ created_at: string;
29419
+ customer_key: string;
29420
+ file_name: string;
29421
+ file_path: string;
29422
+ file_size: number | null;
29423
+ id: string;
29424
+ mime_type: string | null;
29425
+ trade_item_key: string;
29426
+ updated_at: string;
29427
+ uploaded_by: string | null;
29428
+ };
29429
+ Insert: {
29430
+ created_at?: string;
29431
+ customer_key: string;
29432
+ file_name: string;
29433
+ file_path: string;
29434
+ file_size?: number | null;
29435
+ id?: string;
29436
+ mime_type?: string | null;
29437
+ trade_item_key: string;
29438
+ updated_at?: string;
29439
+ uploaded_by?: string | null;
29440
+ };
29441
+ Update: {
29442
+ created_at?: string;
29443
+ customer_key?: string;
29444
+ file_name?: string;
29445
+ file_path?: string;
29446
+ file_size?: number | null;
29447
+ id?: string;
29448
+ mime_type?: string | null;
29449
+ trade_item_key?: string;
29450
+ updated_at?: string;
29451
+ uploaded_by?: string | null;
29452
+ };
29453
+ Relationships: [];
29454
+ };
28650
29455
  customer_selected_assortment: {
28651
29456
  Row: {
28652
29457
  article_number: string | null;
@@ -28695,6 +29500,30 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
28695
29500
  referencedColumns: ["id"];
28696
29501
  }];
28697
29502
  };
29503
+ customer_sticker_settings: {
29504
+ Row: {
29505
+ created_at: string;
29506
+ customer_key: string;
29507
+ height_mm: number;
29508
+ updated_at: string;
29509
+ width_mm: number;
29510
+ };
29511
+ Insert: {
29512
+ created_at?: string;
29513
+ customer_key: string;
29514
+ height_mm?: number;
29515
+ updated_at?: string;
29516
+ width_mm?: number;
29517
+ };
29518
+ Update: {
29519
+ created_at?: string;
29520
+ customer_key?: string;
29521
+ height_mm?: number;
29522
+ updated_at?: string;
29523
+ width_mm?: number;
29524
+ };
29525
+ Relationships: [];
29526
+ };
28698
29527
  customer_trade_settings: {
28699
29528
  Row: {
28700
29529
  category: string;
@@ -32025,6 +32854,102 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
32025
32854
  referencedColumns: ["id"];
32026
32855
  }];
32027
32856
  };
32857
+ floriday_api_log: {
32858
+ Row: {
32859
+ action: string | null;
32860
+ caller: string | null;
32861
+ connection_id: string | null;
32862
+ created_at: string;
32863
+ cursor_from: number | null;
32864
+ direction: string;
32865
+ duration_ms: number | null;
32866
+ environment: string | null;
32867
+ error: string | null;
32868
+ floriday_id: string | null;
32869
+ floriday_reference: string | null;
32870
+ http_status: number;
32871
+ id: string;
32872
+ item_count: number | null;
32873
+ kind: string | null;
32874
+ local_id: string | null;
32875
+ local_reference: string | null;
32876
+ method: string;
32877
+ module: string | null;
32878
+ ok: boolean;
32879
+ path: string;
32880
+ request: import("../integrations/supabase/types").Json | null;
32881
+ resource_type: string | null;
32882
+ response: import("../integrations/supabase/types").Json | null;
32883
+ write_log_id: string | null;
32884
+ };
32885
+ Insert: {
32886
+ action?: string | null;
32887
+ caller?: string | null;
32888
+ connection_id?: string | null;
32889
+ created_at?: string;
32890
+ cursor_from?: number | null;
32891
+ direction: string;
32892
+ duration_ms?: number | null;
32893
+ environment?: string | null;
32894
+ error?: string | null;
32895
+ floriday_id?: string | null;
32896
+ floriday_reference?: string | null;
32897
+ http_status?: number;
32898
+ id?: string;
32899
+ item_count?: number | null;
32900
+ kind?: string | null;
32901
+ local_id?: string | null;
32902
+ local_reference?: string | null;
32903
+ method: string;
32904
+ module?: string | null;
32905
+ ok?: boolean;
32906
+ path: string;
32907
+ request?: import("../integrations/supabase/types").Json | null;
32908
+ resource_type?: string | null;
32909
+ response?: import("../integrations/supabase/types").Json | null;
32910
+ write_log_id?: string | null;
32911
+ };
32912
+ Update: {
32913
+ action?: string | null;
32914
+ caller?: string | null;
32915
+ connection_id?: string | null;
32916
+ created_at?: string;
32917
+ cursor_from?: number | null;
32918
+ direction?: string;
32919
+ duration_ms?: number | null;
32920
+ environment?: string | null;
32921
+ error?: string | null;
32922
+ floriday_id?: string | null;
32923
+ floriday_reference?: string | null;
32924
+ http_status?: number;
32925
+ id?: string;
32926
+ item_count?: number | null;
32927
+ kind?: string | null;
32928
+ local_id?: string | null;
32929
+ local_reference?: string | null;
32930
+ method?: string;
32931
+ module?: string | null;
32932
+ ok?: boolean;
32933
+ path?: string;
32934
+ request?: import("../integrations/supabase/types").Json | null;
32935
+ resource_type?: string | null;
32936
+ response?: import("../integrations/supabase/types").Json | null;
32937
+ write_log_id?: string | null;
32938
+ };
32939
+ Relationships: [{
32940
+ foreignKeyName: "floriday_api_log_connection_id_fkey";
32941
+ columns: ["connection_id"];
32942
+ isOneToOne: false;
32943
+ referencedRelation: "floriday_connections";
32944
+ referencedColumns: ["id"];
32945
+ }, {
32946
+ foreignKeyName: "floriday_api_log_write_log_id_fkey";
32947
+ columns: ["write_log_id"];
32948
+ isOneToOne: false;
32949
+ referencedRelation: "floriday_write_log";
32950
+ referencedColumns: ["id"];
32951
+ }];
32952
+ };
32028
32953
  floriday_auction_letters_cache: {
32029
32954
  Row: {
32030
32955
  auction_letter_code: string;
@@ -32232,6 +33157,84 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
32232
33157
  referencedColumns: ["id"];
32233
33158
  }];
32234
33159
  };
33160
+ floriday_catalog_prices_cache: {
33161
+ Row: {
33162
+ connection_id: string;
33163
+ created_at: string;
33164
+ currency: string;
33165
+ id: string;
33166
+ is_deleted: boolean;
33167
+ price: number | null;
33168
+ price_group_id: string | null;
33169
+ price_group_name: string | null;
33170
+ price_type: string;
33171
+ raw: import("../integrations/supabase/types").Json | null;
33172
+ sales_unit: string | null;
33173
+ sequence_number: number;
33174
+ supplier_article_code: string | null;
33175
+ supply_line_id: string;
33176
+ synced_at: string;
33177
+ trade_item_id: string | null;
33178
+ updated_at: string;
33179
+ valid_from: string | null;
33180
+ valid_to: string | null;
33181
+ week: number | null;
33182
+ year: number | null;
33183
+ };
33184
+ Insert: {
33185
+ connection_id: string;
33186
+ created_at?: string;
33187
+ currency?: string;
33188
+ id?: string;
33189
+ is_deleted?: boolean;
33190
+ price?: number | null;
33191
+ price_group_id?: string | null;
33192
+ price_group_name?: string | null;
33193
+ price_type?: string;
33194
+ raw?: import("../integrations/supabase/types").Json | null;
33195
+ sales_unit?: string | null;
33196
+ sequence_number?: number;
33197
+ supplier_article_code?: string | null;
33198
+ supply_line_id: string;
33199
+ synced_at?: string;
33200
+ trade_item_id?: string | null;
33201
+ updated_at?: string;
33202
+ valid_from?: string | null;
33203
+ valid_to?: string | null;
33204
+ week?: number | null;
33205
+ year?: number | null;
33206
+ };
33207
+ Update: {
33208
+ connection_id?: string;
33209
+ created_at?: string;
33210
+ currency?: string;
33211
+ id?: string;
33212
+ is_deleted?: boolean;
33213
+ price?: number | null;
33214
+ price_group_id?: string | null;
33215
+ price_group_name?: string | null;
33216
+ price_type?: string;
33217
+ raw?: import("../integrations/supabase/types").Json | null;
33218
+ sales_unit?: string | null;
33219
+ sequence_number?: number;
33220
+ supplier_article_code?: string | null;
33221
+ supply_line_id?: string;
33222
+ synced_at?: string;
33223
+ trade_item_id?: string | null;
33224
+ updated_at?: string;
33225
+ valid_from?: string | null;
33226
+ valid_to?: string | null;
33227
+ week?: number | null;
33228
+ year?: number | null;
33229
+ };
33230
+ Relationships: [{
33231
+ foreignKeyName: "floriday_catalog_prices_cache_connection_id_fkey";
33232
+ columns: ["connection_id"];
33233
+ isOneToOne: false;
33234
+ referencedRelation: "floriday_connections";
33235
+ referencedColumns: ["id"];
33236
+ }];
33237
+ };
32235
33238
  floriday_clock_presales_cache: {
32236
33239
  Row: {
32237
33240
  buyer_organization_id: string | null;
@@ -33147,6 +34150,69 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
33147
34150
  referencedColumns: ["id"];
33148
34151
  }];
33149
34152
  };
34153
+ floriday_link_templates: {
34154
+ Row: {
34155
+ created_at: string;
34156
+ floriday_url_template: string | null;
34157
+ is_active: boolean;
34158
+ label: string;
34159
+ local_url_template: string | null;
34160
+ resource_type: string;
34161
+ updated_at: string;
34162
+ };
34163
+ Insert: {
34164
+ created_at?: string;
34165
+ floriday_url_template?: string | null;
34166
+ is_active?: boolean;
34167
+ label: string;
34168
+ local_url_template?: string | null;
34169
+ resource_type: string;
34170
+ updated_at?: string;
34171
+ };
34172
+ Update: {
34173
+ created_at?: string;
34174
+ floriday_url_template?: string | null;
34175
+ is_active?: boolean;
34176
+ label?: string;
34177
+ local_url_template?: string | null;
34178
+ resource_type?: string;
34179
+ updated_at?: string;
34180
+ };
34181
+ Relationships: [];
34182
+ };
34183
+ floriday_log_retention: {
34184
+ Row: {
34185
+ created_at: string;
34186
+ direction: string | null;
34187
+ id: string;
34188
+ keep_failed_days: number | null;
34189
+ keep_ok_days: number | null;
34190
+ note: string | null;
34191
+ resource_type: string | null;
34192
+ updated_at: string;
34193
+ };
34194
+ Insert: {
34195
+ created_at?: string;
34196
+ direction?: string | null;
34197
+ id?: string;
34198
+ keep_failed_days?: number | null;
34199
+ keep_ok_days?: number | null;
34200
+ note?: string | null;
34201
+ resource_type?: string | null;
34202
+ updated_at?: string;
34203
+ };
34204
+ Update: {
34205
+ created_at?: string;
34206
+ direction?: string | null;
34207
+ id?: string;
34208
+ keep_failed_days?: number | null;
34209
+ keep_ok_days?: number | null;
34210
+ note?: string | null;
34211
+ resource_type?: string | null;
34212
+ updated_at?: string;
34213
+ };
34214
+ Relationships: [];
34215
+ };
33150
34216
  floriday_logistic_labels_cache: {
33151
34217
  Row: {
33152
34218
  byte_size: number | null;
@@ -36771,6 +37837,48 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
36771
37837
  };
36772
37838
  Relationships: [];
36773
37839
  };
37840
+ logistics_pick_data_requests: {
37841
+ Row: {
37842
+ actions: import("../integrations/supabase/types").Json;
37843
+ created_at: string;
37844
+ event_id: string | null;
37845
+ finished_at: string | null;
37846
+ id: string;
37847
+ missing: import("../integrations/supabase/types").Json;
37848
+ order_ref: string;
37849
+ reason: string | null;
37850
+ result: import("../integrations/supabase/types").Json | null;
37851
+ status: string;
37852
+ unit_ref: string | null;
37853
+ };
37854
+ Insert: {
37855
+ actions?: import("../integrations/supabase/types").Json;
37856
+ created_at?: string;
37857
+ event_id?: string | null;
37858
+ finished_at?: string | null;
37859
+ id?: string;
37860
+ missing?: import("../integrations/supabase/types").Json;
37861
+ order_ref: string;
37862
+ reason?: string | null;
37863
+ result?: import("../integrations/supabase/types").Json | null;
37864
+ status?: string;
37865
+ unit_ref?: string | null;
37866
+ };
37867
+ Update: {
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
+ Relationships: [];
37881
+ };
36774
37882
  logistics_pickup_moments: {
36775
37883
  Row: {
36776
37884
  carrier_ref: string | null;
@@ -37230,6 +38338,69 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
37230
38338
  };
37231
38339
  Relationships: [];
37232
38340
  };
38341
+ logistics_slip_shipping_note: {
38342
+ Row: {
38343
+ attempts: number;
38344
+ batch_key: string | null;
38345
+ cart_id: string | null;
38346
+ created_at: string;
38347
+ error: string | null;
38348
+ error_code: string | null;
38349
+ fulfillment_order_id: string | null;
38350
+ id: string;
38351
+ locked_until: string | null;
38352
+ next_attempt_at: string | null;
38353
+ order_id: string | null;
38354
+ order_number: string | null;
38355
+ print_job_id: string | null;
38356
+ printer_id: string | null;
38357
+ retry_class: string | null;
38358
+ slip_job_id: string;
38359
+ status: string;
38360
+ updated_at: string;
38361
+ };
38362
+ Insert: {
38363
+ attempts?: number;
38364
+ batch_key?: string | null;
38365
+ cart_id?: string | null;
38366
+ created_at?: string;
38367
+ error?: string | null;
38368
+ error_code?: string | null;
38369
+ fulfillment_order_id?: string | null;
38370
+ id?: string;
38371
+ locked_until?: string | null;
38372
+ next_attempt_at?: string | null;
38373
+ order_id?: string | null;
38374
+ order_number?: string | null;
38375
+ print_job_id?: string | null;
38376
+ printer_id?: string | null;
38377
+ retry_class?: string | null;
38378
+ slip_job_id: string;
38379
+ status?: string;
38380
+ updated_at?: string;
38381
+ };
38382
+ Update: {
38383
+ attempts?: number;
38384
+ batch_key?: string | null;
38385
+ cart_id?: string | null;
38386
+ created_at?: string;
38387
+ error?: string | null;
38388
+ error_code?: string | null;
38389
+ fulfillment_order_id?: string | null;
38390
+ id?: string;
38391
+ locked_until?: string | null;
38392
+ next_attempt_at?: string | null;
38393
+ order_id?: string | null;
38394
+ order_number?: string | null;
38395
+ print_job_id?: string | null;
38396
+ printer_id?: string | null;
38397
+ retry_class?: string | null;
38398
+ slip_job_id?: string;
38399
+ status?: string;
38400
+ updated_at?: string;
38401
+ };
38402
+ Relationships: [];
38403
+ };
37233
38404
  logistics_staff_planning: {
37234
38405
  Row: {
37235
38406
  created_at: string;
@@ -37581,6 +38752,111 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
37581
38752
  };
37582
38753
  Relationships: [];
37583
38754
  };
38755
+ logistics_trace_events: {
38756
+ Row: {
38757
+ actor: string | null;
38758
+ attempts: number;
38759
+ cart_ref: string | null;
38760
+ created_at: string;
38761
+ db_action: string | null;
38762
+ db_new: import("../integrations/supabase/types").Json | null;
38763
+ db_old: import("../integrations/supabase/types").Json | null;
38764
+ db_record: string | null;
38765
+ db_table: string | null;
38766
+ decision: string | null;
38767
+ duration_ms: number | null;
38768
+ error: string | null;
38769
+ external_action: string | null;
38770
+ external_ref: string | null;
38771
+ external_response: import("../integrations/supabase/types").Json | null;
38772
+ external_status: string | null;
38773
+ external_system: string | null;
38774
+ id: string;
38775
+ input: import("../integrations/supabase/types").Json | null;
38776
+ next_attempt_at: string | null;
38777
+ order_ref: string | null;
38778
+ order_source: string | null;
38779
+ output: import("../integrations/supabase/types").Json | null;
38780
+ phase: string;
38781
+ reads: import("../integrations/supabase/types").Json | null;
38782
+ reason: string | null;
38783
+ rule: string | null;
38784
+ slip_ref: string | null;
38785
+ status: string;
38786
+ step: string;
38787
+ trace_id: string;
38788
+ values_used: import("../integrations/supabase/types").Json | null;
38789
+ };
38790
+ Insert: {
38791
+ actor?: string | null;
38792
+ attempts?: number;
38793
+ cart_ref?: string | null;
38794
+ created_at?: string;
38795
+ db_action?: string | null;
38796
+ db_new?: import("../integrations/supabase/types").Json | null;
38797
+ db_old?: import("../integrations/supabase/types").Json | null;
38798
+ db_record?: string | null;
38799
+ db_table?: string | null;
38800
+ decision?: string | null;
38801
+ duration_ms?: number | null;
38802
+ error?: string | null;
38803
+ external_action?: string | null;
38804
+ external_ref?: string | null;
38805
+ external_response?: import("../integrations/supabase/types").Json | null;
38806
+ external_status?: string | null;
38807
+ external_system?: string | null;
38808
+ id?: string;
38809
+ input?: import("../integrations/supabase/types").Json | null;
38810
+ next_attempt_at?: string | null;
38811
+ order_ref?: string | null;
38812
+ order_source?: string | null;
38813
+ output?: import("../integrations/supabase/types").Json | null;
38814
+ phase: string;
38815
+ reads?: import("../integrations/supabase/types").Json | null;
38816
+ reason?: string | null;
38817
+ rule?: string | null;
38818
+ slip_ref?: string | null;
38819
+ status: string;
38820
+ step: string;
38821
+ trace_id?: string;
38822
+ values_used?: import("../integrations/supabase/types").Json | null;
38823
+ };
38824
+ Update: {
38825
+ actor?: string | null;
38826
+ attempts?: number;
38827
+ cart_ref?: string | null;
38828
+ created_at?: string;
38829
+ db_action?: string | null;
38830
+ db_new?: import("../integrations/supabase/types").Json | null;
38831
+ db_old?: import("../integrations/supabase/types").Json | null;
38832
+ db_record?: string | null;
38833
+ db_table?: string | null;
38834
+ decision?: string | null;
38835
+ duration_ms?: number | null;
38836
+ error?: string | null;
38837
+ external_action?: string | null;
38838
+ external_ref?: string | null;
38839
+ external_response?: import("../integrations/supabase/types").Json | null;
38840
+ external_status?: string | null;
38841
+ external_system?: string | null;
38842
+ id?: string;
38843
+ input?: import("../integrations/supabase/types").Json | null;
38844
+ next_attempt_at?: string | null;
38845
+ order_ref?: string | null;
38846
+ order_source?: string | null;
38847
+ output?: import("../integrations/supabase/types").Json | null;
38848
+ phase?: string;
38849
+ reads?: import("../integrations/supabase/types").Json | null;
38850
+ reason?: string | null;
38851
+ rule?: string | null;
38852
+ slip_ref?: string | null;
38853
+ status?: string;
38854
+ step?: string;
38855
+ trace_id?: string;
38856
+ values_used?: import("../integrations/supabase/types").Json | null;
38857
+ };
38858
+ Relationships: [];
38859
+ };
37584
38860
  logistics_variables: {
37585
38861
  Row: {
37586
38862
  created_at: string;
@@ -48153,6 +49429,15 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
48153
49429
  Args: never;
48154
49430
  Returns: boolean;
48155
49431
  };
49432
+ cancel_open_print_jobs: {
49433
+ Args: {
49434
+ _cutoff: string;
49435
+ };
49436
+ Returns: {
49437
+ extern_job_id: string;
49438
+ id: string;
49439
+ }[];
49440
+ };
48156
49441
  check_offer_product_available_stock: {
48157
49442
  Args: {
48158
49443
  p_campaign_product_id: string;
@@ -49691,6 +50976,12 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
49691
50976
  };
49692
50977
  Returns: string;
49693
50978
  };
50979
+ logistics_cart_checkin_at: {
50980
+ Args: {
50981
+ p_cart_id: string;
50982
+ };
50983
+ Returns: string;
50984
+ };
49694
50985
  logistics_cart_handled: {
49695
50986
  Args: {
49696
50987
  p_cart_index: number;
@@ -49724,10 +51015,22 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
49724
51015
  task_status: string;
49725
51016
  }[];
49726
51017
  };
51018
+ logistics_cart_is_full: {
51019
+ Args: {
51020
+ p_cart_id: string;
51021
+ };
51022
+ Returns: boolean;
51023
+ };
49727
51024
  logistics_cart_layout_method: {
49728
51025
  Args: never;
49729
51026
  Returns: import("../integrations/supabase/types").Json;
49730
51027
  };
51028
+ logistics_cart_order_refs: {
51029
+ Args: {
51030
+ p_cart_id: string;
51031
+ };
51032
+ Returns: string[];
51033
+ };
49731
51034
  logistics_cart_plan_overview: {
49732
51035
  Args: {
49733
51036
  p_days?: number;
@@ -49747,6 +51050,24 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
49747
51050
  };
49748
51051
  Returns: import("../integrations/supabase/types").Json;
49749
51052
  };
51053
+ logistics_cart_plan_status_core: {
51054
+ Args: {
51055
+ p_ref: string;
51056
+ };
51057
+ Returns: import("../integrations/supabase/types").Json;
51058
+ };
51059
+ logistics_cart_release_reason: {
51060
+ Args: {
51061
+ p_cart_id: string;
51062
+ };
51063
+ Returns: string;
51064
+ };
51065
+ logistics_cart_released: {
51066
+ Args: {
51067
+ p_cart_id: string;
51068
+ };
51069
+ Returns: boolean;
51070
+ };
49750
51071
  logistics_cart_seq: {
49751
51072
  Args: {
49752
51073
  p_order_uuid?: string;
@@ -49797,6 +51118,10 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
49797
51118
  unit_ref: string;
49798
51119
  }[];
49799
51120
  };
51121
+ logistics_carts_per_print: {
51122
+ Args: never;
51123
+ Returns: number;
51124
+ };
49800
51125
  logistics_check_order_allowed: {
49801
51126
  Args: {
49802
51127
  p_lines: import("../integrations/supabase/types").Json;
@@ -49900,6 +51225,10 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
49900
51225
  isSetofReturn: false;
49901
51226
  };
49902
51227
  };
51228
+ logistics_cleanup_orphan_print_jobs: {
51229
+ Args: never;
51230
+ Returns: import("../integrations/supabase/types").Json;
51231
+ };
49903
51232
  logistics_complete_task: {
49904
51233
  Args: {
49905
51234
  p_result?: import("../integrations/supabase/types").Json;
@@ -50151,6 +51480,20 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
50151
51480
  };
50152
51481
  Returns: string;
50153
51482
  };
51483
+ logistics_ensure_pick_data: {
51484
+ Args: {
51485
+ p_event_id?: string;
51486
+ p_missing?: import("../integrations/supabase/types").Json;
51487
+ p_ref: string;
51488
+ };
51489
+ Returns: import("../integrations/supabase/types").Json;
51490
+ };
51491
+ logistics_ensure_shipping_notes: {
51492
+ Args: {
51493
+ p_limit?: number;
51494
+ };
51495
+ Returns: import("../integrations/supabase/types").Json;
51496
+ };
50154
51497
  logistics_fail_task: {
50155
51498
  Args: {
50156
51499
  p_error: string;
@@ -50196,6 +51539,10 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
50196
51539
  isSetofReturn: false;
50197
51540
  };
50198
51541
  };
51542
+ logistics_fix_wrong_shipping_notes: {
51543
+ Args: never;
51544
+ Returns: import("../integrations/supabase/types").Json;
51545
+ };
50199
51546
  logistics_floriday_cart_plan: {
50200
51547
  Args: {
50201
51548
  p_order_id: string;
@@ -50223,6 +51570,10 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
50223
51570
  revision: number;
50224
51571
  }[];
50225
51572
  };
51573
+ logistics_floriday_delivery_note_create_enabled: {
51574
+ Args: never;
51575
+ Returns: boolean;
51576
+ };
50226
51577
  logistics_floriday_finish_push: {
50227
51578
  Args: {
50228
51579
  _error?: string;
@@ -50374,6 +51725,12 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
50374
51725
  };
50375
51726
  Returns: number;
50376
51727
  };
51728
+ logistics_merge_partial_carts: {
51729
+ Args: {
51730
+ p_limit?: number;
51731
+ };
51732
+ Returns: import("../integrations/supabase/types").Json;
51733
+ };
50377
51734
  logistics_next_workday_date: {
50378
51735
  Args: {
50379
51736
  p_date: string;
@@ -50460,6 +51817,12 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
50460
51817
  };
50461
51818
  Returns: string;
50462
51819
  };
51820
+ logistics_payload_is_floriday: {
51821
+ Args: {
51822
+ _payload: import("../integrations/supabase/types").Json;
51823
+ };
51824
+ Returns: boolean;
51825
+ };
50463
51826
  logistics_pick_agenda: {
50464
51827
  Args: {
50465
51828
  p_from?: string;
@@ -50488,6 +51851,10 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
50488
51851
  Args: never;
50489
51852
  Returns: import("../integrations/supabase/types").Json;
50490
51853
  };
51854
+ logistics_pick_partial_mode: {
51855
+ Args: never;
51856
+ Returns: string;
51857
+ };
50491
51858
  logistics_pick_start_estimate: {
50492
51859
  Args: {
50493
51860
  p_order: import("../integrations/supabase/types").Json;
@@ -50578,6 +51945,20 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
50578
51945
  Args: never;
50579
51946
  Returns: undefined;
50580
51947
  };
51948
+ logistics_plan_progress: {
51949
+ Args: {
51950
+ p_refs: string[];
51951
+ };
51952
+ Returns: {
51953
+ cart_plan_ready: boolean;
51954
+ cart_plan_reason: string;
51955
+ cart_plan_released: boolean;
51956
+ plan_progress: number;
51957
+ plan_state: string;
51958
+ plan_state_since: string;
51959
+ unit_ref: string;
51960
+ }[];
51961
+ };
50581
51962
  logistics_plan_prune: {
50582
51963
  Args: never;
50583
51964
  Returns: number;
@@ -50599,6 +51980,18 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
50599
51980
  };
50600
51981
  Returns: number;
50601
51982
  };
51983
+ logistics_plan_state_for: {
51984
+ Args: {
51985
+ p_ref: string;
51986
+ };
51987
+ Returns: import("../integrations/supabase/types").Json;
51988
+ };
51989
+ logistics_prepare_pick_documents: {
51990
+ Args: {
51991
+ p_limit?: number;
51992
+ };
51993
+ Returns: import("../integrations/supabase/types").Json;
51994
+ };
50602
51995
  logistics_prune_buffer_member_queue: {
50603
51996
  Args: never;
50604
51997
  Returns: number;
@@ -50639,18 +52032,36 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
50639
52032
  Args: never;
50640
52033
  Returns: import("../integrations/supabase/types").Json;
50641
52034
  };
52035
+ logistics_refresh_pick_queue_status: {
52036
+ Args: {
52037
+ p_ref: string;
52038
+ };
52039
+ Returns: number;
52040
+ };
50642
52041
  logistics_refresh_pickup_moments: {
50643
52042
  Args: {
50644
52043
  p_weeks?: number;
50645
52044
  };
50646
52045
  Returns: import("../integrations/supabase/types").Json;
50647
52046
  };
52047
+ logistics_refresh_plan_state: {
52048
+ Args: {
52049
+ p_limit?: number;
52050
+ };
52051
+ Returns: import("../integrations/supabase/types").Json;
52052
+ };
50648
52053
  logistics_replan_all: {
50649
52054
  Args: {
50650
52055
  p_reason?: string;
50651
52056
  };
50652
52057
  Returns: import("../integrations/supabase/types").Json;
50653
52058
  };
52059
+ logistics_replan_all_force: {
52060
+ Args: {
52061
+ p_reason?: string;
52062
+ };
52063
+ Returns: import("../integrations/supabase/types").Json;
52064
+ };
50654
52065
  logistics_report_delay: {
50655
52066
  Args: {
50656
52067
  p_expected_date?: string;
@@ -50807,6 +52218,74 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
50807
52218
  };
50808
52219
  Returns: import("../integrations/supabase/types").Json;
50809
52220
  };
52221
+ logistics_shipping_note_job_for_slip: {
52222
+ Args: {
52223
+ _slip_job_id: string;
52224
+ };
52225
+ Returns: string;
52226
+ };
52227
+ logistics_shipping_notes_wake_all: {
52228
+ Args: never;
52229
+ Returns: import("../integrations/supabase/types").Json;
52230
+ };
52231
+ logistics_slip_is_floriday: {
52232
+ Args: {
52233
+ _slip_job_id: string;
52234
+ };
52235
+ Returns: boolean;
52236
+ };
52237
+ logistics_slip_note_claim: {
52238
+ Args: {
52239
+ _lease_seconds?: number;
52240
+ _limit?: number;
52241
+ };
52242
+ Returns: {
52243
+ attempts: number;
52244
+ batch_key: string | null;
52245
+ cart_id: string | null;
52246
+ created_at: string;
52247
+ error: string | null;
52248
+ error_code: string | null;
52249
+ fulfillment_order_id: string | null;
52250
+ id: string;
52251
+ locked_until: string | null;
52252
+ next_attempt_at: string | null;
52253
+ order_id: string | null;
52254
+ order_number: string | null;
52255
+ print_job_id: string | null;
52256
+ printer_id: string | null;
52257
+ retry_class: string | null;
52258
+ slip_job_id: string;
52259
+ status: string;
52260
+ updated_at: string;
52261
+ }[];
52262
+ SetofOptions: {
52263
+ from: "*";
52264
+ to: "logistics_slip_shipping_note";
52265
+ isOneToOne: false;
52266
+ isSetofReturn: true;
52267
+ };
52268
+ };
52269
+ logistics_slip_note_finish: {
52270
+ Args: {
52271
+ _error?: string;
52272
+ _error_code?: string;
52273
+ _fulfillment_order_id?: string;
52274
+ _id: string;
52275
+ _ok: boolean;
52276
+ _print_job_id?: string;
52277
+ _status?: string;
52278
+ };
52279
+ Returns: undefined;
52280
+ };
52281
+ logistics_slip_note_keep_waiting: {
52282
+ Args: {
52283
+ _class?: string;
52284
+ _id: string;
52285
+ _reason: string;
52286
+ };
52287
+ Returns: undefined;
52288
+ };
50810
52289
  logistics_sticker_follows_slip: {
50811
52290
  Args: never;
50812
52291
  Returns: boolean;
@@ -50861,6 +52340,40 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
50861
52340
  name: string;
50862
52341
  }[];
50863
52342
  };
52343
+ logistics_trace: {
52344
+ Args: {
52345
+ p: import("../integrations/supabase/types").Json;
52346
+ };
52347
+ Returns: string;
52348
+ };
52349
+ logistics_trace_batch: {
52350
+ Args: {
52351
+ p: import("../integrations/supabase/types").Json;
52352
+ };
52353
+ Returns: number;
52354
+ };
52355
+ logistics_trace_orders: {
52356
+ Args: {
52357
+ p_limit?: number;
52358
+ p_search?: string;
52359
+ p_since?: string;
52360
+ p_status?: string;
52361
+ };
52362
+ Returns: import("../integrations/supabase/types").Json;
52363
+ };
52364
+ logistics_trace_redact: {
52365
+ Args: {
52366
+ p: import("../integrations/supabase/types").Json;
52367
+ };
52368
+ Returns: import("../integrations/supabase/types").Json;
52369
+ };
52370
+ logistics_trace_timeline: {
52371
+ Args: {
52372
+ p_limit?: number;
52373
+ p_order_ref: string;
52374
+ };
52375
+ Returns: import("../integrations/supabase/types").Json;
52376
+ };
50864
52377
  logistics_upsert_task: {
50865
52378
  Args: {
50866
52379
  p_buffer_ref: string;
@@ -51902,6 +53415,10 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
51902
53415
  };
51903
53416
  Returns: undefined;
51904
53417
  };
53418
+ prune_floriday_api_log: {
53419
+ Args: never;
53420
+ Returns: number;
53421
+ };
51905
53422
  quote_create_from_source: {
51906
53423
  Args: {
51907
53424
  _payload?: import("../integrations/supabase/types").Json;
@@ -52335,6 +53852,13 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
52335
53852
  };
52336
53853
  Returns: number;
52337
53854
  };
53855
+ schedule_floriday_catalog_prices_sync: {
53856
+ Args: {
53857
+ p_apikey: string;
53858
+ p_url: string;
53859
+ };
53860
+ Returns: number;
53861
+ };
52338
53862
  schedule_floriday_clock_presales_sync: {
52339
53863
  Args: {
52340
53864
  p_apikey: string;
@@ -52635,6 +54159,10 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
52635
54159
  };
52636
54160
  Returns: undefined;
52637
54161
  };
54162
+ sync_floriday_prices_into_price_groups: {
54163
+ Args: never;
54164
+ Returns: number;
54165
+ };
52638
54166
  sync_layer_stock: {
52639
54167
  Args: {
52640
54168
  p_product_id: string;
@@ -52767,6 +54295,10 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
52767
54295
  Args: never;
52768
54296
  Returns: string;
52769
54297
  };
54298
+ voorraad_cleanup_old_rows: {
54299
+ Args: never;
54300
+ Returns: import("../integrations/supabase/types").Json;
54301
+ };
52770
54302
  wake_print_queue: {
52771
54303
  Args: {
52772
54304
  _min_interval_ms?: number;