@robinpath/google-drive
Advanced tools
+36
-7
| { | ||
| "name": "@robinpath/google-drive", | ||
| "version": "0.1.0", | ||
| "publishConfig": { "access": "public" }, | ||
| "version": "0.1.1", | ||
| "publishConfig": { | ||
| "access": "public" | ||
| }, | ||
| "type": "module", | ||
| "main": "dist/index.js", | ||
| "types": "dist/index.d.ts", | ||
| "exports": { ".": { "import": "./dist/index.js", "types": "./dist/index.d.ts" } }, | ||
| "files": ["dist"], | ||
| "scripts": { "build": "tsc" }, | ||
| "peerDependencies": { "@wiredwp/robinpath": ">=0.20.0" }, | ||
| "devDependencies": { "@wiredwp/robinpath": "^0.30.1", "typescript": "^5.6.0" } | ||
| "exports": { | ||
| ".": { | ||
| "import": "./dist/index.js", | ||
| "types": "./dist/index.d.ts" | ||
| } | ||
| }, | ||
| "files": [ | ||
| "dist" | ||
| ], | ||
| "scripts": { | ||
| "build": "tsc" | ||
| }, | ||
| "peerDependencies": { | ||
| "@robinpath/core": ">=0.20.0" | ||
| }, | ||
| "devDependencies": { | ||
| "@robinpath/core": "^0.30.1", | ||
| "typescript": "^5.6.0" | ||
| }, | ||
| "description": "Google Drive module for RobinPath.", | ||
| "keywords": [ | ||
| "googledrive", | ||
| "cloud storage" | ||
| ], | ||
| "license": "MIT", | ||
| "robinpath": { | ||
| "category": "cloud-storage", | ||
| "type": "integration", | ||
| "auth": "api-key", | ||
| "functionCount": 10, | ||
| "baseUrl": "https://www.googleapis.com" | ||
| } | ||
| } |
| import type { BuiltinHandler } from "@wiredwp/robinpath"; | ||
| export declare const GoogleDriveFunctions: Record<string, BuiltinHandler>; | ||
| export declare const GoogleDriveFunctionMetadata: { | ||
| setCredentials: { | ||
| description: string; | ||
| parameters: { | ||
| name: string; | ||
| dataType: string; | ||
| description: string; | ||
| formInputType: string; | ||
| required: boolean; | ||
| }[]; | ||
| returnType: string; | ||
| returnDescription: string; | ||
| example: string; | ||
| }; | ||
| listFiles: { | ||
| description: string; | ||
| parameters: { | ||
| name: string; | ||
| dataType: string; | ||
| description: string; | ||
| formInputType: string; | ||
| required: boolean; | ||
| }[]; | ||
| returnType: string; | ||
| returnDescription: string; | ||
| example: string; | ||
| }; | ||
| getFile: { | ||
| description: string; | ||
| parameters: { | ||
| name: string; | ||
| dataType: string; | ||
| description: string; | ||
| formInputType: string; | ||
| required: boolean; | ||
| }[]; | ||
| returnType: string; | ||
| returnDescription: string; | ||
| example: string; | ||
| }; | ||
| downloadFile: { | ||
| description: string; | ||
| parameters: { | ||
| name: string; | ||
| dataType: string; | ||
| description: string; | ||
| formInputType: string; | ||
| required: boolean; | ||
| }[]; | ||
| returnType: string; | ||
| returnDescription: string; | ||
| example: string; | ||
| }; | ||
| uploadFile: { | ||
| description: string; | ||
| parameters: { | ||
| name: string; | ||
| dataType: string; | ||
| description: string; | ||
| formInputType: string; | ||
| required: boolean; | ||
| }[]; | ||
| returnType: string; | ||
| returnDescription: string; | ||
| example: string; | ||
| }; | ||
| createFolder: { | ||
| description: string; | ||
| parameters: { | ||
| name: string; | ||
| dataType: string; | ||
| description: string; | ||
| formInputType: string; | ||
| required: boolean; | ||
| }[]; | ||
| returnType: string; | ||
| returnDescription: string; | ||
| example: string; | ||
| }; | ||
| deleteFile: { | ||
| description: string; | ||
| parameters: { | ||
| name: string; | ||
| dataType: string; | ||
| description: string; | ||
| formInputType: string; | ||
| required: boolean; | ||
| }[]; | ||
| returnType: string; | ||
| returnDescription: string; | ||
| example: string; | ||
| }; | ||
| moveFile: { | ||
| description: string; | ||
| parameters: { | ||
| name: string; | ||
| dataType: string; | ||
| description: string; | ||
| formInputType: string; | ||
| required: boolean; | ||
| }[]; | ||
| returnType: string; | ||
| returnDescription: string; | ||
| example: string; | ||
| }; | ||
| copyFile: { | ||
| description: string; | ||
| parameters: { | ||
| name: string; | ||
| dataType: string; | ||
| description: string; | ||
| formInputType: string; | ||
| required: boolean; | ||
| }[]; | ||
| returnType: string; | ||
| returnDescription: string; | ||
| example: string; | ||
| }; | ||
| shareFile: { | ||
| description: string; | ||
| parameters: { | ||
| name: string; | ||
| dataType: string; | ||
| description: string; | ||
| formInputType: string; | ||
| required: boolean; | ||
| }[]; | ||
| returnType: string; | ||
| returnDescription: string; | ||
| example: string; | ||
| }; | ||
| }; | ||
| export declare const GoogleDriveModuleMetadata: { | ||
| description: string; | ||
| category: string; | ||
| methods: string[]; | ||
| }; | ||
| //# sourceMappingURL=google-drive.d.ts.map |
| {"version":3,"file":"google-drive.d.ts","sourceRoot":"","sources":["../src/google-drive.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAA2C,MAAM,oBAAoB,CAAC;AAyJlG,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAW/D,CAAC;AAEF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkGvC,CAAC;AAEF,eAAO,MAAM,yBAAyB;;;;CAIrC,CAAC"} |
| const config = new Map(); | ||
| function getToken() { | ||
| const token = config.get("accessToken"); | ||
| if (!token) | ||
| throw new Error('Google Drive: token not configured. Call googleDrive.setCredentials first.'); | ||
| return token; | ||
| } | ||
| async function driveApi(path, method = "GET", body, isUpload = false) { | ||
| const token = getToken(); | ||
| const base = isUpload ? "https://www.googleapis.com/upload/drive/v3" : "https://www.googleapis.com/drive/v3"; | ||
| const headers = { | ||
| Authorization: `Bearer ${token}` | ||
| }; | ||
| if (!isUpload) | ||
| headers["Content-Type"] = "application/json"; | ||
| const res = await fetch(`${base}${path}`, { | ||
| method, | ||
| headers, | ||
| body: body ? (isUpload ? body : JSON.stringify(body)) : undefined | ||
| }); | ||
| if (!res.ok) { | ||
| const text = await res.text(); | ||
| throw new Error(`Google Drive API error (${res.status}): ${text}`); | ||
| } | ||
| const ct = res.headers.get("content-type") ?? ""; | ||
| if (ct.includes("application/json")) | ||
| return res.json(); | ||
| return res.text(); | ||
| } | ||
| const setCredentials = (args) => { | ||
| const accessToken = args[0]; | ||
| if (!accessToken) | ||
| throw new Error("googleDrive.setCredentials requires an access token."); | ||
| config.set("accessToken", accessToken); | ||
| return "Google Drive credentials configured."; | ||
| }; | ||
| const listFiles = async (args) => { | ||
| const opts = (typeof args[0] === "object" && args[0] !== null ? args[0] : {}); | ||
| const params = new URLSearchParams(); | ||
| if (opts.q) | ||
| params.set("q", String(opts.q)); | ||
| if (opts.pageSize) | ||
| params.set("pageSize", String(opts.pageSize)); | ||
| if (opts.pageToken) | ||
| params.set("pageToken", String(opts.pageToken)); | ||
| if (opts.orderBy) | ||
| params.set("orderBy", String(opts.orderBy)); | ||
| params.set("fields", "nextPageToken,files(id,name,mimeType,size,modifiedTime,parents)"); | ||
| return driveApi(`/files?${params.toString()}`); | ||
| }; | ||
| const getFile = async (args) => { | ||
| const fileId = args[0]; | ||
| if (!fileId) | ||
| throw new Error("googleDrive.getFile requires a fileId."); | ||
| return driveApi(`/files/${fileId}?fields=id,name,mimeType,size,modifiedTime,parents,webViewLink,webContentLink`); | ||
| }; | ||
| const downloadFile = async (args) => { | ||
| const fileId = args[0]; | ||
| if (!fileId) | ||
| throw new Error("googleDrive.downloadFile requires a fileId."); | ||
| const token = getToken(); | ||
| const res = await fetch(`https://www.googleapis.com/drive/v3/files/${fileId}?alt=media`, { | ||
| headers: { Authorization: `Bearer ${token}` } | ||
| }); | ||
| if (!res.ok) { | ||
| const text = await res.text(); | ||
| throw new Error(`Google Drive download error (${res.status}): ${text}`); | ||
| } | ||
| return res.text(); | ||
| }; | ||
| const uploadFile = async (args) => { | ||
| const name = args[0]; | ||
| const content = args[1]; | ||
| const opts = (typeof args[2] === "object" && args[2] !== null ? args[2] : {}); | ||
| if (!name || content === undefined) | ||
| throw new Error("googleDrive.uploadFile requires name and content."); | ||
| const mimeType = opts.mimeType ?? "text/plain"; | ||
| const folderId = opts.folderId; | ||
| const metadata = { name, mimeType }; | ||
| if (folderId) | ||
| metadata.parents = [folderId]; | ||
| const boundary = "robinpath_boundary"; | ||
| const body = `--${boundary}\r\nContent-Type: application/json; charset=UTF-8\r\n\r\n${JSON.stringify(metadata)}\r\n` + | ||
| `--${boundary}\r\nContent-Type: ${mimeType}\r\n\r\n${content}\r\n--${boundary}--`; | ||
| const token = getToken(); | ||
| const res = await fetch("https://www.googleapis.com/upload/drive/v3/files?uploadType=multipart&fields=id,name,mimeType,size", { | ||
| method: "POST", | ||
| headers: { | ||
| Authorization: `Bearer ${token}`, | ||
| "Content-Type": `multipart/related; boundary=${boundary}` | ||
| }, | ||
| body | ||
| }); | ||
| if (!res.ok) { | ||
| const text = await res.text(); | ||
| throw new Error(`Google Drive upload error (${res.status}): ${text}`); | ||
| } | ||
| return res.json(); | ||
| }; | ||
| const createFolder = async (args) => { | ||
| const name = args[0]; | ||
| const parentId = args[1]; | ||
| if (!name) | ||
| throw new Error("googleDrive.createFolder requires a name."); | ||
| const metadata = { name, mimeType: "application/vnd.google-apps.folder" }; | ||
| if (parentId) | ||
| metadata.parents = [parentId]; | ||
| return driveApi("/files", "POST", metadata); | ||
| }; | ||
| const deleteFile = async (args) => { | ||
| const fileId = args[0]; | ||
| if (!fileId) | ||
| throw new Error("googleDrive.deleteFile requires a fileId."); | ||
| const token = getToken(); | ||
| const res = await fetch(`https://www.googleapis.com/drive/v3/files/${fileId}`, { | ||
| method: "DELETE", | ||
| headers: { Authorization: `Bearer ${token}` } | ||
| }); | ||
| if (!res.ok) { | ||
| const text = await res.text(); | ||
| throw new Error(`Google Drive delete error (${res.status}): ${text}`); | ||
| } | ||
| return "File deleted."; | ||
| }; | ||
| const moveFile = async (args) => { | ||
| const fileId = args[0]; | ||
| const newFolderId = args[1]; | ||
| if (!fileId || !newFolderId) | ||
| throw new Error("googleDrive.moveFile requires fileId and newFolderId."); | ||
| const file = (await driveApi(`/files/${fileId}?fields=parents`)); | ||
| const removeParents = (file.parents ?? []).join(","); | ||
| return driveApi(`/files/${fileId}?addParents=${newFolderId}&removeParents=${removeParents}&fields=id,name,parents`, "PATCH"); | ||
| }; | ||
| const copyFile = async (args) => { | ||
| const fileId = args[0]; | ||
| const opts = (typeof args[1] === "object" && args[1] !== null ? args[1] : {}); | ||
| if (!fileId) | ||
| throw new Error("googleDrive.copyFile requires a fileId."); | ||
| const body = {}; | ||
| if (opts.name) | ||
| body.name = opts.name; | ||
| if (opts.folderId) | ||
| body.parents = [opts.folderId]; | ||
| return driveApi(`/files/${fileId}/copy?fields=id,name,mimeType,size`, "POST", body); | ||
| }; | ||
| const shareFile = async (args) => { | ||
| const fileId = args[0]; | ||
| const email = args[1]; | ||
| const role = args[2] ?? "reader"; | ||
| if (!fileId || !email) | ||
| throw new Error("googleDrive.shareFile requires fileId and email."); | ||
| return driveApi(`/files/${fileId}/permissions`, "POST", { | ||
| type: "user", | ||
| role, | ||
| emailAddress: email | ||
| }); | ||
| }; | ||
| export const GoogleDriveFunctions = { | ||
| setCredentials, | ||
| listFiles, | ||
| getFile, | ||
| downloadFile, | ||
| uploadFile, | ||
| createFolder, | ||
| deleteFile, | ||
| moveFile, | ||
| copyFile, | ||
| shareFile | ||
| }; | ||
| export const GoogleDriveFunctionMetadata = { | ||
| setCredentials: { | ||
| description: "Set the OAuth2 access token for Google Drive API.", | ||
| parameters: [ | ||
| { name: "accessToken", dataType: "string", description: "OAuth2 access token", formInputType: "text", required: true }, | ||
| ], | ||
| returnType: "string", | ||
| returnDescription: "Confirmation message.", | ||
| example: 'googleDrive.setCredentials "ya29.xxx"' | ||
| }, | ||
| listFiles: { | ||
| description: "List files in Google Drive with optional query filter.", | ||
| parameters: [ | ||
| { name: "options", dataType: "object", description: "Options: q (query), pageSize, pageToken, orderBy", formInputType: "json", required: false }, | ||
| ], | ||
| returnType: "object", | ||
| returnDescription: "Object with files array and nextPageToken.", | ||
| example: 'googleDrive.listFiles {"q":"mimeType=\'application/pdf\'","pageSize":10}' | ||
| }, | ||
| getFile: { | ||
| description: "Get file metadata by ID.", | ||
| parameters: [ | ||
| { name: "fileId", dataType: "string", description: "The file ID", formInputType: "text", required: true }, | ||
| ], | ||
| returnType: "object", | ||
| returnDescription: "File metadata object.", | ||
| example: 'googleDrive.getFile "file-id"' | ||
| }, | ||
| downloadFile: { | ||
| description: "Download file content as text.", | ||
| parameters: [ | ||
| { name: "fileId", dataType: "string", description: "The file ID to download", formInputType: "text", required: true }, | ||
| ], | ||
| returnType: "string", | ||
| returnDescription: "File content as text.", | ||
| example: 'googleDrive.downloadFile "file-id"' | ||
| }, | ||
| uploadFile: { | ||
| description: "Upload a file to Google Drive.", | ||
| parameters: [ | ||
| { name: "name", dataType: "string", description: "File name", formInputType: "text", required: true }, | ||
| { name: "content", dataType: "string", description: "File content", formInputType: "textarea", required: true }, | ||
| { name: "options", dataType: "object", description: "Options: mimeType, folderId", formInputType: "json", required: false }, | ||
| ], | ||
| returnType: "object", | ||
| returnDescription: "Uploaded file metadata.", | ||
| example: 'googleDrive.uploadFile "report.txt" "Hello world" {"folderId":"folder-id"}' | ||
| }, | ||
| createFolder: { | ||
| description: "Create a new folder in Google Drive.", | ||
| parameters: [ | ||
| { name: "name", dataType: "string", description: "Folder name", formInputType: "text", required: true }, | ||
| { name: "parentId", dataType: "string", description: "Parent folder ID (optional)", formInputType: "text", required: false }, | ||
| ], | ||
| returnType: "object", | ||
| returnDescription: "Created folder metadata.", | ||
| example: 'googleDrive.createFolder "My Folder"' | ||
| }, | ||
| deleteFile: { | ||
| description: "Permanently delete a file or folder.", | ||
| parameters: [ | ||
| { name: "fileId", dataType: "string", description: "The file/folder ID to delete", formInputType: "text", required: true }, | ||
| ], | ||
| returnType: "string", | ||
| returnDescription: "Confirmation message.", | ||
| example: 'googleDrive.deleteFile "file-id"' | ||
| }, | ||
| moveFile: { | ||
| description: "Move a file to a different folder.", | ||
| parameters: [ | ||
| { name: "fileId", dataType: "string", description: "The file ID to move", formInputType: "text", required: true }, | ||
| { name: "newFolderId", dataType: "string", description: "Destination folder ID", formInputType: "text", required: true }, | ||
| ], | ||
| returnType: "object", | ||
| returnDescription: "Updated file metadata.", | ||
| example: 'googleDrive.moveFile "file-id" "folder-id"' | ||
| }, | ||
| copyFile: { | ||
| description: "Copy a file, optionally with a new name or destination.", | ||
| parameters: [ | ||
| { name: "fileId", dataType: "string", description: "The file ID to copy", formInputType: "text", required: true }, | ||
| { name: "options", dataType: "object", description: "Options: name, folderId", formInputType: "json", required: false }, | ||
| ], | ||
| returnType: "object", | ||
| returnDescription: "Copied file metadata.", | ||
| example: 'googleDrive.copyFile "file-id" {"name":"Copy of Report"}' | ||
| }, | ||
| shareFile: { | ||
| description: "Share a file with a user by email.", | ||
| parameters: [ | ||
| { name: "fileId", dataType: "string", description: "The file ID to share", formInputType: "text", required: true }, | ||
| { name: "email", dataType: "string", description: "Email of the user to share with", formInputType: "text", required: true }, | ||
| { name: "role", dataType: "string", description: "Permission role: reader, writer, commenter (default: reader)", formInputType: "select", required: false }, | ||
| ], | ||
| returnType: "object", | ||
| returnDescription: "Permission object.", | ||
| example: 'googleDrive.shareFile "file-id" "user@example.com" "writer"' | ||
| } | ||
| }; | ||
| export const GoogleDriveModuleMetadata = { | ||
| description: "List, upload, download, move, copy, and share files in Google Drive via the Google Drive API v3.", | ||
| category: "storage", | ||
| methods: Object.keys(GoogleDriveFunctions) | ||
| }; | ||
| //# sourceMappingURL=google-drive.js.map |
| {"version":3,"file":"google-drive.js","sourceRoot":"","sources":["../src/google-drive.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,GAAG,IAAI,GAAG,EAAkB,CAAC;AAEzC,SAAS,QAAQ;IACf,MAAM,KAAK,GAAG,MAAM,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;IACxC,IAAI,CAAC,KAAK;QAAE,MAAM,IAAI,KAAK,CAAC,4EAA4E,CAAC,CAAC;IAC1G,OAAO,KAAK,CAAC;AACf,CAAC;AAED,KAAK,UAAU,QAAQ,CAAC,IAAY,EAAE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AAU,EAAE;YACV,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,WAAW,EAAE,sBAAsB,EAAE,aAAa,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE;YAClH,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,WAAW,EAAE,iCAAiC,EAAE,aAAa,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE;YAC5H,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,WAAW,EAAE,8DAA8D,EAAE,aAAa,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE;SAC5J;QACD,UAAU,EAAE,QAAQ;QACpB,iBAAiB,EAAE,oBAAoB;QACvC,OAAO,EAAE,6DAA6D;KACvE;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACvC,WAAW,EAAE,kGAAkG;IAC/G,QAAQ,EAAE,SAAS;IACnB,OAAO,EAAE,MAAM,CAAC,IAAI,CAAC,oBAAoB,CAAC;CAC3C,CAAC"} |
| import type { ModuleAdapter } from "@wiredwp/robinpath"; | ||
| declare const GoogleDriveModule: ModuleAdapter; | ||
| export default GoogleDriveModule; | ||
| export { GoogleDriveModule }; | ||
| export { GoogleDriveFunctions, GoogleDriveFunctionMetadata, GoogleDriveModuleMetadata } from "./google-drive.js"; | ||
| //# sourceMappingURL=index.d.ts.map |
| {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAGxD,QAAA,MAAM,iBAAiB,EAAE,aAMxB,CAAC;AAEF,eAAe,iBAAiB,CAAC;AACjC,OAAO,EAAE,iBAAiB,EAAE,CAAC;AAC7B,OAAO,EAAE,oBAAoB,EAAE,2BAA2B,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC"} |
| import { GoogleDriveFunctions, GoogleDriveFunctionMetadata, GoogleDriveModuleMetadata } from "./google-drive.js"; | ||
| const GoogleDriveModule = { | ||
| name: "googleDrive", | ||
| functions: GoogleDriveFunctions, | ||
| functionMetadata: GoogleDriveFunctionMetadata, | ||
| moduleMetadata: GoogleDriveModuleMetadata, | ||
| global: false, | ||
| }; // as ModuleAdapter | ||
| export default GoogleDriveModule; | ||
| export { GoogleDriveModule }; | ||
| export { GoogleDriveFunctions, GoogleDriveFunctionMetadata, GoogleDriveModuleMetadata } from "./google-drive.js"; | ||
| //# sourceMappingURL=index.js.map |
| {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,2BAA2B,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAEjH,MAAM,iBAAiB,GAAkB;IACvC,IAAI,EAAE,aAAa;IACnB,SAAS,EAAE,oBAAoB;IAC/B,gBAAgB,EAAE,2BAAkC;IACpD,cAAc,EAAE,yBAAgC;IAChD,MAAM,EAAE,KAAK;CACd,CAAC,CAAC,mBAAmB;AAEtB,eAAe,iBAAiB,CAAC;AACjC,OAAO,EAAE,iBAAiB,EAAE,CAAC;AAC7B,OAAO,EAAE,oBAAoB,EAAE,2BAA2B,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC"} |
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
No License Found
LicenseLicense information could not be found.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
0
-100%1
-50%2
-50%4082
-86.92%2
-80%0
-100%