@acoustic-content-sdk/redux-feature-delivery-content 中文文档教程

发布于 4年前 浏览 3 更新于 3年前

npm

实现 redux 功能以将创作内容转换为交付内容。

API Documentation

Home > @acoustic-content-sdk/redux-feature-delivery-content

redux-feature-delivery-content package

实现 redux 功能,将创作内容转换为交付内容。

Interfaces

InterfaceDescription
DeliveryContentFeatureState
ResolveContentItemPayload

Variables

VariableDescription
ACTION_ADD_DELIVERY_CONTENT_IF_NONEXISTENT
ACTION_ADD_DELIVERY_CONTENT
ACTION_RESOLVE_CONTENT_ITEM
ACTION_SET_DELIVERY_CONTENTDo not add a side effect to this action
addDeliveryContentAction
addDeliveryContentIfNonExistentActionAdds this content item to the store only if the item does not exist, yet. If the item does not exist, this triggers a addDeliveryContentAction.
DELIVERY_CONTENT_FEATURE
deliveryContentFeatureExposes the feature module selector
deliveryContentFeatureReducer
deliveryContentReducerreducers for authoring content
MODULEModule name
resolveContentItemAction
selectDeliveryContentFeatureSelect the delivery content feature
selectDeliveryContentItem
setDeliveryContentAction
VERSIONVersion and build number of the package

Type Aliases

Type AliasDescription
AddDeliveryContentAction
AddDeliveryContentIfNonExistentAction
DeliveryContentState
ResolveContentItemAction
SetDeliveryContentAction

Home > @acoustic-content-sdk/redux-feature-delivery-content > DeliveryContentFeatureState

DeliveryContentFeatureState interface

Signature:

export interface DeliveryContentFeatureState 

Properties

PropertyTypeDescription
deliveryContentDeliveryContentState

Home > ; @acoustic-content-sdk/redux-feature-delivery-content > ResolveContentItemPayload

ResolveContentItemPayload interface

Signature:

export interface ResolveContentItemPayload 

Properties

PropertyTypeDescription
apiURLURL
assetsRecord<string, AuthoringAsset>
contentItemAuthoringContentItem
contentTypesRecord<string, AuthoringType>
layoutsRecord<string, AuthoringLayoutItem>

Home > ; @acoustic-content-sdk/redux-feature-delivery-content > ACTION_ADD_DELIVERY_CONTENT_IF_NONEXISTENT

ACTION_ADD_DELIVERY_CONTENT_IF_NONEXISTENT variable

Signature:

ACTION_ADD_DELIVERY_CONTENT_IF_NONEXISTENT = "ACTION_ADD_DELIVERY_CONTENT_IF_NONEXISTENT"

Home > ; @acoustic-content-sdk/redux-feature-delivery-content > ACTION_ADD_DELIVERY_CONTENT

ACTION_ADD_DELIVERY_CONTENT variable

Signature:

ACTION_ADD_DELIVERY_CONTENT = "ACTION_ADD_DELIVERY_CONTENT"

Home > ; @acoustic-content-sdk/redux-feature-delivery-content > ACTION_RESOLVE_CONTENT_ITEM

ACTION_RESOLVE_CONTENT_ITEM variable

Signature:

ACTION_RESOLVE_CONTENT_ITEM = "ACTION_RESOLVE_CONTENT_ITEM"

Home > ; @acoustic-content-sdk/redux-feature-delivery-content > ACTION_SET_DELIVERY_CONTENT

ACTION_SET_DELIVERY_CONTENT variable

Do not add a side effect to this action

Signature:

ACTION_SET_DELIVERY_CONTENT = "ACTION_SET_DELIVERY_CONTENT"

主页 > @acoustic-content-sdk/redux-feature-delivery-content > addDeliveryContentAction

addDeliveryContentAction variable

Signature:

addDeliveryContentAction: UnaryFunction<ContentItemWithLayout, AddDeliveryContentAction>

Home > ; @acoustic-content-sdk/redux-feature-delivery-content > addDeliveryContentIfNonExistentAction

addDeliveryContentIfNonExistentAction variable

仅当项目不存在时才将此内容项目添加到商店。 如果该项不存在,则会触发 addDeliveryContentAction

Signature:

addDeliveryContentIfNonExistentAction: UnaryFunction<ContentItemWithLayout, AddDeliveryContentIfNonExistentAction>

Home > @acoustic-content-sdk/redux-feature-delivery-content > DELIVERY_CONTENT_FEATURE

DELIVERY_CONTENT_FEATURE variable

Signature:

DELIVERY_CONTENT_FEATURE = "deliveryContent"

Home > ; @acoustic-content-sdk/redux-feature-delivery-content > deliveryContentFeature

deliveryContentFeature variable

Exposes the feature module selector

Signature:

deliveryContentFeature: import("@acoustic-content-sdk/redux-store").ReduxFeatureModule<Record<string, import("@acoustic-content-sdk/api").ContentItemWithLayout>, DeliveryContentFeatureState, import("redux").AnyAction, import("redux").AnyAction, any>

Home > @acoustic-content-sdk/redux-feature-delivery-content > deliveryContentFeatureReducer

deliveryContentFeatureReducer variable

Signature:

deliveryContentFeatureReducer: {
    deliveryContent: import("redux").Reducer<Record<string, import("@acoustic-content-sdk/api").ContentItemWithLayout>, import("redux").AnyAction>;
}

Home > ; @acoustic-content-sdk/redux-feature-delivery-content > deliveryContentReducer

deliveryContentReducer variable

reducers for authoring content

Signature:

deliveryContentReducer: Reducer<DeliveryContentState>

Home< /a> > @acoustic-content-sdk/redux-feature-delivery-content > MODULE

MODULE variable

Module name

Signature:

MODULE = "@acoustic-content-sdk/redux-feature-delivery-content"

Home > @acoustic-content-sdk/redux-feature-delivery-content > resolveContentItemAction

resolveContentItemAction variable

Signature:

resolveContentItemAction: UnaryFunction<ResolveContentItemPayload, ResolveContentItemAction>

Home > ; @acoustic-content-sdk/redux-feature-delivery-content > selectDeliveryContentFeature

selectDeliveryContentFeature variable

Select the delivery content feature

Signature:

selectDeliveryContentFeature: import("rxjs").UnaryFunction<Record<string, any>, Record<string, import("@acoustic-content-sdk/api").ContentItemWithLayout>>

Home > @acoustic-content-sdk/redux-feature-delivery-content > selectDeliveryContentItem

selectDeliveryContentItem variable

Signature:

selectDeliveryContentItem: UnaryFunction<string, UnaryFunction<DeliveryContentState, ContentItemWithLayout>>

Home > ; @acoustic-content-sdk/redux-feature-delivery-content > setDeliveryContentAction

setDeliveryContentAction variable

Signature:

setDeliveryContentAction: UnaryFunction<ContentItemWithLayout, SetDeliveryContentAction>

Home > ; @acoustic-content-sdk/redux-feature-delivery-content > 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-delivery-content > DeliveryContentState

DeliveryContentState type

Signature:

export declare type DeliveryContentState = Record<string, ContentItemWithLayout>;

Home > ; @acoustic-content-sdk/redux-feature-delivery-content > DeliveryContentFeatureState > deliveryContent

DeliveryContentFeatureState.deliveryContent property

Signature:

[DELIVERY_CONTENT_FEATURE]: DeliveryContentState;

Home > ; @acoustic-content-sdk/redux-feature-delivery-content > ResolveContentItemPayload > apiURL

ResolveContentItemPayload.apiURL property

Signature:

apiURL: URL;

Home > ; @acoustic-content-sdk/redux-feature-delivery-content > ResolveContentItemPayload > assets

ResolveContentItemPayload.assets property

Signature:

assets: Record<string, AuthoringAsset>;

Home > ; @acoustic-content-sdk/redux-feature-delivery-content > ResolveContentItemPayload > contentItem

ResolveContentItemPayload.contentItem property

Signature:

contentItem: AuthoringContentItem;

Home > ; @acoustic-content-sdk/redux-feature-delivery-content > ResolveContentItemPayload > contentTypes

ResolveContentItemPayload.contentTypes property

Signature:

contentTypes: Record<string, AuthoringType>;

Home > ; @acoustic-content-sdk/redux-feature-delivery-content > ResolveContentItemPayload > 布局

ResolveContentItemPayload.layouts property

签名:

layouts: Record<string, AuthoringLayoutItem>;

npm

Implementation of a redux feature to convert authoring content into delivery content.

API Documentation

Home > @acoustic-content-sdk/redux-feature-delivery-content

redux-feature-delivery-content package

Implementation of a redux feature to convert authoring content into delivery content.

Interfaces

InterfaceDescription
DeliveryContentFeatureState
ResolveContentItemPayload

Variables

VariableDescription
ACTION_ADD_DELIVERY_CONTENT_IF_NONEXISTENT
ACTION_ADD_DELIVERY_CONTENT
ACTION_RESOLVE_CONTENT_ITEM
ACTION_SET_DELIVERY_CONTENTDo not add a side effect to this action
addDeliveryContentAction
addDeliveryContentIfNonExistentActionAdds this content item to the store only if the item does not exist, yet. If the item does not exist, this triggers a addDeliveryContentAction.
DELIVERY_CONTENT_FEATURE
deliveryContentFeatureExposes the feature module selector
deliveryContentFeatureReducer
deliveryContentReducerreducers for authoring content
MODULEModule name
resolveContentItemAction
selectDeliveryContentFeatureSelect the delivery content feature
selectDeliveryContentItem
setDeliveryContentAction
VERSIONVersion and build number of the package

Type Aliases

Type AliasDescription
AddDeliveryContentAction
AddDeliveryContentIfNonExistentAction
DeliveryContentState
ResolveContentItemAction
SetDeliveryContentAction

Home > @acoustic-content-sdk/redux-feature-delivery-content > DeliveryContentFeatureState

DeliveryContentFeatureState interface

Signature:

export interface DeliveryContentFeatureState 

Properties

PropertyTypeDescription
deliveryContentDeliveryContentState

Home > @acoustic-content-sdk/redux-feature-delivery-content > ResolveContentItemPayload

ResolveContentItemPayload interface

Signature:

export interface ResolveContentItemPayload 

Properties

PropertyTypeDescription
apiURLURL
assetsRecord&lt;string, AuthoringAsset&gt;
contentItemAuthoringContentItem
contentTypesRecord&lt;string, AuthoringType&gt;
layoutsRecord&lt;string, AuthoringLayoutItem&gt;

Home > @acoustic-content-sdk/redux-feature-delivery-content > ACTION_ADD_DELIVERY_CONTENT_IF_NONEXISTENT

ACTION_ADD_DELIVERY_CONTENT_IF_NONEXISTENT variable

Signature:

ACTION_ADD_DELIVERY_CONTENT_IF_NONEXISTENT = "ACTION_ADD_DELIVERY_CONTENT_IF_NONEXISTENT"

Home > @acoustic-content-sdk/redux-feature-delivery-content > ACTION_ADD_DELIVERY_CONTENT

ACTION_ADD_DELIVERY_CONTENT variable

Signature:

ACTION_ADD_DELIVERY_CONTENT = "ACTION_ADD_DELIVERY_CONTENT"

Home > @acoustic-content-sdk/redux-feature-delivery-content > ACTION_RESOLVE_CONTENT_ITEM

ACTION_RESOLVE_CONTENT_ITEM variable

Signature:

ACTION_RESOLVE_CONTENT_ITEM = "ACTION_RESOLVE_CONTENT_ITEM"

Home > @acoustic-content-sdk/redux-feature-delivery-content > ACTION_SET_DELIVERY_CONTENT

ACTION_SET_DELIVERY_CONTENT variable

Do not add a side effect to this action

Signature:

ACTION_SET_DELIVERY_CONTENT = "ACTION_SET_DELIVERY_CONTENT"

Home > @acoustic-content-sdk/redux-feature-delivery-content > addDeliveryContentAction

addDeliveryContentAction variable

Signature:

addDeliveryContentAction: UnaryFunction<ContentItemWithLayout, AddDeliveryContentAction>

Home > @acoustic-content-sdk/redux-feature-delivery-content > addDeliveryContentIfNonExistentAction

addDeliveryContentIfNonExistentAction variable

Adds this content item to the store only if the item does not exist, yet. If the item does not exist, this triggers a addDeliveryContentAction.

Signature:

addDeliveryContentIfNonExistentAction: UnaryFunction<ContentItemWithLayout, AddDeliveryContentIfNonExistentAction>

Home > @acoustic-content-sdk/redux-feature-delivery-content > DELIVERY_CONTENT_FEATURE

DELIVERY_CONTENT_FEATURE variable

Signature:

DELIVERY_CONTENT_FEATURE = "deliveryContent"

Home > @acoustic-content-sdk/redux-feature-delivery-content > deliveryContentFeature

deliveryContentFeature variable

Exposes the feature module selector

Signature:

deliveryContentFeature: import("@acoustic-content-sdk/redux-store").ReduxFeatureModule<Record<string, import("@acoustic-content-sdk/api").ContentItemWithLayout>, DeliveryContentFeatureState, import("redux").AnyAction, import("redux").AnyAction, any>

Home > @acoustic-content-sdk/redux-feature-delivery-content > deliveryContentFeatureReducer

deliveryContentFeatureReducer variable

Signature:

deliveryContentFeatureReducer: {
    deliveryContent: import("redux").Reducer<Record<string, import("@acoustic-content-sdk/api").ContentItemWithLayout>, import("redux").AnyAction>;
}

Home > @acoustic-content-sdk/redux-feature-delivery-content > deliveryContentReducer

deliveryContentReducer variable

reducers for authoring content

Signature:

deliveryContentReducer: Reducer<DeliveryContentState>

Home > @acoustic-content-sdk/redux-feature-delivery-content > MODULE

MODULE variable

Module name

Signature:

MODULE = "@acoustic-content-sdk/redux-feature-delivery-content"

Home > @acoustic-content-sdk/redux-feature-delivery-content > resolveContentItemAction

resolveContentItemAction variable

Signature:

resolveContentItemAction: UnaryFunction<ResolveContentItemPayload, ResolveContentItemAction>

Home > @acoustic-content-sdk/redux-feature-delivery-content > selectDeliveryContentFeature

selectDeliveryContentFeature variable

Select the delivery content feature

Signature:

selectDeliveryContentFeature: import("rxjs").UnaryFunction<Record<string, any>, Record<string, import("@acoustic-content-sdk/api").ContentItemWithLayout>>

Home > @acoustic-content-sdk/redux-feature-delivery-content > selectDeliveryContentItem

selectDeliveryContentItem variable

Signature:

selectDeliveryContentItem: UnaryFunction<string, UnaryFunction<DeliveryContentState, ContentItemWithLayout>>

Home > @acoustic-content-sdk/redux-feature-delivery-content > setDeliveryContentAction

setDeliveryContentAction variable

Signature:

setDeliveryContentAction: UnaryFunction<ContentItemWithLayout, SetDeliveryContentAction>

Home > @acoustic-content-sdk/redux-feature-delivery-content > VERSION

VERSION variable

Version and build number of the package

Signature:

VERSION: {
    version: {
        major: string;
        minor: string;
        patch: string;
        branch: string;
    };
    build: Date;
}

Home > @acoustic-content-sdk/redux-feature-delivery-content > DeliveryContentState

DeliveryContentState type

Signature:

export declare type DeliveryContentState = Record<string, ContentItemWithLayout>;

Home > @acoustic-content-sdk/redux-feature-delivery-content > DeliveryContentFeatureState > deliveryContent

DeliveryContentFeatureState.deliveryContent property

Signature:

[DELIVERY_CONTENT_FEATURE]: DeliveryContentState;

Home > @acoustic-content-sdk/redux-feature-delivery-content > ResolveContentItemPayload > apiURL

ResolveContentItemPayload.apiURL property

Signature:

apiURL: URL;

Home > @acoustic-content-sdk/redux-feature-delivery-content > ResolveContentItemPayload > assets

ResolveContentItemPayload.assets property

Signature:

assets: Record<string, AuthoringAsset>;

Home > @acoustic-content-sdk/redux-feature-delivery-content > ResolveContentItemPayload > contentItem

ResolveContentItemPayload.contentItem property

Signature:

contentItem: AuthoringContentItem;

Home > @acoustic-content-sdk/redux-feature-delivery-content > ResolveContentItemPayload > contentTypes

ResolveContentItemPayload.contentTypes property

Signature:

contentTypes: Record<string, AuthoringType>;

Home > @acoustic-content-sdk/redux-feature-delivery-content > ResolveContentItemPayload > layouts

ResolveContentItemPayload.layouts property

Signature:

layouts: Record<string, AuthoringLayoutItem>;
    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文