@coolms/core-angular 2.0.0-alpha.7 → 2.0.0-alpha.8
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.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coolms/core-angular",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.8",
|
|
4
4
|
"description": "The CoolMS client runtime for Angular: session and token refresh, boot manifest and app configuration, theme, user preferences, error handling, HTTP interceptors, and the wire types the CoolMS API emits.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
@@ -494,6 +494,20 @@ export type AuthAudience = 'admin' | 'workspace';
|
|
|
494
494
|
* None by default: an application that provides none signs in as before, naming no audience.
|
|
495
495
|
*/
|
|
496
496
|
export declare const AUTH_AUDIENCE: InjectionToken<AuthAudience | null>;
|
|
497
|
+
/** One declared setting as the server reads it for the person: the value in force, and what they set themselves. */
|
|
498
|
+
export interface DeclaredSettingKey {
|
|
499
|
+
readonly key: string;
|
|
500
|
+
/** The value in force: the person's own, else the installation's. */
|
|
501
|
+
readonly value: unknown;
|
|
502
|
+
/** What the person set themselves; null when they set nothing and the installation's value applies. */
|
|
503
|
+
readonly own: unknown;
|
|
504
|
+
readonly locked: boolean;
|
|
505
|
+
}
|
|
506
|
+
/** One section of the person's declared settings. */
|
|
507
|
+
export interface DeclaredSettingsSection {
|
|
508
|
+
readonly section: string;
|
|
509
|
+
readonly keys: ReadonlyArray<DeclaredSettingKey>;
|
|
510
|
+
}
|
|
497
511
|
/**
|
|
498
512
|
* The identity endpoints core owns: the session lifecycle, plus the settings
|
|
499
513
|
* read at boot.
|
|
@@ -529,6 +543,11 @@ export declare class IdentityApiClient {
|
|
|
529
543
|
* is kept past the answer, so a save is never hidden behind an old read.
|
|
530
544
|
*/
|
|
531
545
|
getSettings(): Observable<Record<string, Record<string, unknown>>>;
|
|
546
|
+
/**
|
|
547
|
+
* The person's settings as declared: each section's keys with the value in force and the person's own (null when
|
|
548
|
+
* they set none). `host` picks the sections a host reads (`console` for the admin); none gives every section.
|
|
549
|
+
*/
|
|
550
|
+
getDeclaredSettings(host?: string): Observable<ReadonlyArray<DeclaredSettingsSection>>;
|
|
532
551
|
static ɵfac: i0.ɵɵFactoryDeclaration<IdentityApiClient, never>;
|
|
533
552
|
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
534
553
|
}
|
|
@@ -1072,6 +1091,17 @@ export declare class ElevationService {
|
|
|
1072
1091
|
* so subscribers that refetch a listing on it never refetch for no reason.
|
|
1073
1092
|
*/
|
|
1074
1093
|
readonly changes$: Subject<ElevationChange>;
|
|
1094
|
+
private readonly retriesWaiting;
|
|
1095
|
+
/**
|
|
1096
|
+
* How many refused writes wait to be sent again: each is counted from the moment its refusal is taken up, before
|
|
1097
|
+
* any prompt opens, until its repeat has answered or the person declined. A view that reloads after a grant waits
|
|
1098
|
+
* for 0, so the reload never cancels a repeat in flight.
|
|
1099
|
+
*/
|
|
1100
|
+
readonly retriesPending: import("@angular/core").Signal<number>;
|
|
1101
|
+
/** Each time the last refused write waiting for its repeat stops waiting: `retriesPending` has come back to 0. */
|
|
1102
|
+
readonly retriesSettled$: Subject<void>;
|
|
1103
|
+
/** Counts one refused write as waiting for its repeat; the function returned ends that count, once. */
|
|
1104
|
+
holdForRetry(): () => void;
|
|
1075
1105
|
private expiryTimer;
|
|
1076
1106
|
private pendingPrompt;
|
|
1077
1107
|
private expiryAnnouncePending;
|