Class: FlyzeApiStoreManager
@flyze/lib-data-store 3.0.0-alpha.55· latestDefined in: projects/lib-data-store/src/lib/flyze-api-store/flyze-api-store.manager.ts:41
Injectable service for managing Flyze API store instances. This service handles initialization and adding new API instances to the store.
Implements
Section titled “Implements”OnDestroy
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new FlyzeApiStoreManager(
store,actions$,httpClient):FlyzeApiStoreManager
Defined in: projects/lib-data-store/src/lib/flyze-api-store/flyze-api-store.manager.ts:78
Constructs the FlyzeApiStoreManager service.
Parameters
Section titled “Parameters”Store<RootStore>
The NgRx store for state management.
actions$
Section titled “actions$”Actions
NgRx Actions stream for handling side effects.
httpClient
Section titled “httpClient”HttpClient
The Angular HttpClient for making HTTP requests.
Returns
Section titled “Returns”FlyzeApiStoreManager
Properties
Section titled “Properties”availableInstances$
Section titled “availableInstances$”
readonlyavailableInstances$:Observable<string[]>
Defined in: projects/lib-data-store/src/lib/flyze-api-store/flyze-api-store.manager.ts:61
instanceChange
Section titled “instanceChange”
readonlyinstanceChange:EventEmitter<FlyzeApiStoreManager_InstanceChange>
Defined in: projects/lib-data-store/src/lib/flyze-api-store/flyze-api-store.manager.ts:68
Accessors
Section titled “Accessors”availableInstances
Section titled “availableInstances”Get Signature
Section titled “Get Signature”get availableInstances():
string[]
Defined in: projects/lib-data-store/src/lib/flyze-api-store/flyze-api-store.manager.ts:64
Returns
Section titled “Returns”string[]
Methods
Section titled “Methods”add(
instance):ApiStoreInstance|undefined
Defined in: projects/lib-data-store/src/lib/flyze-api-store/flyze-api-store.manager.ts:136
Adds a new API instance to the Flyze API store.
Parameters
Section titled “Parameters”instance
Section titled “instance”The configuration of the API instance to be added.
Returns
Section titled “Returns”ApiStoreInstance | undefined
getInstance()
Section titled “getInstance()”getInstance(
id):ApiStoreInstance
Defined in: projects/lib-data-store/src/lib/flyze-api-store/flyze-api-store.manager.ts:219
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”ApiStoreInstance
getInstances()
Section titled “getInstances()”getInstances():
object[]
Defined in: projects/lib-data-store/src/lib/flyze-api-store/flyze-api-store.manager.ts:213
Returns
Section titled “Returns”object[]
init()
Section titled “init()”init(
apiStoreConfig):void
Defined in: projects/lib-data-store/src/lib/flyze-api-store/flyze-api-store.manager.ts:116
Initializes the Flyze API store manager by adding all configured API instances to the store.
Parameters
Section titled “Parameters”apiStoreConfig
Section titled “apiStoreConfig”Returns
Section titled “Returns”void
ngOnDestroy()
Section titled “ngOnDestroy()”ngOnDestroy():
void
Defined in: projects/lib-data-store/src/lib/flyze-api-store/flyze-api-store.manager.ts:109
A callback method that performs custom clean-up, invoked immediately before a directive, pipe, or service instance is destroyed.
Returns
Section titled “Returns”void
Implementation of
Section titled “Implementation of”OnDestroy.ngOnDestroy
remove()
Section titled “remove()”remove(
id):void
Defined in: projects/lib-data-store/src/lib/flyze-api-store/flyze-api-store.manager.ts:192
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”void