fix(shared-drive): show shared drive items

This commit is contained in:
Rıdvan Akca
2023-05-18 20:29:45 +03:00
committed by Ali BARIN
parent 536446faf6
commit 324375da93
10 changed files with 58 additions and 7 deletions

View File

@@ -11,13 +11,19 @@ export default {
data: [],
};
const params = {
const params: Record<string, unknown> = {
q: `mimeType='application/vnd.google-apps.folder'`,
orderBy: 'createdTime desc',
pageToken: undefined as unknown as string,
pageSize: 1000,
driveId: $.step.parameters.driveId,
supportsAllDrives: true,
};
if ($.step.parameters.driveId) {
params.includeItemsFromAllDrives = true;
}
do {
const { data } = await $.http.get(
`https://www.googleapis.com/drive/v3/files`,