Skip to content

Latest commit

 

History

History
69 lines (55 loc) · 2.38 KB

attributor.api.md

File metadata and controls

69 lines (55 loc) · 2.38 KB

API Report File for "@fluidframework/attributor"

Do not edit this file. It is a report generated by API Extractor.

import { AttributionInfo } from '@fluidframework/runtime-definitions';
import { AttributionKey } from '@fluidframework/runtime-definitions';
import { ContainerRuntime } from '@fluidframework/container-runtime';
import { IAudience } from '@fluidframework/container-definitions';
import { IDeltaManager } from '@fluidframework/container-definitions';
import { IDocumentMessage } from '@fluidframework/protocol-definitions';
import { ISequencedDocumentMessage } from '@fluidframework/protocol-definitions';

// @alpha
export class Attributor implements IAttributor {
    constructor(initialEntries?: Iterable<[number, AttributionInfo]>);
    // (undocumented)
    entries(): IterableIterator<[number, AttributionInfo]>;
    getAttributionInfo(key: number): AttributionInfo;
    // (undocumented)
    protected readonly keyToInfo: Map<number, AttributionInfo>;
    // (undocumented)
    tryGetAttributionInfo(key: number): AttributionInfo | undefined;
}

// @alpha (undocumented)
export function createRuntimeAttributor(): IRuntimeAttributor;

// @alpha
export const enableOnNewFileKey = "Fluid.Attribution.EnableOnNewFile";

// @alpha
export interface IAttributor {
    // (undocumented)
    entries(): IterableIterator<[number, AttributionInfo]>;
    getAttributionInfo(key: number): AttributionInfo;
    // (undocumented)
    tryGetAttributionInfo(key: number): AttributionInfo | undefined;
}

// @alpha (undocumented)
export interface IProvideRuntimeAttributor {
    // (undocumented)
    readonly IRuntimeAttributor: IRuntimeAttributor;
}

// @alpha (undocumented)
export const IRuntimeAttributor: keyof IProvideRuntimeAttributor;

// @alpha @sealed
export interface IRuntimeAttributor extends IProvideRuntimeAttributor {
    // (undocumented)
    get(key: AttributionKey): AttributionInfo;
    // (undocumented)
    has(key: AttributionKey): boolean;
}

// @alpha
export const mixinAttributor: (Base?: typeof ContainerRuntime) => typeof ContainerRuntime;

// @alpha
export class OpStreamAttributor extends Attributor implements IAttributor {
    constructor(deltaManager: IDeltaManager<ISequencedDocumentMessage, IDocumentMessage>, audience: IAudience, initialEntries?: Iterable<[number, AttributionInfo]>);
}

// (No @packageDocumentation comment for this package)