Skip to content

Class: AspectTypeMigrationFacade

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

Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/aspect-type-migration.facade.ts:20

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 AspectTypeMigrationFacade(instance): AspectTypeMigrationFacade

Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/aspect-type-migration.facade.ts:21

ApiStoreInstance

AspectTypeMigrationFacade

AbstractFacade.constructor

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/aspect-type-migration.facade.ts:21

AbstractFacade.instance


protected section: "aspectTypeMigration"

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

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 selectors(): object & object[SECTION]

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

Gets the selectors for the specified section of the API store.

object & object[SECTION]

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$


apply(arg): Observable<FacadeFinished<AspectType | undefined>>

Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/aspect-type-migration.facade.ts:142

Applies a migration to the aspect type.

AspectTypeMigrationSpecificMigrationQuery

Observable<FacadeFinished<AspectType | undefined>>


applyAsync(arg): Promise<FacadeFinished<AspectType | undefined>>

Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/aspect-type-migration.facade.ts:153

A awaitable implementation of the

AspectTypeMigrationSpecificMigrationQuery

Promise<FacadeFinished<AspectType | undefined>>

apply method.


applyToData(arg): Observable<FacadeFinished<AspectType | undefined>>

Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/aspect-type-migration.facade.ts:162

Migrates all aspectData of the type to the current aspect type version.

AspectTypeMigrationApplyToAspectDataArg

Observable<FacadeFinished<AspectType | undefined>>


applyToDataAsync(arg): Promise<FacadeFinished<AspectType | undefined>>

Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/aspect-type-migration.facade.ts:173

A awaitable implementation of the

AspectTypeMigrationApplyToAspectDataArg

Promise<FacadeFinished<AspectType | undefined>>

applyToData method.


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


getQueryBuilder(…args): AspectTypeMigrationQueryBuilder

Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/aspect-type-migration.facade.ts:28

Get a new instance of the AspectTypeMigrationQueryBuilder.

…[AbstractQueryBuilderOptions<AspectTypeMigrationQueryFilterKeys, AspectTypeMigrationQuery>]

AspectTypeMigrationQueryBuilder


load(arg): Observable<FacadeFinished<AspectTypeMigration_StoreEntry[]>>

Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/aspect-type-migration.facade.ts:85

Loads all aspect type migrations based on the provided filter.

FacadeAspectTypeMigration_Load

Observable<FacadeFinished<AspectTypeMigration_StoreEntry[]>>


loadAll(query): Observable<FacadeFinished<AspectTypeMigration_StoreEntry[]>>

Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/aspect-type-migration.facade.ts:38

Load all AspectTypeMigrations based on the provided query - handles pagination internally and loads all.

FacadeAspectTypeMigration_filter

Observable<FacadeFinished<AspectTypeMigration_StoreEntry[]>>


loadAllAsync(query): Promise<FacadeFinished<AspectTypeMigration_StoreEntry[]>>

Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/aspect-type-migration.facade.ts:76

A awaitable impl. of the

FacadeAspectTypeMigration_filter

Promise<FacadeFinished<AspectTypeMigration_StoreEntry[]>>

loadAll method.


loadAsync(arg): Promise<FacadeFinished<AspectTypeMigration_StoreEntry[]>>

Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/aspect-type-migration.facade.ts:113

A awaitable implementation of the

FacadeAspectTypeMigration_Load

Promise<FacadeFinished<AspectTypeMigration_StoreEntry[]>>

load method.


view(arg): Observable<FacadeFinished<AspectType | undefined>>

Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/aspect-type-migration.facade.ts:122

Load a aspect type on a specific migration version.

AspectTypeMigrationSpecificMigrationQuery

Observable<FacadeFinished<AspectType | undefined>>


viewAsync(arg): Promise<FacadeFinished<AspectType | undefined>>

Defined in: projects/lib-data-store/src/lib/flyze-api-store-facade/facades/aspect-type-migration.facade.ts:133

A awaitable implementation of the

AspectTypeMigrationSpecificMigrationQuery

Promise<FacadeFinished<AspectType | undefined>>

view method.