Properties
cancel
cancel: ((id) => Promise<void>)
Type declaration
- (id): Promise<void>
Returns Promise<void>
delete
delete: ((id) => Promise<void>)
Type declaration
- (id): Promise<void>
Returns Promise<void>
deleteAll
deleteAll: (() => Promise<void>)
Type declaration
- (): Promise<void>
Returns Promise<void>
get
get: ((id, opts?) => Promise<null | {
collection: string;
id: string;
scheduledForCancel: NonNullable<undefined | boolean>;
scheduledForDelete: NonNullable<undefined | boolean>;
shard: string;
sourceNode: string;
status: {
errors: {
message: string;
whenErroredUnixMs: number;
}[];
state: NonNullable<undefined | "REGISTERED" | "HYDRATING" | "FINALIZING" | "DEHYDRATING" | "READY" | "CANCELLED">;
whenStartedUnixMs: number;
};
statusHistory: {
errors: {
message: string;
whenErroredUnixMs: number;
}[];
state: NonNullable<undefined | "REGISTERED" | "HYDRATING" | "FINALIZING" | "DEHYDRATING" | "READY" | "CANCELLED">;
whenStartedUnixMs: number;
}[];
targetNode: string;
type: NonNullable<"COPY" | "MOVE">;
uncancelable: NonNullable<undefined | boolean>;
whenStartedUnixMs: number;
}>)
Type declaration
- (id, opts?): Promise<null | {
collection: string;
id: string;
scheduledForCancel: NonNullable<undefined | boolean>;
scheduledForDelete: NonNullable<undefined | boolean>;
shard: string;
sourceNode: string;
status: {
errors: {
message: string;
whenErroredUnixMs: number;
}[];
state: NonNullable<undefined | "REGISTERED" | "HYDRATING" | "FINALIZING" | "DEHYDRATING" | "READY" | "CANCELLED">;
whenStartedUnixMs: number;
};
statusHistory: {
errors: {
message: string;
whenErroredUnixMs: number;
}[];
state: NonNullable<undefined | "REGISTERED" | "HYDRATING" | "FINALIZING" | "DEHYDRATING" | "READY" | "CANCELLED">;
whenStartedUnixMs: number;
}[];
targetNode: string;
type: NonNullable<"COPY" | "MOVE">;
uncancelable: NonNullable<undefined | boolean>;
whenStartedUnixMs: number;
}> Parameters
- id: string
Optional
opts: {
includeHistory?: boolean;
}Optional
includeHistory?: boolean
Returns Promise<null | {
collection: string;
id: string;
scheduledForCancel: NonNullable<undefined | boolean>;
scheduledForDelete: NonNullable<undefined | boolean>;
shard: string;
sourceNode: string;
status: {
errors: {
message: string;
whenErroredUnixMs: number;
}[];
state: NonNullable<undefined | "REGISTERED" | "HYDRATING" | "FINALIZING" | "DEHYDRATING" | "READY" | "CANCELLED">;
whenStartedUnixMs: number;
};
statusHistory: {
errors: {
message: string;
whenErroredUnixMs: number;
}[];
state: NonNullable<undefined | "REGISTERED" | "HYDRATING" | "FINALIZING" | "DEHYDRATING" | "READY" | "CANCELLED">;
whenStartedUnixMs: number;
}[];
targetNode: string;
type: NonNullable<"COPY" | "MOVE">;
uncancelable: NonNullable<undefined | boolean>;
whenStartedUnixMs: number;
}>
query
query: ((opts?) => Promise<{
collection: string;
id: string;
scheduledForCancel: NonNullable<undefined | boolean>;
scheduledForDelete: NonNullable<undefined | boolean>;
shard: string;
sourceNode: string;
status: {
errors: {
message: string;
whenErroredUnixMs: number;
}[];
state: NonNullable<undefined | "REGISTERED" | "HYDRATING" | "FINALIZING" | "DEHYDRATING" | "READY" | "CANCELLED">;
whenStartedUnixMs: number;
};
statusHistory: {
errors: {
message: string;
whenErroredUnixMs: number;
}[];
state: NonNullable<undefined | "REGISTERED" | "HYDRATING" | "FINALIZING" | "DEHYDRATING" | "READY" | "CANCELLED">;
whenStartedUnixMs: number;
}[];
targetNode: string;
type: NonNullable<"COPY" | "MOVE">;
uncancelable: NonNullable<undefined | boolean>;
whenStartedUnixMs: number;
}[]>)
Type declaration
- (opts?): Promise<{
collection: string;
id: string;
scheduledForCancel: NonNullable<undefined | boolean>;
scheduledForDelete: NonNullable<undefined | boolean>;
shard: string;
sourceNode: string;
status: {
errors: {
message: string;
whenErroredUnixMs: number;
}[];
state: NonNullable<undefined | "REGISTERED" | "HYDRATING" | "FINALIZING" | "DEHYDRATING" | "READY" | "CANCELLED">;
whenStartedUnixMs: number;
};
statusHistory: {
errors: {
message: string;
whenErroredUnixMs: number;
}[];
state: NonNullable<undefined | "REGISTERED" | "HYDRATING" | "FINALIZING" | "DEHYDRATING" | "READY" | "CANCELLED">;
whenStartedUnixMs: number;
}[];
targetNode: string;
type: NonNullable<"COPY" | "MOVE">;
uncancelable: NonNullable<undefined | boolean>;
whenStartedUnixMs: number;
}[]> Returns Promise<{
collection: string;
id: string;
scheduledForCancel: NonNullable<undefined | boolean>;
scheduledForDelete: NonNullable<undefined | boolean>;
shard: string;
sourceNode: string;
status: {
errors: {
message: string;
whenErroredUnixMs: number;
}[];
state: NonNullable<undefined | "REGISTERED" | "HYDRATING" | "FINALIZING" | "DEHYDRATING" | "READY" | "CANCELLED">;
whenStartedUnixMs: number;
};
statusHistory: {
errors: {
message: string;
whenErroredUnixMs: number;
}[];
state: NonNullable<undefined | "REGISTERED" | "HYDRATING" | "FINALIZING" | "DEHYDRATING" | "READY" | "CANCELLED">;
whenStartedUnixMs: number;
}[];
targetNode: string;
type: NonNullable<"COPY" | "MOVE">;
uncancelable: NonNullable<undefined | boolean>;
whenStartedUnixMs: number;
}[]>
Cancel a replication operation.