Class: AspectDataFacade
@flyze/lib-data-store 3.0.0-alpha.55· latestDefined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/aspect-data.facade.ts:23
Abstract class representing a facade for interacting with assets through the Flyze API. This class provides common methods for checking loading, creating, updating, and deleting states and errors.
Extends
Section titled “Extends”AbstractStatefulFacade<"aspectData",AspectDataQueryBuilder,AspectData>
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new AspectDataFacade(
instance,facadeStore):AspectDataFacade
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/aspect-data.facade.ts:28
Parameters
Section titled “Parameters”instance
Section titled “instance”ApiStoreInstance
facadeStore
Section titled “facadeStore”FacadeStore
Returns
Section titled “Returns”AspectDataFacade
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"|"aspects">
Parameters
Section titled “Parameters”ExecutableQuery
Returns
Section titled “Returns”CanExecuteResult<string, "aspectTypes" | "assets" | "assetTypes" | "aspects">
select()
Section titled “select()”select: (
q) =>DistinctSelector<RootStore, [number|AspectData<any> |AspectData<any>[] |undefined,number|AspectData<any>[],number|AspectData<any>[],number|AspectData<any>[],AspectData<any>[]],AspectData<any>[]>
Parameters
Section titled “Parameters”aspectId?
Section titled “aspectId?”string | string[]
aspectName?
Section titled “aspectName?”string
assetFullName?
Section titled “assetFullName?”string
string | string[]
Returns
Section titled “Returns”DistinctSelector<RootStore, [number | AspectData<any> | AspectData<any>[] | undefined, number | AspectData<any>[], number | AspectData<any>[], number | AspectData<any>[], AspectData<any>[]], AspectData<any>[]>
selectAll()
Section titled “selectAll()”selectAll: () =>
MemoizedSelector<RootStore,AspectData<any>[], (s1) =>AspectData<any>[]> |MemoizedSelector<RootStore,AspectData<any>[], (s1) =>AspectData<any>[]>
Returns
Section titled “Returns”MemoizedSelector<RootStore, AspectData<any>[], (s1) => AspectData<any>[]> | MemoizedSelector<RootStore, AspectData<any>[], (s1) => AspectData<any>[]>
selectByAspectId()
Section titled “selectByAspectId()”selectByAspectId: (
aspectId) =>MemoizedSelector<RootStore,AspectData<any>[], (s1) =>AspectData<any>[]>
Parameters
Section titled “Parameters”aspectId
Section titled “aspectId”string | string[]
Returns
Section titled “Returns”MemoizedSelector<RootStore, AspectData<any>[], (s1) => AspectData<any>[]>
selectByExecutableQuery()
Section titled “selectByExecutableQuery()”selectByExecutableQuery: (
q) =>MemoizedSelector<RootStore,AspectData<any>[],any>
Parameters
Section titled “Parameters”ExecutableQuery
Returns
Section titled “Returns”MemoizedSelector<RootStore, AspectData<any>[], any>
selectByFilter()
Section titled “selectByFilter()”selectByFilter: (
filterFn) =>MemoizedSelector<RootStore,AspectData<any>[], (s1) =>AspectData<any>[]>
Parameters
Section titled “Parameters”filterFn
Section titled “filterFn”(entity) => boolean
Returns
Section titled “Returns”MemoizedSelector<RootStore, AspectData<any>[], (s1) => AspectData<any>[]>
selectById()
Section titled “selectById()”selectById: (
id) =>MemoizedSelector<RootStore,AspectData<any> |undefined, (s1) =>AspectData<any> |undefined>
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”MemoizedSelector<RootStore, AspectData<any> | undefined, (s1) => AspectData<any> | undefined>
selectByIds()
Section titled “selectByIds()”selectByIds: (
ids) =>MemoizedSelector<RootStore,AspectData<any>[], (s1) =>AspectData<any>[]>
Parameters
Section titled “Parameters”string[]
Returns
Section titled “Returns”MemoizedSelector<RootStore, AspectData<any>[], (s1) => AspectData<any>[]>
selectByPath()
Section titled “selectByPath()”selectByPath: (
path) =>DistinctSelector<RootStore, [AspectData<any>[]],AspectData<any>[]>
Parameters
Section titled “Parameters”string | string[]
Returns
Section titled “Returns”DistinctSelector<RootStore, [AspectData<any>[]], AspectData<any>[]>
selectCountByExecutableQuery()
Section titled “selectCountByExecutableQuery()”selectCountByExecutableQuery: (
q) =>MemoizedSelector<RootStore, {items:AspectData<any>[];totalCount:number; },any>
Parameters
Section titled “Parameters”ExecutableQuery
Returns
Section titled “Returns”MemoizedSelector<RootStore, { items: AspectData<any>[]; totalCount: number; }, any>
selectCreated()
Section titled “selectCreated()”selectCreated: (
actionId?) =>MemoizedSelector<RootStore,flowSuccess<AspectData<any>> |null, (s1) =>flowSuccess<AspectData<any>> |null>
Parameters
Section titled “Parameters”actionId?
Section titled “actionId?”string
Returns
Section titled “Returns”MemoizedSelector<RootStore, flowSuccess<AspectData<any>> | null, (s1) => flowSuccess<AspectData<any>> | null>
selectCreatedEntity()
Section titled “selectCreatedEntity()”selectCreatedEntity: () =>
MemoizedSelector<RootStore,AspectData<any> |undefined, (s1) =>AspectData<any> |undefined>
Returns
Section titled “Returns”MemoizedSelector<RootStore, AspectData<any> | undefined, (s1) => AspectData<any> | 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<AspectData<any>>, (s1,s2) =>FinishedSelectorResponse>
Parameters
Section titled “Parameters”actionId
Section titled “actionId”string
Returns
Section titled “Returns”MemoizedSelector<any, FinishedSelectorResponse<AspectData<any>>, (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<AspectData<any>> |null, (s1) =>flowSuccess<AspectData<any>> |null>
Parameters
Section titled “Parameters”actionId?
Section titled “actionId?”string
Returns
Section titled “Returns”MemoizedSelector<RootStore, flowSuccess<AspectData<any>> | null, (s1) => flowSuccess<AspectData<any>> | null>
selectDeletedEntity()
Section titled “selectDeletedEntity()”selectDeletedEntity: () =>
MemoizedSelector<RootStore,AspectData<any> |undefined, (s1) =>AspectData<any> |undefined>
Returns
Section titled “Returns”MemoizedSelector<RootStore, AspectData<any> | undefined, (s1) => AspectData<any> | 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<AspectData<any>>, (s1,s2) =>FinishedSelectorResponse>
Parameters
Section titled “Parameters”actionId
Section titled “actionId”string
Returns
Section titled “Returns”MemoizedSelector<any, FinishedSelectorResponse<AspectData<any>>, (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<AspectData<any>>, (s1) =>Dictionary> |MemoizedSelector<RootStore,Dictionary<AspectData<any>>, (s1) =>Dictionary>
Returns
Section titled “Returns”MemoizedSelector<RootStore, Dictionary<AspectData<any>>, (s1) => Dictionary> | MemoizedSelector<RootStore, Dictionary<AspectData<any>>, (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,AspectData<any>[] |null, (s1) =>AspectData<any>[] |null>
Returns
Section titled “Returns”MemoizedSelector<RootStore, AspectData<any>[] | null, (s1) => AspectData<any>[] | null>
selectLoaded()
Section titled “selectLoaded()”selectLoaded: (
actionId?) =>MemoizedSelector<RootStore,flowSuccess<AspectData<any>[]> |null, (s1) =>flowSuccess<AspectData<any>[]> |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<AspectData<any>[]> | null, (s1) => flowSuccess<AspectData<any>[]> | 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<AspectData<any>[]>, (s1,s2) =>FinishedSelectorResponse>
Parameters
Section titled “Parameters”actionId
Section titled “actionId”string
Returns
Section titled “Returns”MemoizedSelector<any, FinishedSelectorResponse<AspectData<any>[]>, (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<AspectData<any>> |null, (s1) =>flowSuccess<AspectData<any>> |null>
Parameters
Section titled “Parameters”actionId?
Section titled “actionId?”string
Returns
Section titled “Returns”MemoizedSelector<RootStore, flowSuccess<AspectData<any>> | null, (s1) => flowSuccess<AspectData<any>> | null>
selectUpdatedEntity()
Section titled “selectUpdatedEntity()”selectUpdatedEntity: () =>
MemoizedSelector<RootStore,AspectData<any> |undefined, (s1) =>AspectData<any> |undefined>
Returns
Section titled “Returns”MemoizedSelector<RootStore, AspectData<any> | undefined, (s1) => AspectData<any> | 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<AspectData<any>>, (s1,s2) =>FinishedSelectorResponse>
Parameters
Section titled “Parameters”actionId
Section titled “actionId”string
Returns
Section titled “Returns”MemoizedSelector<any, FinishedSelectorResponse<AspectData<any>>, (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-data.facade.ts:29
Inherited from
Section titled “Inherited from”AbstractStatefulFacade.instance
section
Section titled “section”
protectedsection:"aspectData"
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(
arg):Observable<FacadeFinished<AspectData<any>>>
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/aspect-data.facade.ts:227
Creates a new aspectData.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”Observable<FacadeFinished<AspectData<any>>>
createAsync()
Section titled “createAsync()”createAsync(
arg):Promise<FacadeFinished<AspectData<any>>>
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/aspect-data.facade.ts:241
A awaitable implementation of the
Parameters
Section titled “Parameters”Returns
Section titled “Returns”Promise<FacadeFinished<AspectData<any>>>
create method.
delete()
Section titled “delete()”delete(
arg):Observable<FacadeFinished<AspectData<any>>>
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/aspect-data.facade.ts:288
Deletes an existing aspectData.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”Observable<FacadeFinished<AspectData<any>>>
deleteAsync()
Section titled “deleteAsync()”deleteAsync(
arg):Promise<FacadeFinished<AspectData<any>>>
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/aspect-data.facade.ts:311
A awaitable implementation of the
Parameters
Section titled “Parameters”Returns
Section titled “Returns”Promise<FacadeFinished<AspectData<any>>>
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<AspectData<any> |undefined>
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/aspect-data.facade.ts:60
Filters aspectDatas by specified ID.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”Observable<AspectData<any> | undefined>
Deprecated
Section titled “Deprecated”use a selector directly from the store, e.g. facade.select(facade.selectors.selectById(id))
getAll()
Section titled “getAll()”getAll():
Observable<AspectData<any>[]>
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/aspect-data.facade.ts:70
Returns
Section titled “Returns”Observable<AspectData<any>[]>
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):AspectDataQueryBuilder
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/aspect-data.facade.ts:38
Get a new instance of the AspectDataQueryBuilder.
Parameters
Section titled “Parameters”…[AbstractQueryBuilderOptions<AspectDataQueryFilterKeys, AspectDataQuery>]
Returns
Section titled “Returns”Overrides
Section titled “Overrides”AbstractStatefulFacade.getQueryBuilder
lastLoadedData()
Section titled “lastLoadedData()”lastLoadedData():
Observable<AspectData<any>[] |null>
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/aspect-data.facade.ts:49
Returns
Section titled “Returns”Observable<AspectData<any>[] | null>
Deprecated
Section titled “Deprecated”Gets the last loaded data of aspectDatas.
load()
Section titled “load()”load(
query?):Observable<FacadeFinished<AspectData<any>[]>>
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/aspect-data.facade.ts:173
Loads AspectData based on the provided filter.
Parameters
Section titled “Parameters”query?
Section titled “query?”FacadeAspectDataLoad
The query to filter AspectData.
Returns
Section titled “Returns”Observable<FacadeFinished<AspectData<any>[]>>
Examples
Section titled “Examples”load({ fyzFacadeType: 'page', page: 1, pageSize: 10 });load();load({ fyzFacadeType: 'page' });load({ fyzFacadeType: 'get', filter: 'id = aaa-bbb-ccc' });loadAll()
Section titled “loadAll()”loadAll(
query):Observable<FacadeFinished<AspectData<any>[]>>
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/aspect-data.facade.ts:97
Load all AspectData based on the provided query - handles pagination internally and loads all. NOTE! providing a empty query will load ALL Data.
Parameters
Section titled “Parameters”FacadeAspectData_LoadAll
Returns
Section titled “Returns”Observable<FacadeFinished<AspectData<any>[]>>
loadAllAsync()
Section titled “loadAllAsync()”loadAllAsync(
query):Promise<FacadeFinished<AspectData<any>[]>>
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/aspect-data.facade.ts:151
A awaitable impl. of the
Parameters
Section titled “Parameters”FacadeAspectData_LoadAll
Returns
Section titled “Returns”Promise<FacadeFinished<AspectData<any>[]>>
loadAll method.
loadAsync()
Section titled “loadAsync()”loadAsync(
query?):Promise<FacadeFinished<AspectData<any>[]>>
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/aspect-data.facade.ts:218
A awaitable implementation of the
Parameters
Section titled “Parameters”query?
Section titled “query?”FacadeAspectDataLoad
Returns
Section titled “Returns”Promise<FacadeFinished<AspectData<any>[]>>
load method.
selectAll()
Section titled “selectAll()”selectAll():
Observable<AspectData<any>[]>
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/aspect-data.facade.ts:82
select all aspectData in the store.
Returns
Section titled “Returns”Observable<AspectData<any>[]>
An Observable that resolves to all aspects.
Deprecated
Section titled “Deprecated”use a selector directly from the store, e.g. facade.select(facade.selectors.selectAll())
update()
Section titled “update()”update(
arg):Observable<FacadeFinished<AspectData<any>>>
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/aspect-data.facade.ts:250
Updates an existing aspectData.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”Observable<FacadeFinished<AspectData<any>>>
updateAsync()
Section titled “updateAsync()”updateAsync(
arg):Promise<FacadeFinished<AspectData<any>>>
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/aspect-data.facade.ts:279
A awaitable implementation of the
Parameters
Section titled “Parameters”Returns
Section titled “Returns”Promise<FacadeFinished<AspectData<any>>>
update method.