@activepieces/piece-google-drive 0.5.42 → 0.5.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@activepieces/piece-google-drive",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.43",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"@ai-sdk/anthropic": "1.2.12",
|
|
6
6
|
"@ai-sdk/google": "1.2.19",
|
|
@@ -13,16 +13,16 @@
|
|
|
13
13
|
"dayjs": "1.11.9",
|
|
14
14
|
"deepmerge-ts": "7.1.0",
|
|
15
15
|
"fast-glob": "3.3.3",
|
|
16
|
-
"form-data": "4.0.
|
|
16
|
+
"form-data": "4.0.4",
|
|
17
17
|
"googleapis": "129.0.0",
|
|
18
18
|
"googleapis-common": "7.2.0",
|
|
19
19
|
"mime-types": "2.1.35",
|
|
20
20
|
"nanoid": "3.3.8",
|
|
21
21
|
"semver": "7.6.0",
|
|
22
22
|
"zod": "3.25.76",
|
|
23
|
-
"@activepieces/pieces-common": "0.6.
|
|
24
|
-
"@activepieces/pieces-framework": "0.
|
|
25
|
-
"@activepieces/shared": "0.17.
|
|
23
|
+
"@activepieces/pieces-common": "0.6.1",
|
|
24
|
+
"@activepieces/pieces-framework": "0.18.0",
|
|
25
|
+
"@activepieces/shared": "0.17.6",
|
|
26
26
|
"tslib": "2.8.1"
|
|
27
27
|
},
|
|
28
28
|
"overrides": {
|
|
@@ -31,8 +31,7 @@
|
|
|
31
31
|
},
|
|
32
32
|
"vite": {
|
|
33
33
|
"rollup": "npm:@rollup/wasm-node"
|
|
34
|
-
}
|
|
35
|
-
"stylus": "0.0.1-security"
|
|
34
|
+
}
|
|
36
35
|
},
|
|
37
36
|
"resolutions": {
|
|
38
37
|
"rollup": "npm:@rollup/wasm-node"
|
|
@@ -2,5 +2,6 @@ export declare const addPermission: import("@activepieces/pieces-framework").IAc
|
|
|
2
2
|
fileId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
3
|
user_email: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
4
4
|
permission_name: import("@activepieces/pieces-framework").StaticDropdownProperty<string, true>;
|
|
5
|
+
include_team_drives: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
5
6
|
send_invitation_email: import("@activepieces/pieces-framework").CheckboxProperty<true>;
|
|
6
7
|
}>;
|
|
@@ -6,6 +6,7 @@ const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
|
6
6
|
const __1 = require("../../");
|
|
7
7
|
const googleapis_1 = require("googleapis");
|
|
8
8
|
const googleapis_common_1 = require("googleapis-common");
|
|
9
|
+
const common_1 = require("../common");
|
|
9
10
|
exports.addPermission = (0, pieces_framework_1.createAction)({
|
|
10
11
|
auth: __1.googleDriveAuth,
|
|
11
12
|
name: 'update_permissions',
|
|
@@ -51,6 +52,7 @@ exports.addPermission = (0, pieces_framework_1.createAction)({
|
|
|
51
52
|
]
|
|
52
53
|
}
|
|
53
54
|
}),
|
|
55
|
+
include_team_drives: common_1.common.properties.include_team_drives,
|
|
54
56
|
send_invitation_email: pieces_framework_1.Property.Checkbox({
|
|
55
57
|
displayName: 'Send invitation email',
|
|
56
58
|
description: 'Send an email to the user to notify them of the new permissions',
|
|
@@ -59,7 +61,7 @@ exports.addPermission = (0, pieces_framework_1.createAction)({
|
|
|
59
61
|
},
|
|
60
62
|
run(context) {
|
|
61
63
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
62
|
-
const
|
|
64
|
+
const { fileId, user_email, permission_name, send_invitation_email, include_team_drives } = context.propsValue;
|
|
63
65
|
const authClient = new googleapis_common_1.OAuth2Client();
|
|
64
66
|
authClient.setCredentials(context.auth);
|
|
65
67
|
const drive = googleapis_1.google.drive({ version: 'v3', auth: authClient });
|
|
@@ -67,7 +69,8 @@ exports.addPermission = (0, pieces_framework_1.createAction)({
|
|
|
67
69
|
const result = yield drive.permissions.create({
|
|
68
70
|
requestBody: permission,
|
|
69
71
|
fileId: fileId,
|
|
70
|
-
sendNotificationEmail: send_invitation_email
|
|
72
|
+
sendNotificationEmail: send_invitation_email,
|
|
73
|
+
supportsAllDrives: include_team_drives,
|
|
71
74
|
});
|
|
72
75
|
return result.data;
|
|
73
76
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-permission.action.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/google-drive/src/lib/action/add-permission.action.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,8BAAyC;AACzC,2CAAoC;AACpC,yDAAiD;
|
|
1
|
+
{"version":3,"file":"add-permission.action.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/google-drive/src/lib/action/add-permission.action.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,8BAAyC;AACzC,2CAAoC;AACpC,yDAAiD;AACjD,sCAAmC;AAEtB,QAAA,aAAa,GAAG,IAAA,+BAAY,EAAC;IACtC,IAAI,EAAE,mBAAe;IACrB,IAAI,EAAE,oBAAoB;IAC1B,WAAW,EAAE,yCAAyC;IACtD,WAAW,EAAE,oBAAoB;IACjC,KAAK,EAAE;QACH,MAAM,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACvB,WAAW,EAAE,mBAAmB;YAChC,WAAW,EAAE,wDAAwD;YACrE,QAAQ,EAAE,IAAI;SACjB,CAAC;QACF,UAAU,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC3B,WAAW,EAAE,YAAY;YACzB,WAAW,EAAE,yDAAyD;YACtE,QAAQ,EAAE,IAAI;SACjB,CAAC;QACF,eAAe,EAAG,2BAAQ,CAAC,cAAc,CAAC;YACtC,WAAW,EAAE,MAAM;YACnB,WAAW,EAAE,kGAAkG;YAC/G,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE;gBACT,OAAO,EAAE;oBACL;wBACI,KAAK,EAAE,WAAW;wBA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