@flowselections/floriday-voorraad 1.0.41 → 1.0.43

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 (53) hide show
  1. package/dist-lib/components/voorraad/ArtikelWizard.d.ts.map +1 -1
  2. package/dist-lib/components/voorraad/ArtikelWizard.js +15 -11
  3. package/dist-lib/components/voorraad/OrderHistoryCard.js +2 -2
  4. package/dist-lib/components/voorraad/StockMutationHistoryCard.d.ts +7 -0
  5. package/dist-lib/components/voorraad/StockMutationHistoryCard.d.ts.map +1 -0
  6. package/dist-lib/components/voorraad/StockMutationHistoryCard.js +134 -0
  7. package/dist-lib/components/voorraad/StockPushMonitor.d.ts.map +1 -1
  8. package/dist-lib/components/voorraad/StockPushMonitor.js +90 -12
  9. package/dist-lib/components/voorraad/VoorraadPage.d.ts.map +1 -1
  10. package/dist-lib/components/voorraad/VoorraadPage.js +1 -1
  11. package/dist-lib/hooks/useFloriday.d.ts.map +1 -1
  12. package/dist-lib/hooks/useFloriday.js +5 -2
  13. package/dist-lib/hooks/useStockPushJobs.d.ts +2 -0
  14. package/dist-lib/hooks/useStockPushJobs.d.ts.map +1 -1
  15. package/dist-lib/hooks/useStockPushJobs.js +18 -5
  16. package/dist-lib/integrations/supabase/auth-middleware.d.ts +1001 -15
  17. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  18. package/dist-lib/integrations/supabase/client.d.ts +1001 -15
  19. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  20. package/dist-lib/integrations/supabase/client.server.d.ts +1001 -15
  21. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  22. package/dist-lib/integrations/supabase/types.d.ts +1001 -10
  23. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  24. package/dist-lib/lib/floricode-required-features.functions.d.ts +1001 -15
  25. package/dist-lib/lib/floricode-required-features.functions.d.ts.map +1 -1
  26. package/dist-lib/lib/floriday-2026v1.server.d.ts +1 -1
  27. package/dist-lib/lib/floriday-2026v1.server.d.ts.map +1 -1
  28. package/dist-lib/lib/floriday-2026v1.server.js +10 -0
  29. package/dist-lib/lib/floriday-customer-offer.functions.d.ts +1001 -15
  30. package/dist-lib/lib/floriday-customer-offer.functions.d.ts.map +1 -1
  31. package/dist-lib/lib/floriday-env.functions.d.ts +1972 -0
  32. package/dist-lib/lib/floriday-env.functions.d.ts.map +1 -1
  33. package/dist-lib/lib/floriday-gateway.functions.d.ts +5916 -0
  34. package/dist-lib/lib/floriday-gateway.functions.d.ts.map +1 -1
  35. package/dist-lib/lib/floriday-gateway.server.d.ts +7 -1
  36. package/dist-lib/lib/floriday-gateway.server.d.ts.map +1 -1
  37. package/dist-lib/lib/floriday-gateway.server.js +50 -3
  38. package/dist-lib/lib/floriday-vbn-required.functions.d.ts +1972 -0
  39. package/dist-lib/lib/floriday-vbn-required.functions.d.ts.map +1 -1
  40. package/dist-lib/lib/floriday-warehouse.functions.d.ts +2958 -0
  41. package/dist-lib/lib/floriday-warehouse.functions.d.ts.map +1 -1
  42. package/dist-lib/lib/floriday-write-gate.server.d.ts +60 -0
  43. package/dist-lib/lib/floriday-write-gate.server.d.ts.map +1 -0
  44. package/dist-lib/lib/floriday-write-gate.server.js +196 -0
  45. package/dist-lib/lib/floriday-writes.functions.d.ts +1972 -0
  46. package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
  47. package/dist-lib/lib/inventory-settings.functions.d.ts +1972 -0
  48. package/dist-lib/lib/inventory-settings.functions.d.ts.map +1 -1
  49. package/dist-lib/lib/module-health.functions.d.ts +1092 -0
  50. package/dist-lib/lib/module-health.functions.d.ts.map +1 -1
  51. package/dist-lib/lib/stock-sync.functions.d.ts +1972 -0
  52. package/dist-lib/lib/stock-sync.functions.d.ts.map +1 -1
  53. package/package.json +1 -1
@@ -2235,6 +2235,45 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
2235
2235
  };
2236
2236
  Relationships: [];
2237
2237
  };
2238
+ customer_product_stickers: {
2239
+ Row: {
2240
+ created_at: string;
2241
+ customer_key: string;
2242
+ file_name: string;
2243
+ file_path: string;
2244
+ file_size: number | null;
2245
+ id: string;
2246
+ mime_type: string | null;
2247
+ trade_item_key: string;
2248
+ updated_at: string;
2249
+ uploaded_by: string | null;
2250
+ };
2251
+ Insert: {
2252
+ created_at?: string;
2253
+ customer_key: string;
2254
+ file_name: string;
2255
+ file_path: string;
2256
+ file_size?: number | null;
2257
+ id?: string;
2258
+ mime_type?: string | null;
2259
+ trade_item_key: string;
2260
+ updated_at?: string;
2261
+ uploaded_by?: string | null;
2262
+ };
2263
+ Update: {
2264
+ created_at?: string;
2265
+ customer_key?: string;
2266
+ file_name?: string;
2267
+ file_path?: string;
2268
+ file_size?: number | null;
2269
+ id?: string;
2270
+ mime_type?: string | null;
2271
+ trade_item_key?: string;
2272
+ updated_at?: string;
2273
+ uploaded_by?: string | null;
2274
+ };
2275
+ Relationships: [];
2276
+ };
2238
2277
  customer_selected_assortment: {
2239
2278
  Row: {
2240
2279
  article_number: string | null;
@@ -2283,6 +2322,30 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
2283
2322
  referencedColumns: ["id"];
2284
2323
  }];
2285
2324
  };
2325
+ customer_sticker_settings: {
2326
+ Row: {
2327
+ created_at: string;
2328
+ customer_key: string;
2329
+ height_mm: number;
2330
+ updated_at: string;
2331
+ width_mm: number;
2332
+ };
2333
+ Insert: {
2334
+ created_at?: string;
2335
+ customer_key: string;
2336
+ height_mm?: number;
2337
+ updated_at?: string;
2338
+ width_mm?: number;
2339
+ };
2340
+ Update: {
2341
+ created_at?: string;
2342
+ customer_key?: string;
2343
+ height_mm?: number;
2344
+ updated_at?: string;
2345
+ width_mm?: number;
2346
+ };
2347
+ Relationships: [];
2348
+ };
2286
2349
  customer_trade_settings: {
2287
2350
  Row: {
2288
2351
  category: string;
@@ -5613,6 +5676,102 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
5613
5676
  referencedColumns: ["id"];
5614
5677
  }];
5615
5678
  };
5679
+ floriday_api_log: {
5680
+ Row: {
5681
+ action: string | null;
5682
+ caller: string | null;
5683
+ connection_id: string | null;
5684
+ created_at: string;
5685
+ cursor_from: number | null;
5686
+ direction: string;
5687
+ duration_ms: number | null;
5688
+ environment: string | null;
5689
+ error: string | null;
5690
+ floriday_id: string | null;
5691
+ floriday_reference: string | null;
5692
+ http_status: number;
5693
+ id: string;
5694
+ item_count: number | null;
5695
+ kind: string | null;
5696
+ local_id: string | null;
5697
+ local_reference: string | null;
5698
+ method: string;
5699
+ module: string | null;
5700
+ ok: boolean;
5701
+ path: string;
5702
+ request: import("../integrations/supabase/types").Json | null;
5703
+ resource_type: string | null;
5704
+ response: import("../integrations/supabase/types").Json | null;
5705
+ write_log_id: string | null;
5706
+ };
5707
+ Insert: {
5708
+ action?: string | null;
5709
+ caller?: string | null;
5710
+ connection_id?: string | null;
5711
+ created_at?: string;
5712
+ cursor_from?: number | null;
5713
+ direction: string;
5714
+ duration_ms?: number | null;
5715
+ environment?: string | null;
5716
+ error?: string | null;
5717
+ floriday_id?: string | null;
5718
+ floriday_reference?: string | null;
5719
+ http_status?: number;
5720
+ id?: string;
5721
+ item_count?: number | null;
5722
+ kind?: string | null;
5723
+ local_id?: string | null;
5724
+ local_reference?: string | null;
5725
+ method: string;
5726
+ module?: string | null;
5727
+ ok?: boolean;
5728
+ path: string;
5729
+ request?: import("../integrations/supabase/types").Json | null;
5730
+ resource_type?: string | null;
5731
+ response?: import("../integrations/supabase/types").Json | null;
5732
+ write_log_id?: string | null;
5733
+ };
5734
+ Update: {
5735
+ action?: string | null;
5736
+ caller?: string | null;
5737
+ connection_id?: string | null;
5738
+ created_at?: string;
5739
+ cursor_from?: number | null;
5740
+ direction?: string;
5741
+ duration_ms?: number | null;
5742
+ environment?: string | null;
5743
+ error?: string | null;
5744
+ floriday_id?: string | null;
5745
+ floriday_reference?: string | null;
5746
+ http_status?: number;
5747
+ id?: string;
5748
+ item_count?: number | null;
5749
+ kind?: string | null;
5750
+ local_id?: string | null;
5751
+ local_reference?: string | null;
5752
+ method?: string;
5753
+ module?: string | null;
5754
+ ok?: boolean;
5755
+ path?: string;
5756
+ request?: import("../integrations/supabase/types").Json | null;
5757
+ resource_type?: string | null;
5758
+ response?: import("../integrations/supabase/types").Json | null;
5759
+ write_log_id?: string | null;
5760
+ };
5761
+ Relationships: [{
5762
+ foreignKeyName: "floriday_api_log_connection_id_fkey";
5763
+ columns: ["connection_id"];
5764
+ isOneToOne: false;
5765
+ referencedRelation: "floriday_connections";
5766
+ referencedColumns: ["id"];
5767
+ }, {
5768
+ foreignKeyName: "floriday_api_log_write_log_id_fkey";
5769
+ columns: ["write_log_id"];
5770
+ isOneToOne: false;
5771
+ referencedRelation: "floriday_write_log";
5772
+ referencedColumns: ["id"];
5773
+ }];
5774
+ };
5616
5775
  floriday_auction_letters_cache: {
5617
5776
  Row: {
5618
5777
  auction_letter_code: string;
@@ -5820,6 +5979,84 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
5820
5979
  referencedColumns: ["id"];
5821
5980
  }];
5822
5981
  };
5982
+ floriday_catalog_prices_cache: {
5983
+ Row: {
5984
+ connection_id: string;
5985
+ created_at: string;
5986
+ currency: string;
5987
+ id: string;
5988
+ is_deleted: boolean;
5989
+ price: number | null;
5990
+ price_group_id: string | null;
5991
+ price_group_name: string | null;
5992
+ price_type: string;
5993
+ raw: import("../integrations/supabase/types").Json | null;
5994
+ sales_unit: string | null;
5995
+ sequence_number: number;
5996
+ supplier_article_code: string | null;
5997
+ supply_line_id: string;
5998
+ synced_at: string;
5999
+ trade_item_id: string | null;
6000
+ updated_at: string;
6001
+ valid_from: string | null;
6002
+ valid_to: string | null;
6003
+ week: number | null;
6004
+ year: number | null;
6005
+ };
6006
+ Insert: {
6007
+ connection_id: string;
6008
+ created_at?: string;
6009
+ currency?: string;
6010
+ id?: string;
6011
+ is_deleted?: boolean;
6012
+ price?: number | null;
6013
+ price_group_id?: string | null;
6014
+ price_group_name?: string | null;
6015
+ price_type?: string;
6016
+ raw?: import("../integrations/supabase/types").Json | null;
6017
+ sales_unit?: string | null;
6018
+ sequence_number?: number;
6019
+ supplier_article_code?: string | null;
6020
+ supply_line_id: string;
6021
+ synced_at?: string;
6022
+ trade_item_id?: string | null;
6023
+ updated_at?: string;
6024
+ valid_from?: string | null;
6025
+ valid_to?: string | null;
6026
+ week?: number | null;
6027
+ year?: number | null;
6028
+ };
6029
+ Update: {
6030
+ connection_id?: string;
6031
+ created_at?: string;
6032
+ currency?: string;
6033
+ id?: string;
6034
+ is_deleted?: boolean;
6035
+ price?: number | null;
6036
+ price_group_id?: string | null;
6037
+ price_group_name?: string | null;
6038
+ price_type?: string;
6039
+ raw?: import("../integrations/supabase/types").Json | null;
6040
+ sales_unit?: string | null;
6041
+ sequence_number?: number;
6042
+ supplier_article_code?: string | null;
6043
+ supply_line_id?: string;
6044
+ synced_at?: string;
6045
+ trade_item_id?: string | null;
6046
+ updated_at?: string;
6047
+ valid_from?: string | null;
6048
+ valid_to?: string | null;
6049
+ week?: number | null;
6050
+ year?: number | null;
6051
+ };
6052
+ Relationships: [{
6053
+ foreignKeyName: "floriday_catalog_prices_cache_connection_id_fkey";
6054
+ columns: ["connection_id"];
6055
+ isOneToOne: false;
6056
+ referencedRelation: "floriday_connections";
6057
+ referencedColumns: ["id"];
6058
+ }];
6059
+ };
5823
6060
  floriday_clock_presales_cache: {
5824
6061
  Row: {
5825
6062
  buyer_organization_id: string | null;
@@ -6735,6 +6972,69 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
6735
6972
  referencedColumns: ["id"];
6736
6973
  }];
6737
6974
  };
6975
+ floriday_link_templates: {
6976
+ Row: {
6977
+ created_at: string;
6978
+ floriday_url_template: string | null;
6979
+ is_active: boolean;
6980
+ label: string;
6981
+ local_url_template: string | null;
6982
+ resource_type: string;
6983
+ updated_at: string;
6984
+ };
6985
+ Insert: {
6986
+ created_at?: string;
6987
+ floriday_url_template?: string | null;
6988
+ is_active?: boolean;
6989
+ label: string;
6990
+ local_url_template?: string | null;
6991
+ resource_type: string;
6992
+ updated_at?: string;
6993
+ };
6994
+ Update: {
6995
+ created_at?: string;
6996
+ floriday_url_template?: string | null;
6997
+ is_active?: boolean;
6998
+ label?: string;
6999
+ local_url_template?: string | null;
7000
+ resource_type?: string;
7001
+ updated_at?: string;
7002
+ };
7003
+ Relationships: [];
7004
+ };
7005
+ floriday_log_retention: {
7006
+ Row: {
7007
+ created_at: string;
7008
+ direction: string | null;
7009
+ id: string;
7010
+ keep_failed_days: number | null;
7011
+ keep_ok_days: number | null;
7012
+ note: string | null;
7013
+ resource_type: string | null;
7014
+ updated_at: string;
7015
+ };
7016
+ Insert: {
7017
+ created_at?: string;
7018
+ direction?: string | null;
7019
+ id?: string;
7020
+ keep_failed_days?: number | null;
7021
+ keep_ok_days?: number | null;
7022
+ note?: string | null;
7023
+ resource_type?: string | null;
7024
+ updated_at?: string;
7025
+ };
7026
+ Update: {
7027
+ created_at?: string;
7028
+ direction?: string | null;
7029
+ id?: string;
7030
+ keep_failed_days?: number | null;
7031
+ keep_ok_days?: number | null;
7032
+ note?: string | null;
7033
+ resource_type?: string | null;
7034
+ updated_at?: string;
7035
+ };
7036
+ Relationships: [];
7037
+ };
6738
7038
  floriday_logistic_labels_cache: {
6739
7039
  Row: {
6740
7040
  byte_size: number | null;
@@ -10088,22 +10388,31 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
10088
10388
  };
10089
10389
  logistics_floriday_push_refusals: {
10090
10390
  Row: {
10391
+ action: string | null;
10091
10392
  created_at: string;
10092
10393
  id: string;
10093
10394
  order_ref: string;
10094
10395
  reason: string;
10396
+ source_module: string | null;
10397
+ source_shell: string | null;
10095
10398
  };
10096
10399
  Insert: {
10400
+ action?: string | null;
10097
10401
  created_at?: string;
10098
10402
  id?: string;
10099
10403
  order_ref: string;
10100
10404
  reason: string;
10405
+ source_module?: string | null;
10406
+ source_shell?: string | null;
10101
10407
  };
10102
10408
  Update: {
10409
+ action?: string | null;
10103
10410
  created_at?: string;
10104
10411
  id?: string;
10105
10412
  order_ref?: string;
10106
10413
  reason?: string;
10414
+ source_module?: string | null;
10415
+ source_shell?: string | null;
10107
10416
  };
10108
10417
  Relationships: [];
10109
10418
  };
@@ -10182,6 +10491,42 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
10182
10491
  };
10183
10492
  Relationships: [];
10184
10493
  };
10494
+ logistics_floriday_status_sends: {
10495
+ Row: {
10496
+ action: string;
10497
+ created_at: string;
10498
+ detail: string | null;
10499
+ http_status: number | null;
10500
+ id: string;
10501
+ ok: boolean;
10502
+ order_ref: string;
10503
+ source_module: string | null;
10504
+ source_shell: string | null;
10505
+ };
10506
+ Insert: {
10507
+ action: string;
10508
+ created_at?: string;
10509
+ detail?: string | null;
10510
+ http_status?: number | null;
10511
+ id?: string;
10512
+ ok?: boolean;
10513
+ order_ref: string;
10514
+ source_module?: string | null;
10515
+ source_shell?: string | null;
10516
+ };
10517
+ Update: {
10518
+ action?: string;
10519
+ created_at?: string;
10520
+ detail?: string | null;
10521
+ http_status?: number | null;
10522
+ id?: string;
10523
+ ok?: boolean;
10524
+ order_ref?: string;
10525
+ source_module?: string | null;
10526
+ source_shell?: string | null;
10527
+ };
10528
+ Relationships: [];
10529
+ };
10185
10530
  logistics_formulas: {
10186
10531
  Row: {
10187
10532
  created_at: string;
@@ -10254,6 +10599,108 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
10254
10599
  };
10255
10600
  Relationships: [];
10256
10601
  };
10602
+ logistics_opening_exceptions: {
10603
+ Row: {
10604
+ closes: string | null;
10605
+ created_at: string;
10606
+ day: string;
10607
+ id: string;
10608
+ is_closed: boolean;
10609
+ note: string | null;
10610
+ opens: string | null;
10611
+ };
10612
+ Insert: {
10613
+ closes?: string | null;
10614
+ created_at?: string;
10615
+ day: string;
10616
+ id?: string;
10617
+ is_closed?: boolean;
10618
+ note?: string | null;
10619
+ opens?: string | null;
10620
+ };
10621
+ Update: {
10622
+ closes?: string | null;
10623
+ created_at?: string;
10624
+ day?: string;
10625
+ id?: string;
10626
+ is_closed?: boolean;
10627
+ note?: string | null;
10628
+ opens?: string | null;
10629
+ };
10630
+ Relationships: [];
10631
+ };
10632
+ logistics_opening_hours: {
10633
+ Row: {
10634
+ closes: string;
10635
+ created_at: string;
10636
+ id: string;
10637
+ is_active: boolean;
10638
+ note: string | null;
10639
+ opens: string;
10640
+ weekday: number;
10641
+ };
10642
+ Insert: {
10643
+ closes: string;
10644
+ created_at?: string;
10645
+ id?: string;
10646
+ is_active?: boolean;
10647
+ note?: string | null;
10648
+ opens: string;
10649
+ weekday: number;
10650
+ };
10651
+ Update: {
10652
+ closes?: string;
10653
+ created_at?: string;
10654
+ id?: string;
10655
+ is_active?: boolean;
10656
+ note?: string | null;
10657
+ opens?: string;
10658
+ weekday?: number;
10659
+ };
10660
+ Relationships: [];
10661
+ };
10662
+ logistics_pick_data_requests: {
10663
+ Row: {
10664
+ actions: import("../integrations/supabase/types").Json;
10665
+ created_at: string;
10666
+ event_id: string | null;
10667
+ finished_at: string | null;
10668
+ id: string;
10669
+ missing: import("../integrations/supabase/types").Json;
10670
+ order_ref: string;
10671
+ reason: string | null;
10672
+ result: import("../integrations/supabase/types").Json | null;
10673
+ status: string;
10674
+ unit_ref: string | null;
10675
+ };
10676
+ Insert: {
10677
+ actions?: import("../integrations/supabase/types").Json;
10678
+ created_at?: string;
10679
+ event_id?: string | null;
10680
+ finished_at?: string | null;
10681
+ id?: string;
10682
+ missing?: import("../integrations/supabase/types").Json;
10683
+ order_ref: string;
10684
+ reason?: string | null;
10685
+ result?: import("../integrations/supabase/types").Json | null;
10686
+ status?: string;
10687
+ unit_ref?: string | null;
10688
+ };
10689
+ Update: {
10690
+ actions?: import("../integrations/supabase/types").Json;
10691
+ created_at?: string;
10692
+ event_id?: string | null;
10693
+ finished_at?: string | null;
10694
+ id?: string;
10695
+ missing?: import("../integrations/supabase/types").Json;
10696
+ order_ref?: string;
10697
+ reason?: string | null;
10698
+ result?: import("../integrations/supabase/types").Json | null;
10699
+ status?: string;
10700
+ unit_ref?: string | null;
10701
+ };
10702
+ Relationships: [];
10703
+ };
10257
10704
  logistics_pickup_moments: {
10258
10705
  Row: {
10259
10706
  carrier_ref: string | null;
@@ -10713,6 +11160,69 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
10713
11160
  };
10714
11161
  Relationships: [];
10715
11162
  };
11163
+ logistics_slip_shipping_note: {
11164
+ Row: {
11165
+ attempts: number;
11166
+ batch_key: string | null;
11167
+ cart_id: string | null;
11168
+ created_at: string;
11169
+ error: string | null;
11170
+ error_code: string | null;
11171
+ fulfillment_order_id: string | null;
11172
+ id: string;
11173
+ locked_until: string | null;
11174
+ next_attempt_at: string | null;
11175
+ order_id: string | null;
11176
+ order_number: string | null;
11177
+ print_job_id: string | null;
11178
+ printer_id: string | null;
11179
+ retry_class: string | null;
11180
+ slip_job_id: string;
11181
+ status: string;
11182
+ updated_at: string;
11183
+ };
11184
+ Insert: {
11185
+ attempts?: number;
11186
+ batch_key?: string | null;
11187
+ cart_id?: string | null;
11188
+ created_at?: string;
11189
+ error?: string | null;
11190
+ error_code?: string | null;
11191
+ fulfillment_order_id?: string | null;
11192
+ id?: string;
11193
+ locked_until?: string | null;
11194
+ next_attempt_at?: string | null;
11195
+ order_id?: string | null;
11196
+ order_number?: string | null;
11197
+ print_job_id?: string | null;
11198
+ printer_id?: string | null;
11199
+ retry_class?: string | null;
11200
+ slip_job_id: string;
11201
+ status?: string;
11202
+ updated_at?: string;
11203
+ };
11204
+ Update: {
11205
+ attempts?: number;
11206
+ batch_key?: string | null;
11207
+ cart_id?: string | null;
11208
+ created_at?: string;
11209
+ error?: string | null;
11210
+ error_code?: string | null;
11211
+ fulfillment_order_id?: string | null;
11212
+ id?: string;
11213
+ locked_until?: string | null;
11214
+ next_attempt_at?: string | null;
11215
+ order_id?: string | null;
11216
+ order_number?: string | null;
11217
+ print_job_id?: string | null;
11218
+ printer_id?: string | null;
11219
+ retry_class?: string | null;
11220
+ slip_job_id?: string;
11221
+ status?: string;
11222
+ updated_at?: string;
11223
+ };
11224
+ Relationships: [];
11225
+ };
10716
11226
  logistics_staff_planning: {
10717
11227
  Row: {
10718
11228
  created_at: string;
@@ -11046,6 +11556,129 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
11046
11556
  };
11047
11557
  Relationships: [];
11048
11558
  };
11559
+ logistics_time_settings: {
11560
+ Row: {
11561
+ id: boolean;
11562
+ timezone: string;
11563
+ updated_at: string;
11564
+ };
11565
+ Insert: {
11566
+ id?: boolean;
11567
+ timezone: string;
11568
+ updated_at?: string;
11569
+ };
11570
+ Update: {
11571
+ id?: boolean;
11572
+ timezone?: string;
11573
+ updated_at?: string;
11574
+ };
11575
+ Relationships: [];
11576
+ };
11577
+ logistics_trace_events: {
11578
+ Row: {
11579
+ actor: string | null;
11580
+ attempts: number;
11581
+ cart_ref: string | null;
11582
+ created_at: string;
11583
+ db_action: string | null;
11584
+ db_new: import("../integrations/supabase/types").Json | null;
11585
+ db_old: import("../integrations/supabase/types").Json | null;
11586
+ db_record: string | null;
11587
+ db_table: string | null;
11588
+ decision: string | null;
11589
+ duration_ms: number | null;
11590
+ error: string | null;
11591
+ external_action: string | null;
11592
+ external_ref: string | null;
11593
+ external_response: import("../integrations/supabase/types").Json | null;
11594
+ external_status: string | null;
11595
+ external_system: string | null;
11596
+ id: string;
11597
+ input: import("../integrations/supabase/types").Json | null;
11598
+ next_attempt_at: string | null;
11599
+ order_ref: string | null;
11600
+ order_source: string | null;
11601
+ output: import("../integrations/supabase/types").Json | null;
11602
+ phase: string;
11603
+ reads: import("../integrations/supabase/types").Json | null;
11604
+ reason: string | null;
11605
+ rule: string | null;
11606
+ slip_ref: string | null;
11607
+ status: string;
11608
+ step: string;
11609
+ trace_id: string;
11610
+ values_used: import("../integrations/supabase/types").Json | null;
11611
+ };
11612
+ Insert: {
11613
+ actor?: string | null;
11614
+ attempts?: number;
11615
+ cart_ref?: string | null;
11616
+ created_at?: string;
11617
+ db_action?: string | null;
11618
+ db_new?: import("../integrations/supabase/types").Json | null;
11619
+ db_old?: import("../integrations/supabase/types").Json | null;
11620
+ db_record?: string | null;
11621
+ db_table?: string | null;
11622
+ decision?: string | null;
11623
+ duration_ms?: number | null;
11624
+ error?: string | null;
11625
+ external_action?: string | null;
11626
+ external_ref?: string | null;
11627
+ external_response?: import("../integrations/supabase/types").Json | null;
11628
+ external_status?: string | null;
11629
+ external_system?: string | null;
11630
+ id?: string;
11631
+ input?: import("../integrations/supabase/types").Json | null;
11632
+ next_attempt_at?: string | null;
11633
+ order_ref?: string | null;
11634
+ order_source?: string | null;
11635
+ output?: import("../integrations/supabase/types").Json | null;
11636
+ phase: string;
11637
+ reads?: import("../integrations/supabase/types").Json | null;
11638
+ reason?: string | null;
11639
+ rule?: string | null;
11640
+ slip_ref?: string | null;
11641
+ status: string;
11642
+ step: string;
11643
+ trace_id?: string;
11644
+ values_used?: import("../integrations/supabase/types").Json | null;
11645
+ };
11646
+ Update: {
11647
+ actor?: string | null;
11648
+ attempts?: number;
11649
+ cart_ref?: string | null;
11650
+ created_at?: string;
11651
+ db_action?: string | null;
11652
+ db_new?: import("../integrations/supabase/types").Json | null;
11653
+ db_old?: import("../integrations/supabase/types").Json | null;
11654
+ db_record?: string | null;
11655
+ db_table?: string | null;
11656
+ decision?: string | null;
11657
+ duration_ms?: number | null;
11658
+ error?: string | null;
11659
+ external_action?: string | null;
11660
+ external_ref?: string | null;
11661
+ external_response?: import("../integrations/supabase/types").Json | null;
11662
+ external_status?: string | null;
11663
+ external_system?: string | null;
11664
+ id?: string;
11665
+ input?: import("../integrations/supabase/types").Json | null;
11666
+ next_attempt_at?: string | null;
11667
+ order_ref?: string | null;
11668
+ order_source?: string | null;
11669
+ output?: import("../integrations/supabase/types").Json | null;
11670
+ phase?: string;
11671
+ reads?: import("../integrations/supabase/types").Json | null;
11672
+ reason?: string | null;
11673
+ rule?: string | null;
11674
+ slip_ref?: string | null;
11675
+ status?: string;
11676
+ step?: string;
11677
+ trace_id?: string;
11678
+ values_used?: import("../integrations/supabase/types").Json | null;
11679
+ };
11680
+ Relationships: [];
11681
+ };
11049
11682
  logistics_variables: {
11050
11683
  Row: {
11051
11684
  created_at: string;
@@ -13436,6 +14069,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
13436
14069
  customer_name: string;
13437
14070
  deleted_at: string | null;
13438
14071
  delivery_date: string | null;
14072
+ floriday_order_group_key: string | null;
13439
14073
  floriday_sales_order_id: string | null;
13440
14074
  id: string;
13441
14075
  invoice_due_at: string | null;
@@ -13463,6 +14097,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
13463
14097
  customer_name?: string;
13464
14098
  deleted_at?: string | null;
13465
14099
  delivery_date?: string | null;
14100
+ floriday_order_group_key?: string | null;
13466
14101
  floriday_sales_order_id?: string | null;
13467
14102
  id?: string;
13468
14103
  invoice_due_at?: string | null;
@@ -13490,6 +14125,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
13490
14125
  customer_name?: string;
13491
14126
  deleted_at?: string | null;
13492
14127
  delivery_date?: string | null;
14128
+ floriday_order_group_key?: string | null;
13493
14129
  floriday_sales_order_id?: string | null;
13494
14130
  id?: string;
13495
14131
  invoice_due_at?: string | null;
@@ -21615,6 +22251,15 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
21615
22251
  Args: never;
21616
22252
  Returns: boolean;
21617
22253
  };
22254
+ cancel_open_print_jobs: {
22255
+ Args: {
22256
+ _cutoff: string;
22257
+ };
22258
+ Returns: {
22259
+ extern_job_id: string;
22260
+ id: string;
22261
+ }[];
22262
+ };
21618
22263
  check_offer_product_available_stock: {
21619
22264
  Args: {
21620
22265
  p_campaign_product_id: string;
@@ -23153,6 +23798,12 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
23153
23798
  };
23154
23799
  Returns: string;
23155
23800
  };
23801
+ logistics_cart_checkin_at: {
23802
+ Args: {
23803
+ p_cart_id: string;
23804
+ };
23805
+ Returns: string;
23806
+ };
23156
23807
  logistics_cart_handled: {
23157
23808
  Args: {
23158
23809
  p_cart_index: number;
@@ -23186,10 +23837,22 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
23186
23837
  task_status: string;
23187
23838
  }[];
23188
23839
  };
23840
+ logistics_cart_is_full: {
23841
+ Args: {
23842
+ p_cart_id: string;
23843
+ };
23844
+ Returns: boolean;
23845
+ };
23189
23846
  logistics_cart_layout_method: {
23190
23847
  Args: never;
23191
23848
  Returns: import("../integrations/supabase/types").Json;
23192
23849
  };
23850
+ logistics_cart_order_refs: {
23851
+ Args: {
23852
+ p_cart_id: string;
23853
+ };
23854
+ Returns: string[];
23855
+ };
23193
23856
  logistics_cart_plan_overview: {
23194
23857
  Args: {
23195
23858
  p_days?: number;
@@ -23209,6 +23872,24 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
23209
23872
  };
23210
23873
  Returns: import("../integrations/supabase/types").Json;
23211
23874
  };
23875
+ logistics_cart_plan_status_core: {
23876
+ Args: {
23877
+ p_ref: string;
23878
+ };
23879
+ Returns: import("../integrations/supabase/types").Json;
23880
+ };
23881
+ logistics_cart_release_reason: {
23882
+ Args: {
23883
+ p_cart_id: string;
23884
+ };
23885
+ Returns: string;
23886
+ };
23887
+ logistics_cart_released: {
23888
+ Args: {
23889
+ p_cart_id: string;
23890
+ };
23891
+ Returns: boolean;
23892
+ };
23212
23893
  logistics_cart_seq: {
23213
23894
  Args: {
23214
23895
  p_order_uuid?: string;
@@ -23259,6 +23940,10 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
23259
23940
  unit_ref: string;
23260
23941
  }[];
23261
23942
  };
23943
+ logistics_carts_per_print: {
23944
+ Args: never;
23945
+ Returns: number;
23946
+ };
23262
23947
  logistics_check_order_allowed: {
23263
23948
  Args: {
23264
23949
  p_lines: import("../integrations/supabase/types").Json;
@@ -23362,6 +24047,10 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
23362
24047
  isSetofReturn: false;
23363
24048
  };
23364
24049
  };
24050
+ logistics_cleanup_orphan_print_jobs: {
24051
+ Args: never;
24052
+ Returns: import("../integrations/supabase/types").Json;
24053
+ };
23365
24054
  logistics_complete_task: {
23366
24055
  Args: {
23367
24056
  p_result?: import("../integrations/supabase/types").Json;
@@ -23424,6 +24113,12 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
23424
24113
  station_carts: number;
23425
24114
  }[];
23426
24115
  };
24116
+ logistics_control_complete_cart: {
24117
+ Args: {
24118
+ p_cart_id: string;
24119
+ };
24120
+ Returns: number;
24121
+ };
23427
24122
  logistics_control_scan_approve: {
23428
24123
  Args: {
23429
24124
  p_allow_reprint?: boolean;
@@ -23503,6 +24198,15 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
23503
24198
  Args: never;
23504
24199
  Returns: import("../integrations/supabase/types").Json;
23505
24200
  };
24201
+ logistics_day_windows: {
24202
+ Args: {
24203
+ p_day: string;
24204
+ };
24205
+ Returns: {
24206
+ win_end: string;
24207
+ win_start: string;
24208
+ }[];
24209
+ };
23506
24210
  logistics_delay_customer_email: {
23507
24211
  Args: {
23508
24212
  p_customer: string;
@@ -23570,6 +24274,17 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
23570
24274
  };
23571
24275
  Returns: import("../integrations/supabase/types").Json;
23572
24276
  };
24277
+ logistics_enqueue_shipping_note_with_slip: {
24278
+ Args: {
24279
+ _cart_id: string;
24280
+ _is_herprint: boolean;
24281
+ _printer_id: string;
24282
+ _queue_item_id: string;
24283
+ _session_id: string;
24284
+ _slip_job_id: string;
24285
+ };
24286
+ Returns: string;
24287
+ };
23573
24288
  logistics_enqueue_sticker_with_slip: {
23574
24289
  Args: {
23575
24290
  _cart_id: string;
@@ -23587,6 +24302,20 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
23587
24302
  };
23588
24303
  Returns: string;
23589
24304
  };
24305
+ logistics_ensure_pick_data: {
24306
+ Args: {
24307
+ p_event_id?: string;
24308
+ p_missing?: import("../integrations/supabase/types").Json;
24309
+ p_ref: string;
24310
+ };
24311
+ Returns: import("../integrations/supabase/types").Json;
24312
+ };
24313
+ logistics_ensure_shipping_notes: {
24314
+ Args: {
24315
+ p_limit?: number;
24316
+ };
24317
+ Returns: import("../integrations/supabase/types").Json;
24318
+ };
23590
24319
  logistics_fail_task: {
23591
24320
  Args: {
23592
24321
  p_error: string;
@@ -23632,6 +24361,10 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
23632
24361
  isSetofReturn: false;
23633
24362
  };
23634
24363
  };
24364
+ logistics_fix_wrong_shipping_notes: {
24365
+ Args: never;
24366
+ Returns: import("../integrations/supabase/types").Json;
24367
+ };
23635
24368
  logistics_floriday_cart_plan: {
23636
24369
  Args: {
23637
24370
  p_order_id: string;
@@ -23659,6 +24392,10 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
23659
24392
  revision: number;
23660
24393
  }[];
23661
24394
  };
24395
+ logistics_floriday_delivery_note_create_enabled: {
24396
+ Args: never;
24397
+ Returns: boolean;
24398
+ };
23662
24399
  logistics_floriday_finish_push: {
23663
24400
  Args: {
23664
24401
  _error?: string;
@@ -23708,6 +24445,32 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
23708
24445
  };
23709
24446
  Returns: string;
23710
24447
  };
24448
+ logistics_floriday_gate_status: {
24449
+ Args: never;
24450
+ Returns: import("../integrations/supabase/types").Json;
24451
+ };
24452
+ logistics_floriday_log_refusal: {
24453
+ Args: {
24454
+ _action?: string;
24455
+ _module?: string;
24456
+ _order_ref: string;
24457
+ _reason: string;
24458
+ _shell?: string;
24459
+ };
24460
+ Returns: undefined;
24461
+ };
24462
+ logistics_floriday_log_send: {
24463
+ Args: {
24464
+ _action: string;
24465
+ _detail?: string;
24466
+ _http_status?: number;
24467
+ _module?: string;
24468
+ _ok: boolean;
24469
+ _order_ref: string;
24470
+ _shell?: string;
24471
+ };
24472
+ Returns: undefined;
24473
+ };
23711
24474
  logistics_floriday_order_approved: {
23712
24475
  Args: {
23713
24476
  _order_ref: string;
@@ -23732,6 +24495,16 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
23732
24495
  Args: never;
23733
24496
  Returns: boolean;
23734
24497
  };
24498
+ logistics_floriday_stock_updates_enabled: {
24499
+ Args: never;
24500
+ Returns: boolean;
24501
+ };
24502
+ logistics_floriday_write_allowed: {
24503
+ Args: {
24504
+ _action: string;
24505
+ };
24506
+ Returns: boolean;
24507
+ };
23735
24508
  logistics_fulfill_barcode_requests: {
23736
24509
  Args: {
23737
24510
  p_limit?: number;
@@ -23774,6 +24547,12 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
23774
24547
  };
23775
24548
  Returns: number;
23776
24549
  };
24550
+ logistics_merge_partial_carts: {
24551
+ Args: {
24552
+ p_limit?: number;
24553
+ };
24554
+ Returns: import("../integrations/supabase/types").Json;
24555
+ };
23777
24556
  logistics_next_workday_date: {
23778
24557
  Args: {
23779
24558
  p_date: string;
@@ -23800,6 +24579,10 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
23800
24579
  };
23801
24580
  Returns: string;
23802
24581
  };
24582
+ logistics_opening_timezone: {
24583
+ Args: never;
24584
+ Returns: string;
24585
+ };
23803
24586
  logistics_order_cart_count: {
23804
24587
  Args: {
23805
24588
  p_order_ref: string;
@@ -23856,6 +24639,12 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
23856
24639
  };
23857
24640
  Returns: string;
23858
24641
  };
24642
+ logistics_payload_is_floriday: {
24643
+ Args: {
24644
+ _payload: import("../integrations/supabase/types").Json;
24645
+ };
24646
+ Returns: boolean;
24647
+ };
23859
24648
  logistics_pick_agenda: {
23860
24649
  Args: {
23861
24650
  p_from?: string;
@@ -23884,6 +24673,10 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
23884
24673
  Args: never;
23885
24674
  Returns: import("../integrations/supabase/types").Json;
23886
24675
  };
24676
+ logistics_pick_partial_mode: {
24677
+ Args: never;
24678
+ Returns: string;
24679
+ };
23887
24680
  logistics_pick_start_estimate: {
23888
24681
  Args: {
23889
24682
  p_order: import("../integrations/supabase/types").Json;
@@ -23974,6 +24767,20 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
23974
24767
  Args: never;
23975
24768
  Returns: undefined;
23976
24769
  };
24770
+ logistics_plan_progress: {
24771
+ Args: {
24772
+ p_refs: string[];
24773
+ };
24774
+ Returns: {
24775
+ cart_plan_ready: boolean;
24776
+ cart_plan_reason: string;
24777
+ cart_plan_released: boolean;
24778
+ plan_progress: number;
24779
+ plan_state: string;
24780
+ plan_state_since: string;
24781
+ unit_ref: string;
24782
+ }[];
24783
+ };
23977
24784
  logistics_plan_prune: {
23978
24785
  Args: never;
23979
24786
  Returns: number;
@@ -23995,6 +24802,18 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
23995
24802
  };
23996
24803
  Returns: number;
23997
24804
  };
24805
+ logistics_plan_state_for: {
24806
+ Args: {
24807
+ p_ref: string;
24808
+ };
24809
+ Returns: import("../integrations/supabase/types").Json;
24810
+ };
24811
+ logistics_prepare_pick_documents: {
24812
+ Args: {
24813
+ p_limit?: number;
24814
+ };
24815
+ Returns: import("../integrations/supabase/types").Json;
24816
+ };
23998
24817
  logistics_prune_buffer_member_queue: {
23999
24818
  Args: never;
24000
24819
  Returns: number;
@@ -24035,18 +24854,36 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
24035
24854
  Args: never;
24036
24855
  Returns: import("../integrations/supabase/types").Json;
24037
24856
  };
24857
+ logistics_refresh_pick_queue_status: {
24858
+ Args: {
24859
+ p_ref: string;
24860
+ };
24861
+ Returns: number;
24862
+ };
24038
24863
  logistics_refresh_pickup_moments: {
24039
24864
  Args: {
24040
24865
  p_weeks?: number;
24041
24866
  };
24042
24867
  Returns: import("../integrations/supabase/types").Json;
24043
24868
  };
24869
+ logistics_refresh_plan_state: {
24870
+ Args: {
24871
+ p_limit?: number;
24872
+ };
24873
+ Returns: import("../integrations/supabase/types").Json;
24874
+ };
24044
24875
  logistics_replan_all: {
24045
24876
  Args: {
24046
24877
  p_reason?: string;
24047
24878
  };
24048
24879
  Returns: import("../integrations/supabase/types").Json;
24049
24880
  };
24881
+ logistics_replan_all_force: {
24882
+ Args: {
24883
+ p_reason?: string;
24884
+ };
24885
+ Returns: import("../integrations/supabase/types").Json;
24886
+ };
24050
24887
  logistics_report_delay: {
24051
24888
  Args: {
24052
24889
  p_expected_date?: string;
@@ -24191,6 +25028,10 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
24191
25028
  };
24192
25029
  Returns: string;
24193
25030
  };
25031
+ logistics_shipping_note_follows_slip: {
25032
+ Args: never;
25033
+ Returns: boolean;
25034
+ };
24194
25035
  logistics_shipping_note_from_barcode: {
24195
25036
  Args: {
24196
25037
  p_allow_reprint?: boolean;
@@ -24199,10 +25040,86 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
24199
25040
  };
24200
25041
  Returns: import("../integrations/supabase/types").Json;
24201
25042
  };
25043
+ logistics_shipping_note_job_for_slip: {
25044
+ Args: {
25045
+ _slip_job_id: string;
25046
+ };
25047
+ Returns: string;
25048
+ };
25049
+ logistics_shipping_notes_wake_all: {
25050
+ Args: never;
25051
+ Returns: import("../integrations/supabase/types").Json;
25052
+ };
25053
+ logistics_slip_is_floriday: {
25054
+ Args: {
25055
+ _slip_job_id: string;
25056
+ };
25057
+ Returns: boolean;
25058
+ };
25059
+ logistics_slip_note_claim: {
25060
+ Args: {
25061
+ _lease_seconds?: number;
25062
+ _limit?: number;
25063
+ };
25064
+ Returns: {
25065
+ attempts: number;
25066
+ batch_key: string | null;
25067
+ cart_id: string | null;
25068
+ created_at: string;
25069
+ error: string | null;
25070
+ error_code: string | null;
25071
+ fulfillment_order_id: string | null;
25072
+ id: string;
25073
+ locked_until: string | null;
25074
+ next_attempt_at: string | null;
25075
+ order_id: string | null;
25076
+ order_number: string | null;
25077
+ print_job_id: string | null;
25078
+ printer_id: string | null;
25079
+ retry_class: string | null;
25080
+ slip_job_id: string;
25081
+ status: string;
25082
+ updated_at: string;
25083
+ }[];
25084
+ SetofOptions: {
25085
+ from: "*";
25086
+ to: "logistics_slip_shipping_note";
25087
+ isOneToOne: false;
25088
+ isSetofReturn: true;
25089
+ };
25090
+ };
25091
+ logistics_slip_note_finish: {
25092
+ Args: {
25093
+ _error?: string;
25094
+ _error_code?: string;
25095
+ _fulfillment_order_id?: string;
25096
+ _id: string;
25097
+ _ok: boolean;
25098
+ _print_job_id?: string;
25099
+ _status?: string;
25100
+ };
25101
+ Returns: undefined;
25102
+ };
25103
+ logistics_slip_note_keep_waiting: {
25104
+ Args: {
25105
+ _class?: string;
25106
+ _id: string;
25107
+ _reason: string;
25108
+ };
25109
+ Returns: undefined;
25110
+ };
24202
25111
  logistics_sticker_follows_slip: {
24203
25112
  Args: never;
24204
25113
  Returns: boolean;
24205
25114
  };
25115
+ logistics_subtract_working_minutes: {
25116
+ Args: {
25117
+ p_deadline: string;
25118
+ p_max_workdays?: number;
25119
+ p_minutes: number;
25120
+ };
25121
+ Returns: import("../integrations/supabase/types").Json;
25122
+ };
24206
25123
  logistics_supersede_stale_tasks: {
24207
25124
  Args: {
24208
25125
  p_keep: string[];
@@ -24239,6 +25156,46 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
24239
25156
  Args: never;
24240
25157
  Returns: string;
24241
25158
  };
25159
+ logistics_timezone_options: {
25160
+ Args: never;
25161
+ Returns: {
25162
+ name: string;
25163
+ }[];
25164
+ };
25165
+ logistics_trace: {
25166
+ Args: {
25167
+ p: import("../integrations/supabase/types").Json;
25168
+ };
25169
+ Returns: string;
25170
+ };
25171
+ logistics_trace_batch: {
25172
+ Args: {
25173
+ p: import("../integrations/supabase/types").Json;
25174
+ };
25175
+ Returns: number;
25176
+ };
25177
+ logistics_trace_orders: {
25178
+ Args: {
25179
+ p_limit?: number;
25180
+ p_search?: string;
25181
+ p_since?: string;
25182
+ p_status?: string;
25183
+ };
25184
+ Returns: import("../integrations/supabase/types").Json;
25185
+ };
25186
+ logistics_trace_redact: {
25187
+ Args: {
25188
+ p: import("../integrations/supabase/types").Json;
25189
+ };
25190
+ Returns: import("../integrations/supabase/types").Json;
25191
+ };
25192
+ logistics_trace_timeline: {
25193
+ Args: {
25194
+ p_limit?: number;
25195
+ p_order_ref: string;
25196
+ };
25197
+ Returns: import("../integrations/supabase/types").Json;
25198
+ };
24242
25199
  logistics_upsert_task: {
24243
25200
  Args: {
24244
25201
  p_buffer_ref: string;
@@ -24258,6 +25215,16 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
24258
25215
  };
24259
25216
  Returns: string;
24260
25217
  };
25218
+ logistics_valid_timezone: {
25219
+ Args: {
25220
+ _tz: string;
25221
+ };
25222
+ Returns: boolean;
25223
+ };
25224
+ logistics_working_hours_status: {
25225
+ Args: never;
25226
+ Returns: import("../integrations/supabase/types").Json;
25227
+ };
24261
25228
  logistics_write_buffer_layer_positions: {
24262
25229
  Args: {
24263
25230
  p_buffer_id: string;
@@ -25270,6 +26237,10 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
25270
26237
  };
25271
26238
  Returns: undefined;
25272
26239
  };
26240
+ prune_floriday_api_log: {
26241
+ Args: never;
26242
+ Returns: number;
26243
+ };
25273
26244
  quote_create_from_source: {
25274
26245
  Args: {
25275
26246
  _payload?: import("../integrations/supabase/types").Json;
@@ -25703,6 +26674,13 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
25703
26674
  };
25704
26675
  Returns: number;
25705
26676
  };
26677
+ schedule_floriday_catalog_prices_sync: {
26678
+ Args: {
26679
+ p_apikey: string;
26680
+ p_url: string;
26681
+ };
26682
+ Returns: number;
26683
+ };
25706
26684
  schedule_floriday_clock_presales_sync: {
25707
26685
  Args: {
25708
26686
  p_apikey: string;
@@ -26003,6 +26981,10 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
26003
26981
  };
26004
26982
  Returns: undefined;
26005
26983
  };
26984
+ sync_floriday_prices_into_price_groups: {
26985
+ Args: never;
26986
+ Returns: number;
26987
+ };
26006
26988
  sync_layer_stock: {
26007
26989
  Args: {
26008
26990
  p_product_id: string;
@@ -26135,6 +27117,10 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
26135
27117
  Args: never;
26136
27118
  Returns: string;
26137
27119
  };
27120
+ voorraad_cleanup_old_rows: {
27121
+ Args: never;
27122
+ Returns: import("../integrations/supabase/types").Json;
27123
+ };
26138
27124
  wake_print_queue: {
26139
27125
  Args: {
26140
27126
  _min_interval_ms?: number;
@@ -28430,6 +29416,45 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
28430
29416
  };
28431
29417
  Relationships: [];
28432
29418
  };
29419
+ customer_product_stickers: {
29420
+ Row: {
29421
+ created_at: string;
29422
+ customer_key: string;
29423
+ file_name: string;
29424
+ file_path: string;
29425
+ file_size: number | null;
29426
+ id: string;
29427
+ mime_type: string | null;
29428
+ trade_item_key: string;
29429
+ updated_at: string;
29430
+ uploaded_by: string | null;
29431
+ };
29432
+ Insert: {
29433
+ created_at?: string;
29434
+ customer_key: string;
29435
+ file_name: string;
29436
+ file_path: string;
29437
+ file_size?: number | null;
29438
+ id?: string;
29439
+ mime_type?: string | null;
29440
+ trade_item_key: string;
29441
+ updated_at?: string;
29442
+ uploaded_by?: string | null;
29443
+ };
29444
+ Update: {
29445
+ created_at?: string;
29446
+ customer_key?: string;
29447
+ file_name?: string;
29448
+ file_path?: string;
29449
+ file_size?: number | null;
29450
+ id?: string;
29451
+ mime_type?: string | null;
29452
+ trade_item_key?: string;
29453
+ updated_at?: string;
29454
+ uploaded_by?: string | null;
29455
+ };
29456
+ Relationships: [];
29457
+ };
28433
29458
  customer_selected_assortment: {
28434
29459
  Row: {
28435
29460
  article_number: string | null;
@@ -28478,6 +29503,30 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
28478
29503
  referencedColumns: ["id"];
28479
29504
  }];
28480
29505
  };
29506
+ customer_sticker_settings: {
29507
+ Row: {
29508
+ created_at: string;
29509
+ customer_key: string;
29510
+ height_mm: number;
29511
+ updated_at: string;
29512
+ width_mm: number;
29513
+ };
29514
+ Insert: {
29515
+ created_at?: string;
29516
+ customer_key: string;
29517
+ height_mm?: number;
29518
+ updated_at?: string;
29519
+ width_mm?: number;
29520
+ };
29521
+ Update: {
29522
+ created_at?: string;
29523
+ customer_key?: string;
29524
+ height_mm?: number;
29525
+ updated_at?: string;
29526
+ width_mm?: number;
29527
+ };
29528
+ Relationships: [];
29529
+ };
28481
29530
  customer_trade_settings: {
28482
29531
  Row: {
28483
29532
  category: string;
@@ -31808,6 +32857,102 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
31808
32857
  referencedColumns: ["id"];
31809
32858
  }];
31810
32859
  };
32860
+ floriday_api_log: {
32861
+ Row: {
32862
+ action: string | null;
32863
+ caller: string | null;
32864
+ connection_id: string | null;
32865
+ created_at: string;
32866
+ cursor_from: number | null;
32867
+ direction: string;
32868
+ duration_ms: number | null;
32869
+ environment: string | null;
32870
+ error: string | null;
32871
+ floriday_id: string | null;
32872
+ floriday_reference: string | null;
32873
+ http_status: number;
32874
+ id: string;
32875
+ item_count: number | null;
32876
+ kind: string | null;
32877
+ local_id: string | null;
32878
+ local_reference: string | null;
32879
+ method: string;
32880
+ module: string | null;
32881
+ ok: boolean;
32882
+ path: string;
32883
+ request: import("../integrations/supabase/types").Json | null;
32884
+ resource_type: string | null;
32885
+ response: import("../integrations/supabase/types").Json | null;
32886
+ write_log_id: string | null;
32887
+ };
32888
+ Insert: {
32889
+ action?: string | null;
32890
+ caller?: string | null;
32891
+ connection_id?: string | null;
32892
+ created_at?: string;
32893
+ cursor_from?: number | null;
32894
+ direction: string;
32895
+ duration_ms?: number | null;
32896
+ environment?: string | null;
32897
+ error?: string | null;
32898
+ floriday_id?: string | null;
32899
+ floriday_reference?: string | null;
32900
+ http_status?: number;
32901
+ id?: string;
32902
+ item_count?: number | null;
32903
+ kind?: string | null;
32904
+ local_id?: string | null;
32905
+ local_reference?: string | null;
32906
+ method: string;
32907
+ module?: string | null;
32908
+ ok?: boolean;
32909
+ path: string;
32910
+ request?: import("../integrations/supabase/types").Json | null;
32911
+ resource_type?: string | null;
32912
+ response?: import("../integrations/supabase/types").Json | null;
32913
+ write_log_id?: string | null;
32914
+ };
32915
+ Update: {
32916
+ action?: string | null;
32917
+ caller?: string | null;
32918
+ connection_id?: string | null;
32919
+ created_at?: string;
32920
+ cursor_from?: number | null;
32921
+ direction?: string;
32922
+ duration_ms?: number | null;
32923
+ environment?: string | null;
32924
+ error?: string | null;
32925
+ floriday_id?: string | null;
32926
+ floriday_reference?: string | null;
32927
+ http_status?: number;
32928
+ id?: string;
32929
+ item_count?: number | null;
32930
+ kind?: string | null;
32931
+ local_id?: string | null;
32932
+ local_reference?: string | null;
32933
+ method?: string;
32934
+ module?: string | null;
32935
+ ok?: boolean;
32936
+ path?: string;
32937
+ request?: import("../integrations/supabase/types").Json | null;
32938
+ resource_type?: string | null;
32939
+ response?: import("../integrations/supabase/types").Json | null;
32940
+ write_log_id?: string | null;
32941
+ };
32942
+ Relationships: [{
32943
+ foreignKeyName: "floriday_api_log_connection_id_fkey";
32944
+ columns: ["connection_id"];
32945
+ isOneToOne: false;
32946
+ referencedRelation: "floriday_connections";
32947
+ referencedColumns: ["id"];
32948
+ }, {
32949
+ foreignKeyName: "floriday_api_log_write_log_id_fkey";
32950
+ columns: ["write_log_id"];
32951
+ isOneToOne: false;
32952
+ referencedRelation: "floriday_write_log";
32953
+ referencedColumns: ["id"];
32954
+ }];
32955
+ };
31811
32956
  floriday_auction_letters_cache: {
31812
32957
  Row: {
31813
32958
  auction_letter_code: string;
@@ -32015,6 +33160,84 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
32015
33160
  referencedColumns: ["id"];
32016
33161
  }];
32017
33162
  };
33163
+ floriday_catalog_prices_cache: {
33164
+ Row: {
33165
+ connection_id: string;
33166
+ created_at: string;
33167
+ currency: string;
33168
+ id: string;
33169
+ is_deleted: boolean;
33170
+ price: number | null;
33171
+ price_group_id: string | null;
33172
+ price_group_name: string | null;
33173
+ price_type: string;
33174
+ raw: import("../integrations/supabase/types").Json | null;
33175
+ sales_unit: string | null;
33176
+ sequence_number: number;
33177
+ supplier_article_code: string | null;
33178
+ supply_line_id: string;
33179
+ synced_at: string;
33180
+ trade_item_id: string | null;
33181
+ updated_at: string;
33182
+ valid_from: string | null;
33183
+ valid_to: string | null;
33184
+ week: number | null;
33185
+ year: number | null;
33186
+ };
33187
+ Insert: {
33188
+ connection_id: string;
33189
+ created_at?: string;
33190
+ currency?: string;
33191
+ id?: string;
33192
+ is_deleted?: boolean;
33193
+ price?: number | null;
33194
+ price_group_id?: string | null;
33195
+ price_group_name?: string | null;
33196
+ price_type?: string;
33197
+ raw?: import("../integrations/supabase/types").Json | null;
33198
+ sales_unit?: string | null;
33199
+ sequence_number?: number;
33200
+ supplier_article_code?: string | null;
33201
+ supply_line_id: string;
33202
+ synced_at?: string;
33203
+ trade_item_id?: string | null;
33204
+ updated_at?: string;
33205
+ valid_from?: string | null;
33206
+ valid_to?: string | null;
33207
+ week?: number | null;
33208
+ year?: number | null;
33209
+ };
33210
+ Update: {
33211
+ connection_id?: string;
33212
+ created_at?: string;
33213
+ currency?: string;
33214
+ id?: string;
33215
+ is_deleted?: boolean;
33216
+ price?: number | null;
33217
+ price_group_id?: string | null;
33218
+ price_group_name?: string | null;
33219
+ price_type?: string;
33220
+ raw?: import("../integrations/supabase/types").Json | null;
33221
+ sales_unit?: string | null;
33222
+ sequence_number?: number;
33223
+ supplier_article_code?: string | null;
33224
+ supply_line_id?: string;
33225
+ synced_at?: string;
33226
+ trade_item_id?: string | null;
33227
+ updated_at?: string;
33228
+ valid_from?: string | null;
33229
+ valid_to?: string | null;
33230
+ week?: number | null;
33231
+ year?: number | null;
33232
+ };
33233
+ Relationships: [{
33234
+ foreignKeyName: "floriday_catalog_prices_cache_connection_id_fkey";
33235
+ columns: ["connection_id"];
33236
+ isOneToOne: false;
33237
+ referencedRelation: "floriday_connections";
33238
+ referencedColumns: ["id"];
33239
+ }];
33240
+ };
32018
33241
  floriday_clock_presales_cache: {
32019
33242
  Row: {
32020
33243
  buyer_organization_id: string | null;
@@ -32930,6 +34153,69 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
32930
34153
  referencedColumns: ["id"];
32931
34154
  }];
32932
34155
  };
34156
+ floriday_link_templates: {
34157
+ Row: {
34158
+ created_at: string;
34159
+ floriday_url_template: string | null;
34160
+ is_active: boolean;
34161
+ label: string;
34162
+ local_url_template: string | null;
34163
+ resource_type: string;
34164
+ updated_at: string;
34165
+ };
34166
+ Insert: {
34167
+ created_at?: string;
34168
+ floriday_url_template?: string | null;
34169
+ is_active?: boolean;
34170
+ label: string;
34171
+ local_url_template?: string | null;
34172
+ resource_type: string;
34173
+ updated_at?: string;
34174
+ };
34175
+ Update: {
34176
+ created_at?: string;
34177
+ floriday_url_template?: string | null;
34178
+ is_active?: boolean;
34179
+ label?: string;
34180
+ local_url_template?: string | null;
34181
+ resource_type?: string;
34182
+ updated_at?: string;
34183
+ };
34184
+ Relationships: [];
34185
+ };
34186
+ floriday_log_retention: {
34187
+ Row: {
34188
+ created_at: string;
34189
+ direction: string | null;
34190
+ id: string;
34191
+ keep_failed_days: number | null;
34192
+ keep_ok_days: number | null;
34193
+ note: string | null;
34194
+ resource_type: string | null;
34195
+ updated_at: string;
34196
+ };
34197
+ Insert: {
34198
+ created_at?: string;
34199
+ direction?: string | null;
34200
+ id?: string;
34201
+ keep_failed_days?: number | null;
34202
+ keep_ok_days?: number | null;
34203
+ note?: string | null;
34204
+ resource_type?: string | null;
34205
+ updated_at?: string;
34206
+ };
34207
+ Update: {
34208
+ created_at?: string;
34209
+ direction?: string | null;
34210
+ id?: string;
34211
+ keep_failed_days?: number | null;
34212
+ keep_ok_days?: number | null;
34213
+ note?: string | null;
34214
+ resource_type?: string | null;
34215
+ updated_at?: string;
34216
+ };
34217
+ Relationships: [];
34218
+ };
32933
34219
  floriday_logistic_labels_cache: {
32934
34220
  Row: {
32935
34221
  byte_size: number | null;
@@ -36283,22 +37569,31 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
36283
37569
  };
36284
37570
  logistics_floriday_push_refusals: {
36285
37571
  Row: {
37572
+ action: string | null;
36286
37573
  created_at: string;
36287
37574
  id: string;
36288
37575
  order_ref: string;
36289
37576
  reason: string;
37577
+ source_module: string | null;
37578
+ source_shell: string | null;
36290
37579
  };
36291
37580
  Insert: {
37581
+ action?: string | null;
36292
37582
  created_at?: string;
36293
37583
  id?: string;
36294
37584
  order_ref: string;
36295
37585
  reason: string;
37586
+ source_module?: string | null;
37587
+ source_shell?: string | null;
36296
37588
  };
36297
37589
  Update: {
37590
+ action?: string | null;
36298
37591
  created_at?: string;
36299
37592
  id?: string;
36300
37593
  order_ref?: string;
36301
37594
  reason?: string;
37595
+ source_module?: string | null;
37596
+ source_shell?: string | null;
36302
37597
  };
36303
37598
  Relationships: [];
36304
37599
  };
@@ -36377,6 +37672,42 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
36377
37672
  };
36378
37673
  Relationships: [];
36379
37674
  };
37675
+ logistics_floriday_status_sends: {
37676
+ Row: {
37677
+ action: string;
37678
+ created_at: string;
37679
+ detail: string | null;
37680
+ http_status: number | null;
37681
+ id: string;
37682
+ ok: boolean;
37683
+ order_ref: string;
37684
+ source_module: string | null;
37685
+ source_shell: string | null;
37686
+ };
37687
+ Insert: {
37688
+ action: string;
37689
+ created_at?: string;
37690
+ detail?: string | null;
37691
+ http_status?: number | null;
37692
+ id?: string;
37693
+ ok?: boolean;
37694
+ order_ref: string;
37695
+ source_module?: string | null;
37696
+ source_shell?: string | null;
37697
+ };
37698
+ Update: {
37699
+ action?: string;
37700
+ created_at?: string;
37701
+ detail?: string | null;
37702
+ http_status?: number | null;
37703
+ id?: string;
37704
+ ok?: boolean;
37705
+ order_ref?: string;
37706
+ source_module?: string | null;
37707
+ source_shell?: string | null;
37708
+ };
37709
+ Relationships: [];
37710
+ };
36380
37711
  logistics_formulas: {
36381
37712
  Row: {
36382
37713
  created_at: string;
@@ -36449,6 +37780,108 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
36449
37780
  };
36450
37781
  Relationships: [];
36451
37782
  };
37783
+ logistics_opening_exceptions: {
37784
+ Row: {
37785
+ closes: string | null;
37786
+ created_at: string;
37787
+ day: string;
37788
+ id: string;
37789
+ is_closed: boolean;
37790
+ note: string | null;
37791
+ opens: string | null;
37792
+ };
37793
+ Insert: {
37794
+ closes?: string | null;
37795
+ created_at?: string;
37796
+ day: string;
37797
+ id?: string;
37798
+ is_closed?: boolean;
37799
+ note?: string | null;
37800
+ opens?: string | null;
37801
+ };
37802
+ Update: {
37803
+ closes?: string | null;
37804
+ created_at?: string;
37805
+ day?: string;
37806
+ id?: string;
37807
+ is_closed?: boolean;
37808
+ note?: string | null;
37809
+ opens?: string | null;
37810
+ };
37811
+ Relationships: [];
37812
+ };
37813
+ logistics_opening_hours: {
37814
+ Row: {
37815
+ closes: string;
37816
+ created_at: string;
37817
+ id: string;
37818
+ is_active: boolean;
37819
+ note: string | null;
37820
+ opens: string;
37821
+ weekday: number;
37822
+ };
37823
+ Insert: {
37824
+ closes: string;
37825
+ created_at?: string;
37826
+ id?: string;
37827
+ is_active?: boolean;
37828
+ note?: string | null;
37829
+ opens: string;
37830
+ weekday: number;
37831
+ };
37832
+ Update: {
37833
+ closes?: string;
37834
+ created_at?: string;
37835
+ id?: string;
37836
+ is_active?: boolean;
37837
+ note?: string | null;
37838
+ opens?: string;
37839
+ weekday?: number;
37840
+ };
37841
+ Relationships: [];
37842
+ };
37843
+ logistics_pick_data_requests: {
37844
+ Row: {
37845
+ actions: import("../integrations/supabase/types").Json;
37846
+ created_at: string;
37847
+ event_id: string | null;
37848
+ finished_at: string | null;
37849
+ id: string;
37850
+ missing: import("../integrations/supabase/types").Json;
37851
+ order_ref: string;
37852
+ reason: string | null;
37853
+ result: import("../integrations/supabase/types").Json | null;
37854
+ status: string;
37855
+ unit_ref: string | null;
37856
+ };
37857
+ Insert: {
37858
+ actions?: import("../integrations/supabase/types").Json;
37859
+ created_at?: string;
37860
+ event_id?: string | null;
37861
+ finished_at?: string | null;
37862
+ id?: string;
37863
+ missing?: import("../integrations/supabase/types").Json;
37864
+ order_ref: string;
37865
+ reason?: string | null;
37866
+ result?: import("../integrations/supabase/types").Json | null;
37867
+ status?: string;
37868
+ unit_ref?: string | null;
37869
+ };
37870
+ Update: {
37871
+ actions?: import("../integrations/supabase/types").Json;
37872
+ created_at?: string;
37873
+ event_id?: string | null;
37874
+ finished_at?: string | null;
37875
+ id?: string;
37876
+ missing?: import("../integrations/supabase/types").Json;
37877
+ order_ref?: string;
37878
+ reason?: string | null;
37879
+ result?: import("../integrations/supabase/types").Json | null;
37880
+ status?: string;
37881
+ unit_ref?: string | null;
37882
+ };
37883
+ Relationships: [];
37884
+ };
36452
37885
  logistics_pickup_moments: {
36453
37886
  Row: {
36454
37887
  carrier_ref: string | null;
@@ -36908,6 +38341,69 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
36908
38341
  };
36909
38342
  Relationships: [];
36910
38343
  };
38344
+ logistics_slip_shipping_note: {
38345
+ Row: {
38346
+ attempts: number;
38347
+ batch_key: string | null;
38348
+ cart_id: string | null;
38349
+ created_at: string;
38350
+ error: string | null;
38351
+ error_code: string | null;
38352
+ fulfillment_order_id: string | null;
38353
+ id: string;
38354
+ locked_until: string | null;
38355
+ next_attempt_at: string | null;
38356
+ order_id: string | null;
38357
+ order_number: string | null;
38358
+ print_job_id: string | null;
38359
+ printer_id: string | null;
38360
+ retry_class: string | null;
38361
+ slip_job_id: string;
38362
+ status: string;
38363
+ updated_at: string;
38364
+ };
38365
+ Insert: {
38366
+ attempts?: number;
38367
+ batch_key?: string | null;
38368
+ cart_id?: string | null;
38369
+ created_at?: string;
38370
+ error?: string | null;
38371
+ error_code?: string | null;
38372
+ fulfillment_order_id?: string | null;
38373
+ id?: string;
38374
+ locked_until?: string | null;
38375
+ next_attempt_at?: string | null;
38376
+ order_id?: string | null;
38377
+ order_number?: string | null;
38378
+ print_job_id?: string | null;
38379
+ printer_id?: string | null;
38380
+ retry_class?: string | null;
38381
+ slip_job_id: string;
38382
+ status?: string;
38383
+ updated_at?: string;
38384
+ };
38385
+ Update: {
38386
+ attempts?: number;
38387
+ batch_key?: string | null;
38388
+ cart_id?: string | null;
38389
+ created_at?: string;
38390
+ error?: string | null;
38391
+ error_code?: string | null;
38392
+ fulfillment_order_id?: string | null;
38393
+ id?: string;
38394
+ locked_until?: string | null;
38395
+ next_attempt_at?: string | null;
38396
+ order_id?: string | null;
38397
+ order_number?: string | null;
38398
+ print_job_id?: string | null;
38399
+ printer_id?: string | null;
38400
+ retry_class?: string | null;
38401
+ slip_job_id?: string;
38402
+ status?: string;
38403
+ updated_at?: string;
38404
+ };
38405
+ Relationships: [];
38406
+ };
36911
38407
  logistics_staff_planning: {
36912
38408
  Row: {
36913
38409
  created_at: string;
@@ -37241,6 +38737,129 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
37241
38737
  };
37242
38738
  Relationships: [];
37243
38739
  };
38740
+ logistics_time_settings: {
38741
+ Row: {
38742
+ id: boolean;
38743
+ timezone: string;
38744
+ updated_at: string;
38745
+ };
38746
+ Insert: {
38747
+ id?: boolean;
38748
+ timezone: string;
38749
+ updated_at?: string;
38750
+ };
38751
+ Update: {
38752
+ id?: boolean;
38753
+ timezone?: string;
38754
+ updated_at?: string;
38755
+ };
38756
+ Relationships: [];
38757
+ };
38758
+ logistics_trace_events: {
38759
+ Row: {
38760
+ actor: string | null;
38761
+ attempts: number;
38762
+ cart_ref: string | null;
38763
+ created_at: string;
38764
+ db_action: string | null;
38765
+ db_new: import("../integrations/supabase/types").Json | null;
38766
+ db_old: import("../integrations/supabase/types").Json | null;
38767
+ db_record: string | null;
38768
+ db_table: string | null;
38769
+ decision: string | null;
38770
+ duration_ms: number | null;
38771
+ error: string | null;
38772
+ external_action: string | null;
38773
+ external_ref: string | null;
38774
+ external_response: import("../integrations/supabase/types").Json | null;
38775
+ external_status: string | null;
38776
+ external_system: string | null;
38777
+ id: string;
38778
+ input: import("../integrations/supabase/types").Json | null;
38779
+ next_attempt_at: string | null;
38780
+ order_ref: string | null;
38781
+ order_source: string | null;
38782
+ output: import("../integrations/supabase/types").Json | null;
38783
+ phase: string;
38784
+ reads: import("../integrations/supabase/types").Json | null;
38785
+ reason: string | null;
38786
+ rule: string | null;
38787
+ slip_ref: string | null;
38788
+ status: string;
38789
+ step: string;
38790
+ trace_id: string;
38791
+ values_used: import("../integrations/supabase/types").Json | null;
38792
+ };
38793
+ Insert: {
38794
+ actor?: string | null;
38795
+ attempts?: number;
38796
+ cart_ref?: string | null;
38797
+ created_at?: string;
38798
+ db_action?: string | null;
38799
+ db_new?: import("../integrations/supabase/types").Json | null;
38800
+ db_old?: import("../integrations/supabase/types").Json | null;
38801
+ db_record?: string | null;
38802
+ db_table?: string | null;
38803
+ decision?: string | null;
38804
+ duration_ms?: number | null;
38805
+ error?: string | null;
38806
+ external_action?: string | null;
38807
+ external_ref?: string | null;
38808
+ external_response?: import("../integrations/supabase/types").Json | null;
38809
+ external_status?: string | null;
38810
+ external_system?: string | null;
38811
+ id?: string;
38812
+ input?: import("../integrations/supabase/types").Json | null;
38813
+ next_attempt_at?: string | null;
38814
+ order_ref?: string | null;
38815
+ order_source?: string | null;
38816
+ output?: import("../integrations/supabase/types").Json | null;
38817
+ phase: string;
38818
+ reads?: import("../integrations/supabase/types").Json | null;
38819
+ reason?: string | null;
38820
+ rule?: string | null;
38821
+ slip_ref?: string | null;
38822
+ status: string;
38823
+ step: string;
38824
+ trace_id?: string;
38825
+ values_used?: import("../integrations/supabase/types").Json | null;
38826
+ };
38827
+ Update: {
38828
+ actor?: string | null;
38829
+ attempts?: number;
38830
+ cart_ref?: string | null;
38831
+ created_at?: string;
38832
+ db_action?: string | null;
38833
+ db_new?: import("../integrations/supabase/types").Json | null;
38834
+ db_old?: import("../integrations/supabase/types").Json | null;
38835
+ db_record?: string | null;
38836
+ db_table?: string | null;
38837
+ decision?: string | null;
38838
+ duration_ms?: number | null;
38839
+ error?: string | null;
38840
+ external_action?: string | null;
38841
+ external_ref?: string | null;
38842
+ external_response?: import("../integrations/supabase/types").Json | null;
38843
+ external_status?: string | null;
38844
+ external_system?: string | null;
38845
+ id?: string;
38846
+ input?: import("../integrations/supabase/types").Json | null;
38847
+ next_attempt_at?: string | null;
38848
+ order_ref?: string | null;
38849
+ order_source?: string | null;
38850
+ output?: import("../integrations/supabase/types").Json | null;
38851
+ phase?: string;
38852
+ reads?: import("../integrations/supabase/types").Json | null;
38853
+ reason?: string | null;
38854
+ rule?: string | null;
38855
+ slip_ref?: string | null;
38856
+ status?: string;
38857
+ step?: string;
38858
+ trace_id?: string;
38859
+ values_used?: import("../integrations/supabase/types").Json | null;
38860
+ };
38861
+ Relationships: [];
38862
+ };
37244
38863
  logistics_variables: {
37245
38864
  Row: {
37246
38865
  created_at: string;
@@ -39631,6 +41250,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
39631
41250
  customer_name: string;
39632
41251
  deleted_at: string | null;
39633
41252
  delivery_date: string | null;
41253
+ floriday_order_group_key: string | null;
39634
41254
  floriday_sales_order_id: string | null;
39635
41255
  id: string;
39636
41256
  invoice_due_at: string | null;
@@ -39658,6 +41278,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
39658
41278
  customer_name?: string;
39659
41279
  deleted_at?: string | null;
39660
41280
  delivery_date?: string | null;
41281
+ floriday_order_group_key?: string | null;
39661
41282
  floriday_sales_order_id?: string | null;
39662
41283
  id?: string;
39663
41284
  invoice_due_at?: string | null;
@@ -39685,6 +41306,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
39685
41306
  customer_name?: string;
39686
41307
  deleted_at?: string | null;
39687
41308
  delivery_date?: string | null;
41309
+ floriday_order_group_key?: string | null;
39688
41310
  floriday_sales_order_id?: string | null;
39689
41311
  id?: string;
39690
41312
  invoice_due_at?: string | null;
@@ -47810,6 +49432,15 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
47810
49432
  Args: never;
47811
49433
  Returns: boolean;
47812
49434
  };
49435
+ cancel_open_print_jobs: {
49436
+ Args: {
49437
+ _cutoff: string;
49438
+ };
49439
+ Returns: {
49440
+ extern_job_id: string;
49441
+ id: string;
49442
+ }[];
49443
+ };
47813
49444
  check_offer_product_available_stock: {
47814
49445
  Args: {
47815
49446
  p_campaign_product_id: string;
@@ -49348,6 +50979,12 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
49348
50979
  };
49349
50980
  Returns: string;
49350
50981
  };
50982
+ logistics_cart_checkin_at: {
50983
+ Args: {
50984
+ p_cart_id: string;
50985
+ };
50986
+ Returns: string;
50987
+ };
49351
50988
  logistics_cart_handled: {
49352
50989
  Args: {
49353
50990
  p_cart_index: number;
@@ -49381,10 +51018,22 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
49381
51018
  task_status: string;
49382
51019
  }[];
49383
51020
  };
51021
+ logistics_cart_is_full: {
51022
+ Args: {
51023
+ p_cart_id: string;
51024
+ };
51025
+ Returns: boolean;
51026
+ };
49384
51027
  logistics_cart_layout_method: {
49385
51028
  Args: never;
49386
51029
  Returns: import("../integrations/supabase/types").Json;
49387
51030
  };
51031
+ logistics_cart_order_refs: {
51032
+ Args: {
51033
+ p_cart_id: string;
51034
+ };
51035
+ Returns: string[];
51036
+ };
49388
51037
  logistics_cart_plan_overview: {
49389
51038
  Args: {
49390
51039
  p_days?: number;
@@ -49404,6 +51053,24 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
49404
51053
  };
49405
51054
  Returns: import("../integrations/supabase/types").Json;
49406
51055
  };
51056
+ logistics_cart_plan_status_core: {
51057
+ Args: {
51058
+ p_ref: string;
51059
+ };
51060
+ Returns: import("../integrations/supabase/types").Json;
51061
+ };
51062
+ logistics_cart_release_reason: {
51063
+ Args: {
51064
+ p_cart_id: string;
51065
+ };
51066
+ Returns: string;
51067
+ };
51068
+ logistics_cart_released: {
51069
+ Args: {
51070
+ p_cart_id: string;
51071
+ };
51072
+ Returns: boolean;
51073
+ };
49407
51074
  logistics_cart_seq: {
49408
51075
  Args: {
49409
51076
  p_order_uuid?: string;
@@ -49454,6 +51121,10 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
49454
51121
  unit_ref: string;
49455
51122
  }[];
49456
51123
  };
51124
+ logistics_carts_per_print: {
51125
+ Args: never;
51126
+ Returns: number;
51127
+ };
49457
51128
  logistics_check_order_allowed: {
49458
51129
  Args: {
49459
51130
  p_lines: import("../integrations/supabase/types").Json;
@@ -49557,6 +51228,10 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
49557
51228
  isSetofReturn: false;
49558
51229
  };
49559
51230
  };
51231
+ logistics_cleanup_orphan_print_jobs: {
51232
+ Args: never;
51233
+ Returns: import("../integrations/supabase/types").Json;
51234
+ };
49560
51235
  logistics_complete_task: {
49561
51236
  Args: {
49562
51237
  p_result?: import("../integrations/supabase/types").Json;
@@ -49619,6 +51294,12 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
49619
51294
  station_carts: number;
49620
51295
  }[];
49621
51296
  };
51297
+ logistics_control_complete_cart: {
51298
+ Args: {
51299
+ p_cart_id: string;
51300
+ };
51301
+ Returns: number;
51302
+ };
49622
51303
  logistics_control_scan_approve: {
49623
51304
  Args: {
49624
51305
  p_allow_reprint?: boolean;
@@ -49698,6 +51379,15 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
49698
51379
  Args: never;
49699
51380
  Returns: import("../integrations/supabase/types").Json;
49700
51381
  };
51382
+ logistics_day_windows: {
51383
+ Args: {
51384
+ p_day: string;
51385
+ };
51386
+ Returns: {
51387
+ win_end: string;
51388
+ win_start: string;
51389
+ }[];
51390
+ };
49701
51391
  logistics_delay_customer_email: {
49702
51392
  Args: {
49703
51393
  p_customer: string;
@@ -49765,6 +51455,17 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
49765
51455
  };
49766
51456
  Returns: import("../integrations/supabase/types").Json;
49767
51457
  };
51458
+ logistics_enqueue_shipping_note_with_slip: {
51459
+ Args: {
51460
+ _cart_id: string;
51461
+ _is_herprint: boolean;
51462
+ _printer_id: string;
51463
+ _queue_item_id: string;
51464
+ _session_id: string;
51465
+ _slip_job_id: string;
51466
+ };
51467
+ Returns: string;
51468
+ };
49768
51469
  logistics_enqueue_sticker_with_slip: {
49769
51470
  Args: {
49770
51471
  _cart_id: string;
@@ -49782,6 +51483,20 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
49782
51483
  };
49783
51484
  Returns: string;
49784
51485
  };
51486
+ logistics_ensure_pick_data: {
51487
+ Args: {
51488
+ p_event_id?: string;
51489
+ p_missing?: import("../integrations/supabase/types").Json;
51490
+ p_ref: string;
51491
+ };
51492
+ Returns: import("../integrations/supabase/types").Json;
51493
+ };
51494
+ logistics_ensure_shipping_notes: {
51495
+ Args: {
51496
+ p_limit?: number;
51497
+ };
51498
+ Returns: import("../integrations/supabase/types").Json;
51499
+ };
49785
51500
  logistics_fail_task: {
49786
51501
  Args: {
49787
51502
  p_error: string;
@@ -49827,6 +51542,10 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
49827
51542
  isSetofReturn: false;
49828
51543
  };
49829
51544
  };
51545
+ logistics_fix_wrong_shipping_notes: {
51546
+ Args: never;
51547
+ Returns: import("../integrations/supabase/types").Json;
51548
+ };
49830
51549
  logistics_floriday_cart_plan: {
49831
51550
  Args: {
49832
51551
  p_order_id: string;
@@ -49854,6 +51573,10 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
49854
51573
  revision: number;
49855
51574
  }[];
49856
51575
  };
51576
+ logistics_floriday_delivery_note_create_enabled: {
51577
+ Args: never;
51578
+ Returns: boolean;
51579
+ };
49857
51580
  logistics_floriday_finish_push: {
49858
51581
  Args: {
49859
51582
  _error?: string;
@@ -49903,6 +51626,32 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
49903
51626
  };
49904
51627
  Returns: string;
49905
51628
  };
51629
+ logistics_floriday_gate_status: {
51630
+ Args: never;
51631
+ Returns: import("../integrations/supabase/types").Json;
51632
+ };
51633
+ logistics_floriday_log_refusal: {
51634
+ Args: {
51635
+ _action?: string;
51636
+ _module?: string;
51637
+ _order_ref: string;
51638
+ _reason: string;
51639
+ _shell?: string;
51640
+ };
51641
+ Returns: undefined;
51642
+ };
51643
+ logistics_floriday_log_send: {
51644
+ Args: {
51645
+ _action: string;
51646
+ _detail?: string;
51647
+ _http_status?: number;
51648
+ _module?: string;
51649
+ _ok: boolean;
51650
+ _order_ref: string;
51651
+ _shell?: string;
51652
+ };
51653
+ Returns: undefined;
51654
+ };
49906
51655
  logistics_floriday_order_approved: {
49907
51656
  Args: {
49908
51657
  _order_ref: string;
@@ -49927,6 +51676,16 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
49927
51676
  Args: never;
49928
51677
  Returns: boolean;
49929
51678
  };
51679
+ logistics_floriday_stock_updates_enabled: {
51680
+ Args: never;
51681
+ Returns: boolean;
51682
+ };
51683
+ logistics_floriday_write_allowed: {
51684
+ Args: {
51685
+ _action: string;
51686
+ };
51687
+ Returns: boolean;
51688
+ };
49930
51689
  logistics_fulfill_barcode_requests: {
49931
51690
  Args: {
49932
51691
  p_limit?: number;
@@ -49969,6 +51728,12 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
49969
51728
  };
49970
51729
  Returns: number;
49971
51730
  };
51731
+ logistics_merge_partial_carts: {
51732
+ Args: {
51733
+ p_limit?: number;
51734
+ };
51735
+ Returns: import("../integrations/supabase/types").Json;
51736
+ };
49972
51737
  logistics_next_workday_date: {
49973
51738
  Args: {
49974
51739
  p_date: string;
@@ -49995,6 +51760,10 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
49995
51760
  };
49996
51761
  Returns: string;
49997
51762
  };
51763
+ logistics_opening_timezone: {
51764
+ Args: never;
51765
+ Returns: string;
51766
+ };
49998
51767
  logistics_order_cart_count: {
49999
51768
  Args: {
50000
51769
  p_order_ref: string;
@@ -50051,6 +51820,12 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
50051
51820
  };
50052
51821
  Returns: string;
50053
51822
  };
51823
+ logistics_payload_is_floriday: {
51824
+ Args: {
51825
+ _payload: import("../integrations/supabase/types").Json;
51826
+ };
51827
+ Returns: boolean;
51828
+ };
50054
51829
  logistics_pick_agenda: {
50055
51830
  Args: {
50056
51831
  p_from?: string;
@@ -50079,6 +51854,10 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
50079
51854
  Args: never;
50080
51855
  Returns: import("../integrations/supabase/types").Json;
50081
51856
  };
51857
+ logistics_pick_partial_mode: {
51858
+ Args: never;
51859
+ Returns: string;
51860
+ };
50082
51861
  logistics_pick_start_estimate: {
50083
51862
  Args: {
50084
51863
  p_order: import("../integrations/supabase/types").Json;
@@ -50169,6 +51948,20 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
50169
51948
  Args: never;
50170
51949
  Returns: undefined;
50171
51950
  };
51951
+ logistics_plan_progress: {
51952
+ Args: {
51953
+ p_refs: string[];
51954
+ };
51955
+ Returns: {
51956
+ cart_plan_ready: boolean;
51957
+ cart_plan_reason: string;
51958
+ cart_plan_released: boolean;
51959
+ plan_progress: number;
51960
+ plan_state: string;
51961
+ plan_state_since: string;
51962
+ unit_ref: string;
51963
+ }[];
51964
+ };
50172
51965
  logistics_plan_prune: {
50173
51966
  Args: never;
50174
51967
  Returns: number;
@@ -50190,6 +51983,18 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
50190
51983
  };
50191
51984
  Returns: number;
50192
51985
  };
51986
+ logistics_plan_state_for: {
51987
+ Args: {
51988
+ p_ref: string;
51989
+ };
51990
+ Returns: import("../integrations/supabase/types").Json;
51991
+ };
51992
+ logistics_prepare_pick_documents: {
51993
+ Args: {
51994
+ p_limit?: number;
51995
+ };
51996
+ Returns: import("../integrations/supabase/types").Json;
51997
+ };
50193
51998
  logistics_prune_buffer_member_queue: {
50194
51999
  Args: never;
50195
52000
  Returns: number;
@@ -50230,18 +52035,36 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
50230
52035
  Args: never;
50231
52036
  Returns: import("../integrations/supabase/types").Json;
50232
52037
  };
52038
+ logistics_refresh_pick_queue_status: {
52039
+ Args: {
52040
+ p_ref: string;
52041
+ };
52042
+ Returns: number;
52043
+ };
50233
52044
  logistics_refresh_pickup_moments: {
50234
52045
  Args: {
50235
52046
  p_weeks?: number;
50236
52047
  };
50237
52048
  Returns: import("../integrations/supabase/types").Json;
50238
52049
  };
52050
+ logistics_refresh_plan_state: {
52051
+ Args: {
52052
+ p_limit?: number;
52053
+ };
52054
+ Returns: import("../integrations/supabase/types").Json;
52055
+ };
50239
52056
  logistics_replan_all: {
50240
52057
  Args: {
50241
52058
  p_reason?: string;
50242
52059
  };
50243
52060
  Returns: import("../integrations/supabase/types").Json;
50244
52061
  };
52062
+ logistics_replan_all_force: {
52063
+ Args: {
52064
+ p_reason?: string;
52065
+ };
52066
+ Returns: import("../integrations/supabase/types").Json;
52067
+ };
50245
52068
  logistics_report_delay: {
50246
52069
  Args: {
50247
52070
  p_expected_date?: string;
@@ -50386,6 +52209,10 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
50386
52209
  };
50387
52210
  Returns: string;
50388
52211
  };
52212
+ logistics_shipping_note_follows_slip: {
52213
+ Args: never;
52214
+ Returns: boolean;
52215
+ };
50389
52216
  logistics_shipping_note_from_barcode: {
50390
52217
  Args: {
50391
52218
  p_allow_reprint?: boolean;
@@ -50394,10 +52221,86 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
50394
52221
  };
50395
52222
  Returns: import("../integrations/supabase/types").Json;
50396
52223
  };
52224
+ logistics_shipping_note_job_for_slip: {
52225
+ Args: {
52226
+ _slip_job_id: string;
52227
+ };
52228
+ Returns: string;
52229
+ };
52230
+ logistics_shipping_notes_wake_all: {
52231
+ Args: never;
52232
+ Returns: import("../integrations/supabase/types").Json;
52233
+ };
52234
+ logistics_slip_is_floriday: {
52235
+ Args: {
52236
+ _slip_job_id: string;
52237
+ };
52238
+ Returns: boolean;
52239
+ };
52240
+ logistics_slip_note_claim: {
52241
+ Args: {
52242
+ _lease_seconds?: number;
52243
+ _limit?: number;
52244
+ };
52245
+ Returns: {
52246
+ attempts: number;
52247
+ batch_key: string | null;
52248
+ cart_id: string | null;
52249
+ created_at: string;
52250
+ error: string | null;
52251
+ error_code: string | null;
52252
+ fulfillment_order_id: string | null;
52253
+ id: string;
52254
+ locked_until: string | null;
52255
+ next_attempt_at: string | null;
52256
+ order_id: string | null;
52257
+ order_number: string | null;
52258
+ print_job_id: string | null;
52259
+ printer_id: string | null;
52260
+ retry_class: string | null;
52261
+ slip_job_id: string;
52262
+ status: string;
52263
+ updated_at: string;
52264
+ }[];
52265
+ SetofOptions: {
52266
+ from: "*";
52267
+ to: "logistics_slip_shipping_note";
52268
+ isOneToOne: false;
52269
+ isSetofReturn: true;
52270
+ };
52271
+ };
52272
+ logistics_slip_note_finish: {
52273
+ Args: {
52274
+ _error?: string;
52275
+ _error_code?: string;
52276
+ _fulfillment_order_id?: string;
52277
+ _id: string;
52278
+ _ok: boolean;
52279
+ _print_job_id?: string;
52280
+ _status?: string;
52281
+ };
52282
+ Returns: undefined;
52283
+ };
52284
+ logistics_slip_note_keep_waiting: {
52285
+ Args: {
52286
+ _class?: string;
52287
+ _id: string;
52288
+ _reason: string;
52289
+ };
52290
+ Returns: undefined;
52291
+ };
50397
52292
  logistics_sticker_follows_slip: {
50398
52293
  Args: never;
50399
52294
  Returns: boolean;
50400
52295
  };
52296
+ logistics_subtract_working_minutes: {
52297
+ Args: {
52298
+ p_deadline: string;
52299
+ p_max_workdays?: number;
52300
+ p_minutes: number;
52301
+ };
52302
+ Returns: import("../integrations/supabase/types").Json;
52303
+ };
50401
52304
  logistics_supersede_stale_tasks: {
50402
52305
  Args: {
50403
52306
  p_keep: string[];
@@ -50434,6 +52337,46 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
50434
52337
  Args: never;
50435
52338
  Returns: string;
50436
52339
  };
52340
+ logistics_timezone_options: {
52341
+ Args: never;
52342
+ Returns: {
52343
+ name: string;
52344
+ }[];
52345
+ };
52346
+ logistics_trace: {
52347
+ Args: {
52348
+ p: import("../integrations/supabase/types").Json;
52349
+ };
52350
+ Returns: string;
52351
+ };
52352
+ logistics_trace_batch: {
52353
+ Args: {
52354
+ p: import("../integrations/supabase/types").Json;
52355
+ };
52356
+ Returns: number;
52357
+ };
52358
+ logistics_trace_orders: {
52359
+ Args: {
52360
+ p_limit?: number;
52361
+ p_search?: string;
52362
+ p_since?: string;
52363
+ p_status?: string;
52364
+ };
52365
+ Returns: import("../integrations/supabase/types").Json;
52366
+ };
52367
+ logistics_trace_redact: {
52368
+ Args: {
52369
+ p: import("../integrations/supabase/types").Json;
52370
+ };
52371
+ Returns: import("../integrations/supabase/types").Json;
52372
+ };
52373
+ logistics_trace_timeline: {
52374
+ Args: {
52375
+ p_limit?: number;
52376
+ p_order_ref: string;
52377
+ };
52378
+ Returns: import("../integrations/supabase/types").Json;
52379
+ };
50437
52380
  logistics_upsert_task: {
50438
52381
  Args: {
50439
52382
  p_buffer_ref: string;
@@ -50453,6 +52396,16 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
50453
52396
  };
50454
52397
  Returns: string;
50455
52398
  };
52399
+ logistics_valid_timezone: {
52400
+ Args: {
52401
+ _tz: string;
52402
+ };
52403
+ Returns: boolean;
52404
+ };
52405
+ logistics_working_hours_status: {
52406
+ Args: never;
52407
+ Returns: import("../integrations/supabase/types").Json;
52408
+ };
50456
52409
  logistics_write_buffer_layer_positions: {
50457
52410
  Args: {
50458
52411
  p_buffer_id: string;
@@ -51465,6 +53418,10 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
51465
53418
  };
51466
53419
  Returns: undefined;
51467
53420
  };
53421
+ prune_floriday_api_log: {
53422
+ Args: never;
53423
+ Returns: number;
53424
+ };
51468
53425
  quote_create_from_source: {
51469
53426
  Args: {
51470
53427
  _payload?: import("../integrations/supabase/types").Json;
@@ -51898,6 +53855,13 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
51898
53855
  };
51899
53856
  Returns: number;
51900
53857
  };
53858
+ schedule_floriday_catalog_prices_sync: {
53859
+ Args: {
53860
+ p_apikey: string;
53861
+ p_url: string;
53862
+ };
53863
+ Returns: number;
53864
+ };
51901
53865
  schedule_floriday_clock_presales_sync: {
51902
53866
  Args: {
51903
53867
  p_apikey: string;
@@ -52198,6 +54162,10 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
52198
54162
  };
52199
54163
  Returns: undefined;
52200
54164
  };
54165
+ sync_floriday_prices_into_price_groups: {
54166
+ Args: never;
54167
+ Returns: number;
54168
+ };
52201
54169
  sync_layer_stock: {
52202
54170
  Args: {
52203
54171
  p_product_id: string;
@@ -52330,6 +54298,10 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
52330
54298
  Args: never;
52331
54299
  Returns: string;
52332
54300
  };
54301
+ voorraad_cleanup_old_rows: {
54302
+ Args: never;
54303
+ Returns: import("../integrations/supabase/types").Json;
54304
+ };
52333
54305
  wake_print_queue: {
52334
54306
  Args: {
52335
54307
  _min_interval_ms?: number;