Skip to content

Class: FlyzeApiStoreFacadeInstance

@flyze/lib-data-store 3.0.0-alpha.55· latest

Defined 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.

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

ApiStoreInstance

boolean

string[]

FlyzeApiStoreFacadeInstance

AbstractFacade.constructor

readonly accessControlBindingFacade: AccessControlBindingFacade

Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/flyze-api-store-instance.facade.ts:47


readonly appointmentEvaluatedOccurrence: AppointmentEvaluatedOccurrenceFacade

Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/flyze-api-store-instance.facade.ts:51


readonly appointmentOccurrence: AppointmentOccurrenceFacade

Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/flyze-api-store-instance.facade.ts:50


readonly appointmentRule: AppointmentRuleFacade

Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/flyze-api-store-instance.facade.ts:49


readonly aspect: AspectFacade

Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/flyze-api-store-instance.facade.ts:44


readonly aspectData: AspectDataFacade

Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/flyze-api-store-instance.facade.ts:45


readonly aspectDataMigration: AspectDataMigrationFacade

Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/flyze-api-store-instance.facade.ts:46


readonly aspectType: AspectTypeFacade

Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/flyze-api-store-instance.facade.ts:42


readonly aspectTypeMigration: AspectTypeMigrationFacade

Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/flyze-api-store-instance.facade.ts:43


readonly asset: AssetFacade

Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/flyze-api-store-instance.facade.ts:40


readonly assetType: AssetTypeFacade

Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/flyze-api-store-instance.facade.ts:41


readonly dataSource: DataSourceFacade

Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/flyze-api-store-instance.facade.ts:48


readonly dispatch: <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.

V extends Action = Action

V & FunctionIsNotAllowed<V, "Functions are not allowed to be dispatched. Did you forget to call the action creator function?">

void

AbstractFacade.dispatch


protected instance: ApiStoreInstance

Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/_abstract/abstract.facade.ts:51

AbstractFacade.instance


readonly resourceReference: ResourceReferenceFacade

Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/flyze-api-store-instance.facade.ts:52


protected section: "instance"

Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/_abstract/abstract.facade.ts:50

AbstractFacade.section


readonly select: <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.

T

K

MemoizedSelector<T, K>

Observable<K>

AbstractFacade.select


readonly selectedTags$: Observable<Tag[]>

Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/flyze-api-store-instance.facade.ts:62


readonly selectSignal: <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.

K

MemoizedSelector<any, K>

Signal<K>

AbstractFacade.selectSignal


readonly tag: TagFacade

Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/flyze-api-store-instance.facade.ts:53

get actions(): object & object[SECTION]

Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/_abstract/abstract.facade.ts:58

object & object[SECTION]

AbstractFacade.actions


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.

string

AbstractFacade.instanceId


get selectedTagExclusive(): boolean

Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/flyze-api-store-instance.facade.ts:65

boolean


get selectedTagIds(): string[]

Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/flyze-api-store-instance.facade.ts:58

string[]


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.

object

selectAspect: (q) => DistinctSelector<RootStore, [number | AspectType[], Aspect[]], Aspect[]>

AssetOrAspectGetQuery<string> & object & _AspectSelectQuery & object

DistinctSelector<RootStore, [number | AspectType[], Aspect[]], Aspect[]>

selectAspectData: (q) => MemoizedSelector<RootStore, AspectData<any>[], (…s) => AspectData<any>[]>

AspectGetQuery

MemoizedSelector<RootStore, AspectData<any>[], (…s) => AspectData<any>[]>

selectAspectExpanded: (q) => DistinctSelector<RootStore, [Aspect[], AspectData<any>[]], { aspectData: AspectData<any>[]; aspects: Aspect[]; }>

AssetOrAspectGetQuery<string> & object & _AspectSelectQuery & object

DistinctSelector<RootStore, [Aspect[], AspectData<any>[]], { aspectData: AspectData<any>[]; aspects: Aspect[]; }>

selectAsset: (q) => DistinctSelector<RootStore, [number | AssetType[], Asset[]], Asset[]>

AssetGetQuery

DistinctSelector<RootStore, [number | AssetType[], Asset[]], Asset[]>

selectAssetExpanded: (q) => DistinctSelector<RootStore, [Asset[], Aspect[], AspectData<any>[]], { aspectData: AspectData<any>[]; aspects: Aspect[]; assets: Asset[]; }>

AssetGetExpandedBody

DistinctSelector<RootStore, [Asset[], Aspect[], AspectData<any>[]], { aspectData: AspectData<any>[]; aspects: Aspect[]; assets: Asset[]; }>

selectInstanceConfig: () => MemoizedSelector<RootStore, { baseUrl: string; id: string; }, (s1) => object>

MemoizedSelector<RootStore, { baseUrl: string; id: string; }, (s1) => object>

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>; }

(q): MemoizedSelector<RootStore, Asset | undefined>

ResourceGetEntityKindReferenceQuery<"asset">

MemoizedSelector<RootStore, Asset | undefined>

(q): MemoizedSelector<RootStore, AssetType | undefined>

ResourceGetEntityKindReferenceQuery<"asset-type">

MemoizedSelector<RootStore, AssetType | undefined>

(q): MemoizedSelector<RootStore, Aspect | undefined>

ResourceGetEntityKindReferenceQuery<"aspect">

MemoizedSelector<RootStore, Aspect | undefined>

(q): MemoizedSelector<RootStore, AspectType | undefined>

ResourceGetEntityKindReferenceQuery<"aspect-type">

MemoizedSelector<RootStore, AspectType | undefined>

(q): MemoizedSelector<RootStore, AspectData<any> | undefined>

ResourceGetEntityKindReferenceQuery<"aspect-data">

MemoizedSelector<RootStore, AspectData<any> | undefined>

(q): MemoizedSelector<RootStore, null>

ResourceGetEntityKindReferenceQuery<"appointment-rule">

MemoizedSelector<RootStore, null>

(q): MemoizedSelector<RootStore, null>

ResourceGetEntityKindReferenceQuery<"appointment-occurrence">

MemoizedSelector<RootStore, null>

AbstractFacade.selectors

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.

PROPS extends object & object

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.

string

The generated actionId.

AbstractFacade._dispatchWithId


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.

PROPS extends object & object

TYPE

DATA

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.

(actionId) => MemoizedSelector<any, FinishedSelectorResponse<DATA>>

A selector function that takes an actionId and returns a FinishSelector for the action.

Observable<FacadeFinished<DATA>>

An observable that emits when the action is finished.

AbstractFacade._dispatchWithResult$


protected getFinishedObservable<T, D>(selector): Observable<FacadeFinished<D>>

Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/_abstract/abstract.facade.ts:77

T

D

MemoizedSelector<any, FinishedSelectorResponse<D>>

Observable<FacadeFinished<D>>

AbstractFacade.getFinishedObservable


protected getNewId(): 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.

string

A new GUID.

AbstractFacade.getNewId


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.

Omit<AssetGetExpandedBody, "includeData">

Observable<{ data?: undefined; error: string; finished: true; } | { data: { aspectDatas: AspectData<any>[] | undefined; aspects: Aspect[] | undefined; assets: Asset[] | undefined; }; error?: undefined; finished: true; }>