@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
@@ -2225,6 +2225,45 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
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 requireSupabaseAuth: import("@tanstack/start-client-core").
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 requireSupabaseAuth: import("@tanstack/start-client-core").
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("./types").Json | null;
5693
+ resource_type: string | null;
5694
+ response: import("./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("./types").Json | null;
5720
+ resource_type?: string | null;
5721
+ response?: import("./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("./types").Json | null;
5747
+ resource_type?: string | null;
5748
+ response?: import("./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 requireSupabaseAuth: import("@tanstack/start-client-core").
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;
@@ -11342,6 +11564,111 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
11342
11564
  };
11343
11565
  Relationships: [];
11344
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("./types").Json | null;
11575
+ db_old: import("./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("./types").Json | null;
11584
+ external_status: string | null;
11585
+ external_system: string | null;
11586
+ id: string;
11587
+ input: import("./types").Json | null;
11588
+ next_attempt_at: string | null;
11589
+ order_ref: string | null;
11590
+ order_source: string | null;
11591
+ output: import("./types").Json | null;
11592
+ phase: string;
11593
+ reads: import("./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("./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("./types").Json | null;
11609
+ db_old?: import("./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("./types").Json | null;
11618
+ external_status?: string | null;
11619
+ external_system?: string | null;
11620
+ id?: string;
11621
+ input?: import("./types").Json | null;
11622
+ next_attempt_at?: string | null;
11623
+ order_ref?: string | null;
11624
+ order_source?: string | null;
11625
+ output?: import("./types").Json | null;
11626
+ phase: string;
11627
+ reads?: import("./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("./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("./types").Json | null;
11643
+ db_old?: import("./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("./types").Json | null;
11652
+ external_status?: string | null;
11653
+ external_system?: string | null;
11654
+ id?: string;
11655
+ input?: import("./types").Json | null;
11656
+ next_attempt_at?: string | null;
11657
+ order_ref?: string | null;
11658
+ order_source?: string | null;
11659
+ output?: import("./types").Json | null;
11660
+ phase?: string;
11661
+ reads?: import("./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("./types").Json | null;
11669
+ };
11670
+ Relationships: [];
11671
+ };
11345
11672
  logistics_variables: {
11346
11673
  Row: {
11347
11674
  created_at: string;
@@ -21914,6 +22241,15 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
21914
22241
  Args: never;
21915
22242
  Returns: boolean;
21916
22243
  };
22244
+ cancel_open_print_jobs: {
22245
+ Args: {
22246
+ _cutoff: string;
22247
+ };
22248
+ Returns: {
22249
+ extern_job_id: string;
22250
+ id: string;
22251
+ }[];
22252
+ };
21917
22253
  check_offer_product_available_stock: {
21918
22254
  Args: {
21919
22255
  p_campaign_product_id: string;
@@ -23526,6 +23862,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
23526
23862
  };
23527
23863
  Returns: import("./types").Json;
23528
23864
  };
23865
+ logistics_cart_plan_status_core: {
23866
+ Args: {
23867
+ p_ref: string;
23868
+ };
23869
+ Returns: import("./types").Json;
23870
+ };
23529
23871
  logistics_cart_release_reason: {
23530
23872
  Args: {
23531
23873
  p_cart_id: string;
@@ -23958,6 +24300,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
23958
24300
  };
23959
24301
  Returns: import("./types").Json;
23960
24302
  };
24303
+ logistics_ensure_shipping_notes: {
24304
+ Args: {
24305
+ p_limit?: number;
24306
+ };
24307
+ Returns: import("./types").Json;
24308
+ };
23961
24309
  logistics_fail_task: {
23962
24310
  Args: {
23963
24311
  p_error: string;
@@ -24003,6 +24351,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
24003
24351
  isSetofReturn: false;
24004
24352
  };
24005
24353
  };
24354
+ logistics_fix_wrong_shipping_notes: {
24355
+ Args: never;
24356
+ Returns: import("./types").Json;
24357
+ };
24006
24358
  logistics_floriday_cart_plan: {
24007
24359
  Args: {
24008
24360
  p_order_id: string;
@@ -24030,6 +24382,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
24030
24382
  revision: number;
24031
24383
  }[];
24032
24384
  };
24385
+ logistics_floriday_delivery_note_create_enabled: {
24386
+ Args: never;
24387
+ Returns: boolean;
24388
+ };
24033
24389
  logistics_floriday_finish_push: {
24034
24390
  Args: {
24035
24391
  _error?: string;
@@ -24273,6 +24629,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
24273
24629
  };
24274
24630
  Returns: string;
24275
24631
  };
24632
+ logistics_payload_is_floriday: {
24633
+ Args: {
24634
+ _payload: import("./types").Json;
24635
+ };
24636
+ Returns: boolean;
24637
+ };
24276
24638
  logistics_pick_agenda: {
24277
24639
  Args: {
24278
24640
  p_from?: string;
@@ -24395,6 +24757,20 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
24395
24757
  Args: never;
24396
24758
  Returns: undefined;
24397
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
+ };
24398
24774
  logistics_plan_prune: {
24399
24775
  Args: never;
24400
24776
  Returns: number;
@@ -24416,6 +24792,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
24416
24792
  };
24417
24793
  Returns: number;
24418
24794
  };
24795
+ logistics_plan_state_for: {
24796
+ Args: {
24797
+ p_ref: string;
24798
+ };
24799
+ Returns: import("./types").Json;
24800
+ };
24419
24801
  logistics_prepare_pick_documents: {
24420
24802
  Args: {
24421
24803
  p_limit?: number;
@@ -24474,6 +24856,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
24474
24856
  };
24475
24857
  Returns: import("./types").Json;
24476
24858
  };
24859
+ logistics_refresh_plan_state: {
24860
+ Args: {
24861
+ p_limit?: number;
24862
+ };
24863
+ Returns: import("./types").Json;
24864
+ };
24477
24865
  logistics_replan_all: {
24478
24866
  Args: {
24479
24867
  p_reason?: string;
@@ -24648,6 +25036,16 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
24648
25036
  };
24649
25037
  Returns: string;
24650
25038
  };
25039
+ logistics_shipping_notes_wake_all: {
25040
+ Args: never;
25041
+ Returns: import("./types").Json;
25042
+ };
25043
+ logistics_slip_is_floriday: {
25044
+ Args: {
25045
+ _slip_job_id: string;
25046
+ };
25047
+ Returns: boolean;
25048
+ };
24651
25049
  logistics_slip_note_claim: {
24652
25050
  Args: {
24653
25051
  _lease_seconds?: number;
@@ -24754,6 +25152,40 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
24754
25152
  name: string;
24755
25153
  }[];
24756
25154
  };
25155
+ logistics_trace: {
25156
+ Args: {
25157
+ p: import("./types").Json;
25158
+ };
25159
+ Returns: string;
25160
+ };
25161
+ logistics_trace_batch: {
25162
+ Args: {
25163
+ p: import("./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("./types").Json;
25175
+ };
25176
+ logistics_trace_redact: {
25177
+ Args: {
25178
+ p: import("./types").Json;
25179
+ };
25180
+ Returns: import("./types").Json;
25181
+ };
25182
+ logistics_trace_timeline: {
25183
+ Args: {
25184
+ p_limit?: number;
25185
+ p_order_ref: string;
25186
+ };
25187
+ Returns: import("./types").Json;
25188
+ };
24757
25189
  logistics_upsert_task: {
24758
25190
  Args: {
24759
25191
  p_buffer_ref: string;
@@ -25795,6 +26227,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
25795
26227
  };
25796
26228
  Returns: undefined;
25797
26229
  };
26230
+ prune_floriday_api_log: {
26231
+ Args: never;
26232
+ Returns: number;
26233
+ };
25798
26234
  quote_create_from_source: {
25799
26235
  Args: {
25800
26236
  _payload?: import("./types").Json;
@@ -26671,6 +27107,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
26671
27107
  Args: never;
26672
27108
  Returns: string;
26673
27109
  };
27110
+ voorraad_cleanup_old_rows: {
27111
+ Args: never;
27112
+ Returns: import("./types").Json;
27113
+ };
26674
27114
  wake_print_queue: {
26675
27115
  Args: {
26676
27116
  _min_interval_ms?: number;