@flowselections/floriday-voorraad 1.0.42 → 1.0.44

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 (44) hide show
  1. package/dist-lib/components/voorraad/ArtikelWizard.d.ts.map +1 -1
  2. package/dist-lib/components/voorraad/ArtikelWizard.js +15 -11
  3. package/dist-lib/components/voorraad/OrderHistoryCard.js +2 -2
  4. package/dist-lib/components/voorraad/StockMutationHistoryCard.d.ts +7 -0
  5. package/dist-lib/components/voorraad/StockMutationHistoryCard.d.ts.map +1 -0
  6. package/dist-lib/components/voorraad/StockMutationHistoryCard.js +134 -0
  7. package/dist-lib/components/voorraad/StockPushMonitor.d.ts.map +1 -1
  8. package/dist-lib/components/voorraad/StockPushMonitor.js +90 -12
  9. package/dist-lib/components/voorraad/VoorraadPage.d.ts.map +1 -1
  10. package/dist-lib/components/voorraad/VoorraadPage.js +1 -1
  11. package/dist-lib/hooks/useFloriday.d.ts.map +1 -1
  12. package/dist-lib/hooks/useFloriday.js +5 -2
  13. package/dist-lib/hooks/useStockPushJobs.d.ts +2 -0
  14. package/dist-lib/hooks/useStockPushJobs.d.ts.map +1 -1
  15. package/dist-lib/hooks/useStockPushJobs.js +18 -5
  16. package/dist-lib/integrations/supabase/auth-middleware.d.ts +463 -0
  17. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  18. package/dist-lib/integrations/supabase/client.d.ts +463 -0
  19. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  20. package/dist-lib/integrations/supabase/client.server.d.ts +463 -0
  21. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  22. package/dist-lib/integrations/supabase/types.d.ts +466 -0
  23. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  24. package/dist-lib/lib/floricode-required-features.functions.d.ts +463 -0
  25. package/dist-lib/lib/floricode-required-features.functions.d.ts.map +1 -1
  26. package/dist-lib/lib/floriday-2026v1.server.d.ts.map +1 -1
  27. package/dist-lib/lib/floriday-2026v1.server.js +6 -0
  28. package/dist-lib/lib/floriday-customer-offer.functions.d.ts +463 -0
  29. package/dist-lib/lib/floriday-customer-offer.functions.d.ts.map +1 -1
  30. package/dist-lib/lib/floriday-env.functions.d.ts +926 -0
  31. package/dist-lib/lib/floriday-env.functions.d.ts.map +1 -1
  32. package/dist-lib/lib/floriday-gateway.functions.d.ts +2778 -0
  33. package/dist-lib/lib/floriday-gateway.functions.d.ts.map +1 -1
  34. package/dist-lib/lib/floriday-vbn-required.functions.d.ts +926 -0
  35. package/dist-lib/lib/floriday-vbn-required.functions.d.ts.map +1 -1
  36. package/dist-lib/lib/floriday-warehouse.functions.d.ts +1389 -0
  37. package/dist-lib/lib/floriday-warehouse.functions.d.ts.map +1 -1
  38. package/dist-lib/lib/floriday-writes.functions.d.ts +926 -0
  39. package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
  40. package/dist-lib/lib/inventory-settings.functions.d.ts +926 -0
  41. package/dist-lib/lib/inventory-settings.functions.d.ts.map +1 -1
  42. package/dist-lib/lib/stock-sync.functions.d.ts +926 -0
  43. package/dist-lib/lib/stock-sync.functions.d.ts.map +1 -1
  44. package/package.json +1 -1
@@ -2224,6 +2224,45 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
2224
2224
  };
2225
2225
  Relationships: [];
2226
2226
  };
2227
+ customer_product_stickers: {
2228
+ Row: {
2229
+ created_at: string;
2230
+ customer_key: string;
2231
+ file_name: string;
2232
+ file_path: string;
2233
+ file_size: number | null;
2234
+ id: string;
2235
+ mime_type: string | null;
2236
+ trade_item_key: string;
2237
+ updated_at: string;
2238
+ uploaded_by: string | null;
2239
+ };
2240
+ Insert: {
2241
+ created_at?: string;
2242
+ customer_key: string;
2243
+ file_name: string;
2244
+ file_path: string;
2245
+ file_size?: number | null;
2246
+ id?: string;
2247
+ mime_type?: string | null;
2248
+ trade_item_key: string;
2249
+ updated_at?: string;
2250
+ uploaded_by?: string | null;
2251
+ };
2252
+ Update: {
2253
+ created_at?: string;
2254
+ customer_key?: string;
2255
+ file_name?: string;
2256
+ file_path?: string;
2257
+ file_size?: number | null;
2258
+ id?: string;
2259
+ mime_type?: string | null;
2260
+ trade_item_key?: string;
2261
+ updated_at?: string;
2262
+ uploaded_by?: string | null;
2263
+ };
2264
+ Relationships: [];
2265
+ };
2227
2266
  customer_selected_assortment: {
2228
2267
  Row: {
2229
2268
  article_number: string | null;
@@ -2272,6 +2311,30 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
2272
2311
  referencedColumns: ["id"];
2273
2312
  }];
2274
2313
  };
2314
+ customer_sticker_settings: {
2315
+ Row: {
2316
+ created_at: string;
2317
+ customer_key: string;
2318
+ height_mm: number;
2319
+ updated_at: string;
2320
+ width_mm: number;
2321
+ };
2322
+ Insert: {
2323
+ created_at?: string;
2324
+ customer_key: string;
2325
+ height_mm?: number;
2326
+ updated_at?: string;
2327
+ width_mm?: number;
2328
+ };
2329
+ Update: {
2330
+ created_at?: string;
2331
+ customer_key?: string;
2332
+ height_mm?: number;
2333
+ updated_at?: string;
2334
+ width_mm?: number;
2335
+ };
2336
+ Relationships: [];
2337
+ };
2275
2338
  customer_trade_settings: {
2276
2339
  Row: {
2277
2340
  category: string;
@@ -5602,6 +5665,102 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
5602
5665
  referencedColumns: ["id"];
5603
5666
  }];
5604
5667
  };
5668
+ floriday_api_log: {
5669
+ Row: {
5670
+ action: string | null;
5671
+ caller: string | null;
5672
+ connection_id: string | null;
5673
+ created_at: string;
5674
+ cursor_from: number | null;
5675
+ direction: string;
5676
+ duration_ms: number | null;
5677
+ environment: string | null;
5678
+ error: string | null;
5679
+ floriday_id: string | null;
5680
+ floriday_reference: string | null;
5681
+ http_status: number;
5682
+ id: string;
5683
+ item_count: number | null;
5684
+ kind: string | null;
5685
+ local_id: string | null;
5686
+ local_reference: string | null;
5687
+ method: string;
5688
+ module: string | null;
5689
+ ok: boolean;
5690
+ path: string;
5691
+ request: import("../integrations/supabase/types").Json | null;
5692
+ resource_type: string | null;
5693
+ response: import("../integrations/supabase/types").Json | null;
5694
+ write_log_id: string | null;
5695
+ };
5696
+ Insert: {
5697
+ action?: string | null;
5698
+ caller?: string | null;
5699
+ connection_id?: string | null;
5700
+ created_at?: string;
5701
+ cursor_from?: number | null;
5702
+ direction: string;
5703
+ duration_ms?: number | null;
5704
+ environment?: string | null;
5705
+ error?: string | null;
5706
+ floriday_id?: string | null;
5707
+ floriday_reference?: string | null;
5708
+ http_status?: number;
5709
+ id?: string;
5710
+ item_count?: number | null;
5711
+ kind?: string | null;
5712
+ local_id?: string | null;
5713
+ local_reference?: string | null;
5714
+ method: string;
5715
+ module?: string | null;
5716
+ ok?: boolean;
5717
+ path: string;
5718
+ request?: import("../integrations/supabase/types").Json | null;
5719
+ resource_type?: string | null;
5720
+ response?: import("../integrations/supabase/types").Json | null;
5721
+ write_log_id?: string | null;
5722
+ };
5723
+ Update: {
5724
+ action?: string | null;
5725
+ caller?: string | null;
5726
+ connection_id?: string | null;
5727
+ created_at?: string;
5728
+ cursor_from?: number | null;
5729
+ direction?: string;
5730
+ duration_ms?: number | null;
5731
+ environment?: string | null;
5732
+ error?: string | null;
5733
+ floriday_id?: string | null;
5734
+ floriday_reference?: string | null;
5735
+ http_status?: number;
5736
+ id?: string;
5737
+ item_count?: number | null;
5738
+ kind?: string | null;
5739
+ local_id?: string | null;
5740
+ local_reference?: string | null;
5741
+ method?: string;
5742
+ module?: string | null;
5743
+ ok?: boolean;
5744
+ path?: string;
5745
+ request?: import("../integrations/supabase/types").Json | null;
5746
+ resource_type?: string | null;
5747
+ response?: import("../integrations/supabase/types").Json | null;
5748
+ write_log_id?: string | null;
5749
+ };
5750
+ Relationships: [{
5751
+ foreignKeyName: "floriday_api_log_connection_id_fkey";
5752
+ columns: ["connection_id"];
5753
+ isOneToOne: false;
5754
+ referencedRelation: "floriday_connections";
5755
+ referencedColumns: ["id"];
5756
+ }, {
5757
+ foreignKeyName: "floriday_api_log_write_log_id_fkey";
5758
+ columns: ["write_log_id"];
5759
+ isOneToOne: false;
5760
+ referencedRelation: "floriday_write_log";
5761
+ referencedColumns: ["id"];
5762
+ }];
5763
+ };
5605
5764
  floriday_auction_letters_cache: {
5606
5765
  Row: {
5607
5766
  auction_letter_code: string;
@@ -6802,6 +6961,69 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
6802
6961
  referencedColumns: ["id"];
6803
6962
  }];
6804
6963
  };
6964
+ floriday_link_templates: {
6965
+ Row: {
6966
+ created_at: string;
6967
+ floriday_url_template: string | null;
6968
+ is_active: boolean;
6969
+ label: string;
6970
+ local_url_template: string | null;
6971
+ resource_type: string;
6972
+ updated_at: string;
6973
+ };
6974
+ Insert: {
6975
+ created_at?: string;
6976
+ floriday_url_template?: string | null;
6977
+ is_active?: boolean;
6978
+ label: string;
6979
+ local_url_template?: string | null;
6980
+ resource_type: string;
6981
+ updated_at?: string;
6982
+ };
6983
+ Update: {
6984
+ created_at?: string;
6985
+ floriday_url_template?: string | null;
6986
+ is_active?: boolean;
6987
+ label?: string;
6988
+ local_url_template?: string | null;
6989
+ resource_type?: string;
6990
+ updated_at?: string;
6991
+ };
6992
+ Relationships: [];
6993
+ };
6994
+ floriday_log_retention: {
6995
+ Row: {
6996
+ created_at: string;
6997
+ direction: string | null;
6998
+ id: string;
6999
+ keep_failed_days: number | null;
7000
+ keep_ok_days: number | null;
7001
+ note: string | null;
7002
+ resource_type: string | null;
7003
+ updated_at: string;
7004
+ };
7005
+ Insert: {
7006
+ created_at?: string;
7007
+ direction?: string | null;
7008
+ id?: string;
7009
+ keep_failed_days?: number | null;
7010
+ keep_ok_days?: number | null;
7011
+ note?: string | null;
7012
+ resource_type?: string | null;
7013
+ updated_at?: string;
7014
+ };
7015
+ Update: {
7016
+ created_at?: string;
7017
+ direction?: string | null;
7018
+ id?: string;
7019
+ keep_failed_days?: number | null;
7020
+ keep_ok_days?: number | null;
7021
+ note?: string | null;
7022
+ resource_type?: string | null;
7023
+ updated_at?: string;
7024
+ };
7025
+ Relationships: [];
7026
+ };
6805
7027
  floriday_logistic_labels_cache: {
6806
7028
  Row: {
6807
7029
  byte_size: number | null;
@@ -11341,6 +11563,111 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
11341
11563
  };
11342
11564
  Relationships: [];
11343
11565
  };
11566
+ logistics_trace_events: {
11567
+ Row: {
11568
+ actor: string | null;
11569
+ attempts: number;
11570
+ cart_ref: string | null;
11571
+ created_at: string;
11572
+ db_action: string | null;
11573
+ db_new: import("../integrations/supabase/types").Json | null;
11574
+ db_old: import("../integrations/supabase/types").Json | null;
11575
+ db_record: string | null;
11576
+ db_table: string | null;
11577
+ decision: string | null;
11578
+ duration_ms: number | null;
11579
+ error: string | null;
11580
+ external_action: string | null;
11581
+ external_ref: string | null;
11582
+ external_response: import("../integrations/supabase/types").Json | null;
11583
+ external_status: string | null;
11584
+ external_system: string | null;
11585
+ id: string;
11586
+ input: import("../integrations/supabase/types").Json | null;
11587
+ next_attempt_at: string | null;
11588
+ order_ref: string | null;
11589
+ order_source: string | null;
11590
+ output: import("../integrations/supabase/types").Json | null;
11591
+ phase: string;
11592
+ reads: import("../integrations/supabase/types").Json | null;
11593
+ reason: string | null;
11594
+ rule: string | null;
11595
+ slip_ref: string | null;
11596
+ status: string;
11597
+ step: string;
11598
+ trace_id: string;
11599
+ values_used: import("../integrations/supabase/types").Json | null;
11600
+ };
11601
+ Insert: {
11602
+ actor?: string | null;
11603
+ attempts?: number;
11604
+ cart_ref?: string | null;
11605
+ created_at?: string;
11606
+ db_action?: string | null;
11607
+ db_new?: import("../integrations/supabase/types").Json | null;
11608
+ db_old?: import("../integrations/supabase/types").Json | null;
11609
+ db_record?: string | null;
11610
+ db_table?: string | null;
11611
+ decision?: string | null;
11612
+ duration_ms?: number | null;
11613
+ error?: string | null;
11614
+ external_action?: string | null;
11615
+ external_ref?: string | null;
11616
+ external_response?: import("../integrations/supabase/types").Json | null;
11617
+ external_status?: string | null;
11618
+ external_system?: string | null;
11619
+ id?: string;
11620
+ input?: import("../integrations/supabase/types").Json | null;
11621
+ next_attempt_at?: string | null;
11622
+ order_ref?: string | null;
11623
+ order_source?: string | null;
11624
+ output?: import("../integrations/supabase/types").Json | null;
11625
+ phase: string;
11626
+ reads?: import("../integrations/supabase/types").Json | null;
11627
+ reason?: string | null;
11628
+ rule?: string | null;
11629
+ slip_ref?: string | null;
11630
+ status: string;
11631
+ step: string;
11632
+ trace_id?: string;
11633
+ values_used?: import("../integrations/supabase/types").Json | null;
11634
+ };
11635
+ Update: {
11636
+ actor?: string | null;
11637
+ attempts?: number;
11638
+ cart_ref?: string | null;
11639
+ created_at?: string;
11640
+ db_action?: string | null;
11641
+ db_new?: import("../integrations/supabase/types").Json | null;
11642
+ db_old?: import("../integrations/supabase/types").Json | null;
11643
+ db_record?: string | null;
11644
+ db_table?: string | null;
11645
+ decision?: string | null;
11646
+ duration_ms?: number | null;
11647
+ error?: string | null;
11648
+ external_action?: string | null;
11649
+ external_ref?: string | null;
11650
+ external_response?: import("../integrations/supabase/types").Json | null;
11651
+ external_status?: string | null;
11652
+ external_system?: string | null;
11653
+ id?: string;
11654
+ input?: import("../integrations/supabase/types").Json | null;
11655
+ next_attempt_at?: string | null;
11656
+ order_ref?: string | null;
11657
+ order_source?: string | null;
11658
+ output?: import("../integrations/supabase/types").Json | null;
11659
+ phase?: string;
11660
+ reads?: import("../integrations/supabase/types").Json | null;
11661
+ reason?: string | null;
11662
+ rule?: string | null;
11663
+ slip_ref?: string | null;
11664
+ status?: string;
11665
+ step?: string;
11666
+ trace_id?: string;
11667
+ values_used?: import("../integrations/supabase/types").Json | null;
11668
+ };
11669
+ Relationships: [];
11670
+ };
11344
11671
  logistics_variables: {
11345
11672
  Row: {
11346
11673
  created_at: string;
@@ -21913,6 +22240,15 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
21913
22240
  Args: never;
21914
22241
  Returns: boolean;
21915
22242
  };
22243
+ cancel_open_print_jobs: {
22244
+ Args: {
22245
+ _cutoff: string;
22246
+ };
22247
+ Returns: {
22248
+ extern_job_id: string;
22249
+ id: string;
22250
+ }[];
22251
+ };
21916
22252
  check_offer_product_available_stock: {
21917
22253
  Args: {
21918
22254
  p_campaign_product_id: string;
@@ -23525,6 +23861,12 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
23525
23861
  };
23526
23862
  Returns: import("../integrations/supabase/types").Json;
23527
23863
  };
23864
+ logistics_cart_plan_status_core: {
23865
+ Args: {
23866
+ p_ref: string;
23867
+ };
23868
+ Returns: import("../integrations/supabase/types").Json;
23869
+ };
23528
23870
  logistics_cart_release_reason: {
23529
23871
  Args: {
23530
23872
  p_cart_id: string;
@@ -23957,6 +24299,12 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
23957
24299
  };
23958
24300
  Returns: import("../integrations/supabase/types").Json;
23959
24301
  };
24302
+ logistics_ensure_shipping_notes: {
24303
+ Args: {
24304
+ p_limit?: number;
24305
+ };
24306
+ Returns: import("../integrations/supabase/types").Json;
24307
+ };
23960
24308
  logistics_fail_task: {
23961
24309
  Args: {
23962
24310
  p_error: string;
@@ -24002,6 +24350,10 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
24002
24350
  isSetofReturn: false;
24003
24351
  };
24004
24352
  };
24353
+ logistics_fix_wrong_shipping_notes: {
24354
+ Args: never;
24355
+ Returns: import("../integrations/supabase/types").Json;
24356
+ };
24005
24357
  logistics_floriday_cart_plan: {
24006
24358
  Args: {
24007
24359
  p_order_id: string;
@@ -24029,6 +24381,10 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
24029
24381
  revision: number;
24030
24382
  }[];
24031
24383
  };
24384
+ logistics_floriday_delivery_note_create_enabled: {
24385
+ Args: never;
24386
+ Returns: boolean;
24387
+ };
24032
24388
  logistics_floriday_finish_push: {
24033
24389
  Args: {
24034
24390
  _error?: string;
@@ -24272,6 +24628,12 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
24272
24628
  };
24273
24629
  Returns: string;
24274
24630
  };
24631
+ logistics_payload_is_floriday: {
24632
+ Args: {
24633
+ _payload: import("../integrations/supabase/types").Json;
24634
+ };
24635
+ Returns: boolean;
24636
+ };
24275
24637
  logistics_pick_agenda: {
24276
24638
  Args: {
24277
24639
  p_from?: string;
@@ -24394,6 +24756,20 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
24394
24756
  Args: never;
24395
24757
  Returns: undefined;
24396
24758
  };
24759
+ logistics_plan_progress: {
24760
+ Args: {
24761
+ p_refs: string[];
24762
+ };
24763
+ Returns: {
24764
+ cart_plan_ready: boolean;
24765
+ cart_plan_reason: string;
24766
+ cart_plan_released: boolean;
24767
+ plan_progress: number;
24768
+ plan_state: string;
24769
+ plan_state_since: string;
24770
+ unit_ref: string;
24771
+ }[];
24772
+ };
24397
24773
  logistics_plan_prune: {
24398
24774
  Args: never;
24399
24775
  Returns: number;
@@ -24415,6 +24791,12 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
24415
24791
  };
24416
24792
  Returns: number;
24417
24793
  };
24794
+ logistics_plan_state_for: {
24795
+ Args: {
24796
+ p_ref: string;
24797
+ };
24798
+ Returns: import("../integrations/supabase/types").Json;
24799
+ };
24418
24800
  logistics_prepare_pick_documents: {
24419
24801
  Args: {
24420
24802
  p_limit?: number;
@@ -24473,6 +24855,12 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
24473
24855
  };
24474
24856
  Returns: import("../integrations/supabase/types").Json;
24475
24857
  };
24858
+ logistics_refresh_plan_state: {
24859
+ Args: {
24860
+ p_limit?: number;
24861
+ };
24862
+ Returns: import("../integrations/supabase/types").Json;
24863
+ };
24476
24864
  logistics_replan_all: {
24477
24865
  Args: {
24478
24866
  p_reason?: string;
@@ -24647,6 +25035,16 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
24647
25035
  };
24648
25036
  Returns: string;
24649
25037
  };
25038
+ logistics_shipping_notes_wake_all: {
25039
+ Args: never;
25040
+ Returns: import("../integrations/supabase/types").Json;
25041
+ };
25042
+ logistics_slip_is_floriday: {
25043
+ Args: {
25044
+ _slip_job_id: string;
25045
+ };
25046
+ Returns: boolean;
25047
+ };
24650
25048
  logistics_slip_note_claim: {
24651
25049
  Args: {
24652
25050
  _lease_seconds?: number;
@@ -24753,6 +25151,63 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
24753
25151
  name: string;
24754
25152
  }[];
24755
25153
  };
25154
+ logistics_trace: {
25155
+ Args: {
25156
+ p: import("../integrations/supabase/types").Json;
25157
+ };
25158
+ Returns: string;
25159
+ };
25160
+ logistics_trace_all_orders: {
25161
+ Args: {
25162
+ p_limit?: number;
25163
+ p_search?: string;
25164
+ };
25165
+ Returns: import("../integrations/supabase/types").Json;
25166
+ };
25167
+ logistics_trace_batch: {
25168
+ Args: {
25169
+ p: import("../integrations/supabase/types").Json;
25170
+ };
25171
+ Returns: number;
25172
+ };
25173
+ logistics_trace_orders: {
25174
+ Args: {
25175
+ p_limit?: number;
25176
+ p_search?: string;
25177
+ p_since?: string;
25178
+ p_status?: string;
25179
+ };
25180
+ Returns: import("../integrations/supabase/types").Json;
25181
+ };
25182
+ logistics_trace_redact: {
25183
+ Args: {
25184
+ p: import("../integrations/supabase/types").Json;
25185
+ };
25186
+ Returns: import("../integrations/supabase/types").Json;
25187
+ };
25188
+ logistics_trace_timeline: {
25189
+ Args: {
25190
+ p_limit?: number;
25191
+ p_order_ref: string;
25192
+ };
25193
+ Returns: import("../integrations/supabase/types").Json;
25194
+ };
25195
+ logistics_trace_version_events: {
25196
+ Args: {
25197
+ p_from?: string;
25198
+ p_limit?: number;
25199
+ p_order_ref: string;
25200
+ p_to?: string;
25201
+ p_version_id: string;
25202
+ };
25203
+ Returns: import("../integrations/supabase/types").Json;
25204
+ };
25205
+ logistics_trace_versions: {
25206
+ Args: {
25207
+ p_order_ref: string;
25208
+ };
25209
+ Returns: import("../integrations/supabase/types").Json;
25210
+ };
24756
25211
  logistics_upsert_task: {
24757
25212
  Args: {
24758
25213
  p_buffer_ref: string;
@@ -25794,6 +26249,10 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
25794
26249
  };
25795
26250
  Returns: undefined;
25796
26251
  };
26252
+ prune_floriday_api_log: {
26253
+ Args: never;
26254
+ Returns: number;
26255
+ };
25797
26256
  quote_create_from_source: {
25798
26257
  Args: {
25799
26258
  _payload?: import("../integrations/supabase/types").Json;
@@ -26670,6 +27129,10 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
26670
27129
  Args: never;
26671
27130
  Returns: string;
26672
27131
  };
27132
+ voorraad_cleanup_old_rows: {
27133
+ Args: never;
27134
+ Returns: import("../integrations/supabase/types").Json;
27135
+ };
26673
27136
  wake_print_queue: {
26674
27137
  Args: {
26675
27138
  _min_interval_ms?: number;
@@ -28972,6 +29435,45 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
28972
29435
  };
28973
29436
  Relationships: [];
28974
29437
  };
29438
+ customer_product_stickers: {
29439
+ Row: {
29440
+ created_at: string;
29441
+ customer_key: string;
29442
+ file_name: string;
29443
+ file_path: string;
29444
+ file_size: number | null;
29445
+ id: string;
29446
+ mime_type: string | null;
29447
+ trade_item_key: string;
29448
+ updated_at: string;
29449
+ uploaded_by: string | null;
29450
+ };
29451
+ Insert: {
29452
+ created_at?: string;
29453
+ customer_key: string;
29454
+ file_name: string;
29455
+ file_path: string;
29456
+ file_size?: number | null;
29457
+ id?: string;
29458
+ mime_type?: string | null;
29459
+ trade_item_key: string;
29460
+ updated_at?: string;
29461
+ uploaded_by?: string | null;
29462
+ };
29463
+ Update: {
29464
+ created_at?: string;
29465
+ customer_key?: string;
29466
+ file_name?: string;
29467
+ file_path?: string;
29468
+ file_size?: number | null;
29469
+ id?: string;
29470
+ mime_type?: string | null;
29471
+ trade_item_key?: string;
29472
+ updated_at?: string;
29473
+ uploaded_by?: string | null;
29474
+ };
29475
+ Relationships: [];
29476
+ };
28975
29477
  customer_selected_assortment: {
28976
29478
  Row: {
28977
29479
  article_number: string | null;
@@ -29020,6 +29522,30 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
29020
29522
  referencedColumns: ["id"];
29021
29523
  }];
29022
29524
  };
29525
+ customer_sticker_settings: {
29526
+ Row: {
29527
+ created_at: string;
29528
+ customer_key: string;
29529
+ height_mm: number;
29530
+ updated_at: string;
29531
+ width_mm: number;
29532
+ };
29533
+ Insert: {
29534
+ created_at?: string;
29535
+ customer_key: string;
29536
+ height_mm?: number;
29537
+ updated_at?: string;
29538
+ width_mm?: number;
29539
+ };
29540
+ Update: {
29541
+ created_at?: string;
29542
+ customer_key?: string;
29543
+ height_mm?: number;
29544
+ updated_at?: string;
29545
+ width_mm?: number;
29546
+ };
29547
+ Relationships: [];
29548
+ };
29023
29549
  customer_trade_settings: {
29024
29550
  Row: {
29025
29551
  category: string;
@@ -32350,6 +32876,102 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
32350
32876
  referencedColumns: ["id"];
32351
32877
  }];
32352
32878
  };
32879
+ floriday_api_log: {
32880
+ Row: {
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
+ Insert: {
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
+ Update: {
32935
+ action?: string | null;
32936
+ caller?: string | null;
32937
+ connection_id?: string | null;
32938
+ created_at?: string;
32939
+ cursor_from?: number | null;
32940
+ direction?: string;
32941
+ duration_ms?: number | null;
32942
+ environment?: string | null;
32943
+ error?: string | null;
32944
+ floriday_id?: string | null;
32945
+ floriday_reference?: string | null;
32946
+ http_status?: number;
32947
+ id?: string;
32948
+ item_count?: number | null;
32949
+ kind?: string | null;
32950
+ local_id?: string | null;
32951
+ local_reference?: string | null;
32952
+ method?: string;
32953
+ module?: string | null;
32954
+ ok?: boolean;
32955
+ path?: string;
32956
+ request?: import("../integrations/supabase/types").Json | null;
32957
+ resource_type?: string | null;
32958
+ response?: import("../integrations/supabase/types").Json | null;
32959
+ write_log_id?: string | null;
32960
+ };
32961
+ Relationships: [{
32962
+ foreignKeyName: "floriday_api_log_connection_id_fkey";
32963
+ columns: ["connection_id"];
32964
+ isOneToOne: false;
32965
+ referencedRelation: "floriday_connections";
32966
+ referencedColumns: ["id"];
32967
+ }, {
32968
+ foreignKeyName: "floriday_api_log_write_log_id_fkey";
32969
+ columns: ["write_log_id"];
32970
+ isOneToOne: false;
32971
+ referencedRelation: "floriday_write_log";
32972
+ referencedColumns: ["id"];
32973
+ }];
32974
+ };
32353
32975
  floriday_auction_letters_cache: {
32354
32976
  Row: {
32355
32977
  auction_letter_code: string;
@@ -33550,6 +34172,69 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
33550
34172
  referencedColumns: ["id"];
33551
34173
  }];
33552
34174
  };
34175
+ floriday_link_templates: {
34176
+ Row: {
34177
+ created_at: string;
34178
+ floriday_url_template: string | null;
34179
+ is_active: boolean;
34180
+ label: string;
34181
+ local_url_template: string | null;
34182
+ resource_type: string;
34183
+ updated_at: string;
34184
+ };
34185
+ Insert: {
34186
+ created_at?: string;
34187
+ floriday_url_template?: string | null;
34188
+ is_active?: boolean;
34189
+ label: string;
34190
+ local_url_template?: string | null;
34191
+ resource_type: string;
34192
+ updated_at?: string;
34193
+ };
34194
+ Update: {
34195
+ created_at?: string;
34196
+ floriday_url_template?: string | null;
34197
+ is_active?: boolean;
34198
+ label?: string;
34199
+ local_url_template?: string | null;
34200
+ resource_type?: string;
34201
+ updated_at?: string;
34202
+ };
34203
+ Relationships: [];
34204
+ };
34205
+ floriday_log_retention: {
34206
+ Row: {
34207
+ created_at: string;
34208
+ direction: string | null;
34209
+ id: string;
34210
+ keep_failed_days: number | null;
34211
+ keep_ok_days: number | null;
34212
+ note: string | null;
34213
+ resource_type: string | null;
34214
+ updated_at: string;
34215
+ };
34216
+ Insert: {
34217
+ created_at?: string;
34218
+ direction?: string | null;
34219
+ id?: string;
34220
+ keep_failed_days?: number | null;
34221
+ keep_ok_days?: number | null;
34222
+ note?: string | null;
34223
+ resource_type?: string | null;
34224
+ updated_at?: string;
34225
+ };
34226
+ Update: {
34227
+ created_at?: string;
34228
+ direction?: string | null;
34229
+ id?: string;
34230
+ keep_failed_days?: number | null;
34231
+ keep_ok_days?: number | null;
34232
+ note?: string | null;
34233
+ resource_type?: string | null;
34234
+ updated_at?: string;
34235
+ };
34236
+ Relationships: [];
34237
+ };
33553
34238
  floriday_logistic_labels_cache: {
33554
34239
  Row: {
33555
34240
  byte_size: number | null;
@@ -38089,6 +38774,111 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
38089
38774
  };
38090
38775
  Relationships: [];
38091
38776
  };
38777
+ logistics_trace_events: {
38778
+ Row: {
38779
+ actor: string | null;
38780
+ attempts: number;
38781
+ cart_ref: string | null;
38782
+ created_at: string;
38783
+ db_action: string | null;
38784
+ db_new: import("../integrations/supabase/types").Json | null;
38785
+ db_old: import("../integrations/supabase/types").Json | null;
38786
+ db_record: string | null;
38787
+ db_table: string | null;
38788
+ decision: string | null;
38789
+ duration_ms: number | null;
38790
+ error: string | null;
38791
+ external_action: string | null;
38792
+ external_ref: string | null;
38793
+ external_response: import("../integrations/supabase/types").Json | null;
38794
+ external_status: string | null;
38795
+ external_system: string | null;
38796
+ id: string;
38797
+ input: import("../integrations/supabase/types").Json | null;
38798
+ next_attempt_at: string | null;
38799
+ order_ref: string | null;
38800
+ order_source: string | null;
38801
+ output: import("../integrations/supabase/types").Json | null;
38802
+ phase: string;
38803
+ reads: import("../integrations/supabase/types").Json | null;
38804
+ reason: string | null;
38805
+ rule: string | null;
38806
+ slip_ref: string | null;
38807
+ status: string;
38808
+ step: string;
38809
+ trace_id: string;
38810
+ values_used: import("../integrations/supabase/types").Json | null;
38811
+ };
38812
+ Insert: {
38813
+ actor?: string | null;
38814
+ attempts?: number;
38815
+ cart_ref?: string | null;
38816
+ created_at?: string;
38817
+ db_action?: string | null;
38818
+ db_new?: import("../integrations/supabase/types").Json | null;
38819
+ db_old?: import("../integrations/supabase/types").Json | null;
38820
+ db_record?: string | null;
38821
+ db_table?: string | null;
38822
+ decision?: string | null;
38823
+ duration_ms?: number | null;
38824
+ error?: string | null;
38825
+ external_action?: string | null;
38826
+ external_ref?: string | null;
38827
+ external_response?: import("../integrations/supabase/types").Json | null;
38828
+ external_status?: string | null;
38829
+ external_system?: string | null;
38830
+ id?: string;
38831
+ input?: import("../integrations/supabase/types").Json | null;
38832
+ next_attempt_at?: string | null;
38833
+ order_ref?: string | null;
38834
+ order_source?: string | null;
38835
+ output?: import("../integrations/supabase/types").Json | null;
38836
+ phase: string;
38837
+ reads?: import("../integrations/supabase/types").Json | null;
38838
+ reason?: string | null;
38839
+ rule?: string | null;
38840
+ slip_ref?: string | null;
38841
+ status: string;
38842
+ step: string;
38843
+ trace_id?: string;
38844
+ values_used?: import("../integrations/supabase/types").Json | null;
38845
+ };
38846
+ Update: {
38847
+ actor?: string | null;
38848
+ attempts?: number;
38849
+ cart_ref?: string | null;
38850
+ created_at?: string;
38851
+ db_action?: string | null;
38852
+ db_new?: import("../integrations/supabase/types").Json | null;
38853
+ db_old?: import("../integrations/supabase/types").Json | null;
38854
+ db_record?: string | null;
38855
+ db_table?: string | null;
38856
+ decision?: string | null;
38857
+ duration_ms?: number | null;
38858
+ error?: string | null;
38859
+ external_action?: string | null;
38860
+ external_ref?: string | null;
38861
+ external_response?: import("../integrations/supabase/types").Json | null;
38862
+ external_status?: string | null;
38863
+ external_system?: string | null;
38864
+ id?: string;
38865
+ input?: import("../integrations/supabase/types").Json | null;
38866
+ next_attempt_at?: string | null;
38867
+ order_ref?: string | null;
38868
+ order_source?: string | null;
38869
+ output?: import("../integrations/supabase/types").Json | null;
38870
+ phase?: string;
38871
+ reads?: import("../integrations/supabase/types").Json | null;
38872
+ reason?: string | null;
38873
+ rule?: string | null;
38874
+ slip_ref?: string | null;
38875
+ status?: string;
38876
+ step?: string;
38877
+ trace_id?: string;
38878
+ values_used?: import("../integrations/supabase/types").Json | null;
38879
+ };
38880
+ Relationships: [];
38881
+ };
38092
38882
  logistics_variables: {
38093
38883
  Row: {
38094
38884
  created_at: string;
@@ -48661,6 +49451,15 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
48661
49451
  Args: never;
48662
49452
  Returns: boolean;
48663
49453
  };
49454
+ cancel_open_print_jobs: {
49455
+ Args: {
49456
+ _cutoff: string;
49457
+ };
49458
+ Returns: {
49459
+ extern_job_id: string;
49460
+ id: string;
49461
+ }[];
49462
+ };
48664
49463
  check_offer_product_available_stock: {
48665
49464
  Args: {
48666
49465
  p_campaign_product_id: string;
@@ -50273,6 +51072,12 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
50273
51072
  };
50274
51073
  Returns: import("../integrations/supabase/types").Json;
50275
51074
  };
51075
+ logistics_cart_plan_status_core: {
51076
+ Args: {
51077
+ p_ref: string;
51078
+ };
51079
+ Returns: import("../integrations/supabase/types").Json;
51080
+ };
50276
51081
  logistics_cart_release_reason: {
50277
51082
  Args: {
50278
51083
  p_cart_id: string;
@@ -50705,6 +51510,12 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
50705
51510
  };
50706
51511
  Returns: import("../integrations/supabase/types").Json;
50707
51512
  };
51513
+ logistics_ensure_shipping_notes: {
51514
+ Args: {
51515
+ p_limit?: number;
51516
+ };
51517
+ Returns: import("../integrations/supabase/types").Json;
51518
+ };
50708
51519
  logistics_fail_task: {
50709
51520
  Args: {
50710
51521
  p_error: string;
@@ -50750,6 +51561,10 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
50750
51561
  isSetofReturn: false;
50751
51562
  };
50752
51563
  };
51564
+ logistics_fix_wrong_shipping_notes: {
51565
+ Args: never;
51566
+ Returns: import("../integrations/supabase/types").Json;
51567
+ };
50753
51568
  logistics_floriday_cart_plan: {
50754
51569
  Args: {
50755
51570
  p_order_id: string;
@@ -50777,6 +51592,10 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
50777
51592
  revision: number;
50778
51593
  }[];
50779
51594
  };
51595
+ logistics_floriday_delivery_note_create_enabled: {
51596
+ Args: never;
51597
+ Returns: boolean;
51598
+ };
50780
51599
  logistics_floriday_finish_push: {
50781
51600
  Args: {
50782
51601
  _error?: string;
@@ -51020,6 +51839,12 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
51020
51839
  };
51021
51840
  Returns: string;
51022
51841
  };
51842
+ logistics_payload_is_floriday: {
51843
+ Args: {
51844
+ _payload: import("../integrations/supabase/types").Json;
51845
+ };
51846
+ Returns: boolean;
51847
+ };
51023
51848
  logistics_pick_agenda: {
51024
51849
  Args: {
51025
51850
  p_from?: string;
@@ -51142,6 +51967,20 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
51142
51967
  Args: never;
51143
51968
  Returns: undefined;
51144
51969
  };
51970
+ logistics_plan_progress: {
51971
+ Args: {
51972
+ p_refs: string[];
51973
+ };
51974
+ Returns: {
51975
+ cart_plan_ready: boolean;
51976
+ cart_plan_reason: string;
51977
+ cart_plan_released: boolean;
51978
+ plan_progress: number;
51979
+ plan_state: string;
51980
+ plan_state_since: string;
51981
+ unit_ref: string;
51982
+ }[];
51983
+ };
51145
51984
  logistics_plan_prune: {
51146
51985
  Args: never;
51147
51986
  Returns: number;
@@ -51163,6 +52002,12 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
51163
52002
  };
51164
52003
  Returns: number;
51165
52004
  };
52005
+ logistics_plan_state_for: {
52006
+ Args: {
52007
+ p_ref: string;
52008
+ };
52009
+ Returns: import("../integrations/supabase/types").Json;
52010
+ };
51166
52011
  logistics_prepare_pick_documents: {
51167
52012
  Args: {
51168
52013
  p_limit?: number;
@@ -51221,6 +52066,12 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
51221
52066
  };
51222
52067
  Returns: import("../integrations/supabase/types").Json;
51223
52068
  };
52069
+ logistics_refresh_plan_state: {
52070
+ Args: {
52071
+ p_limit?: number;
52072
+ };
52073
+ Returns: import("../integrations/supabase/types").Json;
52074
+ };
51224
52075
  logistics_replan_all: {
51225
52076
  Args: {
51226
52077
  p_reason?: string;
@@ -51395,6 +52246,16 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
51395
52246
  };
51396
52247
  Returns: string;
51397
52248
  };
52249
+ logistics_shipping_notes_wake_all: {
52250
+ Args: never;
52251
+ Returns: import("../integrations/supabase/types").Json;
52252
+ };
52253
+ logistics_slip_is_floriday: {
52254
+ Args: {
52255
+ _slip_job_id: string;
52256
+ };
52257
+ Returns: boolean;
52258
+ };
51398
52259
  logistics_slip_note_claim: {
51399
52260
  Args: {
51400
52261
  _lease_seconds?: number;
@@ -51501,6 +52362,63 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
51501
52362
  name: string;
51502
52363
  }[];
51503
52364
  };
52365
+ logistics_trace: {
52366
+ Args: {
52367
+ p: import("../integrations/supabase/types").Json;
52368
+ };
52369
+ Returns: string;
52370
+ };
52371
+ logistics_trace_all_orders: {
52372
+ Args: {
52373
+ p_limit?: number;
52374
+ p_search?: string;
52375
+ };
52376
+ Returns: import("../integrations/supabase/types").Json;
52377
+ };
52378
+ logistics_trace_batch: {
52379
+ Args: {
52380
+ p: import("../integrations/supabase/types").Json;
52381
+ };
52382
+ Returns: number;
52383
+ };
52384
+ logistics_trace_orders: {
52385
+ Args: {
52386
+ p_limit?: number;
52387
+ p_search?: string;
52388
+ p_since?: string;
52389
+ p_status?: string;
52390
+ };
52391
+ Returns: import("../integrations/supabase/types").Json;
52392
+ };
52393
+ logistics_trace_redact: {
52394
+ Args: {
52395
+ p: import("../integrations/supabase/types").Json;
52396
+ };
52397
+ Returns: import("../integrations/supabase/types").Json;
52398
+ };
52399
+ logistics_trace_timeline: {
52400
+ Args: {
52401
+ p_limit?: number;
52402
+ p_order_ref: string;
52403
+ };
52404
+ Returns: import("../integrations/supabase/types").Json;
52405
+ };
52406
+ logistics_trace_version_events: {
52407
+ Args: {
52408
+ p_from?: string;
52409
+ p_limit?: number;
52410
+ p_order_ref: string;
52411
+ p_to?: string;
52412
+ p_version_id: string;
52413
+ };
52414
+ Returns: import("../integrations/supabase/types").Json;
52415
+ };
52416
+ logistics_trace_versions: {
52417
+ Args: {
52418
+ p_order_ref: string;
52419
+ };
52420
+ Returns: import("../integrations/supabase/types").Json;
52421
+ };
51504
52422
  logistics_upsert_task: {
51505
52423
  Args: {
51506
52424
  p_buffer_ref: string;
@@ -52542,6 +53460,10 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
52542
53460
  };
52543
53461
  Returns: undefined;
52544
53462
  };
53463
+ prune_floriday_api_log: {
53464
+ Args: never;
53465
+ Returns: number;
53466
+ };
52545
53467
  quote_create_from_source: {
52546
53468
  Args: {
52547
53469
  _payload?: import("../integrations/supabase/types").Json;
@@ -53418,6 +54340,10 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
53418
54340
  Args: never;
53419
54341
  Returns: string;
53420
54342
  };
54343
+ voorraad_cleanup_old_rows: {
54344
+ Args: never;
54345
+ Returns: import("../integrations/supabase/types").Json;
54346
+ };
53421
54347
  wake_print_queue: {
53422
54348
  Args: {
53423
54349
  _min_interval_ms?: number;