| changeLanguage |
Default value : createAction(`[${starkSessionStoreKey}] Change Language`, props<{ languageId: string }>())
|
|
Triggered when the StarkSessionService setCurrentLanguage() method is called, just before changing the current session's language. Parameter:
|
| changeLanguageSuccess |
Default value : createAction(`[${starkSessionStoreKey}] Change Language Success`, props<{ languageId: string }>())
|
|
Triggered when the current session's language has been successfully changed by calling the StarkSessionService setCurrentLanguage() method. Parameter:
|
| destroySession |
Default value : createAction(`[${starkSessionStoreKey}] Destroy Session`)
|
|
Triggered before the process to destroy the user's session starts right after the HTTP logout call has been sent. This action is dispatched whenever the user is going to be logged out due to:
|
| initializeSession |
Default value : createAction(`[${starkSessionStoreKey}] Initialize Session`, props<{ user: StarkUser }>())
|
|
Triggered by the StarkSessionService login() method before the process to initialize the session for the given user starts. Parameter:
|
| initializeSessionSuccess |
Default value : createAction(`[${starkSessionStoreKey}] Initialize Session Success`)
|
|
Triggered when the initialization of the user's session has finished successfully. |
| sessionLogout |
Default value : createAction(`[${starkSessionStoreKey}] Session Logout`)
|
|
Triggered when the user is about to be logged out and the HTTP logout call to be sent. This action is called before the process to destroy the user's session starts. This action is dispatched by the StarkSessionService logout() method or in case the browser tab was closed and is dispatched before the destroySession action. |
| sessionTimeoutCountdownStart |
Default value : createAction(
`[${starkSessionStoreKey}] Session Timeout Countdown Start`,
props<{ countdown: number }>()
)
|
|
Triggered when the countdown to automatically destroy the user's session due to inactivity starts. The countdown is defined in the application's StarkApplicationConfig sessionTimeoutWarningPeriod. By default is set to 15 seconds. Parameter:
|
| userActivityTrackingPause |
Default value : createAction(`[${starkSessionStoreKey}] User Activity Tracking Pause`)
|
|
Triggered by the StarkSessionService pauseUserActivityTracking() method when the user activity tracking is paused (automatically done by the StarkSessionService). |
| userActivityTrackingResume |
Default value : createAction(`[${starkSessionStoreKey}] User Activity Tracking Resume`)
|
|
Triggered by the StarkSessionService resumeUserActivityTracking() method when the user activity tracking is resumed (automatically done by the StarkSessionService). |
| commonCoreTranslations |
Type : object[]
|
Default value : []
|
|
Common translations for features available in Stark-Core package |
| componentName |
Type : string
|
Default value : "stark-app-container"
|
|
Name of the component |
| DEFAULT_USER_PROFILE_RESOURCE_PATH |
Type : string
|
Default value : "security/userprofile"
|
|
The resource path to be used for the User profile fetching if no other resource path is specified. |
| fetchUserProfile |
Default value : createAction(`[${starkUserStoreKey}] Get User`)
|
|
Triggered when the fetchUserProfile() method is called, just before performing the HTTP to the REST API. |
| getAllUsers |
Default value : createAction(`[${starkUserStoreKey}] Get All Users`)
|
|
Triggered when the getAllUsers() method is called. The getAllUsers() method should only be used in development. |
| starkUserStoreKey |
Type : string
|
Default value : "StarkUser"
|
|
Key defined to find the service in a store |
| INITIAL_LOGGING_STATE |
Type : Readonly<StarkLogging>
|
Default value : {
uuid: "",
applicationId: "",
messages: []
}
|
|
Defines the initial state of the reducer |
| INITIAL_SESSION_STATE |
Type : StarkSession
|
Default value : new StarkSessionImpl()
|
|
Defines the initial state of the reducer |
| INITIAL_SETTINGS_STATE |
Type : StarkSettings
|
Default value : new StarkSettings()
|
|
Defines the initial state of the reducer |
| navigate |
Default value : createAction(
`[${starkRoutingStoreKey}] Navigate`,
props<{ currentState: string; newState: string; params?: RawParams; options?: TransitionOptions }>()
)
|
|
Triggered when the StarkRoutingService navigateTo() method is called, just before starting the navigation. Parameters:
|
| navigateFailure |
Default value : createAction(
`[${starkRoutingStoreKey}] Navigate Failure`,
props<{ currentState: string; newState: string; params?: RawParams; error: string }>()
)
|
|
Triggered when a navigation failed. This action is dispatched for any navigation, including those navigations triggered not by the StarkRoutingService navigateTo() method but by any other mean such as menu links or by direct usage of the router library API. Parameters:
|
| navigateRejection |
Default value : createAction(
`[${starkRoutingStoreKey}] Navigate Rejection`,
props<{ currentState: string; newState: string; params: RawParams; reason: string }>()
)
|
|
Triggered when a navigation was intentionally rejected with a known rejection reason added via the StarkRoutingService addKnownNavigationRejectionCause() method. The custom logic to intentionally reject a transition can be normally be injected via a transition Hook by calling the StarkRoutingService addTransitionHook() method. Parameters:
|
| navigateSuccess |
Default value : createAction(
`[${starkRoutingStoreKey}] Navigate Success`,
props<{ previousState: string; currentState: string; params?: RawParams }>()
)
|
|
Triggered when a navigation has succeeded and finished. This action is dispatched for any navigation, including those navigations triggered not by the StarkRoutingService navigateTo() method but by any other mean such as StarkRoutingService navigateToPrevious(), StarkRoutingService navigateToHome(), StarkRoutingService reload(), routing directives for menu links or by direct usage of the router library API. Parameters:
|
| navigationHistoryLimitReached |
Default value : createAction(`[${starkRoutingStoreKey}] Navigation History Limit Reached`)
|
|
Triggered when the StarkRoutingService navigateToPrevious() method is called and there are no more previous states in the history to navigate to. This action is just triggered in case the reload was done by calling the StarkRoutingService reload() method. |
| reload |
Default value : createAction(`[${starkRoutingStoreKey}] Reload`, props<{ state: string }>())
|
|
Triggered when the StarkRoutingService reload() method is called, just before starting the state reloading. Parameter:
|
| reloadFailure |
Default value : createAction(`[${starkRoutingStoreKey}] Reload Failure`, props<{ state: string; params: RawParams }>())
|
|
Triggered when a reload succeeded and finished. This action is dispatched for any navigation, including those navigations triggered not by the StarkRoutingService navigateTo() method but by any other mean such as menu links or by direct usage of the router library API. Parameters:
|
| reloadSuccess |
Default value : createAction(`[${starkRoutingStoreKey}] Reload Success`, props<{ state: string; params: RawParams }>())
|
|
Triggered when a reload succeeded and finished. This action is dispatched for any navigation, including those navigations triggered not by the StarkRoutingService navigateTo() method but by any other mean such as menu links or by direct usage of the router library API. Parameters:
|
| starkRoutingStoreKey |
Type : string
|
Default value : "StarkRouting"
|
|
Key defined to find the service in a store |
| selectStarkLogging |
Default value : createSelector(
createFeatureSelector<StarkLoggingState>(starkLoggingStoreKey),
(state: StarkLoggingState) => state.logging
)
|
|
NGRX Selector for the StarkLoggingModule's state |
| starkLoggingReducers |
Type : ActionReducerMap<StarkLoggingState, StarkLoggingActions.Types>
|
Default value : {
/**
* Reducer assigned to the state's `logging` property
*/
logging: loggingReducer
}
|
|
Reducers assigned to each property of the StarkLoggingModule's state |
| selectStarkSession |
Default value : createSelector(
createFeatureSelector<StarkSessionState>(starkSessionStoreKey),
(state: StarkSessionState) => state.session
)
|
|
NGRX Selector for the StarkSessionModule's state |
| starkSessionReducers |
Type : ActionReducerMap<StarkSessionState, StarkSessionActions.Types>
|
Default value : {
/**
* Reducer assigned to the state's `session` property
*/
session: sessionReducer
}
|
|
Reducers assigned to each property of the StarkSessionModule's state |
| selectStarkSettings |
Default value : createSelector(
createFeatureSelector<StarkSettingsState>(starkSettingsStoreKey),
(state: StarkSettingsState) => state.settings
)
|
|
NGRX Selector for the StarkSettingsModule's state |
| starkSettingsReducers |
Type : ActionReducerMap<StarkSettingsState, StarkSettingsActions.Types>
|
Default value : {
/**
* Reducer assigned to the state's `settings` property
*/
settings: settingsReducer
}
|
|
Reducers assigned to each property of the StarkSettingsModule's state |
| SESSION_STATES |
Type : Ng2StateDeclaration[]
|
Default value : [
{
name: starkAppInitStateName, // parent state for any initialization state (used to show/hide the main app component)
abstract: true,
resolve: [
{
token: "targetRoute",
deps: [Location, Transition, STARK_ROUTING_SERVICE],
resolveFn: resolveTargetRoute
},
{
token: "targetState",
deps: ["targetRoute"],
resolveFn: resolveTargetState
},
{
token: "targetStateParams",
deps: ["targetRoute"],
resolveFn: resolveTargetStateParams
}
]
},
{
name: starkAppExitStateName, // parent state for any exit state (used to show/hide the main app component)
abstract: true
}
]
|
|
States defined by StarkSessionModule |
| STARK_APP_CONFIG |
Type : InjectionToken<StarkApplicationConfig>
|
Default value : new InjectionToken<StarkApplicationConfig>("STARK_APP_CONFIG")
|
|
://v12.angular.io/api/core/InjectionToken|InjectionTokenhttps used to provide the StarkApplicationConfig |
| STARK_APP_METADATA |
Type : InjectionToken<StarkApplicationMetadata>
|
Default value : new InjectionToken<StarkApplicationMetadata>(
"STARK_APP_METADATA"
)
|
|
://v12.angular.io/api/core/InjectionToken|InjectionTokenhttps used to provide the StarkApplicationMetadata |
| STARK_HTTP_PARAM_ENCODER |
Type : HttpParameterCodec
|
Default value : new StarkHttpParameterCodec()
|
|
An instance of the StarkHttpParameterCodec which is internally used by the StarkHttpUtil convertStarkQueryParamsIntoHttpParams method. See ://github.com/NationalBankBelgium/stark/issues/1130https |
| STARK_HTTP_SERVICE |
Type : InjectionToken<StarkHttpService<any>>
|
Default value : new InjectionToken<StarkHttpService<any>>(starkHttpServiceName)
|
|
://v12.angular.io/api/core/InjectionToken|InjectionTokenhttps used to provide the StarkHttpService |
| STARK_LOGGING_SERVICE |
Type : InjectionToken<StarkLoggingService>
|
Default value : new InjectionToken<StarkLoggingService>(starkLoggingServiceName)
|
|
://v12.angular.io/api/core/InjectionToken|InjectionTokenhttps used to provide the StarkLoggingService |
| STARK_MOCK_DATA |
Type : InjectionToken<StarkMockData>
|
Default value : new InjectionToken<StarkMockData>("STARK_MOCK_DATA")
|
|
://v12.angular.io/api/core/InjectionToken|InjectionTokenhttps used to provide the StarkMockData |
| STARK_ROUTING_SERVICE |
Type : InjectionToken<StarkRoutingService>
|
Default value : new InjectionToken<StarkRoutingService>(starkRoutingServiceName)
|
|
://v12.angular.io/api/core/InjectionToken|InjectionTokenhttps used to provide the StarkRoutingService |
| STARK_SESSION_CONFIG |
Type : InjectionToken<StarkSessionConfig>
|
Default value : new InjectionToken<StarkSessionConfig>("StarkSessionConfig")
|
|
://v12.angular.io/api/core/InjectionToken|InjectionTokenhttps used to provide the StarkSessionConfig |
| STARK_SESSION_SERVICE |
Type : InjectionToken<StarkSessionService>
|
Default value : new InjectionToken<StarkSessionService>(starkSessionServiceName)
|
|
://v12.angular.io/api/core/InjectionToken|InjectionTokenhttps used to provide the StarkSessionService |
| STARK_SETTINGS_SERVICE |
Type : InjectionToken<StarkSettingsService>
|
Default value : new InjectionToken<StarkSettingsService>(
starkSettingsServiceName
)
|
|
://v12.angular.io/api/core/InjectionToken|InjectionTokenhttps used to provide the StarkSettingsService |
| STARK_USER_PROFILE_RESOURCE_PATH |
Default value : new InjectionToken<StarkUserModuleConfig["userProfileResourcePath"]>(
"StarkUserProfileResourcePath"
)
|
|
://v12.angular.io/api/core/InjectionToken|InjectionTokenhttps used to provide the StarkUserModuleConfig userProfileResourcePath |
| STARK_USER_REPOSITORY |
Type : InjectionToken<StarkUserRepository>
|
Default value : new InjectionToken<StarkUserRepository>(starkUserRepositoryName)
|
|
://v12.angular.io/api/core/InjectionToken|InjectionTokenhttps used to provide the StarkUserRepository |
| starkUserRepositoryName |
Type : string
|
Default value : "StarkUserRepository"
|
|
Name of the User Repository, in case injection is needed |
| STARK_USER_SERVICE |
Type : InjectionToken<StarkUserService>
|
Default value : new InjectionToken<StarkUserService>(starkUserServiceName)
|
|
://v12.angular.io/api/core/InjectionToken|InjectionTokenhttps used to provide the StarkUserService |
| STARK_XSRF_CONFIG |
Type : InjectionToken<StarkXSRFConfig>
|
Default value : new InjectionToken<StarkXSRFConfig>("StarkXSRFConfig")
|
|
://v12.angular.io/api/core/InjectionToken|InjectionTokenhttps used to provide the StarkXSRFConfig |
| STARK_XSRF_SERVICE |
Type : InjectionToken<StarkXSRFService>
|
Default value : new InjectionToken<StarkXSRFService>(starkXSRFServiceName)
|
|
://v12.angular.io/api/core/InjectionToken|InjectionTokenhttps used to provide the StarkXSRFService |
| starkAppExitStateName |
Type : string
|
Default value : "starkAppExit"
|
|
Name of the exit states of the application |
| starkAppInitStateName |
Type : string
|
Default value : "starkAppInit"
|
|
Name of the initialization states of the application |
| starkLoginStateName |
Type : miscellaneous
|
Default value : starkAppInitStateName + ".starkLogin"
|
|
Name of the login state of the application |
| starkLoginStateUrl |
Type : string
|
Default value : "/starkLogin"
|
|
URL of the login state of the application |
| starkPreloadingStateName |
Type : string
|
Default value : starkAppInitStateName + ".starkPreloading"
|
|
Name of the Preloading state of the application |
| starkPreloadingStateUrl |
Type : string
|
Default value : "/starkPreloading"
|
|
URL of the Preloading state of the application |
| starkSessionExpiredStateName |
Type : string
|
Default value : starkAppExitStateName + ".starkSessionExpired"
|
|
Name of the SessionExpired state of the application |
| starkSessionExpiredStateUrl |
Type : string
|
Default value : "/starkSessionExpired"
|
|
URL of the SessionExpired state of the application |
| starkSessionLogoutStateName |
Type : string
|
Default value : starkAppExitStateName + ".starkSessionLogout"
|
|
Name of the SessionLogout state of the application |
| starkSessionLogoutStateUrl |
Type : string
|
Default value : "/starkSessionLogout"
|
|
URL of the SessionLogout state of the application |
| starkArrayIsValidValidatorName |
Type : string
|
Default value : "starkArrayIsValid"
|
|
Name of the validator, in case injection is needed. |
| starkLoggingStoreKey |
Type : string
|
Default value : "StarkLogging"
|
|
The store key will allow the application to find the reducer in the store |
| starkMapIsValidValidatorName |
Type : string
|
Default value : "starkMapIsValid"
|
|
Name of the validator, in case injection is needed. |
| starkMapNotEmptyValidatorName |
Type : string
|
Default value : "starkMapNotEmpty"
|
|
Name of the starkMapNotEmpty validator. |
| starkSessionStoreKey |
Type : string
|
Default value : "StarkSession"
|
|
Key defined to find the service in a store |
| starkSettingsStoreKey |
Type : string
|
Default value : "StarkSettings"
|
|
Key defined to find the service in a store |
| stringMap |
Type : Function
|
Default value : (targetType: any): ISerializable => ({
Serialize: (map: Map<string, any>): object => {
const obj: object = {};
map.forEach((value: any, key: string) => {
obj[key] = Serialize(value);
});
return obj;
},
Deserialize: (json: any): Map<string, any> => {
const map: Map<string, any> = new Map<string, unknown>();
for (const key of Object.keys(json)) {
map.set(key, Deserialize(json[key], targetType));
}
return map;
}
})
|