Class AnalyticsBusinessService<T>

Service 初始化过程的通用接口

Type Parameters

  • T

Hierarchy

Constructors

Properties

__id__: string
_dataSource$: Observable<string> = ...
analytics$: Observable<{
    columns: ({
        caption?: string;
        dimension?: string;
        displayBehaviour?: DisplayBehaviour;
        displayHierarchy?: boolean;
        exclude?: boolean;
        hierarchy?: string;
        label?: string;
        level?: string;
        memberCaption?: string;
        members?: Member[];
        name?: string;
        order?: OrderDirection;
        parameter?: string;
        properties?: string[];
        property: Property | PropertyHierarchy;
        unbookedData?: boolean;
        zeroSuppression?: boolean;
    } | {
        caption?: string;
        dimension?: string;
        domain?: [number, number?];
        formatting?: {
            currencyCode?: string;
            decimal?: number;
            digitsInfo?: string;
            shortNumber?: boolean;
            unit?: string;
            useUnderlyingUnit?: boolean;
        };
        measure: string;
        members?: Member[];
        order?: OrderDirection;
        palette?: {
            colors?: string[];
            name?: string;
            pattern?: any;
            reverse?: boolean;
        };
        property: Property | PropertyHierarchy;
    })[];
    rows: ({
        caption?: string;
        dimension?: string;
        displayBehaviour?: DisplayBehaviour;
        displayHierarchy?: boolean;
        exclude?: boolean;
        hierarchy?: string;
        label?: string;
        level?: string;
        memberCaption?: string;
        members?: Member[];
        name?: string;
        order?: OrderDirection;
        parameter?: string;
        properties?: string[];
        property: Property | PropertyHierarchy;
        unbookedData?: boolean;
        zeroSuppression?: boolean;
    } | {
        caption?: string;
        dimension?: string;
        domain?: [number, number?];
        formatting?: {
            currencyCode?: string;
            decimal?: number;
            digitsInfo?: string;
            shortNumber?: boolean;
            unit?: string;
            useUnderlyingUnit?: boolean;
        };
        measure: string;
        members?: Member[];
        order?: OrderDirection;
        palette?: {
            colors?: string[];
            name?: string;
            pattern?: any;
            reverse?: boolean;
        };
        property: Property | PropertyHierarchy;
    })[];
}> = ...

合并相应 Entity Property 后的 Analytics 注解

Type declaration

  • columns: ({
        caption?: string;
        dimension?: string;
        displayBehaviour?: DisplayBehaviour;
        displayHierarchy?: boolean;
        exclude?: boolean;
        hierarchy?: string;
        label?: string;
        level?: string;
        memberCaption?: string;
        members?: Member[];
        name?: string;
        order?: OrderDirection;
        parameter?: string;
        properties?: string[];
        property: Property | PropertyHierarchy;
        unbookedData?: boolean;
        zeroSuppression?: boolean;
    } | {
        caption?: string;
        dimension?: string;
        domain?: [number, number?];
        formatting?: {
            currencyCode?: string;
            decimal?: number;
            digitsInfo?: string;
            shortNumber?: boolean;
            unit?: string;
            useUnderlyingUnit?: boolean;
        };
        measure: string;
        members?: Member[];
        order?: OrderDirection;
        palette?: {
            colors?: string[];
            name?: string;
            pattern?: any;
            reverse?: boolean;
        };
        property: Property | PropertyHierarchy;
    })[]
  • rows: ({
        caption?: string;
        dimension?: string;
        displayBehaviour?: DisplayBehaviour;
        displayHierarchy?: boolean;
        exclude?: boolean;
        hierarchy?: string;
        label?: string;
        level?: string;
        memberCaption?: string;
        members?: Member[];
        name?: string;
        order?: OrderDirection;
        parameter?: string;
        properties?: string[];
        property: Property | PropertyHierarchy;
        unbookedData?: boolean;
        zeroSuppression?: boolean;
    } | {
        caption?: string;
        dimension?: string;
        domain?: [number, number?];
        formatting?: {
            currencyCode?: string;
            decimal?: number;
            digitsInfo?: string;
            shortNumber?: boolean;
            unit?: string;
            useUnderlyingUnit?: boolean;
        };
        measure: string;
        members?: Member[];
        order?: OrderDirection;
        palette?: {
            colors?: string[];
            name?: string;
            pattern?: any;
            reverse?: boolean;
        };
        property: Property | PropertyHierarchy;
    })[]
analyticsAnnotation$: Observable<AnalyticsAnnotation> = ...
dataSettings$: Observable<DataSettings> = ...
dataSource$: Observable<DataSource> = ...
destroy$: Observable<void> = ...
destroySubject$: ReplaySubject<void> = ...
dsCoreService: DSCoreService
entityService$: BehaviorSubject<EntityService<T>> = ...
entitySet$: Observable<string> = ...
entityType: EntityType

Deprecated

use getEntityType or selectEntityType method

initialise$: Observable<boolean> = ...
internalError$: ReplaySubject<any> = ...
isInitialized: boolean = false
loading$: BehaviorSubject<boolean> = ...
notInitializedErrorMessage: string = ...
presentationVariant$: Observable<PresentationVariant> = ...
refresh$: ReplaySubject<boolean | void> = ...
result$: BehaviorSubject<QueryReturn<T>> = ...
smartFilterBar?: SmartFilterBarService
state$: Observable<EntityBusinessState> = ...
stateSubject$: ReplaySubject<EntityBusinessState> = ...

Accessors

Methods

  • Creates an effect.

    This effect is subscribed to throughout the lifecycle of the ComponentStore.

    Type Parameters

    • ProvidedType = void

    • OriginType extends unknown = Observable<ProvidedType>

    • ObservableType = OriginType extends Observable<A>
          ? A
          : never

    • ReturnType = (ProvidedType | ObservableType) extends void
          ? (() => void)
          : ((observableOrValue) => Subscription)

    Parameters

    • generator: ((origin$) => Observable<unknown>)

      A function that takes an origin Observable input and returns an Observable. The Observable that is returned will be subscribed to for the life of the component.

        • (origin$): Observable<unknown>
        • Parameters

          • origin$: OriginType

          Returns Observable<unknown>

    Returns ReturnType

    A function that, when called, will trigger the origin Observable.

  • Creates a selector.

    Type Parameters

    • Result

    Parameters

    • projector: ((s) => Result)

      A pure projection function that takes the current state and returns some new slice/projection of that state.

    • Optional config: SelectConfig

      SelectConfig that changes the behavior of selector, including the debouncing of the values until the state is settled.

    Returns Observable<Result>

    An observable of the projector results.

  • Type Parameters

    • Selectors extends Observable<unknown>[]

    • Result

    Parameters

    • Rest ...args: [...selectors: Selectors[], projector: Projector<Selectors, Result>]

    Returns Observable<Result>

  • Type Parameters

    • Selectors extends Observable<unknown>[]

    • Result

    Parameters

    • Rest ...args: [...selectors: Selectors[], projector: Projector<Selectors, Result>, config: SelectConfig]

    Returns Observable<Result>

  • Creates an updater.

    Throws an error if updater is called with synchronous values (either imperative value or Observable that is synchronous) before ComponentStore is initialized. If called with async Observable before initialization then state will not be updated and subscription would be closed.

    Type Parameters

    • ProvidedType = void

    • OriginType = ProvidedType

    • ValueType = OriginType

    • ReturnType = OriginType extends void
          ? (() => void)
          : ((observableOrValue) => Subscription)

    Parameters

    Returns ReturnType

    A function that accepts one argument which is forwarded as the second argument to updaterFn. Every time this function is called subscribers will be notified of the state change.

Generated using TypeDoc