Class: AspectTypeFacade
@flyze/lib-data-store 3.0.0-alpha.55· latestDefined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/aspect-type.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<"aspectType",AspectTypeQueryBuilder,AspectType>
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new AspectTypeFacade(
instance,facadeStore):AspectTypeFacade
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/aspect-type.facade.ts:28
Parameters
Section titled “Parameters”instance
Section titled “instance”ApiStoreInstance
facadeStore
Section titled “facadeStore”FacadeStore
Returns
Section titled “Returns”AspectTypeFacade
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,never>
Parameters
Section titled “Parameters”ExecutableQuery
Returns
Section titled “Returns”CanExecuteResult<string, never>
select()
Section titled “select()”select: (
q) =>DistinctSelector<RootStore, [number|AspectType|AspectType[] |undefined,number|AspectType|AspectType[] |undefined,AspectType[]],AspectType[]>
Parameters
Section titled “Parameters”string | string[]
string | string[]
Returns
Section titled “Returns”DistinctSelector<RootStore, [number | AspectType | AspectType[] | undefined, number | AspectType | AspectType[] | undefined, AspectType[]], AspectType[]>
selectAll()
Section titled “selectAll()”selectAll: () =>
MemoizedSelector<RootStore,AspectType[], (s1) =>AspectType[]> |MemoizedSelector<RootStore,AspectType[], (s1) =>AspectType[]>
Returns
Section titled “Returns”MemoizedSelector<RootStore, AspectType[], (s1) => AspectType[]> | MemoizedSelector<RootStore, AspectType[], (s1) => AspectType[]>
selectByExecutableQuery()
Section titled “selectByExecutableQuery()”selectByExecutableQuery: (
q) =>MemoizedSelector<RootStore,AspectType[],any>
Parameters
Section titled “Parameters”ExecutableQuery
Returns
Section titled “Returns”MemoizedSelector<RootStore, AspectType[], any>
selectByFilter()
Section titled “selectByFilter()”selectByFilter: (
filterFn) =>MemoizedSelector<RootStore,AspectType[], (s1) =>AspectType[]>
Parameters
Section titled “Parameters”filterFn
Section titled “filterFn”(entity) => boolean
Returns
Section titled “Returns”MemoizedSelector<RootStore, AspectType[], (s1) => AspectType[]>
selectById()
Section titled “selectById()”selectById: (
id) =>MemoizedSelector<RootStore,AspectType|undefined, (s1) =>AspectType|undefined>
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”MemoizedSelector<RootStore, AspectType | undefined, (s1) => AspectType | undefined>
selectByIds()
Section titled “selectByIds()”selectByIds: (
ids) =>MemoizedSelector<RootStore,AspectType[], (s1) =>AspectType[]>
Parameters
Section titled “Parameters”string[]
Returns
Section titled “Returns”MemoizedSelector<RootStore, AspectType[], (s1) => AspectType[]>
selectByName()
Section titled “selectByName()”selectByName: (
name) =>MemoizedSelector<RootStore,AspectType|undefined, (s1) =>AspectType|undefined>
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”MemoizedSelector<RootStore, AspectType | undefined, (s1) => AspectType | undefined>
selectByNames()
Section titled “selectByNames()”selectByNames: (
names) =>MemoizedSelector<RootStore,AspectType[], (s1) =>AspectType[]>
Parameters
Section titled “Parameters”string[]
Returns
Section titled “Returns”MemoizedSelector<RootStore, AspectType[], (s1) => AspectType[]>
selectCountByExecutableQuery()
Section titled “selectCountByExecutableQuery()”selectCountByExecutableQuery: (
q) =>MemoizedSelector<RootStore, {items:AspectType[];totalCount:number; },any>
Parameters
Section titled “Parameters”ExecutableQuery
Returns
Section titled “Returns”MemoizedSelector<RootStore, { items: AspectType[]; totalCount: number; }, any>
selectCreated()
Section titled “selectCreated()”selectCreated: (
actionId?) =>MemoizedSelector<RootStore,flowSuccess<AspectType> |null, (s1) =>flowSuccess<AspectType> |null>
Parameters
Section titled “Parameters”actionId?
Section titled “actionId?”string
Returns
Section titled “Returns”MemoizedSelector<RootStore, flowSuccess<AspectType> | null, (s1) => flowSuccess<AspectType> | null>
selectCreatedEntity()
Section titled “selectCreatedEntity()”selectCreatedEntity: () =>
MemoizedSelector<RootStore,AspectType|undefined, (s1) =>AspectType|undefined>
Returns
Section titled “Returns”MemoizedSelector<RootStore, AspectType | undefined, (s1) => AspectType | 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<AspectType>, (s1,s2) =>FinishedSelectorResponse>
Parameters
Section titled “Parameters”actionId
Section titled “actionId”string
Returns
Section titled “Returns”MemoizedSelector<any, FinishedSelectorResponse<AspectType>, (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<AspectType> |null, (s1) =>flowSuccess<AspectType> |null>
Parameters
Section titled “Parameters”actionId?
Section titled “actionId?”string
Returns
Section titled “Returns”MemoizedSelector<RootStore, flowSuccess<AspectType> | null, (s1) => flowSuccess<AspectType> | null>
selectDeletedEntity()
Section titled “selectDeletedEntity()”selectDeletedEntity: () =>
MemoizedSelector<RootStore,AspectType|undefined, (s1) =>AspectType|undefined>
Returns
Section titled “Returns”MemoizedSelector<RootStore, AspectType | undefined, (s1) => AspectType | 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<AspectType>, (s1,s2) =>FinishedSelectorResponse>
Parameters
Section titled “Parameters”actionId
Section titled “actionId”string
Returns
Section titled “Returns”MemoizedSelector<any, FinishedSelectorResponse<AspectType>, (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<AspectType>, (s1) =>Dictionary> |MemoizedSelector<RootStore,Dictionary<AspectType>, (s1) =>Dictionary>
Returns
Section titled “Returns”MemoizedSelector<RootStore, Dictionary<AspectType>, (s1) => Dictionary> | MemoizedSelector<RootStore, Dictionary<AspectType>, (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,AspectType[] |null, (s1) =>AspectType[] |null>
Returns
Section titled “Returns”MemoizedSelector<RootStore, AspectType[] | null, (s1) => AspectType[] | null>
selectLoaded()
Section titled “selectLoaded()”selectLoaded: (
actionId?) =>MemoizedSelector<RootStore,flowSuccess<AspectType[]> |null, (s1) =>flowSuccess<AspectType[]> |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<AspectType[]> | null, (s1) => flowSuccess<AspectType[]> | 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<AspectType[]>, (s1,s2) =>FinishedSelectorResponse>
Parameters
Section titled “Parameters”actionId
Section titled “actionId”string
Returns
Section titled “Returns”MemoizedSelector<any, FinishedSelectorResponse<AspectType[]>, (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<AspectType> |null, (s1) =>flowSuccess<AspectType> |null>
Parameters
Section titled “Parameters”actionId?
Section titled “actionId?”string
Returns
Section titled “Returns”MemoizedSelector<RootStore, flowSuccess<AspectType> | null, (s1) => flowSuccess<AspectType> | null>
selectUpdatedEntity()
Section titled “selectUpdatedEntity()”selectUpdatedEntity: () =>
MemoizedSelector<RootStore,AspectType|undefined, (s1) =>AspectType|undefined>
Returns
Section titled “Returns”MemoizedSelector<RootStore, AspectType | undefined, (s1) => AspectType | 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<AspectType>, (s1,s2) =>FinishedSelectorResponse>
Parameters
Section titled “Parameters”actionId
Section titled “actionId”string
Returns
Section titled “Returns”MemoizedSelector<any, FinishedSelectorResponse<AspectType>, (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-type.facade.ts:29
Inherited from
Section titled “Inherited from”AbstractStatefulFacade.instance
section
Section titled “section”
protectedsection:"aspectType"
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(
createBody):Observable<FacadeFinished<AspectType>>
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/aspect-type.facade.ts:226
Creates a new aspectType.
Parameters
Section titled “Parameters”createBody
Section titled “createBody”The body of the new aspectType to be created.
Returns
Section titled “Returns”Observable<FacadeFinished<AspectType>>
createAsync()
Section titled “createAsync()”createAsync(
createBody):Promise<FacadeFinished<AspectType>>
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/aspect-type.facade.ts:240
A awaitable implementation of the
Parameters
Section titled “Parameters”createBody
Section titled “createBody”Returns
Section titled “Returns”Promise<FacadeFinished<AspectType>>
create method.
delete()
Section titled “delete()”delete(
deleteBody):Observable<FacadeFinished<AspectType>>
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/aspect-type.facade.ts:285
Deletes an existing aspectType.
Parameters
Section titled “Parameters”deleteBody
Section titled “deleteBody”The body of the aspectType to be deleted.
Returns
Section titled “Returns”Observable<FacadeFinished<AspectType>>
deleteAsync()
Section titled “deleteAsync()”deleteAsync(
deleteBody):Promise<FacadeFinished<AspectType>>
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/aspect-type.facade.ts:308
A awaitable implementation of the
Parameters
Section titled “Parameters”deleteBody
Section titled “deleteBody”Returns
Section titled “Returns”Promise<FacadeFinished<AspectType>>
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<AspectType|undefined>
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/aspect-type.facade.ts:60
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”Observable<AspectType | undefined>
Deprecated
Section titled “Deprecated”Filters aspectTypes by specified ID.
getAll()
Section titled “getAll()”getAll():
Observable<AspectType[]>
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/aspect-type.facade.ts:70
Returns
Section titled “Returns”Observable<AspectType[]>
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):AspectTypeQueryBuilder
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/aspect-type.facade.ts:38
Get a new instance of the AspectTypeQueryBuilder.
Parameters
Section titled “Parameters”…[AbstractQueryBuilderOptions<AspectTypeQueryFilterKeys, AspectTypeQuery>]
Returns
Section titled “Returns”Overrides
Section titled “Overrides”AbstractStatefulFacade.getQueryBuilder
lastLoadedData()
Section titled “lastLoadedData()”lastLoadedData():
Observable<AspectType[] |null>
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/aspect-type.facade.ts:49
Returns
Section titled “Returns”Observable<AspectType[] | null>
Deprecated
Section titled “Deprecated”Gets the last loaded data of aspectTypes.
load()
Section titled “load()”load(
query?):Observable<FacadeFinished<AspectType[]>>
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/aspect-type.facade.ts:174
Loads AspectTypes based on the provided filter.
Parameters
Section titled “Parameters”query?
Section titled “query?”FacadeAspectTypeLoad
The query to filter AspectTypes.
Returns
Section titled “Returns”Observable<FacadeFinished<AspectType[]>>
Examples
Section titled “Examples”load({ fyzFacadeType: 'page', page: 1, pageSize: 10 });load();load({ fyzFacadeType: 'page' });loadAll()
Section titled “loadAll()”Call Signature
Section titled “Call Signature”loadAll():
Observable<FacadeFinished<AspectType[]>>
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/aspect-type.facade.ts:97
Returns
Section titled “Returns”Observable<FacadeFinished<AspectType[]>>
Deprecated
Section titled “Deprecated”use the load method instead. Loads all aspectTypes based on the provided filter.
Call Signature
Section titled “Call Signature”loadAll(
query):Observable<FacadeFinished<AspectType[]>>
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/aspect-type.facade.ts:102
Load all aspectTypes based on the provided query - handles pagination internally and loads all.
Parameters
Section titled “Parameters”FacadeAspectType_LoadAll
Returns
Section titled “Returns”Observable<FacadeFinished<AspectType[]>>
loadAllAsync()
Section titled “loadAllAsync()”loadAllAsync(
query?):Promise<FacadeFinished<AspectType[]>>
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/aspect-type.facade.ts:156
A awaitable impl. of the
Parameters
Section titled “Parameters”query?
Section titled “query?”FacadeAspectType_LoadAll
Returns
Section titled “Returns”Promise<FacadeFinished<AspectType[]>>
loadAll method.
loadAsync()
Section titled “loadAsync()”loadAsync(
query?):Promise<FacadeFinished<AspectType[]>>
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/aspect-type.facade.ts:218
A awaitable implementation of the
Parameters
Section titled “Parameters”query?
Section titled “query?”FacadeAspectTypeLoad
Returns
Section titled “Returns”Promise<FacadeFinished<AspectType[]>>
load method.
selectAll()
Section titled “selectAll()”selectAll():
Observable<AspectType[]>
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/aspect-type.facade.ts:82
Returns
Section titled “Returns”Observable<AspectType[]>
An Observable that resolves to all aspect types.
Deprecated
Section titled “Deprecated”use selectAll() select all aspectTypes in the store.
update()
Section titled “update()”update(
updateBody):Observable<FacadeFinished<AspectType>>
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/aspect-type.facade.ts:248
Updates an existing aspectType.
Parameters
Section titled “Parameters”updateBody
Section titled “updateBody”The body of the aspectType to be updated.
Returns
Section titled “Returns”Observable<FacadeFinished<AspectType>>
updateAsync()
Section titled “updateAsync()”updateAsync(
updateBody):Promise<FacadeFinished<AspectType>>
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/aspect-type.facade.ts:277
A awaitable implementation of the
Parameters
Section titled “Parameters”updateBody
Section titled “updateBody”Returns
Section titled “Returns”Promise<FacadeFinished<AspectType>>
update method.