@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
@@ -2225,6 +2225,45 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
2225
2225
  };
2226
2226
  Relationships: [];
2227
2227
  };
2228
+ customer_product_stickers: {
2229
+ Row: {
2230
+ created_at: string;
2231
+ customer_key: string;
2232
+ file_name: string;
2233
+ file_path: string;
2234
+ file_size: number | null;
2235
+ id: string;
2236
+ mime_type: string | null;
2237
+ trade_item_key: string;
2238
+ updated_at: string;
2239
+ uploaded_by: string | null;
2240
+ };
2241
+ Insert: {
2242
+ created_at?: string;
2243
+ customer_key: string;
2244
+ file_name: string;
2245
+ file_path: string;
2246
+ file_size?: number | null;
2247
+ id?: string;
2248
+ mime_type?: string | null;
2249
+ trade_item_key: string;
2250
+ updated_at?: string;
2251
+ uploaded_by?: string | null;
2252
+ };
2253
+ Update: {
2254
+ created_at?: string;
2255
+ customer_key?: string;
2256
+ file_name?: string;
2257
+ file_path?: string;
2258
+ file_size?: number | null;
2259
+ id?: string;
2260
+ mime_type?: string | null;
2261
+ trade_item_key?: string;
2262
+ updated_at?: string;
2263
+ uploaded_by?: string | null;
2264
+ };
2265
+ Relationships: [];
2266
+ };
2228
2267
  customer_selected_assortment: {
2229
2268
  Row: {
2230
2269
  article_number: string | null;
@@ -2273,6 +2312,30 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
2273
2312
  referencedColumns: ["id"];
2274
2313
  }];
2275
2314
  };
2315
+ customer_sticker_settings: {
2316
+ Row: {
2317
+ created_at: string;
2318
+ customer_key: string;
2319
+ height_mm: number;
2320
+ updated_at: string;
2321
+ width_mm: number;
2322
+ };
2323
+ Insert: {
2324
+ created_at?: string;
2325
+ customer_key: string;
2326
+ height_mm?: number;
2327
+ updated_at?: string;
2328
+ width_mm?: number;
2329
+ };
2330
+ Update: {
2331
+ created_at?: string;
2332
+ customer_key?: string;
2333
+ height_mm?: number;
2334
+ updated_at?: string;
2335
+ width_mm?: number;
2336
+ };
2337
+ Relationships: [];
2338
+ };
2276
2339
  customer_trade_settings: {
2277
2340
  Row: {
2278
2341
  category: string;
@@ -5603,6 +5666,102 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
5603
5666
  referencedColumns: ["id"];
5604
5667
  }];
5605
5668
  };
5669
+ floriday_api_log: {
5670
+ Row: {
5671
+ action: string | null;
5672
+ caller: string | null;
5673
+ connection_id: string | null;
5674
+ created_at: string;
5675
+ cursor_from: number | null;
5676
+ direction: string;
5677
+ duration_ms: number | null;
5678
+ environment: string | null;
5679
+ error: string | null;
5680
+ floriday_id: string | null;
5681
+ floriday_reference: string | null;
5682
+ http_status: number;
5683
+ id: string;
5684
+ item_count: number | null;
5685
+ kind: string | null;
5686
+ local_id: string | null;
5687
+ local_reference: string | null;
5688
+ method: string;
5689
+ module: string | null;
5690
+ ok: boolean;
5691
+ path: string;
5692
+ request: import("../integrations/supabase/types").Json | null;
5693
+ resource_type: string | null;
5694
+ response: import("../integrations/supabase/types").Json | null;
5695
+ write_log_id: string | null;
5696
+ };
5697
+ Insert: {
5698
+ action?: string | null;
5699
+ caller?: string | null;
5700
+ connection_id?: string | null;
5701
+ created_at?: string;
5702
+ cursor_from?: number | null;
5703
+ direction: string;
5704
+ duration_ms?: number | null;
5705
+ environment?: string | null;
5706
+ error?: string | null;
5707
+ floriday_id?: string | null;
5708
+ floriday_reference?: string | null;
5709
+ http_status?: number;
5710
+ id?: string;
5711
+ item_count?: number | null;
5712
+ kind?: string | null;
5713
+ local_id?: string | null;
5714
+ local_reference?: string | null;
5715
+ method: string;
5716
+ module?: string | null;
5717
+ ok?: boolean;
5718
+ path: string;
5719
+ request?: import("../integrations/supabase/types").Json | null;
5720
+ resource_type?: string | null;
5721
+ response?: import("../integrations/supabase/types").Json | null;
5722
+ write_log_id?: string | null;
5723
+ };
5724
+ Update: {
5725
+ action?: string | null;
5726
+ caller?: string | null;
5727
+ connection_id?: string | null;
5728
+ created_at?: string;
5729
+ cursor_from?: number | null;
5730
+ direction?: string;
5731
+ duration_ms?: number | null;
5732
+ environment?: string | null;
5733
+ error?: string | null;
5734
+ floriday_id?: string | null;
5735
+ floriday_reference?: string | null;
5736
+ http_status?: number;
5737
+ id?: string;
5738
+ item_count?: number | null;
5739
+ kind?: string | null;
5740
+ local_id?: string | null;
5741
+ local_reference?: string | null;
5742
+ method?: string;
5743
+ module?: string | null;
5744
+ ok?: boolean;
5745
+ path?: string;
5746
+ request?: import("../integrations/supabase/types").Json | null;
5747
+ resource_type?: string | null;
5748
+ response?: import("../integrations/supabase/types").Json | null;
5749
+ write_log_id?: string | null;
5750
+ };
5751
+ Relationships: [{
5752
+ foreignKeyName: "floriday_api_log_connection_id_fkey";
5753
+ columns: ["connection_id"];
5754
+ isOneToOne: false;
5755
+ referencedRelation: "floriday_connections";
5756
+ referencedColumns: ["id"];
5757
+ }, {
5758
+ foreignKeyName: "floriday_api_log_write_log_id_fkey";
5759
+ columns: ["write_log_id"];
5760
+ isOneToOne: false;
5761
+ referencedRelation: "floriday_write_log";
5762
+ referencedColumns: ["id"];
5763
+ }];
5764
+ };
5606
5765
  floriday_auction_letters_cache: {
5607
5766
  Row: {
5608
5767
  auction_letter_code: string;
@@ -6803,6 +6962,69 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
6803
6962
  referencedColumns: ["id"];
6804
6963
  }];
6805
6964
  };
6965
+ floriday_link_templates: {
6966
+ Row: {
6967
+ created_at: string;
6968
+ floriday_url_template: string | null;
6969
+ is_active: boolean;
6970
+ label: string;
6971
+ local_url_template: string | null;
6972
+ resource_type: string;
6973
+ updated_at: string;
6974
+ };
6975
+ Insert: {
6976
+ created_at?: string;
6977
+ floriday_url_template?: string | null;
6978
+ is_active?: boolean;
6979
+ label: string;
6980
+ local_url_template?: string | null;
6981
+ resource_type: string;
6982
+ updated_at?: string;
6983
+ };
6984
+ Update: {
6985
+ created_at?: string;
6986
+ floriday_url_template?: string | null;
6987
+ is_active?: boolean;
6988
+ label?: string;
6989
+ local_url_template?: string | null;
6990
+ resource_type?: string;
6991
+ updated_at?: string;
6992
+ };
6993
+ Relationships: [];
6994
+ };
6995
+ floriday_log_retention: {
6996
+ Row: {
6997
+ created_at: string;
6998
+ direction: string | null;
6999
+ id: string;
7000
+ keep_failed_days: number | null;
7001
+ keep_ok_days: number | null;
7002
+ note: string | null;
7003
+ resource_type: string | null;
7004
+ updated_at: string;
7005
+ };
7006
+ Insert: {
7007
+ created_at?: string;
7008
+ direction?: string | null;
7009
+ id?: string;
7010
+ keep_failed_days?: number | null;
7011
+ keep_ok_days?: number | null;
7012
+ note?: string | null;
7013
+ resource_type?: string | null;
7014
+ updated_at?: string;
7015
+ };
7016
+ Update: {
7017
+ created_at?: string;
7018
+ direction?: string | null;
7019
+ id?: string;
7020
+ keep_failed_days?: number | null;
7021
+ keep_ok_days?: number | null;
7022
+ note?: string | null;
7023
+ resource_type?: string | null;
7024
+ updated_at?: string;
7025
+ };
7026
+ Relationships: [];
7027
+ };
6806
7028
  floriday_logistic_labels_cache: {
6807
7029
  Row: {
6808
7030
  byte_size: number | null;
@@ -10928,6 +11150,69 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
10928
11150
  };
10929
11151
  Relationships: [];
10930
11152
  };
11153
+ logistics_slip_shipping_note: {
11154
+ Row: {
11155
+ attempts: number;
11156
+ batch_key: string | null;
11157
+ cart_id: string | null;
11158
+ created_at: string;
11159
+ error: string | null;
11160
+ error_code: string | null;
11161
+ fulfillment_order_id: string | null;
11162
+ id: string;
11163
+ locked_until: string | null;
11164
+ next_attempt_at: string | null;
11165
+ order_id: string | null;
11166
+ order_number: string | null;
11167
+ print_job_id: string | null;
11168
+ printer_id: string | null;
11169
+ retry_class: string | null;
11170
+ slip_job_id: string;
11171
+ status: string;
11172
+ updated_at: string;
11173
+ };
11174
+ Insert: {
11175
+ attempts?: number;
11176
+ batch_key?: string | null;
11177
+ cart_id?: string | null;
11178
+ created_at?: string;
11179
+ error?: string | null;
11180
+ error_code?: string | null;
11181
+ fulfillment_order_id?: string | null;
11182
+ id?: string;
11183
+ locked_until?: string | null;
11184
+ next_attempt_at?: string | null;
11185
+ order_id?: string | null;
11186
+ order_number?: string | null;
11187
+ print_job_id?: string | null;
11188
+ printer_id?: string | null;
11189
+ retry_class?: string | null;
11190
+ slip_job_id: string;
11191
+ status?: string;
11192
+ updated_at?: string;
11193
+ };
11194
+ Update: {
11195
+ attempts?: number;
11196
+ batch_key?: string | null;
11197
+ cart_id?: string | null;
11198
+ created_at?: string;
11199
+ error?: string | null;
11200
+ error_code?: string | null;
11201
+ fulfillment_order_id?: string | null;
11202
+ id?: string;
11203
+ locked_until?: string | null;
11204
+ next_attempt_at?: string | null;
11205
+ order_id?: string | null;
11206
+ order_number?: string | null;
11207
+ print_job_id?: string | null;
11208
+ printer_id?: string | null;
11209
+ retry_class?: string | null;
11210
+ slip_job_id?: string;
11211
+ status?: string;
11212
+ updated_at?: string;
11213
+ };
11214
+ Relationships: [];
11215
+ };
10931
11216
  logistics_staff_planning: {
10932
11217
  Row: {
10933
11218
  created_at: string;
@@ -11279,6 +11564,111 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
11279
11564
  };
11280
11565
  Relationships: [];
11281
11566
  };
11567
+ logistics_trace_events: {
11568
+ Row: {
11569
+ actor: string | null;
11570
+ attempts: number;
11571
+ cart_ref: string | null;
11572
+ created_at: string;
11573
+ db_action: string | null;
11574
+ db_new: import("../integrations/supabase/types").Json | null;
11575
+ db_old: import("../integrations/supabase/types").Json | null;
11576
+ db_record: string | null;
11577
+ db_table: string | null;
11578
+ decision: string | null;
11579
+ duration_ms: number | null;
11580
+ error: string | null;
11581
+ external_action: string | null;
11582
+ external_ref: string | null;
11583
+ external_response: import("../integrations/supabase/types").Json | null;
11584
+ external_status: string | null;
11585
+ external_system: string | null;
11586
+ id: string;
11587
+ input: import("../integrations/supabase/types").Json | null;
11588
+ next_attempt_at: string | null;
11589
+ order_ref: string | null;
11590
+ order_source: string | null;
11591
+ output: import("../integrations/supabase/types").Json | null;
11592
+ phase: string;
11593
+ reads: import("../integrations/supabase/types").Json | null;
11594
+ reason: string | null;
11595
+ rule: string | null;
11596
+ slip_ref: string | null;
11597
+ status: string;
11598
+ step: string;
11599
+ trace_id: string;
11600
+ values_used: import("../integrations/supabase/types").Json | null;
11601
+ };
11602
+ Insert: {
11603
+ actor?: string | null;
11604
+ attempts?: number;
11605
+ cart_ref?: string | null;
11606
+ created_at?: string;
11607
+ db_action?: string | null;
11608
+ db_new?: import("../integrations/supabase/types").Json | null;
11609
+ db_old?: import("../integrations/supabase/types").Json | null;
11610
+ db_record?: string | null;
11611
+ db_table?: string | null;
11612
+ decision?: string | null;
11613
+ duration_ms?: number | null;
11614
+ error?: string | null;
11615
+ external_action?: string | null;
11616
+ external_ref?: string | null;
11617
+ external_response?: import("../integrations/supabase/types").Json | null;
11618
+ external_status?: string | null;
11619
+ external_system?: string | null;
11620
+ id?: string;
11621
+ input?: import("../integrations/supabase/types").Json | null;
11622
+ next_attempt_at?: string | null;
11623
+ order_ref?: string | null;
11624
+ order_source?: string | null;
11625
+ output?: import("../integrations/supabase/types").Json | null;
11626
+ phase: string;
11627
+ reads?: import("../integrations/supabase/types").Json | null;
11628
+ reason?: string | null;
11629
+ rule?: string | null;
11630
+ slip_ref?: string | null;
11631
+ status: string;
11632
+ step: string;
11633
+ trace_id?: string;
11634
+ values_used?: import("../integrations/supabase/types").Json | null;
11635
+ };
11636
+ Update: {
11637
+ actor?: string | null;
11638
+ attempts?: number;
11639
+ cart_ref?: string | null;
11640
+ created_at?: string;
11641
+ db_action?: string | null;
11642
+ db_new?: import("../integrations/supabase/types").Json | null;
11643
+ db_old?: import("../integrations/supabase/types").Json | null;
11644
+ db_record?: string | null;
11645
+ db_table?: string | null;
11646
+ decision?: string | null;
11647
+ duration_ms?: number | null;
11648
+ error?: string | null;
11649
+ external_action?: string | null;
11650
+ external_ref?: string | null;
11651
+ external_response?: import("../integrations/supabase/types").Json | null;
11652
+ external_status?: string | null;
11653
+ external_system?: string | null;
11654
+ id?: string;
11655
+ input?: import("../integrations/supabase/types").Json | null;
11656
+ next_attempt_at?: string | null;
11657
+ order_ref?: string | null;
11658
+ order_source?: string | null;
11659
+ output?: import("../integrations/supabase/types").Json | null;
11660
+ phase?: string;
11661
+ reads?: import("../integrations/supabase/types").Json | null;
11662
+ reason?: string | null;
11663
+ rule?: string | null;
11664
+ slip_ref?: string | null;
11665
+ status?: string;
11666
+ step?: string;
11667
+ trace_id?: string;
11668
+ values_used?: import("../integrations/supabase/types").Json | null;
11669
+ };
11670
+ Relationships: [];
11671
+ };
11282
11672
  logistics_variables: {
11283
11673
  Row: {
11284
11674
  created_at: string;
@@ -21851,6 +22241,15 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
21851
22241
  Args: never;
21852
22242
  Returns: boolean;
21853
22243
  };
22244
+ cancel_open_print_jobs: {
22245
+ Args: {
22246
+ _cutoff: string;
22247
+ };
22248
+ Returns: {
22249
+ extern_job_id: string;
22250
+ id: string;
22251
+ }[];
22252
+ };
21854
22253
  check_offer_product_available_stock: {
21855
22254
  Args: {
21856
22255
  p_campaign_product_id: string;
@@ -23463,6 +23862,12 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
23463
23862
  };
23464
23863
  Returns: import("../integrations/supabase/types").Json;
23465
23864
  };
23865
+ logistics_cart_plan_status_core: {
23866
+ Args: {
23867
+ p_ref: string;
23868
+ };
23869
+ Returns: import("../integrations/supabase/types").Json;
23870
+ };
23466
23871
  logistics_cart_release_reason: {
23467
23872
  Args: {
23468
23873
  p_cart_id: string;
@@ -23525,6 +23930,10 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
23525
23930
  unit_ref: string;
23526
23931
  }[];
23527
23932
  };
23933
+ logistics_carts_per_print: {
23934
+ Args: never;
23935
+ Returns: number;
23936
+ };
23528
23937
  logistics_check_order_allowed: {
23529
23938
  Args: {
23530
23939
  p_lines: import("../integrations/supabase/types").Json;
@@ -23891,6 +24300,12 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
23891
24300
  };
23892
24301
  Returns: import("../integrations/supabase/types").Json;
23893
24302
  };
24303
+ logistics_ensure_shipping_notes: {
24304
+ Args: {
24305
+ p_limit?: number;
24306
+ };
24307
+ Returns: import("../integrations/supabase/types").Json;
24308
+ };
23894
24309
  logistics_fail_task: {
23895
24310
  Args: {
23896
24311
  p_error: string;
@@ -23936,6 +24351,10 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
23936
24351
  isSetofReturn: false;
23937
24352
  };
23938
24353
  };
24354
+ logistics_fix_wrong_shipping_notes: {
24355
+ Args: never;
24356
+ Returns: import("../integrations/supabase/types").Json;
24357
+ };
23939
24358
  logistics_floriday_cart_plan: {
23940
24359
  Args: {
23941
24360
  p_order_id: string;
@@ -23963,6 +24382,10 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
23963
24382
  revision: number;
23964
24383
  }[];
23965
24384
  };
24385
+ logistics_floriday_delivery_note_create_enabled: {
24386
+ Args: never;
24387
+ Returns: boolean;
24388
+ };
23966
24389
  logistics_floriday_finish_push: {
23967
24390
  Args: {
23968
24391
  _error?: string;
@@ -24206,6 +24629,12 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
24206
24629
  };
24207
24630
  Returns: string;
24208
24631
  };
24632
+ logistics_payload_is_floriday: {
24633
+ Args: {
24634
+ _payload: import("../integrations/supabase/types").Json;
24635
+ };
24636
+ Returns: boolean;
24637
+ };
24209
24638
  logistics_pick_agenda: {
24210
24639
  Args: {
24211
24640
  p_from?: string;
@@ -24328,6 +24757,20 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
24328
24757
  Args: never;
24329
24758
  Returns: undefined;
24330
24759
  };
24760
+ logistics_plan_progress: {
24761
+ Args: {
24762
+ p_refs: string[];
24763
+ };
24764
+ Returns: {
24765
+ cart_plan_ready: boolean;
24766
+ cart_plan_reason: string;
24767
+ cart_plan_released: boolean;
24768
+ plan_progress: number;
24769
+ plan_state: string;
24770
+ plan_state_since: string;
24771
+ unit_ref: string;
24772
+ }[];
24773
+ };
24331
24774
  logistics_plan_prune: {
24332
24775
  Args: never;
24333
24776
  Returns: number;
@@ -24349,6 +24792,12 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
24349
24792
  };
24350
24793
  Returns: number;
24351
24794
  };
24795
+ logistics_plan_state_for: {
24796
+ Args: {
24797
+ p_ref: string;
24798
+ };
24799
+ Returns: import("../integrations/supabase/types").Json;
24800
+ };
24352
24801
  logistics_prepare_pick_documents: {
24353
24802
  Args: {
24354
24803
  p_limit?: number;
@@ -24407,6 +24856,12 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
24407
24856
  };
24408
24857
  Returns: import("../integrations/supabase/types").Json;
24409
24858
  };
24859
+ logistics_refresh_plan_state: {
24860
+ Args: {
24861
+ p_limit?: number;
24862
+ };
24863
+ Returns: import("../integrations/supabase/types").Json;
24864
+ };
24410
24865
  logistics_replan_all: {
24411
24866
  Args: {
24412
24867
  p_reason?: string;
@@ -24575,6 +25030,74 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
24575
25030
  };
24576
25031
  Returns: import("../integrations/supabase/types").Json;
24577
25032
  };
25033
+ logistics_shipping_note_job_for_slip: {
25034
+ Args: {
25035
+ _slip_job_id: string;
25036
+ };
25037
+ Returns: string;
25038
+ };
25039
+ logistics_shipping_notes_wake_all: {
25040
+ Args: never;
25041
+ Returns: import("../integrations/supabase/types").Json;
25042
+ };
25043
+ logistics_slip_is_floriday: {
25044
+ Args: {
25045
+ _slip_job_id: string;
25046
+ };
25047
+ Returns: boolean;
25048
+ };
25049
+ logistics_slip_note_claim: {
25050
+ Args: {
25051
+ _lease_seconds?: number;
25052
+ _limit?: number;
25053
+ };
25054
+ Returns: {
25055
+ attempts: number;
25056
+ batch_key: string | null;
25057
+ cart_id: string | null;
25058
+ created_at: string;
25059
+ error: string | null;
25060
+ error_code: string | null;
25061
+ fulfillment_order_id: string | null;
25062
+ id: string;
25063
+ locked_until: string | null;
25064
+ next_attempt_at: string | null;
25065
+ order_id: string | null;
25066
+ order_number: string | null;
25067
+ print_job_id: string | null;
25068
+ printer_id: string | null;
25069
+ retry_class: string | null;
25070
+ slip_job_id: string;
25071
+ status: string;
25072
+ updated_at: string;
25073
+ }[];
25074
+ SetofOptions: {
25075
+ from: "*";
25076
+ to: "logistics_slip_shipping_note";
25077
+ isOneToOne: false;
25078
+ isSetofReturn: true;
25079
+ };
25080
+ };
25081
+ logistics_slip_note_finish: {
25082
+ Args: {
25083
+ _error?: string;
25084
+ _error_code?: string;
25085
+ _fulfillment_order_id?: string;
25086
+ _id: string;
25087
+ _ok: boolean;
25088
+ _print_job_id?: string;
25089
+ _status?: string;
25090
+ };
25091
+ Returns: undefined;
25092
+ };
25093
+ logistics_slip_note_keep_waiting: {
25094
+ Args: {
25095
+ _class?: string;
25096
+ _id: string;
25097
+ _reason: string;
25098
+ };
25099
+ Returns: undefined;
25100
+ };
24578
25101
  logistics_sticker_follows_slip: {
24579
25102
  Args: never;
24580
25103
  Returns: boolean;
@@ -24629,6 +25152,40 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
24629
25152
  name: string;
24630
25153
  }[];
24631
25154
  };
25155
+ logistics_trace: {
25156
+ Args: {
25157
+ p: import("../integrations/supabase/types").Json;
25158
+ };
25159
+ Returns: string;
25160
+ };
25161
+ logistics_trace_batch: {
25162
+ Args: {
25163
+ p: import("../integrations/supabase/types").Json;
25164
+ };
25165
+ Returns: number;
25166
+ };
25167
+ logistics_trace_orders: {
25168
+ Args: {
25169
+ p_limit?: number;
25170
+ p_search?: string;
25171
+ p_since?: string;
25172
+ p_status?: string;
25173
+ };
25174
+ Returns: import("../integrations/supabase/types").Json;
25175
+ };
25176
+ logistics_trace_redact: {
25177
+ Args: {
25178
+ p: import("../integrations/supabase/types").Json;
25179
+ };
25180
+ Returns: import("../integrations/supabase/types").Json;
25181
+ };
25182
+ logistics_trace_timeline: {
25183
+ Args: {
25184
+ p_limit?: number;
25185
+ p_order_ref: string;
25186
+ };
25187
+ Returns: import("../integrations/supabase/types").Json;
25188
+ };
24632
25189
  logistics_upsert_task: {
24633
25190
  Args: {
24634
25191
  p_buffer_ref: string;
@@ -25670,6 +26227,10 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
25670
26227
  };
25671
26228
  Returns: undefined;
25672
26229
  };
26230
+ prune_floriday_api_log: {
26231
+ Args: never;
26232
+ Returns: number;
26233
+ };
25673
26234
  quote_create_from_source: {
25674
26235
  Args: {
25675
26236
  _payload?: import("../integrations/supabase/types").Json;
@@ -26546,6 +27107,10 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
26546
27107
  Args: never;
26547
27108
  Returns: string;
26548
27109
  };
27110
+ voorraad_cleanup_old_rows: {
27111
+ Args: never;
27112
+ Returns: import("../integrations/supabase/types").Json;
27113
+ };
26549
27114
  wake_print_queue: {
26550
27115
  Args: {
26551
27116
  _min_interval_ms?: number;
@@ -28843,6 +29408,45 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
28843
29408
  };
28844
29409
  Relationships: [];
28845
29410
  };
29411
+ customer_product_stickers: {
29412
+ Row: {
29413
+ created_at: string;
29414
+ customer_key: string;
29415
+ file_name: string;
29416
+ file_path: string;
29417
+ file_size: number | null;
29418
+ id: string;
29419
+ mime_type: string | null;
29420
+ trade_item_key: string;
29421
+ updated_at: string;
29422
+ uploaded_by: string | null;
29423
+ };
29424
+ Insert: {
29425
+ created_at?: string;
29426
+ customer_key: string;
29427
+ file_name: string;
29428
+ file_path: string;
29429
+ file_size?: number | null;
29430
+ id?: string;
29431
+ mime_type?: string | null;
29432
+ trade_item_key: string;
29433
+ updated_at?: string;
29434
+ uploaded_by?: string | null;
29435
+ };
29436
+ Update: {
29437
+ created_at?: string;
29438
+ customer_key?: string;
29439
+ file_name?: string;
29440
+ file_path?: string;
29441
+ file_size?: number | null;
29442
+ id?: string;
29443
+ mime_type?: string | null;
29444
+ trade_item_key?: string;
29445
+ updated_at?: string;
29446
+ uploaded_by?: string | null;
29447
+ };
29448
+ Relationships: [];
29449
+ };
28846
29450
  customer_selected_assortment: {
28847
29451
  Row: {
28848
29452
  article_number: string | null;
@@ -28891,6 +29495,30 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
28891
29495
  referencedColumns: ["id"];
28892
29496
  }];
28893
29497
  };
29498
+ customer_sticker_settings: {
29499
+ Row: {
29500
+ created_at: string;
29501
+ customer_key: string;
29502
+ height_mm: number;
29503
+ updated_at: string;
29504
+ width_mm: number;
29505
+ };
29506
+ Insert: {
29507
+ created_at?: string;
29508
+ customer_key: string;
29509
+ height_mm?: number;
29510
+ updated_at?: string;
29511
+ width_mm?: number;
29512
+ };
29513
+ Update: {
29514
+ created_at?: string;
29515
+ customer_key?: string;
29516
+ height_mm?: number;
29517
+ updated_at?: string;
29518
+ width_mm?: number;
29519
+ };
29520
+ Relationships: [];
29521
+ };
28894
29522
  customer_trade_settings: {
28895
29523
  Row: {
28896
29524
  category: string;
@@ -32221,6 +32849,102 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
32221
32849
  referencedColumns: ["id"];
32222
32850
  }];
32223
32851
  };
32852
+ floriday_api_log: {
32853
+ Row: {
32854
+ action: string | null;
32855
+ caller: string | null;
32856
+ connection_id: string | null;
32857
+ created_at: string;
32858
+ cursor_from: number | null;
32859
+ direction: string;
32860
+ duration_ms: number | null;
32861
+ environment: string | null;
32862
+ error: string | null;
32863
+ floriday_id: string | null;
32864
+ floriday_reference: string | null;
32865
+ http_status: number;
32866
+ id: string;
32867
+ item_count: number | null;
32868
+ kind: string | null;
32869
+ local_id: string | null;
32870
+ local_reference: string | null;
32871
+ method: string;
32872
+ module: string | null;
32873
+ ok: boolean;
32874
+ path: string;
32875
+ request: import("../integrations/supabase/types").Json | null;
32876
+ resource_type: string | null;
32877
+ response: import("../integrations/supabase/types").Json | null;
32878
+ write_log_id: string | null;
32879
+ };
32880
+ Insert: {
32881
+ action?: string | null;
32882
+ caller?: string | null;
32883
+ connection_id?: string | null;
32884
+ created_at?: string;
32885
+ cursor_from?: number | null;
32886
+ direction: string;
32887
+ duration_ms?: number | null;
32888
+ environment?: string | null;
32889
+ error?: string | null;
32890
+ floriday_id?: string | null;
32891
+ floriday_reference?: string | null;
32892
+ http_status?: number;
32893
+ id?: string;
32894
+ item_count?: number | null;
32895
+ kind?: string | null;
32896
+ local_id?: string | null;
32897
+ local_reference?: string | null;
32898
+ method: string;
32899
+ module?: string | null;
32900
+ ok?: boolean;
32901
+ path: string;
32902
+ request?: import("../integrations/supabase/types").Json | null;
32903
+ resource_type?: string | null;
32904
+ response?: import("../integrations/supabase/types").Json | null;
32905
+ write_log_id?: string | null;
32906
+ };
32907
+ Update: {
32908
+ action?: string | null;
32909
+ caller?: string | null;
32910
+ connection_id?: string | null;
32911
+ created_at?: string;
32912
+ cursor_from?: number | null;
32913
+ direction?: string;
32914
+ duration_ms?: number | null;
32915
+ environment?: string | null;
32916
+ error?: string | null;
32917
+ floriday_id?: string | null;
32918
+ floriday_reference?: string | null;
32919
+ http_status?: number;
32920
+ id?: string;
32921
+ item_count?: number | null;
32922
+ kind?: string | null;
32923
+ local_id?: string | null;
32924
+ local_reference?: string | null;
32925
+ method?: string;
32926
+ module?: string | null;
32927
+ ok?: boolean;
32928
+ path?: string;
32929
+ request?: import("../integrations/supabase/types").Json | null;
32930
+ resource_type?: string | null;
32931
+ response?: import("../integrations/supabase/types").Json | null;
32932
+ write_log_id?: string | null;
32933
+ };
32934
+ Relationships: [{
32935
+ foreignKeyName: "floriday_api_log_connection_id_fkey";
32936
+ columns: ["connection_id"];
32937
+ isOneToOne: false;
32938
+ referencedRelation: "floriday_connections";
32939
+ referencedColumns: ["id"];
32940
+ }, {
32941
+ foreignKeyName: "floriday_api_log_write_log_id_fkey";
32942
+ columns: ["write_log_id"];
32943
+ isOneToOne: false;
32944
+ referencedRelation: "floriday_write_log";
32945
+ referencedColumns: ["id"];
32946
+ }];
32947
+ };
32224
32948
  floriday_auction_letters_cache: {
32225
32949
  Row: {
32226
32950
  auction_letter_code: string;
@@ -33421,6 +34145,69 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
33421
34145
  referencedColumns: ["id"];
33422
34146
  }];
33423
34147
  };
34148
+ floriday_link_templates: {
34149
+ Row: {
34150
+ created_at: string;
34151
+ floriday_url_template: string | null;
34152
+ is_active: boolean;
34153
+ label: string;
34154
+ local_url_template: string | null;
34155
+ resource_type: string;
34156
+ updated_at: string;
34157
+ };
34158
+ Insert: {
34159
+ created_at?: string;
34160
+ floriday_url_template?: string | null;
34161
+ is_active?: boolean;
34162
+ label: string;
34163
+ local_url_template?: string | null;
34164
+ resource_type: string;
34165
+ updated_at?: string;
34166
+ };
34167
+ Update: {
34168
+ created_at?: string;
34169
+ floriday_url_template?: string | null;
34170
+ is_active?: boolean;
34171
+ label?: string;
34172
+ local_url_template?: string | null;
34173
+ resource_type?: string;
34174
+ updated_at?: string;
34175
+ };
34176
+ Relationships: [];
34177
+ };
34178
+ floriday_log_retention: {
34179
+ Row: {
34180
+ created_at: string;
34181
+ direction: string | null;
34182
+ id: string;
34183
+ keep_failed_days: number | null;
34184
+ keep_ok_days: number | null;
34185
+ note: string | null;
34186
+ resource_type: string | null;
34187
+ updated_at: string;
34188
+ };
34189
+ Insert: {
34190
+ created_at?: string;
34191
+ direction?: string | null;
34192
+ id?: string;
34193
+ keep_failed_days?: number | null;
34194
+ keep_ok_days?: number | null;
34195
+ note?: string | null;
34196
+ resource_type?: string | null;
34197
+ updated_at?: string;
34198
+ };
34199
+ Update: {
34200
+ created_at?: string;
34201
+ direction?: string | null;
34202
+ id?: string;
34203
+ keep_failed_days?: number | null;
34204
+ keep_ok_days?: number | null;
34205
+ note?: string | null;
34206
+ resource_type?: string | null;
34207
+ updated_at?: string;
34208
+ };
34209
+ Relationships: [];
34210
+ };
33424
34211
  floriday_logistic_labels_cache: {
33425
34212
  Row: {
33426
34213
  byte_size: number | null;
@@ -37546,6 +38333,69 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
37546
38333
  };
37547
38334
  Relationships: [];
37548
38335
  };
38336
+ logistics_slip_shipping_note: {
38337
+ Row: {
38338
+ attempts: number;
38339
+ batch_key: string | null;
38340
+ cart_id: string | null;
38341
+ created_at: string;
38342
+ error: string | null;
38343
+ error_code: string | null;
38344
+ fulfillment_order_id: string | null;
38345
+ id: string;
38346
+ locked_until: string | null;
38347
+ next_attempt_at: string | null;
38348
+ order_id: string | null;
38349
+ order_number: string | null;
38350
+ print_job_id: string | null;
38351
+ printer_id: string | null;
38352
+ retry_class: string | null;
38353
+ slip_job_id: string;
38354
+ status: string;
38355
+ updated_at: string;
38356
+ };
38357
+ Insert: {
38358
+ attempts?: number;
38359
+ batch_key?: string | null;
38360
+ cart_id?: string | null;
38361
+ created_at?: string;
38362
+ error?: string | null;
38363
+ error_code?: string | null;
38364
+ fulfillment_order_id?: string | null;
38365
+ id?: string;
38366
+ locked_until?: string | null;
38367
+ next_attempt_at?: string | null;
38368
+ order_id?: string | null;
38369
+ order_number?: string | null;
38370
+ print_job_id?: string | null;
38371
+ printer_id?: string | null;
38372
+ retry_class?: string | null;
38373
+ slip_job_id: string;
38374
+ status?: string;
38375
+ updated_at?: string;
38376
+ };
38377
+ Update: {
38378
+ attempts?: number;
38379
+ batch_key?: string | null;
38380
+ cart_id?: string | null;
38381
+ created_at?: string;
38382
+ error?: string | null;
38383
+ error_code?: string | null;
38384
+ fulfillment_order_id?: string | null;
38385
+ id?: string;
38386
+ locked_until?: string | null;
38387
+ next_attempt_at?: string | null;
38388
+ order_id?: string | null;
38389
+ order_number?: string | null;
38390
+ print_job_id?: string | null;
38391
+ printer_id?: string | null;
38392
+ retry_class?: string | null;
38393
+ slip_job_id?: string;
38394
+ status?: string;
38395
+ updated_at?: string;
38396
+ };
38397
+ Relationships: [];
38398
+ };
37549
38399
  logistics_staff_planning: {
37550
38400
  Row: {
37551
38401
  created_at: string;
@@ -37897,6 +38747,111 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
37897
38747
  };
37898
38748
  Relationships: [];
37899
38749
  };
38750
+ logistics_trace_events: {
38751
+ Row: {
38752
+ actor: string | null;
38753
+ attempts: number;
38754
+ cart_ref: string | null;
38755
+ created_at: string;
38756
+ db_action: string | null;
38757
+ db_new: import("../integrations/supabase/types").Json | null;
38758
+ db_old: import("../integrations/supabase/types").Json | null;
38759
+ db_record: string | null;
38760
+ db_table: string | null;
38761
+ decision: string | null;
38762
+ duration_ms: number | null;
38763
+ error: string | null;
38764
+ external_action: string | null;
38765
+ external_ref: string | null;
38766
+ external_response: import("../integrations/supabase/types").Json | null;
38767
+ external_status: string | null;
38768
+ external_system: string | null;
38769
+ id: string;
38770
+ input: import("../integrations/supabase/types").Json | null;
38771
+ next_attempt_at: string | null;
38772
+ order_ref: string | null;
38773
+ order_source: string | null;
38774
+ output: import("../integrations/supabase/types").Json | null;
38775
+ phase: string;
38776
+ reads: import("../integrations/supabase/types").Json | null;
38777
+ reason: string | null;
38778
+ rule: string | null;
38779
+ slip_ref: string | null;
38780
+ status: string;
38781
+ step: string;
38782
+ trace_id: string;
38783
+ values_used: import("../integrations/supabase/types").Json | null;
38784
+ };
38785
+ Insert: {
38786
+ actor?: string | null;
38787
+ attempts?: number;
38788
+ cart_ref?: string | null;
38789
+ created_at?: string;
38790
+ db_action?: string | null;
38791
+ db_new?: import("../integrations/supabase/types").Json | null;
38792
+ db_old?: import("../integrations/supabase/types").Json | null;
38793
+ db_record?: string | null;
38794
+ db_table?: string | null;
38795
+ decision?: string | null;
38796
+ duration_ms?: number | null;
38797
+ error?: string | null;
38798
+ external_action?: string | null;
38799
+ external_ref?: string | null;
38800
+ external_response?: import("../integrations/supabase/types").Json | null;
38801
+ external_status?: string | null;
38802
+ external_system?: string | null;
38803
+ id?: string;
38804
+ input?: import("../integrations/supabase/types").Json | null;
38805
+ next_attempt_at?: string | null;
38806
+ order_ref?: string | null;
38807
+ order_source?: string | null;
38808
+ output?: import("../integrations/supabase/types").Json | null;
38809
+ phase: string;
38810
+ reads?: import("../integrations/supabase/types").Json | null;
38811
+ reason?: string | null;
38812
+ rule?: string | null;
38813
+ slip_ref?: string | null;
38814
+ status: string;
38815
+ step: string;
38816
+ trace_id?: string;
38817
+ values_used?: import("../integrations/supabase/types").Json | null;
38818
+ };
38819
+ Update: {
38820
+ actor?: string | null;
38821
+ attempts?: number;
38822
+ cart_ref?: string | null;
38823
+ created_at?: string;
38824
+ db_action?: string | null;
38825
+ db_new?: import("../integrations/supabase/types").Json | null;
38826
+ db_old?: import("../integrations/supabase/types").Json | null;
38827
+ db_record?: string | null;
38828
+ db_table?: string | null;
38829
+ decision?: string | null;
38830
+ duration_ms?: number | null;
38831
+ error?: string | null;
38832
+ external_action?: string | null;
38833
+ external_ref?: string | null;
38834
+ external_response?: import("../integrations/supabase/types").Json | null;
38835
+ external_status?: string | null;
38836
+ external_system?: string | null;
38837
+ id?: string;
38838
+ input?: import("../integrations/supabase/types").Json | null;
38839
+ next_attempt_at?: string | null;
38840
+ order_ref?: string | null;
38841
+ order_source?: string | null;
38842
+ output?: import("../integrations/supabase/types").Json | null;
38843
+ phase?: string;
38844
+ reads?: import("../integrations/supabase/types").Json | null;
38845
+ reason?: string | null;
38846
+ rule?: string | null;
38847
+ slip_ref?: string | null;
38848
+ status?: string;
38849
+ step?: string;
38850
+ trace_id?: string;
38851
+ values_used?: import("../integrations/supabase/types").Json | null;
38852
+ };
38853
+ Relationships: [];
38854
+ };
37900
38855
  logistics_variables: {
37901
38856
  Row: {
37902
38857
  created_at: string;
@@ -48469,6 +49424,15 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
48469
49424
  Args: never;
48470
49425
  Returns: boolean;
48471
49426
  };
49427
+ cancel_open_print_jobs: {
49428
+ Args: {
49429
+ _cutoff: string;
49430
+ };
49431
+ Returns: {
49432
+ extern_job_id: string;
49433
+ id: string;
49434
+ }[];
49435
+ };
48472
49436
  check_offer_product_available_stock: {
48473
49437
  Args: {
48474
49438
  p_campaign_product_id: string;
@@ -50081,6 +51045,12 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
50081
51045
  };
50082
51046
  Returns: import("../integrations/supabase/types").Json;
50083
51047
  };
51048
+ logistics_cart_plan_status_core: {
51049
+ Args: {
51050
+ p_ref: string;
51051
+ };
51052
+ Returns: import("../integrations/supabase/types").Json;
51053
+ };
50084
51054
  logistics_cart_release_reason: {
50085
51055
  Args: {
50086
51056
  p_cart_id: string;
@@ -50143,6 +51113,10 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
50143
51113
  unit_ref: string;
50144
51114
  }[];
50145
51115
  };
51116
+ logistics_carts_per_print: {
51117
+ Args: never;
51118
+ Returns: number;
51119
+ };
50146
51120
  logistics_check_order_allowed: {
50147
51121
  Args: {
50148
51122
  p_lines: import("../integrations/supabase/types").Json;
@@ -50509,6 +51483,12 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
50509
51483
  };
50510
51484
  Returns: import("../integrations/supabase/types").Json;
50511
51485
  };
51486
+ logistics_ensure_shipping_notes: {
51487
+ Args: {
51488
+ p_limit?: number;
51489
+ };
51490
+ Returns: import("../integrations/supabase/types").Json;
51491
+ };
50512
51492
  logistics_fail_task: {
50513
51493
  Args: {
50514
51494
  p_error: string;
@@ -50554,6 +51534,10 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
50554
51534
  isSetofReturn: false;
50555
51535
  };
50556
51536
  };
51537
+ logistics_fix_wrong_shipping_notes: {
51538
+ Args: never;
51539
+ Returns: import("../integrations/supabase/types").Json;
51540
+ };
50557
51541
  logistics_floriday_cart_plan: {
50558
51542
  Args: {
50559
51543
  p_order_id: string;
@@ -50581,6 +51565,10 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
50581
51565
  revision: number;
50582
51566
  }[];
50583
51567
  };
51568
+ logistics_floriday_delivery_note_create_enabled: {
51569
+ Args: never;
51570
+ Returns: boolean;
51571
+ };
50584
51572
  logistics_floriday_finish_push: {
50585
51573
  Args: {
50586
51574
  _error?: string;
@@ -50824,6 +51812,12 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
50824
51812
  };
50825
51813
  Returns: string;
50826
51814
  };
51815
+ logistics_payload_is_floriday: {
51816
+ Args: {
51817
+ _payload: import("../integrations/supabase/types").Json;
51818
+ };
51819
+ Returns: boolean;
51820
+ };
50827
51821
  logistics_pick_agenda: {
50828
51822
  Args: {
50829
51823
  p_from?: string;
@@ -50946,6 +51940,20 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
50946
51940
  Args: never;
50947
51941
  Returns: undefined;
50948
51942
  };
51943
+ logistics_plan_progress: {
51944
+ Args: {
51945
+ p_refs: string[];
51946
+ };
51947
+ Returns: {
51948
+ cart_plan_ready: boolean;
51949
+ cart_plan_reason: string;
51950
+ cart_plan_released: boolean;
51951
+ plan_progress: number;
51952
+ plan_state: string;
51953
+ plan_state_since: string;
51954
+ unit_ref: string;
51955
+ }[];
51956
+ };
50949
51957
  logistics_plan_prune: {
50950
51958
  Args: never;
50951
51959
  Returns: number;
@@ -50967,6 +51975,12 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
50967
51975
  };
50968
51976
  Returns: number;
50969
51977
  };
51978
+ logistics_plan_state_for: {
51979
+ Args: {
51980
+ p_ref: string;
51981
+ };
51982
+ Returns: import("../integrations/supabase/types").Json;
51983
+ };
50970
51984
  logistics_prepare_pick_documents: {
50971
51985
  Args: {
50972
51986
  p_limit?: number;
@@ -51025,6 +52039,12 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
51025
52039
  };
51026
52040
  Returns: import("../integrations/supabase/types").Json;
51027
52041
  };
52042
+ logistics_refresh_plan_state: {
52043
+ Args: {
52044
+ p_limit?: number;
52045
+ };
52046
+ Returns: import("../integrations/supabase/types").Json;
52047
+ };
51028
52048
  logistics_replan_all: {
51029
52049
  Args: {
51030
52050
  p_reason?: string;
@@ -51193,6 +52213,74 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
51193
52213
  };
51194
52214
  Returns: import("../integrations/supabase/types").Json;
51195
52215
  };
52216
+ logistics_shipping_note_job_for_slip: {
52217
+ Args: {
52218
+ _slip_job_id: string;
52219
+ };
52220
+ Returns: string;
52221
+ };
52222
+ logistics_shipping_notes_wake_all: {
52223
+ Args: never;
52224
+ Returns: import("../integrations/supabase/types").Json;
52225
+ };
52226
+ logistics_slip_is_floriday: {
52227
+ Args: {
52228
+ _slip_job_id: string;
52229
+ };
52230
+ Returns: boolean;
52231
+ };
52232
+ logistics_slip_note_claim: {
52233
+ Args: {
52234
+ _lease_seconds?: number;
52235
+ _limit?: number;
52236
+ };
52237
+ Returns: {
52238
+ attempts: number;
52239
+ batch_key: string | null;
52240
+ cart_id: string | null;
52241
+ created_at: string;
52242
+ error: string | null;
52243
+ error_code: string | null;
52244
+ fulfillment_order_id: string | null;
52245
+ id: string;
52246
+ locked_until: string | null;
52247
+ next_attempt_at: string | null;
52248
+ order_id: string | null;
52249
+ order_number: string | null;
52250
+ print_job_id: string | null;
52251
+ printer_id: string | null;
52252
+ retry_class: string | null;
52253
+ slip_job_id: string;
52254
+ status: string;
52255
+ updated_at: string;
52256
+ }[];
52257
+ SetofOptions: {
52258
+ from: "*";
52259
+ to: "logistics_slip_shipping_note";
52260
+ isOneToOne: false;
52261
+ isSetofReturn: true;
52262
+ };
52263
+ };
52264
+ logistics_slip_note_finish: {
52265
+ Args: {
52266
+ _error?: string;
52267
+ _error_code?: string;
52268
+ _fulfillment_order_id?: string;
52269
+ _id: string;
52270
+ _ok: boolean;
52271
+ _print_job_id?: string;
52272
+ _status?: string;
52273
+ };
52274
+ Returns: undefined;
52275
+ };
52276
+ logistics_slip_note_keep_waiting: {
52277
+ Args: {
52278
+ _class?: string;
52279
+ _id: string;
52280
+ _reason: string;
52281
+ };
52282
+ Returns: undefined;
52283
+ };
51196
52284
  logistics_sticker_follows_slip: {
51197
52285
  Args: never;
51198
52286
  Returns: boolean;
@@ -51247,6 +52335,40 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
51247
52335
  name: string;
51248
52336
  }[];
51249
52337
  };
52338
+ logistics_trace: {
52339
+ Args: {
52340
+ p: import("../integrations/supabase/types").Json;
52341
+ };
52342
+ Returns: string;
52343
+ };
52344
+ logistics_trace_batch: {
52345
+ Args: {
52346
+ p: import("../integrations/supabase/types").Json;
52347
+ };
52348
+ Returns: number;
52349
+ };
52350
+ logistics_trace_orders: {
52351
+ Args: {
52352
+ p_limit?: number;
52353
+ p_search?: string;
52354
+ p_since?: string;
52355
+ p_status?: string;
52356
+ };
52357
+ Returns: import("../integrations/supabase/types").Json;
52358
+ };
52359
+ logistics_trace_redact: {
52360
+ Args: {
52361
+ p: import("../integrations/supabase/types").Json;
52362
+ };
52363
+ Returns: import("../integrations/supabase/types").Json;
52364
+ };
52365
+ logistics_trace_timeline: {
52366
+ Args: {
52367
+ p_limit?: number;
52368
+ p_order_ref: string;
52369
+ };
52370
+ Returns: import("../integrations/supabase/types").Json;
52371
+ };
51250
52372
  logistics_upsert_task: {
51251
52373
  Args: {
51252
52374
  p_buffer_ref: string;
@@ -52288,6 +53410,10 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
52288
53410
  };
52289
53411
  Returns: undefined;
52290
53412
  };
53413
+ prune_floriday_api_log: {
53414
+ Args: never;
53415
+ Returns: number;
53416
+ };
52291
53417
  quote_create_from_source: {
52292
53418
  Args: {
52293
53419
  _payload?: import("../integrations/supabase/types").Json;
@@ -53164,6 +54290,10 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
53164
54290
  Args: never;
53165
54291
  Returns: string;
53166
54292
  };
54293
+ voorraad_cleanup_old_rows: {
54294
+ Args: never;
54295
+ Returns: import("../integrations/supabase/types").Json;
54296
+ };
53167
54297
  wake_print_queue: {
53168
54298
  Args: {
53169
54299
  _min_interval_ms?: number;
@@ -55461,6 +56591,45 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
55461
56591
  };
55462
56592
  Relationships: [];
55463
56593
  };
56594
+ customer_product_stickers: {
56595
+ Row: {
56596
+ created_at: string;
56597
+ customer_key: string;
56598
+ file_name: string;
56599
+ file_path: string;
56600
+ file_size: number | null;
56601
+ id: string;
56602
+ mime_type: string | null;
56603
+ trade_item_key: string;
56604
+ updated_at: string;
56605
+ uploaded_by: string | null;
56606
+ };
56607
+ Insert: {
56608
+ created_at?: string;
56609
+ customer_key: string;
56610
+ file_name: string;
56611
+ file_path: string;
56612
+ file_size?: number | null;
56613
+ id?: string;
56614
+ mime_type?: string | null;
56615
+ trade_item_key: string;
56616
+ updated_at?: string;
56617
+ uploaded_by?: string | null;
56618
+ };
56619
+ Update: {
56620
+ created_at?: string;
56621
+ customer_key?: string;
56622
+ file_name?: string;
56623
+ file_path?: string;
56624
+ file_size?: number | null;
56625
+ id?: string;
56626
+ mime_type?: string | null;
56627
+ trade_item_key?: string;
56628
+ updated_at?: string;
56629
+ uploaded_by?: string | null;
56630
+ };
56631
+ Relationships: [];
56632
+ };
55464
56633
  customer_selected_assortment: {
55465
56634
  Row: {
55466
56635
  article_number: string | null;
@@ -55509,6 +56678,30 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
55509
56678
  referencedColumns: ["id"];
55510
56679
  }];
55511
56680
  };
56681
+ customer_sticker_settings: {
56682
+ Row: {
56683
+ created_at: string;
56684
+ customer_key: string;
56685
+ height_mm: number;
56686
+ updated_at: string;
56687
+ width_mm: number;
56688
+ };
56689
+ Insert: {
56690
+ created_at?: string;
56691
+ customer_key: string;
56692
+ height_mm?: number;
56693
+ updated_at?: string;
56694
+ width_mm?: number;
56695
+ };
56696
+ Update: {
56697
+ created_at?: string;
56698
+ customer_key?: string;
56699
+ height_mm?: number;
56700
+ updated_at?: string;
56701
+ width_mm?: number;
56702
+ };
56703
+ Relationships: [];
56704
+ };
55512
56705
  customer_trade_settings: {
55513
56706
  Row: {
55514
56707
  category: string;
@@ -58839,6 +60032,102 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
58839
60032
  referencedColumns: ["id"];
58840
60033
  }];
58841
60034
  };
60035
+ floriday_api_log: {
60036
+ Row: {
60037
+ action: string | null;
60038
+ caller: string | null;
60039
+ connection_id: string | null;
60040
+ created_at: string;
60041
+ cursor_from: number | null;
60042
+ direction: string;
60043
+ duration_ms: number | null;
60044
+ environment: string | null;
60045
+ error: string | null;
60046
+ floriday_id: string | null;
60047
+ floriday_reference: string | null;
60048
+ http_status: number;
60049
+ id: string;
60050
+ item_count: number | null;
60051
+ kind: string | null;
60052
+ local_id: string | null;
60053
+ local_reference: string | null;
60054
+ method: string;
60055
+ module: string | null;
60056
+ ok: boolean;
60057
+ path: string;
60058
+ request: import("../integrations/supabase/types").Json | null;
60059
+ resource_type: string | null;
60060
+ response: import("../integrations/supabase/types").Json | null;
60061
+ write_log_id: string | null;
60062
+ };
60063
+ Insert: {
60064
+ action?: string | null;
60065
+ caller?: string | null;
60066
+ connection_id?: string | null;
60067
+ created_at?: string;
60068
+ cursor_from?: number | null;
60069
+ direction: string;
60070
+ duration_ms?: number | null;
60071
+ environment?: string | null;
60072
+ error?: string | null;
60073
+ floriday_id?: string | null;
60074
+ floriday_reference?: string | null;
60075
+ http_status?: number;
60076
+ id?: string;
60077
+ item_count?: number | null;
60078
+ kind?: string | null;
60079
+ local_id?: string | null;
60080
+ local_reference?: string | null;
60081
+ method: string;
60082
+ module?: string | null;
60083
+ ok?: boolean;
60084
+ path: string;
60085
+ request?: import("../integrations/supabase/types").Json | null;
60086
+ resource_type?: string | null;
60087
+ response?: import("../integrations/supabase/types").Json | null;
60088
+ write_log_id?: string | null;
60089
+ };
60090
+ Update: {
60091
+ action?: string | null;
60092
+ caller?: string | null;
60093
+ connection_id?: string | null;
60094
+ created_at?: string;
60095
+ cursor_from?: number | null;
60096
+ direction?: string;
60097
+ duration_ms?: number | null;
60098
+ environment?: string | null;
60099
+ error?: string | null;
60100
+ floriday_id?: string | null;
60101
+ floriday_reference?: string | null;
60102
+ http_status?: number;
60103
+ id?: string;
60104
+ item_count?: number | null;
60105
+ kind?: string | null;
60106
+ local_id?: string | null;
60107
+ local_reference?: string | null;
60108
+ method?: string;
60109
+ module?: string | null;
60110
+ ok?: boolean;
60111
+ path?: string;
60112
+ request?: import("../integrations/supabase/types").Json | null;
60113
+ resource_type?: string | null;
60114
+ response?: import("../integrations/supabase/types").Json | null;
60115
+ write_log_id?: string | null;
60116
+ };
60117
+ Relationships: [{
60118
+ foreignKeyName: "floriday_api_log_connection_id_fkey";
60119
+ columns: ["connection_id"];
60120
+ isOneToOne: false;
60121
+ referencedRelation: "floriday_connections";
60122
+ referencedColumns: ["id"];
60123
+ }, {
60124
+ foreignKeyName: "floriday_api_log_write_log_id_fkey";
60125
+ columns: ["write_log_id"];
60126
+ isOneToOne: false;
60127
+ referencedRelation: "floriday_write_log";
60128
+ referencedColumns: ["id"];
60129
+ }];
60130
+ };
58842
60131
  floriday_auction_letters_cache: {
58843
60132
  Row: {
58844
60133
  auction_letter_code: string;
@@ -60039,6 +61328,69 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
60039
61328
  referencedColumns: ["id"];
60040
61329
  }];
60041
61330
  };
61331
+ floriday_link_templates: {
61332
+ Row: {
61333
+ created_at: string;
61334
+ floriday_url_template: string | null;
61335
+ is_active: boolean;
61336
+ label: string;
61337
+ local_url_template: string | null;
61338
+ resource_type: string;
61339
+ updated_at: string;
61340
+ };
61341
+ Insert: {
61342
+ created_at?: string;
61343
+ floriday_url_template?: string | null;
61344
+ is_active?: boolean;
61345
+ label: string;
61346
+ local_url_template?: string | null;
61347
+ resource_type: string;
61348
+ updated_at?: string;
61349
+ };
61350
+ Update: {
61351
+ created_at?: string;
61352
+ floriday_url_template?: string | null;
61353
+ is_active?: boolean;
61354
+ label?: string;
61355
+ local_url_template?: string | null;
61356
+ resource_type?: string;
61357
+ updated_at?: string;
61358
+ };
61359
+ Relationships: [];
61360
+ };
61361
+ floriday_log_retention: {
61362
+ Row: {
61363
+ created_at: string;
61364
+ direction: string | null;
61365
+ id: string;
61366
+ keep_failed_days: number | null;
61367
+ keep_ok_days: number | null;
61368
+ note: string | null;
61369
+ resource_type: string | null;
61370
+ updated_at: string;
61371
+ };
61372
+ Insert: {
61373
+ created_at?: string;
61374
+ direction?: string | null;
61375
+ id?: string;
61376
+ keep_failed_days?: number | null;
61377
+ keep_ok_days?: number | null;
61378
+ note?: string | null;
61379
+ resource_type?: string | null;
61380
+ updated_at?: string;
61381
+ };
61382
+ Update: {
61383
+ created_at?: string;
61384
+ direction?: string | null;
61385
+ id?: string;
61386
+ keep_failed_days?: number | null;
61387
+ keep_ok_days?: number | null;
61388
+ note?: string | null;
61389
+ resource_type?: string | null;
61390
+ updated_at?: string;
61391
+ };
61392
+ Relationships: [];
61393
+ };
60042
61394
  floriday_logistic_labels_cache: {
60043
61395
  Row: {
60044
61396
  byte_size: number | null;
@@ -64164,6 +65516,69 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
64164
65516
  };
64165
65517
  Relationships: [];
64166
65518
  };
65519
+ logistics_slip_shipping_note: {
65520
+ Row: {
65521
+ attempts: number;
65522
+ batch_key: string | null;
65523
+ cart_id: string | null;
65524
+ created_at: string;
65525
+ error: string | null;
65526
+ error_code: string | null;
65527
+ fulfillment_order_id: string | null;
65528
+ id: string;
65529
+ locked_until: string | null;
65530
+ next_attempt_at: string | null;
65531
+ order_id: string | null;
65532
+ order_number: string | null;
65533
+ print_job_id: string | null;
65534
+ printer_id: string | null;
65535
+ retry_class: string | null;
65536
+ slip_job_id: string;
65537
+ status: string;
65538
+ updated_at: string;
65539
+ };
65540
+ Insert: {
65541
+ attempts?: number;
65542
+ batch_key?: string | null;
65543
+ cart_id?: string | null;
65544
+ created_at?: string;
65545
+ error?: string | null;
65546
+ error_code?: string | null;
65547
+ fulfillment_order_id?: string | null;
65548
+ id?: string;
65549
+ locked_until?: string | null;
65550
+ next_attempt_at?: string | null;
65551
+ order_id?: string | null;
65552
+ order_number?: string | null;
65553
+ print_job_id?: string | null;
65554
+ printer_id?: string | null;
65555
+ retry_class?: string | null;
65556
+ slip_job_id: string;
65557
+ status?: string;
65558
+ updated_at?: string;
65559
+ };
65560
+ Update: {
65561
+ attempts?: number;
65562
+ batch_key?: string | null;
65563
+ cart_id?: string | null;
65564
+ created_at?: string;
65565
+ error?: string | null;
65566
+ error_code?: string | null;
65567
+ fulfillment_order_id?: string | null;
65568
+ id?: string;
65569
+ locked_until?: string | null;
65570
+ next_attempt_at?: string | null;
65571
+ order_id?: string | null;
65572
+ order_number?: string | null;
65573
+ print_job_id?: string | null;
65574
+ printer_id?: string | null;
65575
+ retry_class?: string | null;
65576
+ slip_job_id?: string;
65577
+ status?: string;
65578
+ updated_at?: string;
65579
+ };
65580
+ Relationships: [];
65581
+ };
64167
65582
  logistics_staff_planning: {
64168
65583
  Row: {
64169
65584
  created_at: string;
@@ -64515,6 +65930,111 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
64515
65930
  };
64516
65931
  Relationships: [];
64517
65932
  };
65933
+ logistics_trace_events: {
65934
+ Row: {
65935
+ actor: string | null;
65936
+ attempts: number;
65937
+ cart_ref: string | null;
65938
+ created_at: string;
65939
+ db_action: string | null;
65940
+ db_new: import("../integrations/supabase/types").Json | null;
65941
+ db_old: import("../integrations/supabase/types").Json | null;
65942
+ db_record: string | null;
65943
+ db_table: string | null;
65944
+ decision: string | null;
65945
+ duration_ms: number | null;
65946
+ error: string | null;
65947
+ external_action: string | null;
65948
+ external_ref: string | null;
65949
+ external_response: import("../integrations/supabase/types").Json | null;
65950
+ external_status: string | null;
65951
+ external_system: string | null;
65952
+ id: string;
65953
+ input: import("../integrations/supabase/types").Json | null;
65954
+ next_attempt_at: string | null;
65955
+ order_ref: string | null;
65956
+ order_source: string | null;
65957
+ output: import("../integrations/supabase/types").Json | null;
65958
+ phase: string;
65959
+ reads: import("../integrations/supabase/types").Json | null;
65960
+ reason: string | null;
65961
+ rule: string | null;
65962
+ slip_ref: string | null;
65963
+ status: string;
65964
+ step: string;
65965
+ trace_id: string;
65966
+ values_used: import("../integrations/supabase/types").Json | null;
65967
+ };
65968
+ Insert: {
65969
+ actor?: string | null;
65970
+ attempts?: number;
65971
+ cart_ref?: string | null;
65972
+ created_at?: string;
65973
+ db_action?: string | null;
65974
+ db_new?: import("../integrations/supabase/types").Json | null;
65975
+ db_old?: import("../integrations/supabase/types").Json | null;
65976
+ db_record?: string | null;
65977
+ db_table?: string | null;
65978
+ decision?: string | null;
65979
+ duration_ms?: number | null;
65980
+ error?: string | null;
65981
+ external_action?: string | null;
65982
+ external_ref?: string | null;
65983
+ external_response?: import("../integrations/supabase/types").Json | null;
65984
+ external_status?: string | null;
65985
+ external_system?: string | null;
65986
+ id?: string;
65987
+ input?: import("../integrations/supabase/types").Json | null;
65988
+ next_attempt_at?: string | null;
65989
+ order_ref?: string | null;
65990
+ order_source?: string | null;
65991
+ output?: import("../integrations/supabase/types").Json | null;
65992
+ phase: string;
65993
+ reads?: import("../integrations/supabase/types").Json | null;
65994
+ reason?: string | null;
65995
+ rule?: string | null;
65996
+ slip_ref?: string | null;
65997
+ status: string;
65998
+ step: string;
65999
+ trace_id?: string;
66000
+ values_used?: import("../integrations/supabase/types").Json | null;
66001
+ };
66002
+ Update: {
66003
+ actor?: string | null;
66004
+ attempts?: number;
66005
+ cart_ref?: string | null;
66006
+ created_at?: string;
66007
+ db_action?: string | null;
66008
+ db_new?: import("../integrations/supabase/types").Json | null;
66009
+ db_old?: import("../integrations/supabase/types").Json | null;
66010
+ db_record?: string | null;
66011
+ db_table?: string | null;
66012
+ decision?: string | null;
66013
+ duration_ms?: number | null;
66014
+ error?: string | null;
66015
+ external_action?: string | null;
66016
+ external_ref?: string | null;
66017
+ external_response?: import("../integrations/supabase/types").Json | null;
66018
+ external_status?: string | null;
66019
+ external_system?: string | null;
66020
+ id?: string;
66021
+ input?: import("../integrations/supabase/types").Json | null;
66022
+ next_attempt_at?: string | null;
66023
+ order_ref?: string | null;
66024
+ order_source?: string | null;
66025
+ output?: import("../integrations/supabase/types").Json | null;
66026
+ phase?: string;
66027
+ reads?: import("../integrations/supabase/types").Json | null;
66028
+ reason?: string | null;
66029
+ rule?: string | null;
66030
+ slip_ref?: string | null;
66031
+ status?: string;
66032
+ step?: string;
66033
+ trace_id?: string;
66034
+ values_used?: import("../integrations/supabase/types").Json | null;
66035
+ };
66036
+ Relationships: [];
66037
+ };
64518
66038
  logistics_variables: {
64519
66039
  Row: {
64520
66040
  created_at: string;
@@ -75087,6 +76607,15 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
75087
76607
  Args: never;
75088
76608
  Returns: boolean;
75089
76609
  };
76610
+ cancel_open_print_jobs: {
76611
+ Args: {
76612
+ _cutoff: string;
76613
+ };
76614
+ Returns: {
76615
+ extern_job_id: string;
76616
+ id: string;
76617
+ }[];
76618
+ };
75090
76619
  check_offer_product_available_stock: {
75091
76620
  Args: {
75092
76621
  p_campaign_product_id: string;
@@ -76699,6 +78228,12 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
76699
78228
  };
76700
78229
  Returns: import("../integrations/supabase/types").Json;
76701
78230
  };
78231
+ logistics_cart_plan_status_core: {
78232
+ Args: {
78233
+ p_ref: string;
78234
+ };
78235
+ Returns: import("../integrations/supabase/types").Json;
78236
+ };
76702
78237
  logistics_cart_release_reason: {
76703
78238
  Args: {
76704
78239
  p_cart_id: string;
@@ -76761,6 +78296,10 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
76761
78296
  unit_ref: string;
76762
78297
  }[];
76763
78298
  };
78299
+ logistics_carts_per_print: {
78300
+ Args: never;
78301
+ Returns: number;
78302
+ };
76764
78303
  logistics_check_order_allowed: {
76765
78304
  Args: {
76766
78305
  p_lines: import("../integrations/supabase/types").Json;
@@ -77127,6 +78666,12 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
77127
78666
  };
77128
78667
  Returns: import("../integrations/supabase/types").Json;
77129
78668
  };
78669
+ logistics_ensure_shipping_notes: {
78670
+ Args: {
78671
+ p_limit?: number;
78672
+ };
78673
+ Returns: import("../integrations/supabase/types").Json;
78674
+ };
77130
78675
  logistics_fail_task: {
77131
78676
  Args: {
77132
78677
  p_error: string;
@@ -77172,6 +78717,10 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
77172
78717
  isSetofReturn: false;
77173
78718
  };
77174
78719
  };
78720
+ logistics_fix_wrong_shipping_notes: {
78721
+ Args: never;
78722
+ Returns: import("../integrations/supabase/types").Json;
78723
+ };
77175
78724
  logistics_floriday_cart_plan: {
77176
78725
  Args: {
77177
78726
  p_order_id: string;
@@ -77199,6 +78748,10 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
77199
78748
  revision: number;
77200
78749
  }[];
77201
78750
  };
78751
+ logistics_floriday_delivery_note_create_enabled: {
78752
+ Args: never;
78753
+ Returns: boolean;
78754
+ };
77202
78755
  logistics_floriday_finish_push: {
77203
78756
  Args: {
77204
78757
  _error?: string;
@@ -77442,6 +78995,12 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
77442
78995
  };
77443
78996
  Returns: string;
77444
78997
  };
78998
+ logistics_payload_is_floriday: {
78999
+ Args: {
79000
+ _payload: import("../integrations/supabase/types").Json;
79001
+ };
79002
+ Returns: boolean;
79003
+ };
77445
79004
  logistics_pick_agenda: {
77446
79005
  Args: {
77447
79006
  p_from?: string;
@@ -77564,6 +79123,20 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
77564
79123
  Args: never;
77565
79124
  Returns: undefined;
77566
79125
  };
79126
+ logistics_plan_progress: {
79127
+ Args: {
79128
+ p_refs: string[];
79129
+ };
79130
+ Returns: {
79131
+ cart_plan_ready: boolean;
79132
+ cart_plan_reason: string;
79133
+ cart_plan_released: boolean;
79134
+ plan_progress: number;
79135
+ plan_state: string;
79136
+ plan_state_since: string;
79137
+ unit_ref: string;
79138
+ }[];
79139
+ };
77567
79140
  logistics_plan_prune: {
77568
79141
  Args: never;
77569
79142
  Returns: number;
@@ -77585,6 +79158,12 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
77585
79158
  };
77586
79159
  Returns: number;
77587
79160
  };
79161
+ logistics_plan_state_for: {
79162
+ Args: {
79163
+ p_ref: string;
79164
+ };
79165
+ Returns: import("../integrations/supabase/types").Json;
79166
+ };
77588
79167
  logistics_prepare_pick_documents: {
77589
79168
  Args: {
77590
79169
  p_limit?: number;
@@ -77643,6 +79222,12 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
77643
79222
  };
77644
79223
  Returns: import("../integrations/supabase/types").Json;
77645
79224
  };
79225
+ logistics_refresh_plan_state: {
79226
+ Args: {
79227
+ p_limit?: number;
79228
+ };
79229
+ Returns: import("../integrations/supabase/types").Json;
79230
+ };
77646
79231
  logistics_replan_all: {
77647
79232
  Args: {
77648
79233
  p_reason?: string;
@@ -77811,6 +79396,74 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
77811
79396
  };
77812
79397
  Returns: import("../integrations/supabase/types").Json;
77813
79398
  };
79399
+ logistics_shipping_note_job_for_slip: {
79400
+ Args: {
79401
+ _slip_job_id: string;
79402
+ };
79403
+ Returns: string;
79404
+ };
79405
+ logistics_shipping_notes_wake_all: {
79406
+ Args: never;
79407
+ Returns: import("../integrations/supabase/types").Json;
79408
+ };
79409
+ logistics_slip_is_floriday: {
79410
+ Args: {
79411
+ _slip_job_id: string;
79412
+ };
79413
+ Returns: boolean;
79414
+ };
79415
+ logistics_slip_note_claim: {
79416
+ Args: {
79417
+ _lease_seconds?: number;
79418
+ _limit?: number;
79419
+ };
79420
+ Returns: {
79421
+ attempts: number;
79422
+ batch_key: string | null;
79423
+ cart_id: string | null;
79424
+ created_at: string;
79425
+ error: string | null;
79426
+ error_code: string | null;
79427
+ fulfillment_order_id: string | null;
79428
+ id: string;
79429
+ locked_until: string | null;
79430
+ next_attempt_at: string | null;
79431
+ order_id: string | null;
79432
+ order_number: string | null;
79433
+ print_job_id: string | null;
79434
+ printer_id: string | null;
79435
+ retry_class: string | null;
79436
+ slip_job_id: string;
79437
+ status: string;
79438
+ updated_at: string;
79439
+ }[];
79440
+ SetofOptions: {
79441
+ from: "*";
79442
+ to: "logistics_slip_shipping_note";
79443
+ isOneToOne: false;
79444
+ isSetofReturn: true;
79445
+ };
79446
+ };
79447
+ logistics_slip_note_finish: {
79448
+ Args: {
79449
+ _error?: string;
79450
+ _error_code?: string;
79451
+ _fulfillment_order_id?: string;
79452
+ _id: string;
79453
+ _ok: boolean;
79454
+ _print_job_id?: string;
79455
+ _status?: string;
79456
+ };
79457
+ Returns: undefined;
79458
+ };
79459
+ logistics_slip_note_keep_waiting: {
79460
+ Args: {
79461
+ _class?: string;
79462
+ _id: string;
79463
+ _reason: string;
79464
+ };
79465
+ Returns: undefined;
79466
+ };
77814
79467
  logistics_sticker_follows_slip: {
77815
79468
  Args: never;
77816
79469
  Returns: boolean;
@@ -77865,6 +79518,40 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
77865
79518
  name: string;
77866
79519
  }[];
77867
79520
  };
79521
+ logistics_trace: {
79522
+ Args: {
79523
+ p: import("../integrations/supabase/types").Json;
79524
+ };
79525
+ Returns: string;
79526
+ };
79527
+ logistics_trace_batch: {
79528
+ Args: {
79529
+ p: import("../integrations/supabase/types").Json;
79530
+ };
79531
+ Returns: number;
79532
+ };
79533
+ logistics_trace_orders: {
79534
+ Args: {
79535
+ p_limit?: number;
79536
+ p_search?: string;
79537
+ p_since?: string;
79538
+ p_status?: string;
79539
+ };
79540
+ Returns: import("../integrations/supabase/types").Json;
79541
+ };
79542
+ logistics_trace_redact: {
79543
+ Args: {
79544
+ p: import("../integrations/supabase/types").Json;
79545
+ };
79546
+ Returns: import("../integrations/supabase/types").Json;
79547
+ };
79548
+ logistics_trace_timeline: {
79549
+ Args: {
79550
+ p_limit?: number;
79551
+ p_order_ref: string;
79552
+ };
79553
+ Returns: import("../integrations/supabase/types").Json;
79554
+ };
77868
79555
  logistics_upsert_task: {
77869
79556
  Args: {
77870
79557
  p_buffer_ref: string;
@@ -78906,6 +80593,10 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
78906
80593
  };
78907
80594
  Returns: undefined;
78908
80595
  };
80596
+ prune_floriday_api_log: {
80597
+ Args: never;
80598
+ Returns: number;
80599
+ };
78909
80600
  quote_create_from_source: {
78910
80601
  Args: {
78911
80602
  _payload?: import("../integrations/supabase/types").Json;
@@ -79782,6 +81473,10 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
79782
81473
  Args: never;
79783
81474
  Returns: string;
79784
81475
  };
81476
+ voorraad_cleanup_old_rows: {
81477
+ Args: never;
81478
+ Returns: import("../integrations/supabase/types").Json;
81479
+ };
79785
81480
  wake_print_queue: {
79786
81481
  Args: {
79787
81482
  _min_interval_ms?: number;