@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
@@ -2278,6 +2278,45 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
2278
2278
  };
2279
2279
  Relationships: [];
2280
2280
  };
2281
+ customer_product_stickers: {
2282
+ Row: {
2283
+ created_at: string;
2284
+ customer_key: string;
2285
+ file_name: string;
2286
+ file_path: string;
2287
+ file_size: number | null;
2288
+ id: string;
2289
+ mime_type: string | null;
2290
+ trade_item_key: string;
2291
+ updated_at: string;
2292
+ uploaded_by: string | null;
2293
+ };
2294
+ Insert: {
2295
+ created_at?: string;
2296
+ customer_key: string;
2297
+ file_name: string;
2298
+ file_path: string;
2299
+ file_size?: number | null;
2300
+ id?: string;
2301
+ mime_type?: string | null;
2302
+ trade_item_key: string;
2303
+ updated_at?: string;
2304
+ uploaded_by?: string | null;
2305
+ };
2306
+ Update: {
2307
+ created_at?: string;
2308
+ customer_key?: string;
2309
+ file_name?: string;
2310
+ file_path?: string;
2311
+ file_size?: number | null;
2312
+ id?: string;
2313
+ mime_type?: string | null;
2314
+ trade_item_key?: string;
2315
+ updated_at?: string;
2316
+ uploaded_by?: string | null;
2317
+ };
2318
+ Relationships: [];
2319
+ };
2281
2320
  customer_selected_assortment: {
2282
2321
  Row: {
2283
2322
  article_number: string | null;
@@ -2326,6 +2365,30 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
2326
2365
  referencedColumns: ["id"];
2327
2366
  }];
2328
2367
  };
2368
+ customer_sticker_settings: {
2369
+ Row: {
2370
+ created_at: string;
2371
+ customer_key: string;
2372
+ height_mm: number;
2373
+ updated_at: string;
2374
+ width_mm: number;
2375
+ };
2376
+ Insert: {
2377
+ created_at?: string;
2378
+ customer_key: string;
2379
+ height_mm?: number;
2380
+ updated_at?: string;
2381
+ width_mm?: number;
2382
+ };
2383
+ Update: {
2384
+ created_at?: string;
2385
+ customer_key?: string;
2386
+ height_mm?: number;
2387
+ updated_at?: string;
2388
+ width_mm?: number;
2389
+ };
2390
+ Relationships: [];
2391
+ };
2329
2392
  customer_trade_settings: {
2330
2393
  Row: {
2331
2394
  category: string;
@@ -5656,6 +5719,102 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
5656
5719
  referencedColumns: ["id"];
5657
5720
  }];
5658
5721
  };
5722
+ floriday_api_log: {
5723
+ Row: {
5724
+ action: string | null;
5725
+ caller: string | null;
5726
+ connection_id: string | null;
5727
+ created_at: string;
5728
+ cursor_from: number | null;
5729
+ direction: string;
5730
+ duration_ms: number | null;
5731
+ environment: string | null;
5732
+ error: string | null;
5733
+ floriday_id: string | null;
5734
+ floriday_reference: string | null;
5735
+ http_status: number;
5736
+ id: string;
5737
+ item_count: number | null;
5738
+ kind: string | null;
5739
+ local_id: string | null;
5740
+ local_reference: string | null;
5741
+ method: string;
5742
+ module: string | null;
5743
+ ok: boolean;
5744
+ path: string;
5745
+ request: import("../integrations/supabase/types").Json | null;
5746
+ resource_type: string | null;
5747
+ response: import("../integrations/supabase/types").Json | null;
5748
+ write_log_id: string | null;
5749
+ };
5750
+ Insert: {
5751
+ action?: string | null;
5752
+ caller?: string | null;
5753
+ connection_id?: string | null;
5754
+ created_at?: string;
5755
+ cursor_from?: number | null;
5756
+ direction: string;
5757
+ duration_ms?: number | null;
5758
+ environment?: string | null;
5759
+ error?: string | null;
5760
+ floriday_id?: string | null;
5761
+ floriday_reference?: string | null;
5762
+ http_status?: number;
5763
+ id?: string;
5764
+ item_count?: number | null;
5765
+ kind?: string | null;
5766
+ local_id?: string | null;
5767
+ local_reference?: string | null;
5768
+ method: string;
5769
+ module?: string | null;
5770
+ ok?: boolean;
5771
+ path: string;
5772
+ request?: import("../integrations/supabase/types").Json | null;
5773
+ resource_type?: string | null;
5774
+ response?: import("../integrations/supabase/types").Json | null;
5775
+ write_log_id?: string | null;
5776
+ };
5777
+ Update: {
5778
+ action?: string | null;
5779
+ caller?: string | null;
5780
+ connection_id?: string | null;
5781
+ created_at?: string;
5782
+ cursor_from?: number | null;
5783
+ direction?: string;
5784
+ duration_ms?: number | null;
5785
+ environment?: string | null;
5786
+ error?: string | null;
5787
+ floriday_id?: string | null;
5788
+ floriday_reference?: string | null;
5789
+ http_status?: number;
5790
+ id?: string;
5791
+ item_count?: number | null;
5792
+ kind?: string | null;
5793
+ local_id?: string | null;
5794
+ local_reference?: string | null;
5795
+ method?: string;
5796
+ module?: string | null;
5797
+ ok?: boolean;
5798
+ path?: string;
5799
+ request?: import("../integrations/supabase/types").Json | null;
5800
+ resource_type?: string | null;
5801
+ response?: import("../integrations/supabase/types").Json | null;
5802
+ write_log_id?: string | null;
5803
+ };
5804
+ Relationships: [{
5805
+ foreignKeyName: "floriday_api_log_connection_id_fkey";
5806
+ columns: ["connection_id"];
5807
+ isOneToOne: false;
5808
+ referencedRelation: "floriday_connections";
5809
+ referencedColumns: ["id"];
5810
+ }, {
5811
+ foreignKeyName: "floriday_api_log_write_log_id_fkey";
5812
+ columns: ["write_log_id"];
5813
+ isOneToOne: false;
5814
+ referencedRelation: "floriday_write_log";
5815
+ referencedColumns: ["id"];
5816
+ }];
5817
+ };
5659
5818
  floriday_auction_letters_cache: {
5660
5819
  Row: {
5661
5820
  auction_letter_code: string;
@@ -6856,6 +7015,69 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
6856
7015
  referencedColumns: ["id"];
6857
7016
  }];
6858
7017
  };
7018
+ floriday_link_templates: {
7019
+ Row: {
7020
+ created_at: string;
7021
+ floriday_url_template: string | null;
7022
+ is_active: boolean;
7023
+ label: string;
7024
+ local_url_template: string | null;
7025
+ resource_type: string;
7026
+ updated_at: string;
7027
+ };
7028
+ Insert: {
7029
+ created_at?: string;
7030
+ floriday_url_template?: string | null;
7031
+ is_active?: boolean;
7032
+ label: string;
7033
+ local_url_template?: string | null;
7034
+ resource_type: string;
7035
+ updated_at?: string;
7036
+ };
7037
+ Update: {
7038
+ created_at?: string;
7039
+ floriday_url_template?: string | null;
7040
+ is_active?: boolean;
7041
+ label?: string;
7042
+ local_url_template?: string | null;
7043
+ resource_type?: string;
7044
+ updated_at?: string;
7045
+ };
7046
+ Relationships: [];
7047
+ };
7048
+ floriday_log_retention: {
7049
+ Row: {
7050
+ created_at: string;
7051
+ direction: string | null;
7052
+ id: string;
7053
+ keep_failed_days: number | null;
7054
+ keep_ok_days: number | null;
7055
+ note: string | null;
7056
+ resource_type: string | null;
7057
+ updated_at: string;
7058
+ };
7059
+ Insert: {
7060
+ created_at?: string;
7061
+ direction?: string | null;
7062
+ id?: string;
7063
+ keep_failed_days?: number | null;
7064
+ keep_ok_days?: number | null;
7065
+ note?: string | null;
7066
+ resource_type?: string | null;
7067
+ updated_at?: string;
7068
+ };
7069
+ Update: {
7070
+ created_at?: string;
7071
+ direction?: string | null;
7072
+ id?: string;
7073
+ keep_failed_days?: number | null;
7074
+ keep_ok_days?: number | null;
7075
+ note?: string | null;
7076
+ resource_type?: string | null;
7077
+ updated_at?: string;
7078
+ };
7079
+ Relationships: [];
7080
+ };
6859
7081
  floriday_logistic_labels_cache: {
6860
7082
  Row: {
6861
7083
  byte_size: number | null;
@@ -10981,6 +11203,69 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
10981
11203
  };
10982
11204
  Relationships: [];
10983
11205
  };
11206
+ logistics_slip_shipping_note: {
11207
+ Row: {
11208
+ attempts: number;
11209
+ batch_key: string | null;
11210
+ cart_id: string | null;
11211
+ created_at: string;
11212
+ error: string | null;
11213
+ error_code: string | null;
11214
+ fulfillment_order_id: string | null;
11215
+ id: string;
11216
+ locked_until: string | null;
11217
+ next_attempt_at: string | null;
11218
+ order_id: string | null;
11219
+ order_number: string | null;
11220
+ print_job_id: string | null;
11221
+ printer_id: string | null;
11222
+ retry_class: string | null;
11223
+ slip_job_id: string;
11224
+ status: string;
11225
+ updated_at: string;
11226
+ };
11227
+ Insert: {
11228
+ attempts?: number;
11229
+ batch_key?: string | null;
11230
+ cart_id?: string | null;
11231
+ created_at?: string;
11232
+ error?: string | null;
11233
+ error_code?: string | null;
11234
+ fulfillment_order_id?: string | null;
11235
+ id?: string;
11236
+ locked_until?: string | null;
11237
+ next_attempt_at?: string | null;
11238
+ order_id?: string | null;
11239
+ order_number?: string | null;
11240
+ print_job_id?: string | null;
11241
+ printer_id?: string | null;
11242
+ retry_class?: string | null;
11243
+ slip_job_id: string;
11244
+ status?: string;
11245
+ updated_at?: string;
11246
+ };
11247
+ Update: {
11248
+ attempts?: number;
11249
+ batch_key?: string | null;
11250
+ cart_id?: string | null;
11251
+ created_at?: string;
11252
+ error?: string | null;
11253
+ error_code?: string | null;
11254
+ fulfillment_order_id?: string | null;
11255
+ id?: string;
11256
+ locked_until?: string | null;
11257
+ next_attempt_at?: string | null;
11258
+ order_id?: string | null;
11259
+ order_number?: string | null;
11260
+ print_job_id?: string | null;
11261
+ printer_id?: string | null;
11262
+ retry_class?: string | null;
11263
+ slip_job_id?: string;
11264
+ status?: string;
11265
+ updated_at?: string;
11266
+ };
11267
+ Relationships: [];
11268
+ };
10984
11269
  logistics_staff_planning: {
10985
11270
  Row: {
10986
11271
  created_at: string;
@@ -11332,6 +11617,111 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
11332
11617
  };
11333
11618
  Relationships: [];
11334
11619
  };
11620
+ logistics_trace_events: {
11621
+ Row: {
11622
+ actor: string | null;
11623
+ attempts: number;
11624
+ cart_ref: string | null;
11625
+ created_at: string;
11626
+ db_action: string | null;
11627
+ db_new: import("../integrations/supabase/types").Json | null;
11628
+ db_old: import("../integrations/supabase/types").Json | null;
11629
+ db_record: string | null;
11630
+ db_table: string | null;
11631
+ decision: string | null;
11632
+ duration_ms: number | null;
11633
+ error: string | null;
11634
+ external_action: string | null;
11635
+ external_ref: string | null;
11636
+ external_response: import("../integrations/supabase/types").Json | null;
11637
+ external_status: string | null;
11638
+ external_system: string | null;
11639
+ id: string;
11640
+ input: import("../integrations/supabase/types").Json | null;
11641
+ next_attempt_at: string | null;
11642
+ order_ref: string | null;
11643
+ order_source: string | null;
11644
+ output: import("../integrations/supabase/types").Json | null;
11645
+ phase: string;
11646
+ reads: import("../integrations/supabase/types").Json | null;
11647
+ reason: string | null;
11648
+ rule: string | null;
11649
+ slip_ref: string | null;
11650
+ status: string;
11651
+ step: string;
11652
+ trace_id: string;
11653
+ values_used: import("../integrations/supabase/types").Json | null;
11654
+ };
11655
+ Insert: {
11656
+ actor?: string | null;
11657
+ attempts?: number;
11658
+ cart_ref?: string | null;
11659
+ created_at?: string;
11660
+ db_action?: string | null;
11661
+ db_new?: import("../integrations/supabase/types").Json | null;
11662
+ db_old?: import("../integrations/supabase/types").Json | null;
11663
+ db_record?: string | null;
11664
+ db_table?: string | null;
11665
+ decision?: string | null;
11666
+ duration_ms?: number | null;
11667
+ error?: string | null;
11668
+ external_action?: string | null;
11669
+ external_ref?: string | null;
11670
+ external_response?: import("../integrations/supabase/types").Json | null;
11671
+ external_status?: string | null;
11672
+ external_system?: string | null;
11673
+ id?: string;
11674
+ input?: import("../integrations/supabase/types").Json | null;
11675
+ next_attempt_at?: string | null;
11676
+ order_ref?: string | null;
11677
+ order_source?: string | null;
11678
+ output?: import("../integrations/supabase/types").Json | null;
11679
+ phase: string;
11680
+ reads?: import("../integrations/supabase/types").Json | null;
11681
+ reason?: string | null;
11682
+ rule?: string | null;
11683
+ slip_ref?: string | null;
11684
+ status: string;
11685
+ step: string;
11686
+ trace_id?: string;
11687
+ values_used?: import("../integrations/supabase/types").Json | null;
11688
+ };
11689
+ Update: {
11690
+ actor?: string | null;
11691
+ attempts?: number;
11692
+ cart_ref?: string | null;
11693
+ created_at?: string;
11694
+ db_action?: string | null;
11695
+ db_new?: import("../integrations/supabase/types").Json | null;
11696
+ db_old?: import("../integrations/supabase/types").Json | null;
11697
+ db_record?: string | null;
11698
+ db_table?: string | null;
11699
+ decision?: string | null;
11700
+ duration_ms?: number | null;
11701
+ error?: string | null;
11702
+ external_action?: string | null;
11703
+ external_ref?: string | null;
11704
+ external_response?: import("../integrations/supabase/types").Json | null;
11705
+ external_status?: string | null;
11706
+ external_system?: string | null;
11707
+ id?: string;
11708
+ input?: import("../integrations/supabase/types").Json | null;
11709
+ next_attempt_at?: string | null;
11710
+ order_ref?: string | null;
11711
+ order_source?: string | null;
11712
+ output?: import("../integrations/supabase/types").Json | null;
11713
+ phase?: string;
11714
+ reads?: import("../integrations/supabase/types").Json | null;
11715
+ reason?: string | null;
11716
+ rule?: string | null;
11717
+ slip_ref?: string | null;
11718
+ status?: string;
11719
+ step?: string;
11720
+ trace_id?: string;
11721
+ values_used?: import("../integrations/supabase/types").Json | null;
11722
+ };
11723
+ Relationships: [];
11724
+ };
11335
11725
  logistics_variables: {
11336
11726
  Row: {
11337
11727
  created_at: string;
@@ -21904,6 +22294,15 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
21904
22294
  Args: never;
21905
22295
  Returns: boolean;
21906
22296
  };
22297
+ cancel_open_print_jobs: {
22298
+ Args: {
22299
+ _cutoff: string;
22300
+ };
22301
+ Returns: {
22302
+ extern_job_id: string;
22303
+ id: string;
22304
+ }[];
22305
+ };
21907
22306
  check_offer_product_available_stock: {
21908
22307
  Args: {
21909
22308
  p_campaign_product_id: string;
@@ -23516,6 +23915,12 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
23516
23915
  };
23517
23916
  Returns: import("../integrations/supabase/types").Json;
23518
23917
  };
23918
+ logistics_cart_plan_status_core: {
23919
+ Args: {
23920
+ p_ref: string;
23921
+ };
23922
+ Returns: import("../integrations/supabase/types").Json;
23923
+ };
23519
23924
  logistics_cart_release_reason: {
23520
23925
  Args: {
23521
23926
  p_cart_id: string;
@@ -23578,6 +23983,10 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
23578
23983
  unit_ref: string;
23579
23984
  }[];
23580
23985
  };
23986
+ logistics_carts_per_print: {
23987
+ Args: never;
23988
+ Returns: number;
23989
+ };
23581
23990
  logistics_check_order_allowed: {
23582
23991
  Args: {
23583
23992
  p_lines: import("../integrations/supabase/types").Json;
@@ -23944,6 +24353,12 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
23944
24353
  };
23945
24354
  Returns: import("../integrations/supabase/types").Json;
23946
24355
  };
24356
+ logistics_ensure_shipping_notes: {
24357
+ Args: {
24358
+ p_limit?: number;
24359
+ };
24360
+ Returns: import("../integrations/supabase/types").Json;
24361
+ };
23947
24362
  logistics_fail_task: {
23948
24363
  Args: {
23949
24364
  p_error: string;
@@ -23989,6 +24404,10 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
23989
24404
  isSetofReturn: false;
23990
24405
  };
23991
24406
  };
24407
+ logistics_fix_wrong_shipping_notes: {
24408
+ Args: never;
24409
+ Returns: import("../integrations/supabase/types").Json;
24410
+ };
23992
24411
  logistics_floriday_cart_plan: {
23993
24412
  Args: {
23994
24413
  p_order_id: string;
@@ -24016,6 +24435,10 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
24016
24435
  revision: number;
24017
24436
  }[];
24018
24437
  };
24438
+ logistics_floriday_delivery_note_create_enabled: {
24439
+ Args: never;
24440
+ Returns: boolean;
24441
+ };
24019
24442
  logistics_floriday_finish_push: {
24020
24443
  Args: {
24021
24444
  _error?: string;
@@ -24259,6 +24682,12 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
24259
24682
  };
24260
24683
  Returns: string;
24261
24684
  };
24685
+ logistics_payload_is_floriday: {
24686
+ Args: {
24687
+ _payload: import("../integrations/supabase/types").Json;
24688
+ };
24689
+ Returns: boolean;
24690
+ };
24262
24691
  logistics_pick_agenda: {
24263
24692
  Args: {
24264
24693
  p_from?: string;
@@ -24381,6 +24810,20 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
24381
24810
  Args: never;
24382
24811
  Returns: undefined;
24383
24812
  };
24813
+ logistics_plan_progress: {
24814
+ Args: {
24815
+ p_refs: string[];
24816
+ };
24817
+ Returns: {
24818
+ cart_plan_ready: boolean;
24819
+ cart_plan_reason: string;
24820
+ cart_plan_released: boolean;
24821
+ plan_progress: number;
24822
+ plan_state: string;
24823
+ plan_state_since: string;
24824
+ unit_ref: string;
24825
+ }[];
24826
+ };
24384
24827
  logistics_plan_prune: {
24385
24828
  Args: never;
24386
24829
  Returns: number;
@@ -24402,6 +24845,12 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
24402
24845
  };
24403
24846
  Returns: number;
24404
24847
  };
24848
+ logistics_plan_state_for: {
24849
+ Args: {
24850
+ p_ref: string;
24851
+ };
24852
+ Returns: import("../integrations/supabase/types").Json;
24853
+ };
24405
24854
  logistics_prepare_pick_documents: {
24406
24855
  Args: {
24407
24856
  p_limit?: number;
@@ -24460,6 +24909,12 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
24460
24909
  };
24461
24910
  Returns: import("../integrations/supabase/types").Json;
24462
24911
  };
24912
+ logistics_refresh_plan_state: {
24913
+ Args: {
24914
+ p_limit?: number;
24915
+ };
24916
+ Returns: import("../integrations/supabase/types").Json;
24917
+ };
24463
24918
  logistics_replan_all: {
24464
24919
  Args: {
24465
24920
  p_reason?: string;
@@ -24628,6 +25083,74 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
24628
25083
  };
24629
25084
  Returns: import("../integrations/supabase/types").Json;
24630
25085
  };
25086
+ logistics_shipping_note_job_for_slip: {
25087
+ Args: {
25088
+ _slip_job_id: string;
25089
+ };
25090
+ Returns: string;
25091
+ };
25092
+ logistics_shipping_notes_wake_all: {
25093
+ Args: never;
25094
+ Returns: import("../integrations/supabase/types").Json;
25095
+ };
25096
+ logistics_slip_is_floriday: {
25097
+ Args: {
25098
+ _slip_job_id: string;
25099
+ };
25100
+ Returns: boolean;
25101
+ };
25102
+ logistics_slip_note_claim: {
25103
+ Args: {
25104
+ _lease_seconds?: number;
25105
+ _limit?: number;
25106
+ };
25107
+ Returns: {
25108
+ attempts: number;
25109
+ batch_key: string | null;
25110
+ cart_id: string | null;
25111
+ created_at: string;
25112
+ error: string | null;
25113
+ error_code: string | null;
25114
+ fulfillment_order_id: string | null;
25115
+ id: string;
25116
+ locked_until: string | null;
25117
+ next_attempt_at: string | null;
25118
+ order_id: string | null;
25119
+ order_number: string | null;
25120
+ print_job_id: string | null;
25121
+ printer_id: string | null;
25122
+ retry_class: string | null;
25123
+ slip_job_id: string;
25124
+ status: string;
25125
+ updated_at: string;
25126
+ }[];
25127
+ SetofOptions: {
25128
+ from: "*";
25129
+ to: "logistics_slip_shipping_note";
25130
+ isOneToOne: false;
25131
+ isSetofReturn: true;
25132
+ };
25133
+ };
25134
+ logistics_slip_note_finish: {
25135
+ Args: {
25136
+ _error?: string;
25137
+ _error_code?: string;
25138
+ _fulfillment_order_id?: string;
25139
+ _id: string;
25140
+ _ok: boolean;
25141
+ _print_job_id?: string;
25142
+ _status?: string;
25143
+ };
25144
+ Returns: undefined;
25145
+ };
25146
+ logistics_slip_note_keep_waiting: {
25147
+ Args: {
25148
+ _class?: string;
25149
+ _id: string;
25150
+ _reason: string;
25151
+ };
25152
+ Returns: undefined;
25153
+ };
24631
25154
  logistics_sticker_follows_slip: {
24632
25155
  Args: never;
24633
25156
  Returns: boolean;
@@ -24682,6 +25205,40 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
24682
25205
  name: string;
24683
25206
  }[];
24684
25207
  };
25208
+ logistics_trace: {
25209
+ Args: {
25210
+ p: import("../integrations/supabase/types").Json;
25211
+ };
25212
+ Returns: string;
25213
+ };
25214
+ logistics_trace_batch: {
25215
+ Args: {
25216
+ p: import("../integrations/supabase/types").Json;
25217
+ };
25218
+ Returns: number;
25219
+ };
25220
+ logistics_trace_orders: {
25221
+ Args: {
25222
+ p_limit?: number;
25223
+ p_search?: string;
25224
+ p_since?: string;
25225
+ p_status?: string;
25226
+ };
25227
+ Returns: import("../integrations/supabase/types").Json;
25228
+ };
25229
+ logistics_trace_redact: {
25230
+ Args: {
25231
+ p: import("../integrations/supabase/types").Json;
25232
+ };
25233
+ Returns: import("../integrations/supabase/types").Json;
25234
+ };
25235
+ logistics_trace_timeline: {
25236
+ Args: {
25237
+ p_limit?: number;
25238
+ p_order_ref: string;
25239
+ };
25240
+ Returns: import("../integrations/supabase/types").Json;
25241
+ };
24685
25242
  logistics_upsert_task: {
24686
25243
  Args: {
24687
25244
  p_buffer_ref: string;
@@ -25723,6 +26280,10 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
25723
26280
  };
25724
26281
  Returns: undefined;
25725
26282
  };
26283
+ prune_floriday_api_log: {
26284
+ Args: never;
26285
+ Returns: number;
26286
+ };
25726
26287
  quote_create_from_source: {
25727
26288
  Args: {
25728
26289
  _payload?: import("../integrations/supabase/types").Json;
@@ -26599,6 +27160,10 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
26599
27160
  Args: never;
26600
27161
  Returns: string;
26601
27162
  };
27163
+ voorraad_cleanup_old_rows: {
27164
+ Args: never;
27165
+ Returns: import("../integrations/supabase/types").Json;
27166
+ };
26602
27167
  wake_print_queue: {
26603
27168
  Args: {
26604
27169
  _min_interval_ms?: number;
@@ -28896,6 +29461,45 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
28896
29461
  };
28897
29462
  Relationships: [];
28898
29463
  };
29464
+ customer_product_stickers: {
29465
+ Row: {
29466
+ created_at: string;
29467
+ customer_key: string;
29468
+ file_name: string;
29469
+ file_path: string;
29470
+ file_size: number | null;
29471
+ id: string;
29472
+ mime_type: string | null;
29473
+ trade_item_key: string;
29474
+ updated_at: string;
29475
+ uploaded_by: string | null;
29476
+ };
29477
+ Insert: {
29478
+ created_at?: string;
29479
+ customer_key: string;
29480
+ file_name: string;
29481
+ file_path: string;
29482
+ file_size?: number | null;
29483
+ id?: string;
29484
+ mime_type?: string | null;
29485
+ trade_item_key: string;
29486
+ updated_at?: string;
29487
+ uploaded_by?: string | null;
29488
+ };
29489
+ Update: {
29490
+ created_at?: string;
29491
+ customer_key?: string;
29492
+ file_name?: string;
29493
+ file_path?: string;
29494
+ file_size?: number | null;
29495
+ id?: string;
29496
+ mime_type?: string | null;
29497
+ trade_item_key?: string;
29498
+ updated_at?: string;
29499
+ uploaded_by?: string | null;
29500
+ };
29501
+ Relationships: [];
29502
+ };
28899
29503
  customer_selected_assortment: {
28900
29504
  Row: {
28901
29505
  article_number: string | null;
@@ -28944,6 +29548,30 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
28944
29548
  referencedColumns: ["id"];
28945
29549
  }];
28946
29550
  };
29551
+ customer_sticker_settings: {
29552
+ Row: {
29553
+ created_at: string;
29554
+ customer_key: string;
29555
+ height_mm: number;
29556
+ updated_at: string;
29557
+ width_mm: number;
29558
+ };
29559
+ Insert: {
29560
+ created_at?: string;
29561
+ customer_key: string;
29562
+ height_mm?: number;
29563
+ updated_at?: string;
29564
+ width_mm?: number;
29565
+ };
29566
+ Update: {
29567
+ created_at?: string;
29568
+ customer_key?: string;
29569
+ height_mm?: number;
29570
+ updated_at?: string;
29571
+ width_mm?: number;
29572
+ };
29573
+ Relationships: [];
29574
+ };
28947
29575
  customer_trade_settings: {
28948
29576
  Row: {
28949
29577
  category: string;
@@ -32274,6 +32902,102 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
32274
32902
  referencedColumns: ["id"];
32275
32903
  }];
32276
32904
  };
32905
+ floriday_api_log: {
32906
+ Row: {
32907
+ action: string | null;
32908
+ caller: string | null;
32909
+ connection_id: string | null;
32910
+ created_at: string;
32911
+ cursor_from: number | null;
32912
+ direction: string;
32913
+ duration_ms: number | null;
32914
+ environment: string | null;
32915
+ error: string | null;
32916
+ floriday_id: string | null;
32917
+ floriday_reference: string | null;
32918
+ http_status: number;
32919
+ id: string;
32920
+ item_count: number | null;
32921
+ kind: string | null;
32922
+ local_id: string | null;
32923
+ local_reference: string | null;
32924
+ method: string;
32925
+ module: string | null;
32926
+ ok: boolean;
32927
+ path: string;
32928
+ request: import("../integrations/supabase/types").Json | null;
32929
+ resource_type: string | null;
32930
+ response: import("../integrations/supabase/types").Json | null;
32931
+ write_log_id: string | null;
32932
+ };
32933
+ Insert: {
32934
+ action?: string | null;
32935
+ caller?: string | null;
32936
+ connection_id?: string | null;
32937
+ created_at?: string;
32938
+ cursor_from?: number | null;
32939
+ direction: string;
32940
+ duration_ms?: number | null;
32941
+ environment?: string | null;
32942
+ error?: string | null;
32943
+ floriday_id?: string | null;
32944
+ floriday_reference?: string | null;
32945
+ http_status?: number;
32946
+ id?: string;
32947
+ item_count?: number | null;
32948
+ kind?: string | null;
32949
+ local_id?: string | null;
32950
+ local_reference?: string | null;
32951
+ method: string;
32952
+ module?: string | null;
32953
+ ok?: boolean;
32954
+ path: string;
32955
+ request?: import("../integrations/supabase/types").Json | null;
32956
+ resource_type?: string | null;
32957
+ response?: import("../integrations/supabase/types").Json | null;
32958
+ write_log_id?: string | null;
32959
+ };
32960
+ Update: {
32961
+ action?: string | null;
32962
+ caller?: string | null;
32963
+ connection_id?: string | null;
32964
+ created_at?: string;
32965
+ cursor_from?: number | null;
32966
+ direction?: string;
32967
+ duration_ms?: number | null;
32968
+ environment?: string | null;
32969
+ error?: string | null;
32970
+ floriday_id?: string | null;
32971
+ floriday_reference?: string | null;
32972
+ http_status?: number;
32973
+ id?: string;
32974
+ item_count?: number | null;
32975
+ kind?: string | null;
32976
+ local_id?: string | null;
32977
+ local_reference?: string | null;
32978
+ method?: string;
32979
+ module?: string | null;
32980
+ ok?: boolean;
32981
+ path?: string;
32982
+ request?: import("../integrations/supabase/types").Json | null;
32983
+ resource_type?: string | null;
32984
+ response?: import("../integrations/supabase/types").Json | null;
32985
+ write_log_id?: string | null;
32986
+ };
32987
+ Relationships: [{
32988
+ foreignKeyName: "floriday_api_log_connection_id_fkey";
32989
+ columns: ["connection_id"];
32990
+ isOneToOne: false;
32991
+ referencedRelation: "floriday_connections";
32992
+ referencedColumns: ["id"];
32993
+ }, {
32994
+ foreignKeyName: "floriday_api_log_write_log_id_fkey";
32995
+ columns: ["write_log_id"];
32996
+ isOneToOne: false;
32997
+ referencedRelation: "floriday_write_log";
32998
+ referencedColumns: ["id"];
32999
+ }];
33000
+ };
32277
33001
  floriday_auction_letters_cache: {
32278
33002
  Row: {
32279
33003
  auction_letter_code: string;
@@ -33474,6 +34198,69 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
33474
34198
  referencedColumns: ["id"];
33475
34199
  }];
33476
34200
  };
34201
+ floriday_link_templates: {
34202
+ Row: {
34203
+ created_at: string;
34204
+ floriday_url_template: string | null;
34205
+ is_active: boolean;
34206
+ label: string;
34207
+ local_url_template: string | null;
34208
+ resource_type: string;
34209
+ updated_at: string;
34210
+ };
34211
+ Insert: {
34212
+ created_at?: string;
34213
+ floriday_url_template?: string | null;
34214
+ is_active?: boolean;
34215
+ label: string;
34216
+ local_url_template?: string | null;
34217
+ resource_type: string;
34218
+ updated_at?: string;
34219
+ };
34220
+ Update: {
34221
+ created_at?: string;
34222
+ floriday_url_template?: string | null;
34223
+ is_active?: boolean;
34224
+ label?: string;
34225
+ local_url_template?: string | null;
34226
+ resource_type?: string;
34227
+ updated_at?: string;
34228
+ };
34229
+ Relationships: [];
34230
+ };
34231
+ floriday_log_retention: {
34232
+ Row: {
34233
+ created_at: string;
34234
+ direction: string | null;
34235
+ id: string;
34236
+ keep_failed_days: number | null;
34237
+ keep_ok_days: number | null;
34238
+ note: string | null;
34239
+ resource_type: string | null;
34240
+ updated_at: string;
34241
+ };
34242
+ Insert: {
34243
+ created_at?: string;
34244
+ direction?: string | null;
34245
+ id?: string;
34246
+ keep_failed_days?: number | null;
34247
+ keep_ok_days?: number | null;
34248
+ note?: string | null;
34249
+ resource_type?: string | null;
34250
+ updated_at?: string;
34251
+ };
34252
+ Update: {
34253
+ created_at?: string;
34254
+ direction?: string | null;
34255
+ id?: string;
34256
+ keep_failed_days?: number | null;
34257
+ keep_ok_days?: number | null;
34258
+ note?: string | null;
34259
+ resource_type?: string | null;
34260
+ updated_at?: string;
34261
+ };
34262
+ Relationships: [];
34263
+ };
33477
34264
  floriday_logistic_labels_cache: {
33478
34265
  Row: {
33479
34266
  byte_size: number | null;
@@ -37599,6 +38386,69 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
37599
38386
  };
37600
38387
  Relationships: [];
37601
38388
  };
38389
+ logistics_slip_shipping_note: {
38390
+ Row: {
38391
+ attempts: number;
38392
+ batch_key: string | null;
38393
+ cart_id: string | null;
38394
+ created_at: string;
38395
+ error: string | null;
38396
+ error_code: string | null;
38397
+ fulfillment_order_id: string | null;
38398
+ id: string;
38399
+ locked_until: string | null;
38400
+ next_attempt_at: string | null;
38401
+ order_id: string | null;
38402
+ order_number: string | null;
38403
+ print_job_id: string | null;
38404
+ printer_id: string | null;
38405
+ retry_class: string | null;
38406
+ slip_job_id: string;
38407
+ status: string;
38408
+ updated_at: string;
38409
+ };
38410
+ Insert: {
38411
+ attempts?: number;
38412
+ batch_key?: string | null;
38413
+ cart_id?: string | null;
38414
+ created_at?: string;
38415
+ error?: string | null;
38416
+ error_code?: string | null;
38417
+ fulfillment_order_id?: string | null;
38418
+ id?: string;
38419
+ locked_until?: string | null;
38420
+ next_attempt_at?: string | null;
38421
+ order_id?: string | null;
38422
+ order_number?: string | null;
38423
+ print_job_id?: string | null;
38424
+ printer_id?: string | null;
38425
+ retry_class?: string | null;
38426
+ slip_job_id: string;
38427
+ status?: string;
38428
+ updated_at?: string;
38429
+ };
38430
+ Update: {
38431
+ attempts?: number;
38432
+ batch_key?: string | null;
38433
+ cart_id?: string | null;
38434
+ created_at?: string;
38435
+ error?: string | null;
38436
+ error_code?: string | null;
38437
+ fulfillment_order_id?: string | null;
38438
+ id?: string;
38439
+ locked_until?: string | null;
38440
+ next_attempt_at?: string | null;
38441
+ order_id?: string | null;
38442
+ order_number?: string | null;
38443
+ print_job_id?: string | null;
38444
+ printer_id?: string | null;
38445
+ retry_class?: string | null;
38446
+ slip_job_id?: string;
38447
+ status?: string;
38448
+ updated_at?: string;
38449
+ };
38450
+ Relationships: [];
38451
+ };
37602
38452
  logistics_staff_planning: {
37603
38453
  Row: {
37604
38454
  created_at: string;
@@ -37950,6 +38800,111 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
37950
38800
  };
37951
38801
  Relationships: [];
37952
38802
  };
38803
+ logistics_trace_events: {
38804
+ Row: {
38805
+ actor: string | null;
38806
+ attempts: number;
38807
+ cart_ref: string | null;
38808
+ created_at: string;
38809
+ db_action: string | null;
38810
+ db_new: import("../integrations/supabase/types").Json | null;
38811
+ db_old: import("../integrations/supabase/types").Json | null;
38812
+ db_record: string | null;
38813
+ db_table: string | null;
38814
+ decision: string | null;
38815
+ duration_ms: number | null;
38816
+ error: string | null;
38817
+ external_action: string | null;
38818
+ external_ref: string | null;
38819
+ external_response: import("../integrations/supabase/types").Json | null;
38820
+ external_status: string | null;
38821
+ external_system: string | null;
38822
+ id: string;
38823
+ input: import("../integrations/supabase/types").Json | null;
38824
+ next_attempt_at: string | null;
38825
+ order_ref: string | null;
38826
+ order_source: string | null;
38827
+ output: import("../integrations/supabase/types").Json | null;
38828
+ phase: string;
38829
+ reads: import("../integrations/supabase/types").Json | null;
38830
+ reason: string | null;
38831
+ rule: string | null;
38832
+ slip_ref: string | null;
38833
+ status: string;
38834
+ step: string;
38835
+ trace_id: string;
38836
+ values_used: import("../integrations/supabase/types").Json | null;
38837
+ };
38838
+ Insert: {
38839
+ actor?: string | null;
38840
+ attempts?: number;
38841
+ cart_ref?: string | null;
38842
+ created_at?: string;
38843
+ db_action?: string | null;
38844
+ db_new?: import("../integrations/supabase/types").Json | null;
38845
+ db_old?: import("../integrations/supabase/types").Json | null;
38846
+ db_record?: string | null;
38847
+ db_table?: string | null;
38848
+ decision?: string | null;
38849
+ duration_ms?: number | null;
38850
+ error?: string | null;
38851
+ external_action?: string | null;
38852
+ external_ref?: string | null;
38853
+ external_response?: import("../integrations/supabase/types").Json | null;
38854
+ external_status?: string | null;
38855
+ external_system?: string | null;
38856
+ id?: string;
38857
+ input?: import("../integrations/supabase/types").Json | null;
38858
+ next_attempt_at?: string | null;
38859
+ order_ref?: string | null;
38860
+ order_source?: string | null;
38861
+ output?: import("../integrations/supabase/types").Json | null;
38862
+ phase: string;
38863
+ reads?: import("../integrations/supabase/types").Json | null;
38864
+ reason?: string | null;
38865
+ rule?: string | null;
38866
+ slip_ref?: string | null;
38867
+ status: string;
38868
+ step: string;
38869
+ trace_id?: string;
38870
+ values_used?: import("../integrations/supabase/types").Json | null;
38871
+ };
38872
+ Update: {
38873
+ actor?: string | null;
38874
+ attempts?: number;
38875
+ cart_ref?: string | null;
38876
+ created_at?: string;
38877
+ db_action?: string | null;
38878
+ db_new?: import("../integrations/supabase/types").Json | null;
38879
+ db_old?: import("../integrations/supabase/types").Json | null;
38880
+ db_record?: string | null;
38881
+ db_table?: string | null;
38882
+ decision?: string | null;
38883
+ duration_ms?: number | null;
38884
+ error?: string | null;
38885
+ external_action?: string | null;
38886
+ external_ref?: string | null;
38887
+ external_response?: import("../integrations/supabase/types").Json | null;
38888
+ external_status?: string | null;
38889
+ external_system?: string | null;
38890
+ id?: string;
38891
+ input?: import("../integrations/supabase/types").Json | null;
38892
+ next_attempt_at?: string | null;
38893
+ order_ref?: string | null;
38894
+ order_source?: string | null;
38895
+ output?: import("../integrations/supabase/types").Json | null;
38896
+ phase?: string;
38897
+ reads?: import("../integrations/supabase/types").Json | null;
38898
+ reason?: string | null;
38899
+ rule?: string | null;
38900
+ slip_ref?: string | null;
38901
+ status?: string;
38902
+ step?: string;
38903
+ trace_id?: string;
38904
+ values_used?: import("../integrations/supabase/types").Json | null;
38905
+ };
38906
+ Relationships: [];
38907
+ };
37953
38908
  logistics_variables: {
37954
38909
  Row: {
37955
38910
  created_at: string;
@@ -48522,6 +49477,15 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
48522
49477
  Args: never;
48523
49478
  Returns: boolean;
48524
49479
  };
49480
+ cancel_open_print_jobs: {
49481
+ Args: {
49482
+ _cutoff: string;
49483
+ };
49484
+ Returns: {
49485
+ extern_job_id: string;
49486
+ id: string;
49487
+ }[];
49488
+ };
48525
49489
  check_offer_product_available_stock: {
48526
49490
  Args: {
48527
49491
  p_campaign_product_id: string;
@@ -50134,6 +51098,12 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
50134
51098
  };
50135
51099
  Returns: import("../integrations/supabase/types").Json;
50136
51100
  };
51101
+ logistics_cart_plan_status_core: {
51102
+ Args: {
51103
+ p_ref: string;
51104
+ };
51105
+ Returns: import("../integrations/supabase/types").Json;
51106
+ };
50137
51107
  logistics_cart_release_reason: {
50138
51108
  Args: {
50139
51109
  p_cart_id: string;
@@ -50196,6 +51166,10 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
50196
51166
  unit_ref: string;
50197
51167
  }[];
50198
51168
  };
51169
+ logistics_carts_per_print: {
51170
+ Args: never;
51171
+ Returns: number;
51172
+ };
50199
51173
  logistics_check_order_allowed: {
50200
51174
  Args: {
50201
51175
  p_lines: import("../integrations/supabase/types").Json;
@@ -50562,6 +51536,12 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
50562
51536
  };
50563
51537
  Returns: import("../integrations/supabase/types").Json;
50564
51538
  };
51539
+ logistics_ensure_shipping_notes: {
51540
+ Args: {
51541
+ p_limit?: number;
51542
+ };
51543
+ Returns: import("../integrations/supabase/types").Json;
51544
+ };
50565
51545
  logistics_fail_task: {
50566
51546
  Args: {
50567
51547
  p_error: string;
@@ -50607,6 +51587,10 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
50607
51587
  isSetofReturn: false;
50608
51588
  };
50609
51589
  };
51590
+ logistics_fix_wrong_shipping_notes: {
51591
+ Args: never;
51592
+ Returns: import("../integrations/supabase/types").Json;
51593
+ };
50610
51594
  logistics_floriday_cart_plan: {
50611
51595
  Args: {
50612
51596
  p_order_id: string;
@@ -50634,6 +51618,10 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
50634
51618
  revision: number;
50635
51619
  }[];
50636
51620
  };
51621
+ logistics_floriday_delivery_note_create_enabled: {
51622
+ Args: never;
51623
+ Returns: boolean;
51624
+ };
50637
51625
  logistics_floriday_finish_push: {
50638
51626
  Args: {
50639
51627
  _error?: string;
@@ -50877,6 +51865,12 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
50877
51865
  };
50878
51866
  Returns: string;
50879
51867
  };
51868
+ logistics_payload_is_floriday: {
51869
+ Args: {
51870
+ _payload: import("../integrations/supabase/types").Json;
51871
+ };
51872
+ Returns: boolean;
51873
+ };
50880
51874
  logistics_pick_agenda: {
50881
51875
  Args: {
50882
51876
  p_from?: string;
@@ -50999,6 +51993,20 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
50999
51993
  Args: never;
51000
51994
  Returns: undefined;
51001
51995
  };
51996
+ logistics_plan_progress: {
51997
+ Args: {
51998
+ p_refs: string[];
51999
+ };
52000
+ Returns: {
52001
+ cart_plan_ready: boolean;
52002
+ cart_plan_reason: string;
52003
+ cart_plan_released: boolean;
52004
+ plan_progress: number;
52005
+ plan_state: string;
52006
+ plan_state_since: string;
52007
+ unit_ref: string;
52008
+ }[];
52009
+ };
51002
52010
  logistics_plan_prune: {
51003
52011
  Args: never;
51004
52012
  Returns: number;
@@ -51020,6 +52028,12 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
51020
52028
  };
51021
52029
  Returns: number;
51022
52030
  };
52031
+ logistics_plan_state_for: {
52032
+ Args: {
52033
+ p_ref: string;
52034
+ };
52035
+ Returns: import("../integrations/supabase/types").Json;
52036
+ };
51023
52037
  logistics_prepare_pick_documents: {
51024
52038
  Args: {
51025
52039
  p_limit?: number;
@@ -51078,6 +52092,12 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
51078
52092
  };
51079
52093
  Returns: import("../integrations/supabase/types").Json;
51080
52094
  };
52095
+ logistics_refresh_plan_state: {
52096
+ Args: {
52097
+ p_limit?: number;
52098
+ };
52099
+ Returns: import("../integrations/supabase/types").Json;
52100
+ };
51081
52101
  logistics_replan_all: {
51082
52102
  Args: {
51083
52103
  p_reason?: string;
@@ -51246,6 +52266,74 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
51246
52266
  };
51247
52267
  Returns: import("../integrations/supabase/types").Json;
51248
52268
  };
52269
+ logistics_shipping_note_job_for_slip: {
52270
+ Args: {
52271
+ _slip_job_id: string;
52272
+ };
52273
+ Returns: string;
52274
+ };
52275
+ logistics_shipping_notes_wake_all: {
52276
+ Args: never;
52277
+ Returns: import("../integrations/supabase/types").Json;
52278
+ };
52279
+ logistics_slip_is_floriday: {
52280
+ Args: {
52281
+ _slip_job_id: string;
52282
+ };
52283
+ Returns: boolean;
52284
+ };
52285
+ logistics_slip_note_claim: {
52286
+ Args: {
52287
+ _lease_seconds?: number;
52288
+ _limit?: number;
52289
+ };
52290
+ Returns: {
52291
+ attempts: number;
52292
+ batch_key: string | null;
52293
+ cart_id: string | null;
52294
+ created_at: string;
52295
+ error: string | null;
52296
+ error_code: string | null;
52297
+ fulfillment_order_id: string | null;
52298
+ id: string;
52299
+ locked_until: string | null;
52300
+ next_attempt_at: string | null;
52301
+ order_id: string | null;
52302
+ order_number: string | null;
52303
+ print_job_id: string | null;
52304
+ printer_id: string | null;
52305
+ retry_class: string | null;
52306
+ slip_job_id: string;
52307
+ status: string;
52308
+ updated_at: string;
52309
+ }[];
52310
+ SetofOptions: {
52311
+ from: "*";
52312
+ to: "logistics_slip_shipping_note";
52313
+ isOneToOne: false;
52314
+ isSetofReturn: true;
52315
+ };
52316
+ };
52317
+ logistics_slip_note_finish: {
52318
+ Args: {
52319
+ _error?: string;
52320
+ _error_code?: string;
52321
+ _fulfillment_order_id?: string;
52322
+ _id: string;
52323
+ _ok: boolean;
52324
+ _print_job_id?: string;
52325
+ _status?: string;
52326
+ };
52327
+ Returns: undefined;
52328
+ };
52329
+ logistics_slip_note_keep_waiting: {
52330
+ Args: {
52331
+ _class?: string;
52332
+ _id: string;
52333
+ _reason: string;
52334
+ };
52335
+ Returns: undefined;
52336
+ };
51249
52337
  logistics_sticker_follows_slip: {
51250
52338
  Args: never;
51251
52339
  Returns: boolean;
@@ -51300,6 +52388,40 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
51300
52388
  name: string;
51301
52389
  }[];
51302
52390
  };
52391
+ logistics_trace: {
52392
+ Args: {
52393
+ p: import("../integrations/supabase/types").Json;
52394
+ };
52395
+ Returns: string;
52396
+ };
52397
+ logistics_trace_batch: {
52398
+ Args: {
52399
+ p: import("../integrations/supabase/types").Json;
52400
+ };
52401
+ Returns: number;
52402
+ };
52403
+ logistics_trace_orders: {
52404
+ Args: {
52405
+ p_limit?: number;
52406
+ p_search?: string;
52407
+ p_since?: string;
52408
+ p_status?: string;
52409
+ };
52410
+ Returns: import("../integrations/supabase/types").Json;
52411
+ };
52412
+ logistics_trace_redact: {
52413
+ Args: {
52414
+ p: import("../integrations/supabase/types").Json;
52415
+ };
52416
+ Returns: import("../integrations/supabase/types").Json;
52417
+ };
52418
+ logistics_trace_timeline: {
52419
+ Args: {
52420
+ p_limit?: number;
52421
+ p_order_ref: string;
52422
+ };
52423
+ Returns: import("../integrations/supabase/types").Json;
52424
+ };
51303
52425
  logistics_upsert_task: {
51304
52426
  Args: {
51305
52427
  p_buffer_ref: string;
@@ -52341,6 +53463,10 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
52341
53463
  };
52342
53464
  Returns: undefined;
52343
53465
  };
53466
+ prune_floriday_api_log: {
53467
+ Args: never;
53468
+ Returns: number;
53469
+ };
52344
53470
  quote_create_from_source: {
52345
53471
  Args: {
52346
53472
  _payload?: import("../integrations/supabase/types").Json;
@@ -53217,6 +54343,10 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
53217
54343
  Args: never;
53218
54344
  Returns: string;
53219
54345
  };
54346
+ voorraad_cleanup_old_rows: {
54347
+ Args: never;
54348
+ Returns: import("../integrations/supabase/types").Json;
54349
+ };
53220
54350
  wake_print_queue: {
53221
54351
  Args: {
53222
54352
  _min_interval_ms?: number;
@@ -55521,6 +56651,45 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
55521
56651
  };
55522
56652
  Relationships: [];
55523
56653
  };
56654
+ customer_product_stickers: {
56655
+ Row: {
56656
+ created_at: string;
56657
+ customer_key: string;
56658
+ file_name: string;
56659
+ file_path: string;
56660
+ file_size: number | null;
56661
+ id: string;
56662
+ mime_type: string | null;
56663
+ trade_item_key: string;
56664
+ updated_at: string;
56665
+ uploaded_by: string | null;
56666
+ };
56667
+ Insert: {
56668
+ created_at?: string;
56669
+ customer_key: string;
56670
+ file_name: string;
56671
+ file_path: string;
56672
+ file_size?: number | null;
56673
+ id?: string;
56674
+ mime_type?: string | null;
56675
+ trade_item_key: string;
56676
+ updated_at?: string;
56677
+ uploaded_by?: string | null;
56678
+ };
56679
+ Update: {
56680
+ created_at?: string;
56681
+ customer_key?: string;
56682
+ file_name?: string;
56683
+ file_path?: string;
56684
+ file_size?: number | null;
56685
+ id?: string;
56686
+ mime_type?: string | null;
56687
+ trade_item_key?: string;
56688
+ updated_at?: string;
56689
+ uploaded_by?: string | null;
56690
+ };
56691
+ Relationships: [];
56692
+ };
55524
56693
  customer_selected_assortment: {
55525
56694
  Row: {
55526
56695
  article_number: string | null;
@@ -55569,6 +56738,30 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
55569
56738
  referencedColumns: ["id"];
55570
56739
  }];
55571
56740
  };
56741
+ customer_sticker_settings: {
56742
+ Row: {
56743
+ created_at: string;
56744
+ customer_key: string;
56745
+ height_mm: number;
56746
+ updated_at: string;
56747
+ width_mm: number;
56748
+ };
56749
+ Insert: {
56750
+ created_at?: string;
56751
+ customer_key: string;
56752
+ height_mm?: number;
56753
+ updated_at?: string;
56754
+ width_mm?: number;
56755
+ };
56756
+ Update: {
56757
+ created_at?: string;
56758
+ customer_key?: string;
56759
+ height_mm?: number;
56760
+ updated_at?: string;
56761
+ width_mm?: number;
56762
+ };
56763
+ Relationships: [];
56764
+ };
55572
56765
  customer_trade_settings: {
55573
56766
  Row: {
55574
56767
  category: string;
@@ -58899,6 +60092,102 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
58899
60092
  referencedColumns: ["id"];
58900
60093
  }];
58901
60094
  };
60095
+ floriday_api_log: {
60096
+ Row: {
60097
+ action: string | null;
60098
+ caller: string | null;
60099
+ connection_id: string | null;
60100
+ created_at: string;
60101
+ cursor_from: number | null;
60102
+ direction: string;
60103
+ duration_ms: number | null;
60104
+ environment: string | null;
60105
+ error: string | null;
60106
+ floriday_id: string | null;
60107
+ floriday_reference: string | null;
60108
+ http_status: number;
60109
+ id: string;
60110
+ item_count: number | null;
60111
+ kind: string | null;
60112
+ local_id: string | null;
60113
+ local_reference: string | null;
60114
+ method: string;
60115
+ module: string | null;
60116
+ ok: boolean;
60117
+ path: string;
60118
+ request: import("../integrations/supabase/types").Json | null;
60119
+ resource_type: string | null;
60120
+ response: import("../integrations/supabase/types").Json | null;
60121
+ write_log_id: string | null;
60122
+ };
60123
+ Insert: {
60124
+ action?: string | null;
60125
+ caller?: string | null;
60126
+ connection_id?: string | null;
60127
+ created_at?: string;
60128
+ cursor_from?: number | null;
60129
+ direction: string;
60130
+ duration_ms?: number | null;
60131
+ environment?: string | null;
60132
+ error?: string | null;
60133
+ floriday_id?: string | null;
60134
+ floriday_reference?: string | null;
60135
+ http_status?: number;
60136
+ id?: string;
60137
+ item_count?: number | null;
60138
+ kind?: string | null;
60139
+ local_id?: string | null;
60140
+ local_reference?: string | null;
60141
+ method: string;
60142
+ module?: string | null;
60143
+ ok?: boolean;
60144
+ path: string;
60145
+ request?: import("../integrations/supabase/types").Json | null;
60146
+ resource_type?: string | null;
60147
+ response?: import("../integrations/supabase/types").Json | null;
60148
+ write_log_id?: string | null;
60149
+ };
60150
+ Update: {
60151
+ action?: string | null;
60152
+ caller?: string | null;
60153
+ connection_id?: string | null;
60154
+ created_at?: string;
60155
+ cursor_from?: number | null;
60156
+ direction?: string;
60157
+ duration_ms?: number | null;
60158
+ environment?: string | null;
60159
+ error?: string | null;
60160
+ floriday_id?: string | null;
60161
+ floriday_reference?: string | null;
60162
+ http_status?: number;
60163
+ id?: string;
60164
+ item_count?: number | null;
60165
+ kind?: string | null;
60166
+ local_id?: string | null;
60167
+ local_reference?: string | null;
60168
+ method?: string;
60169
+ module?: string | null;
60170
+ ok?: boolean;
60171
+ path?: string;
60172
+ request?: import("../integrations/supabase/types").Json | null;
60173
+ resource_type?: string | null;
60174
+ response?: import("../integrations/supabase/types").Json | null;
60175
+ write_log_id?: string | null;
60176
+ };
60177
+ Relationships: [{
60178
+ foreignKeyName: "floriday_api_log_connection_id_fkey";
60179
+ columns: ["connection_id"];
60180
+ isOneToOne: false;
60181
+ referencedRelation: "floriday_connections";
60182
+ referencedColumns: ["id"];
60183
+ }, {
60184
+ foreignKeyName: "floriday_api_log_write_log_id_fkey";
60185
+ columns: ["write_log_id"];
60186
+ isOneToOne: false;
60187
+ referencedRelation: "floriday_write_log";
60188
+ referencedColumns: ["id"];
60189
+ }];
60190
+ };
58902
60191
  floriday_auction_letters_cache: {
58903
60192
  Row: {
58904
60193
  auction_letter_code: string;
@@ -60099,6 +61388,69 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
60099
61388
  referencedColumns: ["id"];
60100
61389
  }];
60101
61390
  };
61391
+ floriday_link_templates: {
61392
+ Row: {
61393
+ created_at: string;
61394
+ floriday_url_template: string | null;
61395
+ is_active: boolean;
61396
+ label: string;
61397
+ local_url_template: string | null;
61398
+ resource_type: string;
61399
+ updated_at: string;
61400
+ };
61401
+ Insert: {
61402
+ created_at?: string;
61403
+ floriday_url_template?: string | null;
61404
+ is_active?: boolean;
61405
+ label: string;
61406
+ local_url_template?: string | null;
61407
+ resource_type: string;
61408
+ updated_at?: string;
61409
+ };
61410
+ Update: {
61411
+ created_at?: string;
61412
+ floriday_url_template?: string | null;
61413
+ is_active?: boolean;
61414
+ label?: string;
61415
+ local_url_template?: string | null;
61416
+ resource_type?: string;
61417
+ updated_at?: string;
61418
+ };
61419
+ Relationships: [];
61420
+ };
61421
+ floriday_log_retention: {
61422
+ Row: {
61423
+ created_at: string;
61424
+ direction: string | null;
61425
+ id: string;
61426
+ keep_failed_days: number | null;
61427
+ keep_ok_days: number | null;
61428
+ note: string | null;
61429
+ resource_type: string | null;
61430
+ updated_at: string;
61431
+ };
61432
+ Insert: {
61433
+ created_at?: string;
61434
+ direction?: string | null;
61435
+ id?: string;
61436
+ keep_failed_days?: number | null;
61437
+ keep_ok_days?: number | null;
61438
+ note?: string | null;
61439
+ resource_type?: string | null;
61440
+ updated_at?: string;
61441
+ };
61442
+ Update: {
61443
+ created_at?: string;
61444
+ direction?: string | null;
61445
+ id?: string;
61446
+ keep_failed_days?: number | null;
61447
+ keep_ok_days?: number | null;
61448
+ note?: string | null;
61449
+ resource_type?: string | null;
61450
+ updated_at?: string;
61451
+ };
61452
+ Relationships: [];
61453
+ };
60102
61454
  floriday_logistic_labels_cache: {
60103
61455
  Row: {
60104
61456
  byte_size: number | null;
@@ -64224,6 +65576,69 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
64224
65576
  };
64225
65577
  Relationships: [];
64226
65578
  };
65579
+ logistics_slip_shipping_note: {
65580
+ Row: {
65581
+ attempts: number;
65582
+ batch_key: string | null;
65583
+ cart_id: string | null;
65584
+ created_at: string;
65585
+ error: string | null;
65586
+ error_code: string | null;
65587
+ fulfillment_order_id: string | null;
65588
+ id: string;
65589
+ locked_until: string | null;
65590
+ next_attempt_at: string | null;
65591
+ order_id: string | null;
65592
+ order_number: string | null;
65593
+ print_job_id: string | null;
65594
+ printer_id: string | null;
65595
+ retry_class: string | null;
65596
+ slip_job_id: string;
65597
+ status: string;
65598
+ updated_at: string;
65599
+ };
65600
+ Insert: {
65601
+ attempts?: number;
65602
+ batch_key?: string | null;
65603
+ cart_id?: string | null;
65604
+ created_at?: string;
65605
+ error?: string | null;
65606
+ error_code?: string | null;
65607
+ fulfillment_order_id?: string | null;
65608
+ id?: string;
65609
+ locked_until?: string | null;
65610
+ next_attempt_at?: string | null;
65611
+ order_id?: string | null;
65612
+ order_number?: string | null;
65613
+ print_job_id?: string | null;
65614
+ printer_id?: string | null;
65615
+ retry_class?: string | null;
65616
+ slip_job_id: string;
65617
+ status?: string;
65618
+ updated_at?: string;
65619
+ };
65620
+ Update: {
65621
+ attempts?: number;
65622
+ batch_key?: string | null;
65623
+ cart_id?: string | null;
65624
+ created_at?: string;
65625
+ error?: string | null;
65626
+ error_code?: string | null;
65627
+ fulfillment_order_id?: string | null;
65628
+ id?: string;
65629
+ locked_until?: string | null;
65630
+ next_attempt_at?: string | null;
65631
+ order_id?: string | null;
65632
+ order_number?: string | null;
65633
+ print_job_id?: string | null;
65634
+ printer_id?: string | null;
65635
+ retry_class?: string | null;
65636
+ slip_job_id?: string;
65637
+ status?: string;
65638
+ updated_at?: string;
65639
+ };
65640
+ Relationships: [];
65641
+ };
64227
65642
  logistics_staff_planning: {
64228
65643
  Row: {
64229
65644
  created_at: string;
@@ -64575,6 +65990,111 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
64575
65990
  };
64576
65991
  Relationships: [];
64577
65992
  };
65993
+ logistics_trace_events: {
65994
+ Row: {
65995
+ actor: string | null;
65996
+ attempts: number;
65997
+ cart_ref: string | null;
65998
+ created_at: string;
65999
+ db_action: string | null;
66000
+ db_new: import("../integrations/supabase/types").Json | null;
66001
+ db_old: import("../integrations/supabase/types").Json | null;
66002
+ db_record: string | null;
66003
+ db_table: string | null;
66004
+ decision: string | null;
66005
+ duration_ms: number | null;
66006
+ error: string | null;
66007
+ external_action: string | null;
66008
+ external_ref: string | null;
66009
+ external_response: import("../integrations/supabase/types").Json | null;
66010
+ external_status: string | null;
66011
+ external_system: string | null;
66012
+ id: string;
66013
+ input: import("../integrations/supabase/types").Json | null;
66014
+ next_attempt_at: string | null;
66015
+ order_ref: string | null;
66016
+ order_source: string | null;
66017
+ output: import("../integrations/supabase/types").Json | null;
66018
+ phase: string;
66019
+ reads: import("../integrations/supabase/types").Json | null;
66020
+ reason: string | null;
66021
+ rule: string | null;
66022
+ slip_ref: string | null;
66023
+ status: string;
66024
+ step: string;
66025
+ trace_id: string;
66026
+ values_used: import("../integrations/supabase/types").Json | null;
66027
+ };
66028
+ Insert: {
66029
+ actor?: string | null;
66030
+ attempts?: number;
66031
+ cart_ref?: string | null;
66032
+ created_at?: string;
66033
+ db_action?: string | null;
66034
+ db_new?: import("../integrations/supabase/types").Json | null;
66035
+ db_old?: import("../integrations/supabase/types").Json | null;
66036
+ db_record?: string | null;
66037
+ db_table?: string | null;
66038
+ decision?: string | null;
66039
+ duration_ms?: number | null;
66040
+ error?: string | null;
66041
+ external_action?: string | null;
66042
+ external_ref?: string | null;
66043
+ external_response?: import("../integrations/supabase/types").Json | null;
66044
+ external_status?: string | null;
66045
+ external_system?: string | null;
66046
+ id?: string;
66047
+ input?: import("../integrations/supabase/types").Json | null;
66048
+ next_attempt_at?: string | null;
66049
+ order_ref?: string | null;
66050
+ order_source?: string | null;
66051
+ output?: import("../integrations/supabase/types").Json | null;
66052
+ phase: string;
66053
+ reads?: import("../integrations/supabase/types").Json | null;
66054
+ reason?: string | null;
66055
+ rule?: string | null;
66056
+ slip_ref?: string | null;
66057
+ status: string;
66058
+ step: string;
66059
+ trace_id?: string;
66060
+ values_used?: import("../integrations/supabase/types").Json | null;
66061
+ };
66062
+ Update: {
66063
+ actor?: string | null;
66064
+ attempts?: number;
66065
+ cart_ref?: string | null;
66066
+ created_at?: string;
66067
+ db_action?: string | null;
66068
+ db_new?: import("../integrations/supabase/types").Json | null;
66069
+ db_old?: import("../integrations/supabase/types").Json | null;
66070
+ db_record?: string | null;
66071
+ db_table?: string | null;
66072
+ decision?: string | null;
66073
+ duration_ms?: number | null;
66074
+ error?: string | null;
66075
+ external_action?: string | null;
66076
+ external_ref?: string | null;
66077
+ external_response?: import("../integrations/supabase/types").Json | null;
66078
+ external_status?: string | null;
66079
+ external_system?: string | null;
66080
+ id?: string;
66081
+ input?: import("../integrations/supabase/types").Json | null;
66082
+ next_attempt_at?: string | null;
66083
+ order_ref?: string | null;
66084
+ order_source?: string | null;
66085
+ output?: import("../integrations/supabase/types").Json | null;
66086
+ phase?: string;
66087
+ reads?: import("../integrations/supabase/types").Json | null;
66088
+ reason?: string | null;
66089
+ rule?: string | null;
66090
+ slip_ref?: string | null;
66091
+ status?: string;
66092
+ step?: string;
66093
+ trace_id?: string;
66094
+ values_used?: import("../integrations/supabase/types").Json | null;
66095
+ };
66096
+ Relationships: [];
66097
+ };
64578
66098
  logistics_variables: {
64579
66099
  Row: {
64580
66100
  created_at: string;
@@ -75147,6 +76667,15 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
75147
76667
  Args: never;
75148
76668
  Returns: boolean;
75149
76669
  };
76670
+ cancel_open_print_jobs: {
76671
+ Args: {
76672
+ _cutoff: string;
76673
+ };
76674
+ Returns: {
76675
+ extern_job_id: string;
76676
+ id: string;
76677
+ }[];
76678
+ };
75150
76679
  check_offer_product_available_stock: {
75151
76680
  Args: {
75152
76681
  p_campaign_product_id: string;
@@ -76759,6 +78288,12 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
76759
78288
  };
76760
78289
  Returns: import("../integrations/supabase/types").Json;
76761
78290
  };
78291
+ logistics_cart_plan_status_core: {
78292
+ Args: {
78293
+ p_ref: string;
78294
+ };
78295
+ Returns: import("../integrations/supabase/types").Json;
78296
+ };
76762
78297
  logistics_cart_release_reason: {
76763
78298
  Args: {
76764
78299
  p_cart_id: string;
@@ -76821,6 +78356,10 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
76821
78356
  unit_ref: string;
76822
78357
  }[];
76823
78358
  };
78359
+ logistics_carts_per_print: {
78360
+ Args: never;
78361
+ Returns: number;
78362
+ };
76824
78363
  logistics_check_order_allowed: {
76825
78364
  Args: {
76826
78365
  p_lines: import("../integrations/supabase/types").Json;
@@ -77187,6 +78726,12 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
77187
78726
  };
77188
78727
  Returns: import("../integrations/supabase/types").Json;
77189
78728
  };
78729
+ logistics_ensure_shipping_notes: {
78730
+ Args: {
78731
+ p_limit?: number;
78732
+ };
78733
+ Returns: import("../integrations/supabase/types").Json;
78734
+ };
77190
78735
  logistics_fail_task: {
77191
78736
  Args: {
77192
78737
  p_error: string;
@@ -77232,6 +78777,10 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
77232
78777
  isSetofReturn: false;
77233
78778
  };
77234
78779
  };
78780
+ logistics_fix_wrong_shipping_notes: {
78781
+ Args: never;
78782
+ Returns: import("../integrations/supabase/types").Json;
78783
+ };
77235
78784
  logistics_floriday_cart_plan: {
77236
78785
  Args: {
77237
78786
  p_order_id: string;
@@ -77259,6 +78808,10 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
77259
78808
  revision: number;
77260
78809
  }[];
77261
78810
  };
78811
+ logistics_floriday_delivery_note_create_enabled: {
78812
+ Args: never;
78813
+ Returns: boolean;
78814
+ };
77262
78815
  logistics_floriday_finish_push: {
77263
78816
  Args: {
77264
78817
  _error?: string;
@@ -77502,6 +79055,12 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
77502
79055
  };
77503
79056
  Returns: string;
77504
79057
  };
79058
+ logistics_payload_is_floriday: {
79059
+ Args: {
79060
+ _payload: import("../integrations/supabase/types").Json;
79061
+ };
79062
+ Returns: boolean;
79063
+ };
77505
79064
  logistics_pick_agenda: {
77506
79065
  Args: {
77507
79066
  p_from?: string;
@@ -77624,6 +79183,20 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
77624
79183
  Args: never;
77625
79184
  Returns: undefined;
77626
79185
  };
79186
+ logistics_plan_progress: {
79187
+ Args: {
79188
+ p_refs: string[];
79189
+ };
79190
+ Returns: {
79191
+ cart_plan_ready: boolean;
79192
+ cart_plan_reason: string;
79193
+ cart_plan_released: boolean;
79194
+ plan_progress: number;
79195
+ plan_state: string;
79196
+ plan_state_since: string;
79197
+ unit_ref: string;
79198
+ }[];
79199
+ };
77627
79200
  logistics_plan_prune: {
77628
79201
  Args: never;
77629
79202
  Returns: number;
@@ -77645,6 +79218,12 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
77645
79218
  };
77646
79219
  Returns: number;
77647
79220
  };
79221
+ logistics_plan_state_for: {
79222
+ Args: {
79223
+ p_ref: string;
79224
+ };
79225
+ Returns: import("../integrations/supabase/types").Json;
79226
+ };
77648
79227
  logistics_prepare_pick_documents: {
77649
79228
  Args: {
77650
79229
  p_limit?: number;
@@ -77703,6 +79282,12 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
77703
79282
  };
77704
79283
  Returns: import("../integrations/supabase/types").Json;
77705
79284
  };
79285
+ logistics_refresh_plan_state: {
79286
+ Args: {
79287
+ p_limit?: number;
79288
+ };
79289
+ Returns: import("../integrations/supabase/types").Json;
79290
+ };
77706
79291
  logistics_replan_all: {
77707
79292
  Args: {
77708
79293
  p_reason?: string;
@@ -77871,6 +79456,74 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
77871
79456
  };
77872
79457
  Returns: import("../integrations/supabase/types").Json;
77873
79458
  };
79459
+ logistics_shipping_note_job_for_slip: {
79460
+ Args: {
79461
+ _slip_job_id: string;
79462
+ };
79463
+ Returns: string;
79464
+ };
79465
+ logistics_shipping_notes_wake_all: {
79466
+ Args: never;
79467
+ Returns: import("../integrations/supabase/types").Json;
79468
+ };
79469
+ logistics_slip_is_floriday: {
79470
+ Args: {
79471
+ _slip_job_id: string;
79472
+ };
79473
+ Returns: boolean;
79474
+ };
79475
+ logistics_slip_note_claim: {
79476
+ Args: {
79477
+ _lease_seconds?: number;
79478
+ _limit?: number;
79479
+ };
79480
+ Returns: {
79481
+ attempts: number;
79482
+ batch_key: string | null;
79483
+ cart_id: string | null;
79484
+ created_at: string;
79485
+ error: string | null;
79486
+ error_code: string | null;
79487
+ fulfillment_order_id: string | null;
79488
+ id: string;
79489
+ locked_until: string | null;
79490
+ next_attempt_at: string | null;
79491
+ order_id: string | null;
79492
+ order_number: string | null;
79493
+ print_job_id: string | null;
79494
+ printer_id: string | null;
79495
+ retry_class: string | null;
79496
+ slip_job_id: string;
79497
+ status: string;
79498
+ updated_at: string;
79499
+ }[];
79500
+ SetofOptions: {
79501
+ from: "*";
79502
+ to: "logistics_slip_shipping_note";
79503
+ isOneToOne: false;
79504
+ isSetofReturn: true;
79505
+ };
79506
+ };
79507
+ logistics_slip_note_finish: {
79508
+ Args: {
79509
+ _error?: string;
79510
+ _error_code?: string;
79511
+ _fulfillment_order_id?: string;
79512
+ _id: string;
79513
+ _ok: boolean;
79514
+ _print_job_id?: string;
79515
+ _status?: string;
79516
+ };
79517
+ Returns: undefined;
79518
+ };
79519
+ logistics_slip_note_keep_waiting: {
79520
+ Args: {
79521
+ _class?: string;
79522
+ _id: string;
79523
+ _reason: string;
79524
+ };
79525
+ Returns: undefined;
79526
+ };
77874
79527
  logistics_sticker_follows_slip: {
77875
79528
  Args: never;
77876
79529
  Returns: boolean;
@@ -77925,6 +79578,40 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
77925
79578
  name: string;
77926
79579
  }[];
77927
79580
  };
79581
+ logistics_trace: {
79582
+ Args: {
79583
+ p: import("../integrations/supabase/types").Json;
79584
+ };
79585
+ Returns: string;
79586
+ };
79587
+ logistics_trace_batch: {
79588
+ Args: {
79589
+ p: import("../integrations/supabase/types").Json;
79590
+ };
79591
+ Returns: number;
79592
+ };
79593
+ logistics_trace_orders: {
79594
+ Args: {
79595
+ p_limit?: number;
79596
+ p_search?: string;
79597
+ p_since?: string;
79598
+ p_status?: string;
79599
+ };
79600
+ Returns: import("../integrations/supabase/types").Json;
79601
+ };
79602
+ logistics_trace_redact: {
79603
+ Args: {
79604
+ p: import("../integrations/supabase/types").Json;
79605
+ };
79606
+ Returns: import("../integrations/supabase/types").Json;
79607
+ };
79608
+ logistics_trace_timeline: {
79609
+ Args: {
79610
+ p_limit?: number;
79611
+ p_order_ref: string;
79612
+ };
79613
+ Returns: import("../integrations/supabase/types").Json;
79614
+ };
77928
79615
  logistics_upsert_task: {
77929
79616
  Args: {
77930
79617
  p_buffer_ref: string;
@@ -78966,6 +80653,10 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
78966
80653
  };
78967
80654
  Returns: undefined;
78968
80655
  };
80656
+ prune_floriday_api_log: {
80657
+ Args: never;
80658
+ Returns: number;
80659
+ };
78969
80660
  quote_create_from_source: {
78970
80661
  Args: {
78971
80662
  _payload?: import("../integrations/supabase/types").Json;
@@ -79842,6 +81533,10 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
79842
81533
  Args: never;
79843
81534
  Returns: string;
79844
81535
  };
81536
+ voorraad_cleanup_old_rows: {
81537
+ Args: never;
81538
+ Returns: import("../integrations/supabase/types").Json;
81539
+ };
79845
81540
  wake_print_queue: {
79846
81541
  Args: {
79847
81542
  _min_interval_ms?: number;
@@ -82144,6 +83839,45 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
82144
83839
  };
82145
83840
  Relationships: [];
82146
83841
  };
83842
+ customer_product_stickers: {
83843
+ Row: {
83844
+ created_at: string;
83845
+ customer_key: string;
83846
+ file_name: string;
83847
+ file_path: string;
83848
+ file_size: number | null;
83849
+ id: string;
83850
+ mime_type: string | null;
83851
+ trade_item_key: string;
83852
+ updated_at: string;
83853
+ uploaded_by: string | null;
83854
+ };
83855
+ Insert: {
83856
+ created_at?: string;
83857
+ customer_key: string;
83858
+ file_name: string;
83859
+ file_path: string;
83860
+ file_size?: number | null;
83861
+ id?: string;
83862
+ mime_type?: string | null;
83863
+ trade_item_key: string;
83864
+ updated_at?: string;
83865
+ uploaded_by?: string | null;
83866
+ };
83867
+ Update: {
83868
+ created_at?: string;
83869
+ customer_key?: string;
83870
+ file_name?: string;
83871
+ file_path?: string;
83872
+ file_size?: number | null;
83873
+ id?: string;
83874
+ mime_type?: string | null;
83875
+ trade_item_key?: string;
83876
+ updated_at?: string;
83877
+ uploaded_by?: string | null;
83878
+ };
83879
+ Relationships: [];
83880
+ };
82147
83881
  customer_selected_assortment: {
82148
83882
  Row: {
82149
83883
  article_number: string | null;
@@ -82192,6 +83926,30 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
82192
83926
  referencedColumns: ["id"];
82193
83927
  }];
82194
83928
  };
83929
+ customer_sticker_settings: {
83930
+ Row: {
83931
+ created_at: string;
83932
+ customer_key: string;
83933
+ height_mm: number;
83934
+ updated_at: string;
83935
+ width_mm: number;
83936
+ };
83937
+ Insert: {
83938
+ created_at?: string;
83939
+ customer_key: string;
83940
+ height_mm?: number;
83941
+ updated_at?: string;
83942
+ width_mm?: number;
83943
+ };
83944
+ Update: {
83945
+ created_at?: string;
83946
+ customer_key?: string;
83947
+ height_mm?: number;
83948
+ updated_at?: string;
83949
+ width_mm?: number;
83950
+ };
83951
+ Relationships: [];
83952
+ };
82195
83953
  customer_trade_settings: {
82196
83954
  Row: {
82197
83955
  category: string;
@@ -85522,6 +87280,102 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
85522
87280
  referencedColumns: ["id"];
85523
87281
  }];
85524
87282
  };
87283
+ floriday_api_log: {
87284
+ Row: {
87285
+ action: string | null;
87286
+ caller: string | null;
87287
+ connection_id: string | null;
87288
+ created_at: string;
87289
+ cursor_from: number | null;
87290
+ direction: string;
87291
+ duration_ms: number | null;
87292
+ environment: string | null;
87293
+ error: string | null;
87294
+ floriday_id: string | null;
87295
+ floriday_reference: string | null;
87296
+ http_status: number;
87297
+ id: string;
87298
+ item_count: number | null;
87299
+ kind: string | null;
87300
+ local_id: string | null;
87301
+ local_reference: string | null;
87302
+ method: string;
87303
+ module: string | null;
87304
+ ok: boolean;
87305
+ path: string;
87306
+ request: import("../integrations/supabase/types").Json | null;
87307
+ resource_type: string | null;
87308
+ response: import("../integrations/supabase/types").Json | null;
87309
+ write_log_id: string | null;
87310
+ };
87311
+ Insert: {
87312
+ action?: string | null;
87313
+ caller?: string | null;
87314
+ connection_id?: string | null;
87315
+ created_at?: string;
87316
+ cursor_from?: number | null;
87317
+ direction: string;
87318
+ duration_ms?: number | null;
87319
+ environment?: string | null;
87320
+ error?: string | null;
87321
+ floriday_id?: string | null;
87322
+ floriday_reference?: string | null;
87323
+ http_status?: number;
87324
+ id?: string;
87325
+ item_count?: number | null;
87326
+ kind?: string | null;
87327
+ local_id?: string | null;
87328
+ local_reference?: string | null;
87329
+ method: string;
87330
+ module?: string | null;
87331
+ ok?: boolean;
87332
+ path: string;
87333
+ request?: import("../integrations/supabase/types").Json | null;
87334
+ resource_type?: string | null;
87335
+ response?: import("../integrations/supabase/types").Json | null;
87336
+ write_log_id?: string | null;
87337
+ };
87338
+ Update: {
87339
+ action?: string | null;
87340
+ caller?: string | null;
87341
+ connection_id?: string | null;
87342
+ created_at?: string;
87343
+ cursor_from?: number | null;
87344
+ direction?: string;
87345
+ duration_ms?: number | null;
87346
+ environment?: string | null;
87347
+ error?: string | null;
87348
+ floriday_id?: string | null;
87349
+ floriday_reference?: string | null;
87350
+ http_status?: number;
87351
+ id?: string;
87352
+ item_count?: number | null;
87353
+ kind?: string | null;
87354
+ local_id?: string | null;
87355
+ local_reference?: string | null;
87356
+ method?: string;
87357
+ module?: string | null;
87358
+ ok?: boolean;
87359
+ path?: string;
87360
+ request?: import("../integrations/supabase/types").Json | null;
87361
+ resource_type?: string | null;
87362
+ response?: import("../integrations/supabase/types").Json | null;
87363
+ write_log_id?: string | null;
87364
+ };
87365
+ Relationships: [{
87366
+ foreignKeyName: "floriday_api_log_connection_id_fkey";
87367
+ columns: ["connection_id"];
87368
+ isOneToOne: false;
87369
+ referencedRelation: "floriday_connections";
87370
+ referencedColumns: ["id"];
87371
+ }, {
87372
+ foreignKeyName: "floriday_api_log_write_log_id_fkey";
87373
+ columns: ["write_log_id"];
87374
+ isOneToOne: false;
87375
+ referencedRelation: "floriday_write_log";
87376
+ referencedColumns: ["id"];
87377
+ }];
87378
+ };
85525
87379
  floriday_auction_letters_cache: {
85526
87380
  Row: {
85527
87381
  auction_letter_code: string;
@@ -86722,6 +88576,69 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
86722
88576
  referencedColumns: ["id"];
86723
88577
  }];
86724
88578
  };
88579
+ floriday_link_templates: {
88580
+ Row: {
88581
+ created_at: string;
88582
+ floriday_url_template: string | null;
88583
+ is_active: boolean;
88584
+ label: string;
88585
+ local_url_template: string | null;
88586
+ resource_type: string;
88587
+ updated_at: string;
88588
+ };
88589
+ Insert: {
88590
+ created_at?: string;
88591
+ floriday_url_template?: string | null;
88592
+ is_active?: boolean;
88593
+ label: string;
88594
+ local_url_template?: string | null;
88595
+ resource_type: string;
88596
+ updated_at?: string;
88597
+ };
88598
+ Update: {
88599
+ created_at?: string;
88600
+ floriday_url_template?: string | null;
88601
+ is_active?: boolean;
88602
+ label?: string;
88603
+ local_url_template?: string | null;
88604
+ resource_type?: string;
88605
+ updated_at?: string;
88606
+ };
88607
+ Relationships: [];
88608
+ };
88609
+ floriday_log_retention: {
88610
+ Row: {
88611
+ created_at: string;
88612
+ direction: string | null;
88613
+ id: string;
88614
+ keep_failed_days: number | null;
88615
+ keep_ok_days: number | null;
88616
+ note: string | null;
88617
+ resource_type: string | null;
88618
+ updated_at: string;
88619
+ };
88620
+ Insert: {
88621
+ created_at?: string;
88622
+ direction?: string | null;
88623
+ id?: string;
88624
+ keep_failed_days?: number | null;
88625
+ keep_ok_days?: number | null;
88626
+ note?: string | null;
88627
+ resource_type?: string | null;
88628
+ updated_at?: string;
88629
+ };
88630
+ Update: {
88631
+ created_at?: string;
88632
+ direction?: string | null;
88633
+ id?: string;
88634
+ keep_failed_days?: number | null;
88635
+ keep_ok_days?: number | null;
88636
+ note?: string | null;
88637
+ resource_type?: string | null;
88638
+ updated_at?: string;
88639
+ };
88640
+ Relationships: [];
88641
+ };
86725
88642
  floriday_logistic_labels_cache: {
86726
88643
  Row: {
86727
88644
  byte_size: number | null;
@@ -90847,6 +92764,69 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
90847
92764
  };
90848
92765
  Relationships: [];
90849
92766
  };
92767
+ logistics_slip_shipping_note: {
92768
+ Row: {
92769
+ attempts: number;
92770
+ batch_key: string | null;
92771
+ cart_id: string | null;
92772
+ created_at: string;
92773
+ error: string | null;
92774
+ error_code: string | null;
92775
+ fulfillment_order_id: string | null;
92776
+ id: string;
92777
+ locked_until: string | null;
92778
+ next_attempt_at: string | null;
92779
+ order_id: string | null;
92780
+ order_number: string | null;
92781
+ print_job_id: string | null;
92782
+ printer_id: string | null;
92783
+ retry_class: string | null;
92784
+ slip_job_id: string;
92785
+ status: string;
92786
+ updated_at: string;
92787
+ };
92788
+ Insert: {
92789
+ attempts?: number;
92790
+ batch_key?: string | null;
92791
+ cart_id?: string | null;
92792
+ created_at?: string;
92793
+ error?: string | null;
92794
+ error_code?: string | null;
92795
+ fulfillment_order_id?: string | null;
92796
+ id?: string;
92797
+ locked_until?: string | null;
92798
+ next_attempt_at?: string | null;
92799
+ order_id?: string | null;
92800
+ order_number?: string | null;
92801
+ print_job_id?: string | null;
92802
+ printer_id?: string | null;
92803
+ retry_class?: string | null;
92804
+ slip_job_id: string;
92805
+ status?: string;
92806
+ updated_at?: string;
92807
+ };
92808
+ Update: {
92809
+ attempts?: number;
92810
+ batch_key?: string | null;
92811
+ cart_id?: string | null;
92812
+ created_at?: string;
92813
+ error?: string | null;
92814
+ error_code?: string | null;
92815
+ fulfillment_order_id?: string | null;
92816
+ id?: string;
92817
+ locked_until?: string | null;
92818
+ next_attempt_at?: string | null;
92819
+ order_id?: string | null;
92820
+ order_number?: string | null;
92821
+ print_job_id?: string | null;
92822
+ printer_id?: string | null;
92823
+ retry_class?: string | null;
92824
+ slip_job_id?: string;
92825
+ status?: string;
92826
+ updated_at?: string;
92827
+ };
92828
+ Relationships: [];
92829
+ };
90850
92830
  logistics_staff_planning: {
90851
92831
  Row: {
90852
92832
  created_at: string;
@@ -91198,6 +93178,111 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
91198
93178
  };
91199
93179
  Relationships: [];
91200
93180
  };
93181
+ logistics_trace_events: {
93182
+ Row: {
93183
+ actor: string | null;
93184
+ attempts: number;
93185
+ cart_ref: string | null;
93186
+ created_at: string;
93187
+ db_action: string | null;
93188
+ db_new: import("../integrations/supabase/types").Json | null;
93189
+ db_old: import("../integrations/supabase/types").Json | null;
93190
+ db_record: string | null;
93191
+ db_table: string | null;
93192
+ decision: string | null;
93193
+ duration_ms: number | null;
93194
+ error: string | null;
93195
+ external_action: string | null;
93196
+ external_ref: string | null;
93197
+ external_response: import("../integrations/supabase/types").Json | null;
93198
+ external_status: string | null;
93199
+ external_system: string | null;
93200
+ id: string;
93201
+ input: import("../integrations/supabase/types").Json | null;
93202
+ next_attempt_at: string | null;
93203
+ order_ref: string | null;
93204
+ order_source: string | null;
93205
+ output: import("../integrations/supabase/types").Json | null;
93206
+ phase: string;
93207
+ reads: import("../integrations/supabase/types").Json | null;
93208
+ reason: string | null;
93209
+ rule: string | null;
93210
+ slip_ref: string | null;
93211
+ status: string;
93212
+ step: string;
93213
+ trace_id: string;
93214
+ values_used: import("../integrations/supabase/types").Json | null;
93215
+ };
93216
+ Insert: {
93217
+ actor?: string | null;
93218
+ attempts?: number;
93219
+ cart_ref?: string | null;
93220
+ created_at?: string;
93221
+ db_action?: string | null;
93222
+ db_new?: import("../integrations/supabase/types").Json | null;
93223
+ db_old?: import("../integrations/supabase/types").Json | null;
93224
+ db_record?: string | null;
93225
+ db_table?: string | null;
93226
+ decision?: string | null;
93227
+ duration_ms?: number | null;
93228
+ error?: string | null;
93229
+ external_action?: string | null;
93230
+ external_ref?: string | null;
93231
+ external_response?: import("../integrations/supabase/types").Json | null;
93232
+ external_status?: string | null;
93233
+ external_system?: string | null;
93234
+ id?: string;
93235
+ input?: import("../integrations/supabase/types").Json | null;
93236
+ next_attempt_at?: string | null;
93237
+ order_ref?: string | null;
93238
+ order_source?: string | null;
93239
+ output?: import("../integrations/supabase/types").Json | null;
93240
+ phase: string;
93241
+ reads?: import("../integrations/supabase/types").Json | null;
93242
+ reason?: string | null;
93243
+ rule?: string | null;
93244
+ slip_ref?: string | null;
93245
+ status: string;
93246
+ step: string;
93247
+ trace_id?: string;
93248
+ values_used?: import("../integrations/supabase/types").Json | null;
93249
+ };
93250
+ Update: {
93251
+ actor?: string | null;
93252
+ attempts?: number;
93253
+ cart_ref?: string | null;
93254
+ created_at?: string;
93255
+ db_action?: string | null;
93256
+ db_new?: import("../integrations/supabase/types").Json | null;
93257
+ db_old?: import("../integrations/supabase/types").Json | null;
93258
+ db_record?: string | null;
93259
+ db_table?: string | null;
93260
+ decision?: string | null;
93261
+ duration_ms?: number | null;
93262
+ error?: string | null;
93263
+ external_action?: string | null;
93264
+ external_ref?: string | null;
93265
+ external_response?: import("../integrations/supabase/types").Json | null;
93266
+ external_status?: string | null;
93267
+ external_system?: string | null;
93268
+ id?: string;
93269
+ input?: import("../integrations/supabase/types").Json | null;
93270
+ next_attempt_at?: string | null;
93271
+ order_ref?: string | null;
93272
+ order_source?: string | null;
93273
+ output?: import("../integrations/supabase/types").Json | null;
93274
+ phase?: string;
93275
+ reads?: import("../integrations/supabase/types").Json | null;
93276
+ reason?: string | null;
93277
+ rule?: string | null;
93278
+ slip_ref?: string | null;
93279
+ status?: string;
93280
+ step?: string;
93281
+ trace_id?: string;
93282
+ values_used?: import("../integrations/supabase/types").Json | null;
93283
+ };
93284
+ Relationships: [];
93285
+ };
91201
93286
  logistics_variables: {
91202
93287
  Row: {
91203
93288
  created_at: string;
@@ -101770,6 +103855,15 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
101770
103855
  Args: never;
101771
103856
  Returns: boolean;
101772
103857
  };
103858
+ cancel_open_print_jobs: {
103859
+ Args: {
103860
+ _cutoff: string;
103861
+ };
103862
+ Returns: {
103863
+ extern_job_id: string;
103864
+ id: string;
103865
+ }[];
103866
+ };
101773
103867
  check_offer_product_available_stock: {
101774
103868
  Args: {
101775
103869
  p_campaign_product_id: string;
@@ -103382,6 +105476,12 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
103382
105476
  };
103383
105477
  Returns: import("../integrations/supabase/types").Json;
103384
105478
  };
105479
+ logistics_cart_plan_status_core: {
105480
+ Args: {
105481
+ p_ref: string;
105482
+ };
105483
+ Returns: import("../integrations/supabase/types").Json;
105484
+ };
103385
105485
  logistics_cart_release_reason: {
103386
105486
  Args: {
103387
105487
  p_cart_id: string;
@@ -103444,6 +105544,10 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
103444
105544
  unit_ref: string;
103445
105545
  }[];
103446
105546
  };
105547
+ logistics_carts_per_print: {
105548
+ Args: never;
105549
+ Returns: number;
105550
+ };
103447
105551
  logistics_check_order_allowed: {
103448
105552
  Args: {
103449
105553
  p_lines: import("../integrations/supabase/types").Json;
@@ -103810,6 +105914,12 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
103810
105914
  };
103811
105915
  Returns: import("../integrations/supabase/types").Json;
103812
105916
  };
105917
+ logistics_ensure_shipping_notes: {
105918
+ Args: {
105919
+ p_limit?: number;
105920
+ };
105921
+ Returns: import("../integrations/supabase/types").Json;
105922
+ };
103813
105923
  logistics_fail_task: {
103814
105924
  Args: {
103815
105925
  p_error: string;
@@ -103855,6 +105965,10 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
103855
105965
  isSetofReturn: false;
103856
105966
  };
103857
105967
  };
105968
+ logistics_fix_wrong_shipping_notes: {
105969
+ Args: never;
105970
+ Returns: import("../integrations/supabase/types").Json;
105971
+ };
103858
105972
  logistics_floriday_cart_plan: {
103859
105973
  Args: {
103860
105974
  p_order_id: string;
@@ -103882,6 +105996,10 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
103882
105996
  revision: number;
103883
105997
  }[];
103884
105998
  };
105999
+ logistics_floriday_delivery_note_create_enabled: {
106000
+ Args: never;
106001
+ Returns: boolean;
106002
+ };
103885
106003
  logistics_floriday_finish_push: {
103886
106004
  Args: {
103887
106005
  _error?: string;
@@ -104125,6 +106243,12 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
104125
106243
  };
104126
106244
  Returns: string;
104127
106245
  };
106246
+ logistics_payload_is_floriday: {
106247
+ Args: {
106248
+ _payload: import("../integrations/supabase/types").Json;
106249
+ };
106250
+ Returns: boolean;
106251
+ };
104128
106252
  logistics_pick_agenda: {
104129
106253
  Args: {
104130
106254
  p_from?: string;
@@ -104247,6 +106371,20 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
104247
106371
  Args: never;
104248
106372
  Returns: undefined;
104249
106373
  };
106374
+ logistics_plan_progress: {
106375
+ Args: {
106376
+ p_refs: string[];
106377
+ };
106378
+ Returns: {
106379
+ cart_plan_ready: boolean;
106380
+ cart_plan_reason: string;
106381
+ cart_plan_released: boolean;
106382
+ plan_progress: number;
106383
+ plan_state: string;
106384
+ plan_state_since: string;
106385
+ unit_ref: string;
106386
+ }[];
106387
+ };
104250
106388
  logistics_plan_prune: {
104251
106389
  Args: never;
104252
106390
  Returns: number;
@@ -104268,6 +106406,12 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
104268
106406
  };
104269
106407
  Returns: number;
104270
106408
  };
106409
+ logistics_plan_state_for: {
106410
+ Args: {
106411
+ p_ref: string;
106412
+ };
106413
+ Returns: import("../integrations/supabase/types").Json;
106414
+ };
104271
106415
  logistics_prepare_pick_documents: {
104272
106416
  Args: {
104273
106417
  p_limit?: number;
@@ -104326,6 +106470,12 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
104326
106470
  };
104327
106471
  Returns: import("../integrations/supabase/types").Json;
104328
106472
  };
106473
+ logistics_refresh_plan_state: {
106474
+ Args: {
106475
+ p_limit?: number;
106476
+ };
106477
+ Returns: import("../integrations/supabase/types").Json;
106478
+ };
104329
106479
  logistics_replan_all: {
104330
106480
  Args: {
104331
106481
  p_reason?: string;
@@ -104494,6 +106644,74 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
104494
106644
  };
104495
106645
  Returns: import("../integrations/supabase/types").Json;
104496
106646
  };
106647
+ logistics_shipping_note_job_for_slip: {
106648
+ Args: {
106649
+ _slip_job_id: string;
106650
+ };
106651
+ Returns: string;
106652
+ };
106653
+ logistics_shipping_notes_wake_all: {
106654
+ Args: never;
106655
+ Returns: import("../integrations/supabase/types").Json;
106656
+ };
106657
+ logistics_slip_is_floriday: {
106658
+ Args: {
106659
+ _slip_job_id: string;
106660
+ };
106661
+ Returns: boolean;
106662
+ };
106663
+ logistics_slip_note_claim: {
106664
+ Args: {
106665
+ _lease_seconds?: number;
106666
+ _limit?: number;
106667
+ };
106668
+ Returns: {
106669
+ attempts: number;
106670
+ batch_key: string | null;
106671
+ cart_id: string | null;
106672
+ created_at: string;
106673
+ error: string | null;
106674
+ error_code: string | null;
106675
+ fulfillment_order_id: string | null;
106676
+ id: string;
106677
+ locked_until: string | null;
106678
+ next_attempt_at: string | null;
106679
+ order_id: string | null;
106680
+ order_number: string | null;
106681
+ print_job_id: string | null;
106682
+ printer_id: string | null;
106683
+ retry_class: string | null;
106684
+ slip_job_id: string;
106685
+ status: string;
106686
+ updated_at: string;
106687
+ }[];
106688
+ SetofOptions: {
106689
+ from: "*";
106690
+ to: "logistics_slip_shipping_note";
106691
+ isOneToOne: false;
106692
+ isSetofReturn: true;
106693
+ };
106694
+ };
106695
+ logistics_slip_note_finish: {
106696
+ Args: {
106697
+ _error?: string;
106698
+ _error_code?: string;
106699
+ _fulfillment_order_id?: string;
106700
+ _id: string;
106701
+ _ok: boolean;
106702
+ _print_job_id?: string;
106703
+ _status?: string;
106704
+ };
106705
+ Returns: undefined;
106706
+ };
106707
+ logistics_slip_note_keep_waiting: {
106708
+ Args: {
106709
+ _class?: string;
106710
+ _id: string;
106711
+ _reason: string;
106712
+ };
106713
+ Returns: undefined;
106714
+ };
104497
106715
  logistics_sticker_follows_slip: {
104498
106716
  Args: never;
104499
106717
  Returns: boolean;
@@ -104548,6 +106766,40 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
104548
106766
  name: string;
104549
106767
  }[];
104550
106768
  };
106769
+ logistics_trace: {
106770
+ Args: {
106771
+ p: import("../integrations/supabase/types").Json;
106772
+ };
106773
+ Returns: string;
106774
+ };
106775
+ logistics_trace_batch: {
106776
+ Args: {
106777
+ p: import("../integrations/supabase/types").Json;
106778
+ };
106779
+ Returns: number;
106780
+ };
106781
+ logistics_trace_orders: {
106782
+ Args: {
106783
+ p_limit?: number;
106784
+ p_search?: string;
106785
+ p_since?: string;
106786
+ p_status?: string;
106787
+ };
106788
+ Returns: import("../integrations/supabase/types").Json;
106789
+ };
106790
+ logistics_trace_redact: {
106791
+ Args: {
106792
+ p: import("../integrations/supabase/types").Json;
106793
+ };
106794
+ Returns: import("../integrations/supabase/types").Json;
106795
+ };
106796
+ logistics_trace_timeline: {
106797
+ Args: {
106798
+ p_limit?: number;
106799
+ p_order_ref: string;
106800
+ };
106801
+ Returns: import("../integrations/supabase/types").Json;
106802
+ };
104551
106803
  logistics_upsert_task: {
104552
106804
  Args: {
104553
106805
  p_buffer_ref: string;
@@ -105589,6 +107841,10 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
105589
107841
  };
105590
107842
  Returns: undefined;
105591
107843
  };
107844
+ prune_floriday_api_log: {
107845
+ Args: never;
107846
+ Returns: number;
107847
+ };
105592
107848
  quote_create_from_source: {
105593
107849
  Args: {
105594
107850
  _payload?: import("../integrations/supabase/types").Json;
@@ -106465,6 +108721,10 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
106465
108721
  Args: never;
106466
108722
  Returns: string;
106467
108723
  };
108724
+ voorraad_cleanup_old_rows: {
108725
+ Args: never;
108726
+ Returns: import("../integrations/supabase/types").Json;
108727
+ };
106468
108728
  wake_print_queue: {
106469
108729
  Args: {
106470
108730
  _min_interval_ms?: number;