@activepieces/piece-google-drive 0.5.15 → 0.5.16
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 +5 -5
- package/src/index.d.ts +2 -2
- package/src/index.js +19 -4
- package/src/index.js.map +1 -1
- package/src/lib/action/add-permission.action.d.ts +1 -1
- package/src/lib/action/create-new-folder.d.ts +1 -1
- package/src/lib/action/create-new-text-file.d.ts +1 -1
- package/src/lib/action/delete-permission.action.d.ts +1 -1
- package/src/lib/action/duplicate-file.action.d.ts +1 -1
- package/src/lib/action/get-file-by-id.d.ts +1 -1
- package/src/lib/action/list-files.action.d.ts +1 -1
- package/src/lib/action/read-file.d.ts +1 -1
- package/src/lib/action/save-file-as-pdf.action.d.ts +1 -1
- package/src/lib/action/search-folder-or-file.action.d.ts +1 -1
- package/src/lib/action/upload-file.d.ts +1 -1
- package/src/lib/triggers/new-file.d.ts +7 -1
- package/src/lib/triggers/new-folder.d.ts +7 -1
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.16",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"@sinclair/typebox": "0.26.8",
|
|
6
6
|
"axios": "^1.6.3",
|
|
@@ -13,10 +13,10 @@
|
|
|
13
13
|
"mime-types": "2.1.35",
|
|
14
14
|
"nanoid": "3.3.6",
|
|
15
15
|
"semver": "7.5.4",
|
|
16
|
-
"@activepieces/pieces-common": "0.2.
|
|
17
|
-
"@activepieces/pieces-framework": "0.7.
|
|
18
|
-
"@activepieces/shared": "0.10.
|
|
19
|
-
"tslib": "
|
|
16
|
+
"@activepieces/pieces-common": "0.2.8",
|
|
17
|
+
"@activepieces/pieces-framework": "0.7.14",
|
|
18
|
+
"@activepieces/shared": "0.10.66",
|
|
19
|
+
"tslib": "2.6.2"
|
|
20
20
|
},
|
|
21
21
|
"main": "./src/index.js",
|
|
22
22
|
"type": "commonjs"
|
package/src/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const googleDriveAuth: import("@activepieces/pieces-framework").OAuth2Property<
|
|
2
|
-
export declare const googleDrive: import("@activepieces/pieces-framework").Piece<import("@activepieces/pieces-framework").OAuth2Property<
|
|
1
|
+
export declare const googleDriveAuth: import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>;
|
|
2
|
+
export declare const googleDrive: import("@activepieces/pieces-framework").Piece<import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>>;
|
package/src/index.js
CHANGED
|
@@ -15,6 +15,7 @@ const add_permission_action_1 = require("./lib/action/add-permission.action");
|
|
|
15
15
|
const delete_permission_action_1 = require("./lib/action/delete-permission.action");
|
|
16
16
|
const get_file_by_id_1 = require("./lib/action/get-file-by-id");
|
|
17
17
|
const search_folder_or_file_action_1 = require("./lib/action/search-folder-or-file.action");
|
|
18
|
+
const pieces_common_1 = require("@activepieces/pieces-common");
|
|
18
19
|
exports.googleDriveAuth = pieces_framework_1.PieceAuth.OAuth2({
|
|
19
20
|
description: '',
|
|
20
21
|
authUrl: 'https://accounts.google.com/o/oauth2/auth',
|
|
@@ -25,8 +26,15 @@ exports.googleDriveAuth = pieces_framework_1.PieceAuth.OAuth2({
|
|
|
25
26
|
exports.googleDrive = (0, pieces_framework_1.createPiece)({
|
|
26
27
|
minimumSupportedRelease: '0.5.6',
|
|
27
28
|
logoUrl: 'https://cdn.activepieces.com/pieces/google-drive.png',
|
|
28
|
-
displayName:
|
|
29
|
-
authors: [
|
|
29
|
+
displayName: 'Google Drive',
|
|
30
|
+
authors: [
|
|
31
|
+
'kanarelo',
|
|
32
|
+
'BastienMe',
|
|
33
|
+
'MoShizzle',
|
|
34
|
+
'Armangiau',
|
|
35
|
+
'vitalini',
|
|
36
|
+
'PFernandez98',
|
|
37
|
+
],
|
|
30
38
|
triggers: [new_file_1.newFile, new_folder_1.newFolder],
|
|
31
39
|
actions: [
|
|
32
40
|
create_new_folder_1.googleDriveCreateNewFolder,
|
|
@@ -39,8 +47,15 @@ exports.googleDrive = (0, pieces_framework_1.createPiece)({
|
|
|
39
47
|
duplicate_file_action_1.duplicateFileAction,
|
|
40
48
|
save_file_as_pdf_action_1.saveFileAsPdf,
|
|
41
49
|
add_permission_action_1.addPermission,
|
|
42
|
-
delete_permission_action_1.deletePermission
|
|
50
|
+
delete_permission_action_1.deletePermission,
|
|
51
|
+
(0, pieces_common_1.createCustomApiCallAction)({
|
|
52
|
+
baseUrl: () => 'https://www.googleapis.com/drive/v3',
|
|
53
|
+
auth: exports.googleDriveAuth,
|
|
54
|
+
authMapping: (auth) => ({
|
|
55
|
+
Authorization: `Bearer ${auth.access_token}`,
|
|
56
|
+
}),
|
|
57
|
+
}),
|
|
43
58
|
],
|
|
44
|
-
auth: exports.googleDriveAuth
|
|
59
|
+
auth: exports.googleDriveAuth,
|
|
45
60
|
});
|
|
46
61
|
//# sourceMappingURL=index.js.map
|
package/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/pieces/community/google-drive/src/index.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/pieces/community/google-drive/src/index.ts"],"names":[],"mappings":";;;AAAA,qEAA6F;AAE7F,sEAA4E;AAC5E,4EAAiF;AACjF,0DAAiE;AACjE,sDAAkD;AAClD,0DAAsD;AACtD,sDAAkD;AAClD,sEAAsE;AACtE,8EAAyE;AACzE,kFAAqE;AACrE,8EAAmE;AACnE,oFAAyE;AACzE,gEAAyE;AACzE,4FAAoF;AACpF,+DAAwE;AAE3D,QAAA,eAAe,GAAG,4BAAS,CAAC,MAAM,CAAC;IAC9C,WAAW,EAAE,EAAE;IACf,OAAO,EAAE,2CAA2C;IACpD,QAAQ,EAAE,qCAAqC;IAC/C,QAAQ,EAAE,IAAI;IACd,KAAK,EAAE,CAAC,uCAAuC,CAAC;CACjD,CAAC,CAAC;AAEU,QAAA,WAAW,GAAG,IAAA,8BAAW,EAAC;IACrC,uBAAuB,EAAE,OAAO;IAChC,OAAO,EAAE,sDAAsD;IAC/D,WAAW,EAAE,cAAc;IAC3B,OAAO,EAAE;QACP,UAAU;QACV,WAAW;QACX,WAAW;QACX,WAAW;QACX,UAAU;QACV,cAAc;KACf;IACD,QAAQ,EAAE,CAAC,kBAAO,EAAE,sBAAS,CAAC;IAC9B,OAAO,EAAE;QACP,8CAA0B;QAC1B,mDAA4B;QAC5B,mCAAqB;QACrB,oBAAQ;QACR,2CAA0B;QAC1B,wCAAoB;QACpB,sDAAuB;QACvB,2CAAmB;QACnB,uCAAa;QACb,qCAAa;QACb,2CAAgB;QAChB,IAAA,yCAAyB,EAAC;YACxB,OAAO,EAAE,GAAG,EAAE,CAAC,qCAAqC;YACpD,IAAI,EAAE,uBAAe;YACrB,WAAW,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;gBACtB,aAAa,EAAE,UAAW,IAA4B,CAAC,YAAY,EAAE;aACtE,CAAC;SACH,CAAC;KACH;IACD,IAAI,EAAE,uBAAe;CACtB,CAAC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const addPermission: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").OAuth2Property<
|
|
1
|
+
export declare const addPermission: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {
|
|
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>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const googleDriveCreateNewFolder: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").OAuth2Property<
|
|
1
|
+
export declare const googleDriveCreateNewFolder: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {
|
|
2
2
|
folderName: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
3
|
parentFolder: import("@activepieces/pieces-framework").DropdownProperty<string, false>;
|
|
4
4
|
include_team_drives: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const googleDriveCreateNewTextFile: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").OAuth2Property<
|
|
1
|
+
export declare const googleDriveCreateNewTextFile: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {
|
|
2
2
|
fileName: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
3
|
text: import("@activepieces/pieces-framework").LongTextProperty<true>;
|
|
4
4
|
fileType: import("@activepieces/pieces-framework").StaticDropdownProperty<string, true>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const deletePermission: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").OAuth2Property<
|
|
1
|
+
export declare const deletePermission: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {
|
|
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>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const duplicateFileAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").OAuth2Property<
|
|
1
|
+
export declare const duplicateFileAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {
|
|
2
2
|
fileId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
3
|
name: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
4
4
|
folderId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const googleDriveGetResourceById: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").OAuth2Property<
|
|
1
|
+
export declare const googleDriveGetResourceById: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {
|
|
2
2
|
id: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
3
|
}>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const googleDriveListFiles: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").OAuth2Property<
|
|
1
|
+
export declare const googleDriveListFiles: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {
|
|
2
2
|
folderId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
3
|
}>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const readFile: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").OAuth2Property<
|
|
1
|
+
export declare const readFile: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {
|
|
2
2
|
fileId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
3
|
fileName: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
4
4
|
}>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const saveFileAsPdf: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").OAuth2Property<
|
|
1
|
+
export declare const saveFileAsPdf: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {
|
|
2
2
|
documentId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
3
|
folderId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
4
4
|
name: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const googleDriveSearchFolder: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").OAuth2Property<
|
|
1
|
+
export declare const googleDriveSearchFolder: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {
|
|
2
2
|
queryTerm: import("@activepieces/pieces-framework").StaticDropdownProperty<string, true>;
|
|
3
3
|
operator: import("@activepieces/pieces-framework").StaticDropdownProperty<string, true>;
|
|
4
4
|
query: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const googleDriveUploadFile: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").OAuth2Property<
|
|
1
|
+
export declare const googleDriveUploadFile: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {
|
|
2
2
|
fileName: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
3
|
file: import("@activepieces/pieces-framework").FileProperty<true>;
|
|
4
4
|
parentFolder: import("@activepieces/pieces-framework").DropdownProperty<string, false>;
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import { TriggerStrategy } from '@activepieces/pieces-framework';
|
|
2
|
-
export declare const newFile: import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.
|
|
2
|
+
export declare const newFile: import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.WEBHOOK, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {
|
|
3
|
+
parentFolder: import("@activepieces/pieces-framework").DropdownProperty<string, false>;
|
|
4
|
+
include_team_drives: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
5
|
+
}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.POLLING, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {
|
|
6
|
+
parentFolder: import("@activepieces/pieces-framework").DropdownProperty<string, false>;
|
|
7
|
+
include_team_drives: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
8
|
+
}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.APP_WEBHOOK, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {
|
|
3
9
|
parentFolder: import("@activepieces/pieces-framework").DropdownProperty<string, false>;
|
|
4
10
|
include_team_drives: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
5
11
|
}>;
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import { TriggerStrategy } from '@activepieces/pieces-framework';
|
|
2
|
-
export declare const newFolder: import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.
|
|
2
|
+
export declare const newFolder: import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.WEBHOOK, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {
|
|
3
|
+
parentFolder: import("@activepieces/pieces-framework").DropdownProperty<string, false>;
|
|
4
|
+
include_team_drives: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
5
|
+
}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.POLLING, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {
|
|
6
|
+
parentFolder: import("@activepieces/pieces-framework").DropdownProperty<string, false>;
|
|
7
|
+
include_team_drives: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
8
|
+
}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.APP_WEBHOOK, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {
|
|
3
9
|
parentFolder: import("@activepieces/pieces-framework").DropdownProperty<string, false>;
|
|
4
10
|
include_team_drives: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
5
11
|
}>;
|