@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
@@ -2275,6 +2275,45 @@ export declare const prepareTwinfieldAdoption: import("@tanstack/start-client-co
2275
2275
  };
2276
2276
  Relationships: [];
2277
2277
  };
2278
+ customer_product_stickers: {
2279
+ Row: {
2280
+ created_at: string;
2281
+ customer_key: string;
2282
+ file_name: string;
2283
+ file_path: string;
2284
+ file_size: number | null;
2285
+ id: string;
2286
+ mime_type: string | null;
2287
+ trade_item_key: string;
2288
+ updated_at: string;
2289
+ uploaded_by: string | null;
2290
+ };
2291
+ Insert: {
2292
+ created_at?: string;
2293
+ customer_key: string;
2294
+ file_name: string;
2295
+ file_path: string;
2296
+ file_size?: number | null;
2297
+ id?: string;
2298
+ mime_type?: string | null;
2299
+ trade_item_key: string;
2300
+ updated_at?: string;
2301
+ uploaded_by?: string | null;
2302
+ };
2303
+ Update: {
2304
+ created_at?: string;
2305
+ customer_key?: string;
2306
+ file_name?: string;
2307
+ file_path?: string;
2308
+ file_size?: number | null;
2309
+ id?: string;
2310
+ mime_type?: string | null;
2311
+ trade_item_key?: string;
2312
+ updated_at?: string;
2313
+ uploaded_by?: string | null;
2314
+ };
2315
+ Relationships: [];
2316
+ };
2278
2317
  customer_selected_assortment: {
2279
2318
  Row: {
2280
2319
  article_number: string | null;
@@ -2323,6 +2362,30 @@ export declare const prepareTwinfieldAdoption: import("@tanstack/start-client-co
2323
2362
  referencedColumns: ["id"];
2324
2363
  }];
2325
2364
  };
2365
+ customer_sticker_settings: {
2366
+ Row: {
2367
+ created_at: string;
2368
+ customer_key: string;
2369
+ height_mm: number;
2370
+ updated_at: string;
2371
+ width_mm: number;
2372
+ };
2373
+ Insert: {
2374
+ created_at?: string;
2375
+ customer_key: string;
2376
+ height_mm?: number;
2377
+ updated_at?: string;
2378
+ width_mm?: number;
2379
+ };
2380
+ Update: {
2381
+ created_at?: string;
2382
+ customer_key?: string;
2383
+ height_mm?: number;
2384
+ updated_at?: string;
2385
+ width_mm?: number;
2386
+ };
2387
+ Relationships: [];
2388
+ };
2326
2389
  customer_trade_settings: {
2327
2390
  Row: {
2328
2391
  category: string;
@@ -5653,6 +5716,102 @@ export declare const prepareTwinfieldAdoption: import("@tanstack/start-client-co
5653
5716
  referencedColumns: ["id"];
5654
5717
  }];
5655
5718
  };
5719
+ floriday_api_log: {
5720
+ Row: {
5721
+ action: string | null;
5722
+ caller: string | null;
5723
+ connection_id: string | null;
5724
+ created_at: string;
5725
+ cursor_from: number | null;
5726
+ direction: string;
5727
+ duration_ms: number | null;
5728
+ environment: string | null;
5729
+ error: string | null;
5730
+ floriday_id: string | null;
5731
+ floriday_reference: string | null;
5732
+ http_status: number;
5733
+ id: string;
5734
+ item_count: number | null;
5735
+ kind: string | null;
5736
+ local_id: string | null;
5737
+ local_reference: string | null;
5738
+ method: string;
5739
+ module: string | null;
5740
+ ok: boolean;
5741
+ path: string;
5742
+ request: import("../integrations/supabase/types").Json | null;
5743
+ resource_type: string | null;
5744
+ response: import("../integrations/supabase/types").Json | null;
5745
+ write_log_id: string | null;
5746
+ };
5747
+ Insert: {
5748
+ action?: string | null;
5749
+ caller?: string | null;
5750
+ connection_id?: string | null;
5751
+ created_at?: string;
5752
+ cursor_from?: number | null;
5753
+ direction: string;
5754
+ duration_ms?: number | null;
5755
+ environment?: string | null;
5756
+ error?: string | null;
5757
+ floriday_id?: string | null;
5758
+ floriday_reference?: string | null;
5759
+ http_status?: number;
5760
+ id?: string;
5761
+ item_count?: number | null;
5762
+ kind?: string | null;
5763
+ local_id?: string | null;
5764
+ local_reference?: string | null;
5765
+ method: string;
5766
+ module?: string | null;
5767
+ ok?: boolean;
5768
+ path: string;
5769
+ request?: import("../integrations/supabase/types").Json | null;
5770
+ resource_type?: string | null;
5771
+ response?: import("../integrations/supabase/types").Json | null;
5772
+ write_log_id?: string | null;
5773
+ };
5774
+ Update: {
5775
+ action?: string | null;
5776
+ caller?: string | null;
5777
+ connection_id?: string | null;
5778
+ created_at?: string;
5779
+ cursor_from?: number | null;
5780
+ direction?: string;
5781
+ duration_ms?: number | null;
5782
+ environment?: string | null;
5783
+ error?: string | null;
5784
+ floriday_id?: string | null;
5785
+ floriday_reference?: string | null;
5786
+ http_status?: number;
5787
+ id?: string;
5788
+ item_count?: number | null;
5789
+ kind?: string | null;
5790
+ local_id?: string | null;
5791
+ local_reference?: string | null;
5792
+ method?: string;
5793
+ module?: string | null;
5794
+ ok?: boolean;
5795
+ path?: string;
5796
+ request?: import("../integrations/supabase/types").Json | null;
5797
+ resource_type?: string | null;
5798
+ response?: import("../integrations/supabase/types").Json | null;
5799
+ write_log_id?: string | null;
5800
+ };
5801
+ Relationships: [{
5802
+ foreignKeyName: "floriday_api_log_connection_id_fkey";
5803
+ columns: ["connection_id"];
5804
+ isOneToOne: false;
5805
+ referencedRelation: "floriday_connections";
5806
+ referencedColumns: ["id"];
5807
+ }, {
5808
+ foreignKeyName: "floriday_api_log_write_log_id_fkey";
5809
+ columns: ["write_log_id"];
5810
+ isOneToOne: false;
5811
+ referencedRelation: "floriday_write_log";
5812
+ referencedColumns: ["id"];
5813
+ }];
5814
+ };
5656
5815
  floriday_auction_letters_cache: {
5657
5816
  Row: {
5658
5817
  auction_letter_code: string;
@@ -6853,6 +7012,69 @@ export declare const prepareTwinfieldAdoption: import("@tanstack/start-client-co
6853
7012
  referencedColumns: ["id"];
6854
7013
  }];
6855
7014
  };
7015
+ floriday_link_templates: {
7016
+ Row: {
7017
+ created_at: string;
7018
+ floriday_url_template: string | null;
7019
+ is_active: boolean;
7020
+ label: string;
7021
+ local_url_template: string | null;
7022
+ resource_type: string;
7023
+ updated_at: string;
7024
+ };
7025
+ Insert: {
7026
+ created_at?: string;
7027
+ floriday_url_template?: string | null;
7028
+ is_active?: boolean;
7029
+ label: string;
7030
+ local_url_template?: string | null;
7031
+ resource_type: string;
7032
+ updated_at?: string;
7033
+ };
7034
+ Update: {
7035
+ created_at?: string;
7036
+ floriday_url_template?: string | null;
7037
+ is_active?: boolean;
7038
+ label?: string;
7039
+ local_url_template?: string | null;
7040
+ resource_type?: string;
7041
+ updated_at?: string;
7042
+ };
7043
+ Relationships: [];
7044
+ };
7045
+ floriday_log_retention: {
7046
+ Row: {
7047
+ created_at: string;
7048
+ direction: string | null;
7049
+ id: string;
7050
+ keep_failed_days: number | null;
7051
+ keep_ok_days: number | null;
7052
+ note: string | null;
7053
+ resource_type: string | null;
7054
+ updated_at: string;
7055
+ };
7056
+ Insert: {
7057
+ created_at?: string;
7058
+ direction?: string | null;
7059
+ id?: string;
7060
+ keep_failed_days?: number | null;
7061
+ keep_ok_days?: number | null;
7062
+ note?: string | null;
7063
+ resource_type?: string | null;
7064
+ updated_at?: string;
7065
+ };
7066
+ Update: {
7067
+ created_at?: string;
7068
+ direction?: string | null;
7069
+ id?: string;
7070
+ keep_failed_days?: number | null;
7071
+ keep_ok_days?: number | null;
7072
+ note?: string | null;
7073
+ resource_type?: string | null;
7074
+ updated_at?: string;
7075
+ };
7076
+ Relationships: [];
7077
+ };
6856
7078
  floriday_logistic_labels_cache: {
6857
7079
  Row: {
6858
7080
  byte_size: number | null;
@@ -10978,6 +11200,69 @@ export declare const prepareTwinfieldAdoption: import("@tanstack/start-client-co
10978
11200
  };
10979
11201
  Relationships: [];
10980
11202
  };
11203
+ logistics_slip_shipping_note: {
11204
+ Row: {
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
+ Insert: {
11225
+ attempts?: number;
11226
+ batch_key?: string | null;
11227
+ cart_id?: string | null;
11228
+ created_at?: string;
11229
+ error?: string | null;
11230
+ error_code?: string | null;
11231
+ fulfillment_order_id?: string | null;
11232
+ id?: string;
11233
+ locked_until?: string | null;
11234
+ next_attempt_at?: string | null;
11235
+ order_id?: string | null;
11236
+ order_number?: string | null;
11237
+ print_job_id?: string | null;
11238
+ printer_id?: string | null;
11239
+ retry_class?: string | null;
11240
+ slip_job_id: string;
11241
+ status?: string;
11242
+ updated_at?: string;
11243
+ };
11244
+ Update: {
11245
+ attempts?: number;
11246
+ batch_key?: string | null;
11247
+ cart_id?: string | null;
11248
+ created_at?: string;
11249
+ error?: string | null;
11250
+ error_code?: string | null;
11251
+ fulfillment_order_id?: string | null;
11252
+ id?: string;
11253
+ locked_until?: string | null;
11254
+ next_attempt_at?: string | null;
11255
+ order_id?: string | null;
11256
+ order_number?: string | null;
11257
+ print_job_id?: string | null;
11258
+ printer_id?: string | null;
11259
+ retry_class?: string | null;
11260
+ slip_job_id?: string;
11261
+ status?: string;
11262
+ updated_at?: string;
11263
+ };
11264
+ Relationships: [];
11265
+ };
10981
11266
  logistics_staff_planning: {
10982
11267
  Row: {
10983
11268
  created_at: string;
@@ -11329,6 +11614,111 @@ export declare const prepareTwinfieldAdoption: import("@tanstack/start-client-co
11329
11614
  };
11330
11615
  Relationships: [];
11331
11616
  };
11617
+ logistics_trace_events: {
11618
+ Row: {
11619
+ actor: string | null;
11620
+ attempts: number;
11621
+ cart_ref: string | null;
11622
+ created_at: string;
11623
+ db_action: string | null;
11624
+ db_new: import("../integrations/supabase/types").Json | null;
11625
+ db_old: import("../integrations/supabase/types").Json | null;
11626
+ db_record: string | null;
11627
+ db_table: string | null;
11628
+ decision: string | null;
11629
+ duration_ms: number | null;
11630
+ error: string | null;
11631
+ external_action: string | null;
11632
+ external_ref: string | null;
11633
+ external_response: import("../integrations/supabase/types").Json | null;
11634
+ external_status: string | null;
11635
+ external_system: string | null;
11636
+ id: string;
11637
+ input: import("../integrations/supabase/types").Json | null;
11638
+ next_attempt_at: string | null;
11639
+ order_ref: string | null;
11640
+ order_source: string | null;
11641
+ output: import("../integrations/supabase/types").Json | null;
11642
+ phase: string;
11643
+ reads: import("../integrations/supabase/types").Json | null;
11644
+ reason: string | null;
11645
+ rule: string | null;
11646
+ slip_ref: string | null;
11647
+ status: string;
11648
+ step: string;
11649
+ trace_id: string;
11650
+ values_used: import("../integrations/supabase/types").Json | null;
11651
+ };
11652
+ Insert: {
11653
+ actor?: string | null;
11654
+ attempts?: number;
11655
+ cart_ref?: string | null;
11656
+ created_at?: string;
11657
+ db_action?: string | null;
11658
+ db_new?: import("../integrations/supabase/types").Json | null;
11659
+ db_old?: import("../integrations/supabase/types").Json | null;
11660
+ db_record?: string | null;
11661
+ db_table?: string | null;
11662
+ decision?: string | null;
11663
+ duration_ms?: number | null;
11664
+ error?: string | null;
11665
+ external_action?: string | null;
11666
+ external_ref?: string | null;
11667
+ external_response?: import("../integrations/supabase/types").Json | null;
11668
+ external_status?: string | null;
11669
+ external_system?: string | null;
11670
+ id?: string;
11671
+ input?: import("../integrations/supabase/types").Json | null;
11672
+ next_attempt_at?: string | null;
11673
+ order_ref?: string | null;
11674
+ order_source?: string | null;
11675
+ output?: import("../integrations/supabase/types").Json | null;
11676
+ phase: string;
11677
+ reads?: import("../integrations/supabase/types").Json | null;
11678
+ reason?: string | null;
11679
+ rule?: string | null;
11680
+ slip_ref?: string | null;
11681
+ status: string;
11682
+ step: string;
11683
+ trace_id?: string;
11684
+ values_used?: import("../integrations/supabase/types").Json | null;
11685
+ };
11686
+ Update: {
11687
+ actor?: string | null;
11688
+ attempts?: number;
11689
+ cart_ref?: string | null;
11690
+ created_at?: string;
11691
+ db_action?: string | null;
11692
+ db_new?: import("../integrations/supabase/types").Json | null;
11693
+ db_old?: import("../integrations/supabase/types").Json | null;
11694
+ db_record?: string | null;
11695
+ db_table?: string | null;
11696
+ decision?: string | null;
11697
+ duration_ms?: number | null;
11698
+ error?: string | null;
11699
+ external_action?: string | null;
11700
+ external_ref?: string | null;
11701
+ external_response?: import("../integrations/supabase/types").Json | null;
11702
+ external_status?: string | null;
11703
+ external_system?: string | null;
11704
+ id?: string;
11705
+ input?: import("../integrations/supabase/types").Json | null;
11706
+ next_attempt_at?: string | null;
11707
+ order_ref?: string | null;
11708
+ order_source?: string | null;
11709
+ output?: import("../integrations/supabase/types").Json | null;
11710
+ phase?: string;
11711
+ reads?: import("../integrations/supabase/types").Json | null;
11712
+ reason?: string | null;
11713
+ rule?: string | null;
11714
+ slip_ref?: string | null;
11715
+ status?: string;
11716
+ step?: string;
11717
+ trace_id?: string;
11718
+ values_used?: import("../integrations/supabase/types").Json | null;
11719
+ };
11720
+ Relationships: [];
11721
+ };
11332
11722
  logistics_variables: {
11333
11723
  Row: {
11334
11724
  created_at: string;
@@ -21901,6 +22291,15 @@ export declare const prepareTwinfieldAdoption: import("@tanstack/start-client-co
21901
22291
  Args: never;
21902
22292
  Returns: boolean;
21903
22293
  };
22294
+ cancel_open_print_jobs: {
22295
+ Args: {
22296
+ _cutoff: string;
22297
+ };
22298
+ Returns: {
22299
+ extern_job_id: string;
22300
+ id: string;
22301
+ }[];
22302
+ };
21904
22303
  check_offer_product_available_stock: {
21905
22304
  Args: {
21906
22305
  p_campaign_product_id: string;
@@ -23513,6 +23912,12 @@ export declare const prepareTwinfieldAdoption: import("@tanstack/start-client-co
23513
23912
  };
23514
23913
  Returns: import("../integrations/supabase/types").Json;
23515
23914
  };
23915
+ logistics_cart_plan_status_core: {
23916
+ Args: {
23917
+ p_ref: string;
23918
+ };
23919
+ Returns: import("../integrations/supabase/types").Json;
23920
+ };
23516
23921
  logistics_cart_release_reason: {
23517
23922
  Args: {
23518
23923
  p_cart_id: string;
@@ -23575,6 +23980,10 @@ export declare const prepareTwinfieldAdoption: import("@tanstack/start-client-co
23575
23980
  unit_ref: string;
23576
23981
  }[];
23577
23982
  };
23983
+ logistics_carts_per_print: {
23984
+ Args: never;
23985
+ Returns: number;
23986
+ };
23578
23987
  logistics_check_order_allowed: {
23579
23988
  Args: {
23580
23989
  p_lines: import("../integrations/supabase/types").Json;
@@ -23941,6 +24350,12 @@ export declare const prepareTwinfieldAdoption: import("@tanstack/start-client-co
23941
24350
  };
23942
24351
  Returns: import("../integrations/supabase/types").Json;
23943
24352
  };
24353
+ logistics_ensure_shipping_notes: {
24354
+ Args: {
24355
+ p_limit?: number;
24356
+ };
24357
+ Returns: import("../integrations/supabase/types").Json;
24358
+ };
23944
24359
  logistics_fail_task: {
23945
24360
  Args: {
23946
24361
  p_error: string;
@@ -23986,6 +24401,10 @@ export declare const prepareTwinfieldAdoption: import("@tanstack/start-client-co
23986
24401
  isSetofReturn: false;
23987
24402
  };
23988
24403
  };
24404
+ logistics_fix_wrong_shipping_notes: {
24405
+ Args: never;
24406
+ Returns: import("../integrations/supabase/types").Json;
24407
+ };
23989
24408
  logistics_floriday_cart_plan: {
23990
24409
  Args: {
23991
24410
  p_order_id: string;
@@ -24013,6 +24432,10 @@ export declare const prepareTwinfieldAdoption: import("@tanstack/start-client-co
24013
24432
  revision: number;
24014
24433
  }[];
24015
24434
  };
24435
+ logistics_floriday_delivery_note_create_enabled: {
24436
+ Args: never;
24437
+ Returns: boolean;
24438
+ };
24016
24439
  logistics_floriday_finish_push: {
24017
24440
  Args: {
24018
24441
  _error?: string;
@@ -24256,6 +24679,12 @@ export declare const prepareTwinfieldAdoption: import("@tanstack/start-client-co
24256
24679
  };
24257
24680
  Returns: string;
24258
24681
  };
24682
+ logistics_payload_is_floriday: {
24683
+ Args: {
24684
+ _payload: import("../integrations/supabase/types").Json;
24685
+ };
24686
+ Returns: boolean;
24687
+ };
24259
24688
  logistics_pick_agenda: {
24260
24689
  Args: {
24261
24690
  p_from?: string;
@@ -24378,6 +24807,20 @@ export declare const prepareTwinfieldAdoption: import("@tanstack/start-client-co
24378
24807
  Args: never;
24379
24808
  Returns: undefined;
24380
24809
  };
24810
+ logistics_plan_progress: {
24811
+ Args: {
24812
+ p_refs: string[];
24813
+ };
24814
+ Returns: {
24815
+ cart_plan_ready: boolean;
24816
+ cart_plan_reason: string;
24817
+ cart_plan_released: boolean;
24818
+ plan_progress: number;
24819
+ plan_state: string;
24820
+ plan_state_since: string;
24821
+ unit_ref: string;
24822
+ }[];
24823
+ };
24381
24824
  logistics_plan_prune: {
24382
24825
  Args: never;
24383
24826
  Returns: number;
@@ -24399,6 +24842,12 @@ export declare const prepareTwinfieldAdoption: import("@tanstack/start-client-co
24399
24842
  };
24400
24843
  Returns: number;
24401
24844
  };
24845
+ logistics_plan_state_for: {
24846
+ Args: {
24847
+ p_ref: string;
24848
+ };
24849
+ Returns: import("../integrations/supabase/types").Json;
24850
+ };
24402
24851
  logistics_prepare_pick_documents: {
24403
24852
  Args: {
24404
24853
  p_limit?: number;
@@ -24457,6 +24906,12 @@ export declare const prepareTwinfieldAdoption: import("@tanstack/start-client-co
24457
24906
  };
24458
24907
  Returns: import("../integrations/supabase/types").Json;
24459
24908
  };
24909
+ logistics_refresh_plan_state: {
24910
+ Args: {
24911
+ p_limit?: number;
24912
+ };
24913
+ Returns: import("../integrations/supabase/types").Json;
24914
+ };
24460
24915
  logistics_replan_all: {
24461
24916
  Args: {
24462
24917
  p_reason?: string;
@@ -24625,6 +25080,74 @@ export declare const prepareTwinfieldAdoption: import("@tanstack/start-client-co
24625
25080
  };
24626
25081
  Returns: import("../integrations/supabase/types").Json;
24627
25082
  };
25083
+ logistics_shipping_note_job_for_slip: {
25084
+ Args: {
25085
+ _slip_job_id: string;
25086
+ };
25087
+ Returns: string;
25088
+ };
25089
+ logistics_shipping_notes_wake_all: {
25090
+ Args: never;
25091
+ Returns: import("../integrations/supabase/types").Json;
25092
+ };
25093
+ logistics_slip_is_floriday: {
25094
+ Args: {
25095
+ _slip_job_id: string;
25096
+ };
25097
+ Returns: boolean;
25098
+ };
25099
+ logistics_slip_note_claim: {
25100
+ Args: {
25101
+ _lease_seconds?: number;
25102
+ _limit?: number;
25103
+ };
25104
+ Returns: {
25105
+ attempts: number;
25106
+ batch_key: string | null;
25107
+ cart_id: string | null;
25108
+ created_at: string;
25109
+ error: string | null;
25110
+ error_code: string | null;
25111
+ fulfillment_order_id: string | null;
25112
+ id: string;
25113
+ locked_until: string | null;
25114
+ next_attempt_at: string | null;
25115
+ order_id: string | null;
25116
+ order_number: string | null;
25117
+ print_job_id: string | null;
25118
+ printer_id: string | null;
25119
+ retry_class: string | null;
25120
+ slip_job_id: string;
25121
+ status: string;
25122
+ updated_at: string;
25123
+ }[];
25124
+ SetofOptions: {
25125
+ from: "*";
25126
+ to: "logistics_slip_shipping_note";
25127
+ isOneToOne: false;
25128
+ isSetofReturn: true;
25129
+ };
25130
+ };
25131
+ logistics_slip_note_finish: {
25132
+ Args: {
25133
+ _error?: string;
25134
+ _error_code?: string;
25135
+ _fulfillment_order_id?: string;
25136
+ _id: string;
25137
+ _ok: boolean;
25138
+ _print_job_id?: string;
25139
+ _status?: string;
25140
+ };
25141
+ Returns: undefined;
25142
+ };
25143
+ logistics_slip_note_keep_waiting: {
25144
+ Args: {
25145
+ _class?: string;
25146
+ _id: string;
25147
+ _reason: string;
25148
+ };
25149
+ Returns: undefined;
25150
+ };
24628
25151
  logistics_sticker_follows_slip: {
24629
25152
  Args: never;
24630
25153
  Returns: boolean;
@@ -24679,6 +25202,40 @@ export declare const prepareTwinfieldAdoption: import("@tanstack/start-client-co
24679
25202
  name: string;
24680
25203
  }[];
24681
25204
  };
25205
+ logistics_trace: {
25206
+ Args: {
25207
+ p: import("../integrations/supabase/types").Json;
25208
+ };
25209
+ Returns: string;
25210
+ };
25211
+ logistics_trace_batch: {
25212
+ Args: {
25213
+ p: import("../integrations/supabase/types").Json;
25214
+ };
25215
+ Returns: number;
25216
+ };
25217
+ logistics_trace_orders: {
25218
+ Args: {
25219
+ p_limit?: number;
25220
+ p_search?: string;
25221
+ p_since?: string;
25222
+ p_status?: string;
25223
+ };
25224
+ Returns: import("../integrations/supabase/types").Json;
25225
+ };
25226
+ logistics_trace_redact: {
25227
+ Args: {
25228
+ p: import("../integrations/supabase/types").Json;
25229
+ };
25230
+ Returns: import("../integrations/supabase/types").Json;
25231
+ };
25232
+ logistics_trace_timeline: {
25233
+ Args: {
25234
+ p_limit?: number;
25235
+ p_order_ref: string;
25236
+ };
25237
+ Returns: import("../integrations/supabase/types").Json;
25238
+ };
24682
25239
  logistics_upsert_task: {
24683
25240
  Args: {
24684
25241
  p_buffer_ref: string;
@@ -25720,6 +26277,10 @@ export declare const prepareTwinfieldAdoption: import("@tanstack/start-client-co
25720
26277
  };
25721
26278
  Returns: undefined;
25722
26279
  };
26280
+ prune_floriday_api_log: {
26281
+ Args: never;
26282
+ Returns: number;
26283
+ };
25723
26284
  quote_create_from_source: {
25724
26285
  Args: {
25725
26286
  _payload?: import("../integrations/supabase/types").Json;
@@ -26596,6 +27157,10 @@ export declare const prepareTwinfieldAdoption: import("@tanstack/start-client-co
26596
27157
  Args: never;
26597
27158
  Returns: string;
26598
27159
  };
27160
+ voorraad_cleanup_old_rows: {
27161
+ Args: never;
27162
+ Returns: import("../integrations/supabase/types").Json;
27163
+ };
26599
27164
  wake_print_queue: {
26600
27165
  Args: {
26601
27166
  _min_interval_ms?: number;
@@ -28907,6 +29472,45 @@ export declare const adoptTwinfieldCustomer: import("@tanstack/start-client-core
28907
29472
  };
28908
29473
  Relationships: [];
28909
29474
  };
29475
+ customer_product_stickers: {
29476
+ Row: {
29477
+ created_at: string;
29478
+ customer_key: string;
29479
+ file_name: string;
29480
+ file_path: string;
29481
+ file_size: number | null;
29482
+ id: string;
29483
+ mime_type: string | null;
29484
+ trade_item_key: string;
29485
+ updated_at: string;
29486
+ uploaded_by: string | null;
29487
+ };
29488
+ Insert: {
29489
+ created_at?: string;
29490
+ customer_key: string;
29491
+ file_name: string;
29492
+ file_path: string;
29493
+ file_size?: number | null;
29494
+ id?: string;
29495
+ mime_type?: string | null;
29496
+ trade_item_key: string;
29497
+ updated_at?: string;
29498
+ uploaded_by?: string | null;
29499
+ };
29500
+ Update: {
29501
+ created_at?: string;
29502
+ customer_key?: string;
29503
+ file_name?: string;
29504
+ file_path?: string;
29505
+ file_size?: number | null;
29506
+ id?: string;
29507
+ mime_type?: string | null;
29508
+ trade_item_key?: string;
29509
+ updated_at?: string;
29510
+ uploaded_by?: string | null;
29511
+ };
29512
+ Relationships: [];
29513
+ };
28910
29514
  customer_selected_assortment: {
28911
29515
  Row: {
28912
29516
  article_number: string | null;
@@ -28955,6 +29559,30 @@ export declare const adoptTwinfieldCustomer: import("@tanstack/start-client-core
28955
29559
  referencedColumns: ["id"];
28956
29560
  }];
28957
29561
  };
29562
+ customer_sticker_settings: {
29563
+ Row: {
29564
+ created_at: string;
29565
+ customer_key: string;
29566
+ height_mm: number;
29567
+ updated_at: string;
29568
+ width_mm: number;
29569
+ };
29570
+ Insert: {
29571
+ created_at?: string;
29572
+ customer_key: string;
29573
+ height_mm?: number;
29574
+ updated_at?: string;
29575
+ width_mm?: number;
29576
+ };
29577
+ Update: {
29578
+ created_at?: string;
29579
+ customer_key?: string;
29580
+ height_mm?: number;
29581
+ updated_at?: string;
29582
+ width_mm?: number;
29583
+ };
29584
+ Relationships: [];
29585
+ };
28958
29586
  customer_trade_settings: {
28959
29587
  Row: {
28960
29588
  category: string;
@@ -32285,6 +32913,102 @@ export declare const adoptTwinfieldCustomer: import("@tanstack/start-client-core
32285
32913
  referencedColumns: ["id"];
32286
32914
  }];
32287
32915
  };
32916
+ floriday_api_log: {
32917
+ Row: {
32918
+ action: string | null;
32919
+ caller: string | null;
32920
+ connection_id: string | null;
32921
+ created_at: string;
32922
+ cursor_from: number | null;
32923
+ direction: string;
32924
+ duration_ms: number | null;
32925
+ environment: string | null;
32926
+ error: string | null;
32927
+ floriday_id: string | null;
32928
+ floriday_reference: string | null;
32929
+ http_status: number;
32930
+ id: string;
32931
+ item_count: number | null;
32932
+ kind: string | null;
32933
+ local_id: string | null;
32934
+ local_reference: string | null;
32935
+ method: string;
32936
+ module: string | null;
32937
+ ok: boolean;
32938
+ path: string;
32939
+ request: import("../integrations/supabase/types").Json | null;
32940
+ resource_type: string | null;
32941
+ response: import("../integrations/supabase/types").Json | null;
32942
+ write_log_id: string | null;
32943
+ };
32944
+ Insert: {
32945
+ action?: string | null;
32946
+ caller?: string | null;
32947
+ connection_id?: string | null;
32948
+ created_at?: string;
32949
+ cursor_from?: number | null;
32950
+ direction: string;
32951
+ duration_ms?: number | null;
32952
+ environment?: string | null;
32953
+ error?: string | null;
32954
+ floriday_id?: string | null;
32955
+ floriday_reference?: string | null;
32956
+ http_status?: number;
32957
+ id?: string;
32958
+ item_count?: number | null;
32959
+ kind?: string | null;
32960
+ local_id?: string | null;
32961
+ local_reference?: string | null;
32962
+ method: string;
32963
+ module?: string | null;
32964
+ ok?: boolean;
32965
+ path: string;
32966
+ request?: import("../integrations/supabase/types").Json | null;
32967
+ resource_type?: string | null;
32968
+ response?: import("../integrations/supabase/types").Json | null;
32969
+ write_log_id?: string | null;
32970
+ };
32971
+ Update: {
32972
+ action?: string | null;
32973
+ caller?: string | null;
32974
+ connection_id?: string | null;
32975
+ created_at?: string;
32976
+ cursor_from?: number | null;
32977
+ direction?: string;
32978
+ duration_ms?: number | null;
32979
+ environment?: string | null;
32980
+ error?: string | null;
32981
+ floriday_id?: string | null;
32982
+ floriday_reference?: string | null;
32983
+ http_status?: number;
32984
+ id?: string;
32985
+ item_count?: number | null;
32986
+ kind?: string | null;
32987
+ local_id?: string | null;
32988
+ local_reference?: string | null;
32989
+ method?: string;
32990
+ module?: string | null;
32991
+ ok?: boolean;
32992
+ path?: string;
32993
+ request?: import("../integrations/supabase/types").Json | null;
32994
+ resource_type?: string | null;
32995
+ response?: import("../integrations/supabase/types").Json | null;
32996
+ write_log_id?: string | null;
32997
+ };
32998
+ Relationships: [{
32999
+ foreignKeyName: "floriday_api_log_connection_id_fkey";
33000
+ columns: ["connection_id"];
33001
+ isOneToOne: false;
33002
+ referencedRelation: "floriday_connections";
33003
+ referencedColumns: ["id"];
33004
+ }, {
33005
+ foreignKeyName: "floriday_api_log_write_log_id_fkey";
33006
+ columns: ["write_log_id"];
33007
+ isOneToOne: false;
33008
+ referencedRelation: "floriday_write_log";
33009
+ referencedColumns: ["id"];
33010
+ }];
33011
+ };
32288
33012
  floriday_auction_letters_cache: {
32289
33013
  Row: {
32290
33014
  auction_letter_code: string;
@@ -33485,6 +34209,69 @@ export declare const adoptTwinfieldCustomer: import("@tanstack/start-client-core
33485
34209
  referencedColumns: ["id"];
33486
34210
  }];
33487
34211
  };
34212
+ floriday_link_templates: {
34213
+ Row: {
34214
+ created_at: string;
34215
+ floriday_url_template: string | null;
34216
+ is_active: boolean;
34217
+ label: string;
34218
+ local_url_template: string | null;
34219
+ resource_type: string;
34220
+ updated_at: string;
34221
+ };
34222
+ Insert: {
34223
+ created_at?: string;
34224
+ floriday_url_template?: string | null;
34225
+ is_active?: boolean;
34226
+ label: string;
34227
+ local_url_template?: string | null;
34228
+ resource_type: string;
34229
+ updated_at?: string;
34230
+ };
34231
+ Update: {
34232
+ created_at?: string;
34233
+ floriday_url_template?: string | null;
34234
+ is_active?: boolean;
34235
+ label?: string;
34236
+ local_url_template?: string | null;
34237
+ resource_type?: string;
34238
+ updated_at?: string;
34239
+ };
34240
+ Relationships: [];
34241
+ };
34242
+ floriday_log_retention: {
34243
+ Row: {
34244
+ created_at: string;
34245
+ direction: string | null;
34246
+ id: string;
34247
+ keep_failed_days: number | null;
34248
+ keep_ok_days: number | null;
34249
+ note: string | null;
34250
+ resource_type: string | null;
34251
+ updated_at: string;
34252
+ };
34253
+ Insert: {
34254
+ created_at?: string;
34255
+ direction?: string | null;
34256
+ id?: string;
34257
+ keep_failed_days?: number | null;
34258
+ keep_ok_days?: number | null;
34259
+ note?: string | null;
34260
+ resource_type?: string | null;
34261
+ updated_at?: string;
34262
+ };
34263
+ Update: {
34264
+ created_at?: string;
34265
+ direction?: string | null;
34266
+ id?: string;
34267
+ keep_failed_days?: number | null;
34268
+ keep_ok_days?: number | null;
34269
+ note?: string | null;
34270
+ resource_type?: string | null;
34271
+ updated_at?: string;
34272
+ };
34273
+ Relationships: [];
34274
+ };
33488
34275
  floriday_logistic_labels_cache: {
33489
34276
  Row: {
33490
34277
  byte_size: number | null;
@@ -37610,6 +38397,69 @@ export declare const adoptTwinfieldCustomer: import("@tanstack/start-client-core
37610
38397
  };
37611
38398
  Relationships: [];
37612
38399
  };
38400
+ logistics_slip_shipping_note: {
38401
+ Row: {
38402
+ attempts: number;
38403
+ batch_key: string | null;
38404
+ cart_id: string | null;
38405
+ created_at: string;
38406
+ error: string | null;
38407
+ error_code: string | null;
38408
+ fulfillment_order_id: string | null;
38409
+ id: string;
38410
+ locked_until: string | null;
38411
+ next_attempt_at: string | null;
38412
+ order_id: string | null;
38413
+ order_number: string | null;
38414
+ print_job_id: string | null;
38415
+ printer_id: string | null;
38416
+ retry_class: string | null;
38417
+ slip_job_id: string;
38418
+ status: string;
38419
+ updated_at: string;
38420
+ };
38421
+ Insert: {
38422
+ attempts?: number;
38423
+ batch_key?: string | null;
38424
+ cart_id?: string | null;
38425
+ created_at?: string;
38426
+ error?: string | null;
38427
+ error_code?: string | null;
38428
+ fulfillment_order_id?: string | null;
38429
+ id?: string;
38430
+ locked_until?: string | null;
38431
+ next_attempt_at?: string | null;
38432
+ order_id?: string | null;
38433
+ order_number?: string | null;
38434
+ print_job_id?: string | null;
38435
+ printer_id?: string | null;
38436
+ retry_class?: string | null;
38437
+ slip_job_id: string;
38438
+ status?: string;
38439
+ updated_at?: string;
38440
+ };
38441
+ Update: {
38442
+ attempts?: number;
38443
+ batch_key?: string | null;
38444
+ cart_id?: string | null;
38445
+ created_at?: string;
38446
+ error?: string | null;
38447
+ error_code?: string | null;
38448
+ fulfillment_order_id?: string | null;
38449
+ id?: string;
38450
+ locked_until?: string | null;
38451
+ next_attempt_at?: string | null;
38452
+ order_id?: string | null;
38453
+ order_number?: string | null;
38454
+ print_job_id?: string | null;
38455
+ printer_id?: string | null;
38456
+ retry_class?: string | null;
38457
+ slip_job_id?: string;
38458
+ status?: string;
38459
+ updated_at?: string;
38460
+ };
38461
+ Relationships: [];
38462
+ };
37613
38463
  logistics_staff_planning: {
37614
38464
  Row: {
37615
38465
  created_at: string;
@@ -37961,6 +38811,111 @@ export declare const adoptTwinfieldCustomer: import("@tanstack/start-client-core
37961
38811
  };
37962
38812
  Relationships: [];
37963
38813
  };
38814
+ logistics_trace_events: {
38815
+ Row: {
38816
+ actor: string | null;
38817
+ attempts: number;
38818
+ cart_ref: string | null;
38819
+ created_at: string;
38820
+ db_action: string | null;
38821
+ db_new: import("../integrations/supabase/types").Json | null;
38822
+ db_old: import("../integrations/supabase/types").Json | null;
38823
+ db_record: string | null;
38824
+ db_table: string | null;
38825
+ decision: string | null;
38826
+ duration_ms: number | null;
38827
+ error: string | null;
38828
+ external_action: string | null;
38829
+ external_ref: string | null;
38830
+ external_response: import("../integrations/supabase/types").Json | null;
38831
+ external_status: string | null;
38832
+ external_system: string | null;
38833
+ id: string;
38834
+ input: import("../integrations/supabase/types").Json | null;
38835
+ next_attempt_at: string | null;
38836
+ order_ref: string | null;
38837
+ order_source: string | null;
38838
+ output: import("../integrations/supabase/types").Json | null;
38839
+ phase: string;
38840
+ reads: import("../integrations/supabase/types").Json | null;
38841
+ reason: string | null;
38842
+ rule: string | null;
38843
+ slip_ref: string | null;
38844
+ status: string;
38845
+ step: string;
38846
+ trace_id: string;
38847
+ values_used: import("../integrations/supabase/types").Json | null;
38848
+ };
38849
+ Insert: {
38850
+ actor?: string | null;
38851
+ attempts?: number;
38852
+ cart_ref?: string | null;
38853
+ created_at?: string;
38854
+ db_action?: string | null;
38855
+ db_new?: import("../integrations/supabase/types").Json | null;
38856
+ db_old?: import("../integrations/supabase/types").Json | null;
38857
+ db_record?: string | null;
38858
+ db_table?: string | null;
38859
+ decision?: string | null;
38860
+ duration_ms?: number | null;
38861
+ error?: string | null;
38862
+ external_action?: string | null;
38863
+ external_ref?: string | null;
38864
+ external_response?: import("../integrations/supabase/types").Json | null;
38865
+ external_status?: string | null;
38866
+ external_system?: string | null;
38867
+ id?: string;
38868
+ input?: import("../integrations/supabase/types").Json | null;
38869
+ next_attempt_at?: string | null;
38870
+ order_ref?: string | null;
38871
+ order_source?: string | null;
38872
+ output?: import("../integrations/supabase/types").Json | null;
38873
+ phase: string;
38874
+ reads?: import("../integrations/supabase/types").Json | null;
38875
+ reason?: string | null;
38876
+ rule?: string | null;
38877
+ slip_ref?: string | null;
38878
+ status: string;
38879
+ step: string;
38880
+ trace_id?: string;
38881
+ values_used?: import("../integrations/supabase/types").Json | null;
38882
+ };
38883
+ Update: {
38884
+ actor?: string | null;
38885
+ attempts?: number;
38886
+ cart_ref?: string | null;
38887
+ created_at?: string;
38888
+ db_action?: string | null;
38889
+ db_new?: import("../integrations/supabase/types").Json | null;
38890
+ db_old?: import("../integrations/supabase/types").Json | null;
38891
+ db_record?: string | null;
38892
+ db_table?: string | null;
38893
+ decision?: string | null;
38894
+ duration_ms?: number | null;
38895
+ error?: string | null;
38896
+ external_action?: string | null;
38897
+ external_ref?: string | null;
38898
+ external_response?: import("../integrations/supabase/types").Json | null;
38899
+ external_status?: string | null;
38900
+ external_system?: string | null;
38901
+ id?: string;
38902
+ input?: import("../integrations/supabase/types").Json | null;
38903
+ next_attempt_at?: string | null;
38904
+ order_ref?: string | null;
38905
+ order_source?: string | null;
38906
+ output?: import("../integrations/supabase/types").Json | null;
38907
+ phase?: string;
38908
+ reads?: import("../integrations/supabase/types").Json | null;
38909
+ reason?: string | null;
38910
+ rule?: string | null;
38911
+ slip_ref?: string | null;
38912
+ status?: string;
38913
+ step?: string;
38914
+ trace_id?: string;
38915
+ values_used?: import("../integrations/supabase/types").Json | null;
38916
+ };
38917
+ Relationships: [];
38918
+ };
37964
38919
  logistics_variables: {
37965
38920
  Row: {
37966
38921
  created_at: string;
@@ -48533,6 +49488,15 @@ export declare const adoptTwinfieldCustomer: import("@tanstack/start-client-core
48533
49488
  Args: never;
48534
49489
  Returns: boolean;
48535
49490
  };
49491
+ cancel_open_print_jobs: {
49492
+ Args: {
49493
+ _cutoff: string;
49494
+ };
49495
+ Returns: {
49496
+ extern_job_id: string;
49497
+ id: string;
49498
+ }[];
49499
+ };
48536
49500
  check_offer_product_available_stock: {
48537
49501
  Args: {
48538
49502
  p_campaign_product_id: string;
@@ -50145,6 +51109,12 @@ export declare const adoptTwinfieldCustomer: import("@tanstack/start-client-core
50145
51109
  };
50146
51110
  Returns: import("../integrations/supabase/types").Json;
50147
51111
  };
51112
+ logistics_cart_plan_status_core: {
51113
+ Args: {
51114
+ p_ref: string;
51115
+ };
51116
+ Returns: import("../integrations/supabase/types").Json;
51117
+ };
50148
51118
  logistics_cart_release_reason: {
50149
51119
  Args: {
50150
51120
  p_cart_id: string;
@@ -50207,6 +51177,10 @@ export declare const adoptTwinfieldCustomer: import("@tanstack/start-client-core
50207
51177
  unit_ref: string;
50208
51178
  }[];
50209
51179
  };
51180
+ logistics_carts_per_print: {
51181
+ Args: never;
51182
+ Returns: number;
51183
+ };
50210
51184
  logistics_check_order_allowed: {
50211
51185
  Args: {
50212
51186
  p_lines: import("../integrations/supabase/types").Json;
@@ -50573,6 +51547,12 @@ export declare const adoptTwinfieldCustomer: import("@tanstack/start-client-core
50573
51547
  };
50574
51548
  Returns: import("../integrations/supabase/types").Json;
50575
51549
  };
51550
+ logistics_ensure_shipping_notes: {
51551
+ Args: {
51552
+ p_limit?: number;
51553
+ };
51554
+ Returns: import("../integrations/supabase/types").Json;
51555
+ };
50576
51556
  logistics_fail_task: {
50577
51557
  Args: {
50578
51558
  p_error: string;
@@ -50618,6 +51598,10 @@ export declare const adoptTwinfieldCustomer: import("@tanstack/start-client-core
50618
51598
  isSetofReturn: false;
50619
51599
  };
50620
51600
  };
51601
+ logistics_fix_wrong_shipping_notes: {
51602
+ Args: never;
51603
+ Returns: import("../integrations/supabase/types").Json;
51604
+ };
50621
51605
  logistics_floriday_cart_plan: {
50622
51606
  Args: {
50623
51607
  p_order_id: string;
@@ -50645,6 +51629,10 @@ export declare const adoptTwinfieldCustomer: import("@tanstack/start-client-core
50645
51629
  revision: number;
50646
51630
  }[];
50647
51631
  };
51632
+ logistics_floriday_delivery_note_create_enabled: {
51633
+ Args: never;
51634
+ Returns: boolean;
51635
+ };
50648
51636
  logistics_floriday_finish_push: {
50649
51637
  Args: {
50650
51638
  _error?: string;
@@ -50888,6 +51876,12 @@ export declare const adoptTwinfieldCustomer: import("@tanstack/start-client-core
50888
51876
  };
50889
51877
  Returns: string;
50890
51878
  };
51879
+ logistics_payload_is_floriday: {
51880
+ Args: {
51881
+ _payload: import("../integrations/supabase/types").Json;
51882
+ };
51883
+ Returns: boolean;
51884
+ };
50891
51885
  logistics_pick_agenda: {
50892
51886
  Args: {
50893
51887
  p_from?: string;
@@ -51010,6 +52004,20 @@ export declare const adoptTwinfieldCustomer: import("@tanstack/start-client-core
51010
52004
  Args: never;
51011
52005
  Returns: undefined;
51012
52006
  };
52007
+ logistics_plan_progress: {
52008
+ Args: {
52009
+ p_refs: string[];
52010
+ };
52011
+ Returns: {
52012
+ cart_plan_ready: boolean;
52013
+ cart_plan_reason: string;
52014
+ cart_plan_released: boolean;
52015
+ plan_progress: number;
52016
+ plan_state: string;
52017
+ plan_state_since: string;
52018
+ unit_ref: string;
52019
+ }[];
52020
+ };
51013
52021
  logistics_plan_prune: {
51014
52022
  Args: never;
51015
52023
  Returns: number;
@@ -51031,6 +52039,12 @@ export declare const adoptTwinfieldCustomer: import("@tanstack/start-client-core
51031
52039
  };
51032
52040
  Returns: number;
51033
52041
  };
52042
+ logistics_plan_state_for: {
52043
+ Args: {
52044
+ p_ref: string;
52045
+ };
52046
+ Returns: import("../integrations/supabase/types").Json;
52047
+ };
51034
52048
  logistics_prepare_pick_documents: {
51035
52049
  Args: {
51036
52050
  p_limit?: number;
@@ -51089,6 +52103,12 @@ export declare const adoptTwinfieldCustomer: import("@tanstack/start-client-core
51089
52103
  };
51090
52104
  Returns: import("../integrations/supabase/types").Json;
51091
52105
  };
52106
+ logistics_refresh_plan_state: {
52107
+ Args: {
52108
+ p_limit?: number;
52109
+ };
52110
+ Returns: import("../integrations/supabase/types").Json;
52111
+ };
51092
52112
  logistics_replan_all: {
51093
52113
  Args: {
51094
52114
  p_reason?: string;
@@ -51257,6 +52277,74 @@ export declare const adoptTwinfieldCustomer: import("@tanstack/start-client-core
51257
52277
  };
51258
52278
  Returns: import("../integrations/supabase/types").Json;
51259
52279
  };
52280
+ logistics_shipping_note_job_for_slip: {
52281
+ Args: {
52282
+ _slip_job_id: string;
52283
+ };
52284
+ Returns: string;
52285
+ };
52286
+ logistics_shipping_notes_wake_all: {
52287
+ Args: never;
52288
+ Returns: import("../integrations/supabase/types").Json;
52289
+ };
52290
+ logistics_slip_is_floriday: {
52291
+ Args: {
52292
+ _slip_job_id: string;
52293
+ };
52294
+ Returns: boolean;
52295
+ };
52296
+ logistics_slip_note_claim: {
52297
+ Args: {
52298
+ _lease_seconds?: number;
52299
+ _limit?: number;
52300
+ };
52301
+ Returns: {
52302
+ attempts: number;
52303
+ batch_key: string | null;
52304
+ cart_id: string | null;
52305
+ created_at: string;
52306
+ error: string | null;
52307
+ error_code: string | null;
52308
+ fulfillment_order_id: string | null;
52309
+ id: string;
52310
+ locked_until: string | null;
52311
+ next_attempt_at: string | null;
52312
+ order_id: string | null;
52313
+ order_number: string | null;
52314
+ print_job_id: string | null;
52315
+ printer_id: string | null;
52316
+ retry_class: string | null;
52317
+ slip_job_id: string;
52318
+ status: string;
52319
+ updated_at: string;
52320
+ }[];
52321
+ SetofOptions: {
52322
+ from: "*";
52323
+ to: "logistics_slip_shipping_note";
52324
+ isOneToOne: false;
52325
+ isSetofReturn: true;
52326
+ };
52327
+ };
52328
+ logistics_slip_note_finish: {
52329
+ Args: {
52330
+ _error?: string;
52331
+ _error_code?: string;
52332
+ _fulfillment_order_id?: string;
52333
+ _id: string;
52334
+ _ok: boolean;
52335
+ _print_job_id?: string;
52336
+ _status?: string;
52337
+ };
52338
+ Returns: undefined;
52339
+ };
52340
+ logistics_slip_note_keep_waiting: {
52341
+ Args: {
52342
+ _class?: string;
52343
+ _id: string;
52344
+ _reason: string;
52345
+ };
52346
+ Returns: undefined;
52347
+ };
51260
52348
  logistics_sticker_follows_slip: {
51261
52349
  Args: never;
51262
52350
  Returns: boolean;
@@ -51311,6 +52399,40 @@ export declare const adoptTwinfieldCustomer: import("@tanstack/start-client-core
51311
52399
  name: string;
51312
52400
  }[];
51313
52401
  };
52402
+ logistics_trace: {
52403
+ Args: {
52404
+ p: import("../integrations/supabase/types").Json;
52405
+ };
52406
+ Returns: string;
52407
+ };
52408
+ logistics_trace_batch: {
52409
+ Args: {
52410
+ p: import("../integrations/supabase/types").Json;
52411
+ };
52412
+ Returns: number;
52413
+ };
52414
+ logistics_trace_orders: {
52415
+ Args: {
52416
+ p_limit?: number;
52417
+ p_search?: string;
52418
+ p_since?: string;
52419
+ p_status?: string;
52420
+ };
52421
+ Returns: import("../integrations/supabase/types").Json;
52422
+ };
52423
+ logistics_trace_redact: {
52424
+ Args: {
52425
+ p: import("../integrations/supabase/types").Json;
52426
+ };
52427
+ Returns: import("../integrations/supabase/types").Json;
52428
+ };
52429
+ logistics_trace_timeline: {
52430
+ Args: {
52431
+ p_limit?: number;
52432
+ p_order_ref: string;
52433
+ };
52434
+ Returns: import("../integrations/supabase/types").Json;
52435
+ };
51314
52436
  logistics_upsert_task: {
51315
52437
  Args: {
51316
52438
  p_buffer_ref: string;
@@ -52352,6 +53474,10 @@ export declare const adoptTwinfieldCustomer: import("@tanstack/start-client-core
52352
53474
  };
52353
53475
  Returns: undefined;
52354
53476
  };
53477
+ prune_floriday_api_log: {
53478
+ Args: never;
53479
+ Returns: number;
53480
+ };
52355
53481
  quote_create_from_source: {
52356
53482
  Args: {
52357
53483
  _payload?: import("../integrations/supabase/types").Json;
@@ -53228,6 +54354,10 @@ export declare const adoptTwinfieldCustomer: import("@tanstack/start-client-core
53228
54354
  Args: never;
53229
54355
  Returns: string;
53230
54356
  };
54357
+ voorraad_cleanup_old_rows: {
54358
+ Args: never;
54359
+ Returns: import("../integrations/supabase/types").Json;
54360
+ };
53231
54361
  wake_print_queue: {
53232
54362
  Args: {
53233
54363
  _min_interval_ms?: number;