Class: FlyzeApiStoreFacadeInstance
@flyze/lib-data-store 3.0.0-alpha.55· latestDefined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/flyze-api-store-instance.facade.ts:39
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”AbstractFacade<"instance">
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new FlyzeApiStoreFacadeInstance(
flyzeApi,args):FlyzeApiStoreFacadeInstance
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/flyze-api-store-instance.facade.ts:69
Parameters
Section titled “Parameters”flyzeApi
Section titled “flyzeApi”ApiStoreInstance
selectedTagExclusive?
Section titled “selectedTagExclusive?”boolean
selectedTagIds?
Section titled “selectedTagIds?”string[]
Returns
Section titled “Returns”FlyzeApiStoreFacadeInstance
Overrides
Section titled “Overrides”Properties
Section titled “Properties”accessControlBindingFacade
Section titled “accessControlBindingFacade”
readonlyaccessControlBindingFacade:AccessControlBindingFacade
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/flyze-api-store-instance.facade.ts:47
appointmentEvaluatedOccurrence
Section titled “appointmentEvaluatedOccurrence”
readonlyappointmentEvaluatedOccurrence:AppointmentEvaluatedOccurrenceFacade
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/flyze-api-store-instance.facade.ts:51
appointmentOccurrence
Section titled “appointmentOccurrence”
readonlyappointmentOccurrence:AppointmentOccurrenceFacade
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/flyze-api-store-instance.facade.ts:50
appointmentRule
Section titled “appointmentRule”
readonlyappointmentRule:AppointmentRuleFacade
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/flyze-api-store-instance.facade.ts:49
aspect
Section titled “aspect”
readonlyaspect:AspectFacade
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/flyze-api-store-instance.facade.ts:44
aspectData
Section titled “aspectData”
readonlyaspectData:AspectDataFacade
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/flyze-api-store-instance.facade.ts:45
aspectDataMigration
Section titled “aspectDataMigration”
readonlyaspectDataMigration:AspectDataMigrationFacade
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/flyze-api-store-instance.facade.ts:46
aspectType
Section titled “aspectType”
readonlyaspectType:AspectTypeFacade
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/flyze-api-store-instance.facade.ts:42
aspectTypeMigration
Section titled “aspectTypeMigration”
readonlyaspectTypeMigration:AspectTypeMigrationFacade
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/flyze-api-store-instance.facade.ts:43
readonlyasset:AssetFacade
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/flyze-api-store-instance.facade.ts:40
assetType
Section titled “assetType”
readonlyassetType:AssetTypeFacade
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/flyze-api-store-instance.facade.ts:41
dataSource
Section titled “dataSource”
readonlydataSource:DataSourceFacade
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/flyze-api-store-instance.facade.ts:48
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”instance
Section titled “instance”
protectedinstance:ApiStoreInstance
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/_abstract/abstract.facade.ts:51
Inherited from
Section titled “Inherited from”resourceReference
Section titled “resourceReference”
readonlyresourceReference:ResourceReferenceFacade
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/flyze-api-store-instance.facade.ts:52
section
Section titled “section”
protectedsection:"instance"
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/_abstract/abstract.facade.ts:50
Inherited from
Section titled “Inherited from”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”selectedTags$
Section titled “selectedTags$”
readonlyselectedTags$:Observable<Tag[]>
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/flyze-api-store-instance.facade.ts:62
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”
readonlytag:TagFacade
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/flyze-api-store-instance.facade.ts:53
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”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”selectedTagExclusive
Section titled “selectedTagExclusive”Get Signature
Section titled “Get Signature”get selectedTagExclusive():
boolean
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/flyze-api-store-instance.facade.ts:65
Returns
Section titled “Returns”boolean
selectedTagIds
Section titled “selectedTagIds”Get Signature
Section titled “Get Signature”get selectedTagIds():
string[]
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/flyze-api-store-instance.facade.ts:58
Returns
Section titled “Returns”string[]
selectors
Section titled “selectors”Get Signature
Section titled “Get Signature”get selectors():
object
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/flyze-api-store-instance.facade.ts:116
Gets the selectors for the specified section of the API store.
Returns
Section titled “Returns”object
selectAspect()
Section titled “selectAspect()”selectAspect: (
q) =>DistinctSelector<RootStore, [number|AspectType[],Aspect[]],Aspect[]>
Parameters
Section titled “Parameters”AssetOrAspectGetQuery<string> & object & _AspectSelectQuery & object
Returns
Section titled “Returns”DistinctSelector<RootStore, [number | AspectType[], Aspect[]], Aspect[]>
selectAspectData()
Section titled “selectAspectData()”selectAspectData: (
q) =>MemoizedSelector<RootStore,AspectData<any>[], (…s) =>AspectData<any>[]>
Parameters
Section titled “Parameters”Returns
Section titled “Returns”MemoizedSelector<RootStore, AspectData<any>[], (…s) => AspectData<any>[]>
selectAspectExpanded()
Section titled “selectAspectExpanded()”selectAspectExpanded: (
q) =>DistinctSelector<RootStore, [Aspect[],AspectData<any>[]], {aspectData:AspectData<any>[];aspects:Aspect[]; }>
Parameters
Section titled “Parameters”AssetOrAspectGetQuery<string> & object & _AspectSelectQuery & object
Returns
Section titled “Returns”DistinctSelector<RootStore, [Aspect[], AspectData<any>[]], { aspectData: AspectData<any>[]; aspects: Aspect[]; }>
selectAsset()
Section titled “selectAsset()”selectAsset: (
q) =>DistinctSelector<RootStore, [number|AssetType[],Asset[]],Asset[]>
Parameters
Section titled “Parameters”Returns
Section titled “Returns”DistinctSelector<RootStore, [number | AssetType[], Asset[]], Asset[]>
selectAssetExpanded()
Section titled “selectAssetExpanded()”selectAssetExpanded: (
q) =>DistinctSelector<RootStore, [Asset[],Aspect[],AspectData<any>[]], {aspectData:AspectData<any>[];aspects:Aspect[];assets:Asset[]; }>
Parameters
Section titled “Parameters”Returns
Section titled “Returns”DistinctSelector<RootStore, [Asset[], Aspect[], AspectData<any>[]], { aspectData: AspectData<any>[]; aspects: Aspect[]; assets: Asset[]; }>
selectInstanceConfig()
Section titled “selectInstanceConfig()”selectInstanceConfig: () =>
MemoizedSelector<RootStore, {baseUrl:string;id:string; }, (s1) =>object>
Returns
Section titled “Returns”MemoizedSelector<RootStore, { baseUrl: string; id: string; }, (s1) => object>
selectResourceReference()
Section titled “selectResourceReference()”selectResourceReference: {(
q):MemoizedSelector<RootStore,Asset|undefined>; (q):MemoizedSelector<RootStore,AssetType|undefined>; (q):MemoizedSelector<RootStore,Aspect|undefined>; (q):MemoizedSelector<RootStore,AspectType|undefined>; (q):MemoizedSelector<RootStore,AspectData<any> |undefined>; (q):MemoizedSelector<RootStore,null>; (q):MemoizedSelector<RootStore,null>; }
Call Signature
Section titled “Call Signature”(
q):MemoizedSelector<RootStore,Asset|undefined>
Parameters
Section titled “Parameters”ResourceGetEntityKindReferenceQuery<"asset">
Returns
Section titled “Returns”MemoizedSelector<RootStore, Asset | undefined>
Call Signature
Section titled “Call Signature”(
q):MemoizedSelector<RootStore,AssetType|undefined>
Parameters
Section titled “Parameters”ResourceGetEntityKindReferenceQuery<"asset-type">
Returns
Section titled “Returns”MemoizedSelector<RootStore, AssetType | undefined>
Call Signature
Section titled “Call Signature”(
q):MemoizedSelector<RootStore,Aspect|undefined>
Parameters
Section titled “Parameters”ResourceGetEntityKindReferenceQuery<"aspect">
Returns
Section titled “Returns”MemoizedSelector<RootStore, Aspect | undefined>
Call Signature
Section titled “Call Signature”(
q):MemoizedSelector<RootStore,AspectType|undefined>
Parameters
Section titled “Parameters”ResourceGetEntityKindReferenceQuery<"aspect-type">
Returns
Section titled “Returns”MemoizedSelector<RootStore, AspectType | undefined>
Call Signature
Section titled “Call Signature”(
q):MemoizedSelector<RootStore,AspectData<any> |undefined>
Parameters
Section titled “Parameters”ResourceGetEntityKindReferenceQuery<"aspect-data">
Returns
Section titled “Returns”MemoizedSelector<RootStore, AspectData<any> | undefined>
Call Signature
Section titled “Call Signature”(
q):MemoizedSelector<RootStore,null>
Parameters
Section titled “Parameters”ResourceGetEntityKindReferenceQuery<"appointment-rule">
Returns
Section titled “Returns”MemoizedSelector<RootStore, null>
Call Signature
Section titled “Call Signature”(
q):MemoizedSelector<RootStore,null>
Parameters
Section titled “Parameters”ResourceGetEntityKindReferenceQuery<"appointment-occurrence">
Returns
Section titled “Returns”MemoizedSelector<RootStore, null>
Overrides
Section titled “Overrides”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”AbstractFacade._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”AbstractFacade._dispatchWithResult$
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”AbstractFacade.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”loadAssetExpandData()
Section titled “loadAssetExpandData()”loadAssetExpandData(
query):Observable<{data?:undefined;error:string;finished:true; } | {data: {aspectDatas:AspectData<any>[] |undefined;aspects:Aspect[] |undefined;assets:Asset[] |undefined; };error?:undefined;finished:true; }>
Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/flyze-api-store-instance.facade.ts:158
Load expanded asset data including aspects and aspect data.
Parameters
Section titled “Parameters”Omit<AssetGetExpandedBody, "includeData">
Returns
Section titled “Returns”Observable<{ data?: undefined; error: string; finished: true; } | { data: { aspectDatas: AspectData<any>[] | undefined; aspects: Aspect[] | undefined; assets: Asset[] | undefined; }; error?: undefined; finished: true; }>