@activepieces/piece-dropbox 0.7.2 → 0.7.4
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 +7 -12
- package/src/index.js +13 -63
- package/src/index.d.ts +0 -2
- package/src/index.d.ts.map +0 -1
- package/src/index.js.map +0 -1
- package/src/lib/actions/copy-file.d.ts +0 -7
- package/src/lib/actions/copy-file.d.ts.map +0 -1
- package/src/lib/actions/copy-file.js +0 -63
- package/src/lib/actions/copy-file.js.map +0 -1
- package/src/lib/actions/copy-folder.d.ts +0 -7
- package/src/lib/actions/copy-folder.d.ts.map +0 -1
- package/src/lib/actions/copy-folder.js +0 -63
- package/src/lib/actions/copy-folder.js.map +0 -1
- package/src/lib/actions/create-new-folder.d.ts +0 -5
- package/src/lib/actions/create-new-folder.d.ts.map +0 -1
- package/src/lib/actions/create-new-folder.js +0 -53
- package/src/lib/actions/create-new-folder.js.map +0 -1
- package/src/lib/actions/create-new-text-file.d.ts +0 -8
- package/src/lib/actions/create-new-text-file.d.ts.map +0 -1
- package/src/lib/actions/create-new-text-file.js +0 -75
- package/src/lib/actions/create-new-text-file.js.map +0 -1
- package/src/lib/actions/delete-file.d.ts +0 -4
- package/src/lib/actions/delete-file.d.ts.map +0 -1
- package/src/lib/actions/delete-file.js +0 -43
- package/src/lib/actions/delete-file.js.map +0 -1
- package/src/lib/actions/delete-folder.d.ts +0 -4
- package/src/lib/actions/delete-folder.d.ts.map +0 -1
- package/src/lib/actions/delete-folder.js +0 -43
- package/src/lib/actions/delete-folder.js.map +0 -1
- package/src/lib/actions/download-file.d.ts +0 -4
- package/src/lib/actions/download-file.d.ts.map +0 -1
- package/src/lib/actions/download-file.js +0 -51
- package/src/lib/actions/download-file.js.map +0 -1
- package/src/lib/actions/get-file-link.d.ts +0 -4
- package/src/lib/actions/get-file-link.d.ts.map +0 -1
- package/src/lib/actions/get-file-link.js +0 -43
- package/src/lib/actions/get-file-link.js.map +0 -1
- package/src/lib/actions/list-a-folder.d.ts +0 -6
- package/src/lib/actions/list-a-folder.d.ts.map +0 -1
- package/src/lib/actions/list-a-folder.js +0 -56
- package/src/lib/actions/list-a-folder.js.map +0 -1
- package/src/lib/actions/move-file.d.ts +0 -7
- package/src/lib/actions/move-file.d.ts.map +0 -1
- package/src/lib/actions/move-file.js +0 -63
- package/src/lib/actions/move-file.js.map +0 -1
- package/src/lib/actions/move-folder.d.ts +0 -7
- package/src/lib/actions/move-folder.d.ts.map +0 -1
- package/src/lib/actions/move-folder.js +0 -63
- package/src/lib/actions/move-folder.js.map +0 -1
- package/src/lib/actions/search.d.ts +0 -12
- package/src/lib/actions/search.d.ts.map +0 -1
- package/src/lib/actions/search.js +0 -112
- package/src/lib/actions/search.js.map +0 -1
- package/src/lib/actions/upload-file.d.ts +0 -8
- package/src/lib/actions/upload-file.d.ts.map +0 -1
- package/src/lib/actions/upload-file.js +0 -73
- package/src/lib/actions/upload-file.js.map +0 -1
- package/src/lib/auth.d.ts +0 -2
- package/src/lib/auth.d.ts.map +0 -1
- package/src/lib/auth.js +0 -19
- package/src/lib/auth.js.map +0 -1
- package/src/lib/triggers/new-folder.d.ts +0 -15
- package/src/lib/triggers/new-folder.d.ts.map +0 -1
- package/src/lib/triggers/new-folder.js +0 -112
- package/src/lib/triggers/new-folder.js.map +0 -1
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.dropboxMoveFolder = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const pieces_common_1 = require("@activepieces/pieces-common");
|
|
7
|
-
const auth_1 = require("../auth");
|
|
8
|
-
exports.dropboxMoveFolder = (0, pieces_framework_1.createAction)({
|
|
9
|
-
auth: auth_1.dropboxAuth,
|
|
10
|
-
name: 'move_dropbox_folder',
|
|
11
|
-
description: 'Move a folder',
|
|
12
|
-
audience: 'both',
|
|
13
|
-
aiMetadata: { description: 'Moves (or renames) the folder at the source path, including its contents, to a new destination path within Dropbox; optionally autorenames on conflict. Use to relocate or rename an entire directory. Not idempotent: after a successful move the source no longer exists, so repeating the call fails or, with autorename, produces a differently named folder.', idempotent: false },
|
|
14
|
-
displayName: 'Move folder',
|
|
15
|
-
props: {
|
|
16
|
-
from_path: pieces_framework_1.Property.ShortText({
|
|
17
|
-
displayName: 'From Path',
|
|
18
|
-
description: 'The current path of the folder (e.g. /folder1/sourceFolder)',
|
|
19
|
-
required: true,
|
|
20
|
-
}),
|
|
21
|
-
to_path: pieces_framework_1.Property.ShortText({
|
|
22
|
-
displayName: 'To Path',
|
|
23
|
-
description: 'The new path for the folder (e.g. /folder2/destinationFolder)',
|
|
24
|
-
required: true,
|
|
25
|
-
}),
|
|
26
|
-
autorename: pieces_framework_1.Property.Checkbox({
|
|
27
|
-
displayName: 'Auto Rename',
|
|
28
|
-
description: "If there's a conflict, have the Dropbox server try to autorename the folder to avoid conflict.",
|
|
29
|
-
defaultValue: false,
|
|
30
|
-
required: false,
|
|
31
|
-
}),
|
|
32
|
-
allow_ownership_transfer: pieces_framework_1.Property.Checkbox({
|
|
33
|
-
displayName: 'Allow Ownership Transfer',
|
|
34
|
-
description: 'Allows moves by owner even if it would result in an ownership transfer.',
|
|
35
|
-
defaultValue: false,
|
|
36
|
-
required: false,
|
|
37
|
-
}),
|
|
38
|
-
},
|
|
39
|
-
run(context) {
|
|
40
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
41
|
-
const params = {
|
|
42
|
-
from_path: context.propsValue.from_path,
|
|
43
|
-
to_path: context.propsValue.to_path,
|
|
44
|
-
autorename: context.propsValue.autorename,
|
|
45
|
-
allow_ownership_transfer: context.propsValue.allow_ownership_transfer,
|
|
46
|
-
};
|
|
47
|
-
const result = yield pieces_common_1.httpClient.sendRequest({
|
|
48
|
-
method: pieces_common_1.HttpMethod.POST,
|
|
49
|
-
url: `https://api.dropboxapi.com/2/files/move_v2`,
|
|
50
|
-
headers: {
|
|
51
|
-
'Content-Type': 'application/json',
|
|
52
|
-
},
|
|
53
|
-
body: params,
|
|
54
|
-
authentication: {
|
|
55
|
-
type: pieces_common_1.AuthenticationType.BEARER_TOKEN,
|
|
56
|
-
token: context.auth.access_token,
|
|
57
|
-
},
|
|
58
|
-
});
|
|
59
|
-
return result.body;
|
|
60
|
-
});
|
|
61
|
-
},
|
|
62
|
-
});
|
|
63
|
-
//# sourceMappingURL=move-folder.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"move-folder.js","sourceRoot":"","sources":["../../../../src/lib/actions/move-folder.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,+DAIqC;AACrC,kCAAsC;AAEzB,QAAA,iBAAiB,GAAG,IAAA,+BAAY,EAAC;IAC5C,IAAI,EAAE,kBAAW;IACjB,IAAI,EAAE,qBAAqB;IAC3B,WAAW,EAAE,eAAe;IAC5B,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE,EAAE,WAAW,EAAE,mWAAmW,EAAE,UAAU,EAAE,KAAK,EAAE;IACnZ,WAAW,EAAE,aAAa;IAC1B,KAAK,EAAE;QACL,SAAS,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC5B,WAAW,EAAE,WAAW;YACxB,WAAW,EACT,6DAA6D;YAC/D,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,OAAO,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC1B,WAAW,EAAE,SAAS;YACtB,WAAW,EACT,+DAA+D;YACjE,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,UAAU,EAAE,2BAAQ,CAAC,QAAQ,CAAC;YAC5B,WAAW,EAAE,aAAa;YAC1B,WAAW,EACT,gGAAgG;YAClG,YAAY,EAAE,KAAK;YACnB,QAAQ,EAAE,KAAK;SAChB,CAAC;QACF,wBAAwB,EAAE,2BAAQ,CAAC,QAAQ,CAAC;YAC1C,WAAW,EAAE,0BAA0B;YACvC,WAAW,EACT,yEAAyE;YAC3E,YAAY,EAAE,KAAK;YACnB,QAAQ,EAAE,KAAK;SAChB,CAAC;KACH;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,MAAM,GAAG;gBACb,SAAS,EAAE,OAAO,CAAC,UAAU,CAAC,SAAS;gBACvC,OAAO,EAAE,OAAO,CAAC,UAAU,CAAC,OAAO;gBACnC,UAAU,EAAE,OAAO,CAAC,UAAU,CAAC,UAAU;gBACzC,wBAAwB,EAAE,OAAO,CAAC,UAAU,CAAC,wBAAwB;aACtE,CAAC;YAEF,MAAM,MAAM,GAAG,MAAM,0BAAU,CAAC,WAAW,CAAC;gBAC1C,MAAM,EAAE,0BAAU,CAAC,IAAI;gBACvB,GAAG,EAAE,4CAA4C;gBACjD,OAAO,EAAE;oBACP,cAAc,EAAE,kBAAkB;iBACnC;gBACD,IAAI,EAAE,MAAM;gBACZ,cAAc,EAAE;oBACd,IAAI,EAAE,kCAAkB,CAAC,YAAY;oBACrC,KAAK,EAAE,OAAO,CAAC,IAAI,CAAC,YAAY;iBACjC;aACF,CAAC,CAAC;YAEH,OAAO,MAAM,CAAC,IAAI,CAAC;QACrB,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export declare const dropboxSearch: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {
|
|
2
|
-
query: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
|
-
path: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
4
|
-
max_results: import("@activepieces/pieces-framework").NumberProperty<false>;
|
|
5
|
-
order_by: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
|
|
6
|
-
file_status: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
|
|
7
|
-
filename_only: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
8
|
-
file_extensions: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
9
|
-
file_categories: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
10
|
-
account_id: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
11
|
-
}>;
|
|
12
|
-
//# sourceMappingURL=search.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/search.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,aAAa;;;;;;;;;;EA4GxB,CAAC"}
|
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.dropboxSearch = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const pieces_common_1 = require("@activepieces/pieces-common");
|
|
7
|
-
const auth_1 = require("../auth");
|
|
8
|
-
exports.dropboxSearch = (0, pieces_framework_1.createAction)({
|
|
9
|
-
auth: auth_1.dropboxAuth,
|
|
10
|
-
name: 'search_dropbox',
|
|
11
|
-
description: 'Search for files and folders',
|
|
12
|
-
audience: 'both',
|
|
13
|
-
aiMetadata: { description: 'Searches a Dropbox account for files and folders whose name or content matches a query string (minimum 3 characters), optionally scoped to a path and filtered by file status, extensions, categories, or account. Use to locate items and obtain their paths/IDs before acting on them. Read-only; repeating the same search is safe and returns the same matches.', idempotent: true },
|
|
14
|
-
displayName: 'Search',
|
|
15
|
-
props: {
|
|
16
|
-
query: pieces_framework_1.Property.ShortText({
|
|
17
|
-
displayName: 'Query',
|
|
18
|
-
description: 'The search string. Must be at least 3 characters.',
|
|
19
|
-
required: true,
|
|
20
|
-
}),
|
|
21
|
-
path: pieces_framework_1.Property.ShortText({
|
|
22
|
-
displayName: 'Path',
|
|
23
|
-
description: 'The path to search in. If not specified, the search is performed from the root.',
|
|
24
|
-
required: false,
|
|
25
|
-
}),
|
|
26
|
-
max_results: pieces_framework_1.Property.Number({
|
|
27
|
-
displayName: 'Max Results',
|
|
28
|
-
description: 'The maximum number of search results to return (up to 1000). Default is 100 if not specified.',
|
|
29
|
-
required: false,
|
|
30
|
-
}),
|
|
31
|
-
order_by: pieces_framework_1.Property.StaticDropdown({
|
|
32
|
-
displayName: 'Order By',
|
|
33
|
-
description: 'Specified property of the order of search results.',
|
|
34
|
-
options: {
|
|
35
|
-
options: [
|
|
36
|
-
{ label: 'Relevance', value: 'relevance' },
|
|
37
|
-
{ label: 'Modified Time', value: 'modified_time' },
|
|
38
|
-
],
|
|
39
|
-
},
|
|
40
|
-
defaultValue: 'relevance',
|
|
41
|
-
required: false,
|
|
42
|
-
}),
|
|
43
|
-
file_status: pieces_framework_1.Property.StaticDropdown({
|
|
44
|
-
displayName: 'File Status',
|
|
45
|
-
description: 'Restricts search to the given file status.',
|
|
46
|
-
options: {
|
|
47
|
-
options: [
|
|
48
|
-
{ label: 'Active', value: 'active' },
|
|
49
|
-
{ label: 'Deleted', value: 'deleted' },
|
|
50
|
-
],
|
|
51
|
-
},
|
|
52
|
-
defaultValue: 'active',
|
|
53
|
-
required: false,
|
|
54
|
-
}),
|
|
55
|
-
filename_only: pieces_framework_1.Property.Checkbox({
|
|
56
|
-
displayName: 'Filename Only',
|
|
57
|
-
description: 'Restricts search to only match on filenames.',
|
|
58
|
-
defaultValue: false,
|
|
59
|
-
required: false,
|
|
60
|
-
}),
|
|
61
|
-
file_extensions: pieces_framework_1.Property.ShortText({
|
|
62
|
-
displayName: 'File Extensions',
|
|
63
|
-
description: 'Restricts search to only the extensions specified (comma-separated).',
|
|
64
|
-
required: false,
|
|
65
|
-
}),
|
|
66
|
-
file_categories: pieces_framework_1.Property.ShortText({
|
|
67
|
-
displayName: 'File Categories',
|
|
68
|
-
description: 'Restricts search to only the file categories specified (comma-separated).',
|
|
69
|
-
required: false,
|
|
70
|
-
}),
|
|
71
|
-
account_id: pieces_framework_1.Property.ShortText({
|
|
72
|
-
displayName: 'Account ID',
|
|
73
|
-
description: 'Restricts results to the given account id.',
|
|
74
|
-
required: false,
|
|
75
|
-
}),
|
|
76
|
-
},
|
|
77
|
-
run(context) {
|
|
78
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
79
|
-
const options = {
|
|
80
|
-
path: context.propsValue.path || '',
|
|
81
|
-
max_results: context.propsValue.max_results || 100,
|
|
82
|
-
file_status: context.propsValue.file_status,
|
|
83
|
-
filename_only: context.propsValue.filename_only,
|
|
84
|
-
file_extensions: context.propsValue.file_extensions
|
|
85
|
-
? context.propsValue.file_extensions.split(',')
|
|
86
|
-
: undefined,
|
|
87
|
-
file_categories: context.propsValue.file_categories
|
|
88
|
-
? context.propsValue.file_categories.split(',')
|
|
89
|
-
: undefined,
|
|
90
|
-
account_id: context.propsValue.account_id,
|
|
91
|
-
};
|
|
92
|
-
const requestBody = {
|
|
93
|
-
query: context.propsValue.query,
|
|
94
|
-
options: options,
|
|
95
|
-
};
|
|
96
|
-
const result = yield pieces_common_1.httpClient.sendRequest({
|
|
97
|
-
method: pieces_common_1.HttpMethod.POST,
|
|
98
|
-
url: `https://api.dropboxapi.com/2/files/search_v2`,
|
|
99
|
-
headers: {
|
|
100
|
-
'Content-Type': 'application/json',
|
|
101
|
-
},
|
|
102
|
-
body: requestBody,
|
|
103
|
-
authentication: {
|
|
104
|
-
type: pieces_common_1.AuthenticationType.BEARER_TOKEN,
|
|
105
|
-
token: context.auth.access_token,
|
|
106
|
-
},
|
|
107
|
-
});
|
|
108
|
-
return result.body;
|
|
109
|
-
});
|
|
110
|
-
},
|
|
111
|
-
});
|
|
112
|
-
//# sourceMappingURL=search.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"search.js","sourceRoot":"","sources":["../../../../src/lib/actions/search.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,+DAIqC;AACrC,kCAAsC;AAEzB,QAAA,aAAa,GAAG,IA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AU,CAAC,UAAU;aAC1C,CAAC;YAEF,MAAM,WAAW,GAAG;gBAClB,KAAK,EAAE,OAAO,CAAC,UAAU,CAAC,KAAK;gBAC/B,OAAO,EAAE,OAAO;aACjB,CAAC;YAEF,MAAM,MAAM,GAAG,MAAM,0BAAU,CAAC,WAAW,CAAC;gBAC1C,MAAM,EAAE,0BAAU,CAAC,IAAI;gBACvB,GAAG,EAAE,8CAA8C;gBACnD,OAAO,EAAE;oBACP,cAAc,EAAE,kBAAkB;iBACnC;gBACD,IAAI,EAAE,WAAW;gBACjB,cAAc,EAAE;oBACd,IAAI,EAAE,kCAAkB,CAAC,YAAY;oBACrC,KAAK,EAAE,OAAO,CAAC,IAAI,CAAC,YAAY;iBACjC;aACF,CAAC,CAAC;YAEH,OAAO,MAAM,CAAC,IAAI,CAAC;QACrB,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export declare const dropboxUploadFile: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {
|
|
2
|
-
path: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
|
-
file: import("@activepieces/pieces-framework").FileProperty<true>;
|
|
4
|
-
autorename: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
5
|
-
mute: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
6
|
-
strict_conflict: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
7
|
-
}>;
|
|
8
|
-
//# sourceMappingURL=upload-file.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"upload-file.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/upload-file.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,iBAAiB;;;;;;EAsE5B,CAAC"}
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.dropboxUploadFile = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const pieces_common_1 = require("@activepieces/pieces-common");
|
|
7
|
-
const auth_1 = require("../auth");
|
|
8
|
-
exports.dropboxUploadFile = (0, pieces_framework_1.createAction)({
|
|
9
|
-
auth: auth_1.dropboxAuth,
|
|
10
|
-
name: 'upload_dropbox_file',
|
|
11
|
-
description: 'Upload a file',
|
|
12
|
-
audience: 'both',
|
|
13
|
-
aiMetadata: { description: 'Uploads a file (provided as a URL or base64 file object) to the given Dropbox path in add mode. Use to store binary or arbitrary file content; prefer the create-text-file action when the source is plain text. Not idempotent: each call uploads, so repeating it can create autorenamed duplicates rather than overwriting.', idempotent: false },
|
|
14
|
-
displayName: 'Upload file',
|
|
15
|
-
props: {
|
|
16
|
-
path: pieces_framework_1.Property.ShortText({
|
|
17
|
-
displayName: 'Path',
|
|
18
|
-
description: 'The path where the file should be saved (e.g. /folder1/file.txt)',
|
|
19
|
-
required: true,
|
|
20
|
-
}),
|
|
21
|
-
file: pieces_framework_1.Property.File({
|
|
22
|
-
displayName: 'File',
|
|
23
|
-
description: 'The file URL or base64 to upload',
|
|
24
|
-
required: true,
|
|
25
|
-
}),
|
|
26
|
-
autorename: pieces_framework_1.Property.Checkbox({
|
|
27
|
-
displayName: 'Auto Rename',
|
|
28
|
-
description: "If there's a conflict, as determined by mode, have the Dropbox server try to autorename the file to avoid conflict.",
|
|
29
|
-
defaultValue: false,
|
|
30
|
-
required: false,
|
|
31
|
-
}),
|
|
32
|
-
mute: pieces_framework_1.Property.Checkbox({
|
|
33
|
-
displayName: 'Mute',
|
|
34
|
-
description: "Normally, users are made aware of any file modifications in their Dropbox account via notifications in the client software. If true, this tells the clients that this modification shouldn't result in a user notification.",
|
|
35
|
-
required: false,
|
|
36
|
-
}),
|
|
37
|
-
strict_conflict: pieces_framework_1.Property.Checkbox({
|
|
38
|
-
displayName: 'Strict conflict',
|
|
39
|
-
description: 'Be more strict about how each WriteMode detects conflict. For example, always return a conflict error when mode = WriteMode.update and the given "rev" doesn\'t match the existing file\'s "rev", even if the existing file has been deleted.',
|
|
40
|
-
required: false,
|
|
41
|
-
}),
|
|
42
|
-
},
|
|
43
|
-
run(context) {
|
|
44
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
45
|
-
const fileData = context.propsValue.file;
|
|
46
|
-
const params = {
|
|
47
|
-
autorename: context.propsValue.autorename,
|
|
48
|
-
path: context.propsValue.path,
|
|
49
|
-
mode: 'add',
|
|
50
|
-
mute: context.propsValue.mute,
|
|
51
|
-
strict_conflict: context.propsValue.strict_conflict,
|
|
52
|
-
};
|
|
53
|
-
const fileBuffer = Buffer.from(fileData.base64, 'base64');
|
|
54
|
-
// For information about Dropbox JSON encoding, see https://www.dropbox.com/developers/reference/json-encoding
|
|
55
|
-
const dropboxApiArg = JSON.stringify(params).replace(/[\u007f-\uffff]/g, (c) => '\\u' + ('000' + c.charCodeAt(0).toString(16)).slice(-4));
|
|
56
|
-
const result = yield pieces_common_1.httpClient.sendRequest({
|
|
57
|
-
method: pieces_common_1.HttpMethod.POST,
|
|
58
|
-
url: `https://content.dropboxapi.com/2/files/upload`,
|
|
59
|
-
body: fileBuffer,
|
|
60
|
-
headers: {
|
|
61
|
-
'Dropbox-API-Arg': dropboxApiArg,
|
|
62
|
-
'Content-Type': 'application/octet-stream',
|
|
63
|
-
},
|
|
64
|
-
authentication: {
|
|
65
|
-
type: pieces_common_1.AuthenticationType.BEARER_TOKEN,
|
|
66
|
-
token: context.auth.access_token,
|
|
67
|
-
},
|
|
68
|
-
});
|
|
69
|
-
return result.body;
|
|
70
|
-
});
|
|
71
|
-
},
|
|
72
|
-
});
|
|
73
|
-
//# sourceMappingURL=upload-file.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"upload-file.js","sourceRoot":"","sources":["../../../../src/lib/actions/upload-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;gBAC7B,IAAI,EAAE,KAAK;gBACX,IAAI,EAAE,OAAO,CAAC,UAAU,CAAC,IAAI;gBAC7B,eAAe,EAAE,OAAO,CAAC,UAAU,CAAC,eAAe;aACpD,CAAC;YAEF,MAAM,UAAU,GAAG,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;YAC1D,8GAA8G;YAC9G,MAAM,aAAa,GAAG,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,kBAAkB,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,KAAK,GAAC,CAAC,KAAK,GAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;YAEtI,MAAM,MAAM,GAAG,MAAM,0BAAU,CAAC,WAAW,CAAC;gBAC1C,MAAM,EAAE,0BAAU,CAAC,IAAI;gBACvB,GAAG,EAAE,+CAA+C;gBACpD,IAAI,EAAE,UAAU;gBAChB,OAAO,EAAE;oBACP,iBAAiB,EAAE,aAAa;oBAChC,cAAc,EAAE,0BAA0B;iBAC3C;gBACD,cAAc,EAAE;oBACd,IAAI,EAAE,kCAAkB,CAAC,YAAY;oBACrC,KAAK,EAAE,OAAO,CAAC,IAAI,CAAC,YAAY;iBACjC;aACF,CAAC,CAAC;YAEH,OAAO,MAAM,CAAC,IAAI,CAAC;QACrB,CAAC;KAAA;CACF,CAAC,CAAC"}
|
package/src/lib/auth.d.ts
DELETED
package/src/lib/auth.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../src/lib/auth.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW,+GAatB,CAAC"}
|
package/src/lib/auth.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.dropboxAuth = void 0;
|
|
4
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
5
|
-
exports.dropboxAuth = pieces_framework_1.PieceAuth.OAuth2({
|
|
6
|
-
description: '',
|
|
7
|
-
authUrl: 'https://www.dropbox.com/oauth2/authorize',
|
|
8
|
-
tokenUrl: 'https://api.dropboxapi.com/oauth2/token',
|
|
9
|
-
required: true,
|
|
10
|
-
// include token_access_type=offline as a parameter on Authorization URL in order to return a refresh_token
|
|
11
|
-
extra: { token_access_type: 'offline' },
|
|
12
|
-
scope: [
|
|
13
|
-
'files.metadata.write',
|
|
14
|
-
'files.metadata.read',
|
|
15
|
-
'files.content.write',
|
|
16
|
-
'files.content.read',
|
|
17
|
-
],
|
|
18
|
-
});
|
|
19
|
-
//# sourceMappingURL=auth.js.map
|
package/src/lib/auth.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"auth.js","sourceRoot":"","sources":["../../../src/lib/auth.ts"],"names":[],"mappings":";;;AAAA,qEAA2D;AAE9C,QAAA,WAAW,GAAG,4BAAS,CAAC,MAAM,CAAC;IAC1C,WAAW,EAAE,EAAE;IACf,OAAO,EAAE,0CAA0C;IACnD,QAAQ,EAAE,yCAAyC;IACnD,QAAQ,EAAE,IAAI;IACd,2GAA2G;IAC3G,KAAK,EAAE,EAAE,iBAAiB,EAAE,SAAS,EAAE;IACvC,KAAK,EAAE;QACL,sBAAsB;QACtB,qBAAqB;QACrB,qBAAqB;QACrB,oBAAoB;KACrB;CACF,CAAC,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { TriggerStrategy } from '@activepieces/pieces-framework';
|
|
2
|
-
export declare const dropboxNewFolder: import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.WEBHOOK, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {
|
|
3
|
-
path: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
4
|
-
recursive: 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
|
-
path: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
7
|
-
recursive: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
8
|
-
}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.MANUAL, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {
|
|
9
|
-
path: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
10
|
-
recursive: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
11
|
-
}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.APP_WEBHOOK, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {
|
|
12
|
-
path: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
13
|
-
recursive: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
14
|
-
}>;
|
|
15
|
-
//# 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":"AAAA,OAAO,EAGL,eAAe,EAChB,MAAM,gCAAgC,CAAC;AA8FxC,eAAO,MAAM,gBAAgB;;;;;;;;;;;;EAoE3B,CAAC"}
|
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.dropboxNewFolder = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const pieces_common_1 = require("@activepieces/pieces-common");
|
|
7
|
-
const auth_1 = require("../auth");
|
|
8
|
-
// Returns the latest cursor for a folder without fetching any entries.
|
|
9
|
-
// Designed for apps that only need to know about new changes going forward.
|
|
10
|
-
const getLatestCursor = (accessToken, path, recursive) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
11
|
-
const res = yield pieces_common_1.httpClient.sendRequest({
|
|
12
|
-
method: pieces_common_1.HttpMethod.POST,
|
|
13
|
-
url: 'https://api.dropboxapi.com/2/files/list_folder/get_latest_cursor',
|
|
14
|
-
headers: { 'Content-Type': 'application/json' },
|
|
15
|
-
body: { path, recursive, include_deleted: false },
|
|
16
|
-
authentication: {
|
|
17
|
-
type: pieces_common_1.AuthenticationType.BEARER_TOKEN,
|
|
18
|
-
token: accessToken,
|
|
19
|
-
},
|
|
20
|
-
});
|
|
21
|
-
return res.body.cursor;
|
|
22
|
-
});
|
|
23
|
-
// Calls list_folder/continue with a stored cursor and returns all new folder entries,
|
|
24
|
-
// plus the updated cursor to store for the next poll.
|
|
25
|
-
const getChangedFolders = (accessToken, cursor) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
26
|
-
const folders = [];
|
|
27
|
-
let currentCursor = cursor;
|
|
28
|
-
let hasMore = true;
|
|
29
|
-
while (hasMore) {
|
|
30
|
-
const res = yield pieces_common_1.httpClient.sendRequest({
|
|
31
|
-
method: pieces_common_1.HttpMethod.POST,
|
|
32
|
-
url: 'https://api.dropboxapi.com/2/files/list_folder/continue',
|
|
33
|
-
headers: { 'Content-Type': 'application/json' },
|
|
34
|
-
body: { cursor: currentCursor },
|
|
35
|
-
authentication: {
|
|
36
|
-
type: pieces_common_1.AuthenticationType.BEARER_TOKEN,
|
|
37
|
-
token: accessToken,
|
|
38
|
-
},
|
|
39
|
-
});
|
|
40
|
-
const newFolders = res.body.entries.filter((e) => e['.tag'] === 'folder');
|
|
41
|
-
folders.push(...newFolders);
|
|
42
|
-
currentCursor = res.body.cursor;
|
|
43
|
-
hasMore = res.body.has_more;
|
|
44
|
-
}
|
|
45
|
-
return { folders, newCursor: currentCursor };
|
|
46
|
-
});
|
|
47
|
-
// Fetches recent folder entries for test mode — returns up to 5.
|
|
48
|
-
const listRecentFolders = (accessToken, path, recursive) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
49
|
-
const res = yield pieces_common_1.httpClient.sendRequest({
|
|
50
|
-
method: pieces_common_1.HttpMethod.POST,
|
|
51
|
-
url: 'https://api.dropboxapi.com/2/files/list_folder',
|
|
52
|
-
headers: { 'Content-Type': 'application/json' },
|
|
53
|
-
body: { path, recursive, include_deleted: false, limit: 100 },
|
|
54
|
-
authentication: {
|
|
55
|
-
type: pieces_common_1.AuthenticationType.BEARER_TOKEN,
|
|
56
|
-
token: accessToken,
|
|
57
|
-
},
|
|
58
|
-
});
|
|
59
|
-
return res.body.entries.filter((e) => e['.tag'] === 'folder').slice(0, 5);
|
|
60
|
-
});
|
|
61
|
-
exports.dropboxNewFolder = (0, pieces_framework_1.createTrigger)({
|
|
62
|
-
auth: auth_1.dropboxAuth,
|
|
63
|
-
name: 'new_folder',
|
|
64
|
-
displayName: 'New Folder',
|
|
65
|
-
description: 'Triggers when a new folder is created inside a watched Dropbox folder.',
|
|
66
|
-
aiMetadata: {
|
|
67
|
-
description: 'Fires when a new folder appears inside the watched Dropbox folder path, detected by polling the folder for changes since the last cursor. Each fired event represents one newly created folder; enable recursive watching to also detect folders created within subfolders.',
|
|
68
|
-
},
|
|
69
|
-
type: pieces_framework_1.TriggerStrategy.POLLING,
|
|
70
|
-
props: {
|
|
71
|
-
path: pieces_framework_1.Property.ShortText({
|
|
72
|
-
displayName: 'Watched Folder Path',
|
|
73
|
-
description: 'Folder path to watch. Use empty string "" for root.',
|
|
74
|
-
required: true,
|
|
75
|
-
defaultValue: '',
|
|
76
|
-
}),
|
|
77
|
-
recursive: pieces_framework_1.Property.Checkbox({
|
|
78
|
-
displayName: 'Recursive',
|
|
79
|
-
description: 'Watch subfolders recursively. May return many results.',
|
|
80
|
-
required: false,
|
|
81
|
-
defaultValue: false,
|
|
82
|
-
}),
|
|
83
|
-
},
|
|
84
|
-
sampleData: {
|
|
85
|
-
'.tag': 'folder',
|
|
86
|
-
name: 'Project Docs',
|
|
87
|
-
id: 'id:a4ayc_80_OEAAAAAAAAAXw',
|
|
88
|
-
path_display: '/Work/Project Docs',
|
|
89
|
-
path_lower: '/work/project docs',
|
|
90
|
-
},
|
|
91
|
-
onEnable: (context) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
92
|
-
var _a;
|
|
93
|
-
const cursor = yield getLatestCursor(context.auth.access_token, context.propsValue.path || '', (_a = context.propsValue.recursive) !== null && _a !== void 0 ? _a : false);
|
|
94
|
-
yield context.store.put('cursor', cursor);
|
|
95
|
-
}),
|
|
96
|
-
onDisable: (context) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
97
|
-
yield context.store.delete('cursor');
|
|
98
|
-
}),
|
|
99
|
-
run: (context) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
100
|
-
const cursor = yield context.store.get('cursor');
|
|
101
|
-
if (!cursor)
|
|
102
|
-
return [];
|
|
103
|
-
const { folders, newCursor } = yield getChangedFolders(context.auth.access_token, cursor);
|
|
104
|
-
yield context.store.put('cursor', newCursor);
|
|
105
|
-
return folders;
|
|
106
|
-
}),
|
|
107
|
-
test: (context) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
108
|
-
var _a;
|
|
109
|
-
return listRecentFolders(context.auth.access_token, context.propsValue.path || '', (_a = context.propsValue.recursive) !== null && _a !== void 0 ? _a : false);
|
|
110
|
-
}),
|
|
111
|
-
});
|
|
112
|
-
//# 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;AAExC,+DAIqC;AACrC,kCAAsC;AAgB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