Class: AssetFacade
@flyze/lib-data-store 3.0.0-alpha.55· latestDefined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/asset.facade.ts:26
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<"asset",AssetQueryBuilder,Asset>
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new AssetFacade(
instance,facadeStore):AssetFacade
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/asset.facade.ts:31
Parameters
Section titled “Parameters”instance
Section titled “instance”ApiStoreInstance
facadeStore
Section titled “facadeStore”FacadeStore
Returns
Section titled “Returns”AssetFacade
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,"assetTypes">
Parameters
Section titled “Parameters”ExecutableQuery
Returns
Section titled “Returns”CanExecuteResult<string, "assetTypes">
select()
Section titled “select()”select: (
q) =>DistinctSelector<RootStore, [number|Asset[],number|Asset[],number|Asset[],number|Asset[],Asset[]],Asset[]>
Parameters
Section titled “Parameters”AssetSelectQuery
Returns
Section titled “Returns”DistinctSelector<RootStore, [number | Asset[], number | Asset[], number | Asset[], number | Asset[], Asset[]], Asset[]>
selectAll()
Section titled “selectAll()”selectAll: () =>
MemoizedSelector<RootStore,Asset[], (s1) =>Asset[]> |MemoizedSelector<RootStore,Asset[], (s1) =>Asset[]>
Returns
Section titled “Returns”MemoizedSelector<RootStore, Asset[], (s1) => Asset[]> | MemoizedSelector<RootStore, Asset[], (s1) => Asset[]>
selectByExecutableQuery()
Section titled “selectByExecutableQuery()”selectByExecutableQuery: (
q) =>MemoizedSelector<RootStore,Asset[],any>
Parameters
Section titled “Parameters”ExecutableQuery
Returns
Section titled “Returns”MemoizedSelector<RootStore, Asset[], any>
selectByFilter()
Section titled “selectByFilter()”selectByFilter: (
filterFn) =>MemoizedSelector<RootStore,Asset[], (s1) =>Asset[]>
Parameters
Section titled “Parameters”filterFn
Section titled “filterFn”(entity) => boolean
Returns
Section titled “Returns”MemoizedSelector<RootStore, Asset[], (s1) => Asset[]>
selectById()
Section titled “selectById()”selectById: (
id) =>MemoizedSelector<RootStore,Asset|undefined, (s1) =>Asset|undefined>
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”MemoizedSelector<RootStore, Asset | undefined, (s1) => Asset | undefined>
selectByIds()
Section titled “selectByIds()”selectByIds: (
ids) =>MemoizedSelector<RootStore,Asset[], (s1) =>Asset[]>
Parameters
Section titled “Parameters”string[]
Returns
Section titled “Returns”MemoizedSelector<RootStore, Asset[], (s1) => Asset[]>
selectByPath()
Section titled “selectByPath()”selectByPath: (
path) =>DistinctSelector<RootStore, [Asset[]],Asset[]>
Parameters
Section titled “Parameters”string | string[]
Returns
Section titled “Returns”DistinctSelector<RootStore, [Asset[]], Asset[]>
selectByTypeId()
Section titled “selectByTypeId()”selectByTypeId: (
typeId) =>MemoizedSelector<RootStore,Asset[], (s1) =>Asset[]>
Parameters
Section titled “Parameters”typeId
Section titled “typeId”string | string[]
Returns
Section titled “Returns”MemoizedSelector<RootStore, Asset[], (s1) => Asset[]>
selectCountByExecutableQuery()
Section titled “selectCountByExecutableQuery()”selectCountByExecutableQuery: (
q) =>MemoizedSelector<RootStore, {items:Asset[];totalCount:number; },any>
Parameters
Section titled “Parameters”ExecutableQuery
Returns
Section titled “Returns”MemoizedSelector<RootStore, { items: Asset[]; totalCount: number; }, any>
selectCreated()
Section titled “selectCreated()”selectCreated: (
actionId?) =>MemoizedSelector<RootStore,flowSuccess<Asset> |null, (s1) =>flowSuccess<Asset> |null>
Parameters
Section titled “Parameters”actionId?
Section titled “actionId?”string
Returns
Section titled “Returns”MemoizedSelector<RootStore, flowSuccess<Asset> | null, (s1) => flowSuccess<Asset> | null>
selectCreatedEntity()
Section titled “selectCreatedEntity()”selectCreatedEntity: () =>
MemoizedSelector<RootStore,Asset|undefined, (s1) =>Asset|undefined>
Returns
Section titled “Returns”MemoizedSelector<RootStore, Asset | undefined, (s1) => Asset | 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<Asset>, (s1,s2) =>FinishedSelectorResponse>
Parameters
Section titled “Parameters”actionId
Section titled “actionId”string
Returns
Section titled “Returns”MemoizedSelector<any, FinishedSelectorResponse<Asset>, (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<Asset> |null, (s1) =>flowSuccess<Asset> |null>
Parameters
Section titled “Parameters”actionId?
Section titled “actionId?”string
Returns
Section titled “Returns”MemoizedSelector<RootStore, flowSuccess<Asset> | null, (s1) => flowSuccess<Asset> | null>
selectDeletedEntity()
Section titled “selectDeletedEntity()”selectDeletedEntity: () =>
MemoizedSelector<RootStore,Asset|undefined, (s1) =>Asset|undefined>
Returns
Section titled “Returns”MemoizedSelector<RootStore, Asset | undefined, (s1) => Asset | 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<Asset>, (s1,s2) =>FinishedSelectorResponse>
Parameters
Section titled “Parameters”actionId
Section titled “actionId”string
Returns
Section titled “Returns”MemoizedSelector<any, FinishedSelectorResponse<Asset>, (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<Asset>, (s1) =>Dictionary> |MemoizedSelector<RootStore,Dictionary<Asset>, (s1) =>Dictionary>
Returns
Section titled “Returns”MemoizedSelector<RootStore, Dictionary<Asset>, (s1) => Dictionary> | MemoizedSelector<RootStore, Dictionary<Asset>, (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,Asset[] |null, (s1) =>Asset[] |null>
Returns
Section titled “Returns”MemoizedSelector<RootStore, Asset[] | null, (s1) => Asset[] | null>
selectLoaded()
Section titled “selectLoaded()”selectLoaded: (
actionId?) =>MemoizedSelector<RootStore,flowSuccess<Asset[]> |null, (s1) =>flowSuccess<Asset[]> |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<Asset[]> | null, (s1) => flowSuccess<Asset[]> | 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<Asset[]>, (s1,s2) =>FinishedSelectorResponse>
Parameters
Section titled “Parameters”actionId
Section titled “actionId”string
Returns
Section titled “Returns”MemoizedSelector<any, FinishedSelectorResponse<Asset[]>, (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<Asset> |null, (s1) =>flowSuccess<Asset> |null>
Parameters
Section titled “Parameters”actionId?
Section titled “actionId?”string
Returns
Section titled “Returns”MemoizedSelector<RootStore, flowSuccess<Asset> | null, (s1) => flowSuccess<Asset> | null>
selectUpdatedEntity()
Section titled “selectUpdatedEntity()”selectUpdatedEntity: () =>
MemoizedSelector<RootStore,Asset|undefined, (s1) =>Asset|undefined>
Returns
Section titled “Returns”MemoizedSelector<RootStore, Asset | undefined, (s1) => Asset | 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<Asset>, (s1,s2) =>FinishedSelectorResponse>
Parameters
Section titled “Parameters”actionId
Section titled “actionId”string
Returns
Section titled “Returns”MemoizedSelector<any, FinishedSelectorResponse<Asset>, (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/asset.facade.ts:32
Inherited from
Section titled “Inherited from”AbstractStatefulFacade.instance
section
Section titled “section”
protectedsection:"asset"
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<Asset>>
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/asset.facade.ts:257
Creates a new asset.
Parameters
Section titled “Parameters”createBody
Section titled “createBody”Returns
Section titled “Returns”Observable<FacadeFinished<Asset>>
createAsync()
Section titled “createAsync()”createAsync(
createBody):Promise<FacadeFinished<Asset>>
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/asset.facade.ts:272
A awaitable implementation of the
Parameters
Section titled “Parameters”createBody
Section titled “createBody”Returns
Section titled “Returns”Promise<FacadeFinished<Asset>>
create method.
delete()
Section titled “delete()”delete(
deleteBody):Observable<FacadeFinished<Asset>>
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/asset.facade.ts:323
Deletes an existing asset.
Parameters
Section titled “Parameters”deleteBody
Section titled “deleteBody”Returns
Section titled “Returns”Observable<FacadeFinished<Asset>>
deleteAsync()
Section titled “deleteAsync()”deleteAsync(
deleteBody):Promise<FacadeFinished<Asset>>
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/asset.facade.ts:361
A awaitable implementation of the
Parameters
Section titled “Parameters”deleteBody
Section titled “deleteBody”Returns
Section titled “Returns”Promise<FacadeFinished<Asset>>
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
getAll()
Section titled “getAll()”getAll():
Observable<Asset[]>
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/asset.facade.ts:52
Returns
Section titled “Returns”Observable<Asset[]>
Deprecated
Section titled “Deprecated”use a selector directly from the store, e.g. facade.select(facade.selectors.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):AssetQueryBuilder
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/asset.facade.ts:41
Get a new instance of the AssetQueryBuilder.
Parameters
Section titled “Parameters”…[AbstractQueryBuilderOptions<AssetQueryFilterKeys, AssetQuery>]
Returns
Section titled “Returns”Overrides
Section titled “Overrides”AbstractStatefulFacade.getQueryBuilder
load()
Section titled “load()”load(
query?):Observable<FacadeFinished<Asset[]>>
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/asset.facade.ts:155
Load assets based on the provided filter.
Parameters
Section titled “Parameters”query?
Section titled “query?”FacadeAssetLoad
The query to filter assets.
Returns
Section titled “Returns”Observable<FacadeFinished<Asset[]>>
Example
Section titled “Example”load({ fyzFacadeType: 'page', page: 1, pageSize: 10 });loadAll()
Section titled “loadAll()”Call Signature
Section titled “Call Signature”loadAll():
Observable<FacadeFinished<Asset[]>>
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/asset.facade.ts:83
Returns
Section titled “Returns”Observable<FacadeFinished<Asset[]>>
Deprecated
Section titled “Deprecated”use load() instead. Loads all assets based on the provided filter.
Call Signature
Section titled “Call Signature”loadAll(
query):Observable<FacadeFinished<Asset[]>>
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/asset.facade.ts:88
Load all Asset based on the provided query - handles pagination internally and loads all.
Parameters
Section titled “Parameters”FacadeAsset_LoadAll
Returns
Section titled “Returns”Observable<FacadeFinished<Asset[]>>
loadAllAsync()
Section titled “loadAllAsync()”loadAllAsync(…
args):Promise<FacadeFinished<Asset[]>>
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/asset.facade.ts:142
A awaitable impl. of the
Parameters
Section titled “Parameters”…[FacadeAsset_LoadAll]
Returns
Section titled “Returns”Promise<FacadeFinished<Asset[]>>
loadAll method.
loadAsync()
Section titled “loadAsync()”loadAsync(
query?):Promise<FacadeFinished<Asset[]>>
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/asset.facade.ts:248
A awaitable impl. of the
Parameters
Section titled “Parameters”query?
Section titled “query?”FacadeAssetLoad
Returns
Section titled “Returns”Promise<FacadeFinished<Asset[]>>
load method.
selectAll()
Section titled “selectAll()”selectAll():
Observable<Asset[]>
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/asset.facade.ts:60
Returns
Section titled “Returns”Observable<Asset[]>
Deprecated
Section titled “Deprecated”use a selector directly from the store, e.g. facade.select(facade.selectors.selectById(id))
select all assets in the store.
selectByPath()
Section titled “selectByPath()”
abstractselectByPath(path):Observable<Asset[]>
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/asset.facade.ts:71
use a selector directly from the store, e.g. facade.select(facade.selectors.selectById(id))
Filters assets by specified path.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”Observable<Asset[]>
update()
Section titled “update()”update(
updateBody):Observable<FacadeFinished<Asset>>
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/asset.facade.ts:281
Updates an existing asset.
Parameters
Section titled “Parameters”updateBody
Section titled “updateBody”Returns
Section titled “Returns”Observable<FacadeFinished<Asset>>
updateAsync()
Section titled “updateAsync()”updateAsync(
updateBody):Promise<FacadeFinished<Asset>>
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/asset.facade.ts:314
A awaitable implementation of the
Parameters
Section titled “Parameters”updateBody
Section titled “updateBody”Returns
Section titled “Returns”Promise<FacadeFinished<Asset>>
update method.