({
settings,
auth,
videoId,
uploaded,
total,
}: {
settings: ExtensionSettings;
auth: ExtensionAuth;
videoId: string;
uploaded: number;
total: number;
})
| 185 | }); |
| 186 | |
| 187 | export 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 | |
| 213 | export const deleteInstantRecording = ( |
| 214 | settings: ExtensionSettings, |
no test coverage detected