@fhss-web-team/frontend-utils 21.4.0 → 21.4.2

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.
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { InjectionToken, Provider, ElementRef, WritableSignal, Injector, ValueEqualityFn, Signal } from '@angular/core';
2
+ import { InjectionToken, Provider, OnInit, OnDestroy, WritableSignal, Injector, ValueEqualityFn, Signal } from '@angular/core';
3
3
  import { UrlTree, CanActivateFn } from '@angular/router';
4
4
  import * as _angular_material_dialog from '@angular/material/dialog';
5
5
  import { Resolver } from '@trpc/client';
@@ -10,13 +10,6 @@ declare class ByuFooterComponent {
10
10
  static ɵcmp: i0.ɵɵComponentDeclaration<ByuFooterComponent, "byu-footer", never, {}, {}, never, never, true, never>;
11
11
  }
12
12
 
13
- type AuthUser = {
14
- id: string;
15
- preferredFirstName: string;
16
- preferredLastName: string;
17
- roles: string[];
18
- permissions: string[];
19
- };
20
13
  declare class AuthService {
21
14
  private readonly FhssConfig;
22
15
  private readonly readyPromise;
@@ -24,13 +17,25 @@ declare class AuthService {
24
17
  /**
25
18
  * Returns a promise that resolves when the authentication service is ready.
26
19
  */
27
- ready(): Promise<AuthUser | null>;
20
+ ready(): Promise<{
21
+ id: string;
22
+ preferredFirstName: string;
23
+ preferredLastName: string;
24
+ roles: string[];
25
+ permissions: string[];
26
+ } | null>;
28
27
  /**
29
28
  * Updates the authentication state by retrieving the current user's information.
30
29
  *
31
30
  * @returns A promise containing the current user's authentication details.
32
31
  */
33
- update(): Promise<AuthUser | null>;
32
+ update(): Promise<{
33
+ id: string;
34
+ preferredFirstName: string;
35
+ preferredLastName: string;
36
+ roles: string[];
37
+ permissions: string[];
38
+ } | null>;
34
39
  readonly authenticated: i0.WritableSignal<boolean>;
35
40
  readonly userId: i0.WritableSignal<string | undefined>;
36
41
  readonly preferredFirstName: i0.WritableSignal<string | undefined>;
@@ -189,18 +194,17 @@ declare class ComboBoxComponent {
189
194
  }
190
195
 
191
196
  declare const FHSS_CONFIG: InjectionToken<FhssConfig>;
192
- interface FhssConfig {
197
+ type FhssConfig = {
193
198
  rolePermissionMap: Record<string, string[]>;
194
- defaultHomePages: Record<string, string>;
195
- }
199
+ defaultHomePages: Partial<Record<string, string>>;
200
+ };
196
201
 
197
202
  declare const provideFhss: (config: FhssConfig) => Provider;
198
203
 
199
- declare class ScrollAnchorDirective {
204
+ declare class ScrollAnchorDirective implements OnInit, OnDestroy {
200
205
  private element;
201
206
  private readonly registery;
202
207
  scrollAnchor: i0.InputSignal<string>;
203
- constructor(element: ElementRef<HTMLElement>);
204
208
  ngOnInit(): void;
205
209
  ngOnDestroy(): void;
206
210
  static ɵfac: i0.ɵɵFactoryDeclaration<ScrollAnchorDirective, never>;
@@ -331,10 +335,10 @@ declare class ScrollRegistryService {
331
335
  }
332
336
 
333
337
  type ResolverDef = {
334
- input: any;
335
- output: any;
338
+ input: unknown;
339
+ output: unknown;
336
340
  transformer: boolean;
337
- errorShape: any;
341
+ errorShape: unknown;
338
342
  };
339
343
  type TrpcResourceOptions<TOutput> = {
340
344
  /**
@@ -378,7 +382,7 @@ type _TrpcResource<TDef extends ResolverDef> = {
378
382
  * Signal of the tRPC procedure output, when available.
379
383
  * This value will persist while the `trpcResource` is loading.
380
384
  */
381
- value: WritableSignal<TDef["output"] | undefined>;
385
+ value: WritableSignal<TDef['output'] | undefined>;
382
386
  /**
383
387
  * Signal of the tRPC procedure error, when available.
384
388
  */
@@ -408,442 +412,7 @@ declare function debugTrpcResource<TDef extends ResolverDef>(_trpcResource: Trpc
408
412
  isLoading: boolean;
409
413
  };
410
414
 
411
- type JsonValue = string | number | boolean | null | JsonArray | JsonObject;
412
- type JsonObject = {
413
- [key: string]: JsonValue;
414
- };
415
- type JsonArray = JsonValue[];
416
- type Json = JsonObject | JsonArray;
417
- type DefaultError = {
418
- code?: string;
419
- message?: string;
420
- details?: Json;
421
- };
422
- type KnownHeaderKeys = 'Accept' | 'Accept-Encoding' | 'Accept-Language' | 'Access-Control-Request-Headers' | 'Access-Control-Request-Method' | 'Authorization' | 'Cache-Control' | 'Connection' | 'Content-Encoding' | 'Content-Length' | 'Content-Type' | 'Cookie' | 'Date' | 'Expect' | 'Forwarded' | 'From' | 'Host' | 'If-Match' | 'If-Modified-Since' | 'If-None-Match' | 'If-Range' | 'If-Unmodified-Since' | 'Keep-Alive' | 'Max-Forwards' | 'Origin' | 'Prefer' | 'Priority' | 'Proxy-Authorization' | 'Range' | 'Referer' | 'TE' | 'Transfer-Encoding' | 'Upgrade' | 'User-Agent' | 'Via';
423
- /**
424
- * The structure of an `fetchSignal` request which will be sent to the backend via the Fetch API.
425
- */
426
- type FetchSignalRequest = {
427
- /**
428
- * URL of the request.
429
- *
430
- * This URL should not include query parameters. Instead, specify query parameters through the
431
- * `params` field.
432
- */
433
- url: string;
434
- /**
435
- * Body to send with the request, if there is one.
436
- *
437
- * If no Content-Type header is specified by the user, the Fetch API will attempt to set one based on
438
- * the type of `body`.
439
- */
440
- body?: BodyInit;
441
- /**
442
- * Dictionary of query parameters which will be appeneded to the request URL.
443
- */
444
- params?: Record<string, string | number | boolean | undefined> | undefined;
445
- /**
446
- * Dictionary of headers to include with the outgoing request.
447
- */
448
- headers?: (Partial<Record<KnownHeaderKeys, string | undefined>> & Record<string, string | undefined>) | undefined;
449
- };
450
- /**
451
- * String value capturing the status of a `FetchSignal`.
452
- *
453
- * Possible statuses are:
454
- *
455
- * `idle` - The fetch signal has no valid request and will not perform any loading. `value()` will be
456
- * `undefined`.
457
- *
458
- * `loading` - The fetch signal is currently loading a new value as a result of a change in its reactive
459
- * dependencies. `value()` will be `undefined`.
460
- *
461
- * `error` - Loading failed with an error. `value()` will be `undefined`.
462
- *
463
- * `resolved` - Loading has completed and the fetch signal has the value returned from the loader.
464
- *
465
- */
466
- type FetchSignalStatus = 'idle' | 'error' | 'loading' | 'resolved' | 'destroyed';
467
- type FetchSignalOptions<TResult, TRaw> = {
468
- /**
469
- * Whether or not the request should be fetched reactively when the request updates.
470
- */
471
- autoRefresh?: boolean;
472
- /**
473
- * NEEDS TO BE IMPLEMENTED. WILL NOT WORK
474
- *
475
- * Transform the response of the HTTP request before it's delivered to the fetch signal.
476
- *
477
- * `parse` receives the value from the HTTP layer as its raw type (e.g. as `unknown` for JSON data).
478
- * It can be used to validate or transform the type of the fetch signal, and return a more specific
479
- * type. This is also useful for validating backend responses using a runtime schema validation
480
- * library such as Zod.
481
- */
482
- parse?: ((value: TRaw) => TResult) | undefined;
483
- /**
484
- * Value that the fetch signal will take when in Idle or Loading states.
485
- *
486
- * If not set, the fetch signal will use `undefined` as its default value.
487
- */
488
- defaultValue?: NoInfer<TResult> | undefined;
489
- /**
490
- * The `Injector` in which to create the `FetchSignal`.
491
- *
492
- * If this is not provided, the current [injection context](https://angular.dev/guide/di/dependency-injection-context)
493
- * will be used instead (via `inject`).
494
- */
495
- injector?: Injector | undefined;
496
- /**
497
- * A comparison function which defines equality for the response value.
498
- */
499
- equal?: ValueEqualityFn<NoInfer<TResult | undefined>> | undefined;
500
- };
501
- /**
502
- * Represents the reactive result of an HTTP fetch request.
503
- */
504
- type FetchSignal<Response, ErrorResponse = DefaultError> = {
505
- /**
506
- * Signal of the HTTP response body when the response is `ok`, when available.
507
- * This value will persist while the fetchSignal is loading.
508
- */
509
- value: Signal<Response | undefined>;
510
- /**
511
- * Signal of the HTTP response body when the response is not `ok`, when available.
512
- * This response must be in the shape of JSON.
513
- */
514
- errorResponse: Signal<ErrorResponse | undefined>;
515
- /**
516
- * Whether this fetch signal is loading a new value (or reloading the existing one).
517
- */
518
- isLoading: Signal<boolean>;
519
- /**
520
- * Signal of the response status code, when available.
521
- */
522
- statusCode: Signal<number | undefined>;
523
- /**
524
- * Signal of the response headers, when available.
525
- */
526
- headers: Signal<Record<string, string> | undefined>;
527
- /**
528
- * The current status of the `FetchSignal`, which describes what the fetch signal is currently doing and
529
- * what can be expected of its `value`.
530
- */
531
- status: Signal<FetchSignalStatus>;
532
- /**
533
- * When in the `error` state, this returns the last known error from the `FetchSignal`.
534
- */
535
- error: Signal<Error | undefined>;
536
- /**
537
- * Instructs the fetchSignal to refetch the request with the current reactive dependencies
538
- * @param abortSignal Optional abort signal to abort the fetch request
539
- * @returns void
540
- */
541
- refresh: (abortSignal?: AbortSignal) => void;
542
- /**
543
- * Will clean up any effects and disable the fetchSignal.
544
- * All values will be undefined and the fetchSiganl will have no operations.
545
- * @returns void
546
- */
547
- destroy: () => void;
548
- };
549
- type FetchSignalFactory = {
550
- /**
551
- * Initiates a reactive HTTP GET request using the provided request configuration.
552
- *
553
- * @template Response - The expected response type.
554
- * @template ErrorResponse - The expected error shape (defaults to `DefaultError`).
555
- * @param request - The configuration object for the HTTP GET request.
556
- * @param options - Additional options to provide to the fetchSignal.
557
- * @returns A `FetchSignal` object containing reactive signals for the response data, loading state, status code, error, headers, and a refresh method.
558
- */
559
- <Response extends Json, ErrorResponse extends Json = DefaultError>(request: () => FetchSignalRequest, options?: FetchSignalOptions<Response, any>): FetchSignal<Response, ErrorResponse>;
560
- /**
561
- * Initiates a reactive HTTP GET request using the provided request configuration and parses the response as JSON.
562
- *
563
- * @template Response - The expected response type.
564
- * @template ErrorResponse - The expected error shape (defaults to `DefaultError`).
565
- * @param request - The configuration object for the HTTP GET request.
566
- * @param options - Additional options to provide to the fetchSignal.
567
- * @returns A `FetchSignal` object with the JSON-parsed response.
568
- */
569
- json: <Response extends Json, ErrorResponse extends Json = DefaultError>(request: () => FetchSignalRequest, options?: FetchSignalOptions<Response, any>) => FetchSignal<Response, ErrorResponse>;
570
- /**
571
- * Initiates a reactive HTTP GET request using the provided request configuration and parses the response as plain text.
572
- *
573
- * @template ErrorResponse - The expected error shape (defaults to `DefaultError`).
574
- * @param request - The configuration object for the HTTP GET request.
575
- * @param options - Additional options to provide to the fetchSignal.
576
- * @returns A `FetchSignal` object with the text response.
577
- */
578
- text: <ErrorResponse extends Json = DefaultError>(request: () => FetchSignalRequest, options?: FetchSignalOptions<string, string>) => FetchSignal<string, ErrorResponse>;
579
- /**
580
- * Initiates a reactive HTTP GET request using the provided request configuration and parses the response as a Blob.
581
- *
582
- * @template ErrorResponse - The expected error shape (defaults to `DefaultError`).
583
- * @param request - The configuration object for the HTTP GET request.
584
- * @param options - Additional options to provide to the fetchSignal.
585
- * @returns A `FetchSignal` object with the Blob response.
586
- */
587
- blob: <ErrorResponse extends Json = DefaultError>(request: () => FetchSignalRequest, options?: FetchSignalOptions<Blob, Blob>) => FetchSignal<Blob, ErrorResponse>;
588
- /**
589
- * Initiates a reactive HTTP GET request using the provided request configuration and parses the response as an ArrayBuffer.
590
- *
591
- * @template ErrorResponse - The expected error shape (defaults to `DefaultError`).
592
- * @param request - The configuration object for the HTTP GET request.
593
- * @param options - Additional options to provide to the fetchSignal.
594
- * @returns A `FetchSignal` object with the ArrayBuffer response.
595
- */
596
- arrayBuffer: <ErrorResponse extends Json = DefaultError>(request: () => FetchSignalRequest, options?: FetchSignalOptions<ArrayBuffer, ArrayBuffer>) => FetchSignal<ArrayBuffer, ErrorResponse>;
597
- get: {
598
- /**
599
- * Initiates a reactive HTTP GET request using the provided request configuration.
600
- *
601
- * @template Response - The expected response type.
602
- * @template ErrorResponse - The expected error shape (defaults to `DefaultError`).
603
- * @param request - The configuration object for the HTTP GET request.
604
- * @param options - Additional options to provide to the fetchSignal.
605
- * @returns A `FetchSignal` object containing reactive signals for the response data, loading state, status code, error, headers, and a refresh method.
606
- */
607
- <Response extends Json, ErrorResponse extends Json = DefaultError>(request: () => FetchSignalRequest, options?: FetchSignalOptions<Response, any>): FetchSignal<Response, ErrorResponse>;
608
- /**
609
- * Initiates a reactive HTTP GET request using the provided request configuration and parses the response as JSON.
610
- *
611
- * @template Response - The expected response type.
612
- * @template ErrorResponse - The expected error shape (defaults to `DefaultError`).
613
- * @param request - The configuration object for the HTTP GET request.
614
- * @param options - Additional options to provide to the fetchSignal.
615
- * @returns A `FetchSignal` object with the JSON-parsed response.
616
- */
617
- json: <Response extends Json, ErrorResponse extends Json = DefaultError>(request: () => FetchSignalRequest, options?: FetchSignalOptions<Response, any>) => FetchSignal<Response, ErrorResponse>;
618
- /**
619
- * Initiates a reactive HTTP GET request using the provided request configuration and parses the response as plain text.
620
- *
621
- * @template ErrorResponse - The expected error shape (defaults to `DefaultError`).
622
- * @param request - The configuration object for the HTTP GET request.
623
- * @param options - Additional options to provide to the fetchSignal.
624
- * @returns A `FetchSignal` object with the text response.
625
- */
626
- text: <ErrorResponse extends Json = DefaultError>(request: () => FetchSignalRequest, options?: FetchSignalOptions<string, string>) => FetchSignal<string, ErrorResponse>;
627
- /**
628
- * Initiates a reactive HTTP GET request using the provided request configuration and parses the response as a Blob.
629
- *
630
- * @template ErrorResponse - The expected error shape (defaults to `DefaultError`).
631
- * @param request - The configuration object for the HTTP GET request.
632
- * @param options - Additional options to provide to the fetchSignal.
633
- * @returns A `FetchSignal` object with the Blob response.
634
- */
635
- blob: <ErrorResponse extends Json = DefaultError>(request: () => FetchSignalRequest, options?: FetchSignalOptions<Blob, Blob>) => FetchSignal<Blob, ErrorResponse>;
636
- /**
637
- * Initiates a reactive HTTP GET request using the provided request configuration and parses the response as an ArrayBuffer.
638
- *
639
- * @template ErrorResponse - The expected error shape (defaults to `DefaultError`).
640
- * @param request - The configuration object for the HTTP GET request.
641
- * @param options - Additional options to provide to the fetchSignal.
642
- * @returns A `FetchSignal` object with the ArrayBuffer response.
643
- */
644
- arrayBuffer: <ErrorResponse extends Json = DefaultError>(request: () => FetchSignalRequest, options?: FetchSignalOptions<ArrayBuffer, ArrayBuffer>) => FetchSignal<ArrayBuffer, ErrorResponse>;
645
- };
646
- post: {
647
- /**
648
- * Initiates a reactive HTTP POST request using the provided request configuration.
649
- *
650
- * @template Response - The expected response type.
651
- * @template ErrorResponse - The expected error shape (defaults to `DefaultError`).
652
- * @param request - The configuration object for the HTTP POST request, which must include a body.
653
- * @param options - Additional options to provide to the fetchSignal.
654
- * @returns A `FetchSignal` object containing reactive signals for the response data, loading state, status code, error, headers, and a refresh method.
655
- */
656
- <Response extends Json, ErrorResponse extends Json = DefaultError>(request: () => FetchSignalRequest, options?: FetchSignalOptions<Response, any>): FetchSignal<Response, ErrorResponse>;
657
- /**
658
- * Initiates a reactive HTTP POST request using the provided request configuration and parses the response as JSON.
659
- *
660
- * @template Response - The expected response type.
661
- * @template ErrorResponse - The expected error shape (defaults to `DefaultError`).
662
- * @param request - The configuration object for the HTTP POST request, which must include a body.
663
- * @param options - Additional options to provide to the fetchSignal.
664
- * @returns A `FetchSignal` object with the JSON-parsed response.
665
- */
666
- json: <Response extends Json, ErrorResponse extends Json = DefaultError>(request: () => FetchSignalRequest, options?: FetchSignalOptions<Response, any>) => FetchSignal<Response, ErrorResponse>;
667
- /**
668
- * Initiates a reactive HTTP POST request using the provided request configuration and parses the response as plain text.
669
- *
670
- * @template ErrorResponse - The expected error shape (defaults to `DefaultError`).
671
- * @param request - The configuration object for the HTTP POST request, which must include a body.
672
- * @param options - Additional options to provide to the fetchSignal.
673
- * @returns A `FetchSignal` object with the text response.
674
- */
675
- text: <ErrorResponse extends Json = DefaultError>(request: () => FetchSignalRequest, options?: FetchSignalOptions<string, string>) => FetchSignal<string, ErrorResponse>;
676
- /**
677
- * Initiates a reactive HTTP POST request using the provided request configuration and parses the response as a Blob.
678
- *
679
- * @template ErrorResponse - The expected error shape (defaults to `DefaultError`).
680
- * @param request - The configuration object for the HTTP POST request, which must include a body.
681
- * @param options - Additional options to provide to the fetchSignal.
682
- * @returns A `FetchSignal` object with the Blob response.
683
- */
684
- blob: <ErrorResponse extends Json = DefaultError>(request: () => FetchSignalRequest, options?: FetchSignalOptions<Blob, Blob>) => FetchSignal<Blob, ErrorResponse>;
685
- /**
686
- * Initiates a reactive HTTP POST request using the provided request configuration and parses the response as an ArrayBuffer.
687
- *
688
- * @template ErrorResponse - The expected error shape (defaults to `DefaultError`).
689
- * @param request - The configuration object for the HTTP POST request, which must include a body.
690
- * @param options - Additional options to provide to the fetchSignal.
691
- * @returns A `FetchSignal` object with the ArrayBuffer response.
692
- */
693
- arrayBuffer: <ErrorResponse extends Json = DefaultError>(request: () => FetchSignalRequest, options?: FetchSignalOptions<ArrayBuffer, ArrayBuffer>) => FetchSignal<ArrayBuffer, ErrorResponse>;
694
- };
695
- put: {
696
- /**
697
- * Initiates a reactive HTTP PUT request using the provided request configuration.
698
- *
699
- * @template Response - The expected response type.
700
- * @template ErrorResponse - The expected error shape (defaults to `DefaultError`).
701
- * @param request - The configuration object for the HTTP PUT request, which must include a body.
702
- * @param options - Additional options to provide to the fetchSignal.
703
- * @returns A `FetchSignal` object containing reactive signals for the response data, loading state, status code, error, headers, and a refresh method.
704
- */
705
- <Response extends Json, ErrorResponse extends Json = DefaultError>(request: () => FetchSignalRequest, options?: FetchSignalOptions<Response, any>): FetchSignal<Response, ErrorResponse>;
706
- /**
707
- * Initiates a reactive HTTP PUT request using the provided request configuration and parses the response as JSON.
708
- *
709
- * @template Response - The expected response type.
710
- * @template ErrorResponse - The expected error shape (defaults to `DefaultError`).
711
- * @param request - The configuration object for the HTTP PUT request, which must include a body.
712
- * @param options - Additional options to provide to the fetchSignal.
713
- * @returns A `FetchSignal` object with the JSON-parsed response.
714
- */
715
- json: <Response extends Json, ErrorResponse extends Json = DefaultError>(request: () => FetchSignalRequest, options?: FetchSignalOptions<Response, any>) => FetchSignal<Response, ErrorResponse>;
716
- /**
717
- * Initiates a reactive HTTP PUT request using the provided request configuration and parses the response as plain text.
718
- *
719
- * @template ErrorResponse - The expected error shape (defaults to `DefaultError`).
720
- * @param request - The configuration object for the HTTP PUT request, which must include a body.
721
- * @param options - Additional options to provide to the fetchSignal.
722
- * @returns A `FetchSignal` object with the text response.
723
- */
724
- text: <ErrorResponse extends Json = DefaultError>(request: () => FetchSignalRequest, options?: FetchSignalOptions<string, string>) => FetchSignal<string, ErrorResponse>;
725
- /**
726
- * Initiates a reactive HTTP PUT request using the provided request configuration and parses the response as a Blob.
727
- *
728
- * @template ErrorResponse - The expected error shape (defaults to `DefaultError`).
729
- * @param request - The configuration object for the HTTP PUT request, which must include a body.
730
- * @param options - Additional options to provide to the fetchSignal.
731
- * @returns A `FetchSignal` object with the Blob response.
732
- */
733
- blob: <ErrorResponse extends Json = DefaultError>(request: () => FetchSignalRequest, options?: FetchSignalOptions<Blob, Blob>) => FetchSignal<Blob, ErrorResponse>;
734
- /**
735
- * Initiates a reactive HTTP PUT request using the provided request configuration and parses the response as an ArrayBuffer.
736
- *
737
- * @template ErrorResponse - The expected error shape (defaults to `DefaultError`).
738
- * @param request - The configuration object for the HTTP PUT request, which must include a body.
739
- * @param options - Additional options to provide to the fetchSignal.
740
- * @returns A `FetchSignal` object with the ArrayBuffer response.
741
- */
742
- arrayBuffer: <ErrorResponse extends Json = DefaultError>(request: () => FetchSignalRequest, options?: FetchSignalOptions<ArrayBuffer, ArrayBuffer>) => FetchSignal<ArrayBuffer, ErrorResponse>;
743
- };
744
- patch: {
745
- /**
746
- * Initiates a reactive HTTP PATCH request using the provided request configuration.
747
- *
748
- * @template Response - The expected response type.
749
- * @template ErrorResponse - The expected error shape (defaults to `DefaultError`).
750
- * @param request - The configuration object for the HTTP PATCH request, which must include a body.
751
- * @param options - Additional options to provide to the fetchSignal.
752
- * @returns A `FetchSignal` object containing reactive signals for the response data, loading state, status code, error, headers, and a refresh method.
753
- */
754
- <Response extends Json, ErrorResponse extends Json = DefaultError>(request: () => FetchSignalRequest, options?: FetchSignalOptions<Response, any>): FetchSignal<Response, ErrorResponse>;
755
- /**
756
- * Initiates a reactive HTTP PATCH request using the provided request configuration and parses the response as JSON.
757
- *
758
- * @template Response - The expected response type.
759
- * @template ErrorResponse - The expected error shape (defaults to `DefaultError`).
760
- * @param request - The configuration object for the HTTP PATCH request, which must include a body.
761
- * @param options - Additional options to provide to the fetchSignal.
762
- * @returns A `FetchSignal` object with the JSON-parsed response.
763
- */
764
- json: <Response extends Json, ErrorResponse extends Json = DefaultError>(request: () => FetchSignalRequest, options?: FetchSignalOptions<Response, any>) => FetchSignal<Response, ErrorResponse>;
765
- /**
766
- * Initiates a reactive HTTP PATCH request using the provided request configuration and parses the response as plain text.
767
- *
768
- * @template ErrorResponse - The expected error shape (defaults to `DefaultError`).
769
- * @param request - The configuration object for the HTTP PATCH request, which must include a body.
770
- * @param options - Additional options to provide to the fetchSignal.
771
- * @returns A `FetchSignal` object with the text response.
772
- */
773
- text: <ErrorResponse extends Json = DefaultError>(request: () => FetchSignalRequest, options?: FetchSignalOptions<string, string>) => FetchSignal<string, ErrorResponse>;
774
- /**
775
- * Initiates a reactive HTTP PATCH request using the provided request configuration and parses the response as a Blob.
776
- *
777
- * @template ErrorResponse - The expected error shape (defaults to `DefaultError`).
778
- * @param request - The configuration object for the HTTP PATCH request, which must include a body.
779
- * @param options - Additional options to provide to the fetchSignal.
780
- * @returns A `FetchSignal` object with the Blob response.
781
- */
782
- blob: <ErrorResponse extends Json = DefaultError>(request: () => FetchSignalRequest, options?: FetchSignalOptions<Blob, Blob>) => FetchSignal<Blob, ErrorResponse>;
783
- /**
784
- * Initiates a reactive HTTP PATCH request using the provided request configuration and parses the response as an ArrayBuffer.
785
- *
786
- * @template ErrorResponse - The expected error shape (defaults to `DefaultError`).
787
- * @param request - The configuration object for the HTTP PATCH request, which must include a body.
788
- * @param options - Additional options to provide to the fetchSignal.
789
- * @returns A `FetchSignal` object with the ArrayBuffer response.
790
- */
791
- arrayBuffer: <ErrorResponse extends Json = DefaultError>(request: () => FetchSignalRequest, options?: FetchSignalOptions<ArrayBuffer, ArrayBuffer>) => FetchSignal<ArrayBuffer, ErrorResponse>;
792
- };
793
- delete: {
794
- /**
795
- * Initiates a reactive HTTP DELETE request using the provided request configuration.
796
- *
797
- * @template Response - The expected response type.
798
- * @template ErrorResponse - The expected error shape (defaults to `DefaultError`).
799
- * @param request - The configuration object for the HTTP DELETE request.
800
- * @param options - Additional options to provide to the fetchSignal.
801
- * @returns A `FetchSignal` object containing reactive signals for the response data, loading state, status code, error, headers, and a refresh method.
802
- */
803
- <Response extends Json, ErrorResponse extends Json = DefaultError>(request: () => FetchSignalRequest, options?: FetchSignalOptions<Response, any>): FetchSignal<Response, ErrorResponse>;
804
- /**
805
- * Initiates a reactive HTTP DELETE request using the provided request configuration and parses the response as JSON.
806
- *
807
- * @template Response - The expected response type.
808
- * @template ErrorResponse - The expected error shape (defaults to `DefaultError`).
809
- * @param request - The configuration object for the HTTP DELETE request.
810
- * @param options - Additional options to provide to the fetchSignal.
811
- * @returns A `FetchSignal` object with the JSON-parsed response.
812
- */
813
- json: <Response extends Json, ErrorResponse extends Json = DefaultError>(request: () => FetchSignalRequest, options?: FetchSignalOptions<Response, any>) => FetchSignal<Response, ErrorResponse>;
814
- /**
815
- * Initiates a reactive HTTP DELETE request using the provided request configuration and parses the response as plain text.
816
- *
817
- * @template ErrorResponse - The expected error shape (defaults to `DefaultError`).
818
- * @param request - The configuration object for the HTTP DELETE request.
819
- * @param options - Additional options to provide to the fetchSignal.
820
- * @returns A `FetchSignal` object with the text response.
821
- */
822
- text: <ErrorResponse extends Json = DefaultError>(request: () => FetchSignalRequest, options?: FetchSignalOptions<string, string>) => FetchSignal<string, ErrorResponse>;
823
- /**
824
- * Initiates a reactive HTTP DELETE request using the provided request configuration and parses the response as a Blob.
825
- *
826
- * @template ErrorResponse - The expected error shape (defaults to `DefaultError`).
827
- * @param request - The configuration object for the HTTP DELETE request.
828
- * @param options - Additional options to provide to the fetchSignal.
829
- * @returns A `FetchSignal` object with the Blob response.
830
- */
831
- blob: <ErrorResponse extends Json = DefaultError>(request: () => FetchSignalRequest, options?: FetchSignalOptions<Blob, Blob>) => FetchSignal<Blob, ErrorResponse>;
832
- /**
833
- * Initiates a reactive HTTP DELETE request using the provided request configuration and parses the response as an ArrayBuffer.
834
- *
835
- * @template ErrorResponse - The expected error shape (defaults to `DefaultError`).
836
- * @param request - The configuration object for the HTTP DELETE request.
837
- * @param options - Additional options to provide to the fetchSignal.
838
- * @returns A `FetchSignal` object with the ArrayBuffer response.
839
- */
840
- arrayBuffer: <ErrorResponse extends Json = DefaultError>(request: () => FetchSignalRequest, options?: FetchSignalOptions<ArrayBuffer, ArrayBuffer>) => FetchSignal<ArrayBuffer, ErrorResponse>;
841
- };
842
- };
843
-
844
- declare const fetchSignal: FetchSignalFactory;
845
-
846
415
  declare const debounced: <T>(inputSignal: Signal<T>, wait?: number) => i0.WritableSignal<T>;
847
416
 
848
- export { AuthErrorPage, AuthService, ByuFooterComponent, ByuHeaderComponent, ComboBoxComponent, ConfirmationDialog, FHSS_CONFIG, ForbiddenPage, NotFoundPage, ScrollAnchorDirective, ScrollRegistryService, ServerErrorPage, authGuard, debounced, debugTrpcResource, downloadFileFrom, fetchSignal, getFileTypes, homeRedirectGuard, permissionGuard, provideFhss, trpcResource, uploadFile };
849
- export type { FhssConfig, HeaderConfig, Json, Option, UploadError };
417
+ export { AuthErrorPage, AuthService, ByuFooterComponent, ByuHeaderComponent, ComboBoxComponent, ConfirmationDialog, FHSS_CONFIG, ForbiddenPage, NotFoundPage, ScrollAnchorDirective, ScrollRegistryService, ServerErrorPage, authGuard, debounced, debugTrpcResource, downloadFileFrom, getFileTypes, homeRedirectGuard, permissionGuard, provideFhss, trpcResource, uploadFile };
418
+ export type { FhssConfig, HeaderConfig, Option, UploadError };