@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
@@ -2234,6 +2234,45 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
2234
2234
  };
2235
2235
  Relationships: [];
2236
2236
  };
2237
+ customer_product_stickers: {
2238
+ Row: {
2239
+ created_at: string;
2240
+ customer_key: string;
2241
+ file_name: string;
2242
+ file_path: string;
2243
+ file_size: number | null;
2244
+ id: string;
2245
+ mime_type: string | null;
2246
+ trade_item_key: string;
2247
+ updated_at: string;
2248
+ uploaded_by: string | null;
2249
+ };
2250
+ Insert: {
2251
+ created_at?: string;
2252
+ customer_key: string;
2253
+ file_name: string;
2254
+ file_path: string;
2255
+ file_size?: number | null;
2256
+ id?: string;
2257
+ mime_type?: string | null;
2258
+ trade_item_key: string;
2259
+ updated_at?: string;
2260
+ uploaded_by?: string | null;
2261
+ };
2262
+ Update: {
2263
+ created_at?: string;
2264
+ customer_key?: string;
2265
+ file_name?: string;
2266
+ file_path?: string;
2267
+ file_size?: number | null;
2268
+ id?: string;
2269
+ mime_type?: string | null;
2270
+ trade_item_key?: string;
2271
+ updated_at?: string;
2272
+ uploaded_by?: string | null;
2273
+ };
2274
+ Relationships: [];
2275
+ };
2237
2276
  customer_selected_assortment: {
2238
2277
  Row: {
2239
2278
  article_number: string | null;
@@ -2282,6 +2321,30 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
2282
2321
  referencedColumns: ["id"];
2283
2322
  }];
2284
2323
  };
2324
+ customer_sticker_settings: {
2325
+ Row: {
2326
+ created_at: string;
2327
+ customer_key: string;
2328
+ height_mm: number;
2329
+ updated_at: string;
2330
+ width_mm: number;
2331
+ };
2332
+ Insert: {
2333
+ created_at?: string;
2334
+ customer_key: string;
2335
+ height_mm?: number;
2336
+ updated_at?: string;
2337
+ width_mm?: number;
2338
+ };
2339
+ Update: {
2340
+ created_at?: string;
2341
+ customer_key?: string;
2342
+ height_mm?: number;
2343
+ updated_at?: string;
2344
+ width_mm?: number;
2345
+ };
2346
+ Relationships: [];
2347
+ };
2285
2348
  customer_trade_settings: {
2286
2349
  Row: {
2287
2350
  category: string;
@@ -5612,6 +5675,102 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
5612
5675
  referencedColumns: ["id"];
5613
5676
  }];
5614
5677
  };
5678
+ floriday_api_log: {
5679
+ Row: {
5680
+ action: string | null;
5681
+ caller: string | null;
5682
+ connection_id: string | null;
5683
+ created_at: string;
5684
+ cursor_from: number | null;
5685
+ direction: string;
5686
+ duration_ms: number | null;
5687
+ environment: string | null;
5688
+ error: string | null;
5689
+ floriday_id: string | null;
5690
+ floriday_reference: string | null;
5691
+ http_status: number;
5692
+ id: string;
5693
+ item_count: number | null;
5694
+ kind: string | null;
5695
+ local_id: string | null;
5696
+ local_reference: string | null;
5697
+ method: string;
5698
+ module: string | null;
5699
+ ok: boolean;
5700
+ path: string;
5701
+ request: import("../integrations/supabase/types").Json | null;
5702
+ resource_type: string | null;
5703
+ response: import("../integrations/supabase/types").Json | null;
5704
+ write_log_id: string | null;
5705
+ };
5706
+ Insert: {
5707
+ action?: string | null;
5708
+ caller?: string | null;
5709
+ connection_id?: string | null;
5710
+ created_at?: string;
5711
+ cursor_from?: number | null;
5712
+ direction: string;
5713
+ duration_ms?: number | null;
5714
+ environment?: string | null;
5715
+ error?: string | null;
5716
+ floriday_id?: string | null;
5717
+ floriday_reference?: string | null;
5718
+ http_status?: number;
5719
+ id?: string;
5720
+ item_count?: number | null;
5721
+ kind?: string | null;
5722
+ local_id?: string | null;
5723
+ local_reference?: string | null;
5724
+ method: string;
5725
+ module?: string | null;
5726
+ ok?: boolean;
5727
+ path: string;
5728
+ request?: import("../integrations/supabase/types").Json | null;
5729
+ resource_type?: string | null;
5730
+ response?: import("../integrations/supabase/types").Json | null;
5731
+ write_log_id?: string | null;
5732
+ };
5733
+ Update: {
5734
+ action?: string | null;
5735
+ caller?: string | null;
5736
+ connection_id?: string | null;
5737
+ created_at?: string;
5738
+ cursor_from?: number | null;
5739
+ direction?: string;
5740
+ duration_ms?: number | null;
5741
+ environment?: string | null;
5742
+ error?: string | null;
5743
+ floriday_id?: string | null;
5744
+ floriday_reference?: string | null;
5745
+ http_status?: number;
5746
+ id?: string;
5747
+ item_count?: number | null;
5748
+ kind?: string | null;
5749
+ local_id?: string | null;
5750
+ local_reference?: string | null;
5751
+ method?: string;
5752
+ module?: string | null;
5753
+ ok?: boolean;
5754
+ path?: string;
5755
+ request?: import("../integrations/supabase/types").Json | null;
5756
+ resource_type?: string | null;
5757
+ response?: import("../integrations/supabase/types").Json | null;
5758
+ write_log_id?: string | null;
5759
+ };
5760
+ Relationships: [{
5761
+ foreignKeyName: "floriday_api_log_connection_id_fkey";
5762
+ columns: ["connection_id"];
5763
+ isOneToOne: false;
5764
+ referencedRelation: "floriday_connections";
5765
+ referencedColumns: ["id"];
5766
+ }, {
5767
+ foreignKeyName: "floriday_api_log_write_log_id_fkey";
5768
+ columns: ["write_log_id"];
5769
+ isOneToOne: false;
5770
+ referencedRelation: "floriday_write_log";
5771
+ referencedColumns: ["id"];
5772
+ }];
5773
+ };
5615
5774
  floriday_auction_letters_cache: {
5616
5775
  Row: {
5617
5776
  auction_letter_code: string;
@@ -5819,6 +5978,84 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
5819
5978
  referencedColumns: ["id"];
5820
5979
  }];
5821
5980
  };
5981
+ floriday_catalog_prices_cache: {
5982
+ Row: {
5983
+ connection_id: string;
5984
+ created_at: string;
5985
+ currency: string;
5986
+ id: string;
5987
+ is_deleted: boolean;
5988
+ price: number | null;
5989
+ price_group_id: string | null;
5990
+ price_group_name: string | null;
5991
+ price_type: string;
5992
+ raw: import("../integrations/supabase/types").Json | null;
5993
+ sales_unit: string | null;
5994
+ sequence_number: number;
5995
+ supplier_article_code: string | null;
5996
+ supply_line_id: string;
5997
+ synced_at: string;
5998
+ trade_item_id: string | null;
5999
+ updated_at: string;
6000
+ valid_from: string | null;
6001
+ valid_to: string | null;
6002
+ week: number | null;
6003
+ year: number | null;
6004
+ };
6005
+ Insert: {
6006
+ connection_id: string;
6007
+ created_at?: string;
6008
+ currency?: string;
6009
+ id?: string;
6010
+ is_deleted?: boolean;
6011
+ price?: number | null;
6012
+ price_group_id?: string | null;
6013
+ price_group_name?: string | null;
6014
+ price_type?: string;
6015
+ raw?: import("../integrations/supabase/types").Json | null;
6016
+ sales_unit?: string | null;
6017
+ sequence_number?: number;
6018
+ supplier_article_code?: string | null;
6019
+ supply_line_id: string;
6020
+ synced_at?: string;
6021
+ trade_item_id?: string | null;
6022
+ updated_at?: string;
6023
+ valid_from?: string | null;
6024
+ valid_to?: string | null;
6025
+ week?: number | null;
6026
+ year?: number | null;
6027
+ };
6028
+ Update: {
6029
+ connection_id?: string;
6030
+ created_at?: string;
6031
+ currency?: string;
6032
+ id?: string;
6033
+ is_deleted?: boolean;
6034
+ price?: number | null;
6035
+ price_group_id?: string | null;
6036
+ price_group_name?: string | null;
6037
+ price_type?: string;
6038
+ raw?: import("../integrations/supabase/types").Json | null;
6039
+ sales_unit?: string | null;
6040
+ sequence_number?: number;
6041
+ supplier_article_code?: string | null;
6042
+ supply_line_id?: string;
6043
+ synced_at?: string;
6044
+ trade_item_id?: string | null;
6045
+ updated_at?: string;
6046
+ valid_from?: string | null;
6047
+ valid_to?: string | null;
6048
+ week?: number | null;
6049
+ year?: number | null;
6050
+ };
6051
+ Relationships: [{
6052
+ foreignKeyName: "floriday_catalog_prices_cache_connection_id_fkey";
6053
+ columns: ["connection_id"];
6054
+ isOneToOne: false;
6055
+ referencedRelation: "floriday_connections";
6056
+ referencedColumns: ["id"];
6057
+ }];
6058
+ };
5822
6059
  floriday_clock_presales_cache: {
5823
6060
  Row: {
5824
6061
  buyer_organization_id: string | null;
@@ -6734,6 +6971,69 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
6734
6971
  referencedColumns: ["id"];
6735
6972
  }];
6736
6973
  };
6974
+ floriday_link_templates: {
6975
+ Row: {
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
+ Insert: {
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
+ Update: {
6994
+ created_at?: string;
6995
+ floriday_url_template?: string | null;
6996
+ is_active?: boolean;
6997
+ label?: string;
6998
+ local_url_template?: string | null;
6999
+ resource_type?: string;
7000
+ updated_at?: string;
7001
+ };
7002
+ Relationships: [];
7003
+ };
7004
+ floriday_log_retention: {
7005
+ Row: {
7006
+ created_at: string;
7007
+ direction: string | null;
7008
+ id: string;
7009
+ keep_failed_days: number | null;
7010
+ keep_ok_days: number | null;
7011
+ note: string | null;
7012
+ resource_type: string | null;
7013
+ updated_at: string;
7014
+ };
7015
+ Insert: {
7016
+ created_at?: string;
7017
+ direction?: string | null;
7018
+ id?: string;
7019
+ keep_failed_days?: number | null;
7020
+ keep_ok_days?: number | null;
7021
+ note?: string | null;
7022
+ resource_type?: string | null;
7023
+ updated_at?: string;
7024
+ };
7025
+ Update: {
7026
+ created_at?: string;
7027
+ direction?: string | null;
7028
+ id?: string;
7029
+ keep_failed_days?: number | null;
7030
+ keep_ok_days?: number | null;
7031
+ note?: string | null;
7032
+ resource_type?: string | null;
7033
+ updated_at?: string;
7034
+ };
7035
+ Relationships: [];
7036
+ };
6737
7037
  floriday_logistic_labels_cache: {
6738
7038
  Row: {
6739
7039
  byte_size: number | null;
@@ -10358,6 +10658,48 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
10358
10658
  };
10359
10659
  Relationships: [];
10360
10660
  };
10661
+ logistics_pick_data_requests: {
10662
+ Row: {
10663
+ actions: import("../integrations/supabase/types").Json;
10664
+ created_at: string;
10665
+ event_id: string | null;
10666
+ finished_at: string | null;
10667
+ id: string;
10668
+ missing: import("../integrations/supabase/types").Json;
10669
+ order_ref: string;
10670
+ reason: string | null;
10671
+ result: import("../integrations/supabase/types").Json | null;
10672
+ status: string;
10673
+ unit_ref: string | null;
10674
+ };
10675
+ Insert: {
10676
+ actions?: import("../integrations/supabase/types").Json;
10677
+ created_at?: string;
10678
+ event_id?: string | null;
10679
+ finished_at?: string | null;
10680
+ id?: string;
10681
+ missing?: import("../integrations/supabase/types").Json;
10682
+ order_ref: string;
10683
+ reason?: string | null;
10684
+ result?: import("../integrations/supabase/types").Json | null;
10685
+ status?: string;
10686
+ unit_ref?: string | null;
10687
+ };
10688
+ Update: {
10689
+ actions?: import("../integrations/supabase/types").Json;
10690
+ created_at?: string;
10691
+ event_id?: string | null;
10692
+ finished_at?: string | null;
10693
+ id?: string;
10694
+ missing?: import("../integrations/supabase/types").Json;
10695
+ order_ref?: string;
10696
+ reason?: string | null;
10697
+ result?: import("../integrations/supabase/types").Json | null;
10698
+ status?: string;
10699
+ unit_ref?: string | null;
10700
+ };
10701
+ Relationships: [];
10702
+ };
10361
10703
  logistics_pickup_moments: {
10362
10704
  Row: {
10363
10705
  carrier_ref: string | null;
@@ -10804,16 +11146,79 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
10804
11146
  is_reprint?: boolean;
10805
11147
  order_id?: string | null;
10806
11148
  print_job_id?: string | null;
10807
- scanned_at?: string;
11149
+ scanned_at?: string;
11150
+ };
11151
+ Update: {
11152
+ barcode?: string;
11153
+ cart_id?: string;
11154
+ id?: string;
11155
+ is_reprint?: boolean;
11156
+ order_id?: string | null;
11157
+ print_job_id?: string | null;
11158
+ scanned_at?: string;
11159
+ };
11160
+ Relationships: [];
11161
+ };
11162
+ logistics_slip_shipping_note: {
11163
+ Row: {
11164
+ attempts: number;
11165
+ batch_key: string | null;
11166
+ cart_id: string | null;
11167
+ created_at: string;
11168
+ error: string | null;
11169
+ error_code: string | null;
11170
+ fulfillment_order_id: string | null;
11171
+ id: string;
11172
+ locked_until: string | null;
11173
+ next_attempt_at: string | null;
11174
+ order_id: string | null;
11175
+ order_number: string | null;
11176
+ print_job_id: string | null;
11177
+ printer_id: string | null;
11178
+ retry_class: string | null;
11179
+ slip_job_id: string;
11180
+ status: string;
11181
+ updated_at: string;
11182
+ };
11183
+ Insert: {
11184
+ attempts?: number;
11185
+ batch_key?: string | null;
11186
+ cart_id?: string | null;
11187
+ created_at?: string;
11188
+ error?: string | null;
11189
+ error_code?: string | null;
11190
+ fulfillment_order_id?: string | null;
11191
+ id?: string;
11192
+ locked_until?: string | null;
11193
+ next_attempt_at?: string | null;
11194
+ order_id?: string | null;
11195
+ order_number?: string | null;
11196
+ print_job_id?: string | null;
11197
+ printer_id?: string | null;
11198
+ retry_class?: string | null;
11199
+ slip_job_id: string;
11200
+ status?: string;
11201
+ updated_at?: string;
10808
11202
  };
10809
11203
  Update: {
10810
- barcode?: string;
10811
- cart_id?: string;
11204
+ attempts?: number;
11205
+ batch_key?: string | null;
11206
+ cart_id?: string | null;
11207
+ created_at?: string;
11208
+ error?: string | null;
11209
+ error_code?: string | null;
11210
+ fulfillment_order_id?: string | null;
10812
11211
  id?: string;
10813
- is_reprint?: boolean;
11212
+ locked_until?: string | null;
11213
+ next_attempt_at?: string | null;
10814
11214
  order_id?: string | null;
11215
+ order_number?: string | null;
10815
11216
  print_job_id?: string | null;
10816
- scanned_at?: string;
11217
+ printer_id?: string | null;
11218
+ retry_class?: string | null;
11219
+ slip_job_id?: string;
11220
+ status?: string;
11221
+ updated_at?: string;
10817
11222
  };
10818
11223
  Relationships: [];
10819
11224
  };
@@ -11168,6 +11573,111 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
11168
11573
  };
11169
11574
  Relationships: [];
11170
11575
  };
11576
+ logistics_trace_events: {
11577
+ Row: {
11578
+ actor: string | null;
11579
+ attempts: number;
11580
+ cart_ref: string | null;
11581
+ created_at: string;
11582
+ db_action: string | null;
11583
+ db_new: import("../integrations/supabase/types").Json | null;
11584
+ db_old: import("../integrations/supabase/types").Json | null;
11585
+ db_record: string | null;
11586
+ db_table: string | null;
11587
+ decision: string | null;
11588
+ duration_ms: number | null;
11589
+ error: string | null;
11590
+ external_action: string | null;
11591
+ external_ref: string | null;
11592
+ external_response: import("../integrations/supabase/types").Json | null;
11593
+ external_status: string | null;
11594
+ external_system: string | null;
11595
+ id: string;
11596
+ input: import("../integrations/supabase/types").Json | null;
11597
+ next_attempt_at: string | null;
11598
+ order_ref: string | null;
11599
+ order_source: string | null;
11600
+ output: import("../integrations/supabase/types").Json | null;
11601
+ phase: string;
11602
+ reads: import("../integrations/supabase/types").Json | null;
11603
+ reason: string | null;
11604
+ rule: string | null;
11605
+ slip_ref: string | null;
11606
+ status: string;
11607
+ step: string;
11608
+ trace_id: string;
11609
+ values_used: import("../integrations/supabase/types").Json | null;
11610
+ };
11611
+ Insert: {
11612
+ actor?: string | null;
11613
+ attempts?: number;
11614
+ cart_ref?: string | null;
11615
+ created_at?: string;
11616
+ db_action?: string | null;
11617
+ db_new?: import("../integrations/supabase/types").Json | null;
11618
+ db_old?: import("../integrations/supabase/types").Json | null;
11619
+ db_record?: string | null;
11620
+ db_table?: string | null;
11621
+ decision?: string | null;
11622
+ duration_ms?: number | null;
11623
+ error?: string | null;
11624
+ external_action?: string | null;
11625
+ external_ref?: string | null;
11626
+ external_response?: import("../integrations/supabase/types").Json | null;
11627
+ external_status?: string | null;
11628
+ external_system?: string | null;
11629
+ id?: string;
11630
+ input?: import("../integrations/supabase/types").Json | null;
11631
+ next_attempt_at?: string | null;
11632
+ order_ref?: string | null;
11633
+ order_source?: string | null;
11634
+ output?: import("../integrations/supabase/types").Json | null;
11635
+ phase: string;
11636
+ reads?: import("../integrations/supabase/types").Json | null;
11637
+ reason?: string | null;
11638
+ rule?: string | null;
11639
+ slip_ref?: string | null;
11640
+ status: string;
11641
+ step: string;
11642
+ trace_id?: string;
11643
+ values_used?: import("../integrations/supabase/types").Json | null;
11644
+ };
11645
+ Update: {
11646
+ actor?: string | null;
11647
+ attempts?: number;
11648
+ cart_ref?: string | null;
11649
+ created_at?: string;
11650
+ db_action?: string | null;
11651
+ db_new?: import("../integrations/supabase/types").Json | null;
11652
+ db_old?: import("../integrations/supabase/types").Json | null;
11653
+ db_record?: string | null;
11654
+ db_table?: string | null;
11655
+ decision?: string | null;
11656
+ duration_ms?: number | null;
11657
+ error?: string | null;
11658
+ external_action?: string | null;
11659
+ external_ref?: string | null;
11660
+ external_response?: import("../integrations/supabase/types").Json | null;
11661
+ external_status?: string | null;
11662
+ external_system?: string | null;
11663
+ id?: string;
11664
+ input?: import("../integrations/supabase/types").Json | null;
11665
+ next_attempt_at?: string | null;
11666
+ order_ref?: string | null;
11667
+ order_source?: string | null;
11668
+ output?: import("../integrations/supabase/types").Json | null;
11669
+ phase?: string;
11670
+ reads?: import("../integrations/supabase/types").Json | null;
11671
+ reason?: string | null;
11672
+ rule?: string | null;
11673
+ slip_ref?: string | null;
11674
+ status?: string;
11675
+ step?: string;
11676
+ trace_id?: string;
11677
+ values_used?: import("../integrations/supabase/types").Json | null;
11678
+ };
11679
+ Relationships: [];
11680
+ };
11171
11681
  logistics_variables: {
11172
11682
  Row: {
11173
11683
  created_at: string;
@@ -21740,6 +22250,15 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
21740
22250
  Args: never;
21741
22251
  Returns: boolean;
21742
22252
  };
22253
+ cancel_open_print_jobs: {
22254
+ Args: {
22255
+ _cutoff: string;
22256
+ };
22257
+ Returns: {
22258
+ extern_job_id: string;
22259
+ id: string;
22260
+ }[];
22261
+ };
21743
22262
  check_offer_product_available_stock: {
21744
22263
  Args: {
21745
22264
  p_campaign_product_id: string;
@@ -23278,6 +23797,12 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
23278
23797
  };
23279
23798
  Returns: string;
23280
23799
  };
23800
+ logistics_cart_checkin_at: {
23801
+ Args: {
23802
+ p_cart_id: string;
23803
+ };
23804
+ Returns: string;
23805
+ };
23281
23806
  logistics_cart_handled: {
23282
23807
  Args: {
23283
23808
  p_cart_index: number;
@@ -23311,10 +23836,22 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
23311
23836
  task_status: string;
23312
23837
  }[];
23313
23838
  };
23839
+ logistics_cart_is_full: {
23840
+ Args: {
23841
+ p_cart_id: string;
23842
+ };
23843
+ Returns: boolean;
23844
+ };
23314
23845
  logistics_cart_layout_method: {
23315
23846
  Args: never;
23316
23847
  Returns: import("../integrations/supabase/types").Json;
23317
23848
  };
23849
+ logistics_cart_order_refs: {
23850
+ Args: {
23851
+ p_cart_id: string;
23852
+ };
23853
+ Returns: string[];
23854
+ };
23318
23855
  logistics_cart_plan_overview: {
23319
23856
  Args: {
23320
23857
  p_days?: number;
@@ -23334,6 +23871,24 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
23334
23871
  };
23335
23872
  Returns: import("../integrations/supabase/types").Json;
23336
23873
  };
23874
+ logistics_cart_plan_status_core: {
23875
+ Args: {
23876
+ p_ref: string;
23877
+ };
23878
+ Returns: import("../integrations/supabase/types").Json;
23879
+ };
23880
+ logistics_cart_release_reason: {
23881
+ Args: {
23882
+ p_cart_id: string;
23883
+ };
23884
+ Returns: string;
23885
+ };
23886
+ logistics_cart_released: {
23887
+ Args: {
23888
+ p_cart_id: string;
23889
+ };
23890
+ Returns: boolean;
23891
+ };
23337
23892
  logistics_cart_seq: {
23338
23893
  Args: {
23339
23894
  p_order_uuid?: string;
@@ -23384,6 +23939,10 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
23384
23939
  unit_ref: string;
23385
23940
  }[];
23386
23941
  };
23942
+ logistics_carts_per_print: {
23943
+ Args: never;
23944
+ Returns: number;
23945
+ };
23387
23946
  logistics_check_order_allowed: {
23388
23947
  Args: {
23389
23948
  p_lines: import("../integrations/supabase/types").Json;
@@ -23487,6 +24046,10 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
23487
24046
  isSetofReturn: false;
23488
24047
  };
23489
24048
  };
24049
+ logistics_cleanup_orphan_print_jobs: {
24050
+ Args: never;
24051
+ Returns: import("../integrations/supabase/types").Json;
24052
+ };
23490
24053
  logistics_complete_task: {
23491
24054
  Args: {
23492
24055
  p_result?: import("../integrations/supabase/types").Json;
@@ -23738,6 +24301,20 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
23738
24301
  };
23739
24302
  Returns: string;
23740
24303
  };
24304
+ logistics_ensure_pick_data: {
24305
+ Args: {
24306
+ p_event_id?: string;
24307
+ p_missing?: import("../integrations/supabase/types").Json;
24308
+ p_ref: string;
24309
+ };
24310
+ Returns: import("../integrations/supabase/types").Json;
24311
+ };
24312
+ logistics_ensure_shipping_notes: {
24313
+ Args: {
24314
+ p_limit?: number;
24315
+ };
24316
+ Returns: import("../integrations/supabase/types").Json;
24317
+ };
23741
24318
  logistics_fail_task: {
23742
24319
  Args: {
23743
24320
  p_error: string;
@@ -23783,6 +24360,10 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
23783
24360
  isSetofReturn: false;
23784
24361
  };
23785
24362
  };
24363
+ logistics_fix_wrong_shipping_notes: {
24364
+ Args: never;
24365
+ Returns: import("../integrations/supabase/types").Json;
24366
+ };
23786
24367
  logistics_floriday_cart_plan: {
23787
24368
  Args: {
23788
24369
  p_order_id: string;
@@ -23810,6 +24391,10 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
23810
24391
  revision: number;
23811
24392
  }[];
23812
24393
  };
24394
+ logistics_floriday_delivery_note_create_enabled: {
24395
+ Args: never;
24396
+ Returns: boolean;
24397
+ };
23813
24398
  logistics_floriday_finish_push: {
23814
24399
  Args: {
23815
24400
  _error?: string;
@@ -23961,6 +24546,12 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
23961
24546
  };
23962
24547
  Returns: number;
23963
24548
  };
24549
+ logistics_merge_partial_carts: {
24550
+ Args: {
24551
+ p_limit?: number;
24552
+ };
24553
+ Returns: import("../integrations/supabase/types").Json;
24554
+ };
23964
24555
  logistics_next_workday_date: {
23965
24556
  Args: {
23966
24557
  p_date: string;
@@ -24047,6 +24638,12 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
24047
24638
  };
24048
24639
  Returns: string;
24049
24640
  };
24641
+ logistics_payload_is_floriday: {
24642
+ Args: {
24643
+ _payload: import("../integrations/supabase/types").Json;
24644
+ };
24645
+ Returns: boolean;
24646
+ };
24050
24647
  logistics_pick_agenda: {
24051
24648
  Args: {
24052
24649
  p_from?: string;
@@ -24075,6 +24672,10 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
24075
24672
  Args: never;
24076
24673
  Returns: import("../integrations/supabase/types").Json;
24077
24674
  };
24675
+ logistics_pick_partial_mode: {
24676
+ Args: never;
24677
+ Returns: string;
24678
+ };
24078
24679
  logistics_pick_start_estimate: {
24079
24680
  Args: {
24080
24681
  p_order: import("../integrations/supabase/types").Json;
@@ -24165,6 +24766,20 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
24165
24766
  Args: never;
24166
24767
  Returns: undefined;
24167
24768
  };
24769
+ logistics_plan_progress: {
24770
+ Args: {
24771
+ p_refs: string[];
24772
+ };
24773
+ Returns: {
24774
+ cart_plan_ready: boolean;
24775
+ cart_plan_reason: string;
24776
+ cart_plan_released: boolean;
24777
+ plan_progress: number;
24778
+ plan_state: string;
24779
+ plan_state_since: string;
24780
+ unit_ref: string;
24781
+ }[];
24782
+ };
24168
24783
  logistics_plan_prune: {
24169
24784
  Args: never;
24170
24785
  Returns: number;
@@ -24186,6 +24801,18 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
24186
24801
  };
24187
24802
  Returns: number;
24188
24803
  };
24804
+ logistics_plan_state_for: {
24805
+ Args: {
24806
+ p_ref: string;
24807
+ };
24808
+ Returns: import("../integrations/supabase/types").Json;
24809
+ };
24810
+ logistics_prepare_pick_documents: {
24811
+ Args: {
24812
+ p_limit?: number;
24813
+ };
24814
+ Returns: import("../integrations/supabase/types").Json;
24815
+ };
24189
24816
  logistics_prune_buffer_member_queue: {
24190
24817
  Args: never;
24191
24818
  Returns: number;
@@ -24226,18 +24853,36 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
24226
24853
  Args: never;
24227
24854
  Returns: import("../integrations/supabase/types").Json;
24228
24855
  };
24856
+ logistics_refresh_pick_queue_status: {
24857
+ Args: {
24858
+ p_ref: string;
24859
+ };
24860
+ Returns: number;
24861
+ };
24229
24862
  logistics_refresh_pickup_moments: {
24230
24863
  Args: {
24231
24864
  p_weeks?: number;
24232
24865
  };
24233
24866
  Returns: import("../integrations/supabase/types").Json;
24234
24867
  };
24868
+ logistics_refresh_plan_state: {
24869
+ Args: {
24870
+ p_limit?: number;
24871
+ };
24872
+ Returns: import("../integrations/supabase/types").Json;
24873
+ };
24235
24874
  logistics_replan_all: {
24236
24875
  Args: {
24237
24876
  p_reason?: string;
24238
24877
  };
24239
24878
  Returns: import("../integrations/supabase/types").Json;
24240
24879
  };
24880
+ logistics_replan_all_force: {
24881
+ Args: {
24882
+ p_reason?: string;
24883
+ };
24884
+ Returns: import("../integrations/supabase/types").Json;
24885
+ };
24241
24886
  logistics_report_delay: {
24242
24887
  Args: {
24243
24888
  p_expected_date?: string;
@@ -24394,6 +25039,74 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
24394
25039
  };
24395
25040
  Returns: import("../integrations/supabase/types").Json;
24396
25041
  };
25042
+ logistics_shipping_note_job_for_slip: {
25043
+ Args: {
25044
+ _slip_job_id: string;
25045
+ };
25046
+ Returns: string;
25047
+ };
25048
+ logistics_shipping_notes_wake_all: {
25049
+ Args: never;
25050
+ Returns: import("../integrations/supabase/types").Json;
25051
+ };
25052
+ logistics_slip_is_floriday: {
25053
+ Args: {
25054
+ _slip_job_id: string;
25055
+ };
25056
+ Returns: boolean;
25057
+ };
25058
+ logistics_slip_note_claim: {
25059
+ Args: {
25060
+ _lease_seconds?: number;
25061
+ _limit?: number;
25062
+ };
25063
+ Returns: {
25064
+ attempts: number;
25065
+ batch_key: string | null;
25066
+ cart_id: string | null;
25067
+ created_at: string;
25068
+ error: string | null;
25069
+ error_code: string | null;
25070
+ fulfillment_order_id: string | null;
25071
+ id: string;
25072
+ locked_until: string | null;
25073
+ next_attempt_at: string | null;
25074
+ order_id: string | null;
25075
+ order_number: string | null;
25076
+ print_job_id: string | null;
25077
+ printer_id: string | null;
25078
+ retry_class: string | null;
25079
+ slip_job_id: string;
25080
+ status: string;
25081
+ updated_at: string;
25082
+ }[];
25083
+ SetofOptions: {
25084
+ from: "*";
25085
+ to: "logistics_slip_shipping_note";
25086
+ isOneToOne: false;
25087
+ isSetofReturn: true;
25088
+ };
25089
+ };
25090
+ logistics_slip_note_finish: {
25091
+ Args: {
25092
+ _error?: string;
25093
+ _error_code?: string;
25094
+ _fulfillment_order_id?: string;
25095
+ _id: string;
25096
+ _ok: boolean;
25097
+ _print_job_id?: string;
25098
+ _status?: string;
25099
+ };
25100
+ Returns: undefined;
25101
+ };
25102
+ logistics_slip_note_keep_waiting: {
25103
+ Args: {
25104
+ _class?: string;
25105
+ _id: string;
25106
+ _reason: string;
25107
+ };
25108
+ Returns: undefined;
25109
+ };
24397
25110
  logistics_sticker_follows_slip: {
24398
25111
  Args: never;
24399
25112
  Returns: boolean;
@@ -24448,6 +25161,40 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
24448
25161
  name: string;
24449
25162
  }[];
24450
25163
  };
25164
+ logistics_trace: {
25165
+ Args: {
25166
+ p: import("../integrations/supabase/types").Json;
25167
+ };
25168
+ Returns: string;
25169
+ };
25170
+ logistics_trace_batch: {
25171
+ Args: {
25172
+ p: import("../integrations/supabase/types").Json;
25173
+ };
25174
+ Returns: number;
25175
+ };
25176
+ logistics_trace_orders: {
25177
+ Args: {
25178
+ p_limit?: number;
25179
+ p_search?: string;
25180
+ p_since?: string;
25181
+ p_status?: string;
25182
+ };
25183
+ Returns: import("../integrations/supabase/types").Json;
25184
+ };
25185
+ logistics_trace_redact: {
25186
+ Args: {
25187
+ p: import("../integrations/supabase/types").Json;
25188
+ };
25189
+ Returns: import("../integrations/supabase/types").Json;
25190
+ };
25191
+ logistics_trace_timeline: {
25192
+ Args: {
25193
+ p_limit?: number;
25194
+ p_order_ref: string;
25195
+ };
25196
+ Returns: import("../integrations/supabase/types").Json;
25197
+ };
24451
25198
  logistics_upsert_task: {
24452
25199
  Args: {
24453
25200
  p_buffer_ref: string;
@@ -25489,6 +26236,10 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
25489
26236
  };
25490
26237
  Returns: undefined;
25491
26238
  };
26239
+ prune_floriday_api_log: {
26240
+ Args: never;
26241
+ Returns: number;
26242
+ };
25492
26243
  quote_create_from_source: {
25493
26244
  Args: {
25494
26245
  _payload?: import("../integrations/supabase/types").Json;
@@ -25922,6 +26673,13 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
25922
26673
  };
25923
26674
  Returns: number;
25924
26675
  };
26676
+ schedule_floriday_catalog_prices_sync: {
26677
+ Args: {
26678
+ p_apikey: string;
26679
+ p_url: string;
26680
+ };
26681
+ Returns: number;
26682
+ };
25925
26683
  schedule_floriday_clock_presales_sync: {
25926
26684
  Args: {
25927
26685
  p_apikey: string;
@@ -26222,6 +26980,10 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
26222
26980
  };
26223
26981
  Returns: undefined;
26224
26982
  };
26983
+ sync_floriday_prices_into_price_groups: {
26984
+ Args: never;
26985
+ Returns: number;
26986
+ };
26225
26987
  sync_layer_stock: {
26226
26988
  Args: {
26227
26989
  p_product_id: string;
@@ -26354,6 +27116,10 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
26354
27116
  Args: never;
26355
27117
  Returns: string;
26356
27118
  };
27119
+ voorraad_cleanup_old_rows: {
27120
+ Args: never;
27121
+ Returns: import("../integrations/supabase/types").Json;
27122
+ };
26357
27123
  wake_print_queue: {
26358
27124
  Args: {
26359
27125
  _min_interval_ms?: number;