@recordreplay/protocol
Advanced tools
Comparing version 0.8.0 to 0.8.1
@@ -5,3 +5,3 @@ import { uploadedData, sessionError, getDescriptionParameters, createSessionParameters, releaseSessionParameters, processRecordingParameters, addSourceMapParameters, addOriginalSourceParameters } from "../../protocol/Recording"; | ||
import { missingRegions, unprocessedRegions, mouseEvents, annotations, loadedRegions, ensureProcessedParameters, findMouseEventsParameters, findAnnotationsParameters, getEndpointParameters, createPauseParameters, releasePauseParameters, listenForLoadChangesParameters, loadRegionParameters, unloadRegionParameters, getBuildIdParameters } from "../../protocol/Session"; | ||
import { paintPoints, findPaintsParameters, getPaintContentsParameters, getDevicePixelRatioParameters } from "../../protocol/Graphics"; | ||
import { paintPoints, playbackVideoFragment, findPaintsParameters, getPlaybackVideoParameters, getPaintContentsParameters, getDevicePixelRatioParameters } from "../../protocol/Graphics"; | ||
import { newSource, findSourcesParameters, getSourceContentsParameters, getPossibleBreakpointsParameters, getMappedLocationParameters, setBreakpointParameters, removeBreakpointParameters, findResumeTargetParameters, findRewindTargetParameters, findReverseStepOverTargetParameters, findStepOverTargetParameters, findStepInTargetParameters, findStepOutTargetParameters, blackboxSourceParameters, unblackboxSourceParameters } from "../../protocol/Debugger"; | ||
@@ -205,2 +205,8 @@ import { newMessage, findMessagesParameters } from "../../protocol/Console"; | ||
/** | ||
* Describes the next fragment of playback video data, as part of the response | ||
* to the getPlaybackVideo request. | ||
*/ | ||
addPlaybackVideoFragmentListener: (listener: (parameters: playbackVideoFragment) => void) => void; | ||
removePlaybackVideoFragmentListener: () => void | undefined; | ||
/** | ||
* Find all points in the recording at which paints occurred. Does not return | ||
@@ -213,2 +219,9 @@ * until the recording is fully processed. Before returning, | ||
/** | ||
* Get the playback video data for this session. Does not return until the | ||
* recording is fully processed. Before returning, | ||
* <code>playbackVideoFragment</code> events will be periodically emitted. The | ||
* concatenation of all these events constitutes the playback video data. | ||
*/ | ||
getPlaybackVideo: (parameters: getPlaybackVideoParameters, sessionId?: string | undefined, pauseId?: string | undefined) => Promise<import("../../protocol/Graphics").getPlaybackVideoResult>; | ||
/** | ||
* Get the graphics at a point where a paint occurred. | ||
@@ -215,0 +228,0 @@ */ |
@@ -250,2 +250,10 @@ "use strict"; | ||
/** | ||
* Describes the next fragment of playback video data, as part of the response | ||
* to the getPlaybackVideo request. | ||
*/ | ||
addPlaybackVideoFragmentListener: function (listener) { | ||
return _this.genericClient.addEventListener("Graphics.playbackVideoFragment", listener); | ||
}, | ||
removePlaybackVideoFragmentListener: function () { var _a, _b; return (_b = (_a = _this.genericClient).removeEventListener) === null || _b === void 0 ? void 0 : _b.call(_a, "Graphics.playbackVideoFragment"); }, | ||
/** | ||
* Find all points in the recording at which paints occurred. Does not return | ||
@@ -260,2 +268,11 @@ * until the recording is fully processed. Before returning, | ||
/** | ||
* Get the playback video data for this session. Does not return until the | ||
* recording is fully processed. Before returning, | ||
* <code>playbackVideoFragment</code> events will be periodically emitted. The | ||
* concatenation of all these events constitutes the playback video data. | ||
*/ | ||
getPlaybackVideo: function (parameters, sessionId, pauseId) { | ||
return _this.genericClient.sendCommand("Graphics.getPlaybackVideo", parameters, sessionId, pauseId); | ||
}, | ||
/** | ||
* Get the graphics at a point where a paint occurred. | ||
@@ -262,0 +279,0 @@ */ |
@@ -45,2 +45,6 @@ import { TimeStampedPoint, ExecutionPoint } from "./Recording"; | ||
} | ||
export interface getPlaybackVideoParameters { | ||
} | ||
export interface getPlaybackVideoResult { | ||
} | ||
export interface getPaintContentsParameters { | ||
@@ -79,1 +83,8 @@ /** | ||
} | ||
/** | ||
* Describes the next fragment of playback video data, as part of the response | ||
* to the getPlaybackVideo request. | ||
*/ | ||
export interface playbackVideoFragment { | ||
fragment: string; | ||
} |
@@ -18,3 +18,3 @@ export * from "./Recording"; | ||
import { missingRegions, unprocessedRegions, mouseEvents, annotations, loadedRegions, ensureProcessedParameters, ensureProcessedResult, findMouseEventsParameters, findMouseEventsResult, findAnnotationsParameters, findAnnotationsResult, getEndpointParameters, getEndpointResult, createPauseParameters, createPauseResult, releasePauseParameters, releasePauseResult, listenForLoadChangesParameters, listenForLoadChangesResult, loadRegionParameters, loadRegionResult, unloadRegionParameters, unloadRegionResult, getBuildIdParameters, getBuildIdResult } from "./Session"; | ||
import { paintPoints, findPaintsParameters, findPaintsResult, getPaintContentsParameters, getPaintContentsResult, getDevicePixelRatioParameters, getDevicePixelRatioResult } from "./Graphics"; | ||
import { paintPoints, playbackVideoFragment, findPaintsParameters, findPaintsResult, getPlaybackVideoParameters, getPlaybackVideoResult, getPaintContentsParameters, getPaintContentsResult, getDevicePixelRatioParameters, getDevicePixelRatioResult } from "./Graphics"; | ||
import { newSource, findSourcesParameters, findSourcesResult, getSourceContentsParameters, getSourceContentsResult, getPossibleBreakpointsParameters, getPossibleBreakpointsResult, getMappedLocationParameters, getMappedLocationResult, setBreakpointParameters, setBreakpointResult, removeBreakpointParameters, removeBreakpointResult, findResumeTargetParameters, findResumeTargetResult, findRewindTargetParameters, findRewindTargetResult, findReverseStepOverTargetParameters, findReverseStepOverTargetResult, findStepOverTargetParameters, findStepOverTargetResult, findStepInTargetParameters, findStepInTargetResult, findStepOutTargetParameters, findStepOutTargetResult, blackboxSourceParameters, blackboxSourceResult, unblackboxSourceParameters, unblackboxSourceResult } from "./Debugger"; | ||
@@ -87,2 +87,10 @@ import { newMessage, findMessagesParameters, findMessagesResult } from "./Console"; | ||
/** | ||
* Describes the next fragment of playback video data, as part of the response | ||
* to the getPlaybackVideo request. | ||
*/ | ||
"Graphics.playbackVideoFragment": { | ||
parameters: playbackVideoFragment; | ||
sessionId: true; | ||
}; | ||
/** | ||
* Describes a source in the recording. | ||
@@ -372,2 +380,15 @@ */ | ||
/** | ||
* Get the playback video data for this session. Does not return until the | ||
* recording is fully processed. Before returning, | ||
* <code>playbackVideoFragment</code> events will be periodically emitted. The | ||
* concatenation of all these events constitutes the playback video data. | ||
*/ | ||
"Graphics.getPlaybackVideo": { | ||
parameters: getPlaybackVideoParameters; | ||
result: getPlaybackVideoResult; | ||
sessionId: true; | ||
pauseId: false; | ||
binary: false; | ||
}; | ||
/** | ||
* Get the graphics at a point where a paint occurred. | ||
@@ -374,0 +395,0 @@ */ |
{ | ||
"name": "@recordreplay/protocol", | ||
"version": "0.8.0", | ||
"version": "0.8.1", | ||
"description": "Definition of the protocol used by the Record Replay web service", | ||
@@ -5,0 +5,0 @@ "author": "", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
199286
5171