@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
@@ -2266,6 +2266,45 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
2266
2266
  };
2267
2267
  Relationships: [];
2268
2268
  };
2269
+ customer_product_stickers: {
2270
+ Row: {
2271
+ created_at: string;
2272
+ customer_key: string;
2273
+ file_name: string;
2274
+ file_path: string;
2275
+ file_size: number | null;
2276
+ id: string;
2277
+ mime_type: string | null;
2278
+ trade_item_key: string;
2279
+ updated_at: string;
2280
+ uploaded_by: string | null;
2281
+ };
2282
+ Insert: {
2283
+ created_at?: string;
2284
+ customer_key: string;
2285
+ file_name: string;
2286
+ file_path: string;
2287
+ file_size?: number | null;
2288
+ id?: string;
2289
+ mime_type?: string | null;
2290
+ trade_item_key: string;
2291
+ updated_at?: string;
2292
+ uploaded_by?: string | null;
2293
+ };
2294
+ Update: {
2295
+ created_at?: string;
2296
+ customer_key?: string;
2297
+ file_name?: string;
2298
+ file_path?: string;
2299
+ file_size?: number | null;
2300
+ id?: string;
2301
+ mime_type?: string | null;
2302
+ trade_item_key?: string;
2303
+ updated_at?: string;
2304
+ uploaded_by?: string | null;
2305
+ };
2306
+ Relationships: [];
2307
+ };
2269
2308
  customer_selected_assortment: {
2270
2309
  Row: {
2271
2310
  article_number: string | null;
@@ -2314,6 +2353,30 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
2314
2353
  referencedColumns: ["id"];
2315
2354
  }];
2316
2355
  };
2356
+ customer_sticker_settings: {
2357
+ Row: {
2358
+ created_at: string;
2359
+ customer_key: string;
2360
+ height_mm: number;
2361
+ updated_at: string;
2362
+ width_mm: number;
2363
+ };
2364
+ Insert: {
2365
+ created_at?: string;
2366
+ customer_key: string;
2367
+ height_mm?: number;
2368
+ updated_at?: string;
2369
+ width_mm?: number;
2370
+ };
2371
+ Update: {
2372
+ created_at?: string;
2373
+ customer_key?: string;
2374
+ height_mm?: number;
2375
+ updated_at?: string;
2376
+ width_mm?: number;
2377
+ };
2378
+ Relationships: [];
2379
+ };
2317
2380
  customer_trade_settings: {
2318
2381
  Row: {
2319
2382
  category: string;
@@ -5644,6 +5707,102 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
5644
5707
  referencedColumns: ["id"];
5645
5708
  }];
5646
5709
  };
5710
+ floriday_api_log: {
5711
+ Row: {
5712
+ action: string | null;
5713
+ caller: string | null;
5714
+ connection_id: string | null;
5715
+ created_at: string;
5716
+ cursor_from: number | null;
5717
+ direction: string;
5718
+ duration_ms: number | null;
5719
+ environment: string | null;
5720
+ error: string | null;
5721
+ floriday_id: string | null;
5722
+ floriday_reference: string | null;
5723
+ http_status: number;
5724
+ id: string;
5725
+ item_count: number | null;
5726
+ kind: string | null;
5727
+ local_id: string | null;
5728
+ local_reference: string | null;
5729
+ method: string;
5730
+ module: string | null;
5731
+ ok: boolean;
5732
+ path: string;
5733
+ request: import("../integrations/supabase/types").Json | null;
5734
+ resource_type: string | null;
5735
+ response: import("../integrations/supabase/types").Json | null;
5736
+ write_log_id: string | null;
5737
+ };
5738
+ Insert: {
5739
+ action?: string | null;
5740
+ caller?: string | null;
5741
+ connection_id?: string | null;
5742
+ created_at?: string;
5743
+ cursor_from?: number | null;
5744
+ direction: string;
5745
+ duration_ms?: number | null;
5746
+ environment?: string | null;
5747
+ error?: string | null;
5748
+ floriday_id?: string | null;
5749
+ floriday_reference?: string | null;
5750
+ http_status?: number;
5751
+ id?: string;
5752
+ item_count?: number | null;
5753
+ kind?: string | null;
5754
+ local_id?: string | null;
5755
+ local_reference?: string | null;
5756
+ method: string;
5757
+ module?: string | null;
5758
+ ok?: boolean;
5759
+ path: string;
5760
+ request?: import("../integrations/supabase/types").Json | null;
5761
+ resource_type?: string | null;
5762
+ response?: import("../integrations/supabase/types").Json | null;
5763
+ write_log_id?: string | null;
5764
+ };
5765
+ Update: {
5766
+ action?: string | null;
5767
+ caller?: string | null;
5768
+ connection_id?: string | null;
5769
+ created_at?: string;
5770
+ cursor_from?: number | null;
5771
+ direction?: string;
5772
+ duration_ms?: number | null;
5773
+ environment?: string | null;
5774
+ error?: string | null;
5775
+ floriday_id?: string | null;
5776
+ floriday_reference?: string | null;
5777
+ http_status?: number;
5778
+ id?: string;
5779
+ item_count?: number | null;
5780
+ kind?: string | null;
5781
+ local_id?: string | null;
5782
+ local_reference?: string | null;
5783
+ method?: string;
5784
+ module?: string | null;
5785
+ ok?: boolean;
5786
+ path?: string;
5787
+ request?: import("../integrations/supabase/types").Json | null;
5788
+ resource_type?: string | null;
5789
+ response?: import("../integrations/supabase/types").Json | null;
5790
+ write_log_id?: string | null;
5791
+ };
5792
+ Relationships: [{
5793
+ foreignKeyName: "floriday_api_log_connection_id_fkey";
5794
+ columns: ["connection_id"];
5795
+ isOneToOne: false;
5796
+ referencedRelation: "floriday_connections";
5797
+ referencedColumns: ["id"];
5798
+ }, {
5799
+ foreignKeyName: "floriday_api_log_write_log_id_fkey";
5800
+ columns: ["write_log_id"];
5801
+ isOneToOne: false;
5802
+ referencedRelation: "floriday_write_log";
5803
+ referencedColumns: ["id"];
5804
+ }];
5805
+ };
5647
5806
  floriday_auction_letters_cache: {
5648
5807
  Row: {
5649
5808
  auction_letter_code: string;
@@ -6844,6 +7003,69 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
6844
7003
  referencedColumns: ["id"];
6845
7004
  }];
6846
7005
  };
7006
+ floriday_link_templates: {
7007
+ Row: {
7008
+ created_at: string;
7009
+ floriday_url_template: string | null;
7010
+ is_active: boolean;
7011
+ label: string;
7012
+ local_url_template: string | null;
7013
+ resource_type: string;
7014
+ updated_at: string;
7015
+ };
7016
+ Insert: {
7017
+ created_at?: string;
7018
+ floriday_url_template?: string | null;
7019
+ is_active?: boolean;
7020
+ label: string;
7021
+ local_url_template?: string | null;
7022
+ resource_type: string;
7023
+ updated_at?: string;
7024
+ };
7025
+ Update: {
7026
+ created_at?: string;
7027
+ floriday_url_template?: string | null;
7028
+ is_active?: boolean;
7029
+ label?: string;
7030
+ local_url_template?: string | null;
7031
+ resource_type?: string;
7032
+ updated_at?: string;
7033
+ };
7034
+ Relationships: [];
7035
+ };
7036
+ floriday_log_retention: {
7037
+ Row: {
7038
+ created_at: string;
7039
+ direction: string | null;
7040
+ id: string;
7041
+ keep_failed_days: number | null;
7042
+ keep_ok_days: number | null;
7043
+ note: string | null;
7044
+ resource_type: string | null;
7045
+ updated_at: string;
7046
+ };
7047
+ Insert: {
7048
+ created_at?: string;
7049
+ direction?: string | null;
7050
+ id?: string;
7051
+ keep_failed_days?: number | null;
7052
+ keep_ok_days?: number | null;
7053
+ note?: string | null;
7054
+ resource_type?: string | null;
7055
+ updated_at?: string;
7056
+ };
7057
+ Update: {
7058
+ created_at?: string;
7059
+ direction?: string | null;
7060
+ id?: string;
7061
+ keep_failed_days?: number | null;
7062
+ keep_ok_days?: number | null;
7063
+ note?: string | null;
7064
+ resource_type?: string | null;
7065
+ updated_at?: string;
7066
+ };
7067
+ Relationships: [];
7068
+ };
6847
7069
  floriday_logistic_labels_cache: {
6848
7070
  Row: {
6849
7071
  byte_size: number | null;
@@ -10969,6 +11191,69 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
10969
11191
  };
10970
11192
  Relationships: [];
10971
11193
  };
11194
+ logistics_slip_shipping_note: {
11195
+ Row: {
11196
+ attempts: number;
11197
+ batch_key: string | null;
11198
+ cart_id: string | null;
11199
+ created_at: string;
11200
+ error: string | null;
11201
+ error_code: string | null;
11202
+ fulfillment_order_id: string | null;
11203
+ id: string;
11204
+ locked_until: string | null;
11205
+ next_attempt_at: string | null;
11206
+ order_id: string | null;
11207
+ order_number: string | null;
11208
+ print_job_id: string | null;
11209
+ printer_id: string | null;
11210
+ retry_class: string | null;
11211
+ slip_job_id: string;
11212
+ status: string;
11213
+ updated_at: string;
11214
+ };
11215
+ Insert: {
11216
+ attempts?: number;
11217
+ batch_key?: string | null;
11218
+ cart_id?: string | null;
11219
+ created_at?: string;
11220
+ error?: string | null;
11221
+ error_code?: string | null;
11222
+ fulfillment_order_id?: string | null;
11223
+ id?: string;
11224
+ locked_until?: string | null;
11225
+ next_attempt_at?: string | null;
11226
+ order_id?: string | null;
11227
+ order_number?: string | null;
11228
+ print_job_id?: string | null;
11229
+ printer_id?: string | null;
11230
+ retry_class?: string | null;
11231
+ slip_job_id: string;
11232
+ status?: string;
11233
+ updated_at?: string;
11234
+ };
11235
+ Update: {
11236
+ attempts?: number;
11237
+ batch_key?: string | null;
11238
+ cart_id?: string | null;
11239
+ created_at?: string;
11240
+ error?: string | null;
11241
+ error_code?: string | null;
11242
+ fulfillment_order_id?: string | null;
11243
+ id?: string;
11244
+ locked_until?: string | null;
11245
+ next_attempt_at?: string | null;
11246
+ order_id?: string | null;
11247
+ order_number?: string | null;
11248
+ print_job_id?: string | null;
11249
+ printer_id?: string | null;
11250
+ retry_class?: string | null;
11251
+ slip_job_id?: string;
11252
+ status?: string;
11253
+ updated_at?: string;
11254
+ };
11255
+ Relationships: [];
11256
+ };
10972
11257
  logistics_staff_planning: {
10973
11258
  Row: {
10974
11259
  created_at: string;
@@ -11320,6 +11605,111 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
11320
11605
  };
11321
11606
  Relationships: [];
11322
11607
  };
11608
+ logistics_trace_events: {
11609
+ Row: {
11610
+ actor: string | null;
11611
+ attempts: number;
11612
+ cart_ref: string | null;
11613
+ created_at: string;
11614
+ db_action: string | null;
11615
+ db_new: import("../integrations/supabase/types").Json | null;
11616
+ db_old: import("../integrations/supabase/types").Json | null;
11617
+ db_record: string | null;
11618
+ db_table: string | null;
11619
+ decision: string | null;
11620
+ duration_ms: number | null;
11621
+ error: string | null;
11622
+ external_action: string | null;
11623
+ external_ref: string | null;
11624
+ external_response: import("../integrations/supabase/types").Json | null;
11625
+ external_status: string | null;
11626
+ external_system: string | null;
11627
+ id: string;
11628
+ input: import("../integrations/supabase/types").Json | null;
11629
+ next_attempt_at: string | null;
11630
+ order_ref: string | null;
11631
+ order_source: string | null;
11632
+ output: import("../integrations/supabase/types").Json | null;
11633
+ phase: string;
11634
+ reads: import("../integrations/supabase/types").Json | null;
11635
+ reason: string | null;
11636
+ rule: string | null;
11637
+ slip_ref: string | null;
11638
+ status: string;
11639
+ step: string;
11640
+ trace_id: string;
11641
+ values_used: import("../integrations/supabase/types").Json | null;
11642
+ };
11643
+ Insert: {
11644
+ actor?: string | null;
11645
+ attempts?: number;
11646
+ cart_ref?: string | null;
11647
+ created_at?: string;
11648
+ db_action?: string | null;
11649
+ db_new?: import("../integrations/supabase/types").Json | null;
11650
+ db_old?: import("../integrations/supabase/types").Json | null;
11651
+ db_record?: string | null;
11652
+ db_table?: string | null;
11653
+ decision?: string | null;
11654
+ duration_ms?: number | null;
11655
+ error?: string | null;
11656
+ external_action?: string | null;
11657
+ external_ref?: string | null;
11658
+ external_response?: import("../integrations/supabase/types").Json | null;
11659
+ external_status?: string | null;
11660
+ external_system?: string | null;
11661
+ id?: string;
11662
+ input?: import("../integrations/supabase/types").Json | null;
11663
+ next_attempt_at?: string | null;
11664
+ order_ref?: string | null;
11665
+ order_source?: string | null;
11666
+ output?: import("../integrations/supabase/types").Json | null;
11667
+ phase: string;
11668
+ reads?: import("../integrations/supabase/types").Json | null;
11669
+ reason?: string | null;
11670
+ rule?: string | null;
11671
+ slip_ref?: string | null;
11672
+ status: string;
11673
+ step: string;
11674
+ trace_id?: string;
11675
+ values_used?: import("../integrations/supabase/types").Json | null;
11676
+ };
11677
+ Update: {
11678
+ actor?: string | null;
11679
+ attempts?: number;
11680
+ cart_ref?: string | null;
11681
+ created_at?: string;
11682
+ db_action?: string | null;
11683
+ db_new?: import("../integrations/supabase/types").Json | null;
11684
+ db_old?: import("../integrations/supabase/types").Json | null;
11685
+ db_record?: string | null;
11686
+ db_table?: string | null;
11687
+ decision?: string | null;
11688
+ duration_ms?: number | null;
11689
+ error?: string | null;
11690
+ external_action?: string | null;
11691
+ external_ref?: string | null;
11692
+ external_response?: import("../integrations/supabase/types").Json | null;
11693
+ external_status?: string | null;
11694
+ external_system?: string | null;
11695
+ id?: string;
11696
+ input?: import("../integrations/supabase/types").Json | null;
11697
+ next_attempt_at?: string | null;
11698
+ order_ref?: string | null;
11699
+ order_source?: string | null;
11700
+ output?: import("../integrations/supabase/types").Json | null;
11701
+ phase?: string;
11702
+ reads?: import("../integrations/supabase/types").Json | null;
11703
+ reason?: string | null;
11704
+ rule?: string | null;
11705
+ slip_ref?: string | null;
11706
+ status?: string;
11707
+ step?: string;
11708
+ trace_id?: string;
11709
+ values_used?: import("../integrations/supabase/types").Json | null;
11710
+ };
11711
+ Relationships: [];
11712
+ };
11323
11713
  logistics_variables: {
11324
11714
  Row: {
11325
11715
  created_at: string;
@@ -21892,6 +22282,15 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
21892
22282
  Args: never;
21893
22283
  Returns: boolean;
21894
22284
  };
22285
+ cancel_open_print_jobs: {
22286
+ Args: {
22287
+ _cutoff: string;
22288
+ };
22289
+ Returns: {
22290
+ extern_job_id: string;
22291
+ id: string;
22292
+ }[];
22293
+ };
21895
22294
  check_offer_product_available_stock: {
21896
22295
  Args: {
21897
22296
  p_campaign_product_id: string;
@@ -23504,6 +23903,12 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
23504
23903
  };
23505
23904
  Returns: import("../integrations/supabase/types").Json;
23506
23905
  };
23906
+ logistics_cart_plan_status_core: {
23907
+ Args: {
23908
+ p_ref: string;
23909
+ };
23910
+ Returns: import("../integrations/supabase/types").Json;
23911
+ };
23507
23912
  logistics_cart_release_reason: {
23508
23913
  Args: {
23509
23914
  p_cart_id: string;
@@ -23566,6 +23971,10 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
23566
23971
  unit_ref: string;
23567
23972
  }[];
23568
23973
  };
23974
+ logistics_carts_per_print: {
23975
+ Args: never;
23976
+ Returns: number;
23977
+ };
23569
23978
  logistics_check_order_allowed: {
23570
23979
  Args: {
23571
23980
  p_lines: import("../integrations/supabase/types").Json;
@@ -23932,6 +24341,12 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
23932
24341
  };
23933
24342
  Returns: import("../integrations/supabase/types").Json;
23934
24343
  };
24344
+ logistics_ensure_shipping_notes: {
24345
+ Args: {
24346
+ p_limit?: number;
24347
+ };
24348
+ Returns: import("../integrations/supabase/types").Json;
24349
+ };
23935
24350
  logistics_fail_task: {
23936
24351
  Args: {
23937
24352
  p_error: string;
@@ -23977,6 +24392,10 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
23977
24392
  isSetofReturn: false;
23978
24393
  };
23979
24394
  };
24395
+ logistics_fix_wrong_shipping_notes: {
24396
+ Args: never;
24397
+ Returns: import("../integrations/supabase/types").Json;
24398
+ };
23980
24399
  logistics_floriday_cart_plan: {
23981
24400
  Args: {
23982
24401
  p_order_id: string;
@@ -24004,6 +24423,10 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
24004
24423
  revision: number;
24005
24424
  }[];
24006
24425
  };
24426
+ logistics_floriday_delivery_note_create_enabled: {
24427
+ Args: never;
24428
+ Returns: boolean;
24429
+ };
24007
24430
  logistics_floriday_finish_push: {
24008
24431
  Args: {
24009
24432
  _error?: string;
@@ -24247,6 +24670,12 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
24247
24670
  };
24248
24671
  Returns: string;
24249
24672
  };
24673
+ logistics_payload_is_floriday: {
24674
+ Args: {
24675
+ _payload: import("../integrations/supabase/types").Json;
24676
+ };
24677
+ Returns: boolean;
24678
+ };
24250
24679
  logistics_pick_agenda: {
24251
24680
  Args: {
24252
24681
  p_from?: string;
@@ -24369,6 +24798,20 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
24369
24798
  Args: never;
24370
24799
  Returns: undefined;
24371
24800
  };
24801
+ logistics_plan_progress: {
24802
+ Args: {
24803
+ p_refs: string[];
24804
+ };
24805
+ Returns: {
24806
+ cart_plan_ready: boolean;
24807
+ cart_plan_reason: string;
24808
+ cart_plan_released: boolean;
24809
+ plan_progress: number;
24810
+ plan_state: string;
24811
+ plan_state_since: string;
24812
+ unit_ref: string;
24813
+ }[];
24814
+ };
24372
24815
  logistics_plan_prune: {
24373
24816
  Args: never;
24374
24817
  Returns: number;
@@ -24390,6 +24833,12 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
24390
24833
  };
24391
24834
  Returns: number;
24392
24835
  };
24836
+ logistics_plan_state_for: {
24837
+ Args: {
24838
+ p_ref: string;
24839
+ };
24840
+ Returns: import("../integrations/supabase/types").Json;
24841
+ };
24393
24842
  logistics_prepare_pick_documents: {
24394
24843
  Args: {
24395
24844
  p_limit?: number;
@@ -24448,6 +24897,12 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
24448
24897
  };
24449
24898
  Returns: import("../integrations/supabase/types").Json;
24450
24899
  };
24900
+ logistics_refresh_plan_state: {
24901
+ Args: {
24902
+ p_limit?: number;
24903
+ };
24904
+ Returns: import("../integrations/supabase/types").Json;
24905
+ };
24451
24906
  logistics_replan_all: {
24452
24907
  Args: {
24453
24908
  p_reason?: string;
@@ -24616,6 +25071,74 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
24616
25071
  };
24617
25072
  Returns: import("../integrations/supabase/types").Json;
24618
25073
  };
25074
+ logistics_shipping_note_job_for_slip: {
25075
+ Args: {
25076
+ _slip_job_id: string;
25077
+ };
25078
+ Returns: string;
25079
+ };
25080
+ logistics_shipping_notes_wake_all: {
25081
+ Args: never;
25082
+ Returns: import("../integrations/supabase/types").Json;
25083
+ };
25084
+ logistics_slip_is_floriday: {
25085
+ Args: {
25086
+ _slip_job_id: string;
25087
+ };
25088
+ Returns: boolean;
25089
+ };
25090
+ logistics_slip_note_claim: {
25091
+ Args: {
25092
+ _lease_seconds?: number;
25093
+ _limit?: number;
25094
+ };
25095
+ Returns: {
25096
+ attempts: number;
25097
+ batch_key: string | null;
25098
+ cart_id: string | null;
25099
+ created_at: string;
25100
+ error: string | null;
25101
+ error_code: string | null;
25102
+ fulfillment_order_id: string | null;
25103
+ id: string;
25104
+ locked_until: string | null;
25105
+ next_attempt_at: string | null;
25106
+ order_id: string | null;
25107
+ order_number: string | null;
25108
+ print_job_id: string | null;
25109
+ printer_id: string | null;
25110
+ retry_class: string | null;
25111
+ slip_job_id: string;
25112
+ status: string;
25113
+ updated_at: string;
25114
+ }[];
25115
+ SetofOptions: {
25116
+ from: "*";
25117
+ to: "logistics_slip_shipping_note";
25118
+ isOneToOne: false;
25119
+ isSetofReturn: true;
25120
+ };
25121
+ };
25122
+ logistics_slip_note_finish: {
25123
+ Args: {
25124
+ _error?: string;
25125
+ _error_code?: string;
25126
+ _fulfillment_order_id?: string;
25127
+ _id: string;
25128
+ _ok: boolean;
25129
+ _print_job_id?: string;
25130
+ _status?: string;
25131
+ };
25132
+ Returns: undefined;
25133
+ };
25134
+ logistics_slip_note_keep_waiting: {
25135
+ Args: {
25136
+ _class?: string;
25137
+ _id: string;
25138
+ _reason: string;
25139
+ };
25140
+ Returns: undefined;
25141
+ };
24619
25142
  logistics_sticker_follows_slip: {
24620
25143
  Args: never;
24621
25144
  Returns: boolean;
@@ -24670,6 +25193,40 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
24670
25193
  name: string;
24671
25194
  }[];
24672
25195
  };
25196
+ logistics_trace: {
25197
+ Args: {
25198
+ p: import("../integrations/supabase/types").Json;
25199
+ };
25200
+ Returns: string;
25201
+ };
25202
+ logistics_trace_batch: {
25203
+ Args: {
25204
+ p: import("../integrations/supabase/types").Json;
25205
+ };
25206
+ Returns: number;
25207
+ };
25208
+ logistics_trace_orders: {
25209
+ Args: {
25210
+ p_limit?: number;
25211
+ p_search?: string;
25212
+ p_since?: string;
25213
+ p_status?: string;
25214
+ };
25215
+ Returns: import("../integrations/supabase/types").Json;
25216
+ };
25217
+ logistics_trace_redact: {
25218
+ Args: {
25219
+ p: import("../integrations/supabase/types").Json;
25220
+ };
25221
+ Returns: import("../integrations/supabase/types").Json;
25222
+ };
25223
+ logistics_trace_timeline: {
25224
+ Args: {
25225
+ p_limit?: number;
25226
+ p_order_ref: string;
25227
+ };
25228
+ Returns: import("../integrations/supabase/types").Json;
25229
+ };
24673
25230
  logistics_upsert_task: {
24674
25231
  Args: {
24675
25232
  p_buffer_ref: string;
@@ -25711,6 +26268,10 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
25711
26268
  };
25712
26269
  Returns: undefined;
25713
26270
  };
26271
+ prune_floriday_api_log: {
26272
+ Args: never;
26273
+ Returns: number;
26274
+ };
25714
26275
  quote_create_from_source: {
25715
26276
  Args: {
25716
26277
  _payload?: import("../integrations/supabase/types").Json;
@@ -26587,6 +27148,10 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
26587
27148
  Args: never;
26588
27149
  Returns: string;
26589
27150
  };
27151
+ voorraad_cleanup_old_rows: {
27152
+ Args: never;
27153
+ Returns: import("../integrations/supabase/types").Json;
27154
+ };
26590
27155
  wake_print_queue: {
26591
27156
  Args: {
26592
27157
  _min_interval_ms?: number;
@@ -28891,6 +29456,45 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
28891
29456
  };
28892
29457
  Relationships: [];
28893
29458
  };
29459
+ customer_product_stickers: {
29460
+ Row: {
29461
+ created_at: string;
29462
+ customer_key: string;
29463
+ file_name: string;
29464
+ file_path: string;
29465
+ file_size: number | null;
29466
+ id: string;
29467
+ mime_type: string | null;
29468
+ trade_item_key: string;
29469
+ updated_at: string;
29470
+ uploaded_by: string | null;
29471
+ };
29472
+ Insert: {
29473
+ created_at?: string;
29474
+ customer_key: string;
29475
+ file_name: string;
29476
+ file_path: string;
29477
+ file_size?: number | null;
29478
+ id?: string;
29479
+ mime_type?: string | null;
29480
+ trade_item_key: string;
29481
+ updated_at?: string;
29482
+ uploaded_by?: string | null;
29483
+ };
29484
+ Update: {
29485
+ created_at?: string;
29486
+ customer_key?: string;
29487
+ file_name?: string;
29488
+ file_path?: string;
29489
+ file_size?: number | null;
29490
+ id?: string;
29491
+ mime_type?: string | null;
29492
+ trade_item_key?: string;
29493
+ updated_at?: string;
29494
+ uploaded_by?: string | null;
29495
+ };
29496
+ Relationships: [];
29497
+ };
28894
29498
  customer_selected_assortment: {
28895
29499
  Row: {
28896
29500
  article_number: string | null;
@@ -28939,6 +29543,30 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
28939
29543
  referencedColumns: ["id"];
28940
29544
  }];
28941
29545
  };
29546
+ customer_sticker_settings: {
29547
+ Row: {
29548
+ created_at: string;
29549
+ customer_key: string;
29550
+ height_mm: number;
29551
+ updated_at: string;
29552
+ width_mm: number;
29553
+ };
29554
+ Insert: {
29555
+ created_at?: string;
29556
+ customer_key: string;
29557
+ height_mm?: number;
29558
+ updated_at?: string;
29559
+ width_mm?: number;
29560
+ };
29561
+ Update: {
29562
+ created_at?: string;
29563
+ customer_key?: string;
29564
+ height_mm?: number;
29565
+ updated_at?: string;
29566
+ width_mm?: number;
29567
+ };
29568
+ Relationships: [];
29569
+ };
28942
29570
  customer_trade_settings: {
28943
29571
  Row: {
28944
29572
  category: string;
@@ -32269,6 +32897,102 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
32269
32897
  referencedColumns: ["id"];
32270
32898
  }];
32271
32899
  };
32900
+ floriday_api_log: {
32901
+ Row: {
32902
+ action: string | null;
32903
+ caller: string | null;
32904
+ connection_id: string | null;
32905
+ created_at: string;
32906
+ cursor_from: number | null;
32907
+ direction: string;
32908
+ duration_ms: number | null;
32909
+ environment: string | null;
32910
+ error: string | null;
32911
+ floriday_id: string | null;
32912
+ floriday_reference: string | null;
32913
+ http_status: number;
32914
+ id: string;
32915
+ item_count: number | null;
32916
+ kind: string | null;
32917
+ local_id: string | null;
32918
+ local_reference: string | null;
32919
+ method: string;
32920
+ module: string | null;
32921
+ ok: boolean;
32922
+ path: string;
32923
+ request: import("../integrations/supabase/types").Json | null;
32924
+ resource_type: string | null;
32925
+ response: import("../integrations/supabase/types").Json | null;
32926
+ write_log_id: string | null;
32927
+ };
32928
+ Insert: {
32929
+ action?: string | null;
32930
+ caller?: string | null;
32931
+ connection_id?: string | null;
32932
+ created_at?: string;
32933
+ cursor_from?: number | null;
32934
+ direction: string;
32935
+ duration_ms?: number | null;
32936
+ environment?: string | null;
32937
+ error?: string | null;
32938
+ floriday_id?: string | null;
32939
+ floriday_reference?: string | null;
32940
+ http_status?: number;
32941
+ id?: string;
32942
+ item_count?: number | null;
32943
+ kind?: string | null;
32944
+ local_id?: string | null;
32945
+ local_reference?: string | null;
32946
+ method: string;
32947
+ module?: string | null;
32948
+ ok?: boolean;
32949
+ path: string;
32950
+ request?: import("../integrations/supabase/types").Json | null;
32951
+ resource_type?: string | null;
32952
+ response?: import("../integrations/supabase/types").Json | null;
32953
+ write_log_id?: string | null;
32954
+ };
32955
+ Update: {
32956
+ action?: string | null;
32957
+ caller?: string | null;
32958
+ connection_id?: string | null;
32959
+ created_at?: string;
32960
+ cursor_from?: number | null;
32961
+ direction?: string;
32962
+ duration_ms?: number | null;
32963
+ environment?: string | null;
32964
+ error?: string | null;
32965
+ floriday_id?: string | null;
32966
+ floriday_reference?: string | null;
32967
+ http_status?: number;
32968
+ id?: string;
32969
+ item_count?: number | null;
32970
+ kind?: string | null;
32971
+ local_id?: string | null;
32972
+ local_reference?: string | null;
32973
+ method?: string;
32974
+ module?: string | null;
32975
+ ok?: boolean;
32976
+ path?: string;
32977
+ request?: import("../integrations/supabase/types").Json | null;
32978
+ resource_type?: string | null;
32979
+ response?: import("../integrations/supabase/types").Json | null;
32980
+ write_log_id?: string | null;
32981
+ };
32982
+ Relationships: [{
32983
+ foreignKeyName: "floriday_api_log_connection_id_fkey";
32984
+ columns: ["connection_id"];
32985
+ isOneToOne: false;
32986
+ referencedRelation: "floriday_connections";
32987
+ referencedColumns: ["id"];
32988
+ }, {
32989
+ foreignKeyName: "floriday_api_log_write_log_id_fkey";
32990
+ columns: ["write_log_id"];
32991
+ isOneToOne: false;
32992
+ referencedRelation: "floriday_write_log";
32993
+ referencedColumns: ["id"];
32994
+ }];
32995
+ };
32272
32996
  floriday_auction_letters_cache: {
32273
32997
  Row: {
32274
32998
  auction_letter_code: string;
@@ -33469,6 +34193,69 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
33469
34193
  referencedColumns: ["id"];
33470
34194
  }];
33471
34195
  };
34196
+ floriday_link_templates: {
34197
+ Row: {
34198
+ created_at: string;
34199
+ floriday_url_template: string | null;
34200
+ is_active: boolean;
34201
+ label: string;
34202
+ local_url_template: string | null;
34203
+ resource_type: string;
34204
+ updated_at: string;
34205
+ };
34206
+ Insert: {
34207
+ created_at?: string;
34208
+ floriday_url_template?: string | null;
34209
+ is_active?: boolean;
34210
+ label: string;
34211
+ local_url_template?: string | null;
34212
+ resource_type: string;
34213
+ updated_at?: string;
34214
+ };
34215
+ Update: {
34216
+ created_at?: string;
34217
+ floriday_url_template?: string | null;
34218
+ is_active?: boolean;
34219
+ label?: string;
34220
+ local_url_template?: string | null;
34221
+ resource_type?: string;
34222
+ updated_at?: string;
34223
+ };
34224
+ Relationships: [];
34225
+ };
34226
+ floriday_log_retention: {
34227
+ Row: {
34228
+ created_at: string;
34229
+ direction: string | null;
34230
+ id: string;
34231
+ keep_failed_days: number | null;
34232
+ keep_ok_days: number | null;
34233
+ note: string | null;
34234
+ resource_type: string | null;
34235
+ updated_at: string;
34236
+ };
34237
+ Insert: {
34238
+ created_at?: string;
34239
+ direction?: string | null;
34240
+ id?: string;
34241
+ keep_failed_days?: number | null;
34242
+ keep_ok_days?: number | null;
34243
+ note?: string | null;
34244
+ resource_type?: string | null;
34245
+ updated_at?: string;
34246
+ };
34247
+ Update: {
34248
+ created_at?: string;
34249
+ direction?: string | null;
34250
+ id?: string;
34251
+ keep_failed_days?: number | null;
34252
+ keep_ok_days?: number | null;
34253
+ note?: string | null;
34254
+ resource_type?: string | null;
34255
+ updated_at?: string;
34256
+ };
34257
+ Relationships: [];
34258
+ };
33472
34259
  floriday_logistic_labels_cache: {
33473
34260
  Row: {
33474
34261
  byte_size: number | null;
@@ -37594,6 +38381,69 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
37594
38381
  };
37595
38382
  Relationships: [];
37596
38383
  };
38384
+ logistics_slip_shipping_note: {
38385
+ Row: {
38386
+ attempts: number;
38387
+ batch_key: string | null;
38388
+ cart_id: string | null;
38389
+ created_at: string;
38390
+ error: string | null;
38391
+ error_code: string | null;
38392
+ fulfillment_order_id: string | null;
38393
+ id: string;
38394
+ locked_until: string | null;
38395
+ next_attempt_at: string | null;
38396
+ order_id: string | null;
38397
+ order_number: string | null;
38398
+ print_job_id: string | null;
38399
+ printer_id: string | null;
38400
+ retry_class: string | null;
38401
+ slip_job_id: string;
38402
+ status: string;
38403
+ updated_at: string;
38404
+ };
38405
+ Insert: {
38406
+ attempts?: number;
38407
+ batch_key?: string | null;
38408
+ cart_id?: string | null;
38409
+ created_at?: string;
38410
+ error?: string | null;
38411
+ error_code?: string | null;
38412
+ fulfillment_order_id?: string | null;
38413
+ id?: string;
38414
+ locked_until?: string | null;
38415
+ next_attempt_at?: string | null;
38416
+ order_id?: string | null;
38417
+ order_number?: string | null;
38418
+ print_job_id?: string | null;
38419
+ printer_id?: string | null;
38420
+ retry_class?: string | null;
38421
+ slip_job_id: string;
38422
+ status?: string;
38423
+ updated_at?: string;
38424
+ };
38425
+ Update: {
38426
+ attempts?: number;
38427
+ batch_key?: string | null;
38428
+ cart_id?: string | null;
38429
+ created_at?: string;
38430
+ error?: string | null;
38431
+ error_code?: string | null;
38432
+ fulfillment_order_id?: string | null;
38433
+ id?: string;
38434
+ locked_until?: string | null;
38435
+ next_attempt_at?: string | null;
38436
+ order_id?: string | null;
38437
+ order_number?: string | null;
38438
+ print_job_id?: string | null;
38439
+ printer_id?: string | null;
38440
+ retry_class?: string | null;
38441
+ slip_job_id?: string;
38442
+ status?: string;
38443
+ updated_at?: string;
38444
+ };
38445
+ Relationships: [];
38446
+ };
37597
38447
  logistics_staff_planning: {
37598
38448
  Row: {
37599
38449
  created_at: string;
@@ -37945,6 +38795,111 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
37945
38795
  };
37946
38796
  Relationships: [];
37947
38797
  };
38798
+ logistics_trace_events: {
38799
+ Row: {
38800
+ actor: string | null;
38801
+ attempts: number;
38802
+ cart_ref: string | null;
38803
+ created_at: string;
38804
+ db_action: string | null;
38805
+ db_new: import("../integrations/supabase/types").Json | null;
38806
+ db_old: import("../integrations/supabase/types").Json | null;
38807
+ db_record: string | null;
38808
+ db_table: string | null;
38809
+ decision: string | null;
38810
+ duration_ms: number | null;
38811
+ error: string | null;
38812
+ external_action: string | null;
38813
+ external_ref: string | null;
38814
+ external_response: import("../integrations/supabase/types").Json | null;
38815
+ external_status: string | null;
38816
+ external_system: string | null;
38817
+ id: string;
38818
+ input: import("../integrations/supabase/types").Json | null;
38819
+ next_attempt_at: string | null;
38820
+ order_ref: string | null;
38821
+ order_source: string | null;
38822
+ output: import("../integrations/supabase/types").Json | null;
38823
+ phase: string;
38824
+ reads: import("../integrations/supabase/types").Json | null;
38825
+ reason: string | null;
38826
+ rule: string | null;
38827
+ slip_ref: string | null;
38828
+ status: string;
38829
+ step: string;
38830
+ trace_id: string;
38831
+ values_used: import("../integrations/supabase/types").Json | null;
38832
+ };
38833
+ Insert: {
38834
+ actor?: string | null;
38835
+ attempts?: number;
38836
+ cart_ref?: string | null;
38837
+ created_at?: string;
38838
+ db_action?: string | null;
38839
+ db_new?: import("../integrations/supabase/types").Json | null;
38840
+ db_old?: import("../integrations/supabase/types").Json | null;
38841
+ db_record?: string | null;
38842
+ db_table?: string | null;
38843
+ decision?: string | null;
38844
+ duration_ms?: number | null;
38845
+ error?: string | null;
38846
+ external_action?: string | null;
38847
+ external_ref?: string | null;
38848
+ external_response?: import("../integrations/supabase/types").Json | null;
38849
+ external_status?: string | null;
38850
+ external_system?: string | null;
38851
+ id?: string;
38852
+ input?: import("../integrations/supabase/types").Json | null;
38853
+ next_attempt_at?: string | null;
38854
+ order_ref?: string | null;
38855
+ order_source?: string | null;
38856
+ output?: import("../integrations/supabase/types").Json | null;
38857
+ phase: string;
38858
+ reads?: import("../integrations/supabase/types").Json | null;
38859
+ reason?: string | null;
38860
+ rule?: string | null;
38861
+ slip_ref?: string | null;
38862
+ status: string;
38863
+ step: string;
38864
+ trace_id?: string;
38865
+ values_used?: import("../integrations/supabase/types").Json | null;
38866
+ };
38867
+ Update: {
38868
+ actor?: string | null;
38869
+ attempts?: number;
38870
+ cart_ref?: string | null;
38871
+ created_at?: string;
38872
+ db_action?: string | null;
38873
+ db_new?: import("../integrations/supabase/types").Json | null;
38874
+ db_old?: import("../integrations/supabase/types").Json | null;
38875
+ db_record?: string | null;
38876
+ db_table?: string | null;
38877
+ decision?: string | null;
38878
+ duration_ms?: number | null;
38879
+ error?: string | null;
38880
+ external_action?: string | null;
38881
+ external_ref?: string | null;
38882
+ external_response?: import("../integrations/supabase/types").Json | null;
38883
+ external_status?: string | null;
38884
+ external_system?: string | null;
38885
+ id?: string;
38886
+ input?: import("../integrations/supabase/types").Json | null;
38887
+ next_attempt_at?: string | null;
38888
+ order_ref?: string | null;
38889
+ order_source?: string | null;
38890
+ output?: import("../integrations/supabase/types").Json | null;
38891
+ phase?: string;
38892
+ reads?: import("../integrations/supabase/types").Json | null;
38893
+ reason?: string | null;
38894
+ rule?: string | null;
38895
+ slip_ref?: string | null;
38896
+ status?: string;
38897
+ step?: string;
38898
+ trace_id?: string;
38899
+ values_used?: import("../integrations/supabase/types").Json | null;
38900
+ };
38901
+ Relationships: [];
38902
+ };
37948
38903
  logistics_variables: {
37949
38904
  Row: {
37950
38905
  created_at: string;
@@ -48517,6 +49472,15 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
48517
49472
  Args: never;
48518
49473
  Returns: boolean;
48519
49474
  };
49475
+ cancel_open_print_jobs: {
49476
+ Args: {
49477
+ _cutoff: string;
49478
+ };
49479
+ Returns: {
49480
+ extern_job_id: string;
49481
+ id: string;
49482
+ }[];
49483
+ };
48520
49484
  check_offer_product_available_stock: {
48521
49485
  Args: {
48522
49486
  p_campaign_product_id: string;
@@ -50129,6 +51093,12 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
50129
51093
  };
50130
51094
  Returns: import("../integrations/supabase/types").Json;
50131
51095
  };
51096
+ logistics_cart_plan_status_core: {
51097
+ Args: {
51098
+ p_ref: string;
51099
+ };
51100
+ Returns: import("../integrations/supabase/types").Json;
51101
+ };
50132
51102
  logistics_cart_release_reason: {
50133
51103
  Args: {
50134
51104
  p_cart_id: string;
@@ -50191,6 +51161,10 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
50191
51161
  unit_ref: string;
50192
51162
  }[];
50193
51163
  };
51164
+ logistics_carts_per_print: {
51165
+ Args: never;
51166
+ Returns: number;
51167
+ };
50194
51168
  logistics_check_order_allowed: {
50195
51169
  Args: {
50196
51170
  p_lines: import("../integrations/supabase/types").Json;
@@ -50557,6 +51531,12 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
50557
51531
  };
50558
51532
  Returns: import("../integrations/supabase/types").Json;
50559
51533
  };
51534
+ logistics_ensure_shipping_notes: {
51535
+ Args: {
51536
+ p_limit?: number;
51537
+ };
51538
+ Returns: import("../integrations/supabase/types").Json;
51539
+ };
50560
51540
  logistics_fail_task: {
50561
51541
  Args: {
50562
51542
  p_error: string;
@@ -50602,6 +51582,10 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
50602
51582
  isSetofReturn: false;
50603
51583
  };
50604
51584
  };
51585
+ logistics_fix_wrong_shipping_notes: {
51586
+ Args: never;
51587
+ Returns: import("../integrations/supabase/types").Json;
51588
+ };
50605
51589
  logistics_floriday_cart_plan: {
50606
51590
  Args: {
50607
51591
  p_order_id: string;
@@ -50629,6 +51613,10 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
50629
51613
  revision: number;
50630
51614
  }[];
50631
51615
  };
51616
+ logistics_floriday_delivery_note_create_enabled: {
51617
+ Args: never;
51618
+ Returns: boolean;
51619
+ };
50632
51620
  logistics_floriday_finish_push: {
50633
51621
  Args: {
50634
51622
  _error?: string;
@@ -50872,6 +51860,12 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
50872
51860
  };
50873
51861
  Returns: string;
50874
51862
  };
51863
+ logistics_payload_is_floriday: {
51864
+ Args: {
51865
+ _payload: import("../integrations/supabase/types").Json;
51866
+ };
51867
+ Returns: boolean;
51868
+ };
50875
51869
  logistics_pick_agenda: {
50876
51870
  Args: {
50877
51871
  p_from?: string;
@@ -50994,6 +51988,20 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
50994
51988
  Args: never;
50995
51989
  Returns: undefined;
50996
51990
  };
51991
+ logistics_plan_progress: {
51992
+ Args: {
51993
+ p_refs: string[];
51994
+ };
51995
+ Returns: {
51996
+ cart_plan_ready: boolean;
51997
+ cart_plan_reason: string;
51998
+ cart_plan_released: boolean;
51999
+ plan_progress: number;
52000
+ plan_state: string;
52001
+ plan_state_since: string;
52002
+ unit_ref: string;
52003
+ }[];
52004
+ };
50997
52005
  logistics_plan_prune: {
50998
52006
  Args: never;
50999
52007
  Returns: number;
@@ -51015,6 +52023,12 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
51015
52023
  };
51016
52024
  Returns: number;
51017
52025
  };
52026
+ logistics_plan_state_for: {
52027
+ Args: {
52028
+ p_ref: string;
52029
+ };
52030
+ Returns: import("../integrations/supabase/types").Json;
52031
+ };
51018
52032
  logistics_prepare_pick_documents: {
51019
52033
  Args: {
51020
52034
  p_limit?: number;
@@ -51073,6 +52087,12 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
51073
52087
  };
51074
52088
  Returns: import("../integrations/supabase/types").Json;
51075
52089
  };
52090
+ logistics_refresh_plan_state: {
52091
+ Args: {
52092
+ p_limit?: number;
52093
+ };
52094
+ Returns: import("../integrations/supabase/types").Json;
52095
+ };
51076
52096
  logistics_replan_all: {
51077
52097
  Args: {
51078
52098
  p_reason?: string;
@@ -51241,6 +52261,74 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
51241
52261
  };
51242
52262
  Returns: import("../integrations/supabase/types").Json;
51243
52263
  };
52264
+ logistics_shipping_note_job_for_slip: {
52265
+ Args: {
52266
+ _slip_job_id: string;
52267
+ };
52268
+ Returns: string;
52269
+ };
52270
+ logistics_shipping_notes_wake_all: {
52271
+ Args: never;
52272
+ Returns: import("../integrations/supabase/types").Json;
52273
+ };
52274
+ logistics_slip_is_floriday: {
52275
+ Args: {
52276
+ _slip_job_id: string;
52277
+ };
52278
+ Returns: boolean;
52279
+ };
52280
+ logistics_slip_note_claim: {
52281
+ Args: {
52282
+ _lease_seconds?: number;
52283
+ _limit?: number;
52284
+ };
52285
+ Returns: {
52286
+ attempts: number;
52287
+ batch_key: string | null;
52288
+ cart_id: string | null;
52289
+ created_at: string;
52290
+ error: string | null;
52291
+ error_code: string | null;
52292
+ fulfillment_order_id: string | null;
52293
+ id: string;
52294
+ locked_until: string | null;
52295
+ next_attempt_at: string | null;
52296
+ order_id: string | null;
52297
+ order_number: string | null;
52298
+ print_job_id: string | null;
52299
+ printer_id: string | null;
52300
+ retry_class: string | null;
52301
+ slip_job_id: string;
52302
+ status: string;
52303
+ updated_at: string;
52304
+ }[];
52305
+ SetofOptions: {
52306
+ from: "*";
52307
+ to: "logistics_slip_shipping_note";
52308
+ isOneToOne: false;
52309
+ isSetofReturn: true;
52310
+ };
52311
+ };
52312
+ logistics_slip_note_finish: {
52313
+ Args: {
52314
+ _error?: string;
52315
+ _error_code?: string;
52316
+ _fulfillment_order_id?: string;
52317
+ _id: string;
52318
+ _ok: boolean;
52319
+ _print_job_id?: string;
52320
+ _status?: string;
52321
+ };
52322
+ Returns: undefined;
52323
+ };
52324
+ logistics_slip_note_keep_waiting: {
52325
+ Args: {
52326
+ _class?: string;
52327
+ _id: string;
52328
+ _reason: string;
52329
+ };
52330
+ Returns: undefined;
52331
+ };
51244
52332
  logistics_sticker_follows_slip: {
51245
52333
  Args: never;
51246
52334
  Returns: boolean;
@@ -51295,6 +52383,40 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
51295
52383
  name: string;
51296
52384
  }[];
51297
52385
  };
52386
+ logistics_trace: {
52387
+ Args: {
52388
+ p: import("../integrations/supabase/types").Json;
52389
+ };
52390
+ Returns: string;
52391
+ };
52392
+ logistics_trace_batch: {
52393
+ Args: {
52394
+ p: import("../integrations/supabase/types").Json;
52395
+ };
52396
+ Returns: number;
52397
+ };
52398
+ logistics_trace_orders: {
52399
+ Args: {
52400
+ p_limit?: number;
52401
+ p_search?: string;
52402
+ p_since?: string;
52403
+ p_status?: string;
52404
+ };
52405
+ Returns: import("../integrations/supabase/types").Json;
52406
+ };
52407
+ logistics_trace_redact: {
52408
+ Args: {
52409
+ p: import("../integrations/supabase/types").Json;
52410
+ };
52411
+ Returns: import("../integrations/supabase/types").Json;
52412
+ };
52413
+ logistics_trace_timeline: {
52414
+ Args: {
52415
+ p_limit?: number;
52416
+ p_order_ref: string;
52417
+ };
52418
+ Returns: import("../integrations/supabase/types").Json;
52419
+ };
51298
52420
  logistics_upsert_task: {
51299
52421
  Args: {
51300
52422
  p_buffer_ref: string;
@@ -52336,6 +53458,10 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
52336
53458
  };
52337
53459
  Returns: undefined;
52338
53460
  };
53461
+ prune_floriday_api_log: {
53462
+ Args: never;
53463
+ Returns: number;
53464
+ };
52339
53465
  quote_create_from_source: {
52340
53466
  Args: {
52341
53467
  _payload?: import("../integrations/supabase/types").Json;
@@ -53212,6 +54338,10 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
53212
54338
  Args: never;
53213
54339
  Returns: string;
53214
54340
  };
54341
+ voorraad_cleanup_old_rows: {
54342
+ Args: never;
54343
+ Returns: import("../integrations/supabase/types").Json;
54344
+ };
53215
54345
  wake_print_queue: {
53216
54346
  Args: {
53217
54347
  _min_interval_ms?: number;
@@ -55542,6 +56672,45 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
55542
56672
  };
55543
56673
  Relationships: [];
55544
56674
  };
56675
+ customer_product_stickers: {
56676
+ Row: {
56677
+ created_at: string;
56678
+ customer_key: string;
56679
+ file_name: string;
56680
+ file_path: string;
56681
+ file_size: number | null;
56682
+ id: string;
56683
+ mime_type: string | null;
56684
+ trade_item_key: string;
56685
+ updated_at: string;
56686
+ uploaded_by: string | null;
56687
+ };
56688
+ Insert: {
56689
+ created_at?: string;
56690
+ customer_key: string;
56691
+ file_name: string;
56692
+ file_path: string;
56693
+ file_size?: number | null;
56694
+ id?: string;
56695
+ mime_type?: string | null;
56696
+ trade_item_key: string;
56697
+ updated_at?: string;
56698
+ uploaded_by?: string | null;
56699
+ };
56700
+ Update: {
56701
+ created_at?: string;
56702
+ customer_key?: string;
56703
+ file_name?: string;
56704
+ file_path?: string;
56705
+ file_size?: number | null;
56706
+ id?: string;
56707
+ mime_type?: string | null;
56708
+ trade_item_key?: string;
56709
+ updated_at?: string;
56710
+ uploaded_by?: string | null;
56711
+ };
56712
+ Relationships: [];
56713
+ };
55545
56714
  customer_selected_assortment: {
55546
56715
  Row: {
55547
56716
  article_number: string | null;
@@ -55590,6 +56759,30 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
55590
56759
  referencedColumns: ["id"];
55591
56760
  }];
55592
56761
  };
56762
+ customer_sticker_settings: {
56763
+ Row: {
56764
+ created_at: string;
56765
+ customer_key: string;
56766
+ height_mm: number;
56767
+ updated_at: string;
56768
+ width_mm: number;
56769
+ };
56770
+ Insert: {
56771
+ created_at?: string;
56772
+ customer_key: string;
56773
+ height_mm?: number;
56774
+ updated_at?: string;
56775
+ width_mm?: number;
56776
+ };
56777
+ Update: {
56778
+ created_at?: string;
56779
+ customer_key?: string;
56780
+ height_mm?: number;
56781
+ updated_at?: string;
56782
+ width_mm?: number;
56783
+ };
56784
+ Relationships: [];
56785
+ };
55593
56786
  customer_trade_settings: {
55594
56787
  Row: {
55595
56788
  category: string;
@@ -58920,6 +60113,102 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
58920
60113
  referencedColumns: ["id"];
58921
60114
  }];
58922
60115
  };
60116
+ floriday_api_log: {
60117
+ Row: {
60118
+ action: string | null;
60119
+ caller: string | null;
60120
+ connection_id: string | null;
60121
+ created_at: string;
60122
+ cursor_from: number | null;
60123
+ direction: string;
60124
+ duration_ms: number | null;
60125
+ environment: string | null;
60126
+ error: string | null;
60127
+ floriday_id: string | null;
60128
+ floriday_reference: string | null;
60129
+ http_status: number;
60130
+ id: string;
60131
+ item_count: number | null;
60132
+ kind: string | null;
60133
+ local_id: string | null;
60134
+ local_reference: string | null;
60135
+ method: string;
60136
+ module: string | null;
60137
+ ok: boolean;
60138
+ path: string;
60139
+ request: import("../integrations/supabase/types").Json | null;
60140
+ resource_type: string | null;
60141
+ response: import("../integrations/supabase/types").Json | null;
60142
+ write_log_id: string | null;
60143
+ };
60144
+ Insert: {
60145
+ action?: string | null;
60146
+ caller?: string | null;
60147
+ connection_id?: string | null;
60148
+ created_at?: string;
60149
+ cursor_from?: number | null;
60150
+ direction: string;
60151
+ duration_ms?: number | null;
60152
+ environment?: string | null;
60153
+ error?: string | null;
60154
+ floriday_id?: string | null;
60155
+ floriday_reference?: string | null;
60156
+ http_status?: number;
60157
+ id?: string;
60158
+ item_count?: number | null;
60159
+ kind?: string | null;
60160
+ local_id?: string | null;
60161
+ local_reference?: string | null;
60162
+ method: string;
60163
+ module?: string | null;
60164
+ ok?: boolean;
60165
+ path: string;
60166
+ request?: import("../integrations/supabase/types").Json | null;
60167
+ resource_type?: string | null;
60168
+ response?: import("../integrations/supabase/types").Json | null;
60169
+ write_log_id?: string | null;
60170
+ };
60171
+ Update: {
60172
+ action?: string | null;
60173
+ caller?: string | null;
60174
+ connection_id?: string | null;
60175
+ created_at?: string;
60176
+ cursor_from?: number | null;
60177
+ direction?: string;
60178
+ duration_ms?: number | null;
60179
+ environment?: string | null;
60180
+ error?: string | null;
60181
+ floriday_id?: string | null;
60182
+ floriday_reference?: string | null;
60183
+ http_status?: number;
60184
+ id?: string;
60185
+ item_count?: number | null;
60186
+ kind?: string | null;
60187
+ local_id?: string | null;
60188
+ local_reference?: string | null;
60189
+ method?: string;
60190
+ module?: string | null;
60191
+ ok?: boolean;
60192
+ path?: string;
60193
+ request?: import("../integrations/supabase/types").Json | null;
60194
+ resource_type?: string | null;
60195
+ response?: import("../integrations/supabase/types").Json | null;
60196
+ write_log_id?: string | null;
60197
+ };
60198
+ Relationships: [{
60199
+ foreignKeyName: "floriday_api_log_connection_id_fkey";
60200
+ columns: ["connection_id"];
60201
+ isOneToOne: false;
60202
+ referencedRelation: "floriday_connections";
60203
+ referencedColumns: ["id"];
60204
+ }, {
60205
+ foreignKeyName: "floriday_api_log_write_log_id_fkey";
60206
+ columns: ["write_log_id"];
60207
+ isOneToOne: false;
60208
+ referencedRelation: "floriday_write_log";
60209
+ referencedColumns: ["id"];
60210
+ }];
60211
+ };
58923
60212
  floriday_auction_letters_cache: {
58924
60213
  Row: {
58925
60214
  auction_letter_code: string;
@@ -60120,6 +61409,69 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
60120
61409
  referencedColumns: ["id"];
60121
61410
  }];
60122
61411
  };
61412
+ floriday_link_templates: {
61413
+ Row: {
61414
+ created_at: string;
61415
+ floriday_url_template: string | null;
61416
+ is_active: boolean;
61417
+ label: string;
61418
+ local_url_template: string | null;
61419
+ resource_type: string;
61420
+ updated_at: string;
61421
+ };
61422
+ Insert: {
61423
+ created_at?: string;
61424
+ floriday_url_template?: string | null;
61425
+ is_active?: boolean;
61426
+ label: string;
61427
+ local_url_template?: string | null;
61428
+ resource_type: string;
61429
+ updated_at?: string;
61430
+ };
61431
+ Update: {
61432
+ created_at?: string;
61433
+ floriday_url_template?: string | null;
61434
+ is_active?: boolean;
61435
+ label?: string;
61436
+ local_url_template?: string | null;
61437
+ resource_type?: string;
61438
+ updated_at?: string;
61439
+ };
61440
+ Relationships: [];
61441
+ };
61442
+ floriday_log_retention: {
61443
+ Row: {
61444
+ created_at: string;
61445
+ direction: string | null;
61446
+ id: string;
61447
+ keep_failed_days: number | null;
61448
+ keep_ok_days: number | null;
61449
+ note: string | null;
61450
+ resource_type: string | null;
61451
+ updated_at: string;
61452
+ };
61453
+ Insert: {
61454
+ created_at?: string;
61455
+ direction?: string | null;
61456
+ id?: string;
61457
+ keep_failed_days?: number | null;
61458
+ keep_ok_days?: number | null;
61459
+ note?: string | null;
61460
+ resource_type?: string | null;
61461
+ updated_at?: string;
61462
+ };
61463
+ Update: {
61464
+ created_at?: string;
61465
+ direction?: string | null;
61466
+ id?: string;
61467
+ keep_failed_days?: number | null;
61468
+ keep_ok_days?: number | null;
61469
+ note?: string | null;
61470
+ resource_type?: string | null;
61471
+ updated_at?: string;
61472
+ };
61473
+ Relationships: [];
61474
+ };
60123
61475
  floriday_logistic_labels_cache: {
60124
61476
  Row: {
60125
61477
  byte_size: number | null;
@@ -64245,6 +65597,69 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
64245
65597
  };
64246
65598
  Relationships: [];
64247
65599
  };
65600
+ logistics_slip_shipping_note: {
65601
+ Row: {
65602
+ attempts: number;
65603
+ batch_key: string | null;
65604
+ cart_id: string | null;
65605
+ created_at: string;
65606
+ error: string | null;
65607
+ error_code: string | null;
65608
+ fulfillment_order_id: string | null;
65609
+ id: string;
65610
+ locked_until: string | null;
65611
+ next_attempt_at: string | null;
65612
+ order_id: string | null;
65613
+ order_number: string | null;
65614
+ print_job_id: string | null;
65615
+ printer_id: string | null;
65616
+ retry_class: string | null;
65617
+ slip_job_id: string;
65618
+ status: string;
65619
+ updated_at: string;
65620
+ };
65621
+ Insert: {
65622
+ attempts?: number;
65623
+ batch_key?: string | null;
65624
+ cart_id?: string | null;
65625
+ created_at?: string;
65626
+ error?: string | null;
65627
+ error_code?: string | null;
65628
+ fulfillment_order_id?: string | null;
65629
+ id?: string;
65630
+ locked_until?: string | null;
65631
+ next_attempt_at?: string | null;
65632
+ order_id?: string | null;
65633
+ order_number?: string | null;
65634
+ print_job_id?: string | null;
65635
+ printer_id?: string | null;
65636
+ retry_class?: string | null;
65637
+ slip_job_id: string;
65638
+ status?: string;
65639
+ updated_at?: string;
65640
+ };
65641
+ Update: {
65642
+ attempts?: number;
65643
+ batch_key?: string | null;
65644
+ cart_id?: string | null;
65645
+ created_at?: string;
65646
+ error?: string | null;
65647
+ error_code?: string | null;
65648
+ fulfillment_order_id?: string | null;
65649
+ id?: string;
65650
+ locked_until?: string | null;
65651
+ next_attempt_at?: string | null;
65652
+ order_id?: string | null;
65653
+ order_number?: string | null;
65654
+ print_job_id?: string | null;
65655
+ printer_id?: string | null;
65656
+ retry_class?: string | null;
65657
+ slip_job_id?: string;
65658
+ status?: string;
65659
+ updated_at?: string;
65660
+ };
65661
+ Relationships: [];
65662
+ };
64248
65663
  logistics_staff_planning: {
64249
65664
  Row: {
64250
65665
  created_at: string;
@@ -64596,6 +66011,111 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
64596
66011
  };
64597
66012
  Relationships: [];
64598
66013
  };
66014
+ logistics_trace_events: {
66015
+ Row: {
66016
+ actor: string | null;
66017
+ attempts: number;
66018
+ cart_ref: string | null;
66019
+ created_at: string;
66020
+ db_action: string | null;
66021
+ db_new: import("../integrations/supabase/types").Json | null;
66022
+ db_old: import("../integrations/supabase/types").Json | null;
66023
+ db_record: string | null;
66024
+ db_table: string | null;
66025
+ decision: string | null;
66026
+ duration_ms: number | null;
66027
+ error: string | null;
66028
+ external_action: string | null;
66029
+ external_ref: string | null;
66030
+ external_response: import("../integrations/supabase/types").Json | null;
66031
+ external_status: string | null;
66032
+ external_system: string | null;
66033
+ id: string;
66034
+ input: import("../integrations/supabase/types").Json | null;
66035
+ next_attempt_at: string | null;
66036
+ order_ref: string | null;
66037
+ order_source: string | null;
66038
+ output: import("../integrations/supabase/types").Json | null;
66039
+ phase: string;
66040
+ reads: import("../integrations/supabase/types").Json | null;
66041
+ reason: string | null;
66042
+ rule: string | null;
66043
+ slip_ref: string | null;
66044
+ status: string;
66045
+ step: string;
66046
+ trace_id: string;
66047
+ values_used: import("../integrations/supabase/types").Json | null;
66048
+ };
66049
+ Insert: {
66050
+ actor?: string | null;
66051
+ attempts?: number;
66052
+ cart_ref?: string | null;
66053
+ created_at?: string;
66054
+ db_action?: string | null;
66055
+ db_new?: import("../integrations/supabase/types").Json | null;
66056
+ db_old?: import("../integrations/supabase/types").Json | null;
66057
+ db_record?: string | null;
66058
+ db_table?: string | null;
66059
+ decision?: string | null;
66060
+ duration_ms?: number | null;
66061
+ error?: string | null;
66062
+ external_action?: string | null;
66063
+ external_ref?: string | null;
66064
+ external_response?: import("../integrations/supabase/types").Json | null;
66065
+ external_status?: string | null;
66066
+ external_system?: string | null;
66067
+ id?: string;
66068
+ input?: import("../integrations/supabase/types").Json | null;
66069
+ next_attempt_at?: string | null;
66070
+ order_ref?: string | null;
66071
+ order_source?: string | null;
66072
+ output?: import("../integrations/supabase/types").Json | null;
66073
+ phase: string;
66074
+ reads?: import("../integrations/supabase/types").Json | null;
66075
+ reason?: string | null;
66076
+ rule?: string | null;
66077
+ slip_ref?: string | null;
66078
+ status: string;
66079
+ step: string;
66080
+ trace_id?: string;
66081
+ values_used?: import("../integrations/supabase/types").Json | null;
66082
+ };
66083
+ Update: {
66084
+ actor?: string | null;
66085
+ attempts?: number;
66086
+ cart_ref?: string | null;
66087
+ created_at?: string;
66088
+ db_action?: string | null;
66089
+ db_new?: import("../integrations/supabase/types").Json | null;
66090
+ db_old?: import("../integrations/supabase/types").Json | null;
66091
+ db_record?: string | null;
66092
+ db_table?: string | null;
66093
+ decision?: string | null;
66094
+ duration_ms?: number | null;
66095
+ error?: string | null;
66096
+ external_action?: string | null;
66097
+ external_ref?: string | null;
66098
+ external_response?: import("../integrations/supabase/types").Json | null;
66099
+ external_status?: string | null;
66100
+ external_system?: string | null;
66101
+ id?: string;
66102
+ input?: import("../integrations/supabase/types").Json | null;
66103
+ next_attempt_at?: string | null;
66104
+ order_ref?: string | null;
66105
+ order_source?: string | null;
66106
+ output?: import("../integrations/supabase/types").Json | null;
66107
+ phase?: string;
66108
+ reads?: import("../integrations/supabase/types").Json | null;
66109
+ reason?: string | null;
66110
+ rule?: string | null;
66111
+ slip_ref?: string | null;
66112
+ status?: string;
66113
+ step?: string;
66114
+ trace_id?: string;
66115
+ values_used?: import("../integrations/supabase/types").Json | null;
66116
+ };
66117
+ Relationships: [];
66118
+ };
64599
66119
  logistics_variables: {
64600
66120
  Row: {
64601
66121
  created_at: string;
@@ -75168,6 +76688,15 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
75168
76688
  Args: never;
75169
76689
  Returns: boolean;
75170
76690
  };
76691
+ cancel_open_print_jobs: {
76692
+ Args: {
76693
+ _cutoff: string;
76694
+ };
76695
+ Returns: {
76696
+ extern_job_id: string;
76697
+ id: string;
76698
+ }[];
76699
+ };
75171
76700
  check_offer_product_available_stock: {
75172
76701
  Args: {
75173
76702
  p_campaign_product_id: string;
@@ -76780,6 +78309,12 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
76780
78309
  };
76781
78310
  Returns: import("../integrations/supabase/types").Json;
76782
78311
  };
78312
+ logistics_cart_plan_status_core: {
78313
+ Args: {
78314
+ p_ref: string;
78315
+ };
78316
+ Returns: import("../integrations/supabase/types").Json;
78317
+ };
76783
78318
  logistics_cart_release_reason: {
76784
78319
  Args: {
76785
78320
  p_cart_id: string;
@@ -76842,6 +78377,10 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
76842
78377
  unit_ref: string;
76843
78378
  }[];
76844
78379
  };
78380
+ logistics_carts_per_print: {
78381
+ Args: never;
78382
+ Returns: number;
78383
+ };
76845
78384
  logistics_check_order_allowed: {
76846
78385
  Args: {
76847
78386
  p_lines: import("../integrations/supabase/types").Json;
@@ -77208,6 +78747,12 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
77208
78747
  };
77209
78748
  Returns: import("../integrations/supabase/types").Json;
77210
78749
  };
78750
+ logistics_ensure_shipping_notes: {
78751
+ Args: {
78752
+ p_limit?: number;
78753
+ };
78754
+ Returns: import("../integrations/supabase/types").Json;
78755
+ };
77211
78756
  logistics_fail_task: {
77212
78757
  Args: {
77213
78758
  p_error: string;
@@ -77253,6 +78798,10 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
77253
78798
  isSetofReturn: false;
77254
78799
  };
77255
78800
  };
78801
+ logistics_fix_wrong_shipping_notes: {
78802
+ Args: never;
78803
+ Returns: import("../integrations/supabase/types").Json;
78804
+ };
77256
78805
  logistics_floriday_cart_plan: {
77257
78806
  Args: {
77258
78807
  p_order_id: string;
@@ -77280,6 +78829,10 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
77280
78829
  revision: number;
77281
78830
  }[];
77282
78831
  };
78832
+ logistics_floriday_delivery_note_create_enabled: {
78833
+ Args: never;
78834
+ Returns: boolean;
78835
+ };
77283
78836
  logistics_floriday_finish_push: {
77284
78837
  Args: {
77285
78838
  _error?: string;
@@ -77523,6 +79076,12 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
77523
79076
  };
77524
79077
  Returns: string;
77525
79078
  };
79079
+ logistics_payload_is_floriday: {
79080
+ Args: {
79081
+ _payload: import("../integrations/supabase/types").Json;
79082
+ };
79083
+ Returns: boolean;
79084
+ };
77526
79085
  logistics_pick_agenda: {
77527
79086
  Args: {
77528
79087
  p_from?: string;
@@ -77645,6 +79204,20 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
77645
79204
  Args: never;
77646
79205
  Returns: undefined;
77647
79206
  };
79207
+ logistics_plan_progress: {
79208
+ Args: {
79209
+ p_refs: string[];
79210
+ };
79211
+ Returns: {
79212
+ cart_plan_ready: boolean;
79213
+ cart_plan_reason: string;
79214
+ cart_plan_released: boolean;
79215
+ plan_progress: number;
79216
+ plan_state: string;
79217
+ plan_state_since: string;
79218
+ unit_ref: string;
79219
+ }[];
79220
+ };
77648
79221
  logistics_plan_prune: {
77649
79222
  Args: never;
77650
79223
  Returns: number;
@@ -77666,6 +79239,12 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
77666
79239
  };
77667
79240
  Returns: number;
77668
79241
  };
79242
+ logistics_plan_state_for: {
79243
+ Args: {
79244
+ p_ref: string;
79245
+ };
79246
+ Returns: import("../integrations/supabase/types").Json;
79247
+ };
77669
79248
  logistics_prepare_pick_documents: {
77670
79249
  Args: {
77671
79250
  p_limit?: number;
@@ -77724,6 +79303,12 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
77724
79303
  };
77725
79304
  Returns: import("../integrations/supabase/types").Json;
77726
79305
  };
79306
+ logistics_refresh_plan_state: {
79307
+ Args: {
79308
+ p_limit?: number;
79309
+ };
79310
+ Returns: import("../integrations/supabase/types").Json;
79311
+ };
77727
79312
  logistics_replan_all: {
77728
79313
  Args: {
77729
79314
  p_reason?: string;
@@ -77892,6 +79477,74 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
77892
79477
  };
77893
79478
  Returns: import("../integrations/supabase/types").Json;
77894
79479
  };
79480
+ logistics_shipping_note_job_for_slip: {
79481
+ Args: {
79482
+ _slip_job_id: string;
79483
+ };
79484
+ Returns: string;
79485
+ };
79486
+ logistics_shipping_notes_wake_all: {
79487
+ Args: never;
79488
+ Returns: import("../integrations/supabase/types").Json;
79489
+ };
79490
+ logistics_slip_is_floriday: {
79491
+ Args: {
79492
+ _slip_job_id: string;
79493
+ };
79494
+ Returns: boolean;
79495
+ };
79496
+ logistics_slip_note_claim: {
79497
+ Args: {
79498
+ _lease_seconds?: number;
79499
+ _limit?: number;
79500
+ };
79501
+ Returns: {
79502
+ attempts: number;
79503
+ batch_key: string | null;
79504
+ cart_id: string | null;
79505
+ created_at: string;
79506
+ error: string | null;
79507
+ error_code: string | null;
79508
+ fulfillment_order_id: string | null;
79509
+ id: string;
79510
+ locked_until: string | null;
79511
+ next_attempt_at: string | null;
79512
+ order_id: string | null;
79513
+ order_number: string | null;
79514
+ print_job_id: string | null;
79515
+ printer_id: string | null;
79516
+ retry_class: string | null;
79517
+ slip_job_id: string;
79518
+ status: string;
79519
+ updated_at: string;
79520
+ }[];
79521
+ SetofOptions: {
79522
+ from: "*";
79523
+ to: "logistics_slip_shipping_note";
79524
+ isOneToOne: false;
79525
+ isSetofReturn: true;
79526
+ };
79527
+ };
79528
+ logistics_slip_note_finish: {
79529
+ Args: {
79530
+ _error?: string;
79531
+ _error_code?: string;
79532
+ _fulfillment_order_id?: string;
79533
+ _id: string;
79534
+ _ok: boolean;
79535
+ _print_job_id?: string;
79536
+ _status?: string;
79537
+ };
79538
+ Returns: undefined;
79539
+ };
79540
+ logistics_slip_note_keep_waiting: {
79541
+ Args: {
79542
+ _class?: string;
79543
+ _id: string;
79544
+ _reason: string;
79545
+ };
79546
+ Returns: undefined;
79547
+ };
77895
79548
  logistics_sticker_follows_slip: {
77896
79549
  Args: never;
77897
79550
  Returns: boolean;
@@ -77946,6 +79599,40 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
77946
79599
  name: string;
77947
79600
  }[];
77948
79601
  };
79602
+ logistics_trace: {
79603
+ Args: {
79604
+ p: import("../integrations/supabase/types").Json;
79605
+ };
79606
+ Returns: string;
79607
+ };
79608
+ logistics_trace_batch: {
79609
+ Args: {
79610
+ p: import("../integrations/supabase/types").Json;
79611
+ };
79612
+ Returns: number;
79613
+ };
79614
+ logistics_trace_orders: {
79615
+ Args: {
79616
+ p_limit?: number;
79617
+ p_search?: string;
79618
+ p_since?: string;
79619
+ p_status?: string;
79620
+ };
79621
+ Returns: import("../integrations/supabase/types").Json;
79622
+ };
79623
+ logistics_trace_redact: {
79624
+ Args: {
79625
+ p: import("../integrations/supabase/types").Json;
79626
+ };
79627
+ Returns: import("../integrations/supabase/types").Json;
79628
+ };
79629
+ logistics_trace_timeline: {
79630
+ Args: {
79631
+ p_limit?: number;
79632
+ p_order_ref: string;
79633
+ };
79634
+ Returns: import("../integrations/supabase/types").Json;
79635
+ };
77949
79636
  logistics_upsert_task: {
77950
79637
  Args: {
77951
79638
  p_buffer_ref: string;
@@ -78987,6 +80674,10 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
78987
80674
  };
78988
80675
  Returns: undefined;
78989
80676
  };
80677
+ prune_floriday_api_log: {
80678
+ Args: never;
80679
+ Returns: number;
80680
+ };
78990
80681
  quote_create_from_source: {
78991
80682
  Args: {
78992
80683
  _payload?: import("../integrations/supabase/types").Json;
@@ -79863,6 +81554,10 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
79863
81554
  Args: never;
79864
81555
  Returns: string;
79865
81556
  };
81557
+ voorraad_cleanup_old_rows: {
81558
+ Args: never;
81559
+ Returns: import("../integrations/supabase/types").Json;
81560
+ };
79866
81561
  wake_print_queue: {
79867
81562
  Args: {
79868
81563
  _min_interval_ms?: number;
@@ -82200,6 +83895,45 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
82200
83895
  };
82201
83896
  Relationships: [];
82202
83897
  };
83898
+ customer_product_stickers: {
83899
+ Row: {
83900
+ created_at: string;
83901
+ customer_key: string;
83902
+ file_name: string;
83903
+ file_path: string;
83904
+ file_size: number | null;
83905
+ id: string;
83906
+ mime_type: string | null;
83907
+ trade_item_key: string;
83908
+ updated_at: string;
83909
+ uploaded_by: string | null;
83910
+ };
83911
+ Insert: {
83912
+ created_at?: string;
83913
+ customer_key: string;
83914
+ file_name: string;
83915
+ file_path: string;
83916
+ file_size?: number | null;
83917
+ id?: string;
83918
+ mime_type?: string | null;
83919
+ trade_item_key: string;
83920
+ updated_at?: string;
83921
+ uploaded_by?: string | null;
83922
+ };
83923
+ Update: {
83924
+ created_at?: string;
83925
+ customer_key?: string;
83926
+ file_name?: string;
83927
+ file_path?: string;
83928
+ file_size?: number | null;
83929
+ id?: string;
83930
+ mime_type?: string | null;
83931
+ trade_item_key?: string;
83932
+ updated_at?: string;
83933
+ uploaded_by?: string | null;
83934
+ };
83935
+ Relationships: [];
83936
+ };
82203
83937
  customer_selected_assortment: {
82204
83938
  Row: {
82205
83939
  article_number: string | null;
@@ -82248,6 +83982,30 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
82248
83982
  referencedColumns: ["id"];
82249
83983
  }];
82250
83984
  };
83985
+ customer_sticker_settings: {
83986
+ Row: {
83987
+ created_at: string;
83988
+ customer_key: string;
83989
+ height_mm: number;
83990
+ updated_at: string;
83991
+ width_mm: number;
83992
+ };
83993
+ Insert: {
83994
+ created_at?: string;
83995
+ customer_key: string;
83996
+ height_mm?: number;
83997
+ updated_at?: string;
83998
+ width_mm?: number;
83999
+ };
84000
+ Update: {
84001
+ created_at?: string;
84002
+ customer_key?: string;
84003
+ height_mm?: number;
84004
+ updated_at?: string;
84005
+ width_mm?: number;
84006
+ };
84007
+ Relationships: [];
84008
+ };
82251
84009
  customer_trade_settings: {
82252
84010
  Row: {
82253
84011
  category: string;
@@ -85578,6 +87336,102 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
85578
87336
  referencedColumns: ["id"];
85579
87337
  }];
85580
87338
  };
87339
+ floriday_api_log: {
87340
+ Row: {
87341
+ action: string | null;
87342
+ caller: string | null;
87343
+ connection_id: string | null;
87344
+ created_at: string;
87345
+ cursor_from: number | null;
87346
+ direction: string;
87347
+ duration_ms: number | null;
87348
+ environment: string | null;
87349
+ error: string | null;
87350
+ floriday_id: string | null;
87351
+ floriday_reference: string | null;
87352
+ http_status: number;
87353
+ id: string;
87354
+ item_count: number | null;
87355
+ kind: string | null;
87356
+ local_id: string | null;
87357
+ local_reference: string | null;
87358
+ method: string;
87359
+ module: string | null;
87360
+ ok: boolean;
87361
+ path: string;
87362
+ request: import("../integrations/supabase/types").Json | null;
87363
+ resource_type: string | null;
87364
+ response: import("../integrations/supabase/types").Json | null;
87365
+ write_log_id: string | null;
87366
+ };
87367
+ Insert: {
87368
+ action?: string | null;
87369
+ caller?: string | null;
87370
+ connection_id?: string | null;
87371
+ created_at?: string;
87372
+ cursor_from?: number | null;
87373
+ direction: string;
87374
+ duration_ms?: number | null;
87375
+ environment?: string | null;
87376
+ error?: string | null;
87377
+ floriday_id?: string | null;
87378
+ floriday_reference?: string | null;
87379
+ http_status?: number;
87380
+ id?: string;
87381
+ item_count?: number | null;
87382
+ kind?: string | null;
87383
+ local_id?: string | null;
87384
+ local_reference?: string | null;
87385
+ method: string;
87386
+ module?: string | null;
87387
+ ok?: boolean;
87388
+ path: string;
87389
+ request?: import("../integrations/supabase/types").Json | null;
87390
+ resource_type?: string | null;
87391
+ response?: import("../integrations/supabase/types").Json | null;
87392
+ write_log_id?: string | null;
87393
+ };
87394
+ Update: {
87395
+ action?: string | null;
87396
+ caller?: string | null;
87397
+ connection_id?: string | null;
87398
+ created_at?: string;
87399
+ cursor_from?: number | null;
87400
+ direction?: string;
87401
+ duration_ms?: number | null;
87402
+ environment?: string | null;
87403
+ error?: string | null;
87404
+ floriday_id?: string | null;
87405
+ floriday_reference?: string | null;
87406
+ http_status?: number;
87407
+ id?: string;
87408
+ item_count?: number | null;
87409
+ kind?: string | null;
87410
+ local_id?: string | null;
87411
+ local_reference?: string | null;
87412
+ method?: string;
87413
+ module?: string | null;
87414
+ ok?: boolean;
87415
+ path?: string;
87416
+ request?: import("../integrations/supabase/types").Json | null;
87417
+ resource_type?: string | null;
87418
+ response?: import("../integrations/supabase/types").Json | null;
87419
+ write_log_id?: string | null;
87420
+ };
87421
+ Relationships: [{
87422
+ foreignKeyName: "floriday_api_log_connection_id_fkey";
87423
+ columns: ["connection_id"];
87424
+ isOneToOne: false;
87425
+ referencedRelation: "floriday_connections";
87426
+ referencedColumns: ["id"];
87427
+ }, {
87428
+ foreignKeyName: "floriday_api_log_write_log_id_fkey";
87429
+ columns: ["write_log_id"];
87430
+ isOneToOne: false;
87431
+ referencedRelation: "floriday_write_log";
87432
+ referencedColumns: ["id"];
87433
+ }];
87434
+ };
85581
87435
  floriday_auction_letters_cache: {
85582
87436
  Row: {
85583
87437
  auction_letter_code: string;
@@ -86778,6 +88632,69 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
86778
88632
  referencedColumns: ["id"];
86779
88633
  }];
86780
88634
  };
88635
+ floriday_link_templates: {
88636
+ Row: {
88637
+ created_at: string;
88638
+ floriday_url_template: string | null;
88639
+ is_active: boolean;
88640
+ label: string;
88641
+ local_url_template: string | null;
88642
+ resource_type: string;
88643
+ updated_at: string;
88644
+ };
88645
+ Insert: {
88646
+ created_at?: string;
88647
+ floriday_url_template?: string | null;
88648
+ is_active?: boolean;
88649
+ label: string;
88650
+ local_url_template?: string | null;
88651
+ resource_type: string;
88652
+ updated_at?: string;
88653
+ };
88654
+ Update: {
88655
+ created_at?: string;
88656
+ floriday_url_template?: string | null;
88657
+ is_active?: boolean;
88658
+ label?: string;
88659
+ local_url_template?: string | null;
88660
+ resource_type?: string;
88661
+ updated_at?: string;
88662
+ };
88663
+ Relationships: [];
88664
+ };
88665
+ floriday_log_retention: {
88666
+ Row: {
88667
+ created_at: string;
88668
+ direction: string | null;
88669
+ id: string;
88670
+ keep_failed_days: number | null;
88671
+ keep_ok_days: number | null;
88672
+ note: string | null;
88673
+ resource_type: string | null;
88674
+ updated_at: string;
88675
+ };
88676
+ Insert: {
88677
+ created_at?: string;
88678
+ direction?: string | null;
88679
+ id?: string;
88680
+ keep_failed_days?: number | null;
88681
+ keep_ok_days?: number | null;
88682
+ note?: string | null;
88683
+ resource_type?: string | null;
88684
+ updated_at?: string;
88685
+ };
88686
+ Update: {
88687
+ created_at?: string;
88688
+ direction?: string | null;
88689
+ id?: string;
88690
+ keep_failed_days?: number | null;
88691
+ keep_ok_days?: number | null;
88692
+ note?: string | null;
88693
+ resource_type?: string | null;
88694
+ updated_at?: string;
88695
+ };
88696
+ Relationships: [];
88697
+ };
86781
88698
  floriday_logistic_labels_cache: {
86782
88699
  Row: {
86783
88700
  byte_size: number | null;
@@ -90903,6 +92820,69 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
90903
92820
  };
90904
92821
  Relationships: [];
90905
92822
  };
92823
+ logistics_slip_shipping_note: {
92824
+ Row: {
92825
+ attempts: number;
92826
+ batch_key: string | null;
92827
+ cart_id: string | null;
92828
+ created_at: string;
92829
+ error: string | null;
92830
+ error_code: string | null;
92831
+ fulfillment_order_id: string | null;
92832
+ id: string;
92833
+ locked_until: string | null;
92834
+ next_attempt_at: string | null;
92835
+ order_id: string | null;
92836
+ order_number: string | null;
92837
+ print_job_id: string | null;
92838
+ printer_id: string | null;
92839
+ retry_class: string | null;
92840
+ slip_job_id: string;
92841
+ status: string;
92842
+ updated_at: string;
92843
+ };
92844
+ Insert: {
92845
+ attempts?: number;
92846
+ batch_key?: string | null;
92847
+ cart_id?: string | null;
92848
+ created_at?: string;
92849
+ error?: string | null;
92850
+ error_code?: string | null;
92851
+ fulfillment_order_id?: string | null;
92852
+ id?: string;
92853
+ locked_until?: string | null;
92854
+ next_attempt_at?: string | null;
92855
+ order_id?: string | null;
92856
+ order_number?: string | null;
92857
+ print_job_id?: string | null;
92858
+ printer_id?: string | null;
92859
+ retry_class?: string | null;
92860
+ slip_job_id: string;
92861
+ status?: string;
92862
+ updated_at?: string;
92863
+ };
92864
+ Update: {
92865
+ attempts?: number;
92866
+ batch_key?: string | null;
92867
+ cart_id?: string | null;
92868
+ created_at?: string;
92869
+ error?: string | null;
92870
+ error_code?: string | null;
92871
+ fulfillment_order_id?: string | null;
92872
+ id?: string;
92873
+ locked_until?: string | null;
92874
+ next_attempt_at?: string | null;
92875
+ order_id?: string | null;
92876
+ order_number?: string | null;
92877
+ print_job_id?: string | null;
92878
+ printer_id?: string | null;
92879
+ retry_class?: string | null;
92880
+ slip_job_id?: string;
92881
+ status?: string;
92882
+ updated_at?: string;
92883
+ };
92884
+ Relationships: [];
92885
+ };
90906
92886
  logistics_staff_planning: {
90907
92887
  Row: {
90908
92888
  created_at: string;
@@ -91254,6 +93234,111 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
91254
93234
  };
91255
93235
  Relationships: [];
91256
93236
  };
93237
+ logistics_trace_events: {
93238
+ Row: {
93239
+ actor: string | null;
93240
+ attempts: number;
93241
+ cart_ref: string | null;
93242
+ created_at: string;
93243
+ db_action: string | null;
93244
+ db_new: import("../integrations/supabase/types").Json | null;
93245
+ db_old: import("../integrations/supabase/types").Json | null;
93246
+ db_record: string | null;
93247
+ db_table: string | null;
93248
+ decision: string | null;
93249
+ duration_ms: number | null;
93250
+ error: string | null;
93251
+ external_action: string | null;
93252
+ external_ref: string | null;
93253
+ external_response: import("../integrations/supabase/types").Json | null;
93254
+ external_status: string | null;
93255
+ external_system: string | null;
93256
+ id: string;
93257
+ input: import("../integrations/supabase/types").Json | null;
93258
+ next_attempt_at: string | null;
93259
+ order_ref: string | null;
93260
+ order_source: string | null;
93261
+ output: import("../integrations/supabase/types").Json | null;
93262
+ phase: string;
93263
+ reads: import("../integrations/supabase/types").Json | null;
93264
+ reason: string | null;
93265
+ rule: string | null;
93266
+ slip_ref: string | null;
93267
+ status: string;
93268
+ step: string;
93269
+ trace_id: string;
93270
+ values_used: import("../integrations/supabase/types").Json | null;
93271
+ };
93272
+ Insert: {
93273
+ actor?: string | null;
93274
+ attempts?: number;
93275
+ cart_ref?: string | null;
93276
+ created_at?: string;
93277
+ db_action?: string | null;
93278
+ db_new?: import("../integrations/supabase/types").Json | null;
93279
+ db_old?: import("../integrations/supabase/types").Json | null;
93280
+ db_record?: string | null;
93281
+ db_table?: string | null;
93282
+ decision?: string | null;
93283
+ duration_ms?: number | null;
93284
+ error?: string | null;
93285
+ external_action?: string | null;
93286
+ external_ref?: string | null;
93287
+ external_response?: import("../integrations/supabase/types").Json | null;
93288
+ external_status?: string | null;
93289
+ external_system?: string | null;
93290
+ id?: string;
93291
+ input?: import("../integrations/supabase/types").Json | null;
93292
+ next_attempt_at?: string | null;
93293
+ order_ref?: string | null;
93294
+ order_source?: string | null;
93295
+ output?: import("../integrations/supabase/types").Json | null;
93296
+ phase: string;
93297
+ reads?: import("../integrations/supabase/types").Json | null;
93298
+ reason?: string | null;
93299
+ rule?: string | null;
93300
+ slip_ref?: string | null;
93301
+ status: string;
93302
+ step: string;
93303
+ trace_id?: string;
93304
+ values_used?: import("../integrations/supabase/types").Json | null;
93305
+ };
93306
+ Update: {
93307
+ actor?: string | null;
93308
+ attempts?: number;
93309
+ cart_ref?: string | null;
93310
+ created_at?: string;
93311
+ db_action?: string | null;
93312
+ db_new?: import("../integrations/supabase/types").Json | null;
93313
+ db_old?: import("../integrations/supabase/types").Json | null;
93314
+ db_record?: string | null;
93315
+ db_table?: string | null;
93316
+ decision?: string | null;
93317
+ duration_ms?: number | null;
93318
+ error?: string | null;
93319
+ external_action?: string | null;
93320
+ external_ref?: string | null;
93321
+ external_response?: import("../integrations/supabase/types").Json | null;
93322
+ external_status?: string | null;
93323
+ external_system?: string | null;
93324
+ id?: string;
93325
+ input?: import("../integrations/supabase/types").Json | null;
93326
+ next_attempt_at?: string | null;
93327
+ order_ref?: string | null;
93328
+ order_source?: string | null;
93329
+ output?: import("../integrations/supabase/types").Json | null;
93330
+ phase?: string;
93331
+ reads?: import("../integrations/supabase/types").Json | null;
93332
+ reason?: string | null;
93333
+ rule?: string | null;
93334
+ slip_ref?: string | null;
93335
+ status?: string;
93336
+ step?: string;
93337
+ trace_id?: string;
93338
+ values_used?: import("../integrations/supabase/types").Json | null;
93339
+ };
93340
+ Relationships: [];
93341
+ };
91257
93342
  logistics_variables: {
91258
93343
  Row: {
91259
93344
  created_at: string;
@@ -101826,6 +103911,15 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
101826
103911
  Args: never;
101827
103912
  Returns: boolean;
101828
103913
  };
103914
+ cancel_open_print_jobs: {
103915
+ Args: {
103916
+ _cutoff: string;
103917
+ };
103918
+ Returns: {
103919
+ extern_job_id: string;
103920
+ id: string;
103921
+ }[];
103922
+ };
101829
103923
  check_offer_product_available_stock: {
101830
103924
  Args: {
101831
103925
  p_campaign_product_id: string;
@@ -103438,6 +105532,12 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
103438
105532
  };
103439
105533
  Returns: import("../integrations/supabase/types").Json;
103440
105534
  };
105535
+ logistics_cart_plan_status_core: {
105536
+ Args: {
105537
+ p_ref: string;
105538
+ };
105539
+ Returns: import("../integrations/supabase/types").Json;
105540
+ };
103441
105541
  logistics_cart_release_reason: {
103442
105542
  Args: {
103443
105543
  p_cart_id: string;
@@ -103500,6 +105600,10 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
103500
105600
  unit_ref: string;
103501
105601
  }[];
103502
105602
  };
105603
+ logistics_carts_per_print: {
105604
+ Args: never;
105605
+ Returns: number;
105606
+ };
103503
105607
  logistics_check_order_allowed: {
103504
105608
  Args: {
103505
105609
  p_lines: import("../integrations/supabase/types").Json;
@@ -103866,6 +105970,12 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
103866
105970
  };
103867
105971
  Returns: import("../integrations/supabase/types").Json;
103868
105972
  };
105973
+ logistics_ensure_shipping_notes: {
105974
+ Args: {
105975
+ p_limit?: number;
105976
+ };
105977
+ Returns: import("../integrations/supabase/types").Json;
105978
+ };
103869
105979
  logistics_fail_task: {
103870
105980
  Args: {
103871
105981
  p_error: string;
@@ -103911,6 +106021,10 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
103911
106021
  isSetofReturn: false;
103912
106022
  };
103913
106023
  };
106024
+ logistics_fix_wrong_shipping_notes: {
106025
+ Args: never;
106026
+ Returns: import("../integrations/supabase/types").Json;
106027
+ };
103914
106028
  logistics_floriday_cart_plan: {
103915
106029
  Args: {
103916
106030
  p_order_id: string;
@@ -103938,6 +106052,10 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
103938
106052
  revision: number;
103939
106053
  }[];
103940
106054
  };
106055
+ logistics_floriday_delivery_note_create_enabled: {
106056
+ Args: never;
106057
+ Returns: boolean;
106058
+ };
103941
106059
  logistics_floriday_finish_push: {
103942
106060
  Args: {
103943
106061
  _error?: string;
@@ -104181,6 +106299,12 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
104181
106299
  };
104182
106300
  Returns: string;
104183
106301
  };
106302
+ logistics_payload_is_floriday: {
106303
+ Args: {
106304
+ _payload: import("../integrations/supabase/types").Json;
106305
+ };
106306
+ Returns: boolean;
106307
+ };
104184
106308
  logistics_pick_agenda: {
104185
106309
  Args: {
104186
106310
  p_from?: string;
@@ -104303,6 +106427,20 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
104303
106427
  Args: never;
104304
106428
  Returns: undefined;
104305
106429
  };
106430
+ logistics_plan_progress: {
106431
+ Args: {
106432
+ p_refs: string[];
106433
+ };
106434
+ Returns: {
106435
+ cart_plan_ready: boolean;
106436
+ cart_plan_reason: string;
106437
+ cart_plan_released: boolean;
106438
+ plan_progress: number;
106439
+ plan_state: string;
106440
+ plan_state_since: string;
106441
+ unit_ref: string;
106442
+ }[];
106443
+ };
104306
106444
  logistics_plan_prune: {
104307
106445
  Args: never;
104308
106446
  Returns: number;
@@ -104324,6 +106462,12 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
104324
106462
  };
104325
106463
  Returns: number;
104326
106464
  };
106465
+ logistics_plan_state_for: {
106466
+ Args: {
106467
+ p_ref: string;
106468
+ };
106469
+ Returns: import("../integrations/supabase/types").Json;
106470
+ };
104327
106471
  logistics_prepare_pick_documents: {
104328
106472
  Args: {
104329
106473
  p_limit?: number;
@@ -104382,6 +106526,12 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
104382
106526
  };
104383
106527
  Returns: import("../integrations/supabase/types").Json;
104384
106528
  };
106529
+ logistics_refresh_plan_state: {
106530
+ Args: {
106531
+ p_limit?: number;
106532
+ };
106533
+ Returns: import("../integrations/supabase/types").Json;
106534
+ };
104385
106535
  logistics_replan_all: {
104386
106536
  Args: {
104387
106537
  p_reason?: string;
@@ -104550,6 +106700,74 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
104550
106700
  };
104551
106701
  Returns: import("../integrations/supabase/types").Json;
104552
106702
  };
106703
+ logistics_shipping_note_job_for_slip: {
106704
+ Args: {
106705
+ _slip_job_id: string;
106706
+ };
106707
+ Returns: string;
106708
+ };
106709
+ logistics_shipping_notes_wake_all: {
106710
+ Args: never;
106711
+ Returns: import("../integrations/supabase/types").Json;
106712
+ };
106713
+ logistics_slip_is_floriday: {
106714
+ Args: {
106715
+ _slip_job_id: string;
106716
+ };
106717
+ Returns: boolean;
106718
+ };
106719
+ logistics_slip_note_claim: {
106720
+ Args: {
106721
+ _lease_seconds?: number;
106722
+ _limit?: number;
106723
+ };
106724
+ Returns: {
106725
+ attempts: number;
106726
+ batch_key: string | null;
106727
+ cart_id: string | null;
106728
+ created_at: string;
106729
+ error: string | null;
106730
+ error_code: string | null;
106731
+ fulfillment_order_id: string | null;
106732
+ id: string;
106733
+ locked_until: string | null;
106734
+ next_attempt_at: string | null;
106735
+ order_id: string | null;
106736
+ order_number: string | null;
106737
+ print_job_id: string | null;
106738
+ printer_id: string | null;
106739
+ retry_class: string | null;
106740
+ slip_job_id: string;
106741
+ status: string;
106742
+ updated_at: string;
106743
+ }[];
106744
+ SetofOptions: {
106745
+ from: "*";
106746
+ to: "logistics_slip_shipping_note";
106747
+ isOneToOne: false;
106748
+ isSetofReturn: true;
106749
+ };
106750
+ };
106751
+ logistics_slip_note_finish: {
106752
+ Args: {
106753
+ _error?: string;
106754
+ _error_code?: string;
106755
+ _fulfillment_order_id?: string;
106756
+ _id: string;
106757
+ _ok: boolean;
106758
+ _print_job_id?: string;
106759
+ _status?: string;
106760
+ };
106761
+ Returns: undefined;
106762
+ };
106763
+ logistics_slip_note_keep_waiting: {
106764
+ Args: {
106765
+ _class?: string;
106766
+ _id: string;
106767
+ _reason: string;
106768
+ };
106769
+ Returns: undefined;
106770
+ };
104553
106771
  logistics_sticker_follows_slip: {
104554
106772
  Args: never;
104555
106773
  Returns: boolean;
@@ -104604,6 +106822,40 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
104604
106822
  name: string;
104605
106823
  }[];
104606
106824
  };
106825
+ logistics_trace: {
106826
+ Args: {
106827
+ p: import("../integrations/supabase/types").Json;
106828
+ };
106829
+ Returns: string;
106830
+ };
106831
+ logistics_trace_batch: {
106832
+ Args: {
106833
+ p: import("../integrations/supabase/types").Json;
106834
+ };
106835
+ Returns: number;
106836
+ };
106837
+ logistics_trace_orders: {
106838
+ Args: {
106839
+ p_limit?: number;
106840
+ p_search?: string;
106841
+ p_since?: string;
106842
+ p_status?: string;
106843
+ };
106844
+ Returns: import("../integrations/supabase/types").Json;
106845
+ };
106846
+ logistics_trace_redact: {
106847
+ Args: {
106848
+ p: import("../integrations/supabase/types").Json;
106849
+ };
106850
+ Returns: import("../integrations/supabase/types").Json;
106851
+ };
106852
+ logistics_trace_timeline: {
106853
+ Args: {
106854
+ p_limit?: number;
106855
+ p_order_ref: string;
106856
+ };
106857
+ Returns: import("../integrations/supabase/types").Json;
106858
+ };
104607
106859
  logistics_upsert_task: {
104608
106860
  Args: {
104609
106861
  p_buffer_ref: string;
@@ -105645,6 +107897,10 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
105645
107897
  };
105646
107898
  Returns: undefined;
105647
107899
  };
107900
+ prune_floriday_api_log: {
107901
+ Args: never;
107902
+ Returns: number;
107903
+ };
105648
107904
  quote_create_from_source: {
105649
107905
  Args: {
105650
107906
  _payload?: import("../integrations/supabase/types").Json;
@@ -106521,6 +108777,10 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
106521
108777
  Args: never;
106522
108778
  Returns: string;
106523
108779
  };
108780
+ voorraad_cleanup_old_rows: {
108781
+ Args: never;
108782
+ Returns: import("../integrations/supabase/types").Json;
108783
+ };
106524
108784
  wake_print_queue: {
106525
108785
  Args: {
106526
108786
  _min_interval_ms?: number;
@@ -108838,6 +111098,45 @@ export declare const importFloridayDeliveryLocations: import("@tanstack/start-cl
108838
111098
  };
108839
111099
  Relationships: [];
108840
111100
  };
111101
+ customer_product_stickers: {
111102
+ Row: {
111103
+ created_at: string;
111104
+ customer_key: string;
111105
+ file_name: string;
111106
+ file_path: string;
111107
+ file_size: number | null;
111108
+ id: string;
111109
+ mime_type: string | null;
111110
+ trade_item_key: string;
111111
+ updated_at: string;
111112
+ uploaded_by: string | null;
111113
+ };
111114
+ Insert: {
111115
+ created_at?: string;
111116
+ customer_key: string;
111117
+ file_name: string;
111118
+ file_path: string;
111119
+ file_size?: number | null;
111120
+ id?: string;
111121
+ mime_type?: string | null;
111122
+ trade_item_key: string;
111123
+ updated_at?: string;
111124
+ uploaded_by?: string | null;
111125
+ };
111126
+ Update: {
111127
+ created_at?: string;
111128
+ customer_key?: string;
111129
+ file_name?: string;
111130
+ file_path?: string;
111131
+ file_size?: number | null;
111132
+ id?: string;
111133
+ mime_type?: string | null;
111134
+ trade_item_key?: string;
111135
+ updated_at?: string;
111136
+ uploaded_by?: string | null;
111137
+ };
111138
+ Relationships: [];
111139
+ };
108841
111140
  customer_selected_assortment: {
108842
111141
  Row: {
108843
111142
  article_number: string | null;
@@ -108886,6 +111185,30 @@ export declare const importFloridayDeliveryLocations: import("@tanstack/start-cl
108886
111185
  referencedColumns: ["id"];
108887
111186
  }];
108888
111187
  };
111188
+ customer_sticker_settings: {
111189
+ Row: {
111190
+ created_at: string;
111191
+ customer_key: string;
111192
+ height_mm: number;
111193
+ updated_at: string;
111194
+ width_mm: number;
111195
+ };
111196
+ Insert: {
111197
+ created_at?: string;
111198
+ customer_key: string;
111199
+ height_mm?: number;
111200
+ updated_at?: string;
111201
+ width_mm?: number;
111202
+ };
111203
+ Update: {
111204
+ created_at?: string;
111205
+ customer_key?: string;
111206
+ height_mm?: number;
111207
+ updated_at?: string;
111208
+ width_mm?: number;
111209
+ };
111210
+ Relationships: [];
111211
+ };
108889
111212
  customer_trade_settings: {
108890
111213
  Row: {
108891
111214
  category: string;
@@ -112216,6 +114539,102 @@ export declare const importFloridayDeliveryLocations: import("@tanstack/start-cl
112216
114539
  referencedColumns: ["id"];
112217
114540
  }];
112218
114541
  };
114542
+ floriday_api_log: {
114543
+ Row: {
114544
+ action: string | null;
114545
+ caller: string | null;
114546
+ connection_id: string | null;
114547
+ created_at: string;
114548
+ cursor_from: number | null;
114549
+ direction: string;
114550
+ duration_ms: number | null;
114551
+ environment: string | null;
114552
+ error: string | null;
114553
+ floriday_id: string | null;
114554
+ floriday_reference: string | null;
114555
+ http_status: number;
114556
+ id: string;
114557
+ item_count: number | null;
114558
+ kind: string | null;
114559
+ local_id: string | null;
114560
+ local_reference: string | null;
114561
+ method: string;
114562
+ module: string | null;
114563
+ ok: boolean;
114564
+ path: string;
114565
+ request: import("../integrations/supabase/types").Json | null;
114566
+ resource_type: string | null;
114567
+ response: import("../integrations/supabase/types").Json | null;
114568
+ write_log_id: string | null;
114569
+ };
114570
+ Insert: {
114571
+ action?: string | null;
114572
+ caller?: string | null;
114573
+ connection_id?: string | null;
114574
+ created_at?: string;
114575
+ cursor_from?: number | null;
114576
+ direction: string;
114577
+ duration_ms?: number | null;
114578
+ environment?: string | null;
114579
+ error?: string | null;
114580
+ floriday_id?: string | null;
114581
+ floriday_reference?: string | null;
114582
+ http_status?: number;
114583
+ id?: string;
114584
+ item_count?: number | null;
114585
+ kind?: string | null;
114586
+ local_id?: string | null;
114587
+ local_reference?: string | null;
114588
+ method: string;
114589
+ module?: string | null;
114590
+ ok?: boolean;
114591
+ path: string;
114592
+ request?: import("../integrations/supabase/types").Json | null;
114593
+ resource_type?: string | null;
114594
+ response?: import("../integrations/supabase/types").Json | null;
114595
+ write_log_id?: string | null;
114596
+ };
114597
+ Update: {
114598
+ action?: string | null;
114599
+ caller?: string | null;
114600
+ connection_id?: string | null;
114601
+ created_at?: string;
114602
+ cursor_from?: number | null;
114603
+ direction?: string;
114604
+ duration_ms?: number | null;
114605
+ environment?: string | null;
114606
+ error?: string | null;
114607
+ floriday_id?: string | null;
114608
+ floriday_reference?: string | null;
114609
+ http_status?: number;
114610
+ id?: string;
114611
+ item_count?: number | null;
114612
+ kind?: string | null;
114613
+ local_id?: string | null;
114614
+ local_reference?: string | null;
114615
+ method?: string;
114616
+ module?: string | null;
114617
+ ok?: boolean;
114618
+ path?: string;
114619
+ request?: import("../integrations/supabase/types").Json | null;
114620
+ resource_type?: string | null;
114621
+ response?: import("../integrations/supabase/types").Json | null;
114622
+ write_log_id?: string | null;
114623
+ };
114624
+ Relationships: [{
114625
+ foreignKeyName: "floriday_api_log_connection_id_fkey";
114626
+ columns: ["connection_id"];
114627
+ isOneToOne: false;
114628
+ referencedRelation: "floriday_connections";
114629
+ referencedColumns: ["id"];
114630
+ }, {
114631
+ foreignKeyName: "floriday_api_log_write_log_id_fkey";
114632
+ columns: ["write_log_id"];
114633
+ isOneToOne: false;
114634
+ referencedRelation: "floriday_write_log";
114635
+ referencedColumns: ["id"];
114636
+ }];
114637
+ };
112219
114638
  floriday_auction_letters_cache: {
112220
114639
  Row: {
112221
114640
  auction_letter_code: string;
@@ -113416,6 +115835,69 @@ export declare const importFloridayDeliveryLocations: import("@tanstack/start-cl
113416
115835
  referencedColumns: ["id"];
113417
115836
  }];
113418
115837
  };
115838
+ floriday_link_templates: {
115839
+ Row: {
115840
+ created_at: string;
115841
+ floriday_url_template: string | null;
115842
+ is_active: boolean;
115843
+ label: string;
115844
+ local_url_template: string | null;
115845
+ resource_type: string;
115846
+ updated_at: string;
115847
+ };
115848
+ Insert: {
115849
+ created_at?: string;
115850
+ floriday_url_template?: string | null;
115851
+ is_active?: boolean;
115852
+ label: string;
115853
+ local_url_template?: string | null;
115854
+ resource_type: string;
115855
+ updated_at?: string;
115856
+ };
115857
+ Update: {
115858
+ created_at?: string;
115859
+ floriday_url_template?: string | null;
115860
+ is_active?: boolean;
115861
+ label?: string;
115862
+ local_url_template?: string | null;
115863
+ resource_type?: string;
115864
+ updated_at?: string;
115865
+ };
115866
+ Relationships: [];
115867
+ };
115868
+ floriday_log_retention: {
115869
+ Row: {
115870
+ created_at: string;
115871
+ direction: string | null;
115872
+ id: string;
115873
+ keep_failed_days: number | null;
115874
+ keep_ok_days: number | null;
115875
+ note: string | null;
115876
+ resource_type: string | null;
115877
+ updated_at: string;
115878
+ };
115879
+ Insert: {
115880
+ created_at?: string;
115881
+ direction?: string | null;
115882
+ id?: string;
115883
+ keep_failed_days?: number | null;
115884
+ keep_ok_days?: number | null;
115885
+ note?: string | null;
115886
+ resource_type?: string | null;
115887
+ updated_at?: string;
115888
+ };
115889
+ Update: {
115890
+ created_at?: string;
115891
+ direction?: string | null;
115892
+ id?: string;
115893
+ keep_failed_days?: number | null;
115894
+ keep_ok_days?: number | null;
115895
+ note?: string | null;
115896
+ resource_type?: string | null;
115897
+ updated_at?: string;
115898
+ };
115899
+ Relationships: [];
115900
+ };
113419
115901
  floriday_logistic_labels_cache: {
113420
115902
  Row: {
113421
115903
  byte_size: number | null;
@@ -117541,6 +120023,69 @@ export declare const importFloridayDeliveryLocations: import("@tanstack/start-cl
117541
120023
  };
117542
120024
  Relationships: [];
117543
120025
  };
120026
+ logistics_slip_shipping_note: {
120027
+ Row: {
120028
+ attempts: number;
120029
+ batch_key: string | null;
120030
+ cart_id: string | null;
120031
+ created_at: string;
120032
+ error: string | null;
120033
+ error_code: string | null;
120034
+ fulfillment_order_id: string | null;
120035
+ id: string;
120036
+ locked_until: string | null;
120037
+ next_attempt_at: string | null;
120038
+ order_id: string | null;
120039
+ order_number: string | null;
120040
+ print_job_id: string | null;
120041
+ printer_id: string | null;
120042
+ retry_class: string | null;
120043
+ slip_job_id: string;
120044
+ status: string;
120045
+ updated_at: string;
120046
+ };
120047
+ Insert: {
120048
+ attempts?: number;
120049
+ batch_key?: string | null;
120050
+ cart_id?: string | null;
120051
+ created_at?: string;
120052
+ error?: string | null;
120053
+ error_code?: string | null;
120054
+ fulfillment_order_id?: string | null;
120055
+ id?: string;
120056
+ locked_until?: string | null;
120057
+ next_attempt_at?: string | null;
120058
+ order_id?: string | null;
120059
+ order_number?: string | null;
120060
+ print_job_id?: string | null;
120061
+ printer_id?: string | null;
120062
+ retry_class?: string | null;
120063
+ slip_job_id: string;
120064
+ status?: string;
120065
+ updated_at?: string;
120066
+ };
120067
+ Update: {
120068
+ attempts?: number;
120069
+ batch_key?: string | null;
120070
+ cart_id?: string | null;
120071
+ created_at?: string;
120072
+ error?: string | null;
120073
+ error_code?: string | null;
120074
+ fulfillment_order_id?: string | null;
120075
+ id?: string;
120076
+ locked_until?: string | null;
120077
+ next_attempt_at?: string | null;
120078
+ order_id?: string | null;
120079
+ order_number?: string | null;
120080
+ print_job_id?: string | null;
120081
+ printer_id?: string | null;
120082
+ retry_class?: string | null;
120083
+ slip_job_id?: string;
120084
+ status?: string;
120085
+ updated_at?: string;
120086
+ };
120087
+ Relationships: [];
120088
+ };
117544
120089
  logistics_staff_planning: {
117545
120090
  Row: {
117546
120091
  created_at: string;
@@ -117892,6 +120437,111 @@ export declare const importFloridayDeliveryLocations: import("@tanstack/start-cl
117892
120437
  };
117893
120438
  Relationships: [];
117894
120439
  };
120440
+ logistics_trace_events: {
120441
+ Row: {
120442
+ actor: string | null;
120443
+ attempts: number;
120444
+ cart_ref: string | null;
120445
+ created_at: string;
120446
+ db_action: string | null;
120447
+ db_new: import("../integrations/supabase/types").Json | null;
120448
+ db_old: import("../integrations/supabase/types").Json | null;
120449
+ db_record: string | null;
120450
+ db_table: string | null;
120451
+ decision: string | null;
120452
+ duration_ms: number | null;
120453
+ error: string | null;
120454
+ external_action: string | null;
120455
+ external_ref: string | null;
120456
+ external_response: import("../integrations/supabase/types").Json | null;
120457
+ external_status: string | null;
120458
+ external_system: string | null;
120459
+ id: string;
120460
+ input: import("../integrations/supabase/types").Json | null;
120461
+ next_attempt_at: string | null;
120462
+ order_ref: string | null;
120463
+ order_source: string | null;
120464
+ output: import("../integrations/supabase/types").Json | null;
120465
+ phase: string;
120466
+ reads: import("../integrations/supabase/types").Json | null;
120467
+ reason: string | null;
120468
+ rule: string | null;
120469
+ slip_ref: string | null;
120470
+ status: string;
120471
+ step: string;
120472
+ trace_id: string;
120473
+ values_used: import("../integrations/supabase/types").Json | null;
120474
+ };
120475
+ Insert: {
120476
+ actor?: string | null;
120477
+ attempts?: number;
120478
+ cart_ref?: string | null;
120479
+ created_at?: string;
120480
+ db_action?: string | null;
120481
+ db_new?: import("../integrations/supabase/types").Json | null;
120482
+ db_old?: import("../integrations/supabase/types").Json | null;
120483
+ db_record?: string | null;
120484
+ db_table?: string | null;
120485
+ decision?: string | null;
120486
+ duration_ms?: number | null;
120487
+ error?: string | null;
120488
+ external_action?: string | null;
120489
+ external_ref?: string | null;
120490
+ external_response?: import("../integrations/supabase/types").Json | null;
120491
+ external_status?: string | null;
120492
+ external_system?: string | null;
120493
+ id?: string;
120494
+ input?: import("../integrations/supabase/types").Json | null;
120495
+ next_attempt_at?: string | null;
120496
+ order_ref?: string | null;
120497
+ order_source?: string | null;
120498
+ output?: import("../integrations/supabase/types").Json | null;
120499
+ phase: string;
120500
+ reads?: import("../integrations/supabase/types").Json | null;
120501
+ reason?: string | null;
120502
+ rule?: string | null;
120503
+ slip_ref?: string | null;
120504
+ status: string;
120505
+ step: string;
120506
+ trace_id?: string;
120507
+ values_used?: import("../integrations/supabase/types").Json | null;
120508
+ };
120509
+ Update: {
120510
+ actor?: string | null;
120511
+ attempts?: number;
120512
+ cart_ref?: string | null;
120513
+ created_at?: string;
120514
+ db_action?: string | null;
120515
+ db_new?: import("../integrations/supabase/types").Json | null;
120516
+ db_old?: import("../integrations/supabase/types").Json | null;
120517
+ db_record?: string | null;
120518
+ db_table?: string | null;
120519
+ decision?: string | null;
120520
+ duration_ms?: number | null;
120521
+ error?: string | null;
120522
+ external_action?: string | null;
120523
+ external_ref?: string | null;
120524
+ external_response?: import("../integrations/supabase/types").Json | null;
120525
+ external_status?: string | null;
120526
+ external_system?: string | null;
120527
+ id?: string;
120528
+ input?: import("../integrations/supabase/types").Json | null;
120529
+ next_attempt_at?: string | null;
120530
+ order_ref?: string | null;
120531
+ order_source?: string | null;
120532
+ output?: import("../integrations/supabase/types").Json | null;
120533
+ phase?: string;
120534
+ reads?: import("../integrations/supabase/types").Json | null;
120535
+ reason?: string | null;
120536
+ rule?: string | null;
120537
+ slip_ref?: string | null;
120538
+ status?: string;
120539
+ step?: string;
120540
+ trace_id?: string;
120541
+ values_used?: import("../integrations/supabase/types").Json | null;
120542
+ };
120543
+ Relationships: [];
120544
+ };
117895
120545
  logistics_variables: {
117896
120546
  Row: {
117897
120547
  created_at: string;
@@ -128464,6 +131114,15 @@ export declare const importFloridayDeliveryLocations: import("@tanstack/start-cl
128464
131114
  Args: never;
128465
131115
  Returns: boolean;
128466
131116
  };
131117
+ cancel_open_print_jobs: {
131118
+ Args: {
131119
+ _cutoff: string;
131120
+ };
131121
+ Returns: {
131122
+ extern_job_id: string;
131123
+ id: string;
131124
+ }[];
131125
+ };
128467
131126
  check_offer_product_available_stock: {
128468
131127
  Args: {
128469
131128
  p_campaign_product_id: string;
@@ -130076,6 +132735,12 @@ export declare const importFloridayDeliveryLocations: import("@tanstack/start-cl
130076
132735
  };
130077
132736
  Returns: import("../integrations/supabase/types").Json;
130078
132737
  };
132738
+ logistics_cart_plan_status_core: {
132739
+ Args: {
132740
+ p_ref: string;
132741
+ };
132742
+ Returns: import("../integrations/supabase/types").Json;
132743
+ };
130079
132744
  logistics_cart_release_reason: {
130080
132745
  Args: {
130081
132746
  p_cart_id: string;
@@ -130138,6 +132803,10 @@ export declare const importFloridayDeliveryLocations: import("@tanstack/start-cl
130138
132803
  unit_ref: string;
130139
132804
  }[];
130140
132805
  };
132806
+ logistics_carts_per_print: {
132807
+ Args: never;
132808
+ Returns: number;
132809
+ };
130141
132810
  logistics_check_order_allowed: {
130142
132811
  Args: {
130143
132812
  p_lines: import("../integrations/supabase/types").Json;
@@ -130504,6 +133173,12 @@ export declare const importFloridayDeliveryLocations: import("@tanstack/start-cl
130504
133173
  };
130505
133174
  Returns: import("../integrations/supabase/types").Json;
130506
133175
  };
133176
+ logistics_ensure_shipping_notes: {
133177
+ Args: {
133178
+ p_limit?: number;
133179
+ };
133180
+ Returns: import("../integrations/supabase/types").Json;
133181
+ };
130507
133182
  logistics_fail_task: {
130508
133183
  Args: {
130509
133184
  p_error: string;
@@ -130549,6 +133224,10 @@ export declare const importFloridayDeliveryLocations: import("@tanstack/start-cl
130549
133224
  isSetofReturn: false;
130550
133225
  };
130551
133226
  };
133227
+ logistics_fix_wrong_shipping_notes: {
133228
+ Args: never;
133229
+ Returns: import("../integrations/supabase/types").Json;
133230
+ };
130552
133231
  logistics_floriday_cart_plan: {
130553
133232
  Args: {
130554
133233
  p_order_id: string;
@@ -130576,6 +133255,10 @@ export declare const importFloridayDeliveryLocations: import("@tanstack/start-cl
130576
133255
  revision: number;
130577
133256
  }[];
130578
133257
  };
133258
+ logistics_floriday_delivery_note_create_enabled: {
133259
+ Args: never;
133260
+ Returns: boolean;
133261
+ };
130579
133262
  logistics_floriday_finish_push: {
130580
133263
  Args: {
130581
133264
  _error?: string;
@@ -130819,6 +133502,12 @@ export declare const importFloridayDeliveryLocations: import("@tanstack/start-cl
130819
133502
  };
130820
133503
  Returns: string;
130821
133504
  };
133505
+ logistics_payload_is_floriday: {
133506
+ Args: {
133507
+ _payload: import("../integrations/supabase/types").Json;
133508
+ };
133509
+ Returns: boolean;
133510
+ };
130822
133511
  logistics_pick_agenda: {
130823
133512
  Args: {
130824
133513
  p_from?: string;
@@ -130941,6 +133630,20 @@ export declare const importFloridayDeliveryLocations: import("@tanstack/start-cl
130941
133630
  Args: never;
130942
133631
  Returns: undefined;
130943
133632
  };
133633
+ logistics_plan_progress: {
133634
+ Args: {
133635
+ p_refs: string[];
133636
+ };
133637
+ Returns: {
133638
+ cart_plan_ready: boolean;
133639
+ cart_plan_reason: string;
133640
+ cart_plan_released: boolean;
133641
+ plan_progress: number;
133642
+ plan_state: string;
133643
+ plan_state_since: string;
133644
+ unit_ref: string;
133645
+ }[];
133646
+ };
130944
133647
  logistics_plan_prune: {
130945
133648
  Args: never;
130946
133649
  Returns: number;
@@ -130962,6 +133665,12 @@ export declare const importFloridayDeliveryLocations: import("@tanstack/start-cl
130962
133665
  };
130963
133666
  Returns: number;
130964
133667
  };
133668
+ logistics_plan_state_for: {
133669
+ Args: {
133670
+ p_ref: string;
133671
+ };
133672
+ Returns: import("../integrations/supabase/types").Json;
133673
+ };
130965
133674
  logistics_prepare_pick_documents: {
130966
133675
  Args: {
130967
133676
  p_limit?: number;
@@ -131020,6 +133729,12 @@ export declare const importFloridayDeliveryLocations: import("@tanstack/start-cl
131020
133729
  };
131021
133730
  Returns: import("../integrations/supabase/types").Json;
131022
133731
  };
133732
+ logistics_refresh_plan_state: {
133733
+ Args: {
133734
+ p_limit?: number;
133735
+ };
133736
+ Returns: import("../integrations/supabase/types").Json;
133737
+ };
131023
133738
  logistics_replan_all: {
131024
133739
  Args: {
131025
133740
  p_reason?: string;
@@ -131188,6 +133903,74 @@ export declare const importFloridayDeliveryLocations: import("@tanstack/start-cl
131188
133903
  };
131189
133904
  Returns: import("../integrations/supabase/types").Json;
131190
133905
  };
133906
+ logistics_shipping_note_job_for_slip: {
133907
+ Args: {
133908
+ _slip_job_id: string;
133909
+ };
133910
+ Returns: string;
133911
+ };
133912
+ logistics_shipping_notes_wake_all: {
133913
+ Args: never;
133914
+ Returns: import("../integrations/supabase/types").Json;
133915
+ };
133916
+ logistics_slip_is_floriday: {
133917
+ Args: {
133918
+ _slip_job_id: string;
133919
+ };
133920
+ Returns: boolean;
133921
+ };
133922
+ logistics_slip_note_claim: {
133923
+ Args: {
133924
+ _lease_seconds?: number;
133925
+ _limit?: number;
133926
+ };
133927
+ Returns: {
133928
+ attempts: number;
133929
+ batch_key: string | null;
133930
+ cart_id: string | null;
133931
+ created_at: string;
133932
+ error: string | null;
133933
+ error_code: string | null;
133934
+ fulfillment_order_id: string | null;
133935
+ id: string;
133936
+ locked_until: string | null;
133937
+ next_attempt_at: string | null;
133938
+ order_id: string | null;
133939
+ order_number: string | null;
133940
+ print_job_id: string | null;
133941
+ printer_id: string | null;
133942
+ retry_class: string | null;
133943
+ slip_job_id: string;
133944
+ status: string;
133945
+ updated_at: string;
133946
+ }[];
133947
+ SetofOptions: {
133948
+ from: "*";
133949
+ to: "logistics_slip_shipping_note";
133950
+ isOneToOne: false;
133951
+ isSetofReturn: true;
133952
+ };
133953
+ };
133954
+ logistics_slip_note_finish: {
133955
+ Args: {
133956
+ _error?: string;
133957
+ _error_code?: string;
133958
+ _fulfillment_order_id?: string;
133959
+ _id: string;
133960
+ _ok: boolean;
133961
+ _print_job_id?: string;
133962
+ _status?: string;
133963
+ };
133964
+ Returns: undefined;
133965
+ };
133966
+ logistics_slip_note_keep_waiting: {
133967
+ Args: {
133968
+ _class?: string;
133969
+ _id: string;
133970
+ _reason: string;
133971
+ };
133972
+ Returns: undefined;
133973
+ };
131191
133974
  logistics_sticker_follows_slip: {
131192
133975
  Args: never;
131193
133976
  Returns: boolean;
@@ -131242,6 +134025,40 @@ export declare const importFloridayDeliveryLocations: import("@tanstack/start-cl
131242
134025
  name: string;
131243
134026
  }[];
131244
134027
  };
134028
+ logistics_trace: {
134029
+ Args: {
134030
+ p: import("../integrations/supabase/types").Json;
134031
+ };
134032
+ Returns: string;
134033
+ };
134034
+ logistics_trace_batch: {
134035
+ Args: {
134036
+ p: import("../integrations/supabase/types").Json;
134037
+ };
134038
+ Returns: number;
134039
+ };
134040
+ logistics_trace_orders: {
134041
+ Args: {
134042
+ p_limit?: number;
134043
+ p_search?: string;
134044
+ p_since?: string;
134045
+ p_status?: string;
134046
+ };
134047
+ Returns: import("../integrations/supabase/types").Json;
134048
+ };
134049
+ logistics_trace_redact: {
134050
+ Args: {
134051
+ p: import("../integrations/supabase/types").Json;
134052
+ };
134053
+ Returns: import("../integrations/supabase/types").Json;
134054
+ };
134055
+ logistics_trace_timeline: {
134056
+ Args: {
134057
+ p_limit?: number;
134058
+ p_order_ref: string;
134059
+ };
134060
+ Returns: import("../integrations/supabase/types").Json;
134061
+ };
131245
134062
  logistics_upsert_task: {
131246
134063
  Args: {
131247
134064
  p_buffer_ref: string;
@@ -132283,6 +135100,10 @@ export declare const importFloridayDeliveryLocations: import("@tanstack/start-cl
132283
135100
  };
132284
135101
  Returns: undefined;
132285
135102
  };
135103
+ prune_floriday_api_log: {
135104
+ Args: never;
135105
+ Returns: number;
135106
+ };
132286
135107
  quote_create_from_source: {
132287
135108
  Args: {
132288
135109
  _payload?: import("../integrations/supabase/types").Json;
@@ -133159,6 +135980,10 @@ export declare const importFloridayDeliveryLocations: import("@tanstack/start-cl
133159
135980
  Args: never;
133160
135981
  Returns: string;
133161
135982
  };
135983
+ voorraad_cleanup_old_rows: {
135984
+ Args: never;
135985
+ Returns: import("../integrations/supabase/types").Json;
135986
+ };
133162
135987
  wake_print_queue: {
133163
135988
  Args: {
133164
135989
  _min_interval_ms?: number;