Class: AssetTypeFacade
@flyze/lib-data-store 3.0.0-alpha.55· latestDefined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/asset-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<"assetType",AssetTypeQueryBuilder,AssetType>
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new AssetTypeFacade(
instance,facadeStore):AssetTypeFacade
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/asset-type.facade.ts:28
Parameters
Section titled “Parameters”instance
Section titled “instance”ApiStoreInstance
facadeStore
Section titled “facadeStore”FacadeStore
Returns
Section titled “Returns”AssetTypeFacade
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|AssetType|AssetType[] |undefined,number|AssetType|AssetType[] |undefined,AssetType[]],AssetType[]>
Parameters
Section titled “Parameters”string | string[]
string | string[]
Returns
Section titled “Returns”DistinctSelector<RootStore, [number | AssetType | AssetType[] | undefined, number | AssetType | AssetType[] | undefined, AssetType[]], AssetType[]>
selectAll()
Section titled “selectAll()”selectAll: () =>
MemoizedSelector<RootStore,AssetType[], (s1) =>AssetType[]> |MemoizedSelector<RootStore,AssetType[], (s1) =>AssetType[]>
Returns
Section titled “Returns”MemoizedSelector<RootStore, AssetType[], (s1) => AssetType[]> | MemoizedSelector<RootStore, AssetType[], (s1) => AssetType[]>
selectByExecutableQuery()
Section titled “selectByExecutableQuery()”selectByExecutableQuery: (
q) =>MemoizedSelector<RootStore,AssetType[],any>
Parameters
Section titled “Parameters”ExecutableQuery
Returns
Section titled “Returns”MemoizedSelector<RootStore, AssetType[], any>
selectByFilter()
Section titled “selectByFilter()”selectByFilter: (
filterFn) =>MemoizedSelector<RootStore,AssetType[], (s1) =>AssetType[]>
Parameters
Section titled “Parameters”filterFn
Section titled “filterFn”(entity) => boolean
Returns
Section titled “Returns”MemoizedSelector<RootStore, AssetType[], (s1) => AssetType[]>
selectById()
Section titled “selectById()”selectById: (
id) =>MemoizedSelector<RootStore,AssetType|undefined, (s1) =>AssetType|undefined>
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”MemoizedSelector<RootStore, AssetType | undefined, (s1) => AssetType | undefined>
selectByIds()
Section titled “selectByIds()”selectByIds: (
ids) =>MemoizedSelector<RootStore,AssetType[], (s1) =>AssetType[]>
Parameters
Section titled “Parameters”string[]
Returns
Section titled “Returns”MemoizedSelector<RootStore, AssetType[], (s1) => AssetType[]>
selectByName()
Section titled “selectByName()”selectByName: (
name) =>MemoizedSelector<RootStore,AssetType|undefined, (s1) =>AssetType|undefined>
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”MemoizedSelector<RootStore, AssetType | undefined, (s1) => AssetType | undefined>
selectByNames()
Section titled “selectByNames()”selectByNames: (
names) =>MemoizedSelector<RootStore,AssetType[], (s1) =>AssetType[]>
Parameters
Section titled “Parameters”string[]
Returns
Section titled “Returns”MemoizedSelector<RootStore, AssetType[], (s1) => AssetType[]>
selectCountByExecutableQuery()
Section titled “selectCountByExecutableQuery()”selectCountByExecutableQuery: (
q) =>MemoizedSelector<RootStore, {items:AssetType[];totalCount:number; },any>
Parameters
Section titled “Parameters”ExecutableQuery
Returns
Section titled “Returns”MemoizedSelector<RootStore, { items: AssetType[]; totalCount: number; }, any>
selectCreated()
Section titled “selectCreated()”selectCreated: (
actionId?) =>MemoizedSelector<RootStore,flowSuccess<AssetType> |null, (s1) =>flowSuccess<AssetType> |null>
Parameters
Section titled “Parameters”actionId?
Section titled “actionId?”string
Returns
Section titled “Returns”MemoizedSelector<RootStore, flowSuccess<AssetType> | null, (s1) => flowSuccess<AssetType> | null>
selectCreatedEntity()
Section titled “selectCreatedEntity()”selectCreatedEntity: () =>
MemoizedSelector<RootStore,AssetType|undefined, (s1) =>AssetType|undefined>
Returns
Section titled “Returns”MemoizedSelector<RootStore, AssetType | undefined, (s1) => AssetType | 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<AssetType>, (s1,s2) =>FinishedSelectorResponse>
Parameters
Section titled “Parameters”actionId
Section titled “actionId”string
Returns
Section titled “Returns”MemoizedSelector<any, FinishedSelectorResponse<AssetType>, (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<AssetType> |null, (s1) =>flowSuccess<AssetType> |null>
Parameters
Section titled “Parameters”actionId?
Section titled “actionId?”string
Returns
Section titled “Returns”MemoizedSelector<RootStore, flowSuccess<AssetType> | null, (s1) => flowSuccess<AssetType> | null>
selectDeletedEntity()
Section titled “selectDeletedEntity()”selectDeletedEntity: () =>
MemoizedSelector<RootStore,AssetType|undefined, (s1) =>AssetType|undefined>
Returns
Section titled “Returns”MemoizedSelector<RootStore, AssetType | undefined, (s1) => AssetType | 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<AssetType>, (s1,s2) =>FinishedSelectorResponse>
Parameters
Section titled “Parameters”actionId
Section titled “actionId”string
Returns
Section titled “Returns”MemoizedSelector<any, FinishedSelectorResponse<AssetType>, (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<AssetType>, (s1) =>Dictionary> |MemoizedSelector<RootStore,Dictionary<AssetType>, (s1) =>Dictionary>
Returns
Section titled “Returns”MemoizedSelector<RootStore, Dictionary<AssetType>, (s1) => Dictionary> | MemoizedSelector<RootStore, Dictionary<AssetType>, (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,AssetType[] |null, (s1) =>AssetType[] |null>
Returns
Section titled “Returns”MemoizedSelector<RootStore, AssetType[] | null, (s1) => AssetType[] | null>
selectLoaded()
Section titled “selectLoaded()”selectLoaded: (
actionId?) =>MemoizedSelector<RootStore,flowSuccess<AssetType[]> |null, (s1) =>flowSuccess<AssetType[]> |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<AssetType[]> | null, (s1) => flowSuccess<AssetType[]> | 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<AssetType[]>, (s1,s2) =>FinishedSelectorResponse>
Parameters
Section titled “Parameters”actionId
Section titled “actionId”string
Returns
Section titled “Returns”MemoizedSelector<any, FinishedSelectorResponse<AssetType[]>, (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<AssetType> |null, (s1) =>flowSuccess<AssetType> |null>
Parameters
Section titled “Parameters”actionId?
Section titled “actionId?”string
Returns
Section titled “Returns”MemoizedSelector<RootStore, flowSuccess<AssetType> | null, (s1) => flowSuccess<AssetType> | null>
selectUpdatedEntity()
Section titled “selectUpdatedEntity()”selectUpdatedEntity: () =>
MemoizedSelector<RootStore,AssetType|undefined, (s1) =>AssetType|undefined>
Returns
Section titled “Returns”MemoizedSelector<RootStore, AssetType | undefined, (s1) => AssetType | 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<AssetType>, (s1,s2) =>FinishedSelectorResponse>
Parameters
Section titled “Parameters”actionId
Section titled “actionId”string
Returns
Section titled “Returns”MemoizedSelector<any, FinishedSelectorResponse<AssetType>, (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-type.facade.ts:29
Inherited from
Section titled “Inherited from”AbstractStatefulFacade.instance
section
Section titled “section”
protectedsection:"assetType"
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<AssetType>>
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/asset-type.facade.ts:237
Creates a new AssetType.
Parameters
Section titled “Parameters”createBody
Section titled “createBody”The body of the request to create a new AssetType.
Returns
Section titled “Returns”Observable<FacadeFinished<AssetType>>
createAsync()
Section titled “createAsync()”createAsync(
createBody):Promise<FacadeFinished<AssetType>>
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/asset-type.facade.ts:251
A awaitable impl. of the
Parameters
Section titled “Parameters”createBody
Section titled “createBody”Returns
Section titled “Returns”Promise<FacadeFinished<AssetType>>
create method.
delete()
Section titled “delete()”delete(
deleteBody):Observable<FacadeFinished<AssetType>>
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/asset-type.facade.ts:298
Deletes an existing AssetType.
Parameters
Section titled “Parameters”deleteBody
Section titled “deleteBody”The body of the request to delete an AssetType.
Returns
Section titled “Returns”Observable<FacadeFinished<AssetType>>
deleteAsync()
Section titled “deleteAsync()”deleteAsync(
deleteBody):Promise<FacadeFinished<AssetType>>
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/asset-type.facade.ts:321
A awaitable impl. of the
Parameters
Section titled “Parameters”deleteBody
Section titled “deleteBody”Returns
Section titled “Returns”Promise<FacadeFinished<AssetType>>
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<AssetType|undefined>
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/asset-type.facade.ts:60
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”Observable<AssetType | undefined>
Deprecated
Section titled “Deprecated”use a selector directly from the store, e.g. facade.select(facade.selectors.selectById(id))
Filters AssetTypes by specified ID.
getAll()
Section titled “getAll()”getAll():
Observable<AssetType[]>
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/asset-type.facade.ts:70
Returns
Section titled “Returns”Observable<AssetType[]>
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):AssetTypeQueryBuilder
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/asset-type.facade.ts:38
Get a new instance of the AssetTypeQueryBuilder.
Parameters
Section titled “Parameters”…[AbstractQueryBuilderOptions<AssetTypeQueryFilterKeys, AssetTypeQuery>]
Returns
Section titled “Returns”Overrides
Section titled “Overrides”AbstractStatefulFacade.getQueryBuilder
lastLoadedData()
Section titled “lastLoadedData()”lastLoadedData():
Observable<AssetType[] |null>
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/asset-type.facade.ts:49
Returns
Section titled “Returns”Observable<AssetType[] | null>
Deprecated
Section titled “Deprecated”lastLoadedData is deprecated
load()
Section titled “load()”load(
query?):Observable<FacadeFinished<AssetType[]>>
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/asset-type.facade.ts:176
Loads AssetTypes based on the provided filter.
Parameters
Section titled “Parameters”query?
Section titled “query?”FacadeAssetTypeLoad
The query to filter AssetTypes.
Returns
Section titled “Returns”Observable<FacadeFinished<AssetType[]>>
Examples
Section titled “Examples”load({ fyzFacadeType: 'page', page: 1, pageSize: 10 });load();load({ fyzFacadeType: 'page' });load({ fyzFacadeType: 'load', name:'AssetType1'});loadAll()
Section titled “loadAll()”Call Signature
Section titled “Call Signature”loadAll():
Observable<FacadeFinished<AssetType[]>>
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/asset-type.facade.ts:95
Returns
Section titled “Returns”Observable<FacadeFinished<AssetType[]>>
Deprecated
Section titled “Deprecated”use the load method instead. Loads all AssetTypes.
Call Signature
Section titled “Call Signature”loadAll(
query):Observable<FacadeFinished<AssetType[]>>
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/asset-type.facade.ts:100
Load all AssetTypes based on the provided query - handles pagination internally and loads all.
Parameters
Section titled “Parameters”FacadeAssetType_LoadAll
Returns
Section titled “Returns”Observable<FacadeFinished<AssetType[]>>
loadAllAsync()
Section titled “loadAllAsync()”loadAllAsync(
query):Promise<FacadeFinished<AssetType[]>>
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/asset-type.facade.ts:154
A awaitable impl. of the
Parameters
Section titled “Parameters”FacadeAssetType_LoadAll
Returns
Section titled “Returns”Promise<FacadeFinished<AssetType[]>>
loadAll method.
loadAsync()
Section titled “loadAsync()”loadAsync(
query?):Promise<FacadeFinished<AssetType[]>>
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/asset-type.facade.ts:228
A awaitable impl. of the
Parameters
Section titled “Parameters”query?
Section titled “query?”FacadeAssetTypeLoad
Returns
Section titled “Returns”Promise<FacadeFinished<AssetType[]>>
load method.
selectAll()
Section titled “selectAll()”selectAll():
Observable<AssetType[]>
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/asset-type.facade.ts:81
Returns
Section titled “Returns”Observable<AssetType[]>
An Observable that resolves to all asset types.
Deprecated
Section titled “Deprecated”use a selector directly from the store, e.g. facade.select(facade.selectors.selectAll())
update()
Section titled “update()”update(
updateBody):Observable<FacadeFinished<AssetType>>
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/asset-type.facade.ts:260
Updates an existing AssetType.
Parameters
Section titled “Parameters”updateBody
Section titled “updateBody”Returns
Section titled “Returns”Observable<FacadeFinished<AssetType>>
updateAsync()
Section titled “updateAsync()”updateAsync(
updateBody):Promise<FacadeFinished<AssetType>>
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/asset-type.facade.ts:290
A awaitable impl. of the
Parameters
Section titled “Parameters”updateBody
Section titled “updateBody”Returns
Section titled “Returns”Promise<FacadeFinished<AssetType>>
update method.