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