( config: GoogleDriveIntegrationConfig, fileId: string, tokenStore?: GoogleDriveTokenStore, )
| 1187 | }); |
| 1188 | |
| 1189 | export const deleteGoogleDriveFile = ( |
| 1190 | config: GoogleDriveIntegrationConfig, |
| 1191 | fileId: string, |
| 1192 | tokenStore?: GoogleDriveTokenStore, |
| 1193 | ) => |
| 1194 | driveFetch( |
| 1195 | config, |
| 1196 | appendSharedDriveCreateParams( |
| 1197 | `${DRIVE_API_BASE}/files/${encodeURIComponent(fileId)}`, |
| 1198 | ), |
| 1199 | { |
| 1200 | method: "DELETE", |
| 1201 | }, |
| 1202 | tokenStore, |
| 1203 | ).pipe(Effect.asVoid); |
| 1204 | |
| 1205 | export const copyGoogleDriveFile = ({ |
| 1206 | repo, |
no test coverage detected