@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
@@ -2224,6 +2224,45 @@ export declare const getCustomerNote: import("@tanstack/start-client-core").Opti
2224
2224
  };
2225
2225
  Relationships: [];
2226
2226
  };
2227
+ customer_product_stickers: {
2228
+ Row: {
2229
+ created_at: string;
2230
+ customer_key: string;
2231
+ file_name: string;
2232
+ file_path: string;
2233
+ file_size: number | null;
2234
+ id: string;
2235
+ mime_type: string | null;
2236
+ trade_item_key: string;
2237
+ updated_at: string;
2238
+ uploaded_by: string | null;
2239
+ };
2240
+ Insert: {
2241
+ created_at?: string;
2242
+ customer_key: string;
2243
+ file_name: string;
2244
+ file_path: string;
2245
+ file_size?: number | null;
2246
+ id?: string;
2247
+ mime_type?: string | null;
2248
+ trade_item_key: string;
2249
+ updated_at?: string;
2250
+ uploaded_by?: string | null;
2251
+ };
2252
+ Update: {
2253
+ created_at?: string;
2254
+ customer_key?: string;
2255
+ file_name?: string;
2256
+ file_path?: string;
2257
+ file_size?: number | null;
2258
+ id?: string;
2259
+ mime_type?: string | null;
2260
+ trade_item_key?: string;
2261
+ updated_at?: string;
2262
+ uploaded_by?: string | null;
2263
+ };
2264
+ Relationships: [];
2265
+ };
2227
2266
  customer_selected_assortment: {
2228
2267
  Row: {
2229
2268
  article_number: string | null;
@@ -2272,6 +2311,30 @@ export declare const getCustomerNote: import("@tanstack/start-client-core").Opti
2272
2311
  referencedColumns: ["id"];
2273
2312
  }];
2274
2313
  };
2314
+ customer_sticker_settings: {
2315
+ Row: {
2316
+ created_at: string;
2317
+ customer_key: string;
2318
+ height_mm: number;
2319
+ updated_at: string;
2320
+ width_mm: number;
2321
+ };
2322
+ Insert: {
2323
+ created_at?: string;
2324
+ customer_key: string;
2325
+ height_mm?: number;
2326
+ updated_at?: string;
2327
+ width_mm?: number;
2328
+ };
2329
+ Update: {
2330
+ created_at?: string;
2331
+ customer_key?: string;
2332
+ height_mm?: number;
2333
+ updated_at?: string;
2334
+ width_mm?: number;
2335
+ };
2336
+ Relationships: [];
2337
+ };
2275
2338
  customer_trade_settings: {
2276
2339
  Row: {
2277
2340
  category: string;
@@ -5602,6 +5665,102 @@ export declare const getCustomerNote: import("@tanstack/start-client-core").Opti
5602
5665
  referencedColumns: ["id"];
5603
5666
  }];
5604
5667
  };
5668
+ floriday_api_log: {
5669
+ Row: {
5670
+ action: string | null;
5671
+ caller: string | null;
5672
+ connection_id: string | null;
5673
+ created_at: string;
5674
+ cursor_from: number | null;
5675
+ direction: string;
5676
+ duration_ms: number | null;
5677
+ environment: string | null;
5678
+ error: string | null;
5679
+ floriday_id: string | null;
5680
+ floriday_reference: string | null;
5681
+ http_status: number;
5682
+ id: string;
5683
+ item_count: number | null;
5684
+ kind: string | null;
5685
+ local_id: string | null;
5686
+ local_reference: string | null;
5687
+ method: string;
5688
+ module: string | null;
5689
+ ok: boolean;
5690
+ path: string;
5691
+ request: import("../integrations/supabase/types").Json | null;
5692
+ resource_type: string | null;
5693
+ response: import("../integrations/supabase/types").Json | null;
5694
+ write_log_id: string | null;
5695
+ };
5696
+ Insert: {
5697
+ action?: string | null;
5698
+ caller?: string | null;
5699
+ connection_id?: string | null;
5700
+ created_at?: string;
5701
+ cursor_from?: number | null;
5702
+ direction: string;
5703
+ duration_ms?: number | null;
5704
+ environment?: string | null;
5705
+ error?: string | null;
5706
+ floriday_id?: string | null;
5707
+ floriday_reference?: string | null;
5708
+ http_status?: number;
5709
+ id?: string;
5710
+ item_count?: number | null;
5711
+ kind?: string | null;
5712
+ local_id?: string | null;
5713
+ local_reference?: string | null;
5714
+ method: string;
5715
+ module?: string | null;
5716
+ ok?: boolean;
5717
+ path: string;
5718
+ request?: import("../integrations/supabase/types").Json | null;
5719
+ resource_type?: string | null;
5720
+ response?: import("../integrations/supabase/types").Json | null;
5721
+ write_log_id?: string | null;
5722
+ };
5723
+ Update: {
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
+ Relationships: [{
5751
+ foreignKeyName: "floriday_api_log_connection_id_fkey";
5752
+ columns: ["connection_id"];
5753
+ isOneToOne: false;
5754
+ referencedRelation: "floriday_connections";
5755
+ referencedColumns: ["id"];
5756
+ }, {
5757
+ foreignKeyName: "floriday_api_log_write_log_id_fkey";
5758
+ columns: ["write_log_id"];
5759
+ isOneToOne: false;
5760
+ referencedRelation: "floriday_write_log";
5761
+ referencedColumns: ["id"];
5762
+ }];
5763
+ };
5605
5764
  floriday_auction_letters_cache: {
5606
5765
  Row: {
5607
5766
  auction_letter_code: string;
@@ -6802,6 +6961,69 @@ export declare const getCustomerNote: import("@tanstack/start-client-core").Opti
6802
6961
  referencedColumns: ["id"];
6803
6962
  }];
6804
6963
  };
6964
+ floriday_link_templates: {
6965
+ Row: {
6966
+ created_at: string;
6967
+ floriday_url_template: string | null;
6968
+ is_active: boolean;
6969
+ label: string;
6970
+ local_url_template: string | null;
6971
+ resource_type: string;
6972
+ updated_at: string;
6973
+ };
6974
+ Insert: {
6975
+ created_at?: string;
6976
+ floriday_url_template?: string | null;
6977
+ is_active?: boolean;
6978
+ label: string;
6979
+ local_url_template?: string | null;
6980
+ resource_type: string;
6981
+ updated_at?: string;
6982
+ };
6983
+ Update: {
6984
+ created_at?: string;
6985
+ floriday_url_template?: string | null;
6986
+ is_active?: boolean;
6987
+ label?: string;
6988
+ local_url_template?: string | null;
6989
+ resource_type?: string;
6990
+ updated_at?: string;
6991
+ };
6992
+ Relationships: [];
6993
+ };
6994
+ floriday_log_retention: {
6995
+ Row: {
6996
+ created_at: string;
6997
+ direction: string | null;
6998
+ id: string;
6999
+ keep_failed_days: number | null;
7000
+ keep_ok_days: number | null;
7001
+ note: string | null;
7002
+ resource_type: string | null;
7003
+ updated_at: string;
7004
+ };
7005
+ Insert: {
7006
+ created_at?: string;
7007
+ direction?: string | null;
7008
+ id?: string;
7009
+ keep_failed_days?: number | null;
7010
+ keep_ok_days?: number | null;
7011
+ note?: string | null;
7012
+ resource_type?: string | null;
7013
+ updated_at?: string;
7014
+ };
7015
+ Update: {
7016
+ created_at?: string;
7017
+ direction?: string | null;
7018
+ id?: string;
7019
+ keep_failed_days?: number | null;
7020
+ keep_ok_days?: number | null;
7021
+ note?: string | null;
7022
+ resource_type?: string | null;
7023
+ updated_at?: string;
7024
+ };
7025
+ Relationships: [];
7026
+ };
6805
7027
  floriday_logistic_labels_cache: {
6806
7028
  Row: {
6807
7029
  byte_size: number | null;
@@ -10927,6 +11149,69 @@ export declare const getCustomerNote: import("@tanstack/start-client-core").Opti
10927
11149
  };
10928
11150
  Relationships: [];
10929
11151
  };
11152
+ logistics_slip_shipping_note: {
11153
+ Row: {
11154
+ attempts: number;
11155
+ batch_key: string | null;
11156
+ cart_id: string | null;
11157
+ created_at: string;
11158
+ error: string | null;
11159
+ error_code: string | null;
11160
+ fulfillment_order_id: string | null;
11161
+ id: string;
11162
+ locked_until: string | null;
11163
+ next_attempt_at: string | null;
11164
+ order_id: string | null;
11165
+ order_number: string | null;
11166
+ print_job_id: string | null;
11167
+ printer_id: string | null;
11168
+ retry_class: string | null;
11169
+ slip_job_id: string;
11170
+ status: string;
11171
+ updated_at: string;
11172
+ };
11173
+ Insert: {
11174
+ attempts?: number;
11175
+ batch_key?: string | null;
11176
+ cart_id?: string | null;
11177
+ created_at?: string;
11178
+ error?: string | null;
11179
+ error_code?: string | null;
11180
+ fulfillment_order_id?: string | null;
11181
+ id?: string;
11182
+ locked_until?: string | null;
11183
+ next_attempt_at?: string | null;
11184
+ order_id?: string | null;
11185
+ order_number?: string | null;
11186
+ print_job_id?: string | null;
11187
+ printer_id?: string | null;
11188
+ retry_class?: string | null;
11189
+ slip_job_id: string;
11190
+ status?: string;
11191
+ updated_at?: string;
11192
+ };
11193
+ Update: {
11194
+ attempts?: number;
11195
+ batch_key?: string | null;
11196
+ cart_id?: string | null;
11197
+ created_at?: string;
11198
+ error?: string | null;
11199
+ error_code?: string | null;
11200
+ fulfillment_order_id?: string | null;
11201
+ id?: string;
11202
+ locked_until?: string | null;
11203
+ next_attempt_at?: string | null;
11204
+ order_id?: string | null;
11205
+ order_number?: string | null;
11206
+ print_job_id?: string | null;
11207
+ printer_id?: string | null;
11208
+ retry_class?: string | null;
11209
+ slip_job_id?: string;
11210
+ status?: string;
11211
+ updated_at?: string;
11212
+ };
11213
+ Relationships: [];
11214
+ };
10930
11215
  logistics_staff_planning: {
10931
11216
  Row: {
10932
11217
  created_at: string;
@@ -11278,6 +11563,111 @@ export declare const getCustomerNote: import("@tanstack/start-client-core").Opti
11278
11563
  };
11279
11564
  Relationships: [];
11280
11565
  };
11566
+ logistics_trace_events: {
11567
+ Row: {
11568
+ actor: string | null;
11569
+ attempts: number;
11570
+ cart_ref: string | null;
11571
+ created_at: string;
11572
+ db_action: string | null;
11573
+ db_new: import("../integrations/supabase/types").Json | null;
11574
+ db_old: import("../integrations/supabase/types").Json | null;
11575
+ db_record: string | null;
11576
+ db_table: string | null;
11577
+ decision: string | null;
11578
+ duration_ms: number | null;
11579
+ error: string | null;
11580
+ external_action: string | null;
11581
+ external_ref: string | null;
11582
+ external_response: import("../integrations/supabase/types").Json | null;
11583
+ external_status: string | null;
11584
+ external_system: string | null;
11585
+ id: string;
11586
+ input: import("../integrations/supabase/types").Json | null;
11587
+ next_attempt_at: string | null;
11588
+ order_ref: string | null;
11589
+ order_source: string | null;
11590
+ output: import("../integrations/supabase/types").Json | null;
11591
+ phase: string;
11592
+ reads: import("../integrations/supabase/types").Json | null;
11593
+ reason: string | null;
11594
+ rule: string | null;
11595
+ slip_ref: string | null;
11596
+ status: string;
11597
+ step: string;
11598
+ trace_id: string;
11599
+ values_used: import("../integrations/supabase/types").Json | null;
11600
+ };
11601
+ Insert: {
11602
+ actor?: string | null;
11603
+ attempts?: number;
11604
+ cart_ref?: string | null;
11605
+ created_at?: string;
11606
+ db_action?: string | null;
11607
+ db_new?: import("../integrations/supabase/types").Json | null;
11608
+ db_old?: import("../integrations/supabase/types").Json | null;
11609
+ db_record?: string | null;
11610
+ db_table?: string | null;
11611
+ decision?: string | null;
11612
+ duration_ms?: number | null;
11613
+ error?: string | null;
11614
+ external_action?: string | null;
11615
+ external_ref?: string | null;
11616
+ external_response?: import("../integrations/supabase/types").Json | null;
11617
+ external_status?: string | null;
11618
+ external_system?: string | null;
11619
+ id?: string;
11620
+ input?: import("../integrations/supabase/types").Json | null;
11621
+ next_attempt_at?: string | null;
11622
+ order_ref?: string | null;
11623
+ order_source?: string | null;
11624
+ output?: import("../integrations/supabase/types").Json | null;
11625
+ phase: string;
11626
+ reads?: import("../integrations/supabase/types").Json | null;
11627
+ reason?: string | null;
11628
+ rule?: string | null;
11629
+ slip_ref?: string | null;
11630
+ status: string;
11631
+ step: string;
11632
+ trace_id?: string;
11633
+ values_used?: import("../integrations/supabase/types").Json | null;
11634
+ };
11635
+ Update: {
11636
+ actor?: string | null;
11637
+ attempts?: number;
11638
+ cart_ref?: string | null;
11639
+ created_at?: string;
11640
+ db_action?: string | null;
11641
+ db_new?: import("../integrations/supabase/types").Json | null;
11642
+ db_old?: import("../integrations/supabase/types").Json | null;
11643
+ db_record?: string | null;
11644
+ db_table?: string | null;
11645
+ decision?: string | null;
11646
+ duration_ms?: number | null;
11647
+ error?: string | null;
11648
+ external_action?: string | null;
11649
+ external_ref?: string | null;
11650
+ external_response?: import("../integrations/supabase/types").Json | null;
11651
+ external_status?: string | null;
11652
+ external_system?: string | null;
11653
+ id?: string;
11654
+ input?: import("../integrations/supabase/types").Json | null;
11655
+ next_attempt_at?: string | null;
11656
+ order_ref?: string | null;
11657
+ order_source?: string | null;
11658
+ output?: import("../integrations/supabase/types").Json | null;
11659
+ phase?: string;
11660
+ reads?: import("../integrations/supabase/types").Json | null;
11661
+ reason?: string | null;
11662
+ rule?: string | null;
11663
+ slip_ref?: string | null;
11664
+ status?: string;
11665
+ step?: string;
11666
+ trace_id?: string;
11667
+ values_used?: import("../integrations/supabase/types").Json | null;
11668
+ };
11669
+ Relationships: [];
11670
+ };
11281
11671
  logistics_variables: {
11282
11672
  Row: {
11283
11673
  created_at: string;
@@ -21850,6 +22240,15 @@ export declare const getCustomerNote: import("@tanstack/start-client-core").Opti
21850
22240
  Args: never;
21851
22241
  Returns: boolean;
21852
22242
  };
22243
+ cancel_open_print_jobs: {
22244
+ Args: {
22245
+ _cutoff: string;
22246
+ };
22247
+ Returns: {
22248
+ extern_job_id: string;
22249
+ id: string;
22250
+ }[];
22251
+ };
21853
22252
  check_offer_product_available_stock: {
21854
22253
  Args: {
21855
22254
  p_campaign_product_id: string;
@@ -23462,6 +23861,12 @@ export declare const getCustomerNote: import("@tanstack/start-client-core").Opti
23462
23861
  };
23463
23862
  Returns: import("../integrations/supabase/types").Json;
23464
23863
  };
23864
+ logistics_cart_plan_status_core: {
23865
+ Args: {
23866
+ p_ref: string;
23867
+ };
23868
+ Returns: import("../integrations/supabase/types").Json;
23869
+ };
23465
23870
  logistics_cart_release_reason: {
23466
23871
  Args: {
23467
23872
  p_cart_id: string;
@@ -23524,6 +23929,10 @@ export declare const getCustomerNote: import("@tanstack/start-client-core").Opti
23524
23929
  unit_ref: string;
23525
23930
  }[];
23526
23931
  };
23932
+ logistics_carts_per_print: {
23933
+ Args: never;
23934
+ Returns: number;
23935
+ };
23527
23936
  logistics_check_order_allowed: {
23528
23937
  Args: {
23529
23938
  p_lines: import("../integrations/supabase/types").Json;
@@ -23890,6 +24299,12 @@ export declare const getCustomerNote: import("@tanstack/start-client-core").Opti
23890
24299
  };
23891
24300
  Returns: import("../integrations/supabase/types").Json;
23892
24301
  };
24302
+ logistics_ensure_shipping_notes: {
24303
+ Args: {
24304
+ p_limit?: number;
24305
+ };
24306
+ Returns: import("../integrations/supabase/types").Json;
24307
+ };
23893
24308
  logistics_fail_task: {
23894
24309
  Args: {
23895
24310
  p_error: string;
@@ -23935,6 +24350,10 @@ export declare const getCustomerNote: import("@tanstack/start-client-core").Opti
23935
24350
  isSetofReturn: false;
23936
24351
  };
23937
24352
  };
24353
+ logistics_fix_wrong_shipping_notes: {
24354
+ Args: never;
24355
+ Returns: import("../integrations/supabase/types").Json;
24356
+ };
23938
24357
  logistics_floriday_cart_plan: {
23939
24358
  Args: {
23940
24359
  p_order_id: string;
@@ -23962,6 +24381,10 @@ export declare const getCustomerNote: import("@tanstack/start-client-core").Opti
23962
24381
  revision: number;
23963
24382
  }[];
23964
24383
  };
24384
+ logistics_floriday_delivery_note_create_enabled: {
24385
+ Args: never;
24386
+ Returns: boolean;
24387
+ };
23965
24388
  logistics_floriday_finish_push: {
23966
24389
  Args: {
23967
24390
  _error?: string;
@@ -24205,6 +24628,12 @@ export declare const getCustomerNote: import("@tanstack/start-client-core").Opti
24205
24628
  };
24206
24629
  Returns: string;
24207
24630
  };
24631
+ logistics_payload_is_floriday: {
24632
+ Args: {
24633
+ _payload: import("../integrations/supabase/types").Json;
24634
+ };
24635
+ Returns: boolean;
24636
+ };
24208
24637
  logistics_pick_agenda: {
24209
24638
  Args: {
24210
24639
  p_from?: string;
@@ -24327,6 +24756,20 @@ export declare const getCustomerNote: import("@tanstack/start-client-core").Opti
24327
24756
  Args: never;
24328
24757
  Returns: undefined;
24329
24758
  };
24759
+ logistics_plan_progress: {
24760
+ Args: {
24761
+ p_refs: string[];
24762
+ };
24763
+ Returns: {
24764
+ cart_plan_ready: boolean;
24765
+ cart_plan_reason: string;
24766
+ cart_plan_released: boolean;
24767
+ plan_progress: number;
24768
+ plan_state: string;
24769
+ plan_state_since: string;
24770
+ unit_ref: string;
24771
+ }[];
24772
+ };
24330
24773
  logistics_plan_prune: {
24331
24774
  Args: never;
24332
24775
  Returns: number;
@@ -24348,6 +24791,12 @@ export declare const getCustomerNote: import("@tanstack/start-client-core").Opti
24348
24791
  };
24349
24792
  Returns: number;
24350
24793
  };
24794
+ logistics_plan_state_for: {
24795
+ Args: {
24796
+ p_ref: string;
24797
+ };
24798
+ Returns: import("../integrations/supabase/types").Json;
24799
+ };
24351
24800
  logistics_prepare_pick_documents: {
24352
24801
  Args: {
24353
24802
  p_limit?: number;
@@ -24406,6 +24855,12 @@ export declare const getCustomerNote: import("@tanstack/start-client-core").Opti
24406
24855
  };
24407
24856
  Returns: import("../integrations/supabase/types").Json;
24408
24857
  };
24858
+ logistics_refresh_plan_state: {
24859
+ Args: {
24860
+ p_limit?: number;
24861
+ };
24862
+ Returns: import("../integrations/supabase/types").Json;
24863
+ };
24409
24864
  logistics_replan_all: {
24410
24865
  Args: {
24411
24866
  p_reason?: string;
@@ -24574,6 +25029,74 @@ export declare const getCustomerNote: import("@tanstack/start-client-core").Opti
24574
25029
  };
24575
25030
  Returns: import("../integrations/supabase/types").Json;
24576
25031
  };
25032
+ logistics_shipping_note_job_for_slip: {
25033
+ Args: {
25034
+ _slip_job_id: string;
25035
+ };
25036
+ Returns: string;
25037
+ };
25038
+ logistics_shipping_notes_wake_all: {
25039
+ Args: never;
25040
+ Returns: import("../integrations/supabase/types").Json;
25041
+ };
25042
+ logistics_slip_is_floriday: {
25043
+ Args: {
25044
+ _slip_job_id: string;
25045
+ };
25046
+ Returns: boolean;
25047
+ };
25048
+ logistics_slip_note_claim: {
25049
+ Args: {
25050
+ _lease_seconds?: number;
25051
+ _limit?: number;
25052
+ };
25053
+ Returns: {
25054
+ attempts: number;
25055
+ batch_key: string | null;
25056
+ cart_id: string | null;
25057
+ created_at: string;
25058
+ error: string | null;
25059
+ error_code: string | null;
25060
+ fulfillment_order_id: string | null;
25061
+ id: string;
25062
+ locked_until: string | null;
25063
+ next_attempt_at: string | null;
25064
+ order_id: string | null;
25065
+ order_number: string | null;
25066
+ print_job_id: string | null;
25067
+ printer_id: string | null;
25068
+ retry_class: string | null;
25069
+ slip_job_id: string;
25070
+ status: string;
25071
+ updated_at: string;
25072
+ }[];
25073
+ SetofOptions: {
25074
+ from: "*";
25075
+ to: "logistics_slip_shipping_note";
25076
+ isOneToOne: false;
25077
+ isSetofReturn: true;
25078
+ };
25079
+ };
25080
+ logistics_slip_note_finish: {
25081
+ Args: {
25082
+ _error?: string;
25083
+ _error_code?: string;
25084
+ _fulfillment_order_id?: string;
25085
+ _id: string;
25086
+ _ok: boolean;
25087
+ _print_job_id?: string;
25088
+ _status?: string;
25089
+ };
25090
+ Returns: undefined;
25091
+ };
25092
+ logistics_slip_note_keep_waiting: {
25093
+ Args: {
25094
+ _class?: string;
25095
+ _id: string;
25096
+ _reason: string;
25097
+ };
25098
+ Returns: undefined;
25099
+ };
24577
25100
  logistics_sticker_follows_slip: {
24578
25101
  Args: never;
24579
25102
  Returns: boolean;
@@ -24628,6 +25151,40 @@ export declare const getCustomerNote: import("@tanstack/start-client-core").Opti
24628
25151
  name: string;
24629
25152
  }[];
24630
25153
  };
25154
+ logistics_trace: {
25155
+ Args: {
25156
+ p: import("../integrations/supabase/types").Json;
25157
+ };
25158
+ Returns: string;
25159
+ };
25160
+ logistics_trace_batch: {
25161
+ Args: {
25162
+ p: import("../integrations/supabase/types").Json;
25163
+ };
25164
+ Returns: number;
25165
+ };
25166
+ logistics_trace_orders: {
25167
+ Args: {
25168
+ p_limit?: number;
25169
+ p_search?: string;
25170
+ p_since?: string;
25171
+ p_status?: string;
25172
+ };
25173
+ Returns: import("../integrations/supabase/types").Json;
25174
+ };
25175
+ logistics_trace_redact: {
25176
+ Args: {
25177
+ p: import("../integrations/supabase/types").Json;
25178
+ };
25179
+ Returns: import("../integrations/supabase/types").Json;
25180
+ };
25181
+ logistics_trace_timeline: {
25182
+ Args: {
25183
+ p_limit?: number;
25184
+ p_order_ref: string;
25185
+ };
25186
+ Returns: import("../integrations/supabase/types").Json;
25187
+ };
24631
25188
  logistics_upsert_task: {
24632
25189
  Args: {
24633
25190
  p_buffer_ref: string;
@@ -25669,6 +26226,10 @@ export declare const getCustomerNote: import("@tanstack/start-client-core").Opti
25669
26226
  };
25670
26227
  Returns: undefined;
25671
26228
  };
26229
+ prune_floriday_api_log: {
26230
+ Args: never;
26231
+ Returns: number;
26232
+ };
25672
26233
  quote_create_from_source: {
25673
26234
  Args: {
25674
26235
  _payload?: import("../integrations/supabase/types").Json;
@@ -26545,6 +27106,10 @@ export declare const getCustomerNote: import("@tanstack/start-client-core").Opti
26545
27106
  Args: never;
26546
27107
  Returns: string;
26547
27108
  };
27109
+ voorraad_cleanup_old_rows: {
27110
+ Args: never;
27111
+ Returns: import("../integrations/supabase/types").Json;
27112
+ };
26548
27113
  wake_print_queue: {
26549
27114
  Args: {
26550
27115
  _min_interval_ms?: number;
@@ -28846,6 +29411,45 @@ export declare const upsertCustomerNote: import("@tanstack/start-client-core").O
28846
29411
  };
28847
29412
  Relationships: [];
28848
29413
  };
29414
+ customer_product_stickers: {
29415
+ Row: {
29416
+ created_at: string;
29417
+ customer_key: string;
29418
+ file_name: string;
29419
+ file_path: string;
29420
+ file_size: number | null;
29421
+ id: string;
29422
+ mime_type: string | null;
29423
+ trade_item_key: string;
29424
+ updated_at: string;
29425
+ uploaded_by: string | null;
29426
+ };
29427
+ Insert: {
29428
+ created_at?: string;
29429
+ customer_key: string;
29430
+ file_name: string;
29431
+ file_path: string;
29432
+ file_size?: number | null;
29433
+ id?: string;
29434
+ mime_type?: string | null;
29435
+ trade_item_key: string;
29436
+ updated_at?: string;
29437
+ uploaded_by?: string | null;
29438
+ };
29439
+ Update: {
29440
+ created_at?: string;
29441
+ customer_key?: string;
29442
+ file_name?: string;
29443
+ file_path?: string;
29444
+ file_size?: number | null;
29445
+ id?: string;
29446
+ mime_type?: string | null;
29447
+ trade_item_key?: string;
29448
+ updated_at?: string;
29449
+ uploaded_by?: string | null;
29450
+ };
29451
+ Relationships: [];
29452
+ };
28849
29453
  customer_selected_assortment: {
28850
29454
  Row: {
28851
29455
  article_number: string | null;
@@ -28894,6 +29498,30 @@ export declare const upsertCustomerNote: import("@tanstack/start-client-core").O
28894
29498
  referencedColumns: ["id"];
28895
29499
  }];
28896
29500
  };
29501
+ customer_sticker_settings: {
29502
+ Row: {
29503
+ created_at: string;
29504
+ customer_key: string;
29505
+ height_mm: number;
29506
+ updated_at: string;
29507
+ width_mm: number;
29508
+ };
29509
+ Insert: {
29510
+ created_at?: string;
29511
+ customer_key: string;
29512
+ height_mm?: number;
29513
+ updated_at?: string;
29514
+ width_mm?: number;
29515
+ };
29516
+ Update: {
29517
+ created_at?: string;
29518
+ customer_key?: string;
29519
+ height_mm?: number;
29520
+ updated_at?: string;
29521
+ width_mm?: number;
29522
+ };
29523
+ Relationships: [];
29524
+ };
28897
29525
  customer_trade_settings: {
28898
29526
  Row: {
28899
29527
  category: string;
@@ -32224,6 +32852,102 @@ export declare const upsertCustomerNote: import("@tanstack/start-client-core").O
32224
32852
  referencedColumns: ["id"];
32225
32853
  }];
32226
32854
  };
32855
+ floriday_api_log: {
32856
+ Row: {
32857
+ action: string | null;
32858
+ caller: string | null;
32859
+ connection_id: string | null;
32860
+ created_at: string;
32861
+ cursor_from: number | null;
32862
+ direction: string;
32863
+ duration_ms: number | null;
32864
+ environment: string | null;
32865
+ error: string | null;
32866
+ floriday_id: string | null;
32867
+ floriday_reference: string | null;
32868
+ http_status: number;
32869
+ id: string;
32870
+ item_count: number | null;
32871
+ kind: string | null;
32872
+ local_id: string | null;
32873
+ local_reference: string | null;
32874
+ method: string;
32875
+ module: string | null;
32876
+ ok: boolean;
32877
+ path: string;
32878
+ request: import("../integrations/supabase/types").Json | null;
32879
+ resource_type: string | null;
32880
+ response: import("../integrations/supabase/types").Json | null;
32881
+ write_log_id: string | null;
32882
+ };
32883
+ Insert: {
32884
+ action?: string | null;
32885
+ caller?: string | null;
32886
+ connection_id?: string | null;
32887
+ created_at?: string;
32888
+ cursor_from?: number | null;
32889
+ direction: string;
32890
+ duration_ms?: number | null;
32891
+ environment?: string | null;
32892
+ error?: string | null;
32893
+ floriday_id?: string | null;
32894
+ floriday_reference?: string | null;
32895
+ http_status?: number;
32896
+ id?: string;
32897
+ item_count?: number | null;
32898
+ kind?: string | null;
32899
+ local_id?: string | null;
32900
+ local_reference?: string | null;
32901
+ method: string;
32902
+ module?: string | null;
32903
+ ok?: boolean;
32904
+ path: string;
32905
+ request?: import("../integrations/supabase/types").Json | null;
32906
+ resource_type?: string | null;
32907
+ response?: import("../integrations/supabase/types").Json | null;
32908
+ write_log_id?: string | null;
32909
+ };
32910
+ Update: {
32911
+ action?: string | null;
32912
+ caller?: string | null;
32913
+ connection_id?: string | null;
32914
+ created_at?: string;
32915
+ cursor_from?: number | null;
32916
+ direction?: string;
32917
+ duration_ms?: number | null;
32918
+ environment?: string | null;
32919
+ error?: string | null;
32920
+ floriday_id?: string | null;
32921
+ floriday_reference?: string | null;
32922
+ http_status?: number;
32923
+ id?: string;
32924
+ item_count?: number | null;
32925
+ kind?: string | null;
32926
+ local_id?: string | null;
32927
+ local_reference?: string | null;
32928
+ method?: string;
32929
+ module?: string | null;
32930
+ ok?: boolean;
32931
+ path?: string;
32932
+ request?: import("../integrations/supabase/types").Json | null;
32933
+ resource_type?: string | null;
32934
+ response?: import("../integrations/supabase/types").Json | null;
32935
+ write_log_id?: string | null;
32936
+ };
32937
+ Relationships: [{
32938
+ foreignKeyName: "floriday_api_log_connection_id_fkey";
32939
+ columns: ["connection_id"];
32940
+ isOneToOne: false;
32941
+ referencedRelation: "floriday_connections";
32942
+ referencedColumns: ["id"];
32943
+ }, {
32944
+ foreignKeyName: "floriday_api_log_write_log_id_fkey";
32945
+ columns: ["write_log_id"];
32946
+ isOneToOne: false;
32947
+ referencedRelation: "floriday_write_log";
32948
+ referencedColumns: ["id"];
32949
+ }];
32950
+ };
32227
32951
  floriday_auction_letters_cache: {
32228
32952
  Row: {
32229
32953
  auction_letter_code: string;
@@ -33424,6 +34148,69 @@ export declare const upsertCustomerNote: import("@tanstack/start-client-core").O
33424
34148
  referencedColumns: ["id"];
33425
34149
  }];
33426
34150
  };
34151
+ floriday_link_templates: {
34152
+ Row: {
34153
+ created_at: string;
34154
+ floriday_url_template: string | null;
34155
+ is_active: boolean;
34156
+ label: string;
34157
+ local_url_template: string | null;
34158
+ resource_type: string;
34159
+ updated_at: string;
34160
+ };
34161
+ Insert: {
34162
+ created_at?: string;
34163
+ floriday_url_template?: string | null;
34164
+ is_active?: boolean;
34165
+ label: string;
34166
+ local_url_template?: string | null;
34167
+ resource_type: string;
34168
+ updated_at?: string;
34169
+ };
34170
+ Update: {
34171
+ created_at?: string;
34172
+ floriday_url_template?: string | null;
34173
+ is_active?: boolean;
34174
+ label?: string;
34175
+ local_url_template?: string | null;
34176
+ resource_type?: string;
34177
+ updated_at?: string;
34178
+ };
34179
+ Relationships: [];
34180
+ };
34181
+ floriday_log_retention: {
34182
+ Row: {
34183
+ created_at: string;
34184
+ direction: string | null;
34185
+ id: string;
34186
+ keep_failed_days: number | null;
34187
+ keep_ok_days: number | null;
34188
+ note: string | null;
34189
+ resource_type: string | null;
34190
+ updated_at: string;
34191
+ };
34192
+ Insert: {
34193
+ created_at?: string;
34194
+ direction?: string | null;
34195
+ id?: string;
34196
+ keep_failed_days?: number | null;
34197
+ keep_ok_days?: number | null;
34198
+ note?: string | null;
34199
+ resource_type?: string | null;
34200
+ updated_at?: string;
34201
+ };
34202
+ Update: {
34203
+ created_at?: string;
34204
+ direction?: string | null;
34205
+ id?: string;
34206
+ keep_failed_days?: number | null;
34207
+ keep_ok_days?: number | null;
34208
+ note?: string | null;
34209
+ resource_type?: string | null;
34210
+ updated_at?: string;
34211
+ };
34212
+ Relationships: [];
34213
+ };
33427
34214
  floriday_logistic_labels_cache: {
33428
34215
  Row: {
33429
34216
  byte_size: number | null;
@@ -37549,6 +38336,69 @@ export declare const upsertCustomerNote: import("@tanstack/start-client-core").O
37549
38336
  };
37550
38337
  Relationships: [];
37551
38338
  };
38339
+ logistics_slip_shipping_note: {
38340
+ Row: {
38341
+ attempts: number;
38342
+ batch_key: string | null;
38343
+ cart_id: string | null;
38344
+ created_at: string;
38345
+ error: string | null;
38346
+ error_code: string | null;
38347
+ fulfillment_order_id: string | null;
38348
+ id: string;
38349
+ locked_until: string | null;
38350
+ next_attempt_at: string | null;
38351
+ order_id: string | null;
38352
+ order_number: string | null;
38353
+ print_job_id: string | null;
38354
+ printer_id: string | null;
38355
+ retry_class: string | null;
38356
+ slip_job_id: string;
38357
+ status: string;
38358
+ updated_at: string;
38359
+ };
38360
+ Insert: {
38361
+ attempts?: number;
38362
+ batch_key?: string | null;
38363
+ cart_id?: string | null;
38364
+ created_at?: string;
38365
+ error?: string | null;
38366
+ error_code?: string | null;
38367
+ fulfillment_order_id?: string | null;
38368
+ id?: string;
38369
+ locked_until?: string | null;
38370
+ next_attempt_at?: string | null;
38371
+ order_id?: string | null;
38372
+ order_number?: string | null;
38373
+ print_job_id?: string | null;
38374
+ printer_id?: string | null;
38375
+ retry_class?: string | null;
38376
+ slip_job_id: string;
38377
+ status?: string;
38378
+ updated_at?: string;
38379
+ };
38380
+ Update: {
38381
+ attempts?: number;
38382
+ batch_key?: string | null;
38383
+ cart_id?: string | null;
38384
+ created_at?: string;
38385
+ error?: string | null;
38386
+ error_code?: string | null;
38387
+ fulfillment_order_id?: string | null;
38388
+ id?: string;
38389
+ locked_until?: string | null;
38390
+ next_attempt_at?: string | null;
38391
+ order_id?: string | null;
38392
+ order_number?: string | null;
38393
+ print_job_id?: string | null;
38394
+ printer_id?: string | null;
38395
+ retry_class?: string | null;
38396
+ slip_job_id?: string;
38397
+ status?: string;
38398
+ updated_at?: string;
38399
+ };
38400
+ Relationships: [];
38401
+ };
37552
38402
  logistics_staff_planning: {
37553
38403
  Row: {
37554
38404
  created_at: string;
@@ -37900,6 +38750,111 @@ export declare const upsertCustomerNote: import("@tanstack/start-client-core").O
37900
38750
  };
37901
38751
  Relationships: [];
37902
38752
  };
38753
+ logistics_trace_events: {
38754
+ Row: {
38755
+ actor: string | null;
38756
+ attempts: number;
38757
+ cart_ref: string | null;
38758
+ created_at: string;
38759
+ db_action: string | null;
38760
+ db_new: import("../integrations/supabase/types").Json | null;
38761
+ db_old: import("../integrations/supabase/types").Json | null;
38762
+ db_record: string | null;
38763
+ db_table: string | null;
38764
+ decision: string | null;
38765
+ duration_ms: number | null;
38766
+ error: string | null;
38767
+ external_action: string | null;
38768
+ external_ref: string | null;
38769
+ external_response: import("../integrations/supabase/types").Json | null;
38770
+ external_status: string | null;
38771
+ external_system: string | null;
38772
+ id: string;
38773
+ input: import("../integrations/supabase/types").Json | null;
38774
+ next_attempt_at: string | null;
38775
+ order_ref: string | null;
38776
+ order_source: string | null;
38777
+ output: import("../integrations/supabase/types").Json | null;
38778
+ phase: string;
38779
+ reads: import("../integrations/supabase/types").Json | null;
38780
+ reason: string | null;
38781
+ rule: string | null;
38782
+ slip_ref: string | null;
38783
+ status: string;
38784
+ step: string;
38785
+ trace_id: string;
38786
+ values_used: import("../integrations/supabase/types").Json | null;
38787
+ };
38788
+ Insert: {
38789
+ actor?: string | null;
38790
+ attempts?: number;
38791
+ cart_ref?: string | null;
38792
+ created_at?: string;
38793
+ db_action?: string | null;
38794
+ db_new?: import("../integrations/supabase/types").Json | null;
38795
+ db_old?: import("../integrations/supabase/types").Json | null;
38796
+ db_record?: string | null;
38797
+ db_table?: string | null;
38798
+ decision?: string | null;
38799
+ duration_ms?: number | null;
38800
+ error?: string | null;
38801
+ external_action?: string | null;
38802
+ external_ref?: string | null;
38803
+ external_response?: import("../integrations/supabase/types").Json | null;
38804
+ external_status?: string | null;
38805
+ external_system?: string | null;
38806
+ id?: string;
38807
+ input?: import("../integrations/supabase/types").Json | null;
38808
+ next_attempt_at?: string | null;
38809
+ order_ref?: string | null;
38810
+ order_source?: string | null;
38811
+ output?: import("../integrations/supabase/types").Json | null;
38812
+ phase: string;
38813
+ reads?: import("../integrations/supabase/types").Json | null;
38814
+ reason?: string | null;
38815
+ rule?: string | null;
38816
+ slip_ref?: string | null;
38817
+ status: string;
38818
+ step: string;
38819
+ trace_id?: string;
38820
+ values_used?: import("../integrations/supabase/types").Json | null;
38821
+ };
38822
+ Update: {
38823
+ actor?: string | null;
38824
+ attempts?: number;
38825
+ cart_ref?: string | null;
38826
+ created_at?: string;
38827
+ db_action?: string | null;
38828
+ db_new?: import("../integrations/supabase/types").Json | null;
38829
+ db_old?: import("../integrations/supabase/types").Json | null;
38830
+ db_record?: string | null;
38831
+ db_table?: string | null;
38832
+ decision?: string | null;
38833
+ duration_ms?: number | null;
38834
+ error?: string | null;
38835
+ external_action?: string | null;
38836
+ external_ref?: string | null;
38837
+ external_response?: import("../integrations/supabase/types").Json | null;
38838
+ external_status?: string | null;
38839
+ external_system?: string | null;
38840
+ id?: string;
38841
+ input?: import("../integrations/supabase/types").Json | null;
38842
+ next_attempt_at?: string | null;
38843
+ order_ref?: string | null;
38844
+ order_source?: string | null;
38845
+ output?: import("../integrations/supabase/types").Json | null;
38846
+ phase?: string;
38847
+ reads?: import("../integrations/supabase/types").Json | null;
38848
+ reason?: string | null;
38849
+ rule?: string | null;
38850
+ slip_ref?: string | null;
38851
+ status?: string;
38852
+ step?: string;
38853
+ trace_id?: string;
38854
+ values_used?: import("../integrations/supabase/types").Json | null;
38855
+ };
38856
+ Relationships: [];
38857
+ };
37903
38858
  logistics_variables: {
37904
38859
  Row: {
37905
38860
  created_at: string;
@@ -48472,6 +49427,15 @@ export declare const upsertCustomerNote: import("@tanstack/start-client-core").O
48472
49427
  Args: never;
48473
49428
  Returns: boolean;
48474
49429
  };
49430
+ cancel_open_print_jobs: {
49431
+ Args: {
49432
+ _cutoff: string;
49433
+ };
49434
+ Returns: {
49435
+ extern_job_id: string;
49436
+ id: string;
49437
+ }[];
49438
+ };
48475
49439
  check_offer_product_available_stock: {
48476
49440
  Args: {
48477
49441
  p_campaign_product_id: string;
@@ -50084,6 +51048,12 @@ export declare const upsertCustomerNote: import("@tanstack/start-client-core").O
50084
51048
  };
50085
51049
  Returns: import("../integrations/supabase/types").Json;
50086
51050
  };
51051
+ logistics_cart_plan_status_core: {
51052
+ Args: {
51053
+ p_ref: string;
51054
+ };
51055
+ Returns: import("../integrations/supabase/types").Json;
51056
+ };
50087
51057
  logistics_cart_release_reason: {
50088
51058
  Args: {
50089
51059
  p_cart_id: string;
@@ -50146,6 +51116,10 @@ export declare const upsertCustomerNote: import("@tanstack/start-client-core").O
50146
51116
  unit_ref: string;
50147
51117
  }[];
50148
51118
  };
51119
+ logistics_carts_per_print: {
51120
+ Args: never;
51121
+ Returns: number;
51122
+ };
50149
51123
  logistics_check_order_allowed: {
50150
51124
  Args: {
50151
51125
  p_lines: import("../integrations/supabase/types").Json;
@@ -50512,6 +51486,12 @@ export declare const upsertCustomerNote: import("@tanstack/start-client-core").O
50512
51486
  };
50513
51487
  Returns: import("../integrations/supabase/types").Json;
50514
51488
  };
51489
+ logistics_ensure_shipping_notes: {
51490
+ Args: {
51491
+ p_limit?: number;
51492
+ };
51493
+ Returns: import("../integrations/supabase/types").Json;
51494
+ };
50515
51495
  logistics_fail_task: {
50516
51496
  Args: {
50517
51497
  p_error: string;
@@ -50557,6 +51537,10 @@ export declare const upsertCustomerNote: import("@tanstack/start-client-core").O
50557
51537
  isSetofReturn: false;
50558
51538
  };
50559
51539
  };
51540
+ logistics_fix_wrong_shipping_notes: {
51541
+ Args: never;
51542
+ Returns: import("../integrations/supabase/types").Json;
51543
+ };
50560
51544
  logistics_floriday_cart_plan: {
50561
51545
  Args: {
50562
51546
  p_order_id: string;
@@ -50584,6 +51568,10 @@ export declare const upsertCustomerNote: import("@tanstack/start-client-core").O
50584
51568
  revision: number;
50585
51569
  }[];
50586
51570
  };
51571
+ logistics_floriday_delivery_note_create_enabled: {
51572
+ Args: never;
51573
+ Returns: boolean;
51574
+ };
50587
51575
  logistics_floriday_finish_push: {
50588
51576
  Args: {
50589
51577
  _error?: string;
@@ -50827,6 +51815,12 @@ export declare const upsertCustomerNote: import("@tanstack/start-client-core").O
50827
51815
  };
50828
51816
  Returns: string;
50829
51817
  };
51818
+ logistics_payload_is_floriday: {
51819
+ Args: {
51820
+ _payload: import("../integrations/supabase/types").Json;
51821
+ };
51822
+ Returns: boolean;
51823
+ };
50830
51824
  logistics_pick_agenda: {
50831
51825
  Args: {
50832
51826
  p_from?: string;
@@ -50949,6 +51943,20 @@ export declare const upsertCustomerNote: import("@tanstack/start-client-core").O
50949
51943
  Args: never;
50950
51944
  Returns: undefined;
50951
51945
  };
51946
+ logistics_plan_progress: {
51947
+ Args: {
51948
+ p_refs: string[];
51949
+ };
51950
+ Returns: {
51951
+ cart_plan_ready: boolean;
51952
+ cart_plan_reason: string;
51953
+ cart_plan_released: boolean;
51954
+ plan_progress: number;
51955
+ plan_state: string;
51956
+ plan_state_since: string;
51957
+ unit_ref: string;
51958
+ }[];
51959
+ };
50952
51960
  logistics_plan_prune: {
50953
51961
  Args: never;
50954
51962
  Returns: number;
@@ -50970,6 +51978,12 @@ export declare const upsertCustomerNote: import("@tanstack/start-client-core").O
50970
51978
  };
50971
51979
  Returns: number;
50972
51980
  };
51981
+ logistics_plan_state_for: {
51982
+ Args: {
51983
+ p_ref: string;
51984
+ };
51985
+ Returns: import("../integrations/supabase/types").Json;
51986
+ };
50973
51987
  logistics_prepare_pick_documents: {
50974
51988
  Args: {
50975
51989
  p_limit?: number;
@@ -51028,6 +52042,12 @@ export declare const upsertCustomerNote: import("@tanstack/start-client-core").O
51028
52042
  };
51029
52043
  Returns: import("../integrations/supabase/types").Json;
51030
52044
  };
52045
+ logistics_refresh_plan_state: {
52046
+ Args: {
52047
+ p_limit?: number;
52048
+ };
52049
+ Returns: import("../integrations/supabase/types").Json;
52050
+ };
51031
52051
  logistics_replan_all: {
51032
52052
  Args: {
51033
52053
  p_reason?: string;
@@ -51196,6 +52216,74 @@ export declare const upsertCustomerNote: import("@tanstack/start-client-core").O
51196
52216
  };
51197
52217
  Returns: import("../integrations/supabase/types").Json;
51198
52218
  };
52219
+ logistics_shipping_note_job_for_slip: {
52220
+ Args: {
52221
+ _slip_job_id: string;
52222
+ };
52223
+ Returns: string;
52224
+ };
52225
+ logistics_shipping_notes_wake_all: {
52226
+ Args: never;
52227
+ Returns: import("../integrations/supabase/types").Json;
52228
+ };
52229
+ logistics_slip_is_floriday: {
52230
+ Args: {
52231
+ _slip_job_id: string;
52232
+ };
52233
+ Returns: boolean;
52234
+ };
52235
+ logistics_slip_note_claim: {
52236
+ Args: {
52237
+ _lease_seconds?: number;
52238
+ _limit?: number;
52239
+ };
52240
+ Returns: {
52241
+ attempts: number;
52242
+ batch_key: string | null;
52243
+ cart_id: string | null;
52244
+ created_at: string;
52245
+ error: string | null;
52246
+ error_code: string | null;
52247
+ fulfillment_order_id: string | null;
52248
+ id: string;
52249
+ locked_until: string | null;
52250
+ next_attempt_at: string | null;
52251
+ order_id: string | null;
52252
+ order_number: string | null;
52253
+ print_job_id: string | null;
52254
+ printer_id: string | null;
52255
+ retry_class: string | null;
52256
+ slip_job_id: string;
52257
+ status: string;
52258
+ updated_at: string;
52259
+ }[];
52260
+ SetofOptions: {
52261
+ from: "*";
52262
+ to: "logistics_slip_shipping_note";
52263
+ isOneToOne: false;
52264
+ isSetofReturn: true;
52265
+ };
52266
+ };
52267
+ logistics_slip_note_finish: {
52268
+ Args: {
52269
+ _error?: string;
52270
+ _error_code?: string;
52271
+ _fulfillment_order_id?: string;
52272
+ _id: string;
52273
+ _ok: boolean;
52274
+ _print_job_id?: string;
52275
+ _status?: string;
52276
+ };
52277
+ Returns: undefined;
52278
+ };
52279
+ logistics_slip_note_keep_waiting: {
52280
+ Args: {
52281
+ _class?: string;
52282
+ _id: string;
52283
+ _reason: string;
52284
+ };
52285
+ Returns: undefined;
52286
+ };
51199
52287
  logistics_sticker_follows_slip: {
51200
52288
  Args: never;
51201
52289
  Returns: boolean;
@@ -51250,6 +52338,40 @@ export declare const upsertCustomerNote: import("@tanstack/start-client-core").O
51250
52338
  name: string;
51251
52339
  }[];
51252
52340
  };
52341
+ logistics_trace: {
52342
+ Args: {
52343
+ p: import("../integrations/supabase/types").Json;
52344
+ };
52345
+ Returns: string;
52346
+ };
52347
+ logistics_trace_batch: {
52348
+ Args: {
52349
+ p: import("../integrations/supabase/types").Json;
52350
+ };
52351
+ Returns: number;
52352
+ };
52353
+ logistics_trace_orders: {
52354
+ Args: {
52355
+ p_limit?: number;
52356
+ p_search?: string;
52357
+ p_since?: string;
52358
+ p_status?: string;
52359
+ };
52360
+ Returns: import("../integrations/supabase/types").Json;
52361
+ };
52362
+ logistics_trace_redact: {
52363
+ Args: {
52364
+ p: import("../integrations/supabase/types").Json;
52365
+ };
52366
+ Returns: import("../integrations/supabase/types").Json;
52367
+ };
52368
+ logistics_trace_timeline: {
52369
+ Args: {
52370
+ p_limit?: number;
52371
+ p_order_ref: string;
52372
+ };
52373
+ Returns: import("../integrations/supabase/types").Json;
52374
+ };
51253
52375
  logistics_upsert_task: {
51254
52376
  Args: {
51255
52377
  p_buffer_ref: string;
@@ -52291,6 +53413,10 @@ export declare const upsertCustomerNote: import("@tanstack/start-client-core").O
52291
53413
  };
52292
53414
  Returns: undefined;
52293
53415
  };
53416
+ prune_floriday_api_log: {
53417
+ Args: never;
53418
+ Returns: number;
53419
+ };
52294
53420
  quote_create_from_source: {
52295
53421
  Args: {
52296
53422
  _payload?: import("../integrations/supabase/types").Json;
@@ -53167,6 +54293,10 @@ export declare const upsertCustomerNote: import("@tanstack/start-client-core").O
53167
54293
  Args: never;
53168
54294
  Returns: string;
53169
54295
  };
54296
+ voorraad_cleanup_old_rows: {
54297
+ Args: never;
54298
+ Returns: import("../integrations/supabase/types").Json;
54299
+ };
53170
54300
  wake_print_queue: {
53171
54301
  Args: {
53172
54302
  _min_interval_ms?: number;