@flowselections/floriday-voorraad 1.0.42 → 1.0.43

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 +440 -0
  17. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  18. package/dist-lib/integrations/supabase/client.d.ts +440 -0
  19. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  20. package/dist-lib/integrations/supabase/client.server.d.ts +440 -0
  21. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  22. package/dist-lib/integrations/supabase/types.d.ts +443 -0
  23. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  24. package/dist-lib/lib/floricode-required-features.functions.d.ts +440 -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 +440 -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 +880 -0
  31. package/dist-lib/lib/floriday-env.functions.d.ts.map +1 -1
  32. package/dist-lib/lib/floriday-gateway.functions.d.ts +2640 -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 +880 -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 +1320 -0
  37. package/dist-lib/lib/floriday-warehouse.functions.d.ts.map +1 -1
  38. package/dist-lib/lib/floriday-writes.functions.d.ts +880 -0
  39. package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
  40. package/dist-lib/lib/inventory-settings.functions.d.ts +880 -0
  41. package/dist-lib/lib/inventory-settings.functions.d.ts.map +1 -1
  42. package/dist-lib/lib/stock-sync.functions.d.ts +880 -0
  43. package/dist-lib/lib/stock-sync.functions.d.ts.map +1 -1
  44. package/package.json +1 -1
@@ -2235,6 +2235,45 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
2235
2235
  };
2236
2236
  Relationships: [];
2237
2237
  };
2238
+ customer_product_stickers: {
2239
+ Row: {
2240
+ created_at: string;
2241
+ customer_key: string;
2242
+ file_name: string;
2243
+ file_path: string;
2244
+ file_size: number | null;
2245
+ id: string;
2246
+ mime_type: string | null;
2247
+ trade_item_key: string;
2248
+ updated_at: string;
2249
+ uploaded_by: string | null;
2250
+ };
2251
+ Insert: {
2252
+ created_at?: string;
2253
+ customer_key: string;
2254
+ file_name: string;
2255
+ file_path: string;
2256
+ file_size?: number | null;
2257
+ id?: string;
2258
+ mime_type?: string | null;
2259
+ trade_item_key: string;
2260
+ updated_at?: string;
2261
+ uploaded_by?: string | null;
2262
+ };
2263
+ Update: {
2264
+ created_at?: string;
2265
+ customer_key?: string;
2266
+ file_name?: string;
2267
+ file_path?: string;
2268
+ file_size?: number | null;
2269
+ id?: string;
2270
+ mime_type?: string | null;
2271
+ trade_item_key?: string;
2272
+ updated_at?: string;
2273
+ uploaded_by?: string | null;
2274
+ };
2275
+ Relationships: [];
2276
+ };
2238
2277
  customer_selected_assortment: {
2239
2278
  Row: {
2240
2279
  article_number: string | null;
@@ -2283,6 +2322,30 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
2283
2322
  referencedColumns: ["id"];
2284
2323
  }];
2285
2324
  };
2325
+ customer_sticker_settings: {
2326
+ Row: {
2327
+ created_at: string;
2328
+ customer_key: string;
2329
+ height_mm: number;
2330
+ updated_at: string;
2331
+ width_mm: number;
2332
+ };
2333
+ Insert: {
2334
+ created_at?: string;
2335
+ customer_key: string;
2336
+ height_mm?: number;
2337
+ updated_at?: string;
2338
+ width_mm?: number;
2339
+ };
2340
+ Update: {
2341
+ created_at?: string;
2342
+ customer_key?: string;
2343
+ height_mm?: number;
2344
+ updated_at?: string;
2345
+ width_mm?: number;
2346
+ };
2347
+ Relationships: [];
2348
+ };
2286
2349
  customer_trade_settings: {
2287
2350
  Row: {
2288
2351
  category: string;
@@ -5613,6 +5676,102 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
5613
5676
  referencedColumns: ["id"];
5614
5677
  }];
5615
5678
  };
5679
+ floriday_api_log: {
5680
+ Row: {
5681
+ action: string | null;
5682
+ caller: string | null;
5683
+ connection_id: string | null;
5684
+ created_at: string;
5685
+ cursor_from: number | null;
5686
+ direction: string;
5687
+ duration_ms: number | null;
5688
+ environment: string | null;
5689
+ error: string | null;
5690
+ floriday_id: string | null;
5691
+ floriday_reference: string | null;
5692
+ http_status: number;
5693
+ id: string;
5694
+ item_count: number | null;
5695
+ kind: string | null;
5696
+ local_id: string | null;
5697
+ local_reference: string | null;
5698
+ method: string;
5699
+ module: string | null;
5700
+ ok: boolean;
5701
+ path: string;
5702
+ request: import("../integrations/supabase/types").Json | null;
5703
+ resource_type: string | null;
5704
+ response: import("../integrations/supabase/types").Json | null;
5705
+ write_log_id: string | null;
5706
+ };
5707
+ Insert: {
5708
+ action?: string | null;
5709
+ caller?: string | null;
5710
+ connection_id?: string | null;
5711
+ created_at?: string;
5712
+ cursor_from?: number | null;
5713
+ direction: string;
5714
+ duration_ms?: number | null;
5715
+ environment?: string | null;
5716
+ error?: string | null;
5717
+ floriday_id?: string | null;
5718
+ floriday_reference?: string | null;
5719
+ http_status?: number;
5720
+ id?: string;
5721
+ item_count?: number | null;
5722
+ kind?: string | null;
5723
+ local_id?: string | null;
5724
+ local_reference?: string | null;
5725
+ method: string;
5726
+ module?: string | null;
5727
+ ok?: boolean;
5728
+ path: string;
5729
+ request?: import("../integrations/supabase/types").Json | null;
5730
+ resource_type?: string | null;
5731
+ response?: import("../integrations/supabase/types").Json | null;
5732
+ write_log_id?: string | null;
5733
+ };
5734
+ Update: {
5735
+ action?: string | null;
5736
+ caller?: string | null;
5737
+ connection_id?: string | null;
5738
+ created_at?: string;
5739
+ cursor_from?: number | null;
5740
+ direction?: string;
5741
+ duration_ms?: number | null;
5742
+ environment?: string | null;
5743
+ error?: string | null;
5744
+ floriday_id?: string | null;
5745
+ floriday_reference?: string | null;
5746
+ http_status?: number;
5747
+ id?: string;
5748
+ item_count?: number | null;
5749
+ kind?: string | null;
5750
+ local_id?: string | null;
5751
+ local_reference?: string | null;
5752
+ method?: string;
5753
+ module?: string | null;
5754
+ ok?: boolean;
5755
+ path?: string;
5756
+ request?: import("../integrations/supabase/types").Json | null;
5757
+ resource_type?: string | null;
5758
+ response?: import("../integrations/supabase/types").Json | null;
5759
+ write_log_id?: string | null;
5760
+ };
5761
+ Relationships: [{
5762
+ foreignKeyName: "floriday_api_log_connection_id_fkey";
5763
+ columns: ["connection_id"];
5764
+ isOneToOne: false;
5765
+ referencedRelation: "floriday_connections";
5766
+ referencedColumns: ["id"];
5767
+ }, {
5768
+ foreignKeyName: "floriday_api_log_write_log_id_fkey";
5769
+ columns: ["write_log_id"];
5770
+ isOneToOne: false;
5771
+ referencedRelation: "floriday_write_log";
5772
+ referencedColumns: ["id"];
5773
+ }];
5774
+ };
5616
5775
  floriday_auction_letters_cache: {
5617
5776
  Row: {
5618
5777
  auction_letter_code: string;
@@ -6813,6 +6972,69 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
6813
6972
  referencedColumns: ["id"];
6814
6973
  }];
6815
6974
  };
6975
+ floriday_link_templates: {
6976
+ Row: {
6977
+ created_at: string;
6978
+ floriday_url_template: string | null;
6979
+ is_active: boolean;
6980
+ label: string;
6981
+ local_url_template: string | null;
6982
+ resource_type: string;
6983
+ updated_at: string;
6984
+ };
6985
+ Insert: {
6986
+ created_at?: string;
6987
+ floriday_url_template?: string | null;
6988
+ is_active?: boolean;
6989
+ label: string;
6990
+ local_url_template?: string | null;
6991
+ resource_type: string;
6992
+ updated_at?: string;
6993
+ };
6994
+ Update: {
6995
+ created_at?: string;
6996
+ floriday_url_template?: string | null;
6997
+ is_active?: boolean;
6998
+ label?: string;
6999
+ local_url_template?: string | null;
7000
+ resource_type?: string;
7001
+ updated_at?: string;
7002
+ };
7003
+ Relationships: [];
7004
+ };
7005
+ floriday_log_retention: {
7006
+ Row: {
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
+ Insert: {
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
+ Update: {
7027
+ created_at?: string;
7028
+ direction?: string | null;
7029
+ id?: string;
7030
+ keep_failed_days?: number | null;
7031
+ keep_ok_days?: number | null;
7032
+ note?: string | null;
7033
+ resource_type?: string | null;
7034
+ updated_at?: string;
7035
+ };
7036
+ Relationships: [];
7037
+ };
6816
7038
  floriday_logistic_labels_cache: {
6817
7039
  Row: {
6818
7040
  byte_size: number | null;
@@ -11352,6 +11574,111 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
11352
11574
  };
11353
11575
  Relationships: [];
11354
11576
  };
11577
+ logistics_trace_events: {
11578
+ Row: {
11579
+ actor: string | null;
11580
+ attempts: number;
11581
+ cart_ref: string | null;
11582
+ created_at: string;
11583
+ db_action: string | null;
11584
+ db_new: import("../integrations/supabase/types").Json | null;
11585
+ db_old: import("../integrations/supabase/types").Json | null;
11586
+ db_record: string | null;
11587
+ db_table: string | null;
11588
+ decision: string | null;
11589
+ duration_ms: number | null;
11590
+ error: string | null;
11591
+ external_action: string | null;
11592
+ external_ref: string | null;
11593
+ external_response: import("../integrations/supabase/types").Json | null;
11594
+ external_status: string | null;
11595
+ external_system: string | null;
11596
+ id: string;
11597
+ input: import("../integrations/supabase/types").Json | null;
11598
+ next_attempt_at: string | null;
11599
+ order_ref: string | null;
11600
+ order_source: string | null;
11601
+ output: import("../integrations/supabase/types").Json | null;
11602
+ phase: string;
11603
+ reads: import("../integrations/supabase/types").Json | null;
11604
+ reason: string | null;
11605
+ rule: string | null;
11606
+ slip_ref: string | null;
11607
+ status: string;
11608
+ step: string;
11609
+ trace_id: string;
11610
+ values_used: import("../integrations/supabase/types").Json | null;
11611
+ };
11612
+ Insert: {
11613
+ actor?: string | null;
11614
+ attempts?: number;
11615
+ cart_ref?: string | null;
11616
+ created_at?: string;
11617
+ db_action?: string | null;
11618
+ db_new?: import("../integrations/supabase/types").Json | null;
11619
+ db_old?: import("../integrations/supabase/types").Json | null;
11620
+ db_record?: string | null;
11621
+ db_table?: string | null;
11622
+ decision?: string | null;
11623
+ duration_ms?: number | null;
11624
+ error?: string | null;
11625
+ external_action?: string | null;
11626
+ external_ref?: string | null;
11627
+ external_response?: import("../integrations/supabase/types").Json | null;
11628
+ external_status?: string | null;
11629
+ external_system?: string | null;
11630
+ id?: string;
11631
+ input?: import("../integrations/supabase/types").Json | null;
11632
+ next_attempt_at?: string | null;
11633
+ order_ref?: string | null;
11634
+ order_source?: string | null;
11635
+ output?: import("../integrations/supabase/types").Json | null;
11636
+ phase: string;
11637
+ reads?: import("../integrations/supabase/types").Json | null;
11638
+ reason?: string | null;
11639
+ rule?: string | null;
11640
+ slip_ref?: string | null;
11641
+ status: string;
11642
+ step: string;
11643
+ trace_id?: string;
11644
+ values_used?: import("../integrations/supabase/types").Json | null;
11645
+ };
11646
+ Update: {
11647
+ actor?: string | null;
11648
+ attempts?: number;
11649
+ cart_ref?: string | null;
11650
+ created_at?: string;
11651
+ db_action?: string | null;
11652
+ db_new?: import("../integrations/supabase/types").Json | null;
11653
+ db_old?: import("../integrations/supabase/types").Json | null;
11654
+ db_record?: string | null;
11655
+ db_table?: string | null;
11656
+ decision?: string | null;
11657
+ duration_ms?: number | null;
11658
+ error?: string | null;
11659
+ external_action?: string | null;
11660
+ external_ref?: string | null;
11661
+ external_response?: import("../integrations/supabase/types").Json | null;
11662
+ external_status?: string | null;
11663
+ external_system?: string | null;
11664
+ id?: string;
11665
+ input?: import("../integrations/supabase/types").Json | null;
11666
+ next_attempt_at?: string | null;
11667
+ order_ref?: string | null;
11668
+ order_source?: string | null;
11669
+ output?: import("../integrations/supabase/types").Json | null;
11670
+ phase?: string;
11671
+ reads?: import("../integrations/supabase/types").Json | null;
11672
+ reason?: string | null;
11673
+ rule?: string | null;
11674
+ slip_ref?: string | null;
11675
+ status?: string;
11676
+ step?: string;
11677
+ trace_id?: string;
11678
+ values_used?: import("../integrations/supabase/types").Json | null;
11679
+ };
11680
+ Relationships: [];
11681
+ };
11355
11682
  logistics_variables: {
11356
11683
  Row: {
11357
11684
  created_at: string;
@@ -21924,6 +22251,15 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
21924
22251
  Args: never;
21925
22252
  Returns: boolean;
21926
22253
  };
22254
+ cancel_open_print_jobs: {
22255
+ Args: {
22256
+ _cutoff: string;
22257
+ };
22258
+ Returns: {
22259
+ extern_job_id: string;
22260
+ id: string;
22261
+ }[];
22262
+ };
21927
22263
  check_offer_product_available_stock: {
21928
22264
  Args: {
21929
22265
  p_campaign_product_id: string;
@@ -23536,6 +23872,12 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
23536
23872
  };
23537
23873
  Returns: import("../integrations/supabase/types").Json;
23538
23874
  };
23875
+ logistics_cart_plan_status_core: {
23876
+ Args: {
23877
+ p_ref: string;
23878
+ };
23879
+ Returns: import("../integrations/supabase/types").Json;
23880
+ };
23539
23881
  logistics_cart_release_reason: {
23540
23882
  Args: {
23541
23883
  p_cart_id: string;
@@ -23968,6 +24310,12 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
23968
24310
  };
23969
24311
  Returns: import("../integrations/supabase/types").Json;
23970
24312
  };
24313
+ logistics_ensure_shipping_notes: {
24314
+ Args: {
24315
+ p_limit?: number;
24316
+ };
24317
+ Returns: import("../integrations/supabase/types").Json;
24318
+ };
23971
24319
  logistics_fail_task: {
23972
24320
  Args: {
23973
24321
  p_error: string;
@@ -24013,6 +24361,10 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
24013
24361
  isSetofReturn: false;
24014
24362
  };
24015
24363
  };
24364
+ logistics_fix_wrong_shipping_notes: {
24365
+ Args: never;
24366
+ Returns: import("../integrations/supabase/types").Json;
24367
+ };
24016
24368
  logistics_floriday_cart_plan: {
24017
24369
  Args: {
24018
24370
  p_order_id: string;
@@ -24040,6 +24392,10 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
24040
24392
  revision: number;
24041
24393
  }[];
24042
24394
  };
24395
+ logistics_floriday_delivery_note_create_enabled: {
24396
+ Args: never;
24397
+ Returns: boolean;
24398
+ };
24043
24399
  logistics_floriday_finish_push: {
24044
24400
  Args: {
24045
24401
  _error?: string;
@@ -24283,6 +24639,12 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
24283
24639
  };
24284
24640
  Returns: string;
24285
24641
  };
24642
+ logistics_payload_is_floriday: {
24643
+ Args: {
24644
+ _payload: import("../integrations/supabase/types").Json;
24645
+ };
24646
+ Returns: boolean;
24647
+ };
24286
24648
  logistics_pick_agenda: {
24287
24649
  Args: {
24288
24650
  p_from?: string;
@@ -24405,6 +24767,20 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
24405
24767
  Args: never;
24406
24768
  Returns: undefined;
24407
24769
  };
24770
+ logistics_plan_progress: {
24771
+ Args: {
24772
+ p_refs: string[];
24773
+ };
24774
+ Returns: {
24775
+ cart_plan_ready: boolean;
24776
+ cart_plan_reason: string;
24777
+ cart_plan_released: boolean;
24778
+ plan_progress: number;
24779
+ plan_state: string;
24780
+ plan_state_since: string;
24781
+ unit_ref: string;
24782
+ }[];
24783
+ };
24408
24784
  logistics_plan_prune: {
24409
24785
  Args: never;
24410
24786
  Returns: number;
@@ -24426,6 +24802,12 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
24426
24802
  };
24427
24803
  Returns: number;
24428
24804
  };
24805
+ logistics_plan_state_for: {
24806
+ Args: {
24807
+ p_ref: string;
24808
+ };
24809
+ Returns: import("../integrations/supabase/types").Json;
24810
+ };
24429
24811
  logistics_prepare_pick_documents: {
24430
24812
  Args: {
24431
24813
  p_limit?: number;
@@ -24484,6 +24866,12 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
24484
24866
  };
24485
24867
  Returns: import("../integrations/supabase/types").Json;
24486
24868
  };
24869
+ logistics_refresh_plan_state: {
24870
+ Args: {
24871
+ p_limit?: number;
24872
+ };
24873
+ Returns: import("../integrations/supabase/types").Json;
24874
+ };
24487
24875
  logistics_replan_all: {
24488
24876
  Args: {
24489
24877
  p_reason?: string;
@@ -24658,6 +25046,16 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
24658
25046
  };
24659
25047
  Returns: string;
24660
25048
  };
25049
+ logistics_shipping_notes_wake_all: {
25050
+ Args: never;
25051
+ Returns: import("../integrations/supabase/types").Json;
25052
+ };
25053
+ logistics_slip_is_floriday: {
25054
+ Args: {
25055
+ _slip_job_id: string;
25056
+ };
25057
+ Returns: boolean;
25058
+ };
24661
25059
  logistics_slip_note_claim: {
24662
25060
  Args: {
24663
25061
  _lease_seconds?: number;
@@ -24764,6 +25162,40 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
24764
25162
  name: string;
24765
25163
  }[];
24766
25164
  };
25165
+ logistics_trace: {
25166
+ Args: {
25167
+ p: import("../integrations/supabase/types").Json;
25168
+ };
25169
+ Returns: string;
25170
+ };
25171
+ logistics_trace_batch: {
25172
+ Args: {
25173
+ p: import("../integrations/supabase/types").Json;
25174
+ };
25175
+ Returns: number;
25176
+ };
25177
+ logistics_trace_orders: {
25178
+ Args: {
25179
+ p_limit?: number;
25180
+ p_search?: string;
25181
+ p_since?: string;
25182
+ p_status?: string;
25183
+ };
25184
+ Returns: import("../integrations/supabase/types").Json;
25185
+ };
25186
+ logistics_trace_redact: {
25187
+ Args: {
25188
+ p: import("../integrations/supabase/types").Json;
25189
+ };
25190
+ Returns: import("../integrations/supabase/types").Json;
25191
+ };
25192
+ logistics_trace_timeline: {
25193
+ Args: {
25194
+ p_limit?: number;
25195
+ p_order_ref: string;
25196
+ };
25197
+ Returns: import("../integrations/supabase/types").Json;
25198
+ };
24767
25199
  logistics_upsert_task: {
24768
25200
  Args: {
24769
25201
  p_buffer_ref: string;
@@ -25805,6 +26237,10 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
25805
26237
  };
25806
26238
  Returns: undefined;
25807
26239
  };
26240
+ prune_floriday_api_log: {
26241
+ Args: never;
26242
+ Returns: number;
26243
+ };
25808
26244
  quote_create_from_source: {
25809
26245
  Args: {
25810
26246
  _payload?: import("../integrations/supabase/types").Json;
@@ -26681,6 +27117,10 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
26681
27117
  Args: never;
26682
27118
  Returns: string;
26683
27119
  };
27120
+ voorraad_cleanup_old_rows: {
27121
+ Args: never;
27122
+ Returns: import("../integrations/supabase/types").Json;
27123
+ };
26684
27124
  wake_print_queue: {
26685
27125
  Args: {
26686
27126
  _min_interval_ms?: number;
@@ -28976,6 +29416,45 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
28976
29416
  };
28977
29417
  Relationships: [];
28978
29418
  };
29419
+ customer_product_stickers: {
29420
+ Row: {
29421
+ created_at: string;
29422
+ customer_key: string;
29423
+ file_name: string;
29424
+ file_path: string;
29425
+ file_size: number | null;
29426
+ id: string;
29427
+ mime_type: string | null;
29428
+ trade_item_key: string;
29429
+ updated_at: string;
29430
+ uploaded_by: string | null;
29431
+ };
29432
+ Insert: {
29433
+ created_at?: string;
29434
+ customer_key: string;
29435
+ file_name: string;
29436
+ file_path: string;
29437
+ file_size?: number | null;
29438
+ id?: string;
29439
+ mime_type?: string | null;
29440
+ trade_item_key: string;
29441
+ updated_at?: string;
29442
+ uploaded_by?: string | null;
29443
+ };
29444
+ Update: {
29445
+ created_at?: string;
29446
+ customer_key?: string;
29447
+ file_name?: string;
29448
+ file_path?: string;
29449
+ file_size?: number | null;
29450
+ id?: string;
29451
+ mime_type?: string | null;
29452
+ trade_item_key?: string;
29453
+ updated_at?: string;
29454
+ uploaded_by?: string | null;
29455
+ };
29456
+ Relationships: [];
29457
+ };
28979
29458
  customer_selected_assortment: {
28980
29459
  Row: {
28981
29460
  article_number: string | null;
@@ -29024,6 +29503,30 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
29024
29503
  referencedColumns: ["id"];
29025
29504
  }];
29026
29505
  };
29506
+ customer_sticker_settings: {
29507
+ Row: {
29508
+ created_at: string;
29509
+ customer_key: string;
29510
+ height_mm: number;
29511
+ updated_at: string;
29512
+ width_mm: number;
29513
+ };
29514
+ Insert: {
29515
+ created_at?: string;
29516
+ customer_key: string;
29517
+ height_mm?: number;
29518
+ updated_at?: string;
29519
+ width_mm?: number;
29520
+ };
29521
+ Update: {
29522
+ created_at?: string;
29523
+ customer_key?: string;
29524
+ height_mm?: number;
29525
+ updated_at?: string;
29526
+ width_mm?: number;
29527
+ };
29528
+ Relationships: [];
29529
+ };
29027
29530
  customer_trade_settings: {
29028
29531
  Row: {
29029
29532
  category: string;
@@ -32354,6 +32857,102 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
32354
32857
  referencedColumns: ["id"];
32355
32858
  }];
32356
32859
  };
32860
+ floriday_api_log: {
32861
+ Row: {
32862
+ action: string | null;
32863
+ caller: string | null;
32864
+ connection_id: string | null;
32865
+ created_at: string;
32866
+ cursor_from: number | null;
32867
+ direction: string;
32868
+ duration_ms: number | null;
32869
+ environment: string | null;
32870
+ error: string | null;
32871
+ floriday_id: string | null;
32872
+ floriday_reference: string | null;
32873
+ http_status: number;
32874
+ id: string;
32875
+ item_count: number | null;
32876
+ kind: string | null;
32877
+ local_id: string | null;
32878
+ local_reference: string | null;
32879
+ method: string;
32880
+ module: string | null;
32881
+ ok: boolean;
32882
+ path: string;
32883
+ request: import("../integrations/supabase/types").Json | null;
32884
+ resource_type: string | null;
32885
+ response: import("../integrations/supabase/types").Json | null;
32886
+ write_log_id: string | null;
32887
+ };
32888
+ Insert: {
32889
+ action?: string | null;
32890
+ caller?: string | null;
32891
+ connection_id?: string | null;
32892
+ created_at?: string;
32893
+ cursor_from?: number | null;
32894
+ direction: string;
32895
+ duration_ms?: number | null;
32896
+ environment?: string | null;
32897
+ error?: string | null;
32898
+ floriday_id?: string | null;
32899
+ floriday_reference?: string | null;
32900
+ http_status?: number;
32901
+ id?: string;
32902
+ item_count?: number | null;
32903
+ kind?: string | null;
32904
+ local_id?: string | null;
32905
+ local_reference?: string | null;
32906
+ method: string;
32907
+ module?: string | null;
32908
+ ok?: boolean;
32909
+ path: string;
32910
+ request?: import("../integrations/supabase/types").Json | null;
32911
+ resource_type?: string | null;
32912
+ response?: import("../integrations/supabase/types").Json | null;
32913
+ write_log_id?: string | null;
32914
+ };
32915
+ Update: {
32916
+ action?: string | null;
32917
+ caller?: string | null;
32918
+ connection_id?: string | null;
32919
+ created_at?: string;
32920
+ cursor_from?: number | null;
32921
+ direction?: string;
32922
+ duration_ms?: number | null;
32923
+ environment?: string | null;
32924
+ error?: string | null;
32925
+ floriday_id?: string | null;
32926
+ floriday_reference?: string | null;
32927
+ http_status?: number;
32928
+ id?: string;
32929
+ item_count?: number | null;
32930
+ kind?: string | null;
32931
+ local_id?: string | null;
32932
+ local_reference?: string | null;
32933
+ method?: string;
32934
+ module?: string | null;
32935
+ ok?: boolean;
32936
+ path?: string;
32937
+ request?: import("../integrations/supabase/types").Json | null;
32938
+ resource_type?: string | null;
32939
+ response?: import("../integrations/supabase/types").Json | null;
32940
+ write_log_id?: string | null;
32941
+ };
32942
+ Relationships: [{
32943
+ foreignKeyName: "floriday_api_log_connection_id_fkey";
32944
+ columns: ["connection_id"];
32945
+ isOneToOne: false;
32946
+ referencedRelation: "floriday_connections";
32947
+ referencedColumns: ["id"];
32948
+ }, {
32949
+ foreignKeyName: "floriday_api_log_write_log_id_fkey";
32950
+ columns: ["write_log_id"];
32951
+ isOneToOne: false;
32952
+ referencedRelation: "floriday_write_log";
32953
+ referencedColumns: ["id"];
32954
+ }];
32955
+ };
32357
32956
  floriday_auction_letters_cache: {
32358
32957
  Row: {
32359
32958
  auction_letter_code: string;
@@ -33554,6 +34153,69 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
33554
34153
  referencedColumns: ["id"];
33555
34154
  }];
33556
34155
  };
34156
+ floriday_link_templates: {
34157
+ Row: {
34158
+ created_at: string;
34159
+ floriday_url_template: string | null;
34160
+ is_active: boolean;
34161
+ label: string;
34162
+ local_url_template: string | null;
34163
+ resource_type: string;
34164
+ updated_at: string;
34165
+ };
34166
+ Insert: {
34167
+ created_at?: string;
34168
+ floriday_url_template?: string | null;
34169
+ is_active?: boolean;
34170
+ label: string;
34171
+ local_url_template?: string | null;
34172
+ resource_type: string;
34173
+ updated_at?: string;
34174
+ };
34175
+ Update: {
34176
+ created_at?: string;
34177
+ floriday_url_template?: string | null;
34178
+ is_active?: boolean;
34179
+ label?: string;
34180
+ local_url_template?: string | null;
34181
+ resource_type?: string;
34182
+ updated_at?: string;
34183
+ };
34184
+ Relationships: [];
34185
+ };
34186
+ floriday_log_retention: {
34187
+ Row: {
34188
+ created_at: string;
34189
+ direction: string | null;
34190
+ id: string;
34191
+ keep_failed_days: number | null;
34192
+ keep_ok_days: number | null;
34193
+ note: string | null;
34194
+ resource_type: string | null;
34195
+ updated_at: string;
34196
+ };
34197
+ Insert: {
34198
+ created_at?: string;
34199
+ direction?: string | null;
34200
+ id?: string;
34201
+ keep_failed_days?: number | null;
34202
+ keep_ok_days?: number | null;
34203
+ note?: string | null;
34204
+ resource_type?: string | null;
34205
+ updated_at?: string;
34206
+ };
34207
+ Update: {
34208
+ created_at?: string;
34209
+ direction?: string | null;
34210
+ id?: string;
34211
+ keep_failed_days?: number | null;
34212
+ keep_ok_days?: number | null;
34213
+ note?: string | null;
34214
+ resource_type?: string | null;
34215
+ updated_at?: string;
34216
+ };
34217
+ Relationships: [];
34218
+ };
33557
34219
  floriday_logistic_labels_cache: {
33558
34220
  Row: {
33559
34221
  byte_size: number | null;
@@ -38093,6 +38755,111 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
38093
38755
  };
38094
38756
  Relationships: [];
38095
38757
  };
38758
+ logistics_trace_events: {
38759
+ Row: {
38760
+ actor: string | null;
38761
+ attempts: number;
38762
+ cart_ref: string | null;
38763
+ created_at: string;
38764
+ db_action: string | null;
38765
+ db_new: import("../integrations/supabase/types").Json | null;
38766
+ db_old: import("../integrations/supabase/types").Json | null;
38767
+ db_record: string | null;
38768
+ db_table: string | null;
38769
+ decision: string | null;
38770
+ duration_ms: number | null;
38771
+ error: string | null;
38772
+ external_action: string | null;
38773
+ external_ref: string | null;
38774
+ external_response: import("../integrations/supabase/types").Json | null;
38775
+ external_status: string | null;
38776
+ external_system: string | null;
38777
+ id: string;
38778
+ input: import("../integrations/supabase/types").Json | null;
38779
+ next_attempt_at: string | null;
38780
+ order_ref: string | null;
38781
+ order_source: string | null;
38782
+ output: import("../integrations/supabase/types").Json | null;
38783
+ phase: string;
38784
+ reads: import("../integrations/supabase/types").Json | null;
38785
+ reason: string | null;
38786
+ rule: string | null;
38787
+ slip_ref: string | null;
38788
+ status: string;
38789
+ step: string;
38790
+ trace_id: string;
38791
+ values_used: import("../integrations/supabase/types").Json | null;
38792
+ };
38793
+ Insert: {
38794
+ actor?: string | null;
38795
+ attempts?: number;
38796
+ cart_ref?: string | null;
38797
+ created_at?: string;
38798
+ db_action?: string | null;
38799
+ db_new?: import("../integrations/supabase/types").Json | null;
38800
+ db_old?: import("../integrations/supabase/types").Json | null;
38801
+ db_record?: string | null;
38802
+ db_table?: string | null;
38803
+ decision?: string | null;
38804
+ duration_ms?: number | null;
38805
+ error?: string | null;
38806
+ external_action?: string | null;
38807
+ external_ref?: string | null;
38808
+ external_response?: import("../integrations/supabase/types").Json | null;
38809
+ external_status?: string | null;
38810
+ external_system?: string | null;
38811
+ id?: string;
38812
+ input?: import("../integrations/supabase/types").Json | null;
38813
+ next_attempt_at?: string | null;
38814
+ order_ref?: string | null;
38815
+ order_source?: string | null;
38816
+ output?: import("../integrations/supabase/types").Json | null;
38817
+ phase: string;
38818
+ reads?: import("../integrations/supabase/types").Json | null;
38819
+ reason?: string | null;
38820
+ rule?: string | null;
38821
+ slip_ref?: string | null;
38822
+ status: string;
38823
+ step: string;
38824
+ trace_id?: string;
38825
+ values_used?: import("../integrations/supabase/types").Json | null;
38826
+ };
38827
+ Update: {
38828
+ actor?: string | null;
38829
+ attempts?: number;
38830
+ cart_ref?: string | null;
38831
+ created_at?: string;
38832
+ db_action?: string | null;
38833
+ db_new?: import("../integrations/supabase/types").Json | null;
38834
+ db_old?: import("../integrations/supabase/types").Json | null;
38835
+ db_record?: string | null;
38836
+ db_table?: string | null;
38837
+ decision?: string | null;
38838
+ duration_ms?: number | null;
38839
+ error?: string | null;
38840
+ external_action?: string | null;
38841
+ external_ref?: string | null;
38842
+ external_response?: import("../integrations/supabase/types").Json | null;
38843
+ external_status?: string | null;
38844
+ external_system?: string | null;
38845
+ id?: string;
38846
+ input?: import("../integrations/supabase/types").Json | null;
38847
+ next_attempt_at?: string | null;
38848
+ order_ref?: string | null;
38849
+ order_source?: string | null;
38850
+ output?: import("../integrations/supabase/types").Json | null;
38851
+ phase?: string;
38852
+ reads?: import("../integrations/supabase/types").Json | null;
38853
+ reason?: string | null;
38854
+ rule?: string | null;
38855
+ slip_ref?: string | null;
38856
+ status?: string;
38857
+ step?: string;
38858
+ trace_id?: string;
38859
+ values_used?: import("../integrations/supabase/types").Json | null;
38860
+ };
38861
+ Relationships: [];
38862
+ };
38096
38863
  logistics_variables: {
38097
38864
  Row: {
38098
38865
  created_at: string;
@@ -48665,6 +49432,15 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
48665
49432
  Args: never;
48666
49433
  Returns: boolean;
48667
49434
  };
49435
+ cancel_open_print_jobs: {
49436
+ Args: {
49437
+ _cutoff: string;
49438
+ };
49439
+ Returns: {
49440
+ extern_job_id: string;
49441
+ id: string;
49442
+ }[];
49443
+ };
48668
49444
  check_offer_product_available_stock: {
48669
49445
  Args: {
48670
49446
  p_campaign_product_id: string;
@@ -50277,6 +51053,12 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
50277
51053
  };
50278
51054
  Returns: import("../integrations/supabase/types").Json;
50279
51055
  };
51056
+ logistics_cart_plan_status_core: {
51057
+ Args: {
51058
+ p_ref: string;
51059
+ };
51060
+ Returns: import("../integrations/supabase/types").Json;
51061
+ };
50280
51062
  logistics_cart_release_reason: {
50281
51063
  Args: {
50282
51064
  p_cart_id: string;
@@ -50709,6 +51491,12 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
50709
51491
  };
50710
51492
  Returns: import("../integrations/supabase/types").Json;
50711
51493
  };
51494
+ logistics_ensure_shipping_notes: {
51495
+ Args: {
51496
+ p_limit?: number;
51497
+ };
51498
+ Returns: import("../integrations/supabase/types").Json;
51499
+ };
50712
51500
  logistics_fail_task: {
50713
51501
  Args: {
50714
51502
  p_error: string;
@@ -50754,6 +51542,10 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
50754
51542
  isSetofReturn: false;
50755
51543
  };
50756
51544
  };
51545
+ logistics_fix_wrong_shipping_notes: {
51546
+ Args: never;
51547
+ Returns: import("../integrations/supabase/types").Json;
51548
+ };
50757
51549
  logistics_floriday_cart_plan: {
50758
51550
  Args: {
50759
51551
  p_order_id: string;
@@ -50781,6 +51573,10 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
50781
51573
  revision: number;
50782
51574
  }[];
50783
51575
  };
51576
+ logistics_floriday_delivery_note_create_enabled: {
51577
+ Args: never;
51578
+ Returns: boolean;
51579
+ };
50784
51580
  logistics_floriday_finish_push: {
50785
51581
  Args: {
50786
51582
  _error?: string;
@@ -51024,6 +51820,12 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
51024
51820
  };
51025
51821
  Returns: string;
51026
51822
  };
51823
+ logistics_payload_is_floriday: {
51824
+ Args: {
51825
+ _payload: import("../integrations/supabase/types").Json;
51826
+ };
51827
+ Returns: boolean;
51828
+ };
51027
51829
  logistics_pick_agenda: {
51028
51830
  Args: {
51029
51831
  p_from?: string;
@@ -51146,6 +51948,20 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
51146
51948
  Args: never;
51147
51949
  Returns: undefined;
51148
51950
  };
51951
+ logistics_plan_progress: {
51952
+ Args: {
51953
+ p_refs: string[];
51954
+ };
51955
+ Returns: {
51956
+ cart_plan_ready: boolean;
51957
+ cart_plan_reason: string;
51958
+ cart_plan_released: boolean;
51959
+ plan_progress: number;
51960
+ plan_state: string;
51961
+ plan_state_since: string;
51962
+ unit_ref: string;
51963
+ }[];
51964
+ };
51149
51965
  logistics_plan_prune: {
51150
51966
  Args: never;
51151
51967
  Returns: number;
@@ -51167,6 +51983,12 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
51167
51983
  };
51168
51984
  Returns: number;
51169
51985
  };
51986
+ logistics_plan_state_for: {
51987
+ Args: {
51988
+ p_ref: string;
51989
+ };
51990
+ Returns: import("../integrations/supabase/types").Json;
51991
+ };
51170
51992
  logistics_prepare_pick_documents: {
51171
51993
  Args: {
51172
51994
  p_limit?: number;
@@ -51225,6 +52047,12 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
51225
52047
  };
51226
52048
  Returns: import("../integrations/supabase/types").Json;
51227
52049
  };
52050
+ logistics_refresh_plan_state: {
52051
+ Args: {
52052
+ p_limit?: number;
52053
+ };
52054
+ Returns: import("../integrations/supabase/types").Json;
52055
+ };
51228
52056
  logistics_replan_all: {
51229
52057
  Args: {
51230
52058
  p_reason?: string;
@@ -51399,6 +52227,16 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
51399
52227
  };
51400
52228
  Returns: string;
51401
52229
  };
52230
+ logistics_shipping_notes_wake_all: {
52231
+ Args: never;
52232
+ Returns: import("../integrations/supabase/types").Json;
52233
+ };
52234
+ logistics_slip_is_floriday: {
52235
+ Args: {
52236
+ _slip_job_id: string;
52237
+ };
52238
+ Returns: boolean;
52239
+ };
51402
52240
  logistics_slip_note_claim: {
51403
52241
  Args: {
51404
52242
  _lease_seconds?: number;
@@ -51505,6 +52343,40 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
51505
52343
  name: string;
51506
52344
  }[];
51507
52345
  };
52346
+ logistics_trace: {
52347
+ Args: {
52348
+ p: import("../integrations/supabase/types").Json;
52349
+ };
52350
+ Returns: string;
52351
+ };
52352
+ logistics_trace_batch: {
52353
+ Args: {
52354
+ p: import("../integrations/supabase/types").Json;
52355
+ };
52356
+ Returns: number;
52357
+ };
52358
+ logistics_trace_orders: {
52359
+ Args: {
52360
+ p_limit?: number;
52361
+ p_search?: string;
52362
+ p_since?: string;
52363
+ p_status?: string;
52364
+ };
52365
+ Returns: import("../integrations/supabase/types").Json;
52366
+ };
52367
+ logistics_trace_redact: {
52368
+ Args: {
52369
+ p: import("../integrations/supabase/types").Json;
52370
+ };
52371
+ Returns: import("../integrations/supabase/types").Json;
52372
+ };
52373
+ logistics_trace_timeline: {
52374
+ Args: {
52375
+ p_limit?: number;
52376
+ p_order_ref: string;
52377
+ };
52378
+ Returns: import("../integrations/supabase/types").Json;
52379
+ };
51508
52380
  logistics_upsert_task: {
51509
52381
  Args: {
51510
52382
  p_buffer_ref: string;
@@ -52546,6 +53418,10 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
52546
53418
  };
52547
53419
  Returns: undefined;
52548
53420
  };
53421
+ prune_floriday_api_log: {
53422
+ Args: never;
53423
+ Returns: number;
53424
+ };
52549
53425
  quote_create_from_source: {
52550
53426
  Args: {
52551
53427
  _payload?: import("../integrations/supabase/types").Json;
@@ -53422,6 +54298,10 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
53422
54298
  Args: never;
53423
54299
  Returns: string;
53424
54300
  };
54301
+ voorraad_cleanup_old_rows: {
54302
+ Args: never;
54303
+ Returns: import("../integrations/supabase/types").Json;
54304
+ };
53425
54305
  wake_print_queue: {
53426
54306
  Args: {
53427
54307
  _min_interval_ms?: number;