ngssm-remote-data 22.0.1 → 22.2.0

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,153 +1,149 @@
1
- import * as i0 from '@angular/core';
2
- import { InjectionToken, EnvironmentProviders, Type, Provider } from '@angular/core';
3
- import { Observable } from 'rxjs';
4
- import { Spec } from 'immutability-helper';
5
- import { State, Action, StateInitializer, ActionDispatcher, Logger } from 'ngssm-store';
6
- import { ActivatedRouteSnapshot, UrlTree } from '@angular/router';
7
- import { HttpErrorResponse } from '@angular/common/http';
8
- import { NgssmNotifierService } from 'ngssm-toolkit';
9
-
10
- declare enum DataStatus {
11
- none = "None",
12
- loading = "Loading",
13
- loaded = "Loaded",
14
- notFound = "NotFound",
15
- error = "Error"
1
+ import * as i0 from "@angular/core";
2
+ import { EnvironmentProviders, InjectionToken, Provider, Type } from "@angular/core";
3
+ import { Observable } from "rxjs";
4
+ import { Spec } from "immutability-helper";
5
+ import { Action, ActionDispatcher, Logger, State, StateInitializer } from "ngssm-store";
6
+ import { ActivatedRouteSnapshot, UrlTree } from "@angular/router";
7
+ import { HttpErrorResponse } from "@angular/common/http";
8
+ import { NgssmNotifierService } from "ngssm-toolkit";
9
+ export declare enum DataStatus {
10
+ none = "None",
11
+ loading = "Loading",
12
+ loaded = "Loaded",
13
+ notFound = "NotFound",
14
+ error = "Error"
16
15
  }
17
-
18
- interface RemoteCallError {
19
- type?: string;
20
- title?: string;
21
- status?: number;
22
- traceId?: string;
23
- errors?: Record<string, string[]>;
16
+ export interface RemoteCallError {
17
+ type?: string;
18
+ title?: string;
19
+ status?: number;
20
+ traceId?: string;
21
+ errors?: Record<string, string[]>;
24
22
  }
25
-
26
- interface RemoteDataGetterParams<TData = unknown> {
27
- serviceParams: TData;
28
- callbackAction?: string;
29
- errorNotificationMessage?: (remoteCallError?: RemoteCallError) => string;
23
+ export interface RemoteDataGetterParams<TData = unknown> {
24
+ serviceParams: TData;
25
+ callbackAction?: string;
26
+ errorNotificationMessage?: (remoteCallError?: RemoteCallError) => string;
30
27
  }
31
-
32
- interface RemoteData<TData = unknown, TGetterParams = unknown> {
33
- status: DataStatus;
34
- data?: TData;
35
- timestamp?: Date;
36
- message?: string;
37
- error?: RemoteCallError;
38
- getterParams?: RemoteDataGetterParams<TGetterParams>;
28
+ export interface RemoteData<TData = unknown, TGetterParams = unknown> {
29
+ status: DataStatus;
30
+ data?: TData;
31
+ timestamp?: Date;
32
+ message?: string;
33
+ error?: RemoteCallError;
34
+ getterParams?: RemoteDataGetterParams<TGetterParams>;
39
35
  }
40
- declare const getDefaultRemoteData: <T>(defaultValue?: T, defaultStatus?: DataStatus) => RemoteData<T>;
41
-
42
- interface RemoteDataProvider<TData = unknown, TValue = unknown> {
43
- readonly remoteDataKey: string;
44
- readonly cacheDurationInSeconds?: number;
45
- get(params?: RemoteDataGetterParams<TValue>): Observable<TData>;
36
+ export declare const getDefaultRemoteData: <T>(defaultValue?: T, defaultStatus?: DataStatus) => RemoteData<T>;
37
+ export interface RemoteDataProvider<TData = unknown, TValue = unknown> {
38
+ readonly remoteDataKey: string;
39
+ readonly cacheDurationInSeconds?: number;
40
+ get(params?: RemoteDataGetterParams<TValue>): Observable<TData>;
46
41
  }
47
- declare const NGSSM_REMOTE_DATA_PROVIDER: InjectionToken<RemoteDataProvider<unknown, unknown>>;
48
- declare const provideRemoteDataProviders: (...providers: Type<RemoteDataProvider>[]) => EnvironmentProviders;
49
- type RemoteDataLoadingFunc<TData = unknown, TValue = unknown> = (params?: RemoteDataGetterParams<TValue>) => Observable<TData>;
50
- declare const provideRemoteDataFunc: <TData = unknown, TValue = unknown>(remoteDataKey: string, remoteDataLoadingFunc: RemoteDataLoadingFunc<TData, TValue>, cacheDurationInSeconds?: number) => EnvironmentProviders;
51
-
52
- interface ReloadParams<TValue = unknown> {
53
- forceReload: boolean;
54
- params?: RemoteDataGetterParams<TValue>;
55
- keepStoredGetterParams?: boolean;
42
+ export declare const NGSSM_REMOTE_DATA_PROVIDER: InjectionToken<RemoteDataProvider<unknown, unknown>>;
43
+ export declare const provideRemoteDataProviders: (...providers: Type<RemoteDataProvider>[]) => EnvironmentProviders;
44
+ export type RemoteDataLoadingFunc<TData = unknown, TValue = unknown> = (params?: RemoteDataGetterParams<TValue>) => Observable<TData>;
45
+ export declare const provideRemoteDataFunc: <TData = unknown, TValue = unknown>(remoteDataKey: string, remoteDataLoadingFunc: RemoteDataLoadingFunc<TData, TValue>, cacheDurationInSeconds?: number) => EnvironmentProviders;
46
+ export interface ReloadParams<TValue = unknown> {
47
+ forceReload: boolean;
48
+ params?: RemoteDataGetterParams<TValue>;
49
+ keepStoredGetterParams?: boolean;
56
50
  }
57
-
58
- declare const selectRemoteDataState: (state: State) => RemoteDataState;
59
- declare const updateRemoteDataState: (state: State, command: Spec<RemoteDataState, never>) => State;
60
- type RemoteDataState = Record<string, RemoteData<unknown>>;
61
- declare class RemoteDataStateSpecification {
62
- static readonly featureStateKey = "remote-data-state";
63
- static readonly initialState: RemoteDataState;
51
+ export declare const selectRemoteDataState: (state: State) => RemoteDataState;
52
+ export declare const updateRemoteDataState: (state: State, command: Spec<RemoteDataState, never>) => State;
53
+ export type RemoteDataState = Record<string, RemoteData<unknown>>;
54
+ export declare class RemoteDataStateSpecification {
55
+ static readonly featureStateKey = "remote-data-state";
56
+ static readonly initialState: RemoteDataState;
64
57
  }
65
-
66
- declare const selectRemoteData: <TData = unknown>(state: State, remoteDataKey: string) => RemoteData<TData> | undefined;
67
-
68
- declare enum RemoteDataActionType {
69
- loadRemoteData = "[RemoteDataActionType] loadRemoteData",
70
- registerLoadedRemoteData = "[RemoteDataActionType] registerLoadedRemoteData",
71
- displayCaches = "[RemoteDataActionType] displayCaches",
72
- closeCachesComponent = "[RemoteDataActionType] closeCachesComponent"
58
+ export declare const selectRemoteData: <TData = unknown>(state: State, remoteDataKey: string) => RemoteData<TData> | undefined;
59
+ export declare enum RemoteDataActionType {
60
+ loadRemoteData = "[RemoteDataActionType] loadRemoteData",
61
+ registerLoadedRemoteData = "[RemoteDataActionType] registerLoadedRemoteData",
62
+ displayCaches = "[RemoteDataActionType] displayCaches",
63
+ closeCachesComponent = "[RemoteDataActionType] closeCachesComponent"
73
64
  }
74
-
75
- declare class LoadRemoteDataAction<TValue = unknown> implements Action {
76
- readonly remoteDataKey: string;
77
- readonly params?: ReloadParams<TValue> | undefined;
78
- readonly type: string;
79
- constructor(remoteDataKey: string, params?: ReloadParams<TValue> | undefined);
65
+ export declare class LoadRemoteDataAction<TValue = unknown> implements Action {
66
+ readonly remoteDataKey: string;
67
+ readonly params?: ReloadParams<TValue> | undefined;
68
+ readonly type: string;
69
+ constructor(remoteDataKey: string, params?: ReloadParams<TValue> | undefined);
80
70
  }
81
-
82
- declare class RegisterLoadedRemoteDataAction<T = unknown> implements Action {
83
- readonly remoteDataKey: string;
84
- readonly status: DataStatus;
85
- readonly data: T;
86
- readonly message?: string | undefined;
87
- readonly remoteCallError?: RemoteCallError | undefined;
88
- readonly type: string;
89
- constructor(remoteDataKey: string, status: DataStatus, data: T, message?: string | undefined, remoteCallError?: RemoteCallError | undefined);
71
+ export declare class RegisterLoadedRemoteDataAction<T = unknown> implements Action {
72
+ readonly remoteDataKey: string;
73
+ readonly status: DataStatus;
74
+ readonly data: T;
75
+ readonly message?: string | undefined;
76
+ readonly remoteCallError?: RemoteCallError | undefined;
77
+ readonly type: string;
78
+ constructor(remoteDataKey: string, status: DataStatus, data: T, message?: string | undefined, remoteCallError?: RemoteCallError | undefined);
90
79
  }
91
-
92
- interface RemoteDataLoadingGuardItem {
93
- remoteDataKey: string;
94
- forceReload?: boolean;
80
+ export interface RemoteDataLoadingGuardItem {
81
+ remoteDataKey: string;
82
+ forceReload?: boolean;
95
83
  }
96
- interface RemoteDataLoadingGuardParameters {
97
- remoteDataItems: RemoteDataLoadingGuardItem[];
84
+ export interface RemoteDataLoadingGuardParameters {
85
+ remoteDataItems: RemoteDataLoadingGuardItem[];
98
86
  }
99
- declare class RemoteDataLoadingGuard {
100
- private readonly store;
101
- canActivate(route: ActivatedRouteSnapshot): Observable<boolean | UrlTree> | Promise<boolean | UrlTree> | boolean | UrlTree;
102
- static ɵfac: i0.ɵɵFactoryDeclaration<RemoteDataLoadingGuard, never>;
103
- static ɵprov: i0.ɵɵInjectableDeclaration<RemoteDataLoadingGuard>;
87
+ export declare class RemoteDataLoadingGuard {
88
+ private readonly store;
89
+ canActivate(route: ActivatedRouteSnapshot): Observable<boolean | UrlTree> | Promise<boolean | UrlTree> | boolean | UrlTree;
90
+ static ɵfac: i0.ɵɵFactoryDeclaration<RemoteDataLoadingGuard, never>;
91
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
104
92
  }
105
- declare const ngssmReloadRemoteData: <TData = unknown>(remoteDataKey: string, params?: ReloadParams<TData>) => (() => boolean);
106
-
107
- declare class NgssmRemoteDataReloadButtonComponent {
108
- readonly tooltipMessage: i0.WritableSignal<string>;
109
- readonly disabled: i0.WritableSignal<boolean>;
110
- readonly inLoadingStatus: i0.WritableSignal<boolean>;
111
- actionTypes: i0.InputSignal<string[]>;
112
- remoteDataKeys: i0.InputSignal<string[]>;
113
- private readonly store;
114
- private readonly remoteDataState;
115
- constructor();
116
- reload(): void;
117
- static ɵfac: i0.ɵɵFactoryDeclaration<NgssmRemoteDataReloadButtonComponent, never>;
118
- static ɵcmp: i0.ɵɵComponentDeclaration<NgssmRemoteDataReloadButtonComponent, "ngssm-remote-data-reload-button", never, { "actionTypes": { "alias": "actionTypes"; "required": false; "isSignal": true; }; "remoteDataKeys": { "alias": "remoteDataKeys"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
93
+ export declare const ngssmReloadRemoteData: <TData = unknown>(remoteDataKey: string, params?: ReloadParams<TData>) => (() => boolean);
94
+ export declare class NgssmRemoteDataReloadButtonComponent {
95
+ readonly tooltipMessage: import("@angular/core").WritableSignal<string>;
96
+ readonly disabled: import("@angular/core").WritableSignal<boolean>;
97
+ readonly inLoadingStatus: import("@angular/core").WritableSignal<boolean>;
98
+ actionTypes: import("@angular/core").InputSignal<string[]>;
99
+ remoteDataKeys: import("@angular/core").InputSignal<string[]>;
100
+ private readonly store;
101
+ private readonly remoteDataState;
102
+ constructor();
103
+ reload(): void;
104
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgssmRemoteDataReloadButtonComponent, never>;
105
+ static ɵcmp: i0.ɵɵComponentDeclaration<NgssmRemoteDataReloadButtonComponent, "ngssm-remote-data-reload-button", never, {
106
+ "actionTypes": {
107
+ "alias": "actionTypes";
108
+ "required": false;
109
+ "isSignal": true;
110
+ };
111
+ "remoteDataKeys": {
112
+ "alias": "remoteDataKeys";
113
+ "required": false;
114
+ "isSignal": true;
115
+ };
116
+ }, {}, never, never, true, never>;
119
117
  }
120
-
121
- declare class NgssmCachesDisplayButtonComponent {
122
- private readonly store;
123
- displayCaches(): void;
124
- static ɵfac: i0.ɵɵFactoryDeclaration<NgssmCachesDisplayButtonComponent, never>;
125
- static ɵcmp: i0.ɵɵComponentDeclaration<NgssmCachesDisplayButtonComponent, "ngssm-caches-display-button", never, {}, {}, never, never, true, never>;
118
+ export declare class NgssmCachesDisplayButtonComponent {
119
+ private readonly store;
120
+ displayCaches(): void;
121
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgssmCachesDisplayButtonComponent, never>;
122
+ static ɵcmp: i0.ɵɵComponentDeclaration<NgssmCachesDisplayButtonComponent, "ngssm-caches-display-button", never, {}, {}, never, never, true, never>;
126
123
  }
127
-
128
124
  interface Cache {
129
- key: string;
130
- value: RemoteData;
125
+ key: string;
126
+ value: RemoteData;
131
127
  }
132
- declare class NgssmCachesComponent {
133
- readonly caches: i0.Signal<Cache[]>;
134
- readonly dataStatus: typeof DataStatus;
135
- private readonly store;
136
- close(): void;
137
- reloadCache(cache: Cache): void;
138
- static ɵfac: i0.ɵɵFactoryDeclaration<NgssmCachesComponent, never>;
139
- static ɵcmp: i0.ɵɵComponentDeclaration<NgssmCachesComponent, "ngssm-caches", never, {}, {}, never, never, true, never>;
128
+ export declare class NgssmCachesComponent {
129
+ readonly caches: import("@angular/core").Signal<Cache[]>;
130
+ readonly dataStatus: typeof DataStatus;
131
+ private readonly store;
132
+ close(): void;
133
+ reloadCache(cache: Cache): void;
134
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgssmCachesComponent, never>;
135
+ static ɵcmp: i0.ɵɵComponentDeclaration<NgssmCachesComponent, "ngssm-caches", never, {}, {}, never, never, true, never>;
140
136
  }
141
-
142
- declare const provideNgssmRemoteData: () => EnvironmentProviders;
143
-
144
- declare const provideNgssmRemoteCall: () => EnvironmentProviders;
145
-
146
- declare enum RemoteCallStatus {
147
- none = "None",// No call has been made yet
148
- inProgress = "In progress",// The remote call is currently in progress
149
- done = "Done",// The remote call completed successfully
150
- ko = "Ko"
137
+ export declare const provideNgssmRemoteData: () => EnvironmentProviders;
138
+ export declare const provideNgssmRemoteCall: () => EnvironmentProviders;
139
+ export declare enum RemoteCallStatus {
140
+ none = "None" // No call has been made yet
141
+ ,
142
+ inProgress = "In progress" // The remote call is currently in progress
143
+ ,
144
+ done = "Done" // The remote call completed successfully
145
+ ,
146
+ ko = "Ko"
151
147
  }
152
148
  /**
153
149
  * Describes the state and result of a remote call, including error information if applicable.
@@ -156,65 +152,61 @@ declare enum RemoteCallStatus {
156
152
  * Only the processRemoteCallError helper sets this property.
157
153
  * The service RemoteCallResultProcessor which must be used instead of the helper does not set this property.
158
154
  */
159
- interface RemoteCall<TErrorType = unknown> {
160
- status: RemoteCallStatus;
161
- httpErrorResponse?: HttpErrorResponse;
162
- message?: string;
163
- error?: TErrorType;
155
+ export interface RemoteCall<TErrorType = unknown> {
156
+ status: RemoteCallStatus;
157
+ httpErrorResponse?: HttpErrorResponse;
158
+ message?: string;
159
+ error?: TErrorType;
164
160
  }
165
161
  /**
166
162
  * Returns a default RemoteCall object with the specified status (defaults to 'none').
167
163
  * @param status The status to set for the remote call.
168
164
  * @returns A RemoteCall object with the given status.
169
165
  */
170
- declare const getDefaultRemoteCall: (status?: RemoteCallStatus) => RemoteCall;
171
-
172
- declare const selectRemoteCall: (state: State, id: string) => RemoteCall;
166
+ export declare const getDefaultRemoteCall: (status?: RemoteCallStatus) => RemoteCall;
167
+ export declare const selectRemoteCall: (state: State, id: string) => RemoteCall;
173
168
  /**
174
169
  * Returns true if the specified remote call is currently in progress, false otherwise.
175
170
  * @param state The global application state.
176
171
  * @param remoteCallId The unique id of the remote call.
177
172
  */
178
- declare const isNgssmRemoteCallInProgress: (state: State, remoteCallId: string) => boolean;
179
-
180
- declare class NgssmRemoteCallStateInitializer implements StateInitializer {
181
- private readonly remoteCallConfigs;
182
- initializeState(state: State): State;
183
- static ɵfac: i0.ɵɵFactoryDeclaration<NgssmRemoteCallStateInitializer, never>;
184
- static ɵprov: i0.ɵɵInjectableDeclaration<NgssmRemoteCallStateInitializer>;
173
+ export declare const isNgssmRemoteCallInProgress: (state: State, remoteCallId: string) => boolean;
174
+ export declare class NgssmRemoteCallStateInitializer implements StateInitializer {
175
+ private readonly remoteCallConfigs;
176
+ initializeState(state: State): State;
177
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgssmRemoteCallStateInitializer, never>;
178
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
185
179
  }
186
-
187
- interface ProblemDetails<TError = unknown> {
188
- /**
189
- * A URI reference that identifies the problem type.
190
- */
191
- type?: string;
192
- /**
193
- * A short, human-readable summary of the problem type.
194
- */
195
- title?: string;
196
- /**
197
- * The HTTP status code generated by the origin server for this occurrence of the problem.
198
- */
199
- status?: number;
200
- /**
201
- * A human-readable explanation specific to this occurrence of the problem.
202
- */
203
- detail?: string;
204
- /**
205
- * A URI reference that identifies the specific occurrence of the problem.
206
- */
207
- instance?: string;
208
- /**
209
- * A unique identifier for tracing the request (often used for logging and debugging).
210
- */
211
- traceId?: string;
212
- /**
213
- * A map of error details, typically used for validation errors.
214
- */
215
- errors?: Record<string, TError>;
180
+ export interface ProblemDetails<TError = unknown> {
181
+ /**
182
+ * A URI reference that identifies the problem type.
183
+ */
184
+ type?: string;
185
+ /**
186
+ * A short, human-readable summary of the problem type.
187
+ */
188
+ title?: string;
189
+ /**
190
+ * The HTTP status code generated by the origin server for this occurrence of the problem.
191
+ */
192
+ status?: number;
193
+ /**
194
+ * A human-readable explanation specific to this occurrence of the problem.
195
+ */
196
+ detail?: string;
197
+ /**
198
+ * A URI reference that identifies the specific occurrence of the problem.
199
+ */
200
+ instance?: string;
201
+ /**
202
+ * A unique identifier for tracing the request (often used for logging and debugging).
203
+ */
204
+ traceId?: string;
205
+ /**
206
+ * A map of error details, typically used for validation errors.
207
+ */
208
+ errors?: Record<string, TError>;
216
209
  }
217
-
218
210
  /**
219
211
  * Represents an action that encapsulates the result of a remote call.
220
212
  *
@@ -227,21 +219,21 @@ interface ProblemDetails<TError = unknown> {
227
219
  * @param type - The type of the action.
228
220
  * @param remoteCall - The remote call instance containing the result details.
229
221
  */
230
- declare class NgssmRemoteCallResultAction implements Action {
231
- readonly type: string;
232
- readonly remoteCall: RemoteCall;
233
- constructor(type: string, remoteCall: RemoteCall);
222
+ export declare class NgssmRemoteCallResultAction implements Action {
223
+ readonly type: string;
224
+ readonly remoteCall: RemoteCall;
225
+ constructor(type: string, remoteCall: RemoteCall);
234
226
  }
235
- interface RemoteCallConfig {
236
- id: string;
237
- triggeredActionTypes: string[];
238
- resultActionTypes: string[];
227
+ export interface RemoteCallConfig {
228
+ id: string;
229
+ triggeredActionTypes: string[];
230
+ resultActionTypes: string[];
239
231
  }
240
232
  /**
241
233
  * Injection token for providing NGSSM remote call configuration.
242
234
  * Used to register and inject RemoteCallConfig objects in Angular's dependency injection system.
243
235
  */
244
- declare const NGSSM_REMOTE_CALL_CONFIG: InjectionToken<RemoteCallConfig>;
236
+ export declare const NGSSM_REMOTE_CALL_CONFIG: InjectionToken<RemoteCallConfig>;
245
237
  /**
246
238
  * Provides the configuration for NGSSM remote calls as an Angular provider.
247
239
  *
@@ -252,16 +244,15 @@ declare const NGSSM_REMOTE_CALL_CONFIG: InjectionToken<RemoteCallConfig>;
252
244
  * This function is intended to be used in Angular module providers to register
253
245
  * multiple remote call configurations using the `multi: true` option.
254
246
  */
255
- declare const provideNgssmRemoteCallConfig: (config: RemoteCallConfig) => Provider;
256
-
257
- declare class RemoteCallResultProcessor {
258
- private readonly logger;
259
- private readonly injector;
260
- private readonly notifier;
261
- processRemoteCallError(remoteCallId: string, error: HttpErrorResponse, errorMessage: string): void;
262
- processRemoteCallSuccess(remoteCallId: string, message: string): void;
263
- static ɵfac: i0.ɵɵFactoryDeclaration<RemoteCallResultProcessor, never>;
264
- static ɵprov: i0.ɵɵInjectableDeclaration<RemoteCallResultProcessor>;
247
+ export declare const provideNgssmRemoteCallConfig: (config: RemoteCallConfig) => Provider;
248
+ export declare class RemoteCallResultProcessor {
249
+ private readonly logger;
250
+ private readonly injector;
251
+ private readonly notifier;
252
+ processRemoteCallError(remoteCallId: string, error: HttpErrorResponse, errorMessage: string): void;
253
+ processRemoteCallSuccess(remoteCallId: string, message: string): void;
254
+ static ɵfac: i0.ɵɵFactoryDeclaration<RemoteCallResultProcessor, never>;
255
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
265
256
  }
266
257
  /**
267
258
  * Helper method to process http error.
@@ -275,37 +266,37 @@ declare class RemoteCallResultProcessor {
275
266
  * @param logger The logger.
276
267
  * @param notifier The message notifier.
277
268
  */
278
- declare const processRemoteCallError: (error: HttpErrorResponse, errorMessage: string, remoteCallId: string, actionDispatcher: ActionDispatcher, logger: Logger, notifier: NgssmNotifierService) => void;
279
-
280
- declare enum NgssmRemoteCallActionType {
281
- setRemoteCall = "[NgssmRemoteCallActionType] setRemoteCall"
269
+ export declare const processRemoteCallError: (error: HttpErrorResponse, errorMessage: string, remoteCallId: string, actionDispatcher: ActionDispatcher, logger: Logger, notifier: NgssmNotifierService) => void;
270
+ export declare enum NgssmRemoteCallActionType {
271
+ setRemoteCall = "[NgssmRemoteCallActionType] setRemoteCall"
282
272
  }
283
- declare class SetRemoteCallAction implements Action {
284
- readonly remoteCallId: string;
285
- readonly remoteCall: RemoteCall;
286
- readonly type: string;
287
- constructor(remoteCallId: string, remoteCall: RemoteCall);
273
+ export declare class SetRemoteCallAction implements Action {
274
+ readonly remoteCallId: string;
275
+ readonly remoteCall: RemoteCall;
276
+ readonly type: string;
277
+ constructor(remoteCallId: string, remoteCall: RemoteCall);
288
278
  }
289
-
290
- declare class NgssmRemoteCallErrorComponent {
291
- readonly remoteCallId: i0.InputSignal<string>;
292
- readonly errorContainerRendered: i0.WritableSignal<boolean>;
293
- readonly errorDescription: i0.WritableSignal<string>;
294
- private readonly remoteCalls;
295
- constructor();
296
- static ɵfac: i0.ɵɵFactoryDeclaration<NgssmRemoteCallErrorComponent, never>;
297
- static ɵcmp: i0.ɵɵComponentDeclaration<NgssmRemoteCallErrorComponent, "ngssm-remote-call-error", never, { "remoteCallId": { "alias": "remoteCallId"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
279
+ export declare class NgssmRemoteCallErrorComponent {
280
+ readonly remoteCallId: import("@angular/core").InputSignal<string>;
281
+ readonly errorContainerRendered: import("@angular/core").WritableSignal<boolean>;
282
+ readonly errorDescription: import("@angular/core").WritableSignal<string>;
283
+ private readonly remoteCalls;
284
+ constructor();
285
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgssmRemoteCallErrorComponent, never>;
286
+ static ɵcmp: i0.ɵɵComponentDeclaration<NgssmRemoteCallErrorComponent, "ngssm-remote-call-error", never, {
287
+ "remoteCallId": {
288
+ "alias": "remoteCallId";
289
+ "required": false;
290
+ "isSignal": true;
291
+ };
292
+ }, {}, never, never, true, never>;
298
293
  }
299
-
300
- declare const selectNgssmRemoteCallState: (state: State) => NgssmRemoteCallState;
301
- declare const updateNgssmRemoteCallState: (state: State, command: Spec<NgssmRemoteCallState, never>) => State;
302
- interface NgssmRemoteCallState {
303
- remoteCalls: Record<string, RemoteCall>;
294
+ export declare const selectNgssmRemoteCallState: (state: State) => NgssmRemoteCallState;
295
+ export declare const updateNgssmRemoteCallState: (state: State, command: Spec<NgssmRemoteCallState, never>) => State;
296
+ export interface NgssmRemoteCallState {
297
+ remoteCalls: Record<string, RemoteCall>;
304
298
  }
305
- declare class NgssmRemoteCallStateSpecification {
306
- static readonly featureStateKey = "ngssm-remote-call-state";
307
- static readonly initialState: NgssmRemoteCallState;
308
- }
309
-
310
- export { DataStatus, LoadRemoteDataAction, NGSSM_REMOTE_CALL_CONFIG, NGSSM_REMOTE_DATA_PROVIDER, NgssmCachesComponent, NgssmCachesDisplayButtonComponent, NgssmRemoteCallActionType, NgssmRemoteCallErrorComponent, NgssmRemoteCallResultAction, NgssmRemoteCallStateInitializer, NgssmRemoteCallStateSpecification, NgssmRemoteDataReloadButtonComponent, RegisterLoadedRemoteDataAction, RemoteCallResultProcessor, RemoteCallStatus, RemoteDataActionType, RemoteDataLoadingGuard, RemoteDataStateSpecification, SetRemoteCallAction, getDefaultRemoteCall, getDefaultRemoteData, isNgssmRemoteCallInProgress, ngssmReloadRemoteData, processRemoteCallError, provideNgssmRemoteCall, provideNgssmRemoteCallConfig, provideNgssmRemoteData, provideRemoteDataFunc, provideRemoteDataProviders, selectNgssmRemoteCallState, selectRemoteCall, selectRemoteData, selectRemoteDataState, updateNgssmRemoteCallState, updateRemoteDataState };
311
- export type { NgssmRemoteCallState, ProblemDetails, ReloadParams, RemoteCall, RemoteCallConfig, RemoteCallError, RemoteData, RemoteDataGetterParams, RemoteDataLoadingFunc, RemoteDataLoadingGuardItem, RemoteDataLoadingGuardParameters, RemoteDataProvider, RemoteDataState };
299
+ export declare class NgssmRemoteCallStateSpecification {
300
+ static readonly featureStateKey = "ngssm-remote-call-state";
301
+ static readonly initialState: NgssmRemoteCallState;
302
+ }