feat(companion): add pending work snapshot helper
This commit is contained in:
@@ -18,6 +18,7 @@ import type {
|
||||
NodeRegisterResult,
|
||||
NodeStatusSetResult,
|
||||
PutCanvasArtifactInput,
|
||||
PendingWorkSnapshot,
|
||||
NodePushTokenSetResult,
|
||||
SetNodeLocationInput,
|
||||
SystemCapabilitiesResult,
|
||||
@@ -288,6 +289,10 @@ export class MacOSCompanionClient {
|
||||
return this.runtime.hasPendingWork;
|
||||
}
|
||||
|
||||
getPendingWorkSnapshot(): PendingWorkSnapshot {
|
||||
return this.runtime.getPendingWorkSnapshot();
|
||||
}
|
||||
|
||||
waitForAnyEvent<TData = unknown>(
|
||||
eventNames: readonly (CompanionEventName | string)[],
|
||||
options?: {
|
||||
@@ -546,6 +551,10 @@ export class IOSCompanionClient {
|
||||
return this.runtime.hasPendingWork;
|
||||
}
|
||||
|
||||
getPendingWorkSnapshot(): PendingWorkSnapshot {
|
||||
return this.runtime.getPendingWorkSnapshot();
|
||||
}
|
||||
|
||||
waitForAnyEvent<TData = unknown>(
|
||||
eventNames: readonly (CompanionEventName | string)[],
|
||||
options?: {
|
||||
@@ -802,6 +811,10 @@ export class AndroidCompanionClient {
|
||||
return this.runtime.hasPendingWork;
|
||||
}
|
||||
|
||||
getPendingWorkSnapshot(): PendingWorkSnapshot {
|
||||
return this.runtime.getPendingWorkSnapshot();
|
||||
}
|
||||
|
||||
waitForAnyEvent<TData = unknown>(
|
||||
eventNames: readonly (CompanionEventName | string)[],
|
||||
options?: {
|
||||
|
||||
Reference in New Issue
Block a user