Class: AspectFacade
@flyze/lib-data-store 3.0.0-alpha.55· latestDefined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/aspect.facade.ts:27
Represents the AspectFacade service. Provides methods to interact with aspects through the Flyze API.
Extends
Section titled “Extends”AbstractStatefulFacade<"aspect",AspectQueryBuilder,Aspect>
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new AspectFacade(
instance,facadeStore):AspectFacade
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/aspect.facade.ts:32
Parameters
Section titled “Parameters”instance
Section titled “instance”ApiStoreInstance
facadeStore
Section titled “facadeStore”FacadeStore
Returns
Section titled “Returns”AspectFacade
Overrides
Section titled “Overrides”AbstractStatefulFacade.constructor
Properties
Section titled “Properties”_selectors
Section titled “_selectors”
protected_selectors:object
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/_abstract/abstract.stateful-facade.ts:77
Gets the base selectors from the superclass. No tag filtering is applied.
canExecuteQuery()
Section titled “canExecuteQuery()”canExecuteQuery: (
q) =>CanExecuteResult<string,"aspectTypes"|"assets"|"assetTypes">
Parameters
Section titled “Parameters”ExecutableQuery
Returns
Section titled “Returns”CanExecuteResult<string, "aspectTypes" | "assets" | "assetTypes">
select()
Section titled “select()”select: (
q) =>DistinctSelector<RootStore, [number|Aspect[],number|Aspect[],number|Aspect[],number|Aspect[],number|Aspect[],Aspect[]],Aspect[]>
Parameters
Section titled “Parameters”AspectSelectQuery
Returns
Section titled “Returns”DistinctSelector<RootStore, [number | Aspect[], number | Aspect[], number | Aspect[], number | Aspect[], number | Aspect[], Aspect[]], Aspect[]>
selectAll()
Section titled “selectAll()”selectAll: () =>
MemoizedSelector<RootStore,Aspect[], (s1) =>Aspect[]> |MemoizedSelector<RootStore,Aspect[], (s1) =>Aspect[]>
Returns
Section titled “Returns”MemoizedSelector<RootStore, Aspect[], (s1) => Aspect[]> | MemoizedSelector<RootStore, Aspect[], (s1) => Aspect[]>
selectByExecutableQuery()
Section titled “selectByExecutableQuery()”selectByExecutableQuery: (
q) =>MemoizedSelector<RootStore,Aspect[],any>
Parameters
Section titled “Parameters”ExecutableQuery
Returns
Section titled “Returns”MemoizedSelector<RootStore, Aspect[], any>
selectByFilter()
Section titled “selectByFilter()”selectByFilter: (
filterFn) =>MemoizedSelector<RootStore,Aspect[], (s1) =>Aspect[]>
Parameters
Section titled “Parameters”filterFn
Section titled “filterFn”(entity) => boolean
Returns
Section titled “Returns”MemoizedSelector<RootStore, Aspect[], (s1) => Aspect[]>
selectById()
Section titled “selectById()”selectById: (
id) =>MemoizedSelector<RootStore,Aspect|undefined, (s1) =>Aspect|undefined>
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”MemoizedSelector<RootStore, Aspect | undefined, (s1) => Aspect | undefined>
selectByIds()
Section titled “selectByIds()”selectByIds: (
ids) =>MemoizedSelector<RootStore,Aspect[], (s1) =>Aspect[]>
Parameters
Section titled “Parameters”string[]
Returns
Section titled “Returns”MemoizedSelector<RootStore, Aspect[], (s1) => Aspect[]>
selectByPath()
Section titled “selectByPath()”selectByPath: (
path) =>DistinctSelector<RootStore, [Aspect[]],Aspect[]>
Parameters
Section titled “Parameters”string | string[]
Returns
Section titled “Returns”DistinctSelector<RootStore, [Aspect[]], Aspect[]>
selectByPathAndName()
Section titled “selectByPathAndName()”selectByPathAndName: (
path,name) =>MemoizedSelector<RootStore,Aspect[], (s1) =>Aspect[]>
Parameters
Section titled “Parameters”string | string[]
string | string[]
Returns
Section titled “Returns”MemoizedSelector<RootStore, Aspect[], (s1) => Aspect[]>
selectByTypeId()
Section titled “selectByTypeId()”selectByTypeId: (
typeId) =>MemoizedSelector<RootStore,Aspect[], (s1) =>Aspect[]>
Parameters
Section titled “Parameters”typeId
Section titled “typeId”string | string[]
Returns
Section titled “Returns”MemoizedSelector<RootStore, Aspect[], (s1) => Aspect[]>
selectCountByExecutableQuery()
Section titled “selectCountByExecutableQuery()”selectCountByExecutableQuery: (
q) =>MemoizedSelector<RootStore, {items:Aspect[];totalCount:number; },any>
Parameters
Section titled “Parameters”ExecutableQuery
Returns
Section titled “Returns”MemoizedSelector<RootStore, { items: Aspect[]; totalCount: number; }, any>
selectCreated()
Section titled “selectCreated()”selectCreated: (
actionId?) =>MemoizedSelector<RootStore,flowSuccess<Aspect> |null, (s1) =>flowSuccess<Aspect> |null>
Parameters
Section titled “Parameters”actionId?
Section titled “actionId?”string
Returns
Section titled “Returns”MemoizedSelector<RootStore, flowSuccess<Aspect> | null, (s1) => flowSuccess<Aspect> | null>
selectCreatedEntity()
Section titled “selectCreatedEntity()”selectCreatedEntity: () =>
MemoizedSelector<RootStore,Aspect|undefined, (s1) =>Aspect|undefined>
Returns
Section titled “Returns”MemoizedSelector<RootStore, Aspect | undefined, (s1) => Aspect | undefined>
selectCreateError()
Section titled “selectCreateError()”selectCreateError: (
actionId?) =>MemoizedSelector<RootStore,flowError|null, (s1) =>flowError|null>
Parameters
Section titled “Parameters”actionId?
Section titled “actionId?”string
Returns
Section titled “Returns”MemoizedSelector<RootStore, flowError | null, (s1) => flowError | null>
selectCreateFinished()
Section titled “selectCreateFinished()”selectCreateFinished: (
actionId) =>MemoizedSelector<any,FinishedSelectorResponse<Aspect>, (s1,s2) =>FinishedSelectorResponse>
Parameters
Section titled “Parameters”actionId
Section titled “actionId”string
Returns
Section titled “Returns”MemoizedSelector<any, FinishedSelectorResponse<Aspect>, (s1, s2) => FinishedSelectorResponse>
selectCreating()
Section titled “selectCreating()”selectCreating: () =>
MemoizedSelector<RootStore,boolean, (s1) =>boolean>
Returns
Section titled “Returns”MemoizedSelector<RootStore, boolean, (s1) => boolean>
selectDeleted()
Section titled “selectDeleted()”selectDeleted: (
actionId?) =>MemoizedSelector<RootStore,flowSuccess<Aspect> |null, (s1) =>flowSuccess<Aspect> |null>
Parameters
Section titled “Parameters”actionId?
Section titled “actionId?”string
Returns
Section titled “Returns”MemoizedSelector<RootStore, flowSuccess<Aspect> | null, (s1) => flowSuccess<Aspect> | null>
selectDeletedEntity()
Section titled “selectDeletedEntity()”selectDeletedEntity: () =>
MemoizedSelector<RootStore,Aspect|undefined, (s1) =>Aspect|undefined>
Returns
Section titled “Returns”MemoizedSelector<RootStore, Aspect | undefined, (s1) => Aspect | undefined>
selectDeleteError()
Section titled “selectDeleteError()”selectDeleteError: (
actionId?) =>MemoizedSelector<RootStore,flowError|null, (s1) =>flowError|null>
Parameters
Section titled “Parameters”actionId?
Section titled “actionId?”string
Returns
Section titled “Returns”MemoizedSelector<RootStore, flowError | null, (s1) => flowError | null>
selectDeleteFinished()
Section titled “selectDeleteFinished()”selectDeleteFinished: (
actionId) =>MemoizedSelector<any,FinishedSelectorResponse<Aspect>, (s1,s2) =>FinishedSelectorResponse>
Parameters
Section titled “Parameters”actionId
Section titled “actionId”string
Returns
Section titled “Returns”MemoizedSelector<any, FinishedSelectorResponse<Aspect>, (s1, s2) => FinishedSelectorResponse>
selectDeleting()
Section titled “selectDeleting()”selectDeleting: () =>
MemoizedSelector<RootStore,boolean, (s1) =>boolean>
Returns
Section titled “Returns”MemoizedSelector<RootStore, boolean, (s1) => boolean>
selectEntities()
Section titled “selectEntities()”selectEntities: () =>
MemoizedSelector<RootStore,Dictionary<Aspect>, (s1) =>Dictionary> |MemoizedSelector<RootStore,Dictionary<Aspect>, (s1) =>Dictionary>
Returns
Section titled “Returns”MemoizedSelector<RootStore, Dictionary<Aspect>, (s1) => Dictionary> | MemoizedSelector<RootStore, Dictionary<Aspect>, (s1) => Dictionary>
selectEtag()
Section titled “selectEtag()”selectEtag: (
ids) =>MemoizedSelector<RootStore,IEtag[], (s1) =>IEtag[]>
Parameters
Section titled “Parameters”string[]
Returns
Section titled “Returns”MemoizedSelector<RootStore, IEtag[], (s1) => IEtag[]>
selectEtags()
Section titled “selectEtags()”selectEtags: () =>
MemoizedSelector<RootStore,Record<string,IEtag>, (s1) =>Result>
Returns
Section titled “Returns”MemoizedSelector<RootStore, Record<string, IEtag>, (s1) => Result>
selectIds()
Section titled “selectIds()”selectIds: () =>
MemoizedSelector<RootStore,string[] |number[], (s1) =>string[] |number[]> |MemoizedSelector<RootStore,string[], (s1) =>string[]>
Returns
Section titled “Returns”MemoizedSelector<RootStore, string[] | number[], (s1) => string[] | number[]> | MemoizedSelector<RootStore, string[], (s1) => string[]>
selectLastLoadedData()
Section titled “selectLastLoadedData()”selectLastLoadedData: () =>
MemoizedSelector<RootStore,Aspect[] |null, (s1) =>Aspect[] |null>
Returns
Section titled “Returns”MemoizedSelector<RootStore, Aspect[] | null, (s1) => Aspect[] | null>
selectLoaded()
Section titled “selectLoaded()”selectLoaded: (
actionId?) =>MemoizedSelector<RootStore,flowSuccess<Aspect[]> |null, (s1) =>flowSuccess<Aspect[]> |null>
Get the loaded from the state. If a specific actionId is provided, only return the loaded prop if it matches the actionId.
Parameters
Section titled “Parameters”actionId?
Section titled “actionId?”string
Returns
Section titled “Returns”MemoizedSelector<RootStore, flowSuccess<Aspect[]> | null, (s1) => flowSuccess<Aspect[]> | null>
selectLoadError()
Section titled “selectLoadError()”selectLoadError: (
actionId?) =>MemoizedSelector<RootStore,flowError|null, (s1) =>flowError|null>
Get the load error from the state. If a specific actionId is provided, only return the error if it matches the actionId.
Parameters
Section titled “Parameters”actionId?
Section titled “actionId?”string
Returns
Section titled “Returns”MemoizedSelector<RootStore, flowError | null, (s1) => flowError | null>
selectLoadFinished()
Section titled “selectLoadFinished()”selectLoadFinished: (
actionId) =>MemoizedSelector<any,FinishedSelectorResponse<Aspect[]>, (s1,s2) =>FinishedSelectorResponse>
Parameters
Section titled “Parameters”actionId
Section titled “actionId”string
Returns
Section titled “Returns”MemoizedSelector<any, FinishedSelectorResponse<Aspect[]>, (s1, s2) => FinishedSelectorResponse>
selectLoading()
Section titled “selectLoading()”selectLoading: () =>
MemoizedSelector<RootStore,boolean, (s1) =>boolean>
Returns
Section titled “Returns”MemoizedSelector<RootStore, boolean, (s1) => boolean>
selectRequestCacheEntry()
Section titled “selectRequestCacheEntry()”selectRequestCacheEntry: (
key) =>MemoizedSelector<RootStore,RequestCacheEntry|undefined, (s1) =>RequestCacheEntry|undefined>
Cached conditional-request entry for a request key, or undefined when
not cached / when persistData is off (feature disabled — there would be
no entities to rebuild a 304 result from).
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”MemoizedSelector<RootStore, RequestCacheEntry | undefined, (s1) => RequestCacheEntry | undefined>
selectUpdated()
Section titled “selectUpdated()”selectUpdated: (
actionId?) =>MemoizedSelector<RootStore,flowSuccess<Aspect> |null, (s1) =>flowSuccess<Aspect> |null>
Parameters
Section titled “Parameters”actionId?
Section titled “actionId?”string
Returns
Section titled “Returns”MemoizedSelector<RootStore, flowSuccess<Aspect> | null, (s1) => flowSuccess<Aspect> | null>
selectUpdatedEntity()
Section titled “selectUpdatedEntity()”selectUpdatedEntity: () =>
MemoizedSelector<RootStore,Aspect|undefined, (s1) =>Aspect|undefined>
Returns
Section titled “Returns”MemoizedSelector<RootStore, Aspect | undefined, (s1) => Aspect | undefined>
selectUpdateError()
Section titled “selectUpdateError()”selectUpdateError: (
actionId?) =>MemoizedSelector<RootStore,flowError|null, (s1) =>flowError|null>
Parameters
Section titled “Parameters”actionId?
Section titled “actionId?”string
Returns
Section titled “Returns”MemoizedSelector<RootStore, flowError | null, (s1) => flowError | null>
selectUpdateFinished()
Section titled “selectUpdateFinished()”selectUpdateFinished: (
actionId) =>MemoizedSelector<any,FinishedSelectorResponse<Aspect>, (s1,s2) =>FinishedSelectorResponse>
Parameters
Section titled “Parameters”actionId
Section titled “actionId”string
Returns
Section titled “Returns”MemoizedSelector<any, FinishedSelectorResponse<Aspect>, (s1, s2) => FinishedSelectorResponse>
selectUpdating()
Section titled “selectUpdating()”selectUpdating: () =>
MemoizedSelector<RootStore,boolean, (s1) =>boolean>
Returns
Section titled “Returns”MemoizedSelector<RootStore, boolean, (s1) => boolean>
Inherited from
Section titled “Inherited from”AbstractStatefulFacade._selectors
dispatch()
Section titled “dispatch()”
readonlydispatch: <V>(action) =>void
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/_abstract/abstract.facade.ts:36
Dispatches an action to the store.
Type Parameters
Section titled “Type Parameters”V extends Action = Action
Parameters
Section titled “Parameters”action
Section titled “action”V & FunctionIsNotAllowed<V, "Functions are not allowed to be dispatched. Did you forget to call the action creator function?">
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”AbstractStatefulFacade.dispatch
facadeStore
Section titled “facadeStore”
protectedfacadeStore:FacadeStore
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/_abstract/abstract.stateful-facade.ts:80
Inherited from
Section titled “Inherited from”AbstractStatefulFacade.facadeStore
instance
Section titled “instance”
protectedinstance:ApiStoreInstance
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/aspect.facade.ts:33
Inherited from
Section titled “Inherited from”AbstractStatefulFacade.instance
section
Section titled “section”
protectedsection:"aspect"
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/_abstract/abstract.facade.ts:50
Inherited from
Section titled “Inherited from”AbstractStatefulFacade.section
select()
Section titled “select()”
readonlyselect: <T,K>(selector) =>Observable<K>
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/_abstract/abstract.facade.ts:34
Selects a slice of state from the store using the provided selector.
Selects a slice of state from the store using the provided selector.
Type Parameters
Section titled “Type Parameters”T
K
Parameters
Section titled “Parameters”selector
Section titled “selector”MemoizedSelector<T, K>
Returns
Section titled “Returns”Observable<K>
Inherited from
Section titled “Inherited from”selectSignal()
Section titled “selectSignal()”
readonlyselectSignal: <K>(selector) =>Signal<K>
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/_abstract/abstract.facade.ts:38
Returns a signal of the provided selector.
Returns a signal of the provided selector.
Type Parameters
Section titled “Type Parameters”K
Parameters
Section titled “Parameters”selector
Section titled “selector”MemoizedSelector<any, K>
Returns
Section titled “Returns”Signal<K>
Inherited from
Section titled “Inherited from”AbstractStatefulFacade.selectSignal
Accessors
Section titled “Accessors”actions
Section titled “actions”Get Signature
Section titled “Get Signature”get actions():
object&object[SECTION]
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/_abstract/abstract.facade.ts:58
Returns
Section titled “Returns”object & object[SECTION]
Inherited from
Section titled “Inherited from”AbstractStatefulFacade.actions
instanceId
Section titled “instanceId”Get Signature
Section titled “Get Signature”get instanceId():
string
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/_abstract/abstract.facade.ts:44
Gets the instance ID of the underlying ApiStoreInstance.
Returns
Section titled “Returns”string
Inherited from
Section titled “Inherited from”AbstractStatefulFacade.instanceId
selectors
Section titled “selectors”Get Signature
Section titled “Get Signature”get selectors():
object&object[SECTION]
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/_abstract/abstract.stateful-facade.ts:61
Gets the selectors for the specified section of the API store, extended with tag selection filters.
Returns
Section titled “Returns”object & object[SECTION]
Inherited from
Section titled “Inherited from”AbstractStatefulFacade.selectors
Methods
Section titled “Methods”_dispatchWithId()
Section titled “_dispatchWithId()”
protected_dispatchWithId<PROPS>(action,props):string
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/_abstract/abstract.facade.ts:92
Dispatches an action with a newly generated actionId.
Type Parameters
Section titled “Type Parameters”PROPS extends object & object
Parameters
Section titled “Parameters”action
Section titled “action”ActionCreator<string, (props) => TypedAction<string>>
The action creator to dispatch. It has to accept a props object that includes an actionId of type string.
Omit<PROPS, "actionId">
The properties to pass to the action creator, excluding the actionId.
Returns
Section titled “Returns”string
The generated actionId.
Inherited from
Section titled “Inherited from”AbstractStatefulFacade._dispatchWithId
_dispatchWithResult$()
Section titled “_dispatchWithResult$()”
protected_dispatchWithResult$<PROPS,TYPE,DATA>(action,props,finishSelector):Observable<FacadeFinished<DATA>>
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/_abstract/abstract.facade.ts:108
Extends the _dispatchWithId method to return an observable that emits when the action is finished.
Type Parameters
Section titled “Type Parameters”PROPS extends object & object
TYPE
DATA
Parameters
Section titled “Parameters”action
Section titled “action”ActionCreator<string, (props) => TypedAction<string>>
The action creator to dispatch. It has to accept a props object that includes an actionId of type string.
Omit<PROPS, "actionId">
The properties to pass to the action creator, excluding the actionId.
finishSelector
Section titled “finishSelector”(actionId) => MemoizedSelector<any, FinishedSelectorResponse<DATA>>
A selector function that takes an actionId and returns a FinishSelector for the action.
Returns
Section titled “Returns”Observable<FacadeFinished<DATA>>
An observable that emits when the action is finished.
Inherited from
Section titled “Inherited from”AbstractStatefulFacade._dispatchWithResult$
create()
Section titled “create()”create(
action):Observable<FacadeFinished<Aspect>>
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/aspect.facade.ts:249
Creates a new aspect.
Parameters
Section titled “Parameters”action
Section titled “action”Returns
Section titled “Returns”Observable<FacadeFinished<Aspect>>
createAsync()
Section titled “createAsync()”createAsync(
action):Promise<FacadeFinished<Aspect>>
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/aspect.facade.ts:263
A awaitable implementation of the
Parameters
Section titled “Parameters”action
Section titled “action”Returns
Section titled “Returns”Promise<FacadeFinished<Aspect>>
create method.
delete()
Section titled “delete()”delete(
action):Observable<FacadeFinished<Aspect>>
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/aspect.facade.ts:311
Deletes an existing aspect.
Parameters
Section titled “Parameters”action
Section titled “action”Returns
Section titled “Returns”Observable<FacadeFinished<Aspect>>
deleteAsync()
Section titled “deleteAsync()”deleteAsync(
action):Promise<FacadeFinished<Aspect>>
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/aspect.facade.ts:354
A awaitable implementation of the
Parameters
Section titled “Parameters”action
Section titled “action”Returns
Section titled “Returns”Promise<FacadeFinished<Aspect>>
delete method.
extendQueryWithSelectedTags()
Section titled “extendQueryWithSelectedTags()”
protectedextendQueryWithSelectedTags<QB>(queryBuilder):QB
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/_abstract/abstract.stateful-facade.ts:91
given a query builder, extend it with filters for the currently selected tags in the facade store.
Type Parameters
Section titled “Type Parameters”QB extends AbstractQueryBuilder<any, any>
Parameters
Section titled “Parameters”queryBuilder
Section titled “queryBuilder”QB
Returns
Section titled “Returns”QB
the extended query builder
Inherited from
Section titled “Inherited from”AbstractStatefulFacade.extendQueryWithSelectedTags
filterById()
Section titled “filterById()”filterById(
id):Observable<Aspect|undefined>
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/aspect.facade.ts:65
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”Observable<Aspect | undefined>
Deprecated
Section titled “Deprecated”use a selector directly from the store, e.g. facade.select(facade.selectors.selectById(id))
Filters aspects by specified ID.
getAll()
Section titled “getAll()”getAll():
Observable<Aspect[]>
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/aspect.facade.ts:75
Returns
Section titled “Returns”Observable<Aspect[]>
Deprecated
Section titled “Deprecated”use selectAll()
selectAll()
getFinishedObservable()
Section titled “getFinishedObservable()”
protectedgetFinishedObservable<T,D>(selector):Observable<FacadeFinished<D>>
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/_abstract/abstract.facade.ts:77
Type Parameters
Section titled “Type Parameters”T
D
Parameters
Section titled “Parameters”selector
Section titled “selector”MemoizedSelector<any, FinishedSelectorResponse<D>>
Returns
Section titled “Returns”Observable<FacadeFinished<D>>
Inherited from
Section titled “Inherited from”AbstractStatefulFacade.getFinishedObservable
getNewId()
Section titled “getNewId()”
protectedgetNewId():string
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/_abstract/abstract.facade.ts:73
utility method to generate a new GUID. This is used to track actions.
Returns
Section titled “Returns”string
A new GUID.
Inherited from
Section titled “Inherited from”AbstractStatefulFacade.getNewId
getQueryBuilder()
Section titled “getQueryBuilder()”getQueryBuilder(…
args):AspectQueryBuilder
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/aspect.facade.ts:42
Get a new instance of the AspectQueryBuilder.
Parameters
Section titled “Parameters”…[AbstractQueryBuilderOptions<AspectQueryFilterKeys, AspectQuery>]
Returns
Section titled “Returns”Overrides
Section titled “Overrides”AbstractStatefulFacade.getQueryBuilder
lastLoadedData()
Section titled “lastLoadedData()”lastLoadedData():
Observable<Aspect[] |null>
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/aspect.facade.ts:54
Returns
Section titled “Returns”Observable<Aspect[] | null>
Deprecated
Section titled “Deprecated”Gets the last loaded data of aspects.
load()
Section titled “load()”load(
query?):Observable<FacadeFinished<Aspect[]>>
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/aspect.facade.ts:178
Loads Aspects based on the provided filter.
Parameters
Section titled “Parameters”query?
Section titled “query?”FacadeAspectLoad
The query to filter Aspects.
Returns
Section titled “Returns”Observable<FacadeFinished<Aspect[]>>
Examples
Section titled “Examples”load({ fyzFacadeType: 'page', page: 1, pageSize: 10 });load();load({ fyzFacadeType: 'page' });load({ fyzFacadeType: 'load', name:'Aspect1'});loadAll()
Section titled “loadAll()”Call Signature
Section titled “Call Signature”loadAll():
Observable<FacadeFinished<Aspect[]>>
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/aspect.facade.ts:98
Returns
Section titled “Returns”Observable<FacadeFinished<Aspect[]>>
Deprecated
Section titled “Deprecated”use the load method instead. Loads all aspects based on the provided filter.
Call Signature
Section titled “Call Signature”loadAll(
query):Observable<FacadeFinished<Aspect[]>>
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/aspect.facade.ts:103
Load all Aspect based on the provided query - handles pagination internally and loads all.
Parameters
Section titled “Parameters”FacadeAspect_LoadAll
Returns
Section titled “Returns”Observable<FacadeFinished<Aspect[]>>
loadAllAsync()
Section titled “loadAllAsync()”loadAllAsync(
query):Promise<FacadeFinished<Aspect[]>>
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/aspect.facade.ts:157
A awaitable impl. of the
Parameters
Section titled “Parameters”FacadeAspect_LoadAll
Returns
Section titled “Returns”Promise<FacadeFinished<Aspect[]>>
loadAll method.
loadAsync()
Section titled “loadAsync()”loadAsync(
query?):Promise<FacadeFinished<Aspect[]>>
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/aspect.facade.ts:240
A awaitable implementation of the
Parameters
Section titled “Parameters”query?
Section titled “query?”FacadeAspectLoad
Returns
Section titled “Returns”Promise<FacadeFinished<Aspect[]>>
load method.
selectAll()
Section titled “selectAll()”selectAll():
Observable<Aspect[]>
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/aspect.facade.ts:83
Returns
Section titled “Returns”Observable<Aspect[]>
Deprecated
Section titled “Deprecated”use selectAll() select all aspects in the store.
update()
Section titled “update()”update(
action):Observable<FacadeFinished<Aspect>>
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/aspect.facade.ts:272
Updates an existing aspect.
Parameters
Section titled “Parameters”action
Section titled “action”Returns
Section titled “Returns”Observable<FacadeFinished<Aspect>>
updateAsync()
Section titled “updateAsync()”updateAsync(
action):Promise<FacadeFinished<Aspect>>
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/aspect.facade.ts:302
A awaitable implementation of the
Parameters
Section titled “Parameters”action
Section titled “action”Returns
Section titled “Returns”Promise<FacadeFinished<Aspect>>
update method.