MCPcopy
hub / github.com/CapSoftware/Cap / updateUploadProgress

Function updateUploadProgress

apps/chrome-extension/src/shared/api.ts:187–211  ·  view source on GitHub ↗
({
	settings,
	auth,
	videoId,
	uploaded,
	total,
}: {
	settings: ExtensionSettings;
	auth: ExtensionAuth;
	videoId: string;
	uploaded: number;
	total: number;
})

Source from the content-addressed store, hash-verified

185 });
186
187export const updateUploadProgress = ({
188 settings,
189 auth,
190 videoId,
191 uploaded,
192 total,
193}: {
194 settings: ExtensionSettings;
195 auth: ExtensionAuth;
196 videoId: string;
197 uploaded: number;
198 total: number;
199}) =>
200 requestJson<{ success: boolean }>({
201 settings,
202 auth,
203 path: extensionApiPath(ExtensionApiPaths.updateInstantRecordingProgress),
204 method: "POST",
205 body: {
206 videoId,
207 uploaded,
208 total,
209 updatedAt: new Date().toISOString(),
210 },
211 });
212
213export const deleteInstantRecording = (
214 settings: ExtensionSettings,

Callers 2

startRecordingFunction · 0.90
runFailedUploadRetryFunction · 0.90

Calls 2

requestJsonFunction · 0.85
extensionApiPathFunction · 0.85

Tested by

no test coverage detected