@acoustic-content-sdk/redux-feature-auth-type 中文文档教程
管理内容类型的特征存储的实现。
Home > @acoustic-content-sdk/redux-feature-auth-type
redux-feature-auth-type package
实现 redux 功能以管理创作类型。
Functions
Function | Description |
---|---|
rxElementType(aAuthoringTypes$, aLogger, aScheduler) | Resolves the element type, either directly from the element or from the authoring type |
Interfaces
Interface | Description |
---|---|
AuthTypeFeatureState |
Variables
Variable | Description |
---|---|
ACTION_ADD_AUTH_CONTENT_TYPE_IF_NONEXISTENT | |
ACTION_ADD_AUTH_CONTENT_TYPE | |
ACTION_GUARANTEE_AUTH_CONTENT_TYPE | |
ACTION_LOAD_AUTH_CONTENT_TYPE | |
ACTION_SET_AUTH_CONTENT_TYPE | Do not add a side effect to this action |
addAuthoringContentTypeAction | |
addAuthoringContentTypeIfNonExistentAction | Adds this content type to the store only if the type does not exist, yet. If the type does not exist, this triggers a addAuthoringContentTypeAction. |
AUTH_TYPE_FEATURE | |
authoringTypeFeature | Exposes the feature module selector |
authoringTypeReducer | reducers for templates |
authTypeFeatureReducer | |
guaranteeAuthoringContentTypeAction | Loads the content type if it does not exist. If the type does not exist, this triggers a loadAuthoringContentTypeAction. |
loadAuthoringContentTypeAction | |
selectAuthType | |
selectAuthTypeFeature | Select the authoring type feature |
setAuthoringContentTypeAction | |
VERSION | Version and build number of the package |
Type Aliases
Home > @acoustic-content-sdk/redux-feature-auth-type > rxElementType
rxElementType() function
解析元素类型,直接从元素或创作类型
签名:
export declare function rxElementType(aAuthoringTypes$: Observable<AuthoringTypeState>, aLogger: Logger, aScheduler?: SchedulerLike): UnaryFunction<AccessorType, OperatorFunction<RenderingContext, ELEMENT_TYPE>>;
Parameters
Parameter | Type | Description |
---|---|---|
aAuthoringTypes$ | Observable<AuthoringTypeState> |
the set of available authoring types |
aLogger | Logger |
optional logger |
aScheduler | SchedulerLike |
optional scheduler |
返回:
UnaryFunction
the resolved type or undefined if the type could not be determined
Home > @acoustic-content-sdk/redux-feature-auth-type > AuthTypeFeatureState
AuthTypeFeatureState interface
Signature:
export interface AuthTypeFeatureState
Properties
Property | Type | Description |
---|---|---|
authType | AuthoringTypeState |
Home > ; @acoustic-content-sdk/redux-feature-auth-type > ACTION_ADD_AUTH_CONTENT_TYPE_IF_NONEXISTENT
ACTION_ADD_AUTH_CONTENT_TYPE_IF_NONEXISTENT variable
Signature:
ACTION_ADD_AUTH_CONTENT_TYPE_IF_NONEXISTENT = "ACTION_ADD_AUTH_CONTENT_TYPE_IF_NONEXISTENT"
Home > ; @acoustic-content-sdk/redux-feature-auth-type > ACTION_ADD_AUTH_CONTENT_TYPE
ACTION_ADD_AUTH_CONTENT_TYPE variable
Signature:
ACTION_ADD_AUTH_CONTENT_TYPE = "ACTION_ADD_AUTH_CONTENT_TYPE"
Home > ; @acoustic-content-sdk/redux-feature-auth-type > ACTION_GUARANTEE_AUTH_CONTENT_TYPE
ACTION_GUARANTEE_AUTH_CONTENT_TYPE variable
Signature:
ACTION_GUARANTEE_AUTH_CONTENT_TYPE = "ACTION_GUARANTEE_AUTH_CONTENT_TYPE"
Home > ; @acoustic-content-sdk/redux-feature-auth-type > ACTION_LOAD_AUTH_CONTENT_TYPE
ACTION_LOAD_AUTH_CONTENT_TYPE variable
Signature:
ACTION_LOAD_AUTH_CONTENT_TYPE = "ACTION_LOAD_AUTH_CONTENT_TYPE"
Home > ; @acoustic-content-sdk/redux-feature-auth-type > ACTION_SET_AUTH_CONTENT_TYPE
ACTION_SET_AUTH_CONTENT_TYPE variable
Do not add a side effect to this action
Signature:
ACTION_SET_AUTH_CONTENT_TYPE = "ACTION_SET_AUTH_CONTENT_TYPE"
主页 > @acoustic-content-sdk/redux-feature-auth-type > addAuthoringContentTypeAction
addAuthoringContentTypeAction variable
Signature:
addAuthoringContentTypeAction: UnaryFunction<AuthoringType, AddAuthoringContentTypeAction>
Home > ; @acoustic-content-sdk/redux-feature-auth-type > addAuthoringContentTypeIfNonExistentAction
addAuthoringContentTypeIfNonExistentAction variable
仅当该类型不存在时才将其添加到存储区。 如果该类型不存在,则会触发 addAuthoringContentTypeAction。
Signature:
addAuthoringContentTypeIfNonExistentAction: UnaryFunction<AuthoringType, AddAuthoringContentTypeIfNonExistentAction>
Home > @acoustic-content-sdk/redux-feature-auth-type > AUTH_TYPE_FEATURE
AUTH_TYPE_FEATURE variable
Signature:
AUTH_TYPE_FEATURE = "authType"
Home > ; @acoustic-content-sdk/redux-feature-auth-type > authoringTypeFeature
authoringTypeFeature variable
Exposes the feature module selector
Signature:
authoringTypeFeature: import("@acoustic-content-sdk/redux-store").ReduxFeatureModule<Record<string, import("@acoustic-content-sdk/api").AuthoringType>, AuthTypeFeatureState, import("redux").AnyAction, import("redux").AnyAction, any>
Home > @acoustic-content-sdk/redux-feature-auth-type > authoringTypeReducer
authoringTypeReducer variable
reducers for templates
Signature:
authoringTypeReducer: Reducer<AuthoringTypeState, AddAuthoringContentTypeAction | SetAuthoringContentTypeAction>
Home > @acoustic-content-sdk/redux-feature-auth-type > authTypeFeatureReducer
authTypeFeatureReducer variable
Signature:
authTypeFeatureReducer: {
authType: import("redux").Reducer<Record<string, import("@acoustic-content-sdk/api").AuthoringType>, import("./auth.type.actions").AddAuthoringContentTypeAction | import("./auth.type.actions").SetAuthoringContentTypeAction>;
}
Home > ; @acoustic-content-sdk/redux-feature-auth-type > guaranteeAuthoringContentTypeAction
guaranteeAuthoringContentTypeAction variable
如果不存在则加载内容类型。 如果类型不存在,则会触发 loadAuthoringContentTypeAction。
Signature:
guaranteeAuthoringContentTypeAction: UnaryFunction<string, GuaranteeAuthoringContentTypeAction>
Home > @acoustic-content-sdk/redux-feature-auth-type > loadAuthoringContentTypeAction
loadAuthoringContentTypeAction variable
Signature:
loadAuthoringContentTypeAction: UnaryFunction<string, LoadAuthoringContentTypeAction>
Home > ; @acoustic-content-sdk/redux-feature-auth-type > selectAuthType
selectAuthType variable
Signature:
selectAuthType: UnaryFunction<string, UnaryFunction<AuthoringTypeState, AuthoringType>>
Home > ; @acoustic-content-sdk/redux-feature-auth-type > selectAuthTypeFeature
selectAuthTypeFeature variable
Select the authoring type feature
Signature:
selectAuthTypeFeature: import("rxjs").UnaryFunction<Record<string, any>, Record<string, import("@acoustic-content-sdk/api").AuthoringType>>
Home > @acoustic-content-sdk/redux-feature-auth-type > setAuthoringContentTypeAction
setAuthoringContentTypeAction variable
Signature:
setAuthoringContentTypeAction: UnaryFunction<AuthoringType, SetAuthoringContentTypeAction>
Home > ; @acoustic-content-sdk/redux-feature-auth-type > VERSION
VERSION variable
Version and build number of the package
Signature:
VERSION: {
version: {
major: string;
minor: string;
patch: string;
branch: string;
};
build: Date;
}
首页 > @acoustic-content-sdk/redux-feature-auth-type > AuthoringTypeState
AuthoringTypeState type
Signature:
export declare type AuthoringTypeState = Record<string, AuthoringType>;
Home > ; @acoustic-content-sdk/redux-feature-auth-type > AuthTypeFeatureState > 授权类型
AuthTypeFeatureState.authType property
签名:
[AUTH_TYPE_FEATURE]: AuthoringTypeState;