Skip to main content

SequenceEvent Interface

Base class for SequenceDeltaEvent and SequenceMaintenanceEvent.

The properties of this object and its sub-objects represent the state of the sequence at the point in time at which the operation was applied. They will not take into any future modifications performed to the underlying sequence and merge tree.

This API is provided for existing users, but is not recommended for new users.

To use, import via fluid-framework/legacy.

For more information about our API support guarantees, see here.

Signature​

export interface SequenceEvent<TOperation extends MergeTreeDeltaOperationTypes = MergeTreeDeltaOperationTypes>

Type Parameters​

ParameterConstraintDefaultDescription
TOperationMergeTreeDeltaOperationTypesMergeTreeDeltaOperationTypes

Properties​

PropertyAlertsModifiersTypeDescription
clientIdBetareadonlystring | undefinedThe client id of the client that made the change which caused the delta event
deltaArgsBetareadonlyIMergeTreeDeltaCallbackArgs<TOperation>
deltaOperationBetareadonlyTOperation
firstBetareadonlyReadonly<ISequenceDeltaRange<TOperation>>The first of the modified ranges.
lastBetareadonlyReadonly<ISequenceDeltaRange<TOperation>>The last of the modified ranges.
rangesBetareadonlyreadonly Readonly<ISequenceDeltaRange<TOperation>>[]The in-order ranges affected by this delta. These are not necessarily contiguous.

Property Details​

clientId​

The client id of the client that made the change which caused the delta event

This API is provided for existing users, but is not recommended for new users.

For more information about our API support guarantees, see here.

Signature​

readonly clientId: string | undefined;

Type: string | undefined

deltaArgs​

This API is provided for existing users, but is not recommended for new users.

For more information about our API support guarantees, see here.

Signature​

readonly deltaArgs: IMergeTreeDeltaCallbackArgs<TOperation>;

Type: IMergeTreeDeltaCallbackArgs<TOperation>

deltaOperation​

This API is provided for existing users, but is not recommended for new users.

For more information about our API support guarantees, see here.

Signature​

readonly deltaOperation: TOperation;

Type: TOperation

first​

The first of the modified ranges.

This API is provided for existing users, but is not recommended for new users.

For more information about our API support guarantees, see here.

Signature​

readonly first: Readonly<ISequenceDeltaRange<TOperation>>;

Type: Readonly<ISequenceDeltaRange<TOperation>>

last​

The last of the modified ranges.

This API is provided for existing users, but is not recommended for new users.

For more information about our API support guarantees, see here.

Signature​

readonly last: Readonly<ISequenceDeltaRange<TOperation>>;

Type: Readonly<ISequenceDeltaRange<TOperation>>

ranges​

The in-order ranges affected by this delta. These are not necessarily contiguous.

This API is provided for existing users, but is not recommended for new users.

For more information about our API support guarantees, see here.

Signature​

readonly ranges: readonly Readonly<ISequenceDeltaRange<TOperation>>[];

Type: readonly Readonly<ISequenceDeltaRange<TOperation>>[]

Remarks​

If processing code doesn't care about the order of the ranges, it may instead consider using the deltaSegments field on deltaArgs.