@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
@@ -2229,6 +2229,45 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
2229
2229
  };
2230
2230
  Relationships: [];
2231
2231
  };
2232
+ customer_product_stickers: {
2233
+ Row: {
2234
+ created_at: string;
2235
+ customer_key: string;
2236
+ file_name: string;
2237
+ file_path: string;
2238
+ file_size: number | null;
2239
+ id: string;
2240
+ mime_type: string | null;
2241
+ trade_item_key: string;
2242
+ updated_at: string;
2243
+ uploaded_by: string | null;
2244
+ };
2245
+ Insert: {
2246
+ created_at?: string;
2247
+ customer_key: string;
2248
+ file_name: string;
2249
+ file_path: string;
2250
+ file_size?: number | null;
2251
+ id?: string;
2252
+ mime_type?: string | null;
2253
+ trade_item_key: string;
2254
+ updated_at?: string;
2255
+ uploaded_by?: string | null;
2256
+ };
2257
+ Update: {
2258
+ created_at?: string;
2259
+ customer_key?: string;
2260
+ file_name?: string;
2261
+ file_path?: string;
2262
+ file_size?: number | null;
2263
+ id?: string;
2264
+ mime_type?: string | null;
2265
+ trade_item_key?: string;
2266
+ updated_at?: string;
2267
+ uploaded_by?: string | null;
2268
+ };
2269
+ Relationships: [];
2270
+ };
2232
2271
  customer_selected_assortment: {
2233
2272
  Row: {
2234
2273
  article_number: string | null;
@@ -2277,6 +2316,30 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
2277
2316
  referencedColumns: ["id"];
2278
2317
  }];
2279
2318
  };
2319
+ customer_sticker_settings: {
2320
+ Row: {
2321
+ created_at: string;
2322
+ customer_key: string;
2323
+ height_mm: number;
2324
+ updated_at: string;
2325
+ width_mm: number;
2326
+ };
2327
+ Insert: {
2328
+ created_at?: string;
2329
+ customer_key: string;
2330
+ height_mm?: number;
2331
+ updated_at?: string;
2332
+ width_mm?: number;
2333
+ };
2334
+ Update: {
2335
+ created_at?: string;
2336
+ customer_key?: string;
2337
+ height_mm?: number;
2338
+ updated_at?: string;
2339
+ width_mm?: number;
2340
+ };
2341
+ Relationships: [];
2342
+ };
2280
2343
  customer_trade_settings: {
2281
2344
  Row: {
2282
2345
  category: string;
@@ -5607,6 +5670,102 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
5607
5670
  referencedColumns: ["id"];
5608
5671
  }];
5609
5672
  };
5673
+ floriday_api_log: {
5674
+ Row: {
5675
+ action: string | null;
5676
+ caller: string | null;
5677
+ connection_id: string | null;
5678
+ created_at: string;
5679
+ cursor_from: number | null;
5680
+ direction: string;
5681
+ duration_ms: number | null;
5682
+ environment: string | null;
5683
+ error: string | null;
5684
+ floriday_id: string | null;
5685
+ floriday_reference: string | null;
5686
+ http_status: number;
5687
+ id: string;
5688
+ item_count: number | null;
5689
+ kind: string | null;
5690
+ local_id: string | null;
5691
+ local_reference: string | null;
5692
+ method: string;
5693
+ module: string | null;
5694
+ ok: boolean;
5695
+ path: string;
5696
+ request: import("../integrations/supabase/types").Json | null;
5697
+ resource_type: string | null;
5698
+ response: import("../integrations/supabase/types").Json | null;
5699
+ write_log_id: string | null;
5700
+ };
5701
+ Insert: {
5702
+ action?: string | null;
5703
+ caller?: string | null;
5704
+ connection_id?: string | null;
5705
+ created_at?: string;
5706
+ cursor_from?: number | null;
5707
+ direction: string;
5708
+ duration_ms?: number | null;
5709
+ environment?: string | null;
5710
+ error?: string | null;
5711
+ floriday_id?: string | null;
5712
+ floriday_reference?: string | null;
5713
+ http_status?: number;
5714
+ id?: string;
5715
+ item_count?: number | null;
5716
+ kind?: string | null;
5717
+ local_id?: string | null;
5718
+ local_reference?: string | null;
5719
+ method: string;
5720
+ module?: string | null;
5721
+ ok?: boolean;
5722
+ path: string;
5723
+ request?: import("../integrations/supabase/types").Json | null;
5724
+ resource_type?: string | null;
5725
+ response?: import("../integrations/supabase/types").Json | null;
5726
+ write_log_id?: string | null;
5727
+ };
5728
+ Update: {
5729
+ action?: string | null;
5730
+ caller?: string | null;
5731
+ connection_id?: string | null;
5732
+ created_at?: string;
5733
+ cursor_from?: number | null;
5734
+ direction?: string;
5735
+ duration_ms?: number | null;
5736
+ environment?: string | null;
5737
+ error?: string | null;
5738
+ floriday_id?: string | null;
5739
+ floriday_reference?: string | null;
5740
+ http_status?: number;
5741
+ id?: string;
5742
+ item_count?: number | null;
5743
+ kind?: string | null;
5744
+ local_id?: string | null;
5745
+ local_reference?: string | null;
5746
+ method?: string;
5747
+ module?: string | null;
5748
+ ok?: boolean;
5749
+ path?: string;
5750
+ request?: import("../integrations/supabase/types").Json | null;
5751
+ resource_type?: string | null;
5752
+ response?: import("../integrations/supabase/types").Json | null;
5753
+ write_log_id?: string | null;
5754
+ };
5755
+ Relationships: [{
5756
+ foreignKeyName: "floriday_api_log_connection_id_fkey";
5757
+ columns: ["connection_id"];
5758
+ isOneToOne: false;
5759
+ referencedRelation: "floriday_connections";
5760
+ referencedColumns: ["id"];
5761
+ }, {
5762
+ foreignKeyName: "floriday_api_log_write_log_id_fkey";
5763
+ columns: ["write_log_id"];
5764
+ isOneToOne: false;
5765
+ referencedRelation: "floriday_write_log";
5766
+ referencedColumns: ["id"];
5767
+ }];
5768
+ };
5610
5769
  floriday_auction_letters_cache: {
5611
5770
  Row: {
5612
5771
  auction_letter_code: string;
@@ -5814,6 +5973,84 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
5814
5973
  referencedColumns: ["id"];
5815
5974
  }];
5816
5975
  };
5976
+ floriday_catalog_prices_cache: {
5977
+ Row: {
5978
+ connection_id: string;
5979
+ created_at: string;
5980
+ currency: string;
5981
+ id: string;
5982
+ is_deleted: boolean;
5983
+ price: number | null;
5984
+ price_group_id: string | null;
5985
+ price_group_name: string | null;
5986
+ price_type: string;
5987
+ raw: import("../integrations/supabase/types").Json | null;
5988
+ sales_unit: string | null;
5989
+ sequence_number: number;
5990
+ supplier_article_code: string | null;
5991
+ supply_line_id: string;
5992
+ synced_at: string;
5993
+ trade_item_id: string | null;
5994
+ updated_at: string;
5995
+ valid_from: string | null;
5996
+ valid_to: string | null;
5997
+ week: number | null;
5998
+ year: number | null;
5999
+ };
6000
+ Insert: {
6001
+ connection_id: string;
6002
+ created_at?: string;
6003
+ currency?: string;
6004
+ id?: string;
6005
+ is_deleted?: boolean;
6006
+ price?: number | null;
6007
+ price_group_id?: string | null;
6008
+ price_group_name?: string | null;
6009
+ price_type?: string;
6010
+ raw?: import("../integrations/supabase/types").Json | null;
6011
+ sales_unit?: string | null;
6012
+ sequence_number?: number;
6013
+ supplier_article_code?: string | null;
6014
+ supply_line_id: string;
6015
+ synced_at?: string;
6016
+ trade_item_id?: string | null;
6017
+ updated_at?: string;
6018
+ valid_from?: string | null;
6019
+ valid_to?: string | null;
6020
+ week?: number | null;
6021
+ year?: number | null;
6022
+ };
6023
+ Update: {
6024
+ connection_id?: string;
6025
+ created_at?: string;
6026
+ currency?: string;
6027
+ id?: string;
6028
+ is_deleted?: boolean;
6029
+ price?: number | null;
6030
+ price_group_id?: string | null;
6031
+ price_group_name?: string | null;
6032
+ price_type?: string;
6033
+ raw?: import("../integrations/supabase/types").Json | null;
6034
+ sales_unit?: string | null;
6035
+ sequence_number?: number;
6036
+ supplier_article_code?: string | null;
6037
+ supply_line_id?: string;
6038
+ synced_at?: string;
6039
+ trade_item_id?: string | null;
6040
+ updated_at?: string;
6041
+ valid_from?: string | null;
6042
+ valid_to?: string | null;
6043
+ week?: number | null;
6044
+ year?: number | null;
6045
+ };
6046
+ Relationships: [{
6047
+ foreignKeyName: "floriday_catalog_prices_cache_connection_id_fkey";
6048
+ columns: ["connection_id"];
6049
+ isOneToOne: false;
6050
+ referencedRelation: "floriday_connections";
6051
+ referencedColumns: ["id"];
6052
+ }];
6053
+ };
5817
6054
  floriday_clock_presales_cache: {
5818
6055
  Row: {
5819
6056
  buyer_organization_id: string | null;
@@ -6729,6 +6966,69 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
6729
6966
  referencedColumns: ["id"];
6730
6967
  }];
6731
6968
  };
6969
+ floriday_link_templates: {
6970
+ Row: {
6971
+ created_at: string;
6972
+ floriday_url_template: string | null;
6973
+ is_active: boolean;
6974
+ label: string;
6975
+ local_url_template: string | null;
6976
+ resource_type: string;
6977
+ updated_at: string;
6978
+ };
6979
+ Insert: {
6980
+ created_at?: string;
6981
+ floriday_url_template?: string | null;
6982
+ is_active?: boolean;
6983
+ label: string;
6984
+ local_url_template?: string | null;
6985
+ resource_type: string;
6986
+ updated_at?: string;
6987
+ };
6988
+ Update: {
6989
+ created_at?: string;
6990
+ floriday_url_template?: string | null;
6991
+ is_active?: boolean;
6992
+ label?: string;
6993
+ local_url_template?: string | null;
6994
+ resource_type?: string;
6995
+ updated_at?: string;
6996
+ };
6997
+ Relationships: [];
6998
+ };
6999
+ floriday_log_retention: {
7000
+ Row: {
7001
+ created_at: string;
7002
+ direction: string | null;
7003
+ id: string;
7004
+ keep_failed_days: number | null;
7005
+ keep_ok_days: number | null;
7006
+ note: string | null;
7007
+ resource_type: string | null;
7008
+ updated_at: string;
7009
+ };
7010
+ Insert: {
7011
+ created_at?: string;
7012
+ direction?: string | null;
7013
+ id?: string;
7014
+ keep_failed_days?: number | null;
7015
+ keep_ok_days?: number | null;
7016
+ note?: string | null;
7017
+ resource_type?: string | null;
7018
+ updated_at?: string;
7019
+ };
7020
+ Update: {
7021
+ created_at?: string;
7022
+ direction?: string | null;
7023
+ id?: string;
7024
+ keep_failed_days?: number | null;
7025
+ keep_ok_days?: number | null;
7026
+ note?: string | null;
7027
+ resource_type?: string | null;
7028
+ updated_at?: string;
7029
+ };
7030
+ Relationships: [];
7031
+ };
6732
7032
  floriday_logistic_labels_cache: {
6733
7033
  Row: {
6734
7034
  byte_size: number | null;
@@ -10353,6 +10653,48 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
10353
10653
  };
10354
10654
  Relationships: [];
10355
10655
  };
10656
+ logistics_pick_data_requests: {
10657
+ Row: {
10658
+ actions: import("../integrations/supabase/types").Json;
10659
+ created_at: string;
10660
+ event_id: string | null;
10661
+ finished_at: string | null;
10662
+ id: string;
10663
+ missing: import("../integrations/supabase/types").Json;
10664
+ order_ref: string;
10665
+ reason: string | null;
10666
+ result: import("../integrations/supabase/types").Json | null;
10667
+ status: string;
10668
+ unit_ref: string | null;
10669
+ };
10670
+ Insert: {
10671
+ actions?: import("../integrations/supabase/types").Json;
10672
+ created_at?: string;
10673
+ event_id?: string | null;
10674
+ finished_at?: string | null;
10675
+ id?: string;
10676
+ missing?: import("../integrations/supabase/types").Json;
10677
+ order_ref: string;
10678
+ reason?: string | null;
10679
+ result?: import("../integrations/supabase/types").Json | null;
10680
+ status?: string;
10681
+ unit_ref?: string | null;
10682
+ };
10683
+ Update: {
10684
+ actions?: import("../integrations/supabase/types").Json;
10685
+ created_at?: string;
10686
+ event_id?: string | null;
10687
+ finished_at?: string | null;
10688
+ id?: string;
10689
+ missing?: import("../integrations/supabase/types").Json;
10690
+ order_ref?: string;
10691
+ reason?: string | null;
10692
+ result?: import("../integrations/supabase/types").Json | null;
10693
+ status?: string;
10694
+ unit_ref?: string | null;
10695
+ };
10696
+ Relationships: [];
10697
+ };
10356
10698
  logistics_pickup_moments: {
10357
10699
  Row: {
10358
10700
  carrier_ref: string | null;
@@ -10799,16 +11141,79 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
10799
11141
  is_reprint?: boolean;
10800
11142
  order_id?: string | null;
10801
11143
  print_job_id?: string | null;
10802
- scanned_at?: string;
11144
+ scanned_at?: string;
11145
+ };
11146
+ Update: {
11147
+ barcode?: string;
11148
+ cart_id?: string;
11149
+ id?: string;
11150
+ is_reprint?: boolean;
11151
+ order_id?: string | null;
11152
+ print_job_id?: string | null;
11153
+ scanned_at?: string;
11154
+ };
11155
+ Relationships: [];
11156
+ };
11157
+ logistics_slip_shipping_note: {
11158
+ Row: {
11159
+ attempts: number;
11160
+ batch_key: string | null;
11161
+ cart_id: string | null;
11162
+ created_at: string;
11163
+ error: string | null;
11164
+ error_code: string | null;
11165
+ fulfillment_order_id: string | null;
11166
+ id: string;
11167
+ locked_until: string | null;
11168
+ next_attempt_at: string | null;
11169
+ order_id: string | null;
11170
+ order_number: string | null;
11171
+ print_job_id: string | null;
11172
+ printer_id: string | null;
11173
+ retry_class: string | null;
11174
+ slip_job_id: string;
11175
+ status: string;
11176
+ updated_at: string;
11177
+ };
11178
+ Insert: {
11179
+ attempts?: number;
11180
+ batch_key?: string | null;
11181
+ cart_id?: string | null;
11182
+ created_at?: string;
11183
+ error?: string | null;
11184
+ error_code?: string | null;
11185
+ fulfillment_order_id?: string | null;
11186
+ id?: string;
11187
+ locked_until?: string | null;
11188
+ next_attempt_at?: string | null;
11189
+ order_id?: string | null;
11190
+ order_number?: string | null;
11191
+ print_job_id?: string | null;
11192
+ printer_id?: string | null;
11193
+ retry_class?: string | null;
11194
+ slip_job_id: string;
11195
+ status?: string;
11196
+ updated_at?: string;
10803
11197
  };
10804
11198
  Update: {
10805
- barcode?: string;
10806
- cart_id?: string;
11199
+ attempts?: number;
11200
+ batch_key?: string | null;
11201
+ cart_id?: string | null;
11202
+ created_at?: string;
11203
+ error?: string | null;
11204
+ error_code?: string | null;
11205
+ fulfillment_order_id?: string | null;
10807
11206
  id?: string;
10808
- is_reprint?: boolean;
11207
+ locked_until?: string | null;
11208
+ next_attempt_at?: string | null;
10809
11209
  order_id?: string | null;
11210
+ order_number?: string | null;
10810
11211
  print_job_id?: string | null;
10811
- scanned_at?: string;
11212
+ printer_id?: string | null;
11213
+ retry_class?: string | null;
11214
+ slip_job_id?: string;
11215
+ status?: string;
11216
+ updated_at?: string;
10812
11217
  };
10813
11218
  Relationships: [];
10814
11219
  };
@@ -11163,6 +11568,111 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
11163
11568
  };
11164
11569
  Relationships: [];
11165
11570
  };
11571
+ logistics_trace_events: {
11572
+ Row: {
11573
+ actor: string | null;
11574
+ attempts: number;
11575
+ cart_ref: string | null;
11576
+ created_at: string;
11577
+ db_action: string | null;
11578
+ db_new: import("../integrations/supabase/types").Json | null;
11579
+ db_old: import("../integrations/supabase/types").Json | null;
11580
+ db_record: string | null;
11581
+ db_table: string | null;
11582
+ decision: string | null;
11583
+ duration_ms: number | null;
11584
+ error: string | null;
11585
+ external_action: string | null;
11586
+ external_ref: string | null;
11587
+ external_response: import("../integrations/supabase/types").Json | null;
11588
+ external_status: string | null;
11589
+ external_system: string | null;
11590
+ id: string;
11591
+ input: import("../integrations/supabase/types").Json | null;
11592
+ next_attempt_at: string | null;
11593
+ order_ref: string | null;
11594
+ order_source: string | null;
11595
+ output: import("../integrations/supabase/types").Json | null;
11596
+ phase: string;
11597
+ reads: import("../integrations/supabase/types").Json | null;
11598
+ reason: string | null;
11599
+ rule: string | null;
11600
+ slip_ref: string | null;
11601
+ status: string;
11602
+ step: string;
11603
+ trace_id: string;
11604
+ values_used: import("../integrations/supabase/types").Json | null;
11605
+ };
11606
+ Insert: {
11607
+ actor?: string | null;
11608
+ attempts?: number;
11609
+ cart_ref?: string | null;
11610
+ created_at?: string;
11611
+ db_action?: string | null;
11612
+ db_new?: import("../integrations/supabase/types").Json | null;
11613
+ db_old?: import("../integrations/supabase/types").Json | null;
11614
+ db_record?: string | null;
11615
+ db_table?: string | null;
11616
+ decision?: string | null;
11617
+ duration_ms?: number | null;
11618
+ error?: string | null;
11619
+ external_action?: string | null;
11620
+ external_ref?: string | null;
11621
+ external_response?: import("../integrations/supabase/types").Json | null;
11622
+ external_status?: string | null;
11623
+ external_system?: string | null;
11624
+ id?: string;
11625
+ input?: import("../integrations/supabase/types").Json | null;
11626
+ next_attempt_at?: string | null;
11627
+ order_ref?: string | null;
11628
+ order_source?: string | null;
11629
+ output?: import("../integrations/supabase/types").Json | null;
11630
+ phase: string;
11631
+ reads?: import("../integrations/supabase/types").Json | null;
11632
+ reason?: string | null;
11633
+ rule?: string | null;
11634
+ slip_ref?: string | null;
11635
+ status: string;
11636
+ step: string;
11637
+ trace_id?: string;
11638
+ values_used?: import("../integrations/supabase/types").Json | null;
11639
+ };
11640
+ Update: {
11641
+ actor?: string | null;
11642
+ attempts?: number;
11643
+ cart_ref?: string | null;
11644
+ created_at?: string;
11645
+ db_action?: string | null;
11646
+ db_new?: import("../integrations/supabase/types").Json | null;
11647
+ db_old?: import("../integrations/supabase/types").Json | null;
11648
+ db_record?: string | null;
11649
+ db_table?: string | null;
11650
+ decision?: string | null;
11651
+ duration_ms?: number | null;
11652
+ error?: string | null;
11653
+ external_action?: string | null;
11654
+ external_ref?: string | null;
11655
+ external_response?: import("../integrations/supabase/types").Json | null;
11656
+ external_status?: string | null;
11657
+ external_system?: string | null;
11658
+ id?: string;
11659
+ input?: import("../integrations/supabase/types").Json | null;
11660
+ next_attempt_at?: string | null;
11661
+ order_ref?: string | null;
11662
+ order_source?: string | null;
11663
+ output?: import("../integrations/supabase/types").Json | null;
11664
+ phase?: string;
11665
+ reads?: import("../integrations/supabase/types").Json | null;
11666
+ reason?: string | null;
11667
+ rule?: string | null;
11668
+ slip_ref?: string | null;
11669
+ status?: string;
11670
+ step?: string;
11671
+ trace_id?: string;
11672
+ values_used?: import("../integrations/supabase/types").Json | null;
11673
+ };
11674
+ Relationships: [];
11675
+ };
11166
11676
  logistics_variables: {
11167
11677
  Row: {
11168
11678
  created_at: string;
@@ -21735,6 +22245,15 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
21735
22245
  Args: never;
21736
22246
  Returns: boolean;
21737
22247
  };
22248
+ cancel_open_print_jobs: {
22249
+ Args: {
22250
+ _cutoff: string;
22251
+ };
22252
+ Returns: {
22253
+ extern_job_id: string;
22254
+ id: string;
22255
+ }[];
22256
+ };
21738
22257
  check_offer_product_available_stock: {
21739
22258
  Args: {
21740
22259
  p_campaign_product_id: string;
@@ -23273,6 +23792,12 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
23273
23792
  };
23274
23793
  Returns: string;
23275
23794
  };
23795
+ logistics_cart_checkin_at: {
23796
+ Args: {
23797
+ p_cart_id: string;
23798
+ };
23799
+ Returns: string;
23800
+ };
23276
23801
  logistics_cart_handled: {
23277
23802
  Args: {
23278
23803
  p_cart_index: number;
@@ -23306,10 +23831,22 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
23306
23831
  task_status: string;
23307
23832
  }[];
23308
23833
  };
23834
+ logistics_cart_is_full: {
23835
+ Args: {
23836
+ p_cart_id: string;
23837
+ };
23838
+ Returns: boolean;
23839
+ };
23309
23840
  logistics_cart_layout_method: {
23310
23841
  Args: never;
23311
23842
  Returns: import("../integrations/supabase/types").Json;
23312
23843
  };
23844
+ logistics_cart_order_refs: {
23845
+ Args: {
23846
+ p_cart_id: string;
23847
+ };
23848
+ Returns: string[];
23849
+ };
23313
23850
  logistics_cart_plan_overview: {
23314
23851
  Args: {
23315
23852
  p_days?: number;
@@ -23329,6 +23866,24 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
23329
23866
  };
23330
23867
  Returns: import("../integrations/supabase/types").Json;
23331
23868
  };
23869
+ logistics_cart_plan_status_core: {
23870
+ Args: {
23871
+ p_ref: string;
23872
+ };
23873
+ Returns: import("../integrations/supabase/types").Json;
23874
+ };
23875
+ logistics_cart_release_reason: {
23876
+ Args: {
23877
+ p_cart_id: string;
23878
+ };
23879
+ Returns: string;
23880
+ };
23881
+ logistics_cart_released: {
23882
+ Args: {
23883
+ p_cart_id: string;
23884
+ };
23885
+ Returns: boolean;
23886
+ };
23332
23887
  logistics_cart_seq: {
23333
23888
  Args: {
23334
23889
  p_order_uuid?: string;
@@ -23379,6 +23934,10 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
23379
23934
  unit_ref: string;
23380
23935
  }[];
23381
23936
  };
23937
+ logistics_carts_per_print: {
23938
+ Args: never;
23939
+ Returns: number;
23940
+ };
23382
23941
  logistics_check_order_allowed: {
23383
23942
  Args: {
23384
23943
  p_lines: import("../integrations/supabase/types").Json;
@@ -23482,6 +24041,10 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
23482
24041
  isSetofReturn: false;
23483
24042
  };
23484
24043
  };
24044
+ logistics_cleanup_orphan_print_jobs: {
24045
+ Args: never;
24046
+ Returns: import("../integrations/supabase/types").Json;
24047
+ };
23485
24048
  logistics_complete_task: {
23486
24049
  Args: {
23487
24050
  p_result?: import("../integrations/supabase/types").Json;
@@ -23733,6 +24296,20 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
23733
24296
  };
23734
24297
  Returns: string;
23735
24298
  };
24299
+ logistics_ensure_pick_data: {
24300
+ Args: {
24301
+ p_event_id?: string;
24302
+ p_missing?: import("../integrations/supabase/types").Json;
24303
+ p_ref: string;
24304
+ };
24305
+ Returns: import("../integrations/supabase/types").Json;
24306
+ };
24307
+ logistics_ensure_shipping_notes: {
24308
+ Args: {
24309
+ p_limit?: number;
24310
+ };
24311
+ Returns: import("../integrations/supabase/types").Json;
24312
+ };
23736
24313
  logistics_fail_task: {
23737
24314
  Args: {
23738
24315
  p_error: string;
@@ -23778,6 +24355,10 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
23778
24355
  isSetofReturn: false;
23779
24356
  };
23780
24357
  };
24358
+ logistics_fix_wrong_shipping_notes: {
24359
+ Args: never;
24360
+ Returns: import("../integrations/supabase/types").Json;
24361
+ };
23781
24362
  logistics_floriday_cart_plan: {
23782
24363
  Args: {
23783
24364
  p_order_id: string;
@@ -23805,6 +24386,10 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
23805
24386
  revision: number;
23806
24387
  }[];
23807
24388
  };
24389
+ logistics_floriday_delivery_note_create_enabled: {
24390
+ Args: never;
24391
+ Returns: boolean;
24392
+ };
23808
24393
  logistics_floriday_finish_push: {
23809
24394
  Args: {
23810
24395
  _error?: string;
@@ -23956,6 +24541,12 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
23956
24541
  };
23957
24542
  Returns: number;
23958
24543
  };
24544
+ logistics_merge_partial_carts: {
24545
+ Args: {
24546
+ p_limit?: number;
24547
+ };
24548
+ Returns: import("../integrations/supabase/types").Json;
24549
+ };
23959
24550
  logistics_next_workday_date: {
23960
24551
  Args: {
23961
24552
  p_date: string;
@@ -24042,6 +24633,12 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
24042
24633
  };
24043
24634
  Returns: string;
24044
24635
  };
24636
+ logistics_payload_is_floriday: {
24637
+ Args: {
24638
+ _payload: import("../integrations/supabase/types").Json;
24639
+ };
24640
+ Returns: boolean;
24641
+ };
24045
24642
  logistics_pick_agenda: {
24046
24643
  Args: {
24047
24644
  p_from?: string;
@@ -24070,6 +24667,10 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
24070
24667
  Args: never;
24071
24668
  Returns: import("../integrations/supabase/types").Json;
24072
24669
  };
24670
+ logistics_pick_partial_mode: {
24671
+ Args: never;
24672
+ Returns: string;
24673
+ };
24073
24674
  logistics_pick_start_estimate: {
24074
24675
  Args: {
24075
24676
  p_order: import("../integrations/supabase/types").Json;
@@ -24160,6 +24761,20 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
24160
24761
  Args: never;
24161
24762
  Returns: undefined;
24162
24763
  };
24764
+ logistics_plan_progress: {
24765
+ Args: {
24766
+ p_refs: string[];
24767
+ };
24768
+ Returns: {
24769
+ cart_plan_ready: boolean;
24770
+ cart_plan_reason: string;
24771
+ cart_plan_released: boolean;
24772
+ plan_progress: number;
24773
+ plan_state: string;
24774
+ plan_state_since: string;
24775
+ unit_ref: string;
24776
+ }[];
24777
+ };
24163
24778
  logistics_plan_prune: {
24164
24779
  Args: never;
24165
24780
  Returns: number;
@@ -24181,6 +24796,18 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
24181
24796
  };
24182
24797
  Returns: number;
24183
24798
  };
24799
+ logistics_plan_state_for: {
24800
+ Args: {
24801
+ p_ref: string;
24802
+ };
24803
+ Returns: import("../integrations/supabase/types").Json;
24804
+ };
24805
+ logistics_prepare_pick_documents: {
24806
+ Args: {
24807
+ p_limit?: number;
24808
+ };
24809
+ Returns: import("../integrations/supabase/types").Json;
24810
+ };
24184
24811
  logistics_prune_buffer_member_queue: {
24185
24812
  Args: never;
24186
24813
  Returns: number;
@@ -24221,18 +24848,36 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
24221
24848
  Args: never;
24222
24849
  Returns: import("../integrations/supabase/types").Json;
24223
24850
  };
24851
+ logistics_refresh_pick_queue_status: {
24852
+ Args: {
24853
+ p_ref: string;
24854
+ };
24855
+ Returns: number;
24856
+ };
24224
24857
  logistics_refresh_pickup_moments: {
24225
24858
  Args: {
24226
24859
  p_weeks?: number;
24227
24860
  };
24228
24861
  Returns: import("../integrations/supabase/types").Json;
24229
24862
  };
24863
+ logistics_refresh_plan_state: {
24864
+ Args: {
24865
+ p_limit?: number;
24866
+ };
24867
+ Returns: import("../integrations/supabase/types").Json;
24868
+ };
24230
24869
  logistics_replan_all: {
24231
24870
  Args: {
24232
24871
  p_reason?: string;
24233
24872
  };
24234
24873
  Returns: import("../integrations/supabase/types").Json;
24235
24874
  };
24875
+ logistics_replan_all_force: {
24876
+ Args: {
24877
+ p_reason?: string;
24878
+ };
24879
+ Returns: import("../integrations/supabase/types").Json;
24880
+ };
24236
24881
  logistics_report_delay: {
24237
24882
  Args: {
24238
24883
  p_expected_date?: string;
@@ -24389,6 +25034,74 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
24389
25034
  };
24390
25035
  Returns: import("../integrations/supabase/types").Json;
24391
25036
  };
25037
+ logistics_shipping_note_job_for_slip: {
25038
+ Args: {
25039
+ _slip_job_id: string;
25040
+ };
25041
+ Returns: string;
25042
+ };
25043
+ logistics_shipping_notes_wake_all: {
25044
+ Args: never;
25045
+ Returns: import("../integrations/supabase/types").Json;
25046
+ };
25047
+ logistics_slip_is_floriday: {
25048
+ Args: {
25049
+ _slip_job_id: string;
25050
+ };
25051
+ Returns: boolean;
25052
+ };
25053
+ logistics_slip_note_claim: {
25054
+ Args: {
25055
+ _lease_seconds?: number;
25056
+ _limit?: number;
25057
+ };
25058
+ Returns: {
25059
+ attempts: number;
25060
+ batch_key: string | null;
25061
+ cart_id: string | null;
25062
+ created_at: string;
25063
+ error: string | null;
25064
+ error_code: string | null;
25065
+ fulfillment_order_id: string | null;
25066
+ id: string;
25067
+ locked_until: string | null;
25068
+ next_attempt_at: string | null;
25069
+ order_id: string | null;
25070
+ order_number: string | null;
25071
+ print_job_id: string | null;
25072
+ printer_id: string | null;
25073
+ retry_class: string | null;
25074
+ slip_job_id: string;
25075
+ status: string;
25076
+ updated_at: string;
25077
+ }[];
25078
+ SetofOptions: {
25079
+ from: "*";
25080
+ to: "logistics_slip_shipping_note";
25081
+ isOneToOne: false;
25082
+ isSetofReturn: true;
25083
+ };
25084
+ };
25085
+ logistics_slip_note_finish: {
25086
+ Args: {
25087
+ _error?: string;
25088
+ _error_code?: string;
25089
+ _fulfillment_order_id?: string;
25090
+ _id: string;
25091
+ _ok: boolean;
25092
+ _print_job_id?: string;
25093
+ _status?: string;
25094
+ };
25095
+ Returns: undefined;
25096
+ };
25097
+ logistics_slip_note_keep_waiting: {
25098
+ Args: {
25099
+ _class?: string;
25100
+ _id: string;
25101
+ _reason: string;
25102
+ };
25103
+ Returns: undefined;
25104
+ };
24392
25105
  logistics_sticker_follows_slip: {
24393
25106
  Args: never;
24394
25107
  Returns: boolean;
@@ -24443,6 +25156,40 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
24443
25156
  name: string;
24444
25157
  }[];
24445
25158
  };
25159
+ logistics_trace: {
25160
+ Args: {
25161
+ p: import("../integrations/supabase/types").Json;
25162
+ };
25163
+ Returns: string;
25164
+ };
25165
+ logistics_trace_batch: {
25166
+ Args: {
25167
+ p: import("../integrations/supabase/types").Json;
25168
+ };
25169
+ Returns: number;
25170
+ };
25171
+ logistics_trace_orders: {
25172
+ Args: {
25173
+ p_limit?: number;
25174
+ p_search?: string;
25175
+ p_since?: string;
25176
+ p_status?: string;
25177
+ };
25178
+ Returns: import("../integrations/supabase/types").Json;
25179
+ };
25180
+ logistics_trace_redact: {
25181
+ Args: {
25182
+ p: import("../integrations/supabase/types").Json;
25183
+ };
25184
+ Returns: import("../integrations/supabase/types").Json;
25185
+ };
25186
+ logistics_trace_timeline: {
25187
+ Args: {
25188
+ p_limit?: number;
25189
+ p_order_ref: string;
25190
+ };
25191
+ Returns: import("../integrations/supabase/types").Json;
25192
+ };
24446
25193
  logistics_upsert_task: {
24447
25194
  Args: {
24448
25195
  p_buffer_ref: string;
@@ -25484,6 +26231,10 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
25484
26231
  };
25485
26232
  Returns: undefined;
25486
26233
  };
26234
+ prune_floriday_api_log: {
26235
+ Args: never;
26236
+ Returns: number;
26237
+ };
25487
26238
  quote_create_from_source: {
25488
26239
  Args: {
25489
26240
  _payload?: import("../integrations/supabase/types").Json;
@@ -25917,6 +26668,13 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
25917
26668
  };
25918
26669
  Returns: number;
25919
26670
  };
26671
+ schedule_floriday_catalog_prices_sync: {
26672
+ Args: {
26673
+ p_apikey: string;
26674
+ p_url: string;
26675
+ };
26676
+ Returns: number;
26677
+ };
25920
26678
  schedule_floriday_clock_presales_sync: {
25921
26679
  Args: {
25922
26680
  p_apikey: string;
@@ -26217,6 +26975,10 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
26217
26975
  };
26218
26976
  Returns: undefined;
26219
26977
  };
26978
+ sync_floriday_prices_into_price_groups: {
26979
+ Args: never;
26980
+ Returns: number;
26981
+ };
26220
26982
  sync_layer_stock: {
26221
26983
  Args: {
26222
26984
  p_product_id: string;
@@ -26349,6 +27111,10 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
26349
27111
  Args: never;
26350
27112
  Returns: string;
26351
27113
  };
27114
+ voorraad_cleanup_old_rows: {
27115
+ Args: never;
27116
+ Returns: import("../integrations/supabase/types").Json;
27117
+ };
26352
27118
  wake_print_queue: {
26353
27119
  Args: {
26354
27120
  _min_interval_ms?: number;