@flowselections/floriday-klanten-module 1.0.35 → 1.0.36

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 (73) hide show
  1. package/dist-lib/components/klanten/BewerkKlant.d.ts.map +1 -1
  2. package/dist-lib/components/klanten/BewerkKlant.js +21 -1
  3. package/dist-lib/components/klanten/BulkStickerUploadDialog.d.ts +14 -0
  4. package/dist-lib/components/klanten/BulkStickerUploadDialog.d.ts.map +1 -0
  5. package/dist-lib/components/klanten/BulkStickerUploadDialog.js +231 -0
  6. package/dist-lib/components/klanten/CustomerAssortmentTab.d.ts.map +1 -1
  7. package/dist-lib/components/klanten/CustomerAssortmentTab.js +37 -5
  8. package/dist-lib/components/klanten/CustomerStickerCell.d.ts +7 -0
  9. package/dist-lib/components/klanten/CustomerStickerCell.d.ts.map +1 -0
  10. package/dist-lib/components/klanten/CustomerStickerCell.js +90 -0
  11. package/dist-lib/components/klanten/CustomerStickerFormatDialog.d.ts +7 -0
  12. package/dist-lib/components/klanten/CustomerStickerFormatDialog.d.ts.map +1 -0
  13. package/dist-lib/components/klanten/CustomerStickerFormatDialog.js +36 -0
  14. package/dist-lib/index.d.ts +4 -0
  15. package/dist-lib/index.d.ts.map +1 -1
  16. package/dist-lib/index.js +4 -0
  17. package/dist-lib/integrations/supabase/auth-middleware.d.ts +565 -0
  18. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  19. package/dist-lib/integrations/supabase/client.d.ts +565 -0
  20. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  21. package/dist-lib/integrations/supabase/client.server.d.ts +565 -0
  22. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  23. package/dist-lib/integrations/supabase/types.d.ts +568 -0
  24. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  25. package/dist-lib/lib/accounting/twinfield/worker.functions.d.ts +1695 -0
  26. package/dist-lib/lib/accounting/twinfield/worker.functions.d.ts.map +1 -1
  27. package/dist-lib/lib/accounting.functions.d.ts +1695 -0
  28. package/dist-lib/lib/accounting.functions.d.ts.map +1 -1
  29. package/dist-lib/lib/ai-module.server.d.ts +20 -0
  30. package/dist-lib/lib/ai-module.server.d.ts.map +1 -0
  31. package/dist-lib/lib/ai-module.server.js +86 -0
  32. package/dist-lib/lib/customer-analytics.functions.d.ts +565 -0
  33. package/dist-lib/lib/customer-analytics.functions.d.ts.map +1 -1
  34. package/dist-lib/lib/customer-assortment.functions.d.ts +565 -0
  35. package/dist-lib/lib/customer-assortment.functions.d.ts.map +1 -1
  36. package/dist-lib/lib/customer-notes.functions.d.ts +1130 -0
  37. package/dist-lib/lib/customer-notes.functions.d.ts.map +1 -1
  38. package/dist-lib/lib/customer-revenue.functions.d.ts +565 -0
  39. package/dist-lib/lib/customer-revenue.functions.d.ts.map +1 -1
  40. package/dist-lib/lib/customer-stickers.functions.d.ts +244731 -0
  41. package/dist-lib/lib/customer-stickers.functions.d.ts.map +1 -0
  42. package/dist-lib/lib/customer-stickers.functions.js +467 -0
  43. package/dist-lib/lib/customers.functions.d.ts +5085 -0
  44. package/dist-lib/lib/customers.functions.d.ts.map +1 -1
  45. package/dist-lib/lib/delivery-locations.functions.d.ts +2825 -0
  46. package/dist-lib/lib/delivery-locations.functions.d.ts.map +1 -1
  47. package/dist-lib/lib/external-customers.functions.d.ts +2260 -0
  48. package/dist-lib/lib/external-customers.functions.d.ts.map +1 -1
  49. package/dist-lib/lib/floriday-assortment.functions.d.ts +565 -0
  50. package/dist-lib/lib/floriday-assortment.functions.d.ts.map +1 -1
  51. package/dist-lib/lib/floriday-discounts.functions.d.ts +1130 -0
  52. package/dist-lib/lib/floriday-discounts.functions.d.ts.map +1 -1
  53. package/dist-lib/lib/floriday-price-import.functions.d.ts +1130 -0
  54. package/dist-lib/lib/floriday-price-import.functions.d.ts.map +1 -1
  55. package/dist-lib/lib/floriday-trade-items.functions.d.ts +565 -0
  56. package/dist-lib/lib/floriday-trade-items.functions.d.ts.map +1 -1
  57. package/dist-lib/lib/local-discounts.functions.d.ts +3956 -1
  58. package/dist-lib/lib/local-discounts.functions.d.ts.map +1 -1
  59. package/dist-lib/lib/logistics-events.functions.d.ts +565 -0
  60. package/dist-lib/lib/logistics-events.functions.d.ts.map +1 -1
  61. package/dist-lib/lib/logistics-strategy.functions.d.ts +2260 -0
  62. package/dist-lib/lib/logistics-strategy.functions.d.ts.map +1 -1
  63. package/dist-lib/lib/overdue-invoices.functions.d.ts +565 -0
  64. package/dist-lib/lib/overdue-invoices.functions.d.ts.map +1 -1
  65. package/dist-lib/lib/price-groups-local.functions.d.ts +7348 -3
  66. package/dist-lib/lib/price-groups-local.functions.d.ts.map +1 -1
  67. package/dist-lib/lib/price-groups.functions.d.ts +565 -0
  68. package/dist-lib/lib/price-groups.functions.d.ts.map +1 -1
  69. package/dist-lib/lib/twinfield-adopt.functions.d.ts +1130 -0
  70. package/dist-lib/lib/twinfield-adopt.functions.d.ts.map +1 -1
  71. package/dist-lib/lib/twinfield-ledger.functions.d.ts +565 -0
  72. package/dist-lib/lib/twinfield-ledger.functions.d.ts.map +1 -1
  73. package/package.json +1 -1
@@ -2250,6 +2250,45 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
2250
2250
  };
2251
2251
  Relationships: [];
2252
2252
  };
2253
+ customer_product_stickers: {
2254
+ Row: {
2255
+ created_at: string;
2256
+ customer_key: string;
2257
+ file_name: string;
2258
+ file_path: string;
2259
+ file_size: number | null;
2260
+ id: string;
2261
+ mime_type: string | null;
2262
+ trade_item_key: string;
2263
+ updated_at: string;
2264
+ uploaded_by: string | null;
2265
+ };
2266
+ Insert: {
2267
+ created_at?: string;
2268
+ customer_key: string;
2269
+ file_name: string;
2270
+ file_path: string;
2271
+ file_size?: number | null;
2272
+ id?: string;
2273
+ mime_type?: string | null;
2274
+ trade_item_key: string;
2275
+ updated_at?: string;
2276
+ uploaded_by?: string | null;
2277
+ };
2278
+ Update: {
2279
+ created_at?: string;
2280
+ customer_key?: string;
2281
+ file_name?: string;
2282
+ file_path?: string;
2283
+ file_size?: number | null;
2284
+ id?: string;
2285
+ mime_type?: string | null;
2286
+ trade_item_key?: string;
2287
+ updated_at?: string;
2288
+ uploaded_by?: string | null;
2289
+ };
2290
+ Relationships: [];
2291
+ };
2253
2292
  customer_selected_assortment: {
2254
2293
  Row: {
2255
2294
  article_number: string | null;
@@ -2298,6 +2337,30 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
2298
2337
  referencedColumns: ["id"];
2299
2338
  }];
2300
2339
  };
2340
+ customer_sticker_settings: {
2341
+ Row: {
2342
+ created_at: string;
2343
+ customer_key: string;
2344
+ height_mm: number;
2345
+ updated_at: string;
2346
+ width_mm: number;
2347
+ };
2348
+ Insert: {
2349
+ created_at?: string;
2350
+ customer_key: string;
2351
+ height_mm?: number;
2352
+ updated_at?: string;
2353
+ width_mm?: number;
2354
+ };
2355
+ Update: {
2356
+ created_at?: string;
2357
+ customer_key?: string;
2358
+ height_mm?: number;
2359
+ updated_at?: string;
2360
+ width_mm?: number;
2361
+ };
2362
+ Relationships: [];
2363
+ };
2301
2364
  customer_trade_settings: {
2302
2365
  Row: {
2303
2366
  category: string;
@@ -5628,6 +5691,102 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
5628
5691
  referencedColumns: ["id"];
5629
5692
  }];
5630
5693
  };
5694
+ floriday_api_log: {
5695
+ Row: {
5696
+ action: string | null;
5697
+ caller: string | null;
5698
+ connection_id: string | null;
5699
+ created_at: string;
5700
+ cursor_from: number | null;
5701
+ direction: string;
5702
+ duration_ms: number | null;
5703
+ environment: string | null;
5704
+ error: string | null;
5705
+ floriday_id: string | null;
5706
+ floriday_reference: string | null;
5707
+ http_status: number;
5708
+ id: string;
5709
+ item_count: number | null;
5710
+ kind: string | null;
5711
+ local_id: string | null;
5712
+ local_reference: string | null;
5713
+ method: string;
5714
+ module: string | null;
5715
+ ok: boolean;
5716
+ path: string;
5717
+ request: import("../integrations/supabase/types").Json | null;
5718
+ resource_type: string | null;
5719
+ response: import("../integrations/supabase/types").Json | null;
5720
+ write_log_id: string | null;
5721
+ };
5722
+ Insert: {
5723
+ action?: string | null;
5724
+ caller?: string | null;
5725
+ connection_id?: string | null;
5726
+ created_at?: string;
5727
+ cursor_from?: number | null;
5728
+ direction: string;
5729
+ duration_ms?: number | null;
5730
+ environment?: string | null;
5731
+ error?: string | null;
5732
+ floriday_id?: string | null;
5733
+ floriday_reference?: string | null;
5734
+ http_status?: number;
5735
+ id?: string;
5736
+ item_count?: number | null;
5737
+ kind?: string | null;
5738
+ local_id?: string | null;
5739
+ local_reference?: string | null;
5740
+ method: string;
5741
+ module?: string | null;
5742
+ ok?: boolean;
5743
+ path: string;
5744
+ request?: import("../integrations/supabase/types").Json | null;
5745
+ resource_type?: string | null;
5746
+ response?: import("../integrations/supabase/types").Json | null;
5747
+ write_log_id?: string | null;
5748
+ };
5749
+ Update: {
5750
+ action?: string | null;
5751
+ caller?: string | null;
5752
+ connection_id?: string | null;
5753
+ created_at?: string;
5754
+ cursor_from?: number | null;
5755
+ direction?: string;
5756
+ duration_ms?: number | null;
5757
+ environment?: string | null;
5758
+ error?: string | null;
5759
+ floriday_id?: string | null;
5760
+ floriday_reference?: string | null;
5761
+ http_status?: number;
5762
+ id?: string;
5763
+ item_count?: number | null;
5764
+ kind?: string | null;
5765
+ local_id?: string | null;
5766
+ local_reference?: string | null;
5767
+ method?: string;
5768
+ module?: string | null;
5769
+ ok?: boolean;
5770
+ path?: string;
5771
+ request?: import("../integrations/supabase/types").Json | null;
5772
+ resource_type?: string | null;
5773
+ response?: import("../integrations/supabase/types").Json | null;
5774
+ write_log_id?: string | null;
5775
+ };
5776
+ Relationships: [{
5777
+ foreignKeyName: "floriday_api_log_connection_id_fkey";
5778
+ columns: ["connection_id"];
5779
+ isOneToOne: false;
5780
+ referencedRelation: "floriday_connections";
5781
+ referencedColumns: ["id"];
5782
+ }, {
5783
+ foreignKeyName: "floriday_api_log_write_log_id_fkey";
5784
+ columns: ["write_log_id"];
5785
+ isOneToOne: false;
5786
+ referencedRelation: "floriday_write_log";
5787
+ referencedColumns: ["id"];
5788
+ }];
5789
+ };
5631
5790
  floriday_auction_letters_cache: {
5632
5791
  Row: {
5633
5792
  auction_letter_code: string;
@@ -6828,6 +6987,69 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
6828
6987
  referencedColumns: ["id"];
6829
6988
  }];
6830
6989
  };
6990
+ floriday_link_templates: {
6991
+ Row: {
6992
+ created_at: string;
6993
+ floriday_url_template: string | null;
6994
+ is_active: boolean;
6995
+ label: string;
6996
+ local_url_template: string | null;
6997
+ resource_type: string;
6998
+ updated_at: string;
6999
+ };
7000
+ Insert: {
7001
+ created_at?: string;
7002
+ floriday_url_template?: string | null;
7003
+ is_active?: boolean;
7004
+ label: string;
7005
+ local_url_template?: string | null;
7006
+ resource_type: string;
7007
+ updated_at?: string;
7008
+ };
7009
+ Update: {
7010
+ created_at?: string;
7011
+ floriday_url_template?: string | null;
7012
+ is_active?: boolean;
7013
+ label?: string;
7014
+ local_url_template?: string | null;
7015
+ resource_type?: string;
7016
+ updated_at?: string;
7017
+ };
7018
+ Relationships: [];
7019
+ };
7020
+ floriday_log_retention: {
7021
+ Row: {
7022
+ created_at: string;
7023
+ direction: string | null;
7024
+ id: string;
7025
+ keep_failed_days: number | null;
7026
+ keep_ok_days: number | null;
7027
+ note: string | null;
7028
+ resource_type: string | null;
7029
+ updated_at: string;
7030
+ };
7031
+ Insert: {
7032
+ created_at?: string;
7033
+ direction?: string | null;
7034
+ id?: string;
7035
+ keep_failed_days?: number | null;
7036
+ keep_ok_days?: number | null;
7037
+ note?: string | null;
7038
+ resource_type?: string | null;
7039
+ updated_at?: string;
7040
+ };
7041
+ Update: {
7042
+ created_at?: string;
7043
+ direction?: string | null;
7044
+ id?: string;
7045
+ keep_failed_days?: number | null;
7046
+ keep_ok_days?: number | null;
7047
+ note?: string | null;
7048
+ resource_type?: string | null;
7049
+ updated_at?: string;
7050
+ };
7051
+ Relationships: [];
7052
+ };
6831
7053
  floriday_logistic_labels_cache: {
6832
7054
  Row: {
6833
7055
  byte_size: number | null;
@@ -10953,6 +11175,69 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
10953
11175
  };
10954
11176
  Relationships: [];
10955
11177
  };
11178
+ logistics_slip_shipping_note: {
11179
+ Row: {
11180
+ attempts: number;
11181
+ batch_key: string | null;
11182
+ cart_id: string | null;
11183
+ created_at: string;
11184
+ error: string | null;
11185
+ error_code: string | null;
11186
+ fulfillment_order_id: string | null;
11187
+ id: string;
11188
+ locked_until: string | null;
11189
+ next_attempt_at: string | null;
11190
+ order_id: string | null;
11191
+ order_number: string | null;
11192
+ print_job_id: string | null;
11193
+ printer_id: string | null;
11194
+ retry_class: string | null;
11195
+ slip_job_id: string;
11196
+ status: string;
11197
+ updated_at: string;
11198
+ };
11199
+ Insert: {
11200
+ attempts?: number;
11201
+ batch_key?: string | null;
11202
+ cart_id?: string | null;
11203
+ created_at?: string;
11204
+ error?: string | null;
11205
+ error_code?: string | null;
11206
+ fulfillment_order_id?: string | null;
11207
+ id?: string;
11208
+ locked_until?: string | null;
11209
+ next_attempt_at?: string | null;
11210
+ order_id?: string | null;
11211
+ order_number?: string | null;
11212
+ print_job_id?: string | null;
11213
+ printer_id?: string | null;
11214
+ retry_class?: string | null;
11215
+ slip_job_id: string;
11216
+ status?: string;
11217
+ updated_at?: string;
11218
+ };
11219
+ Update: {
11220
+ attempts?: number;
11221
+ batch_key?: string | null;
11222
+ cart_id?: string | null;
11223
+ created_at?: string;
11224
+ error?: string | null;
11225
+ error_code?: string | null;
11226
+ fulfillment_order_id?: string | null;
11227
+ id?: string;
11228
+ locked_until?: string | null;
11229
+ next_attempt_at?: string | null;
11230
+ order_id?: string | null;
11231
+ order_number?: string | null;
11232
+ print_job_id?: string | null;
11233
+ printer_id?: string | null;
11234
+ retry_class?: string | null;
11235
+ slip_job_id?: string;
11236
+ status?: string;
11237
+ updated_at?: string;
11238
+ };
11239
+ Relationships: [];
11240
+ };
10956
11241
  logistics_staff_planning: {
10957
11242
  Row: {
10958
11243
  created_at: string;
@@ -11304,6 +11589,111 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
11304
11589
  };
11305
11590
  Relationships: [];
11306
11591
  };
11592
+ logistics_trace_events: {
11593
+ Row: {
11594
+ actor: string | null;
11595
+ attempts: number;
11596
+ cart_ref: string | null;
11597
+ created_at: string;
11598
+ db_action: string | null;
11599
+ db_new: import("../integrations/supabase/types").Json | null;
11600
+ db_old: import("../integrations/supabase/types").Json | null;
11601
+ db_record: string | null;
11602
+ db_table: string | null;
11603
+ decision: string | null;
11604
+ duration_ms: number | null;
11605
+ error: string | null;
11606
+ external_action: string | null;
11607
+ external_ref: string | null;
11608
+ external_response: import("../integrations/supabase/types").Json | null;
11609
+ external_status: string | null;
11610
+ external_system: string | null;
11611
+ id: string;
11612
+ input: import("../integrations/supabase/types").Json | null;
11613
+ next_attempt_at: string | null;
11614
+ order_ref: string | null;
11615
+ order_source: string | null;
11616
+ output: import("../integrations/supabase/types").Json | null;
11617
+ phase: string;
11618
+ reads: import("../integrations/supabase/types").Json | null;
11619
+ reason: string | null;
11620
+ rule: string | null;
11621
+ slip_ref: string | null;
11622
+ status: string;
11623
+ step: string;
11624
+ trace_id: string;
11625
+ values_used: import("../integrations/supabase/types").Json | null;
11626
+ };
11627
+ Insert: {
11628
+ actor?: string | null;
11629
+ attempts?: number;
11630
+ cart_ref?: string | null;
11631
+ created_at?: string;
11632
+ db_action?: string | null;
11633
+ db_new?: import("../integrations/supabase/types").Json | null;
11634
+ db_old?: import("../integrations/supabase/types").Json | null;
11635
+ db_record?: string | null;
11636
+ db_table?: string | null;
11637
+ decision?: string | null;
11638
+ duration_ms?: number | null;
11639
+ error?: string | null;
11640
+ external_action?: string | null;
11641
+ external_ref?: string | null;
11642
+ external_response?: import("../integrations/supabase/types").Json | null;
11643
+ external_status?: string | null;
11644
+ external_system?: string | null;
11645
+ id?: string;
11646
+ input?: import("../integrations/supabase/types").Json | null;
11647
+ next_attempt_at?: string | null;
11648
+ order_ref?: string | null;
11649
+ order_source?: string | null;
11650
+ output?: import("../integrations/supabase/types").Json | null;
11651
+ phase: string;
11652
+ reads?: import("../integrations/supabase/types").Json | null;
11653
+ reason?: string | null;
11654
+ rule?: string | null;
11655
+ slip_ref?: string | null;
11656
+ status: string;
11657
+ step: string;
11658
+ trace_id?: string;
11659
+ values_used?: import("../integrations/supabase/types").Json | null;
11660
+ };
11661
+ Update: {
11662
+ actor?: string | null;
11663
+ attempts?: number;
11664
+ cart_ref?: string | null;
11665
+ created_at?: string;
11666
+ db_action?: string | null;
11667
+ db_new?: import("../integrations/supabase/types").Json | null;
11668
+ db_old?: import("../integrations/supabase/types").Json | null;
11669
+ db_record?: string | null;
11670
+ db_table?: string | null;
11671
+ decision?: string | null;
11672
+ duration_ms?: number | null;
11673
+ error?: string | null;
11674
+ external_action?: string | null;
11675
+ external_ref?: string | null;
11676
+ external_response?: import("../integrations/supabase/types").Json | null;
11677
+ external_status?: string | null;
11678
+ external_system?: string | null;
11679
+ id?: string;
11680
+ input?: import("../integrations/supabase/types").Json | null;
11681
+ next_attempt_at?: string | null;
11682
+ order_ref?: string | null;
11683
+ order_source?: string | null;
11684
+ output?: import("../integrations/supabase/types").Json | null;
11685
+ phase?: string;
11686
+ reads?: import("../integrations/supabase/types").Json | null;
11687
+ reason?: string | null;
11688
+ rule?: string | null;
11689
+ slip_ref?: string | null;
11690
+ status?: string;
11691
+ step?: string;
11692
+ trace_id?: string;
11693
+ values_used?: import("../integrations/supabase/types").Json | null;
11694
+ };
11695
+ Relationships: [];
11696
+ };
11307
11697
  logistics_variables: {
11308
11698
  Row: {
11309
11699
  created_at: string;
@@ -21876,6 +22266,15 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
21876
22266
  Args: never;
21877
22267
  Returns: boolean;
21878
22268
  };
22269
+ cancel_open_print_jobs: {
22270
+ Args: {
22271
+ _cutoff: string;
22272
+ };
22273
+ Returns: {
22274
+ extern_job_id: string;
22275
+ id: string;
22276
+ }[];
22277
+ };
21879
22278
  check_offer_product_available_stock: {
21880
22279
  Args: {
21881
22280
  p_campaign_product_id: string;
@@ -23488,6 +23887,12 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
23488
23887
  };
23489
23888
  Returns: import("../integrations/supabase/types").Json;
23490
23889
  };
23890
+ logistics_cart_plan_status_core: {
23891
+ Args: {
23892
+ p_ref: string;
23893
+ };
23894
+ Returns: import("../integrations/supabase/types").Json;
23895
+ };
23491
23896
  logistics_cart_release_reason: {
23492
23897
  Args: {
23493
23898
  p_cart_id: string;
@@ -23550,6 +23955,10 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
23550
23955
  unit_ref: string;
23551
23956
  }[];
23552
23957
  };
23958
+ logistics_carts_per_print: {
23959
+ Args: never;
23960
+ Returns: number;
23961
+ };
23553
23962
  logistics_check_order_allowed: {
23554
23963
  Args: {
23555
23964
  p_lines: import("../integrations/supabase/types").Json;
@@ -23916,6 +24325,12 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
23916
24325
  };
23917
24326
  Returns: import("../integrations/supabase/types").Json;
23918
24327
  };
24328
+ logistics_ensure_shipping_notes: {
24329
+ Args: {
24330
+ p_limit?: number;
24331
+ };
24332
+ Returns: import("../integrations/supabase/types").Json;
24333
+ };
23919
24334
  logistics_fail_task: {
23920
24335
  Args: {
23921
24336
  p_error: string;
@@ -23961,6 +24376,10 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
23961
24376
  isSetofReturn: false;
23962
24377
  };
23963
24378
  };
24379
+ logistics_fix_wrong_shipping_notes: {
24380
+ Args: never;
24381
+ Returns: import("../integrations/supabase/types").Json;
24382
+ };
23964
24383
  logistics_floriday_cart_plan: {
23965
24384
  Args: {
23966
24385
  p_order_id: string;
@@ -23988,6 +24407,10 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
23988
24407
  revision: number;
23989
24408
  }[];
23990
24409
  };
24410
+ logistics_floriday_delivery_note_create_enabled: {
24411
+ Args: never;
24412
+ Returns: boolean;
24413
+ };
23991
24414
  logistics_floriday_finish_push: {
23992
24415
  Args: {
23993
24416
  _error?: string;
@@ -24231,6 +24654,12 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
24231
24654
  };
24232
24655
  Returns: string;
24233
24656
  };
24657
+ logistics_payload_is_floriday: {
24658
+ Args: {
24659
+ _payload: import("../integrations/supabase/types").Json;
24660
+ };
24661
+ Returns: boolean;
24662
+ };
24234
24663
  logistics_pick_agenda: {
24235
24664
  Args: {
24236
24665
  p_from?: string;
@@ -24353,6 +24782,20 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
24353
24782
  Args: never;
24354
24783
  Returns: undefined;
24355
24784
  };
24785
+ logistics_plan_progress: {
24786
+ Args: {
24787
+ p_refs: string[];
24788
+ };
24789
+ Returns: {
24790
+ cart_plan_ready: boolean;
24791
+ cart_plan_reason: string;
24792
+ cart_plan_released: boolean;
24793
+ plan_progress: number;
24794
+ plan_state: string;
24795
+ plan_state_since: string;
24796
+ unit_ref: string;
24797
+ }[];
24798
+ };
24356
24799
  logistics_plan_prune: {
24357
24800
  Args: never;
24358
24801
  Returns: number;
@@ -24374,6 +24817,12 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
24374
24817
  };
24375
24818
  Returns: number;
24376
24819
  };
24820
+ logistics_plan_state_for: {
24821
+ Args: {
24822
+ p_ref: string;
24823
+ };
24824
+ Returns: import("../integrations/supabase/types").Json;
24825
+ };
24377
24826
  logistics_prepare_pick_documents: {
24378
24827
  Args: {
24379
24828
  p_limit?: number;
@@ -24432,6 +24881,12 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
24432
24881
  };
24433
24882
  Returns: import("../integrations/supabase/types").Json;
24434
24883
  };
24884
+ logistics_refresh_plan_state: {
24885
+ Args: {
24886
+ p_limit?: number;
24887
+ };
24888
+ Returns: import("../integrations/supabase/types").Json;
24889
+ };
24435
24890
  logistics_replan_all: {
24436
24891
  Args: {
24437
24892
  p_reason?: string;
@@ -24600,6 +25055,74 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
24600
25055
  };
24601
25056
  Returns: import("../integrations/supabase/types").Json;
24602
25057
  };
25058
+ logistics_shipping_note_job_for_slip: {
25059
+ Args: {
25060
+ _slip_job_id: string;
25061
+ };
25062
+ Returns: string;
25063
+ };
25064
+ logistics_shipping_notes_wake_all: {
25065
+ Args: never;
25066
+ Returns: import("../integrations/supabase/types").Json;
25067
+ };
25068
+ logistics_slip_is_floriday: {
25069
+ Args: {
25070
+ _slip_job_id: string;
25071
+ };
25072
+ Returns: boolean;
25073
+ };
25074
+ logistics_slip_note_claim: {
25075
+ Args: {
25076
+ _lease_seconds?: number;
25077
+ _limit?: number;
25078
+ };
25079
+ Returns: {
25080
+ attempts: number;
25081
+ batch_key: string | null;
25082
+ cart_id: string | null;
25083
+ created_at: string;
25084
+ error: string | null;
25085
+ error_code: string | null;
25086
+ fulfillment_order_id: string | null;
25087
+ id: string;
25088
+ locked_until: string | null;
25089
+ next_attempt_at: string | null;
25090
+ order_id: string | null;
25091
+ order_number: string | null;
25092
+ print_job_id: string | null;
25093
+ printer_id: string | null;
25094
+ retry_class: string | null;
25095
+ slip_job_id: string;
25096
+ status: string;
25097
+ updated_at: string;
25098
+ }[];
25099
+ SetofOptions: {
25100
+ from: "*";
25101
+ to: "logistics_slip_shipping_note";
25102
+ isOneToOne: false;
25103
+ isSetofReturn: true;
25104
+ };
25105
+ };
25106
+ logistics_slip_note_finish: {
25107
+ Args: {
25108
+ _error?: string;
25109
+ _error_code?: string;
25110
+ _fulfillment_order_id?: string;
25111
+ _id: string;
25112
+ _ok: boolean;
25113
+ _print_job_id?: string;
25114
+ _status?: string;
25115
+ };
25116
+ Returns: undefined;
25117
+ };
25118
+ logistics_slip_note_keep_waiting: {
25119
+ Args: {
25120
+ _class?: string;
25121
+ _id: string;
25122
+ _reason: string;
25123
+ };
25124
+ Returns: undefined;
25125
+ };
24603
25126
  logistics_sticker_follows_slip: {
24604
25127
  Args: never;
24605
25128
  Returns: boolean;
@@ -24654,6 +25177,40 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
24654
25177
  name: string;
24655
25178
  }[];
24656
25179
  };
25180
+ logistics_trace: {
25181
+ Args: {
25182
+ p: import("../integrations/supabase/types").Json;
25183
+ };
25184
+ Returns: string;
25185
+ };
25186
+ logistics_trace_batch: {
25187
+ Args: {
25188
+ p: import("../integrations/supabase/types").Json;
25189
+ };
25190
+ Returns: number;
25191
+ };
25192
+ logistics_trace_orders: {
25193
+ Args: {
25194
+ p_limit?: number;
25195
+ p_search?: string;
25196
+ p_since?: string;
25197
+ p_status?: string;
25198
+ };
25199
+ Returns: import("../integrations/supabase/types").Json;
25200
+ };
25201
+ logistics_trace_redact: {
25202
+ Args: {
25203
+ p: import("../integrations/supabase/types").Json;
25204
+ };
25205
+ Returns: import("../integrations/supabase/types").Json;
25206
+ };
25207
+ logistics_trace_timeline: {
25208
+ Args: {
25209
+ p_limit?: number;
25210
+ p_order_ref: string;
25211
+ };
25212
+ Returns: import("../integrations/supabase/types").Json;
25213
+ };
24657
25214
  logistics_upsert_task: {
24658
25215
  Args: {
24659
25216
  p_buffer_ref: string;
@@ -25695,6 +26252,10 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
25695
26252
  };
25696
26253
  Returns: undefined;
25697
26254
  };
26255
+ prune_floriday_api_log: {
26256
+ Args: never;
26257
+ Returns: number;
26258
+ };
25698
26259
  quote_create_from_source: {
25699
26260
  Args: {
25700
26261
  _payload?: import("../integrations/supabase/types").Json;
@@ -26571,6 +27132,10 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
26571
27132
  Args: never;
26572
27133
  Returns: string;
26573
27134
  };
27135
+ voorraad_cleanup_old_rows: {
27136
+ Args: never;
27137
+ Returns: import("../integrations/supabase/types").Json;
27138
+ };
26574
27139
  wake_print_queue: {
26575
27140
  Args: {
26576
27141
  _min_interval_ms?: number;
@@ -28868,6 +29433,45 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
28868
29433
  };
28869
29434
  Relationships: [];
28870
29435
  };
29436
+ customer_product_stickers: {
29437
+ Row: {
29438
+ created_at: string;
29439
+ customer_key: string;
29440
+ file_name: string;
29441
+ file_path: string;
29442
+ file_size: number | null;
29443
+ id: string;
29444
+ mime_type: string | null;
29445
+ trade_item_key: string;
29446
+ updated_at: string;
29447
+ uploaded_by: string | null;
29448
+ };
29449
+ Insert: {
29450
+ created_at?: string;
29451
+ customer_key: string;
29452
+ file_name: string;
29453
+ file_path: string;
29454
+ file_size?: number | null;
29455
+ id?: string;
29456
+ mime_type?: string | null;
29457
+ trade_item_key: string;
29458
+ updated_at?: string;
29459
+ uploaded_by?: string | null;
29460
+ };
29461
+ Update: {
29462
+ created_at?: string;
29463
+ customer_key?: string;
29464
+ file_name?: string;
29465
+ file_path?: string;
29466
+ file_size?: number | null;
29467
+ id?: string;
29468
+ mime_type?: string | null;
29469
+ trade_item_key?: string;
29470
+ updated_at?: string;
29471
+ uploaded_by?: string | null;
29472
+ };
29473
+ Relationships: [];
29474
+ };
28871
29475
  customer_selected_assortment: {
28872
29476
  Row: {
28873
29477
  article_number: string | null;
@@ -28916,6 +29520,30 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
28916
29520
  referencedColumns: ["id"];
28917
29521
  }];
28918
29522
  };
29523
+ customer_sticker_settings: {
29524
+ Row: {
29525
+ created_at: string;
29526
+ customer_key: string;
29527
+ height_mm: number;
29528
+ updated_at: string;
29529
+ width_mm: number;
29530
+ };
29531
+ Insert: {
29532
+ created_at?: string;
29533
+ customer_key: string;
29534
+ height_mm?: number;
29535
+ updated_at?: string;
29536
+ width_mm?: number;
29537
+ };
29538
+ Update: {
29539
+ created_at?: string;
29540
+ customer_key?: string;
29541
+ height_mm?: number;
29542
+ updated_at?: string;
29543
+ width_mm?: number;
29544
+ };
29545
+ Relationships: [];
29546
+ };
28919
29547
  customer_trade_settings: {
28920
29548
  Row: {
28921
29549
  category: string;
@@ -32246,6 +32874,102 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
32246
32874
  referencedColumns: ["id"];
32247
32875
  }];
32248
32876
  };
32877
+ floriday_api_log: {
32878
+ Row: {
32879
+ action: string | null;
32880
+ caller: string | null;
32881
+ connection_id: string | null;
32882
+ created_at: string;
32883
+ cursor_from: number | null;
32884
+ direction: string;
32885
+ duration_ms: number | null;
32886
+ environment: string | null;
32887
+ error: string | null;
32888
+ floriday_id: string | null;
32889
+ floriday_reference: string | null;
32890
+ http_status: number;
32891
+ id: string;
32892
+ item_count: number | null;
32893
+ kind: string | null;
32894
+ local_id: string | null;
32895
+ local_reference: string | null;
32896
+ method: string;
32897
+ module: string | null;
32898
+ ok: boolean;
32899
+ path: string;
32900
+ request: import("../integrations/supabase/types").Json | null;
32901
+ resource_type: string | null;
32902
+ response: import("../integrations/supabase/types").Json | null;
32903
+ write_log_id: string | null;
32904
+ };
32905
+ Insert: {
32906
+ action?: string | null;
32907
+ caller?: string | null;
32908
+ connection_id?: string | null;
32909
+ created_at?: string;
32910
+ cursor_from?: number | null;
32911
+ direction: string;
32912
+ duration_ms?: number | null;
32913
+ environment?: string | null;
32914
+ error?: string | null;
32915
+ floriday_id?: string | null;
32916
+ floriday_reference?: string | null;
32917
+ http_status?: number;
32918
+ id?: string;
32919
+ item_count?: number | null;
32920
+ kind?: string | null;
32921
+ local_id?: string | null;
32922
+ local_reference?: string | null;
32923
+ method: string;
32924
+ module?: string | null;
32925
+ ok?: boolean;
32926
+ path: string;
32927
+ request?: import("../integrations/supabase/types").Json | null;
32928
+ resource_type?: string | null;
32929
+ response?: import("../integrations/supabase/types").Json | null;
32930
+ write_log_id?: string | null;
32931
+ };
32932
+ Update: {
32933
+ action?: string | null;
32934
+ caller?: string | null;
32935
+ connection_id?: string | null;
32936
+ created_at?: string;
32937
+ cursor_from?: number | null;
32938
+ direction?: string;
32939
+ duration_ms?: number | null;
32940
+ environment?: string | null;
32941
+ error?: string | null;
32942
+ floriday_id?: string | null;
32943
+ floriday_reference?: string | null;
32944
+ http_status?: number;
32945
+ id?: string;
32946
+ item_count?: number | null;
32947
+ kind?: string | null;
32948
+ local_id?: string | null;
32949
+ local_reference?: string | null;
32950
+ method?: string;
32951
+ module?: string | null;
32952
+ ok?: boolean;
32953
+ path?: string;
32954
+ request?: import("../integrations/supabase/types").Json | null;
32955
+ resource_type?: string | null;
32956
+ response?: import("../integrations/supabase/types").Json | null;
32957
+ write_log_id?: string | null;
32958
+ };
32959
+ Relationships: [{
32960
+ foreignKeyName: "floriday_api_log_connection_id_fkey";
32961
+ columns: ["connection_id"];
32962
+ isOneToOne: false;
32963
+ referencedRelation: "floriday_connections";
32964
+ referencedColumns: ["id"];
32965
+ }, {
32966
+ foreignKeyName: "floriday_api_log_write_log_id_fkey";
32967
+ columns: ["write_log_id"];
32968
+ isOneToOne: false;
32969
+ referencedRelation: "floriday_write_log";
32970
+ referencedColumns: ["id"];
32971
+ }];
32972
+ };
32249
32973
  floriday_auction_letters_cache: {
32250
32974
  Row: {
32251
32975
  auction_letter_code: string;
@@ -33446,6 +34170,69 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
33446
34170
  referencedColumns: ["id"];
33447
34171
  }];
33448
34172
  };
34173
+ floriday_link_templates: {
34174
+ Row: {
34175
+ created_at: string;
34176
+ floriday_url_template: string | null;
34177
+ is_active: boolean;
34178
+ label: string;
34179
+ local_url_template: string | null;
34180
+ resource_type: string;
34181
+ updated_at: string;
34182
+ };
34183
+ Insert: {
34184
+ created_at?: string;
34185
+ floriday_url_template?: string | null;
34186
+ is_active?: boolean;
34187
+ label: string;
34188
+ local_url_template?: string | null;
34189
+ resource_type: string;
34190
+ updated_at?: string;
34191
+ };
34192
+ Update: {
34193
+ created_at?: string;
34194
+ floriday_url_template?: string | null;
34195
+ is_active?: boolean;
34196
+ label?: string;
34197
+ local_url_template?: string | null;
34198
+ resource_type?: string;
34199
+ updated_at?: string;
34200
+ };
34201
+ Relationships: [];
34202
+ };
34203
+ floriday_log_retention: {
34204
+ Row: {
34205
+ created_at: string;
34206
+ direction: string | null;
34207
+ id: string;
34208
+ keep_failed_days: number | null;
34209
+ keep_ok_days: number | null;
34210
+ note: string | null;
34211
+ resource_type: string | null;
34212
+ updated_at: string;
34213
+ };
34214
+ Insert: {
34215
+ created_at?: string;
34216
+ direction?: string | null;
34217
+ id?: string;
34218
+ keep_failed_days?: number | null;
34219
+ keep_ok_days?: number | null;
34220
+ note?: string | null;
34221
+ resource_type?: string | null;
34222
+ updated_at?: string;
34223
+ };
34224
+ Update: {
34225
+ created_at?: string;
34226
+ direction?: string | null;
34227
+ id?: string;
34228
+ keep_failed_days?: number | null;
34229
+ keep_ok_days?: number | null;
34230
+ note?: string | null;
34231
+ resource_type?: string | null;
34232
+ updated_at?: string;
34233
+ };
34234
+ Relationships: [];
34235
+ };
33449
34236
  floriday_logistic_labels_cache: {
33450
34237
  Row: {
33451
34238
  byte_size: number | null;
@@ -37571,6 +38358,69 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
37571
38358
  };
37572
38359
  Relationships: [];
37573
38360
  };
38361
+ logistics_slip_shipping_note: {
38362
+ Row: {
38363
+ attempts: number;
38364
+ batch_key: string | null;
38365
+ cart_id: string | null;
38366
+ created_at: string;
38367
+ error: string | null;
38368
+ error_code: string | null;
38369
+ fulfillment_order_id: string | null;
38370
+ id: string;
38371
+ locked_until: string | null;
38372
+ next_attempt_at: string | null;
38373
+ order_id: string | null;
38374
+ order_number: string | null;
38375
+ print_job_id: string | null;
38376
+ printer_id: string | null;
38377
+ retry_class: string | null;
38378
+ slip_job_id: string;
38379
+ status: string;
38380
+ updated_at: string;
38381
+ };
38382
+ Insert: {
38383
+ attempts?: number;
38384
+ batch_key?: string | null;
38385
+ cart_id?: string | null;
38386
+ created_at?: string;
38387
+ error?: string | null;
38388
+ error_code?: string | null;
38389
+ fulfillment_order_id?: string | null;
38390
+ id?: string;
38391
+ locked_until?: string | null;
38392
+ next_attempt_at?: string | null;
38393
+ order_id?: string | null;
38394
+ order_number?: string | null;
38395
+ print_job_id?: string | null;
38396
+ printer_id?: string | null;
38397
+ retry_class?: string | null;
38398
+ slip_job_id: string;
38399
+ status?: string;
38400
+ updated_at?: string;
38401
+ };
38402
+ Update: {
38403
+ attempts?: number;
38404
+ batch_key?: string | null;
38405
+ cart_id?: string | null;
38406
+ created_at?: string;
38407
+ error?: string | null;
38408
+ error_code?: string | null;
38409
+ fulfillment_order_id?: string | null;
38410
+ id?: string;
38411
+ locked_until?: string | null;
38412
+ next_attempt_at?: string | null;
38413
+ order_id?: string | null;
38414
+ order_number?: string | null;
38415
+ print_job_id?: string | null;
38416
+ printer_id?: string | null;
38417
+ retry_class?: string | null;
38418
+ slip_job_id?: string;
38419
+ status?: string;
38420
+ updated_at?: string;
38421
+ };
38422
+ Relationships: [];
38423
+ };
37574
38424
  logistics_staff_planning: {
37575
38425
  Row: {
37576
38426
  created_at: string;
@@ -37922,6 +38772,111 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
37922
38772
  };
37923
38773
  Relationships: [];
37924
38774
  };
38775
+ logistics_trace_events: {
38776
+ Row: {
38777
+ actor: string | null;
38778
+ attempts: number;
38779
+ cart_ref: string | null;
38780
+ created_at: string;
38781
+ db_action: string | null;
38782
+ db_new: import("../integrations/supabase/types").Json | null;
38783
+ db_old: import("../integrations/supabase/types").Json | null;
38784
+ db_record: string | null;
38785
+ db_table: string | null;
38786
+ decision: string | null;
38787
+ duration_ms: number | null;
38788
+ error: string | null;
38789
+ external_action: string | null;
38790
+ external_ref: string | null;
38791
+ external_response: import("../integrations/supabase/types").Json | null;
38792
+ external_status: string | null;
38793
+ external_system: string | null;
38794
+ id: string;
38795
+ input: import("../integrations/supabase/types").Json | null;
38796
+ next_attempt_at: string | null;
38797
+ order_ref: string | null;
38798
+ order_source: string | null;
38799
+ output: import("../integrations/supabase/types").Json | null;
38800
+ phase: string;
38801
+ reads: import("../integrations/supabase/types").Json | null;
38802
+ reason: string | null;
38803
+ rule: string | null;
38804
+ slip_ref: string | null;
38805
+ status: string;
38806
+ step: string;
38807
+ trace_id: string;
38808
+ values_used: import("../integrations/supabase/types").Json | null;
38809
+ };
38810
+ Insert: {
38811
+ actor?: string | null;
38812
+ attempts?: number;
38813
+ cart_ref?: string | null;
38814
+ created_at?: string;
38815
+ db_action?: string | null;
38816
+ db_new?: import("../integrations/supabase/types").Json | null;
38817
+ db_old?: import("../integrations/supabase/types").Json | null;
38818
+ db_record?: string | null;
38819
+ db_table?: string | null;
38820
+ decision?: string | null;
38821
+ duration_ms?: number | null;
38822
+ error?: string | null;
38823
+ external_action?: string | null;
38824
+ external_ref?: string | null;
38825
+ external_response?: import("../integrations/supabase/types").Json | null;
38826
+ external_status?: string | null;
38827
+ external_system?: string | null;
38828
+ id?: string;
38829
+ input?: import("../integrations/supabase/types").Json | null;
38830
+ next_attempt_at?: string | null;
38831
+ order_ref?: string | null;
38832
+ order_source?: string | null;
38833
+ output?: import("../integrations/supabase/types").Json | null;
38834
+ phase: string;
38835
+ reads?: import("../integrations/supabase/types").Json | null;
38836
+ reason?: string | null;
38837
+ rule?: string | null;
38838
+ slip_ref?: string | null;
38839
+ status: string;
38840
+ step: string;
38841
+ trace_id?: string;
38842
+ values_used?: import("../integrations/supabase/types").Json | null;
38843
+ };
38844
+ Update: {
38845
+ actor?: string | null;
38846
+ attempts?: number;
38847
+ cart_ref?: string | null;
38848
+ created_at?: string;
38849
+ db_action?: string | null;
38850
+ db_new?: import("../integrations/supabase/types").Json | null;
38851
+ db_old?: import("../integrations/supabase/types").Json | null;
38852
+ db_record?: string | null;
38853
+ db_table?: string | null;
38854
+ decision?: string | null;
38855
+ duration_ms?: number | null;
38856
+ error?: string | null;
38857
+ external_action?: string | null;
38858
+ external_ref?: string | null;
38859
+ external_response?: import("../integrations/supabase/types").Json | null;
38860
+ external_status?: string | null;
38861
+ external_system?: string | null;
38862
+ id?: string;
38863
+ input?: import("../integrations/supabase/types").Json | null;
38864
+ next_attempt_at?: string | null;
38865
+ order_ref?: string | null;
38866
+ order_source?: string | null;
38867
+ output?: import("../integrations/supabase/types").Json | null;
38868
+ phase?: string;
38869
+ reads?: import("../integrations/supabase/types").Json | null;
38870
+ reason?: string | null;
38871
+ rule?: string | null;
38872
+ slip_ref?: string | null;
38873
+ status?: string;
38874
+ step?: string;
38875
+ trace_id?: string;
38876
+ values_used?: import("../integrations/supabase/types").Json | null;
38877
+ };
38878
+ Relationships: [];
38879
+ };
37925
38880
  logistics_variables: {
37926
38881
  Row: {
37927
38882
  created_at: string;
@@ -48494,6 +49449,15 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
48494
49449
  Args: never;
48495
49450
  Returns: boolean;
48496
49451
  };
49452
+ cancel_open_print_jobs: {
49453
+ Args: {
49454
+ _cutoff: string;
49455
+ };
49456
+ Returns: {
49457
+ extern_job_id: string;
49458
+ id: string;
49459
+ }[];
49460
+ };
48497
49461
  check_offer_product_available_stock: {
48498
49462
  Args: {
48499
49463
  p_campaign_product_id: string;
@@ -50106,6 +51070,12 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
50106
51070
  };
50107
51071
  Returns: import("../integrations/supabase/types").Json;
50108
51072
  };
51073
+ logistics_cart_plan_status_core: {
51074
+ Args: {
51075
+ p_ref: string;
51076
+ };
51077
+ Returns: import("../integrations/supabase/types").Json;
51078
+ };
50109
51079
  logistics_cart_release_reason: {
50110
51080
  Args: {
50111
51081
  p_cart_id: string;
@@ -50168,6 +51138,10 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
50168
51138
  unit_ref: string;
50169
51139
  }[];
50170
51140
  };
51141
+ logistics_carts_per_print: {
51142
+ Args: never;
51143
+ Returns: number;
51144
+ };
50171
51145
  logistics_check_order_allowed: {
50172
51146
  Args: {
50173
51147
  p_lines: import("../integrations/supabase/types").Json;
@@ -50534,6 +51508,12 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
50534
51508
  };
50535
51509
  Returns: import("../integrations/supabase/types").Json;
50536
51510
  };
51511
+ logistics_ensure_shipping_notes: {
51512
+ Args: {
51513
+ p_limit?: number;
51514
+ };
51515
+ Returns: import("../integrations/supabase/types").Json;
51516
+ };
50537
51517
  logistics_fail_task: {
50538
51518
  Args: {
50539
51519
  p_error: string;
@@ -50579,6 +51559,10 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
50579
51559
  isSetofReturn: false;
50580
51560
  };
50581
51561
  };
51562
+ logistics_fix_wrong_shipping_notes: {
51563
+ Args: never;
51564
+ Returns: import("../integrations/supabase/types").Json;
51565
+ };
50582
51566
  logistics_floriday_cart_plan: {
50583
51567
  Args: {
50584
51568
  p_order_id: string;
@@ -50606,6 +51590,10 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
50606
51590
  revision: number;
50607
51591
  }[];
50608
51592
  };
51593
+ logistics_floriday_delivery_note_create_enabled: {
51594
+ Args: never;
51595
+ Returns: boolean;
51596
+ };
50609
51597
  logistics_floriday_finish_push: {
50610
51598
  Args: {
50611
51599
  _error?: string;
@@ -50849,6 +51837,12 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
50849
51837
  };
50850
51838
  Returns: string;
50851
51839
  };
51840
+ logistics_payload_is_floriday: {
51841
+ Args: {
51842
+ _payload: import("../integrations/supabase/types").Json;
51843
+ };
51844
+ Returns: boolean;
51845
+ };
50852
51846
  logistics_pick_agenda: {
50853
51847
  Args: {
50854
51848
  p_from?: string;
@@ -50971,6 +51965,20 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
50971
51965
  Args: never;
50972
51966
  Returns: undefined;
50973
51967
  };
51968
+ logistics_plan_progress: {
51969
+ Args: {
51970
+ p_refs: string[];
51971
+ };
51972
+ Returns: {
51973
+ cart_plan_ready: boolean;
51974
+ cart_plan_reason: string;
51975
+ cart_plan_released: boolean;
51976
+ plan_progress: number;
51977
+ plan_state: string;
51978
+ plan_state_since: string;
51979
+ unit_ref: string;
51980
+ }[];
51981
+ };
50974
51982
  logistics_plan_prune: {
50975
51983
  Args: never;
50976
51984
  Returns: number;
@@ -50992,6 +52000,12 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
50992
52000
  };
50993
52001
  Returns: number;
50994
52002
  };
52003
+ logistics_plan_state_for: {
52004
+ Args: {
52005
+ p_ref: string;
52006
+ };
52007
+ Returns: import("../integrations/supabase/types").Json;
52008
+ };
50995
52009
  logistics_prepare_pick_documents: {
50996
52010
  Args: {
50997
52011
  p_limit?: number;
@@ -51050,6 +52064,12 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
51050
52064
  };
51051
52065
  Returns: import("../integrations/supabase/types").Json;
51052
52066
  };
52067
+ logistics_refresh_plan_state: {
52068
+ Args: {
52069
+ p_limit?: number;
52070
+ };
52071
+ Returns: import("../integrations/supabase/types").Json;
52072
+ };
51053
52073
  logistics_replan_all: {
51054
52074
  Args: {
51055
52075
  p_reason?: string;
@@ -51218,6 +52238,74 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
51218
52238
  };
51219
52239
  Returns: import("../integrations/supabase/types").Json;
51220
52240
  };
52241
+ logistics_shipping_note_job_for_slip: {
52242
+ Args: {
52243
+ _slip_job_id: string;
52244
+ };
52245
+ Returns: string;
52246
+ };
52247
+ logistics_shipping_notes_wake_all: {
52248
+ Args: never;
52249
+ Returns: import("../integrations/supabase/types").Json;
52250
+ };
52251
+ logistics_slip_is_floriday: {
52252
+ Args: {
52253
+ _slip_job_id: string;
52254
+ };
52255
+ Returns: boolean;
52256
+ };
52257
+ logistics_slip_note_claim: {
52258
+ Args: {
52259
+ _lease_seconds?: number;
52260
+ _limit?: number;
52261
+ };
52262
+ Returns: {
52263
+ attempts: number;
52264
+ batch_key: string | null;
52265
+ cart_id: string | null;
52266
+ created_at: string;
52267
+ error: string | null;
52268
+ error_code: string | null;
52269
+ fulfillment_order_id: string | null;
52270
+ id: string;
52271
+ locked_until: string | null;
52272
+ next_attempt_at: string | null;
52273
+ order_id: string | null;
52274
+ order_number: string | null;
52275
+ print_job_id: string | null;
52276
+ printer_id: string | null;
52277
+ retry_class: string | null;
52278
+ slip_job_id: string;
52279
+ status: string;
52280
+ updated_at: string;
52281
+ }[];
52282
+ SetofOptions: {
52283
+ from: "*";
52284
+ to: "logistics_slip_shipping_note";
52285
+ isOneToOne: false;
52286
+ isSetofReturn: true;
52287
+ };
52288
+ };
52289
+ logistics_slip_note_finish: {
52290
+ Args: {
52291
+ _error?: string;
52292
+ _error_code?: string;
52293
+ _fulfillment_order_id?: string;
52294
+ _id: string;
52295
+ _ok: boolean;
52296
+ _print_job_id?: string;
52297
+ _status?: string;
52298
+ };
52299
+ Returns: undefined;
52300
+ };
52301
+ logistics_slip_note_keep_waiting: {
52302
+ Args: {
52303
+ _class?: string;
52304
+ _id: string;
52305
+ _reason: string;
52306
+ };
52307
+ Returns: undefined;
52308
+ };
51221
52309
  logistics_sticker_follows_slip: {
51222
52310
  Args: never;
51223
52311
  Returns: boolean;
@@ -51272,6 +52360,40 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
51272
52360
  name: string;
51273
52361
  }[];
51274
52362
  };
52363
+ logistics_trace: {
52364
+ Args: {
52365
+ p: import("../integrations/supabase/types").Json;
52366
+ };
52367
+ Returns: string;
52368
+ };
52369
+ logistics_trace_batch: {
52370
+ Args: {
52371
+ p: import("../integrations/supabase/types").Json;
52372
+ };
52373
+ Returns: number;
52374
+ };
52375
+ logistics_trace_orders: {
52376
+ Args: {
52377
+ p_limit?: number;
52378
+ p_search?: string;
52379
+ p_since?: string;
52380
+ p_status?: string;
52381
+ };
52382
+ Returns: import("../integrations/supabase/types").Json;
52383
+ };
52384
+ logistics_trace_redact: {
52385
+ Args: {
52386
+ p: import("../integrations/supabase/types").Json;
52387
+ };
52388
+ Returns: import("../integrations/supabase/types").Json;
52389
+ };
52390
+ logistics_trace_timeline: {
52391
+ Args: {
52392
+ p_limit?: number;
52393
+ p_order_ref: string;
52394
+ };
52395
+ Returns: import("../integrations/supabase/types").Json;
52396
+ };
51275
52397
  logistics_upsert_task: {
51276
52398
  Args: {
51277
52399
  p_buffer_ref: string;
@@ -52313,6 +53435,10 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
52313
53435
  };
52314
53436
  Returns: undefined;
52315
53437
  };
53438
+ prune_floriday_api_log: {
53439
+ Args: never;
53440
+ Returns: number;
53441
+ };
52316
53442
  quote_create_from_source: {
52317
53443
  Args: {
52318
53444
  _payload?: import("../integrations/supabase/types").Json;
@@ -53189,6 +54315,10 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
53189
54315
  Args: never;
53190
54316
  Returns: string;
53191
54317
  };
54318
+ voorraad_cleanup_old_rows: {
54319
+ Args: never;
54320
+ Returns: import("../integrations/supabase/types").Json;
54321
+ };
53192
54322
  wake_print_queue: {
53193
54323
  Args: {
53194
54324
  _min_interval_ms?: number;