@activepieces/piece-google-drive 0.7.8 → 0.7.10

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.
Files changed (85) hide show
  1. package/package.json +7 -20
  2. package/src/index.js +108 -79
  3. package/src/index.d.ts +0 -6
  4. package/src/index.d.ts.map +0 -1
  5. package/src/index.js.map +0 -1
  6. package/src/lib/action/add-permission.action.d.ts +0 -11
  7. package/src/lib/action/add-permission.action.d.ts.map +0 -1
  8. package/src/lib/action/add-permission.action.js +0 -79
  9. package/src/lib/action/add-permission.action.js.map +0 -1
  10. package/src/lib/action/create-new-folder.d.ts +0 -12
  11. package/src/lib/action/create-new-folder.d.ts.map +0 -1
  12. package/src/lib/action/create-new-folder.js +0 -39
  13. package/src/lib/action/create-new-folder.js.map +0 -1
  14. package/src/lib/action/create-new-text-file.d.ts +0 -14
  15. package/src/lib/action/create-new-text-file.d.ts.map +0 -1
  16. package/src/lib/action/create-new-text-file.js +0 -83
  17. package/src/lib/action/create-new-text-file.js.map +0 -1
  18. package/src/lib/action/delete-file.d.ts +0 -8
  19. package/src/lib/action/delete-file.d.ts.map +0 -1
  20. package/src/lib/action/delete-file.js +0 -36
  21. package/src/lib/action/delete-file.js.map +0 -1
  22. package/src/lib/action/delete-permission.action.d.ts +0 -9
  23. package/src/lib/action/delete-permission.action.d.ts.map +0 -1
  24. package/src/lib/action/delete-permission.action.js +0 -80
  25. package/src/lib/action/delete-permission.action.js.map +0 -1
  26. package/src/lib/action/duplicate-file.action.d.ts +0 -11
  27. package/src/lib/action/duplicate-file.action.d.ts.map +0 -1
  28. package/src/lib/action/duplicate-file.action.js +0 -79
  29. package/src/lib/action/duplicate-file.action.js.map +0 -1
  30. package/src/lib/action/get-file-by-id.d.ts +0 -8
  31. package/src/lib/action/get-file-by-id.d.ts.map +0 -1
  32. package/src/lib/action/get-file-by-id.js +0 -42
  33. package/src/lib/action/get-file-by-id.js.map +0 -1
  34. package/src/lib/action/list-files.action.d.ts +0 -11
  35. package/src/lib/action/list-files.action.d.ts.map +0 -1
  36. package/src/lib/action/list-files.action.js +0 -161
  37. package/src/lib/action/list-files.action.js.map +0 -1
  38. package/src/lib/action/move-file.d.ts +0 -12
  39. package/src/lib/action/move-file.d.ts.map +0 -1
  40. package/src/lib/action/move-file.js +0 -48
  41. package/src/lib/action/move-file.js.map +0 -1
  42. package/src/lib/action/read-file.d.ts +0 -8
  43. package/src/lib/action/read-file.d.ts.map +0 -1
  44. package/src/lib/action/read-file.js +0 -30
  45. package/src/lib/action/read-file.js.map +0 -1
  46. package/src/lib/action/save-file-as-pdf.action.d.ts +0 -10
  47. package/src/lib/action/save-file-as-pdf.action.d.ts.map +0 -1
  48. package/src/lib/action/save-file-as-pdf.action.js +0 -68
  49. package/src/lib/action/save-file-as-pdf.action.js.map +0 -1
  50. package/src/lib/action/search-folder-or-file.action.d.ts +0 -15
  51. package/src/lib/action/search-folder-or-file.action.d.ts.map +0 -1
  52. package/src/lib/action/search-folder-or-file.action.js +0 -116
  53. package/src/lib/action/search-folder-or-file.action.js.map +0 -1
  54. package/src/lib/action/send-to-trash.d.ts +0 -8
  55. package/src/lib/action/send-to-trash.d.ts.map +0 -1
  56. package/src/lib/action/send-to-trash.js +0 -40
  57. package/src/lib/action/send-to-trash.js.map +0 -1
  58. package/src/lib/action/set-public-access.d.ts +0 -8
  59. package/src/lib/action/set-public-access.d.ts.map +0 -1
  60. package/src/lib/action/set-public-access.js +0 -62
  61. package/src/lib/action/set-public-access.js.map +0 -1
  62. package/src/lib/action/upload-file.d.ts +0 -13
  63. package/src/lib/action/upload-file.d.ts.map +0 -1
  64. package/src/lib/action/upload-file.js +0 -63
  65. package/src/lib/action/upload-file.js.map +0 -1
  66. package/src/lib/auth.d.ts +0 -11
  67. package/src/lib/auth.d.ts.map +0 -1
  68. package/src/lib/auth.js +0 -86
  69. package/src/lib/auth.js.map +0 -1
  70. package/src/lib/common/get-file-content.d.ts +0 -4
  71. package/src/lib/common/get-file-content.d.ts.map +0 -1
  72. package/src/lib/common/get-file-content.js +0 -69
  73. package/src/lib/common/get-file-content.js.map +0 -1
  74. package/src/lib/common/index.d.ts +0 -23
  75. package/src/lib/common/index.d.ts.map +0 -1
  76. package/src/lib/common/index.js +0 -150
  77. package/src/lib/common/index.js.map +0 -1
  78. package/src/lib/triggers/new-file.d.ts +0 -43
  79. package/src/lib/triggers/new-file.d.ts.map +0 -1
  80. package/src/lib/triggers/new-file.js +0 -103
  81. package/src/lib/triggers/new-file.js.map +0 -1
  82. package/src/lib/triggers/new-folder.d.ts +0 -39
  83. package/src/lib/triggers/new-folder.d.ts.map +0 -1
  84. package/src/lib/triggers/new-folder.js +0 -67
  85. package/src/lib/triggers/new-folder.js.map +0 -1
@@ -1,103 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.newFile = void 0;
4
- const tslib_1 = require("tslib");
5
- const pieces_framework_1 = require("@activepieces/pieces-framework");
6
- const pieces_framework_2 = require("@activepieces/pieces-framework");
7
- const pieces_common_1 = require("@activepieces/pieces-common");
8
- const dayjs_1 = tslib_1.__importDefault(require("dayjs"));
9
- const auth_1 = require("../auth");
10
- const common_1 = require("../common");
11
- const get_file_content_1 = require("../common/get-file-content");
12
- const polling = {
13
- strategy: pieces_common_1.DedupeStrategy.TIMEBASED,
14
- items: (_a) => tslib_1.__awaiter(void 0, [_a], void 0, function* ({ auth, propsValue, lastFetchEpochMS }) {
15
- var _b;
16
- const currentValues = (_b = (yield common_1.common.getFiles(auth, {
17
- parent: propsValue.parentFolder,
18
- createdTime: lastFetchEpochMS,
19
- includeTeamDrive: propsValue.include_team_drives,
20
- }))) !== null && _b !== void 0 ? _b : [];
21
- const items = currentValues.map((item) => ({
22
- epochMilliSeconds: (0, dayjs_1.default)(item.createdTime).valueOf(),
23
- data: item,
24
- }));
25
- return items;
26
- }),
27
- };
28
- exports.newFile = (0, pieces_framework_1.createTrigger)({
29
- auth: auth_1.googleDriveAuth,
30
- name: 'new_file',
31
- displayName: 'New File',
32
- description: 'Trigger when a new file is uploaded.',
33
- aiMetadata: {
34
- description: 'Fires when a new file appears in Google Drive, optionally scoped to a specific parent folder. Each event represents one newly created file and its metadata, with optional inclusion of the file content.',
35
- },
36
- props: {
37
- parentFolder: common_1.common.properties.parentFolder,
38
- include_team_drives: common_1.common.properties.include_team_drives,
39
- include_file_content: pieces_framework_1.Property.Checkbox({
40
- displayName: 'Include File Content',
41
- description: 'Include the file content in the output. This will increase the time taken to fetch the files and might cause issues with large files.',
42
- required: false,
43
- defaultValue: false
44
- }),
45
- },
46
- type: pieces_framework_2.TriggerStrategy.POLLING,
47
- onEnable: (context) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
48
- yield pieces_common_1.pollingHelper.onEnable(polling, {
49
- auth: context.auth,
50
- store: context.store,
51
- propsValue: context.propsValue,
52
- });
53
- }),
54
- onDisable: (context) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
55
- yield pieces_common_1.pollingHelper.onDisable(polling, {
56
- auth: context.auth,
57
- store: context.store,
58
- propsValue: context.propsValue,
59
- });
60
- }),
61
- run: (context) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
62
- const newFiles = yield pieces_common_1.pollingHelper.poll(polling, {
63
- auth: context.auth,
64
- store: context.store,
65
- propsValue: context.propsValue,
66
- files: context.files,
67
- });
68
- return yield handleFileContent(newFiles, context);
69
- }),
70
- test: (context) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
71
- const newFiles = yield pieces_common_1.pollingHelper.test(polling, {
72
- auth: context.auth,
73
- store: context.store,
74
- propsValue: context.propsValue,
75
- files: context.files,
76
- });
77
- return yield handleFileContent(newFiles, context);
78
- }),
79
- sampleData: {
80
- kind: 'drive#file',
81
- mimeType: 'image/png',
82
- id: '1dpv4-sKJfKRwI9qx1vWqQhEGEn3EpbI5',
83
- name: 'google-drive.png',
84
- link: 'https://cdn.activepieces.com/pieces/google-drive.png'
85
- },
86
- });
87
- function handleFileContent(newFiles, context) {
88
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
89
- const newFilesObj = JSON.parse(JSON.stringify(newFiles));
90
- if (context.propsValue.include_file_content) {
91
- const fileContentPromises = [];
92
- for (const file of newFilesObj) {
93
- fileContentPromises.push((0, get_file_content_1.downloadFileFromDrive)(context.auth, context.files, file["id"], file["name"]));
94
- }
95
- const filesContent = yield Promise.all(fileContentPromises);
96
- for (let i = 0; i < newFilesObj.length; i++) {
97
- newFilesObj[i].content = filesContent[i];
98
- }
99
- }
100
- return newFilesObj;
101
- });
102
- }
103
- //# sourceMappingURL=new-file.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"new-file.js","sourceRoot":"","sources":["../../../../src/lib/triggers/new-file.ts"],"names":[],"mappings":";;;;AAAA,qEAKwC;AACxC,qEAAiE;AACjE,+DAIqC;AAErC,0DAA0B;AAC1B,kCAA0C;AAC1C,sCAAmC;AACnC,iEAAmE;AAEnE,MAAM,OAAO,GAGT;IACF,QAAQ,EAAE,8BAAc,CAAC,SAAS;IAClC,KAAK,EAAE,KAA+C,EAAE,oDAA1C,EAAE,IAAI,EAAE,UAAU,EAAE,gBAAgB,EAAE;;QAClD,MAAM,aAAa,GACjB,MAAA,CAAC,MAAM,eAAM,CAAC,QAAQ,CAAC,IAAI,EAAE;YAC3B,MAAM,EAAE,UAAU,CAAC,YAAY;YAC/B,WAAW,EAAE,gBAAgB;YAC7B,gBAAgB,EAAE,UAAU,CAAC,mBAAmB;SACjD,CAAC,CAAC,mCAAI,EAAE,CAAC;QACZ,MAAM,KAAK,GAAG,aAAa,CAAC,GAAG,CAAC,CAAC,IAAS,EAAE,EAAE,CAAC,CAAC;YAC9C,iBAAiB,EAAE,IAAA,eAAK,EAAC,IAAI,CAAC,WAAW,CAAC,CAAC,OAAO,EAAE;YACpD,IAAI,EAAE,IAAI;SACX,CAAC,CAAC,CAAC;QACJ,OAAO,KAAK,CAAC;IACf,CAAC,CAAA;CACF,CAAC;AAEW,QAAA,OAA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W,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;gBAC5C,WAAW,CAAC,CAAC,CAAC,CAAC,OAAO,GAAG,YAAY,CAAC,CAAC,CAAC,CAAA;YAC1C,CAAC;QACH,CAAC;QACD,OAAO,WAAW,CAAA;IACpB,CAAC;CAAA"}
@@ -1,39 +0,0 @@
1
- import { TriggerStrategy } from '@activepieces/pieces-framework';
2
- export declare const newFolder: import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.WEBHOOK, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
3
- serviceAccount: import("@activepieces/pieces-framework").LongTextProperty<true>;
4
- userEmail: import("@activepieces/pieces-framework").ShortTextProperty<false>;
5
- }>)[], {
6
- parentFolder: import("@activepieces/pieces-framework").DropdownProperty<string, false, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
7
- serviceAccount: import("@activepieces/pieces-framework").LongTextProperty<true>;
8
- userEmail: import("@activepieces/pieces-framework").ShortTextProperty<false>;
9
- }>)[]>;
10
- include_team_drives: import("@activepieces/pieces-framework").CheckboxProperty<false>;
11
- }> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.POLLING, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
12
- serviceAccount: import("@activepieces/pieces-framework").LongTextProperty<true>;
13
- userEmail: import("@activepieces/pieces-framework").ShortTextProperty<false>;
14
- }>)[], {
15
- parentFolder: import("@activepieces/pieces-framework").DropdownProperty<string, false, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
16
- serviceAccount: import("@activepieces/pieces-framework").LongTextProperty<true>;
17
- userEmail: import("@activepieces/pieces-framework").ShortTextProperty<false>;
18
- }>)[]>;
19
- include_team_drives: import("@activepieces/pieces-framework").CheckboxProperty<false>;
20
- }> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.MANUAL, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
21
- serviceAccount: import("@activepieces/pieces-framework").LongTextProperty<true>;
22
- userEmail: import("@activepieces/pieces-framework").ShortTextProperty<false>;
23
- }>)[], {
24
- parentFolder: import("@activepieces/pieces-framework").DropdownProperty<string, false, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
25
- serviceAccount: import("@activepieces/pieces-framework").LongTextProperty<true>;
26
- userEmail: import("@activepieces/pieces-framework").ShortTextProperty<false>;
27
- }>)[]>;
28
- include_team_drives: import("@activepieces/pieces-framework").CheckboxProperty<false>;
29
- }> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.APP_WEBHOOK, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
30
- serviceAccount: import("@activepieces/pieces-framework").LongTextProperty<true>;
31
- userEmail: import("@activepieces/pieces-framework").ShortTextProperty<false>;
32
- }>)[], {
33
- parentFolder: import("@activepieces/pieces-framework").DropdownProperty<string, false, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
34
- serviceAccount: import("@activepieces/pieces-framework").LongTextProperty<true>;
35
- userEmail: import("@activepieces/pieces-framework").ShortTextProperty<false>;
36
- }>)[]>;
37
- include_team_drives: import("@activepieces/pieces-framework").CheckboxProperty<false>;
38
- }>;
39
- //# sourceMappingURL=new-folder.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"new-folder.d.ts","sourceRoot":"","sources":["../../../../src/lib/triggers/new-folder.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AA+BjE,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwCpB,CAAC"}
@@ -1,67 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.newFolder = void 0;
4
- const tslib_1 = require("tslib");
5
- const pieces_framework_1 = require("@activepieces/pieces-framework");
6
- const pieces_framework_2 = require("@activepieces/pieces-framework");
7
- const pieces_common_1 = require("@activepieces/pieces-common");
8
- const dayjs_1 = tslib_1.__importDefault(require("dayjs"));
9
- const auth_1 = require("../auth");
10
- const common_1 = require("../common");
11
- const polling = {
12
- strategy: pieces_common_1.DedupeStrategy.TIMEBASED,
13
- items: (_a) => tslib_1.__awaiter(void 0, [_a], void 0, function* ({ auth, propsValue, lastFetchEpochMS }) {
14
- var _b;
15
- const currentValues = (_b = (yield common_1.common.getFolders(auth, {
16
- parent: propsValue.parentFolder,
17
- createdTime: lastFetchEpochMS,
18
- includeTeamDrive: propsValue.include_team_drives
19
- }))) !== null && _b !== void 0 ? _b : [];
20
- const items = currentValues.map((item) => ({
21
- epochMilliSeconds: (0, dayjs_1.default)(item.createdTime).valueOf(),
22
- data: item,
23
- }));
24
- return items;
25
- }),
26
- };
27
- exports.newFolder = (0, pieces_framework_1.createTrigger)({
28
- auth: auth_1.googleDriveAuth,
29
- name: 'new_folder',
30
- displayName: 'New Folder',
31
- description: 'Trigger when a new folder is created or uploaded.',
32
- aiMetadata: {
33
- description: 'Fires when a new folder is created in Google Drive, optionally scoped to a specific parent folder. Each event represents one newly created folder and its metadata.',
34
- },
35
- props: {
36
- parentFolder: common_1.common.properties.parentFolder,
37
- include_team_drives: common_1.common.properties.include_team_drives,
38
- },
39
- type: pieces_framework_2.TriggerStrategy.POLLING,
40
- onEnable: (context) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
41
- yield pieces_common_1.pollingHelper.onEnable(polling, {
42
- auth: context.auth,
43
- store: context.store,
44
- propsValue: context.propsValue,
45
- });
46
- }),
47
- onDisable: (context) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
48
- yield pieces_common_1.pollingHelper.onDisable(polling, {
49
- auth: context.auth,
50
- store: context.store,
51
- propsValue: context.propsValue,
52
- });
53
- }),
54
- run: (context) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
55
- return yield pieces_common_1.pollingHelper.poll(polling, context);
56
- }),
57
- test: (context) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
58
- return yield pieces_common_1.pollingHelper.test(polling, context);
59
- }),
60
- sampleData: {
61
- kind: 'drive#file',
62
- mimeType: 'application/vnd.google-apps.folder',
63
- id: '1aMEtTqIYn5651wdK7WLxaK_SDim4mvXW',
64
- name: 'New Folder WOOOO',
65
- },
66
- });
67
- //# sourceMappingURL=new-folder.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"new-folder.js","sourceRoot":"","sources":["../../../../src/lib/triggers/new-folder.ts"],"names":[],"mappings":";;;;AAAA,qEAIwC;AACxC,qEAAiE;AACjE,+DAIqC;AAErC,0DAA0B;AAC1B,kCAA0C;AAC1C,sCAAmC;AAEnC,MAAM,OAAO,GAGT;IACF,QAAQ,EAAE,8BAAc,CAAC,SAAS;IAClC,KAAK,EAAE,KAA+C,EAAE,oDAA1C,EAAE,IAAI,EAAE,UAAU,EAAE,gBAAgB,EAAE;;QAClD,MAAM,aAAa,GACjB,MAAA,CAAC,MAAM,eAAM,CAAC,UAAU,CAAC,IAAI,EAAE;YAC7B,MAAM,EAAE,UAAU,CAAC,YAAY;YAC/B,WAAW,EAAE,gBAAgB;YAC7B,gBAAgB,EAAC,UAAU,CAAC,mBAAmB;SAChD,CAAC,CAAC,mCAAI,EAAE,CAAC;QACZ,MAAM,KAAK,GAAG,aAAa,CAAC,GAAG,CAAC,CAAC,IAAS,EAAE,EAAE,CAAC,CAAC;YAC9C,iBAAiB,EAAE,IAAA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