@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
@@ -2234,6 +2234,45 @@ export declare const listLogisticsStrategies: import("@tanstack/start-client-cor
2234
2234
  };
2235
2235
  Relationships: [];
2236
2236
  };
2237
+ customer_product_stickers: {
2238
+ Row: {
2239
+ created_at: string;
2240
+ customer_key: string;
2241
+ file_name: string;
2242
+ file_path: string;
2243
+ file_size: number | null;
2244
+ id: string;
2245
+ mime_type: string | null;
2246
+ trade_item_key: string;
2247
+ updated_at: string;
2248
+ uploaded_by: string | null;
2249
+ };
2250
+ Insert: {
2251
+ created_at?: string;
2252
+ customer_key: string;
2253
+ file_name: string;
2254
+ file_path: string;
2255
+ file_size?: number | null;
2256
+ id?: string;
2257
+ mime_type?: string | null;
2258
+ trade_item_key: string;
2259
+ updated_at?: string;
2260
+ uploaded_by?: string | null;
2261
+ };
2262
+ Update: {
2263
+ created_at?: string;
2264
+ customer_key?: string;
2265
+ file_name?: string;
2266
+ file_path?: string;
2267
+ file_size?: number | null;
2268
+ id?: string;
2269
+ mime_type?: string | null;
2270
+ trade_item_key?: string;
2271
+ updated_at?: string;
2272
+ uploaded_by?: string | null;
2273
+ };
2274
+ Relationships: [];
2275
+ };
2237
2276
  customer_selected_assortment: {
2238
2277
  Row: {
2239
2278
  article_number: string | null;
@@ -2282,6 +2321,30 @@ export declare const listLogisticsStrategies: import("@tanstack/start-client-cor
2282
2321
  referencedColumns: ["id"];
2283
2322
  }];
2284
2323
  };
2324
+ customer_sticker_settings: {
2325
+ Row: {
2326
+ created_at: string;
2327
+ customer_key: string;
2328
+ height_mm: number;
2329
+ updated_at: string;
2330
+ width_mm: number;
2331
+ };
2332
+ Insert: {
2333
+ created_at?: string;
2334
+ customer_key: string;
2335
+ height_mm?: number;
2336
+ updated_at?: string;
2337
+ width_mm?: number;
2338
+ };
2339
+ Update: {
2340
+ created_at?: string;
2341
+ customer_key?: string;
2342
+ height_mm?: number;
2343
+ updated_at?: string;
2344
+ width_mm?: number;
2345
+ };
2346
+ Relationships: [];
2347
+ };
2285
2348
  customer_trade_settings: {
2286
2349
  Row: {
2287
2350
  category: string;
@@ -5612,6 +5675,102 @@ export declare const listLogisticsStrategies: import("@tanstack/start-client-cor
5612
5675
  referencedColumns: ["id"];
5613
5676
  }];
5614
5677
  };
5678
+ floriday_api_log: {
5679
+ Row: {
5680
+ action: string | null;
5681
+ caller: string | null;
5682
+ connection_id: string | null;
5683
+ created_at: string;
5684
+ cursor_from: number | null;
5685
+ direction: string;
5686
+ duration_ms: number | null;
5687
+ environment: string | null;
5688
+ error: string | null;
5689
+ floriday_id: string | null;
5690
+ floriday_reference: string | null;
5691
+ http_status: number;
5692
+ id: string;
5693
+ item_count: number | null;
5694
+ kind: string | null;
5695
+ local_id: string | null;
5696
+ local_reference: string | null;
5697
+ method: string;
5698
+ module: string | null;
5699
+ ok: boolean;
5700
+ path: string;
5701
+ request: import("../integrations/supabase/types").Json | null;
5702
+ resource_type: string | null;
5703
+ response: import("../integrations/supabase/types").Json | null;
5704
+ write_log_id: string | null;
5705
+ };
5706
+ Insert: {
5707
+ action?: string | null;
5708
+ caller?: string | null;
5709
+ connection_id?: string | null;
5710
+ created_at?: string;
5711
+ cursor_from?: number | null;
5712
+ direction: string;
5713
+ duration_ms?: number | null;
5714
+ environment?: string | null;
5715
+ error?: string | null;
5716
+ floriday_id?: string | null;
5717
+ floriday_reference?: string | null;
5718
+ http_status?: number;
5719
+ id?: string;
5720
+ item_count?: number | null;
5721
+ kind?: string | null;
5722
+ local_id?: string | null;
5723
+ local_reference?: string | null;
5724
+ method: string;
5725
+ module?: string | null;
5726
+ ok?: boolean;
5727
+ path: string;
5728
+ request?: import("../integrations/supabase/types").Json | null;
5729
+ resource_type?: string | null;
5730
+ response?: import("../integrations/supabase/types").Json | null;
5731
+ write_log_id?: string | null;
5732
+ };
5733
+ Update: {
5734
+ action?: string | null;
5735
+ caller?: string | null;
5736
+ connection_id?: string | null;
5737
+ created_at?: string;
5738
+ cursor_from?: number | null;
5739
+ direction?: string;
5740
+ duration_ms?: number | null;
5741
+ environment?: string | null;
5742
+ error?: string | null;
5743
+ floriday_id?: string | null;
5744
+ floriday_reference?: string | null;
5745
+ http_status?: number;
5746
+ id?: string;
5747
+ item_count?: number | null;
5748
+ kind?: string | null;
5749
+ local_id?: string | null;
5750
+ local_reference?: string | null;
5751
+ method?: string;
5752
+ module?: string | null;
5753
+ ok?: boolean;
5754
+ path?: string;
5755
+ request?: import("../integrations/supabase/types").Json | null;
5756
+ resource_type?: string | null;
5757
+ response?: import("../integrations/supabase/types").Json | null;
5758
+ write_log_id?: string | null;
5759
+ };
5760
+ Relationships: [{
5761
+ foreignKeyName: "floriday_api_log_connection_id_fkey";
5762
+ columns: ["connection_id"];
5763
+ isOneToOne: false;
5764
+ referencedRelation: "floriday_connections";
5765
+ referencedColumns: ["id"];
5766
+ }, {
5767
+ foreignKeyName: "floriday_api_log_write_log_id_fkey";
5768
+ columns: ["write_log_id"];
5769
+ isOneToOne: false;
5770
+ referencedRelation: "floriday_write_log";
5771
+ referencedColumns: ["id"];
5772
+ }];
5773
+ };
5615
5774
  floriday_auction_letters_cache: {
5616
5775
  Row: {
5617
5776
  auction_letter_code: string;
@@ -6812,6 +6971,69 @@ export declare const listLogisticsStrategies: import("@tanstack/start-client-cor
6812
6971
  referencedColumns: ["id"];
6813
6972
  }];
6814
6973
  };
6974
+ floriday_link_templates: {
6975
+ Row: {
6976
+ created_at: string;
6977
+ floriday_url_template: string | null;
6978
+ is_active: boolean;
6979
+ label: string;
6980
+ local_url_template: string | null;
6981
+ resource_type: string;
6982
+ updated_at: string;
6983
+ };
6984
+ Insert: {
6985
+ created_at?: string;
6986
+ floriday_url_template?: string | null;
6987
+ is_active?: boolean;
6988
+ label: string;
6989
+ local_url_template?: string | null;
6990
+ resource_type: string;
6991
+ updated_at?: string;
6992
+ };
6993
+ Update: {
6994
+ created_at?: string;
6995
+ floriday_url_template?: string | null;
6996
+ is_active?: boolean;
6997
+ label?: string;
6998
+ local_url_template?: string | null;
6999
+ resource_type?: string;
7000
+ updated_at?: string;
7001
+ };
7002
+ Relationships: [];
7003
+ };
7004
+ floriday_log_retention: {
7005
+ Row: {
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
+ Insert: {
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
+ Update: {
7026
+ created_at?: string;
7027
+ direction?: string | null;
7028
+ id?: string;
7029
+ keep_failed_days?: number | null;
7030
+ keep_ok_days?: number | null;
7031
+ note?: string | null;
7032
+ resource_type?: string | null;
7033
+ updated_at?: string;
7034
+ };
7035
+ Relationships: [];
7036
+ };
6815
7037
  floriday_logistic_labels_cache: {
6816
7038
  Row: {
6817
7039
  byte_size: number | null;
@@ -10937,6 +11159,69 @@ export declare const listLogisticsStrategies: import("@tanstack/start-client-cor
10937
11159
  };
10938
11160
  Relationships: [];
10939
11161
  };
11162
+ logistics_slip_shipping_note: {
11163
+ Row: {
11164
+ attempts: number;
11165
+ batch_key: string | null;
11166
+ cart_id: string | null;
11167
+ created_at: string;
11168
+ error: string | null;
11169
+ error_code: string | null;
11170
+ fulfillment_order_id: string | null;
11171
+ id: string;
11172
+ locked_until: string | null;
11173
+ next_attempt_at: string | null;
11174
+ order_id: string | null;
11175
+ order_number: string | null;
11176
+ print_job_id: string | null;
11177
+ printer_id: string | null;
11178
+ retry_class: string | null;
11179
+ slip_job_id: string;
11180
+ status: string;
11181
+ updated_at: string;
11182
+ };
11183
+ Insert: {
11184
+ attempts?: number;
11185
+ batch_key?: string | null;
11186
+ cart_id?: string | null;
11187
+ created_at?: string;
11188
+ error?: string | null;
11189
+ error_code?: string | null;
11190
+ fulfillment_order_id?: string | null;
11191
+ id?: string;
11192
+ locked_until?: string | null;
11193
+ next_attempt_at?: string | null;
11194
+ order_id?: string | null;
11195
+ order_number?: string | null;
11196
+ print_job_id?: string | null;
11197
+ printer_id?: string | null;
11198
+ retry_class?: string | null;
11199
+ slip_job_id: string;
11200
+ status?: string;
11201
+ updated_at?: string;
11202
+ };
11203
+ Update: {
11204
+ attempts?: number;
11205
+ batch_key?: string | null;
11206
+ cart_id?: string | null;
11207
+ created_at?: string;
11208
+ error?: string | null;
11209
+ error_code?: string | null;
11210
+ fulfillment_order_id?: string | null;
11211
+ id?: string;
11212
+ locked_until?: string | null;
11213
+ next_attempt_at?: string | null;
11214
+ order_id?: string | null;
11215
+ order_number?: string | null;
11216
+ print_job_id?: string | null;
11217
+ printer_id?: string | null;
11218
+ retry_class?: string | null;
11219
+ slip_job_id?: string;
11220
+ status?: string;
11221
+ updated_at?: string;
11222
+ };
11223
+ Relationships: [];
11224
+ };
10940
11225
  logistics_staff_planning: {
10941
11226
  Row: {
10942
11227
  created_at: string;
@@ -11288,6 +11573,111 @@ export declare const listLogisticsStrategies: import("@tanstack/start-client-cor
11288
11573
  };
11289
11574
  Relationships: [];
11290
11575
  };
11576
+ logistics_trace_events: {
11577
+ Row: {
11578
+ actor: string | null;
11579
+ attempts: number;
11580
+ cart_ref: string | null;
11581
+ created_at: string;
11582
+ db_action: string | null;
11583
+ db_new: import("../integrations/supabase/types").Json | null;
11584
+ db_old: import("../integrations/supabase/types").Json | null;
11585
+ db_record: string | null;
11586
+ db_table: string | null;
11587
+ decision: string | null;
11588
+ duration_ms: number | null;
11589
+ error: string | null;
11590
+ external_action: string | null;
11591
+ external_ref: string | null;
11592
+ external_response: import("../integrations/supabase/types").Json | null;
11593
+ external_status: string | null;
11594
+ external_system: string | null;
11595
+ id: string;
11596
+ input: import("../integrations/supabase/types").Json | null;
11597
+ next_attempt_at: string | null;
11598
+ order_ref: string | null;
11599
+ order_source: string | null;
11600
+ output: import("../integrations/supabase/types").Json | null;
11601
+ phase: string;
11602
+ reads: import("../integrations/supabase/types").Json | null;
11603
+ reason: string | null;
11604
+ rule: string | null;
11605
+ slip_ref: string | null;
11606
+ status: string;
11607
+ step: string;
11608
+ trace_id: string;
11609
+ values_used: import("../integrations/supabase/types").Json | null;
11610
+ };
11611
+ Insert: {
11612
+ actor?: string | null;
11613
+ attempts?: number;
11614
+ cart_ref?: string | null;
11615
+ created_at?: string;
11616
+ db_action?: string | null;
11617
+ db_new?: import("../integrations/supabase/types").Json | null;
11618
+ db_old?: import("../integrations/supabase/types").Json | null;
11619
+ db_record?: string | null;
11620
+ db_table?: string | null;
11621
+ decision?: string | null;
11622
+ duration_ms?: number | null;
11623
+ error?: string | null;
11624
+ external_action?: string | null;
11625
+ external_ref?: string | null;
11626
+ external_response?: import("../integrations/supabase/types").Json | null;
11627
+ external_status?: string | null;
11628
+ external_system?: string | null;
11629
+ id?: string;
11630
+ input?: import("../integrations/supabase/types").Json | null;
11631
+ next_attempt_at?: string | null;
11632
+ order_ref?: string | null;
11633
+ order_source?: string | null;
11634
+ output?: import("../integrations/supabase/types").Json | null;
11635
+ phase: string;
11636
+ reads?: import("../integrations/supabase/types").Json | null;
11637
+ reason?: string | null;
11638
+ rule?: string | null;
11639
+ slip_ref?: string | null;
11640
+ status: string;
11641
+ step: string;
11642
+ trace_id?: string;
11643
+ values_used?: import("../integrations/supabase/types").Json | null;
11644
+ };
11645
+ Update: {
11646
+ actor?: string | null;
11647
+ attempts?: number;
11648
+ cart_ref?: string | null;
11649
+ created_at?: string;
11650
+ db_action?: string | null;
11651
+ db_new?: import("../integrations/supabase/types").Json | null;
11652
+ db_old?: import("../integrations/supabase/types").Json | null;
11653
+ db_record?: string | null;
11654
+ db_table?: string | null;
11655
+ decision?: string | null;
11656
+ duration_ms?: number | null;
11657
+ error?: string | null;
11658
+ external_action?: string | null;
11659
+ external_ref?: string | null;
11660
+ external_response?: import("../integrations/supabase/types").Json | null;
11661
+ external_status?: string | null;
11662
+ external_system?: string | null;
11663
+ id?: string;
11664
+ input?: import("../integrations/supabase/types").Json | null;
11665
+ next_attempt_at?: string | null;
11666
+ order_ref?: string | null;
11667
+ order_source?: string | null;
11668
+ output?: import("../integrations/supabase/types").Json | null;
11669
+ phase?: string;
11670
+ reads?: import("../integrations/supabase/types").Json | null;
11671
+ reason?: string | null;
11672
+ rule?: string | null;
11673
+ slip_ref?: string | null;
11674
+ status?: string;
11675
+ step?: string;
11676
+ trace_id?: string;
11677
+ values_used?: import("../integrations/supabase/types").Json | null;
11678
+ };
11679
+ Relationships: [];
11680
+ };
11291
11681
  logistics_variables: {
11292
11682
  Row: {
11293
11683
  created_at: string;
@@ -21860,6 +22250,15 @@ export declare const listLogisticsStrategies: import("@tanstack/start-client-cor
21860
22250
  Args: never;
21861
22251
  Returns: boolean;
21862
22252
  };
22253
+ cancel_open_print_jobs: {
22254
+ Args: {
22255
+ _cutoff: string;
22256
+ };
22257
+ Returns: {
22258
+ extern_job_id: string;
22259
+ id: string;
22260
+ }[];
22261
+ };
21863
22262
  check_offer_product_available_stock: {
21864
22263
  Args: {
21865
22264
  p_campaign_product_id: string;
@@ -23472,6 +23871,12 @@ export declare const listLogisticsStrategies: import("@tanstack/start-client-cor
23472
23871
  };
23473
23872
  Returns: import("../integrations/supabase/types").Json;
23474
23873
  };
23874
+ logistics_cart_plan_status_core: {
23875
+ Args: {
23876
+ p_ref: string;
23877
+ };
23878
+ Returns: import("../integrations/supabase/types").Json;
23879
+ };
23475
23880
  logistics_cart_release_reason: {
23476
23881
  Args: {
23477
23882
  p_cart_id: string;
@@ -23534,6 +23939,10 @@ export declare const listLogisticsStrategies: import("@tanstack/start-client-cor
23534
23939
  unit_ref: string;
23535
23940
  }[];
23536
23941
  };
23942
+ logistics_carts_per_print: {
23943
+ Args: never;
23944
+ Returns: number;
23945
+ };
23537
23946
  logistics_check_order_allowed: {
23538
23947
  Args: {
23539
23948
  p_lines: import("../integrations/supabase/types").Json;
@@ -23900,6 +24309,12 @@ export declare const listLogisticsStrategies: import("@tanstack/start-client-cor
23900
24309
  };
23901
24310
  Returns: import("../integrations/supabase/types").Json;
23902
24311
  };
24312
+ logistics_ensure_shipping_notes: {
24313
+ Args: {
24314
+ p_limit?: number;
24315
+ };
24316
+ Returns: import("../integrations/supabase/types").Json;
24317
+ };
23903
24318
  logistics_fail_task: {
23904
24319
  Args: {
23905
24320
  p_error: string;
@@ -23945,6 +24360,10 @@ export declare const listLogisticsStrategies: import("@tanstack/start-client-cor
23945
24360
  isSetofReturn: false;
23946
24361
  };
23947
24362
  };
24363
+ logistics_fix_wrong_shipping_notes: {
24364
+ Args: never;
24365
+ Returns: import("../integrations/supabase/types").Json;
24366
+ };
23948
24367
  logistics_floriday_cart_plan: {
23949
24368
  Args: {
23950
24369
  p_order_id: string;
@@ -23972,6 +24391,10 @@ export declare const listLogisticsStrategies: import("@tanstack/start-client-cor
23972
24391
  revision: number;
23973
24392
  }[];
23974
24393
  };
24394
+ logistics_floriday_delivery_note_create_enabled: {
24395
+ Args: never;
24396
+ Returns: boolean;
24397
+ };
23975
24398
  logistics_floriday_finish_push: {
23976
24399
  Args: {
23977
24400
  _error?: string;
@@ -24215,6 +24638,12 @@ export declare const listLogisticsStrategies: import("@tanstack/start-client-cor
24215
24638
  };
24216
24639
  Returns: string;
24217
24640
  };
24641
+ logistics_payload_is_floriday: {
24642
+ Args: {
24643
+ _payload: import("../integrations/supabase/types").Json;
24644
+ };
24645
+ Returns: boolean;
24646
+ };
24218
24647
  logistics_pick_agenda: {
24219
24648
  Args: {
24220
24649
  p_from?: string;
@@ -24337,6 +24766,20 @@ export declare const listLogisticsStrategies: import("@tanstack/start-client-cor
24337
24766
  Args: never;
24338
24767
  Returns: undefined;
24339
24768
  };
24769
+ logistics_plan_progress: {
24770
+ Args: {
24771
+ p_refs: string[];
24772
+ };
24773
+ Returns: {
24774
+ cart_plan_ready: boolean;
24775
+ cart_plan_reason: string;
24776
+ cart_plan_released: boolean;
24777
+ plan_progress: number;
24778
+ plan_state: string;
24779
+ plan_state_since: string;
24780
+ unit_ref: string;
24781
+ }[];
24782
+ };
24340
24783
  logistics_plan_prune: {
24341
24784
  Args: never;
24342
24785
  Returns: number;
@@ -24358,6 +24801,12 @@ export declare const listLogisticsStrategies: import("@tanstack/start-client-cor
24358
24801
  };
24359
24802
  Returns: number;
24360
24803
  };
24804
+ logistics_plan_state_for: {
24805
+ Args: {
24806
+ p_ref: string;
24807
+ };
24808
+ Returns: import("../integrations/supabase/types").Json;
24809
+ };
24361
24810
  logistics_prepare_pick_documents: {
24362
24811
  Args: {
24363
24812
  p_limit?: number;
@@ -24416,6 +24865,12 @@ export declare const listLogisticsStrategies: import("@tanstack/start-client-cor
24416
24865
  };
24417
24866
  Returns: import("../integrations/supabase/types").Json;
24418
24867
  };
24868
+ logistics_refresh_plan_state: {
24869
+ Args: {
24870
+ p_limit?: number;
24871
+ };
24872
+ Returns: import("../integrations/supabase/types").Json;
24873
+ };
24419
24874
  logistics_replan_all: {
24420
24875
  Args: {
24421
24876
  p_reason?: string;
@@ -24584,6 +25039,74 @@ export declare const listLogisticsStrategies: import("@tanstack/start-client-cor
24584
25039
  };
24585
25040
  Returns: import("../integrations/supabase/types").Json;
24586
25041
  };
25042
+ logistics_shipping_note_job_for_slip: {
25043
+ Args: {
25044
+ _slip_job_id: string;
25045
+ };
25046
+ Returns: string;
25047
+ };
25048
+ logistics_shipping_notes_wake_all: {
25049
+ Args: never;
25050
+ Returns: import("../integrations/supabase/types").Json;
25051
+ };
25052
+ logistics_slip_is_floriday: {
25053
+ Args: {
25054
+ _slip_job_id: string;
25055
+ };
25056
+ Returns: boolean;
25057
+ };
25058
+ logistics_slip_note_claim: {
25059
+ Args: {
25060
+ _lease_seconds?: number;
25061
+ _limit?: number;
25062
+ };
25063
+ Returns: {
25064
+ attempts: number;
25065
+ batch_key: string | null;
25066
+ cart_id: string | null;
25067
+ created_at: string;
25068
+ error: string | null;
25069
+ error_code: string | null;
25070
+ fulfillment_order_id: string | null;
25071
+ id: string;
25072
+ locked_until: string | null;
25073
+ next_attempt_at: string | null;
25074
+ order_id: string | null;
25075
+ order_number: string | null;
25076
+ print_job_id: string | null;
25077
+ printer_id: string | null;
25078
+ retry_class: string | null;
25079
+ slip_job_id: string;
25080
+ status: string;
25081
+ updated_at: string;
25082
+ }[];
25083
+ SetofOptions: {
25084
+ from: "*";
25085
+ to: "logistics_slip_shipping_note";
25086
+ isOneToOne: false;
25087
+ isSetofReturn: true;
25088
+ };
25089
+ };
25090
+ logistics_slip_note_finish: {
25091
+ Args: {
25092
+ _error?: string;
25093
+ _error_code?: string;
25094
+ _fulfillment_order_id?: string;
25095
+ _id: string;
25096
+ _ok: boolean;
25097
+ _print_job_id?: string;
25098
+ _status?: string;
25099
+ };
25100
+ Returns: undefined;
25101
+ };
25102
+ logistics_slip_note_keep_waiting: {
25103
+ Args: {
25104
+ _class?: string;
25105
+ _id: string;
25106
+ _reason: string;
25107
+ };
25108
+ Returns: undefined;
25109
+ };
24587
25110
  logistics_sticker_follows_slip: {
24588
25111
  Args: never;
24589
25112
  Returns: boolean;
@@ -24638,6 +25161,40 @@ export declare const listLogisticsStrategies: import("@tanstack/start-client-cor
24638
25161
  name: string;
24639
25162
  }[];
24640
25163
  };
25164
+ logistics_trace: {
25165
+ Args: {
25166
+ p: import("../integrations/supabase/types").Json;
25167
+ };
25168
+ Returns: string;
25169
+ };
25170
+ logistics_trace_batch: {
25171
+ Args: {
25172
+ p: import("../integrations/supabase/types").Json;
25173
+ };
25174
+ Returns: number;
25175
+ };
25176
+ logistics_trace_orders: {
25177
+ Args: {
25178
+ p_limit?: number;
25179
+ p_search?: string;
25180
+ p_since?: string;
25181
+ p_status?: string;
25182
+ };
25183
+ Returns: import("../integrations/supabase/types").Json;
25184
+ };
25185
+ logistics_trace_redact: {
25186
+ Args: {
25187
+ p: import("../integrations/supabase/types").Json;
25188
+ };
25189
+ Returns: import("../integrations/supabase/types").Json;
25190
+ };
25191
+ logistics_trace_timeline: {
25192
+ Args: {
25193
+ p_limit?: number;
25194
+ p_order_ref: string;
25195
+ };
25196
+ Returns: import("../integrations/supabase/types").Json;
25197
+ };
24641
25198
  logistics_upsert_task: {
24642
25199
  Args: {
24643
25200
  p_buffer_ref: string;
@@ -25679,6 +26236,10 @@ export declare const listLogisticsStrategies: import("@tanstack/start-client-cor
25679
26236
  };
25680
26237
  Returns: undefined;
25681
26238
  };
26239
+ prune_floriday_api_log: {
26240
+ Args: never;
26241
+ Returns: number;
26242
+ };
25682
26243
  quote_create_from_source: {
25683
26244
  Args: {
25684
26245
  _payload?: import("../integrations/supabase/types").Json;
@@ -26555,6 +27116,10 @@ export declare const listLogisticsStrategies: import("@tanstack/start-client-cor
26555
27116
  Args: never;
26556
27117
  Returns: string;
26557
27118
  };
27119
+ voorraad_cleanup_old_rows: {
27120
+ Args: never;
27121
+ Returns: import("../integrations/supabase/types").Json;
27122
+ };
26558
27123
  wake_print_queue: {
26559
27124
  Args: {
26560
27125
  _min_interval_ms?: number;
@@ -28852,6 +29417,45 @@ export declare const getLogisticsStrategyBinding: import("@tanstack/start-client
28852
29417
  };
28853
29418
  Relationships: [];
28854
29419
  };
29420
+ customer_product_stickers: {
29421
+ Row: {
29422
+ created_at: string;
29423
+ customer_key: string;
29424
+ file_name: string;
29425
+ file_path: string;
29426
+ file_size: number | null;
29427
+ id: string;
29428
+ mime_type: string | null;
29429
+ trade_item_key: string;
29430
+ updated_at: string;
29431
+ uploaded_by: string | null;
29432
+ };
29433
+ Insert: {
29434
+ created_at?: string;
29435
+ customer_key: string;
29436
+ file_name: string;
29437
+ file_path: string;
29438
+ file_size?: number | null;
29439
+ id?: string;
29440
+ mime_type?: string | null;
29441
+ trade_item_key: string;
29442
+ updated_at?: string;
29443
+ uploaded_by?: string | null;
29444
+ };
29445
+ Update: {
29446
+ created_at?: string;
29447
+ customer_key?: string;
29448
+ file_name?: string;
29449
+ file_path?: string;
29450
+ file_size?: number | null;
29451
+ id?: string;
29452
+ mime_type?: string | null;
29453
+ trade_item_key?: string;
29454
+ updated_at?: string;
29455
+ uploaded_by?: string | null;
29456
+ };
29457
+ Relationships: [];
29458
+ };
28855
29459
  customer_selected_assortment: {
28856
29460
  Row: {
28857
29461
  article_number: string | null;
@@ -28900,6 +29504,30 @@ export declare const getLogisticsStrategyBinding: import("@tanstack/start-client
28900
29504
  referencedColumns: ["id"];
28901
29505
  }];
28902
29506
  };
29507
+ customer_sticker_settings: {
29508
+ Row: {
29509
+ created_at: string;
29510
+ customer_key: string;
29511
+ height_mm: number;
29512
+ updated_at: string;
29513
+ width_mm: number;
29514
+ };
29515
+ Insert: {
29516
+ created_at?: string;
29517
+ customer_key: string;
29518
+ height_mm?: number;
29519
+ updated_at?: string;
29520
+ width_mm?: number;
29521
+ };
29522
+ Update: {
29523
+ created_at?: string;
29524
+ customer_key?: string;
29525
+ height_mm?: number;
29526
+ updated_at?: string;
29527
+ width_mm?: number;
29528
+ };
29529
+ Relationships: [];
29530
+ };
28903
29531
  customer_trade_settings: {
28904
29532
  Row: {
28905
29533
  category: string;
@@ -32230,6 +32858,102 @@ export declare const getLogisticsStrategyBinding: import("@tanstack/start-client
32230
32858
  referencedColumns: ["id"];
32231
32859
  }];
32232
32860
  };
32861
+ floriday_api_log: {
32862
+ Row: {
32863
+ action: string | null;
32864
+ caller: string | null;
32865
+ connection_id: string | null;
32866
+ created_at: string;
32867
+ cursor_from: number | null;
32868
+ direction: string;
32869
+ duration_ms: number | null;
32870
+ environment: string | null;
32871
+ error: string | null;
32872
+ floriday_id: string | null;
32873
+ floriday_reference: string | null;
32874
+ http_status: number;
32875
+ id: string;
32876
+ item_count: number | null;
32877
+ kind: string | null;
32878
+ local_id: string | null;
32879
+ local_reference: string | null;
32880
+ method: string;
32881
+ module: string | null;
32882
+ ok: boolean;
32883
+ path: string;
32884
+ request: import("../integrations/supabase/types").Json | null;
32885
+ resource_type: string | null;
32886
+ response: import("../integrations/supabase/types").Json | null;
32887
+ write_log_id: string | null;
32888
+ };
32889
+ Insert: {
32890
+ action?: string | null;
32891
+ caller?: string | null;
32892
+ connection_id?: string | null;
32893
+ created_at?: string;
32894
+ cursor_from?: number | null;
32895
+ direction: string;
32896
+ duration_ms?: number | null;
32897
+ environment?: string | null;
32898
+ error?: string | null;
32899
+ floriday_id?: string | null;
32900
+ floriday_reference?: string | null;
32901
+ http_status?: number;
32902
+ id?: string;
32903
+ item_count?: number | null;
32904
+ kind?: string | null;
32905
+ local_id?: string | null;
32906
+ local_reference?: string | null;
32907
+ method: string;
32908
+ module?: string | null;
32909
+ ok?: boolean;
32910
+ path: string;
32911
+ request?: import("../integrations/supabase/types").Json | null;
32912
+ resource_type?: string | null;
32913
+ response?: import("../integrations/supabase/types").Json | null;
32914
+ write_log_id?: string | null;
32915
+ };
32916
+ Update: {
32917
+ action?: string | null;
32918
+ caller?: string | null;
32919
+ connection_id?: string | null;
32920
+ created_at?: string;
32921
+ cursor_from?: number | null;
32922
+ direction?: string;
32923
+ duration_ms?: number | null;
32924
+ environment?: string | null;
32925
+ error?: string | null;
32926
+ floriday_id?: string | null;
32927
+ floriday_reference?: string | null;
32928
+ http_status?: number;
32929
+ id?: string;
32930
+ item_count?: number | null;
32931
+ kind?: string | null;
32932
+ local_id?: string | null;
32933
+ local_reference?: string | null;
32934
+ method?: string;
32935
+ module?: string | null;
32936
+ ok?: boolean;
32937
+ path?: string;
32938
+ request?: import("../integrations/supabase/types").Json | null;
32939
+ resource_type?: string | null;
32940
+ response?: import("../integrations/supabase/types").Json | null;
32941
+ write_log_id?: string | null;
32942
+ };
32943
+ Relationships: [{
32944
+ foreignKeyName: "floriday_api_log_connection_id_fkey";
32945
+ columns: ["connection_id"];
32946
+ isOneToOne: false;
32947
+ referencedRelation: "floriday_connections";
32948
+ referencedColumns: ["id"];
32949
+ }, {
32950
+ foreignKeyName: "floriday_api_log_write_log_id_fkey";
32951
+ columns: ["write_log_id"];
32952
+ isOneToOne: false;
32953
+ referencedRelation: "floriday_write_log";
32954
+ referencedColumns: ["id"];
32955
+ }];
32956
+ };
32233
32957
  floriday_auction_letters_cache: {
32234
32958
  Row: {
32235
32959
  auction_letter_code: string;
@@ -33430,6 +34154,69 @@ export declare const getLogisticsStrategyBinding: import("@tanstack/start-client
33430
34154
  referencedColumns: ["id"];
33431
34155
  }];
33432
34156
  };
34157
+ floriday_link_templates: {
34158
+ Row: {
34159
+ created_at: string;
34160
+ floriday_url_template: string | null;
34161
+ is_active: boolean;
34162
+ label: string;
34163
+ local_url_template: string | null;
34164
+ resource_type: string;
34165
+ updated_at: string;
34166
+ };
34167
+ Insert: {
34168
+ created_at?: string;
34169
+ floriday_url_template?: string | null;
34170
+ is_active?: boolean;
34171
+ label: string;
34172
+ local_url_template?: string | null;
34173
+ resource_type: string;
34174
+ updated_at?: string;
34175
+ };
34176
+ Update: {
34177
+ created_at?: string;
34178
+ floriday_url_template?: string | null;
34179
+ is_active?: boolean;
34180
+ label?: string;
34181
+ local_url_template?: string | null;
34182
+ resource_type?: string;
34183
+ updated_at?: string;
34184
+ };
34185
+ Relationships: [];
34186
+ };
34187
+ floriday_log_retention: {
34188
+ Row: {
34189
+ created_at: string;
34190
+ direction: string | null;
34191
+ id: string;
34192
+ keep_failed_days: number | null;
34193
+ keep_ok_days: number | null;
34194
+ note: string | null;
34195
+ resource_type: string | null;
34196
+ updated_at: string;
34197
+ };
34198
+ Insert: {
34199
+ created_at?: string;
34200
+ direction?: string | null;
34201
+ id?: string;
34202
+ keep_failed_days?: number | null;
34203
+ keep_ok_days?: number | null;
34204
+ note?: string | null;
34205
+ resource_type?: string | null;
34206
+ updated_at?: string;
34207
+ };
34208
+ Update: {
34209
+ created_at?: string;
34210
+ direction?: string | null;
34211
+ id?: string;
34212
+ keep_failed_days?: number | null;
34213
+ keep_ok_days?: number | null;
34214
+ note?: string | null;
34215
+ resource_type?: string | null;
34216
+ updated_at?: string;
34217
+ };
34218
+ Relationships: [];
34219
+ };
33433
34220
  floriday_logistic_labels_cache: {
33434
34221
  Row: {
33435
34222
  byte_size: number | null;
@@ -37555,6 +38342,69 @@ export declare const getLogisticsStrategyBinding: import("@tanstack/start-client
37555
38342
  };
37556
38343
  Relationships: [];
37557
38344
  };
38345
+ logistics_slip_shipping_note: {
38346
+ Row: {
38347
+ attempts: number;
38348
+ batch_key: string | null;
38349
+ cart_id: string | null;
38350
+ created_at: string;
38351
+ error: string | null;
38352
+ error_code: string | null;
38353
+ fulfillment_order_id: string | null;
38354
+ id: string;
38355
+ locked_until: string | null;
38356
+ next_attempt_at: string | null;
38357
+ order_id: string | null;
38358
+ order_number: string | null;
38359
+ print_job_id: string | null;
38360
+ printer_id: string | null;
38361
+ retry_class: string | null;
38362
+ slip_job_id: string;
38363
+ status: string;
38364
+ updated_at: string;
38365
+ };
38366
+ Insert: {
38367
+ attempts?: number;
38368
+ batch_key?: string | null;
38369
+ cart_id?: string | null;
38370
+ created_at?: string;
38371
+ error?: string | null;
38372
+ error_code?: string | null;
38373
+ fulfillment_order_id?: string | null;
38374
+ id?: string;
38375
+ locked_until?: string | null;
38376
+ next_attempt_at?: string | null;
38377
+ order_id?: string | null;
38378
+ order_number?: string | null;
38379
+ print_job_id?: string | null;
38380
+ printer_id?: string | null;
38381
+ retry_class?: string | null;
38382
+ slip_job_id: string;
38383
+ status?: string;
38384
+ updated_at?: string;
38385
+ };
38386
+ Update: {
38387
+ attempts?: number;
38388
+ batch_key?: string | null;
38389
+ cart_id?: string | null;
38390
+ created_at?: string;
38391
+ error?: string | null;
38392
+ error_code?: string | null;
38393
+ fulfillment_order_id?: string | null;
38394
+ id?: string;
38395
+ locked_until?: string | null;
38396
+ next_attempt_at?: string | null;
38397
+ order_id?: string | null;
38398
+ order_number?: string | null;
38399
+ print_job_id?: string | null;
38400
+ printer_id?: string | null;
38401
+ retry_class?: string | null;
38402
+ slip_job_id?: string;
38403
+ status?: string;
38404
+ updated_at?: string;
38405
+ };
38406
+ Relationships: [];
38407
+ };
37558
38408
  logistics_staff_planning: {
37559
38409
  Row: {
37560
38410
  created_at: string;
@@ -37906,6 +38756,111 @@ export declare const getLogisticsStrategyBinding: import("@tanstack/start-client
37906
38756
  };
37907
38757
  Relationships: [];
37908
38758
  };
38759
+ logistics_trace_events: {
38760
+ Row: {
38761
+ actor: string | null;
38762
+ attempts: number;
38763
+ cart_ref: string | null;
38764
+ created_at: string;
38765
+ db_action: string | null;
38766
+ db_new: import("../integrations/supabase/types").Json | null;
38767
+ db_old: import("../integrations/supabase/types").Json | null;
38768
+ db_record: string | null;
38769
+ db_table: string | null;
38770
+ decision: string | null;
38771
+ duration_ms: number | null;
38772
+ error: string | null;
38773
+ external_action: string | null;
38774
+ external_ref: string | null;
38775
+ external_response: import("../integrations/supabase/types").Json | null;
38776
+ external_status: string | null;
38777
+ external_system: string | null;
38778
+ id: string;
38779
+ input: import("../integrations/supabase/types").Json | null;
38780
+ next_attempt_at: string | null;
38781
+ order_ref: string | null;
38782
+ order_source: string | null;
38783
+ output: import("../integrations/supabase/types").Json | null;
38784
+ phase: string;
38785
+ reads: import("../integrations/supabase/types").Json | null;
38786
+ reason: string | null;
38787
+ rule: string | null;
38788
+ slip_ref: string | null;
38789
+ status: string;
38790
+ step: string;
38791
+ trace_id: string;
38792
+ values_used: import("../integrations/supabase/types").Json | null;
38793
+ };
38794
+ Insert: {
38795
+ actor?: string | null;
38796
+ attempts?: number;
38797
+ cart_ref?: string | null;
38798
+ created_at?: string;
38799
+ db_action?: string | null;
38800
+ db_new?: import("../integrations/supabase/types").Json | null;
38801
+ db_old?: import("../integrations/supabase/types").Json | null;
38802
+ db_record?: string | null;
38803
+ db_table?: string | null;
38804
+ decision?: string | null;
38805
+ duration_ms?: number | null;
38806
+ error?: string | null;
38807
+ external_action?: string | null;
38808
+ external_ref?: string | null;
38809
+ external_response?: import("../integrations/supabase/types").Json | null;
38810
+ external_status?: string | null;
38811
+ external_system?: string | null;
38812
+ id?: string;
38813
+ input?: import("../integrations/supabase/types").Json | null;
38814
+ next_attempt_at?: string | null;
38815
+ order_ref?: string | null;
38816
+ order_source?: string | null;
38817
+ output?: import("../integrations/supabase/types").Json | null;
38818
+ phase: string;
38819
+ reads?: import("../integrations/supabase/types").Json | null;
38820
+ reason?: string | null;
38821
+ rule?: string | null;
38822
+ slip_ref?: string | null;
38823
+ status: string;
38824
+ step: string;
38825
+ trace_id?: string;
38826
+ values_used?: import("../integrations/supabase/types").Json | null;
38827
+ };
38828
+ Update: {
38829
+ actor?: string | null;
38830
+ attempts?: number;
38831
+ cart_ref?: string | null;
38832
+ created_at?: string;
38833
+ db_action?: string | null;
38834
+ db_new?: import("../integrations/supabase/types").Json | null;
38835
+ db_old?: import("../integrations/supabase/types").Json | null;
38836
+ db_record?: string | null;
38837
+ db_table?: string | null;
38838
+ decision?: string | null;
38839
+ duration_ms?: number | null;
38840
+ error?: string | null;
38841
+ external_action?: string | null;
38842
+ external_ref?: string | null;
38843
+ external_response?: import("../integrations/supabase/types").Json | null;
38844
+ external_status?: string | null;
38845
+ external_system?: string | null;
38846
+ id?: string;
38847
+ input?: import("../integrations/supabase/types").Json | null;
38848
+ next_attempt_at?: string | null;
38849
+ order_ref?: string | null;
38850
+ order_source?: string | null;
38851
+ output?: import("../integrations/supabase/types").Json | null;
38852
+ phase?: string;
38853
+ reads?: import("../integrations/supabase/types").Json | null;
38854
+ reason?: string | null;
38855
+ rule?: string | null;
38856
+ slip_ref?: string | null;
38857
+ status?: string;
38858
+ step?: string;
38859
+ trace_id?: string;
38860
+ values_used?: import("../integrations/supabase/types").Json | null;
38861
+ };
38862
+ Relationships: [];
38863
+ };
37909
38864
  logistics_variables: {
37910
38865
  Row: {
37911
38866
  created_at: string;
@@ -48478,6 +49433,15 @@ export declare const getLogisticsStrategyBinding: import("@tanstack/start-client
48478
49433
  Args: never;
48479
49434
  Returns: boolean;
48480
49435
  };
49436
+ cancel_open_print_jobs: {
49437
+ Args: {
49438
+ _cutoff: string;
49439
+ };
49440
+ Returns: {
49441
+ extern_job_id: string;
49442
+ id: string;
49443
+ }[];
49444
+ };
48481
49445
  check_offer_product_available_stock: {
48482
49446
  Args: {
48483
49447
  p_campaign_product_id: string;
@@ -50090,6 +51054,12 @@ export declare const getLogisticsStrategyBinding: import("@tanstack/start-client
50090
51054
  };
50091
51055
  Returns: import("../integrations/supabase/types").Json;
50092
51056
  };
51057
+ logistics_cart_plan_status_core: {
51058
+ Args: {
51059
+ p_ref: string;
51060
+ };
51061
+ Returns: import("../integrations/supabase/types").Json;
51062
+ };
50093
51063
  logistics_cart_release_reason: {
50094
51064
  Args: {
50095
51065
  p_cart_id: string;
@@ -50152,6 +51122,10 @@ export declare const getLogisticsStrategyBinding: import("@tanstack/start-client
50152
51122
  unit_ref: string;
50153
51123
  }[];
50154
51124
  };
51125
+ logistics_carts_per_print: {
51126
+ Args: never;
51127
+ Returns: number;
51128
+ };
50155
51129
  logistics_check_order_allowed: {
50156
51130
  Args: {
50157
51131
  p_lines: import("../integrations/supabase/types").Json;
@@ -50518,6 +51492,12 @@ export declare const getLogisticsStrategyBinding: import("@tanstack/start-client
50518
51492
  };
50519
51493
  Returns: import("../integrations/supabase/types").Json;
50520
51494
  };
51495
+ logistics_ensure_shipping_notes: {
51496
+ Args: {
51497
+ p_limit?: number;
51498
+ };
51499
+ Returns: import("../integrations/supabase/types").Json;
51500
+ };
50521
51501
  logistics_fail_task: {
50522
51502
  Args: {
50523
51503
  p_error: string;
@@ -50563,6 +51543,10 @@ export declare const getLogisticsStrategyBinding: import("@tanstack/start-client
50563
51543
  isSetofReturn: false;
50564
51544
  };
50565
51545
  };
51546
+ logistics_fix_wrong_shipping_notes: {
51547
+ Args: never;
51548
+ Returns: import("../integrations/supabase/types").Json;
51549
+ };
50566
51550
  logistics_floriday_cart_plan: {
50567
51551
  Args: {
50568
51552
  p_order_id: string;
@@ -50590,6 +51574,10 @@ export declare const getLogisticsStrategyBinding: import("@tanstack/start-client
50590
51574
  revision: number;
50591
51575
  }[];
50592
51576
  };
51577
+ logistics_floriday_delivery_note_create_enabled: {
51578
+ Args: never;
51579
+ Returns: boolean;
51580
+ };
50593
51581
  logistics_floriday_finish_push: {
50594
51582
  Args: {
50595
51583
  _error?: string;
@@ -50833,6 +51821,12 @@ export declare const getLogisticsStrategyBinding: import("@tanstack/start-client
50833
51821
  };
50834
51822
  Returns: string;
50835
51823
  };
51824
+ logistics_payload_is_floriday: {
51825
+ Args: {
51826
+ _payload: import("../integrations/supabase/types").Json;
51827
+ };
51828
+ Returns: boolean;
51829
+ };
50836
51830
  logistics_pick_agenda: {
50837
51831
  Args: {
50838
51832
  p_from?: string;
@@ -50955,6 +51949,20 @@ export declare const getLogisticsStrategyBinding: import("@tanstack/start-client
50955
51949
  Args: never;
50956
51950
  Returns: undefined;
50957
51951
  };
51952
+ logistics_plan_progress: {
51953
+ Args: {
51954
+ p_refs: string[];
51955
+ };
51956
+ Returns: {
51957
+ cart_plan_ready: boolean;
51958
+ cart_plan_reason: string;
51959
+ cart_plan_released: boolean;
51960
+ plan_progress: number;
51961
+ plan_state: string;
51962
+ plan_state_since: string;
51963
+ unit_ref: string;
51964
+ }[];
51965
+ };
50958
51966
  logistics_plan_prune: {
50959
51967
  Args: never;
50960
51968
  Returns: number;
@@ -50976,6 +51984,12 @@ export declare const getLogisticsStrategyBinding: import("@tanstack/start-client
50976
51984
  };
50977
51985
  Returns: number;
50978
51986
  };
51987
+ logistics_plan_state_for: {
51988
+ Args: {
51989
+ p_ref: string;
51990
+ };
51991
+ Returns: import("../integrations/supabase/types").Json;
51992
+ };
50979
51993
  logistics_prepare_pick_documents: {
50980
51994
  Args: {
50981
51995
  p_limit?: number;
@@ -51034,6 +52048,12 @@ export declare const getLogisticsStrategyBinding: import("@tanstack/start-client
51034
52048
  };
51035
52049
  Returns: import("../integrations/supabase/types").Json;
51036
52050
  };
52051
+ logistics_refresh_plan_state: {
52052
+ Args: {
52053
+ p_limit?: number;
52054
+ };
52055
+ Returns: import("../integrations/supabase/types").Json;
52056
+ };
51037
52057
  logistics_replan_all: {
51038
52058
  Args: {
51039
52059
  p_reason?: string;
@@ -51202,6 +52222,74 @@ export declare const getLogisticsStrategyBinding: import("@tanstack/start-client
51202
52222
  };
51203
52223
  Returns: import("../integrations/supabase/types").Json;
51204
52224
  };
52225
+ logistics_shipping_note_job_for_slip: {
52226
+ Args: {
52227
+ _slip_job_id: string;
52228
+ };
52229
+ Returns: string;
52230
+ };
52231
+ logistics_shipping_notes_wake_all: {
52232
+ Args: never;
52233
+ Returns: import("../integrations/supabase/types").Json;
52234
+ };
52235
+ logistics_slip_is_floriday: {
52236
+ Args: {
52237
+ _slip_job_id: string;
52238
+ };
52239
+ Returns: boolean;
52240
+ };
52241
+ logistics_slip_note_claim: {
52242
+ Args: {
52243
+ _lease_seconds?: number;
52244
+ _limit?: number;
52245
+ };
52246
+ Returns: {
52247
+ attempts: number;
52248
+ batch_key: string | null;
52249
+ cart_id: string | null;
52250
+ created_at: string;
52251
+ error: string | null;
52252
+ error_code: string | null;
52253
+ fulfillment_order_id: string | null;
52254
+ id: string;
52255
+ locked_until: string | null;
52256
+ next_attempt_at: string | null;
52257
+ order_id: string | null;
52258
+ order_number: string | null;
52259
+ print_job_id: string | null;
52260
+ printer_id: string | null;
52261
+ retry_class: string | null;
52262
+ slip_job_id: string;
52263
+ status: string;
52264
+ updated_at: string;
52265
+ }[];
52266
+ SetofOptions: {
52267
+ from: "*";
52268
+ to: "logistics_slip_shipping_note";
52269
+ isOneToOne: false;
52270
+ isSetofReturn: true;
52271
+ };
52272
+ };
52273
+ logistics_slip_note_finish: {
52274
+ Args: {
52275
+ _error?: string;
52276
+ _error_code?: string;
52277
+ _fulfillment_order_id?: string;
52278
+ _id: string;
52279
+ _ok: boolean;
52280
+ _print_job_id?: string;
52281
+ _status?: string;
52282
+ };
52283
+ Returns: undefined;
52284
+ };
52285
+ logistics_slip_note_keep_waiting: {
52286
+ Args: {
52287
+ _class?: string;
52288
+ _id: string;
52289
+ _reason: string;
52290
+ };
52291
+ Returns: undefined;
52292
+ };
51205
52293
  logistics_sticker_follows_slip: {
51206
52294
  Args: never;
51207
52295
  Returns: boolean;
@@ -51256,6 +52344,40 @@ export declare const getLogisticsStrategyBinding: import("@tanstack/start-client
51256
52344
  name: string;
51257
52345
  }[];
51258
52346
  };
52347
+ logistics_trace: {
52348
+ Args: {
52349
+ p: import("../integrations/supabase/types").Json;
52350
+ };
52351
+ Returns: string;
52352
+ };
52353
+ logistics_trace_batch: {
52354
+ Args: {
52355
+ p: import("../integrations/supabase/types").Json;
52356
+ };
52357
+ Returns: number;
52358
+ };
52359
+ logistics_trace_orders: {
52360
+ Args: {
52361
+ p_limit?: number;
52362
+ p_search?: string;
52363
+ p_since?: string;
52364
+ p_status?: string;
52365
+ };
52366
+ Returns: import("../integrations/supabase/types").Json;
52367
+ };
52368
+ logistics_trace_redact: {
52369
+ Args: {
52370
+ p: import("../integrations/supabase/types").Json;
52371
+ };
52372
+ Returns: import("../integrations/supabase/types").Json;
52373
+ };
52374
+ logistics_trace_timeline: {
52375
+ Args: {
52376
+ p_limit?: number;
52377
+ p_order_ref: string;
52378
+ };
52379
+ Returns: import("../integrations/supabase/types").Json;
52380
+ };
51259
52381
  logistics_upsert_task: {
51260
52382
  Args: {
51261
52383
  p_buffer_ref: string;
@@ -52297,6 +53419,10 @@ export declare const getLogisticsStrategyBinding: import("@tanstack/start-client
52297
53419
  };
52298
53420
  Returns: undefined;
52299
53421
  };
53422
+ prune_floriday_api_log: {
53423
+ Args: never;
53424
+ Returns: number;
53425
+ };
52300
53426
  quote_create_from_source: {
52301
53427
  Args: {
52302
53428
  _payload?: import("../integrations/supabase/types").Json;
@@ -53173,6 +54299,10 @@ export declare const getLogisticsStrategyBinding: import("@tanstack/start-client
53173
54299
  Args: never;
53174
54300
  Returns: string;
53175
54301
  };
54302
+ voorraad_cleanup_old_rows: {
54303
+ Args: never;
54304
+ Returns: import("../integrations/supabase/types").Json;
54305
+ };
53176
54306
  wake_print_queue: {
53177
54307
  Args: {
53178
54308
  _min_interval_ms?: number;
@@ -55482,6 +56612,45 @@ export declare const setLogisticsStrategyBinding: import("@tanstack/start-client
55482
56612
  };
55483
56613
  Relationships: [];
55484
56614
  };
56615
+ customer_product_stickers: {
56616
+ Row: {
56617
+ created_at: string;
56618
+ customer_key: string;
56619
+ file_name: string;
56620
+ file_path: string;
56621
+ file_size: number | null;
56622
+ id: string;
56623
+ mime_type: string | null;
56624
+ trade_item_key: string;
56625
+ updated_at: string;
56626
+ uploaded_by: string | null;
56627
+ };
56628
+ Insert: {
56629
+ created_at?: string;
56630
+ customer_key: string;
56631
+ file_name: string;
56632
+ file_path: string;
56633
+ file_size?: number | null;
56634
+ id?: string;
56635
+ mime_type?: string | null;
56636
+ trade_item_key: string;
56637
+ updated_at?: string;
56638
+ uploaded_by?: string | null;
56639
+ };
56640
+ Update: {
56641
+ created_at?: string;
56642
+ customer_key?: string;
56643
+ file_name?: string;
56644
+ file_path?: string;
56645
+ file_size?: number | null;
56646
+ id?: string;
56647
+ mime_type?: string | null;
56648
+ trade_item_key?: string;
56649
+ updated_at?: string;
56650
+ uploaded_by?: string | null;
56651
+ };
56652
+ Relationships: [];
56653
+ };
55485
56654
  customer_selected_assortment: {
55486
56655
  Row: {
55487
56656
  article_number: string | null;
@@ -55530,6 +56699,30 @@ export declare const setLogisticsStrategyBinding: import("@tanstack/start-client
55530
56699
  referencedColumns: ["id"];
55531
56700
  }];
55532
56701
  };
56702
+ customer_sticker_settings: {
56703
+ Row: {
56704
+ created_at: string;
56705
+ customer_key: string;
56706
+ height_mm: number;
56707
+ updated_at: string;
56708
+ width_mm: number;
56709
+ };
56710
+ Insert: {
56711
+ created_at?: string;
56712
+ customer_key: string;
56713
+ height_mm?: number;
56714
+ updated_at?: string;
56715
+ width_mm?: number;
56716
+ };
56717
+ Update: {
56718
+ created_at?: string;
56719
+ customer_key?: string;
56720
+ height_mm?: number;
56721
+ updated_at?: string;
56722
+ width_mm?: number;
56723
+ };
56724
+ Relationships: [];
56725
+ };
55533
56726
  customer_trade_settings: {
55534
56727
  Row: {
55535
56728
  category: string;
@@ -58860,6 +60053,102 @@ export declare const setLogisticsStrategyBinding: import("@tanstack/start-client
58860
60053
  referencedColumns: ["id"];
58861
60054
  }];
58862
60055
  };
60056
+ floriday_api_log: {
60057
+ Row: {
60058
+ action: string | null;
60059
+ caller: string | null;
60060
+ connection_id: string | null;
60061
+ created_at: string;
60062
+ cursor_from: number | null;
60063
+ direction: string;
60064
+ duration_ms: number | null;
60065
+ environment: string | null;
60066
+ error: string | null;
60067
+ floriday_id: string | null;
60068
+ floriday_reference: string | null;
60069
+ http_status: number;
60070
+ id: string;
60071
+ item_count: number | null;
60072
+ kind: string | null;
60073
+ local_id: string | null;
60074
+ local_reference: string | null;
60075
+ method: string;
60076
+ module: string | null;
60077
+ ok: boolean;
60078
+ path: string;
60079
+ request: import("../integrations/supabase/types").Json | null;
60080
+ resource_type: string | null;
60081
+ response: import("../integrations/supabase/types").Json | null;
60082
+ write_log_id: string | null;
60083
+ };
60084
+ Insert: {
60085
+ action?: string | null;
60086
+ caller?: string | null;
60087
+ connection_id?: string | null;
60088
+ created_at?: string;
60089
+ cursor_from?: number | null;
60090
+ direction: string;
60091
+ duration_ms?: number | null;
60092
+ environment?: string | null;
60093
+ error?: string | null;
60094
+ floriday_id?: string | null;
60095
+ floriday_reference?: string | null;
60096
+ http_status?: number;
60097
+ id?: string;
60098
+ item_count?: number | null;
60099
+ kind?: string | null;
60100
+ local_id?: string | null;
60101
+ local_reference?: string | null;
60102
+ method: string;
60103
+ module?: string | null;
60104
+ ok?: boolean;
60105
+ path: string;
60106
+ request?: import("../integrations/supabase/types").Json | null;
60107
+ resource_type?: string | null;
60108
+ response?: import("../integrations/supabase/types").Json | null;
60109
+ write_log_id?: string | null;
60110
+ };
60111
+ Update: {
60112
+ action?: string | null;
60113
+ caller?: string | null;
60114
+ connection_id?: string | null;
60115
+ created_at?: string;
60116
+ cursor_from?: number | null;
60117
+ direction?: string;
60118
+ duration_ms?: number | null;
60119
+ environment?: string | null;
60120
+ error?: string | null;
60121
+ floriday_id?: string | null;
60122
+ floriday_reference?: string | null;
60123
+ http_status?: number;
60124
+ id?: string;
60125
+ item_count?: number | null;
60126
+ kind?: string | null;
60127
+ local_id?: string | null;
60128
+ local_reference?: string | null;
60129
+ method?: string;
60130
+ module?: string | null;
60131
+ ok?: boolean;
60132
+ path?: string;
60133
+ request?: import("../integrations/supabase/types").Json | null;
60134
+ resource_type?: string | null;
60135
+ response?: import("../integrations/supabase/types").Json | null;
60136
+ write_log_id?: string | null;
60137
+ };
60138
+ Relationships: [{
60139
+ foreignKeyName: "floriday_api_log_connection_id_fkey";
60140
+ columns: ["connection_id"];
60141
+ isOneToOne: false;
60142
+ referencedRelation: "floriday_connections";
60143
+ referencedColumns: ["id"];
60144
+ }, {
60145
+ foreignKeyName: "floriday_api_log_write_log_id_fkey";
60146
+ columns: ["write_log_id"];
60147
+ isOneToOne: false;
60148
+ referencedRelation: "floriday_write_log";
60149
+ referencedColumns: ["id"];
60150
+ }];
60151
+ };
58863
60152
  floriday_auction_letters_cache: {
58864
60153
  Row: {
58865
60154
  auction_letter_code: string;
@@ -60060,6 +61349,69 @@ export declare const setLogisticsStrategyBinding: import("@tanstack/start-client
60060
61349
  referencedColumns: ["id"];
60061
61350
  }];
60062
61351
  };
61352
+ floriday_link_templates: {
61353
+ Row: {
61354
+ created_at: string;
61355
+ floriday_url_template: string | null;
61356
+ is_active: boolean;
61357
+ label: string;
61358
+ local_url_template: string | null;
61359
+ resource_type: string;
61360
+ updated_at: string;
61361
+ };
61362
+ Insert: {
61363
+ created_at?: string;
61364
+ floriday_url_template?: string | null;
61365
+ is_active?: boolean;
61366
+ label: string;
61367
+ local_url_template?: string | null;
61368
+ resource_type: string;
61369
+ updated_at?: string;
61370
+ };
61371
+ Update: {
61372
+ created_at?: string;
61373
+ floriday_url_template?: string | null;
61374
+ is_active?: boolean;
61375
+ label?: string;
61376
+ local_url_template?: string | null;
61377
+ resource_type?: string;
61378
+ updated_at?: string;
61379
+ };
61380
+ Relationships: [];
61381
+ };
61382
+ floriday_log_retention: {
61383
+ Row: {
61384
+ created_at: string;
61385
+ direction: string | null;
61386
+ id: string;
61387
+ keep_failed_days: number | null;
61388
+ keep_ok_days: number | null;
61389
+ note: string | null;
61390
+ resource_type: string | null;
61391
+ updated_at: string;
61392
+ };
61393
+ Insert: {
61394
+ created_at?: string;
61395
+ direction?: string | null;
61396
+ id?: string;
61397
+ keep_failed_days?: number | null;
61398
+ keep_ok_days?: number | null;
61399
+ note?: string | null;
61400
+ resource_type?: string | null;
61401
+ updated_at?: string;
61402
+ };
61403
+ Update: {
61404
+ created_at?: string;
61405
+ direction?: string | null;
61406
+ id?: string;
61407
+ keep_failed_days?: number | null;
61408
+ keep_ok_days?: number | null;
61409
+ note?: string | null;
61410
+ resource_type?: string | null;
61411
+ updated_at?: string;
61412
+ };
61413
+ Relationships: [];
61414
+ };
60063
61415
  floriday_logistic_labels_cache: {
60064
61416
  Row: {
60065
61417
  byte_size: number | null;
@@ -64185,6 +65537,69 @@ export declare const setLogisticsStrategyBinding: import("@tanstack/start-client
64185
65537
  };
64186
65538
  Relationships: [];
64187
65539
  };
65540
+ logistics_slip_shipping_note: {
65541
+ Row: {
65542
+ attempts: number;
65543
+ batch_key: string | null;
65544
+ cart_id: string | null;
65545
+ created_at: string;
65546
+ error: string | null;
65547
+ error_code: string | null;
65548
+ fulfillment_order_id: string | null;
65549
+ id: string;
65550
+ locked_until: string | null;
65551
+ next_attempt_at: string | null;
65552
+ order_id: string | null;
65553
+ order_number: string | null;
65554
+ print_job_id: string | null;
65555
+ printer_id: string | null;
65556
+ retry_class: string | null;
65557
+ slip_job_id: string;
65558
+ status: string;
65559
+ updated_at: string;
65560
+ };
65561
+ Insert: {
65562
+ attempts?: number;
65563
+ batch_key?: string | null;
65564
+ cart_id?: string | null;
65565
+ created_at?: string;
65566
+ error?: string | null;
65567
+ error_code?: string | null;
65568
+ fulfillment_order_id?: string | null;
65569
+ id?: string;
65570
+ locked_until?: string | null;
65571
+ next_attempt_at?: string | null;
65572
+ order_id?: string | null;
65573
+ order_number?: string | null;
65574
+ print_job_id?: string | null;
65575
+ printer_id?: string | null;
65576
+ retry_class?: string | null;
65577
+ slip_job_id: string;
65578
+ status?: string;
65579
+ updated_at?: string;
65580
+ };
65581
+ Update: {
65582
+ attempts?: number;
65583
+ batch_key?: string | null;
65584
+ cart_id?: string | null;
65585
+ created_at?: string;
65586
+ error?: string | null;
65587
+ error_code?: string | null;
65588
+ fulfillment_order_id?: string | null;
65589
+ id?: string;
65590
+ locked_until?: string | null;
65591
+ next_attempt_at?: string | null;
65592
+ order_id?: string | null;
65593
+ order_number?: string | null;
65594
+ print_job_id?: string | null;
65595
+ printer_id?: string | null;
65596
+ retry_class?: string | null;
65597
+ slip_job_id?: string;
65598
+ status?: string;
65599
+ updated_at?: string;
65600
+ };
65601
+ Relationships: [];
65602
+ };
64188
65603
  logistics_staff_planning: {
64189
65604
  Row: {
64190
65605
  created_at: string;
@@ -64536,6 +65951,111 @@ export declare const setLogisticsStrategyBinding: import("@tanstack/start-client
64536
65951
  };
64537
65952
  Relationships: [];
64538
65953
  };
65954
+ logistics_trace_events: {
65955
+ Row: {
65956
+ actor: string | null;
65957
+ attempts: number;
65958
+ cart_ref: string | null;
65959
+ created_at: string;
65960
+ db_action: string | null;
65961
+ db_new: import("../integrations/supabase/types").Json | null;
65962
+ db_old: import("../integrations/supabase/types").Json | null;
65963
+ db_record: string | null;
65964
+ db_table: string | null;
65965
+ decision: string | null;
65966
+ duration_ms: number | null;
65967
+ error: string | null;
65968
+ external_action: string | null;
65969
+ external_ref: string | null;
65970
+ external_response: import("../integrations/supabase/types").Json | null;
65971
+ external_status: string | null;
65972
+ external_system: string | null;
65973
+ id: string;
65974
+ input: import("../integrations/supabase/types").Json | null;
65975
+ next_attempt_at: string | null;
65976
+ order_ref: string | null;
65977
+ order_source: string | null;
65978
+ output: import("../integrations/supabase/types").Json | null;
65979
+ phase: string;
65980
+ reads: import("../integrations/supabase/types").Json | null;
65981
+ reason: string | null;
65982
+ rule: string | null;
65983
+ slip_ref: string | null;
65984
+ status: string;
65985
+ step: string;
65986
+ trace_id: string;
65987
+ values_used: import("../integrations/supabase/types").Json | null;
65988
+ };
65989
+ Insert: {
65990
+ actor?: string | null;
65991
+ attempts?: number;
65992
+ cart_ref?: string | null;
65993
+ created_at?: string;
65994
+ db_action?: string | null;
65995
+ db_new?: import("../integrations/supabase/types").Json | null;
65996
+ db_old?: import("../integrations/supabase/types").Json | null;
65997
+ db_record?: string | null;
65998
+ db_table?: string | null;
65999
+ decision?: string | null;
66000
+ duration_ms?: number | null;
66001
+ error?: string | null;
66002
+ external_action?: string | null;
66003
+ external_ref?: string | null;
66004
+ external_response?: import("../integrations/supabase/types").Json | null;
66005
+ external_status?: string | null;
66006
+ external_system?: string | null;
66007
+ id?: string;
66008
+ input?: import("../integrations/supabase/types").Json | null;
66009
+ next_attempt_at?: string | null;
66010
+ order_ref?: string | null;
66011
+ order_source?: string | null;
66012
+ output?: import("../integrations/supabase/types").Json | null;
66013
+ phase: string;
66014
+ reads?: import("../integrations/supabase/types").Json | null;
66015
+ reason?: string | null;
66016
+ rule?: string | null;
66017
+ slip_ref?: string | null;
66018
+ status: string;
66019
+ step: string;
66020
+ trace_id?: string;
66021
+ values_used?: import("../integrations/supabase/types").Json | null;
66022
+ };
66023
+ Update: {
66024
+ actor?: string | null;
66025
+ attempts?: number;
66026
+ cart_ref?: string | null;
66027
+ created_at?: string;
66028
+ db_action?: string | null;
66029
+ db_new?: import("../integrations/supabase/types").Json | null;
66030
+ db_old?: import("../integrations/supabase/types").Json | null;
66031
+ db_record?: string | null;
66032
+ db_table?: string | null;
66033
+ decision?: string | null;
66034
+ duration_ms?: number | null;
66035
+ error?: string | null;
66036
+ external_action?: string | null;
66037
+ external_ref?: string | null;
66038
+ external_response?: import("../integrations/supabase/types").Json | null;
66039
+ external_status?: string | null;
66040
+ external_system?: string | null;
66041
+ id?: string;
66042
+ input?: import("../integrations/supabase/types").Json | null;
66043
+ next_attempt_at?: string | null;
66044
+ order_ref?: string | null;
66045
+ order_source?: string | null;
66046
+ output?: import("../integrations/supabase/types").Json | null;
66047
+ phase?: string;
66048
+ reads?: import("../integrations/supabase/types").Json | null;
66049
+ reason?: string | null;
66050
+ rule?: string | null;
66051
+ slip_ref?: string | null;
66052
+ status?: string;
66053
+ step?: string;
66054
+ trace_id?: string;
66055
+ values_used?: import("../integrations/supabase/types").Json | null;
66056
+ };
66057
+ Relationships: [];
66058
+ };
64539
66059
  logistics_variables: {
64540
66060
  Row: {
64541
66061
  created_at: string;
@@ -75108,6 +76628,15 @@ export declare const setLogisticsStrategyBinding: import("@tanstack/start-client
75108
76628
  Args: never;
75109
76629
  Returns: boolean;
75110
76630
  };
76631
+ cancel_open_print_jobs: {
76632
+ Args: {
76633
+ _cutoff: string;
76634
+ };
76635
+ Returns: {
76636
+ extern_job_id: string;
76637
+ id: string;
76638
+ }[];
76639
+ };
75111
76640
  check_offer_product_available_stock: {
75112
76641
  Args: {
75113
76642
  p_campaign_product_id: string;
@@ -76720,6 +78249,12 @@ export declare const setLogisticsStrategyBinding: import("@tanstack/start-client
76720
78249
  };
76721
78250
  Returns: import("../integrations/supabase/types").Json;
76722
78251
  };
78252
+ logistics_cart_plan_status_core: {
78253
+ Args: {
78254
+ p_ref: string;
78255
+ };
78256
+ Returns: import("../integrations/supabase/types").Json;
78257
+ };
76723
78258
  logistics_cart_release_reason: {
76724
78259
  Args: {
76725
78260
  p_cart_id: string;
@@ -76782,6 +78317,10 @@ export declare const setLogisticsStrategyBinding: import("@tanstack/start-client
76782
78317
  unit_ref: string;
76783
78318
  }[];
76784
78319
  };
78320
+ logistics_carts_per_print: {
78321
+ Args: never;
78322
+ Returns: number;
78323
+ };
76785
78324
  logistics_check_order_allowed: {
76786
78325
  Args: {
76787
78326
  p_lines: import("../integrations/supabase/types").Json;
@@ -77148,6 +78687,12 @@ export declare const setLogisticsStrategyBinding: import("@tanstack/start-client
77148
78687
  };
77149
78688
  Returns: import("../integrations/supabase/types").Json;
77150
78689
  };
78690
+ logistics_ensure_shipping_notes: {
78691
+ Args: {
78692
+ p_limit?: number;
78693
+ };
78694
+ Returns: import("../integrations/supabase/types").Json;
78695
+ };
77151
78696
  logistics_fail_task: {
77152
78697
  Args: {
77153
78698
  p_error: string;
@@ -77193,6 +78738,10 @@ export declare const setLogisticsStrategyBinding: import("@tanstack/start-client
77193
78738
  isSetofReturn: false;
77194
78739
  };
77195
78740
  };
78741
+ logistics_fix_wrong_shipping_notes: {
78742
+ Args: never;
78743
+ Returns: import("../integrations/supabase/types").Json;
78744
+ };
77196
78745
  logistics_floriday_cart_plan: {
77197
78746
  Args: {
77198
78747
  p_order_id: string;
@@ -77220,6 +78769,10 @@ export declare const setLogisticsStrategyBinding: import("@tanstack/start-client
77220
78769
  revision: number;
77221
78770
  }[];
77222
78771
  };
78772
+ logistics_floriday_delivery_note_create_enabled: {
78773
+ Args: never;
78774
+ Returns: boolean;
78775
+ };
77223
78776
  logistics_floriday_finish_push: {
77224
78777
  Args: {
77225
78778
  _error?: string;
@@ -77463,6 +79016,12 @@ export declare const setLogisticsStrategyBinding: import("@tanstack/start-client
77463
79016
  };
77464
79017
  Returns: string;
77465
79018
  };
79019
+ logistics_payload_is_floriday: {
79020
+ Args: {
79021
+ _payload: import("../integrations/supabase/types").Json;
79022
+ };
79023
+ Returns: boolean;
79024
+ };
77466
79025
  logistics_pick_agenda: {
77467
79026
  Args: {
77468
79027
  p_from?: string;
@@ -77585,6 +79144,20 @@ export declare const setLogisticsStrategyBinding: import("@tanstack/start-client
77585
79144
  Args: never;
77586
79145
  Returns: undefined;
77587
79146
  };
79147
+ logistics_plan_progress: {
79148
+ Args: {
79149
+ p_refs: string[];
79150
+ };
79151
+ Returns: {
79152
+ cart_plan_ready: boolean;
79153
+ cart_plan_reason: string;
79154
+ cart_plan_released: boolean;
79155
+ plan_progress: number;
79156
+ plan_state: string;
79157
+ plan_state_since: string;
79158
+ unit_ref: string;
79159
+ }[];
79160
+ };
77588
79161
  logistics_plan_prune: {
77589
79162
  Args: never;
77590
79163
  Returns: number;
@@ -77606,6 +79179,12 @@ export declare const setLogisticsStrategyBinding: import("@tanstack/start-client
77606
79179
  };
77607
79180
  Returns: number;
77608
79181
  };
79182
+ logistics_plan_state_for: {
79183
+ Args: {
79184
+ p_ref: string;
79185
+ };
79186
+ Returns: import("../integrations/supabase/types").Json;
79187
+ };
77609
79188
  logistics_prepare_pick_documents: {
77610
79189
  Args: {
77611
79190
  p_limit?: number;
@@ -77664,6 +79243,12 @@ export declare const setLogisticsStrategyBinding: import("@tanstack/start-client
77664
79243
  };
77665
79244
  Returns: import("../integrations/supabase/types").Json;
77666
79245
  };
79246
+ logistics_refresh_plan_state: {
79247
+ Args: {
79248
+ p_limit?: number;
79249
+ };
79250
+ Returns: import("../integrations/supabase/types").Json;
79251
+ };
77667
79252
  logistics_replan_all: {
77668
79253
  Args: {
77669
79254
  p_reason?: string;
@@ -77832,6 +79417,74 @@ export declare const setLogisticsStrategyBinding: import("@tanstack/start-client
77832
79417
  };
77833
79418
  Returns: import("../integrations/supabase/types").Json;
77834
79419
  };
79420
+ logistics_shipping_note_job_for_slip: {
79421
+ Args: {
79422
+ _slip_job_id: string;
79423
+ };
79424
+ Returns: string;
79425
+ };
79426
+ logistics_shipping_notes_wake_all: {
79427
+ Args: never;
79428
+ Returns: import("../integrations/supabase/types").Json;
79429
+ };
79430
+ logistics_slip_is_floriday: {
79431
+ Args: {
79432
+ _slip_job_id: string;
79433
+ };
79434
+ Returns: boolean;
79435
+ };
79436
+ logistics_slip_note_claim: {
79437
+ Args: {
79438
+ _lease_seconds?: number;
79439
+ _limit?: number;
79440
+ };
79441
+ Returns: {
79442
+ attempts: number;
79443
+ batch_key: string | null;
79444
+ cart_id: string | null;
79445
+ created_at: string;
79446
+ error: string | null;
79447
+ error_code: string | null;
79448
+ fulfillment_order_id: string | null;
79449
+ id: string;
79450
+ locked_until: string | null;
79451
+ next_attempt_at: string | null;
79452
+ order_id: string | null;
79453
+ order_number: string | null;
79454
+ print_job_id: string | null;
79455
+ printer_id: string | null;
79456
+ retry_class: string | null;
79457
+ slip_job_id: string;
79458
+ status: string;
79459
+ updated_at: string;
79460
+ }[];
79461
+ SetofOptions: {
79462
+ from: "*";
79463
+ to: "logistics_slip_shipping_note";
79464
+ isOneToOne: false;
79465
+ isSetofReturn: true;
79466
+ };
79467
+ };
79468
+ logistics_slip_note_finish: {
79469
+ Args: {
79470
+ _error?: string;
79471
+ _error_code?: string;
79472
+ _fulfillment_order_id?: string;
79473
+ _id: string;
79474
+ _ok: boolean;
79475
+ _print_job_id?: string;
79476
+ _status?: string;
79477
+ };
79478
+ Returns: undefined;
79479
+ };
79480
+ logistics_slip_note_keep_waiting: {
79481
+ Args: {
79482
+ _class?: string;
79483
+ _id: string;
79484
+ _reason: string;
79485
+ };
79486
+ Returns: undefined;
79487
+ };
77835
79488
  logistics_sticker_follows_slip: {
77836
79489
  Args: never;
77837
79490
  Returns: boolean;
@@ -77886,6 +79539,40 @@ export declare const setLogisticsStrategyBinding: import("@tanstack/start-client
77886
79539
  name: string;
77887
79540
  }[];
77888
79541
  };
79542
+ logistics_trace: {
79543
+ Args: {
79544
+ p: import("../integrations/supabase/types").Json;
79545
+ };
79546
+ Returns: string;
79547
+ };
79548
+ logistics_trace_batch: {
79549
+ Args: {
79550
+ p: import("../integrations/supabase/types").Json;
79551
+ };
79552
+ Returns: number;
79553
+ };
79554
+ logistics_trace_orders: {
79555
+ Args: {
79556
+ p_limit?: number;
79557
+ p_search?: string;
79558
+ p_since?: string;
79559
+ p_status?: string;
79560
+ };
79561
+ Returns: import("../integrations/supabase/types").Json;
79562
+ };
79563
+ logistics_trace_redact: {
79564
+ Args: {
79565
+ p: import("../integrations/supabase/types").Json;
79566
+ };
79567
+ Returns: import("../integrations/supabase/types").Json;
79568
+ };
79569
+ logistics_trace_timeline: {
79570
+ Args: {
79571
+ p_limit?: number;
79572
+ p_order_ref: string;
79573
+ };
79574
+ Returns: import("../integrations/supabase/types").Json;
79575
+ };
77889
79576
  logistics_upsert_task: {
77890
79577
  Args: {
77891
79578
  p_buffer_ref: string;
@@ -78927,6 +80614,10 @@ export declare const setLogisticsStrategyBinding: import("@tanstack/start-client
78927
80614
  };
78928
80615
  Returns: undefined;
78929
80616
  };
80617
+ prune_floriday_api_log: {
80618
+ Args: never;
80619
+ Returns: number;
80620
+ };
78930
80621
  quote_create_from_source: {
78931
80622
  Args: {
78932
80623
  _payload?: import("../integrations/supabase/types").Json;
@@ -79803,6 +81494,10 @@ export declare const setLogisticsStrategyBinding: import("@tanstack/start-client
79803
81494
  Args: never;
79804
81495
  Returns: string;
79805
81496
  };
81497
+ voorraad_cleanup_old_rows: {
81498
+ Args: never;
81499
+ Returns: import("../integrations/supabase/types").Json;
81500
+ };
79806
81501
  wake_print_queue: {
79807
81502
  Args: {
79808
81503
  _min_interval_ms?: number;
@@ -82113,6 +83808,45 @@ export declare const resolveLogisticsStrategy: import("@tanstack/start-client-co
82113
83808
  };
82114
83809
  Relationships: [];
82115
83810
  };
83811
+ customer_product_stickers: {
83812
+ Row: {
83813
+ created_at: string;
83814
+ customer_key: string;
83815
+ file_name: string;
83816
+ file_path: string;
83817
+ file_size: number | null;
83818
+ id: string;
83819
+ mime_type: string | null;
83820
+ trade_item_key: string;
83821
+ updated_at: string;
83822
+ uploaded_by: string | null;
83823
+ };
83824
+ Insert: {
83825
+ created_at?: string;
83826
+ customer_key: string;
83827
+ file_name: string;
83828
+ file_path: string;
83829
+ file_size?: number | null;
83830
+ id?: string;
83831
+ mime_type?: string | null;
83832
+ trade_item_key: string;
83833
+ updated_at?: string;
83834
+ uploaded_by?: string | null;
83835
+ };
83836
+ Update: {
83837
+ created_at?: string;
83838
+ customer_key?: string;
83839
+ file_name?: string;
83840
+ file_path?: string;
83841
+ file_size?: number | null;
83842
+ id?: string;
83843
+ mime_type?: string | null;
83844
+ trade_item_key?: string;
83845
+ updated_at?: string;
83846
+ uploaded_by?: string | null;
83847
+ };
83848
+ Relationships: [];
83849
+ };
82116
83850
  customer_selected_assortment: {
82117
83851
  Row: {
82118
83852
  article_number: string | null;
@@ -82161,6 +83895,30 @@ export declare const resolveLogisticsStrategy: import("@tanstack/start-client-co
82161
83895
  referencedColumns: ["id"];
82162
83896
  }];
82163
83897
  };
83898
+ customer_sticker_settings: {
83899
+ Row: {
83900
+ created_at: string;
83901
+ customer_key: string;
83902
+ height_mm: number;
83903
+ updated_at: string;
83904
+ width_mm: number;
83905
+ };
83906
+ Insert: {
83907
+ created_at?: string;
83908
+ customer_key: string;
83909
+ height_mm?: number;
83910
+ updated_at?: string;
83911
+ width_mm?: number;
83912
+ };
83913
+ Update: {
83914
+ created_at?: string;
83915
+ customer_key?: string;
83916
+ height_mm?: number;
83917
+ updated_at?: string;
83918
+ width_mm?: number;
83919
+ };
83920
+ Relationships: [];
83921
+ };
82164
83922
  customer_trade_settings: {
82165
83923
  Row: {
82166
83924
  category: string;
@@ -85491,6 +87249,102 @@ export declare const resolveLogisticsStrategy: import("@tanstack/start-client-co
85491
87249
  referencedColumns: ["id"];
85492
87250
  }];
85493
87251
  };
87252
+ floriday_api_log: {
87253
+ Row: {
87254
+ action: string | null;
87255
+ caller: string | null;
87256
+ connection_id: string | null;
87257
+ created_at: string;
87258
+ cursor_from: number | null;
87259
+ direction: string;
87260
+ duration_ms: number | null;
87261
+ environment: string | null;
87262
+ error: string | null;
87263
+ floriday_id: string | null;
87264
+ floriday_reference: string | null;
87265
+ http_status: number;
87266
+ id: string;
87267
+ item_count: number | null;
87268
+ kind: string | null;
87269
+ local_id: string | null;
87270
+ local_reference: string | null;
87271
+ method: string;
87272
+ module: string | null;
87273
+ ok: boolean;
87274
+ path: string;
87275
+ request: import("../integrations/supabase/types").Json | null;
87276
+ resource_type: string | null;
87277
+ response: import("../integrations/supabase/types").Json | null;
87278
+ write_log_id: string | null;
87279
+ };
87280
+ Insert: {
87281
+ action?: string | null;
87282
+ caller?: string | null;
87283
+ connection_id?: string | null;
87284
+ created_at?: string;
87285
+ cursor_from?: number | null;
87286
+ direction: string;
87287
+ duration_ms?: number | null;
87288
+ environment?: string | null;
87289
+ error?: string | null;
87290
+ floriday_id?: string | null;
87291
+ floriday_reference?: string | null;
87292
+ http_status?: number;
87293
+ id?: string;
87294
+ item_count?: number | null;
87295
+ kind?: string | null;
87296
+ local_id?: string | null;
87297
+ local_reference?: string | null;
87298
+ method: string;
87299
+ module?: string | null;
87300
+ ok?: boolean;
87301
+ path: string;
87302
+ request?: import("../integrations/supabase/types").Json | null;
87303
+ resource_type?: string | null;
87304
+ response?: import("../integrations/supabase/types").Json | null;
87305
+ write_log_id?: string | null;
87306
+ };
87307
+ Update: {
87308
+ action?: string | null;
87309
+ caller?: string | null;
87310
+ connection_id?: string | null;
87311
+ created_at?: string;
87312
+ cursor_from?: number | null;
87313
+ direction?: string;
87314
+ duration_ms?: number | null;
87315
+ environment?: string | null;
87316
+ error?: string | null;
87317
+ floriday_id?: string | null;
87318
+ floriday_reference?: string | null;
87319
+ http_status?: number;
87320
+ id?: string;
87321
+ item_count?: number | null;
87322
+ kind?: string | null;
87323
+ local_id?: string | null;
87324
+ local_reference?: string | null;
87325
+ method?: string;
87326
+ module?: string | null;
87327
+ ok?: boolean;
87328
+ path?: string;
87329
+ request?: import("../integrations/supabase/types").Json | null;
87330
+ resource_type?: string | null;
87331
+ response?: import("../integrations/supabase/types").Json | null;
87332
+ write_log_id?: string | null;
87333
+ };
87334
+ Relationships: [{
87335
+ foreignKeyName: "floriday_api_log_connection_id_fkey";
87336
+ columns: ["connection_id"];
87337
+ isOneToOne: false;
87338
+ referencedRelation: "floriday_connections";
87339
+ referencedColumns: ["id"];
87340
+ }, {
87341
+ foreignKeyName: "floriday_api_log_write_log_id_fkey";
87342
+ columns: ["write_log_id"];
87343
+ isOneToOne: false;
87344
+ referencedRelation: "floriday_write_log";
87345
+ referencedColumns: ["id"];
87346
+ }];
87347
+ };
85494
87348
  floriday_auction_letters_cache: {
85495
87349
  Row: {
85496
87350
  auction_letter_code: string;
@@ -86691,6 +88545,69 @@ export declare const resolveLogisticsStrategy: import("@tanstack/start-client-co
86691
88545
  referencedColumns: ["id"];
86692
88546
  }];
86693
88547
  };
88548
+ floriday_link_templates: {
88549
+ Row: {
88550
+ created_at: string;
88551
+ floriday_url_template: string | null;
88552
+ is_active: boolean;
88553
+ label: string;
88554
+ local_url_template: string | null;
88555
+ resource_type: string;
88556
+ updated_at: string;
88557
+ };
88558
+ Insert: {
88559
+ created_at?: string;
88560
+ floriday_url_template?: string | null;
88561
+ is_active?: boolean;
88562
+ label: string;
88563
+ local_url_template?: string | null;
88564
+ resource_type: string;
88565
+ updated_at?: string;
88566
+ };
88567
+ Update: {
88568
+ created_at?: string;
88569
+ floriday_url_template?: string | null;
88570
+ is_active?: boolean;
88571
+ label?: string;
88572
+ local_url_template?: string | null;
88573
+ resource_type?: string;
88574
+ updated_at?: string;
88575
+ };
88576
+ Relationships: [];
88577
+ };
88578
+ floriday_log_retention: {
88579
+ Row: {
88580
+ created_at: string;
88581
+ direction: string | null;
88582
+ id: string;
88583
+ keep_failed_days: number | null;
88584
+ keep_ok_days: number | null;
88585
+ note: string | null;
88586
+ resource_type: string | null;
88587
+ updated_at: string;
88588
+ };
88589
+ Insert: {
88590
+ created_at?: string;
88591
+ direction?: string | null;
88592
+ id?: string;
88593
+ keep_failed_days?: number | null;
88594
+ keep_ok_days?: number | null;
88595
+ note?: string | null;
88596
+ resource_type?: string | null;
88597
+ updated_at?: string;
88598
+ };
88599
+ Update: {
88600
+ created_at?: string;
88601
+ direction?: string | null;
88602
+ id?: string;
88603
+ keep_failed_days?: number | null;
88604
+ keep_ok_days?: number | null;
88605
+ note?: string | null;
88606
+ resource_type?: string | null;
88607
+ updated_at?: string;
88608
+ };
88609
+ Relationships: [];
88610
+ };
86694
88611
  floriday_logistic_labels_cache: {
86695
88612
  Row: {
86696
88613
  byte_size: number | null;
@@ -90816,6 +92733,69 @@ export declare const resolveLogisticsStrategy: import("@tanstack/start-client-co
90816
92733
  };
90817
92734
  Relationships: [];
90818
92735
  };
92736
+ logistics_slip_shipping_note: {
92737
+ Row: {
92738
+ attempts: number;
92739
+ batch_key: string | null;
92740
+ cart_id: string | null;
92741
+ created_at: string;
92742
+ error: string | null;
92743
+ error_code: string | null;
92744
+ fulfillment_order_id: string | null;
92745
+ id: string;
92746
+ locked_until: string | null;
92747
+ next_attempt_at: string | null;
92748
+ order_id: string | null;
92749
+ order_number: string | null;
92750
+ print_job_id: string | null;
92751
+ printer_id: string | null;
92752
+ retry_class: string | null;
92753
+ slip_job_id: string;
92754
+ status: string;
92755
+ updated_at: string;
92756
+ };
92757
+ Insert: {
92758
+ attempts?: number;
92759
+ batch_key?: string | null;
92760
+ cart_id?: string | null;
92761
+ created_at?: string;
92762
+ error?: string | null;
92763
+ error_code?: string | null;
92764
+ fulfillment_order_id?: string | null;
92765
+ id?: string;
92766
+ locked_until?: string | null;
92767
+ next_attempt_at?: string | null;
92768
+ order_id?: string | null;
92769
+ order_number?: string | null;
92770
+ print_job_id?: string | null;
92771
+ printer_id?: string | null;
92772
+ retry_class?: string | null;
92773
+ slip_job_id: string;
92774
+ status?: string;
92775
+ updated_at?: string;
92776
+ };
92777
+ Update: {
92778
+ attempts?: number;
92779
+ batch_key?: string | null;
92780
+ cart_id?: string | null;
92781
+ created_at?: string;
92782
+ error?: string | null;
92783
+ error_code?: string | null;
92784
+ fulfillment_order_id?: string | null;
92785
+ id?: string;
92786
+ locked_until?: string | null;
92787
+ next_attempt_at?: string | null;
92788
+ order_id?: string | null;
92789
+ order_number?: string | null;
92790
+ print_job_id?: string | null;
92791
+ printer_id?: string | null;
92792
+ retry_class?: string | null;
92793
+ slip_job_id?: string;
92794
+ status?: string;
92795
+ updated_at?: string;
92796
+ };
92797
+ Relationships: [];
92798
+ };
90819
92799
  logistics_staff_planning: {
90820
92800
  Row: {
90821
92801
  created_at: string;
@@ -91167,6 +93147,111 @@ export declare const resolveLogisticsStrategy: import("@tanstack/start-client-co
91167
93147
  };
91168
93148
  Relationships: [];
91169
93149
  };
93150
+ logistics_trace_events: {
93151
+ Row: {
93152
+ actor: string | null;
93153
+ attempts: number;
93154
+ cart_ref: string | null;
93155
+ created_at: string;
93156
+ db_action: string | null;
93157
+ db_new: import("../integrations/supabase/types").Json | null;
93158
+ db_old: import("../integrations/supabase/types").Json | null;
93159
+ db_record: string | null;
93160
+ db_table: string | null;
93161
+ decision: string | null;
93162
+ duration_ms: number | null;
93163
+ error: string | null;
93164
+ external_action: string | null;
93165
+ external_ref: string | null;
93166
+ external_response: import("../integrations/supabase/types").Json | null;
93167
+ external_status: string | null;
93168
+ external_system: string | null;
93169
+ id: string;
93170
+ input: import("../integrations/supabase/types").Json | null;
93171
+ next_attempt_at: string | null;
93172
+ order_ref: string | null;
93173
+ order_source: string | null;
93174
+ output: import("../integrations/supabase/types").Json | null;
93175
+ phase: string;
93176
+ reads: import("../integrations/supabase/types").Json | null;
93177
+ reason: string | null;
93178
+ rule: string | null;
93179
+ slip_ref: string | null;
93180
+ status: string;
93181
+ step: string;
93182
+ trace_id: string;
93183
+ values_used: import("../integrations/supabase/types").Json | null;
93184
+ };
93185
+ Insert: {
93186
+ actor?: string | null;
93187
+ attempts?: number;
93188
+ cart_ref?: string | null;
93189
+ created_at?: string;
93190
+ db_action?: string | null;
93191
+ db_new?: import("../integrations/supabase/types").Json | null;
93192
+ db_old?: import("../integrations/supabase/types").Json | null;
93193
+ db_record?: string | null;
93194
+ db_table?: string | null;
93195
+ decision?: string | null;
93196
+ duration_ms?: number | null;
93197
+ error?: string | null;
93198
+ external_action?: string | null;
93199
+ external_ref?: string | null;
93200
+ external_response?: import("../integrations/supabase/types").Json | null;
93201
+ external_status?: string | null;
93202
+ external_system?: string | null;
93203
+ id?: string;
93204
+ input?: import("../integrations/supabase/types").Json | null;
93205
+ next_attempt_at?: string | null;
93206
+ order_ref?: string | null;
93207
+ order_source?: string | null;
93208
+ output?: import("../integrations/supabase/types").Json | null;
93209
+ phase: string;
93210
+ reads?: import("../integrations/supabase/types").Json | null;
93211
+ reason?: string | null;
93212
+ rule?: string | null;
93213
+ slip_ref?: string | null;
93214
+ status: string;
93215
+ step: string;
93216
+ trace_id?: string;
93217
+ values_used?: import("../integrations/supabase/types").Json | null;
93218
+ };
93219
+ Update: {
93220
+ actor?: string | null;
93221
+ attempts?: number;
93222
+ cart_ref?: string | null;
93223
+ created_at?: string;
93224
+ db_action?: string | null;
93225
+ db_new?: import("../integrations/supabase/types").Json | null;
93226
+ db_old?: import("../integrations/supabase/types").Json | null;
93227
+ db_record?: string | null;
93228
+ db_table?: string | null;
93229
+ decision?: string | null;
93230
+ duration_ms?: number | null;
93231
+ error?: string | null;
93232
+ external_action?: string | null;
93233
+ external_ref?: string | null;
93234
+ external_response?: import("../integrations/supabase/types").Json | null;
93235
+ external_status?: string | null;
93236
+ external_system?: string | null;
93237
+ id?: string;
93238
+ input?: import("../integrations/supabase/types").Json | null;
93239
+ next_attempt_at?: string | null;
93240
+ order_ref?: string | null;
93241
+ order_source?: string | null;
93242
+ output?: import("../integrations/supabase/types").Json | null;
93243
+ phase?: string;
93244
+ reads?: import("../integrations/supabase/types").Json | null;
93245
+ reason?: string | null;
93246
+ rule?: string | null;
93247
+ slip_ref?: string | null;
93248
+ status?: string;
93249
+ step?: string;
93250
+ trace_id?: string;
93251
+ values_used?: import("../integrations/supabase/types").Json | null;
93252
+ };
93253
+ Relationships: [];
93254
+ };
91170
93255
  logistics_variables: {
91171
93256
  Row: {
91172
93257
  created_at: string;
@@ -101739,6 +103824,15 @@ export declare const resolveLogisticsStrategy: import("@tanstack/start-client-co
101739
103824
  Args: never;
101740
103825
  Returns: boolean;
101741
103826
  };
103827
+ cancel_open_print_jobs: {
103828
+ Args: {
103829
+ _cutoff: string;
103830
+ };
103831
+ Returns: {
103832
+ extern_job_id: string;
103833
+ id: string;
103834
+ }[];
103835
+ };
101742
103836
  check_offer_product_available_stock: {
101743
103837
  Args: {
101744
103838
  p_campaign_product_id: string;
@@ -103351,6 +105445,12 @@ export declare const resolveLogisticsStrategy: import("@tanstack/start-client-co
103351
105445
  };
103352
105446
  Returns: import("../integrations/supabase/types").Json;
103353
105447
  };
105448
+ logistics_cart_plan_status_core: {
105449
+ Args: {
105450
+ p_ref: string;
105451
+ };
105452
+ Returns: import("../integrations/supabase/types").Json;
105453
+ };
103354
105454
  logistics_cart_release_reason: {
103355
105455
  Args: {
103356
105456
  p_cart_id: string;
@@ -103413,6 +105513,10 @@ export declare const resolveLogisticsStrategy: import("@tanstack/start-client-co
103413
105513
  unit_ref: string;
103414
105514
  }[];
103415
105515
  };
105516
+ logistics_carts_per_print: {
105517
+ Args: never;
105518
+ Returns: number;
105519
+ };
103416
105520
  logistics_check_order_allowed: {
103417
105521
  Args: {
103418
105522
  p_lines: import("../integrations/supabase/types").Json;
@@ -103779,6 +105883,12 @@ export declare const resolveLogisticsStrategy: import("@tanstack/start-client-co
103779
105883
  };
103780
105884
  Returns: import("../integrations/supabase/types").Json;
103781
105885
  };
105886
+ logistics_ensure_shipping_notes: {
105887
+ Args: {
105888
+ p_limit?: number;
105889
+ };
105890
+ Returns: import("../integrations/supabase/types").Json;
105891
+ };
103782
105892
  logistics_fail_task: {
103783
105893
  Args: {
103784
105894
  p_error: string;
@@ -103824,6 +105934,10 @@ export declare const resolveLogisticsStrategy: import("@tanstack/start-client-co
103824
105934
  isSetofReturn: false;
103825
105935
  };
103826
105936
  };
105937
+ logistics_fix_wrong_shipping_notes: {
105938
+ Args: never;
105939
+ Returns: import("../integrations/supabase/types").Json;
105940
+ };
103827
105941
  logistics_floriday_cart_plan: {
103828
105942
  Args: {
103829
105943
  p_order_id: string;
@@ -103851,6 +105965,10 @@ export declare const resolveLogisticsStrategy: import("@tanstack/start-client-co
103851
105965
  revision: number;
103852
105966
  }[];
103853
105967
  };
105968
+ logistics_floriday_delivery_note_create_enabled: {
105969
+ Args: never;
105970
+ Returns: boolean;
105971
+ };
103854
105972
  logistics_floriday_finish_push: {
103855
105973
  Args: {
103856
105974
  _error?: string;
@@ -104094,6 +106212,12 @@ export declare const resolveLogisticsStrategy: import("@tanstack/start-client-co
104094
106212
  };
104095
106213
  Returns: string;
104096
106214
  };
106215
+ logistics_payload_is_floriday: {
106216
+ Args: {
106217
+ _payload: import("../integrations/supabase/types").Json;
106218
+ };
106219
+ Returns: boolean;
106220
+ };
104097
106221
  logistics_pick_agenda: {
104098
106222
  Args: {
104099
106223
  p_from?: string;
@@ -104216,6 +106340,20 @@ export declare const resolveLogisticsStrategy: import("@tanstack/start-client-co
104216
106340
  Args: never;
104217
106341
  Returns: undefined;
104218
106342
  };
106343
+ logistics_plan_progress: {
106344
+ Args: {
106345
+ p_refs: string[];
106346
+ };
106347
+ Returns: {
106348
+ cart_plan_ready: boolean;
106349
+ cart_plan_reason: string;
106350
+ cart_plan_released: boolean;
106351
+ plan_progress: number;
106352
+ plan_state: string;
106353
+ plan_state_since: string;
106354
+ unit_ref: string;
106355
+ }[];
106356
+ };
104219
106357
  logistics_plan_prune: {
104220
106358
  Args: never;
104221
106359
  Returns: number;
@@ -104237,6 +106375,12 @@ export declare const resolveLogisticsStrategy: import("@tanstack/start-client-co
104237
106375
  };
104238
106376
  Returns: number;
104239
106377
  };
106378
+ logistics_plan_state_for: {
106379
+ Args: {
106380
+ p_ref: string;
106381
+ };
106382
+ Returns: import("../integrations/supabase/types").Json;
106383
+ };
104240
106384
  logistics_prepare_pick_documents: {
104241
106385
  Args: {
104242
106386
  p_limit?: number;
@@ -104295,6 +106439,12 @@ export declare const resolveLogisticsStrategy: import("@tanstack/start-client-co
104295
106439
  };
104296
106440
  Returns: import("../integrations/supabase/types").Json;
104297
106441
  };
106442
+ logistics_refresh_plan_state: {
106443
+ Args: {
106444
+ p_limit?: number;
106445
+ };
106446
+ Returns: import("../integrations/supabase/types").Json;
106447
+ };
104298
106448
  logistics_replan_all: {
104299
106449
  Args: {
104300
106450
  p_reason?: string;
@@ -104463,6 +106613,74 @@ export declare const resolveLogisticsStrategy: import("@tanstack/start-client-co
104463
106613
  };
104464
106614
  Returns: import("../integrations/supabase/types").Json;
104465
106615
  };
106616
+ logistics_shipping_note_job_for_slip: {
106617
+ Args: {
106618
+ _slip_job_id: string;
106619
+ };
106620
+ Returns: string;
106621
+ };
106622
+ logistics_shipping_notes_wake_all: {
106623
+ Args: never;
106624
+ Returns: import("../integrations/supabase/types").Json;
106625
+ };
106626
+ logistics_slip_is_floriday: {
106627
+ Args: {
106628
+ _slip_job_id: string;
106629
+ };
106630
+ Returns: boolean;
106631
+ };
106632
+ logistics_slip_note_claim: {
106633
+ Args: {
106634
+ _lease_seconds?: number;
106635
+ _limit?: number;
106636
+ };
106637
+ Returns: {
106638
+ attempts: number;
106639
+ batch_key: string | null;
106640
+ cart_id: string | null;
106641
+ created_at: string;
106642
+ error: string | null;
106643
+ error_code: string | null;
106644
+ fulfillment_order_id: string | null;
106645
+ id: string;
106646
+ locked_until: string | null;
106647
+ next_attempt_at: string | null;
106648
+ order_id: string | null;
106649
+ order_number: string | null;
106650
+ print_job_id: string | null;
106651
+ printer_id: string | null;
106652
+ retry_class: string | null;
106653
+ slip_job_id: string;
106654
+ status: string;
106655
+ updated_at: string;
106656
+ }[];
106657
+ SetofOptions: {
106658
+ from: "*";
106659
+ to: "logistics_slip_shipping_note";
106660
+ isOneToOne: false;
106661
+ isSetofReturn: true;
106662
+ };
106663
+ };
106664
+ logistics_slip_note_finish: {
106665
+ Args: {
106666
+ _error?: string;
106667
+ _error_code?: string;
106668
+ _fulfillment_order_id?: string;
106669
+ _id: string;
106670
+ _ok: boolean;
106671
+ _print_job_id?: string;
106672
+ _status?: string;
106673
+ };
106674
+ Returns: undefined;
106675
+ };
106676
+ logistics_slip_note_keep_waiting: {
106677
+ Args: {
106678
+ _class?: string;
106679
+ _id: string;
106680
+ _reason: string;
106681
+ };
106682
+ Returns: undefined;
106683
+ };
104466
106684
  logistics_sticker_follows_slip: {
104467
106685
  Args: never;
104468
106686
  Returns: boolean;
@@ -104517,6 +106735,40 @@ export declare const resolveLogisticsStrategy: import("@tanstack/start-client-co
104517
106735
  name: string;
104518
106736
  }[];
104519
106737
  };
106738
+ logistics_trace: {
106739
+ Args: {
106740
+ p: import("../integrations/supabase/types").Json;
106741
+ };
106742
+ Returns: string;
106743
+ };
106744
+ logistics_trace_batch: {
106745
+ Args: {
106746
+ p: import("../integrations/supabase/types").Json;
106747
+ };
106748
+ Returns: number;
106749
+ };
106750
+ logistics_trace_orders: {
106751
+ Args: {
106752
+ p_limit?: number;
106753
+ p_search?: string;
106754
+ p_since?: string;
106755
+ p_status?: string;
106756
+ };
106757
+ Returns: import("../integrations/supabase/types").Json;
106758
+ };
106759
+ logistics_trace_redact: {
106760
+ Args: {
106761
+ p: import("../integrations/supabase/types").Json;
106762
+ };
106763
+ Returns: import("../integrations/supabase/types").Json;
106764
+ };
106765
+ logistics_trace_timeline: {
106766
+ Args: {
106767
+ p_limit?: number;
106768
+ p_order_ref: string;
106769
+ };
106770
+ Returns: import("../integrations/supabase/types").Json;
106771
+ };
104520
106772
  logistics_upsert_task: {
104521
106773
  Args: {
104522
106774
  p_buffer_ref: string;
@@ -105558,6 +107810,10 @@ export declare const resolveLogisticsStrategy: import("@tanstack/start-client-co
105558
107810
  };
105559
107811
  Returns: undefined;
105560
107812
  };
107813
+ prune_floriday_api_log: {
107814
+ Args: never;
107815
+ Returns: number;
107816
+ };
105561
107817
  quote_create_from_source: {
105562
107818
  Args: {
105563
107819
  _payload?: import("../integrations/supabase/types").Json;
@@ -106434,6 +108690,10 @@ export declare const resolveLogisticsStrategy: import("@tanstack/start-client-co
106434
108690
  Args: never;
106435
108691
  Returns: string;
106436
108692
  };
108693
+ voorraad_cleanup_old_rows: {
108694
+ Args: never;
108695
+ Returns: import("../integrations/supabase/types").Json;
108696
+ };
106437
108697
  wake_print_queue: {
106438
108698
  Args: {
106439
108699
  _min_interval_ms?: number;