@frogbotai/piece-dropbox 0.27.0 → 0.29.0
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/dist/actions/customApiCall.d.ts +23 -72
- package/dist/actions/customApiCall.d.ts.map +1 -1
- package/dist/actions/customApiCall.js +3 -2
- package/dist/actions/customApiCall.js.map +1 -1
- package/dist/actions/files.d.ts +469 -556
- package/dist/actions/files.d.ts.map +1 -1
- package/dist/actions/files.js +15 -14
- package/dist/actions/files.js.map +1 -1
- package/dist/actions/list.d.ts +168 -202
- package/dist/actions/list.d.ts.map +1 -1
- package/dist/actions/list.js +5 -4
- package/dist/actions/list.js.map +1 -1
- package/dist/client.d.ts +0 -2
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js.map +1 -1
- package/dist/define.d.ts +43 -0
- package/dist/define.d.ts.map +1 -0
- package/dist/define.js +3 -0
- package/dist/define.js.map +1 -0
- package/dist/index.d.ts +744 -909
- package/dist/index.d.ts.map +1 -1
- package/dist/triggers/newFolder.d.ts +22 -14
- package/dist/triggers/newFolder.d.ts.map +1 -1
- package/dist/triggers/newFolder.js +5 -4
- package/dist/triggers/newFolder.js.map +1 -1
- package/package.json +3 -3
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAiBxB,OAAO,EACL,mBAAmB,EAGnB,KAAK,aAAa,EACnB,MAAM,aAAa,CAAC;AAGrB,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,eAAO,MAAM,cAAc,UAe1B,CAAC;AACF,eAAO,MAAM,aAAa,UAKzB,CAAC;AAQF,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;C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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2BxB,CAAC"}
|
|
@@ -1,28 +1,35 @@
|
|
|
1
|
-
import type { PieceRunArgs } from 'frogbot/pieces';
|
|
2
1
|
import { z } from 'zod';
|
|
3
|
-
import type { DropboxClient } from '../client.js';
|
|
4
|
-
declare const inputSchema: z.ZodObject<{
|
|
5
|
-
path: z.ZodDefault<z.ZodString>;
|
|
6
|
-
recursive: z.ZodDefault<z.ZodBoolean>;
|
|
7
|
-
}, z.core.$strip>;
|
|
8
2
|
export declare const newFolder: {
|
|
9
3
|
slug: string;
|
|
4
|
+
label?: string;
|
|
10
5
|
description: string;
|
|
11
|
-
type: "polling";
|
|
12
|
-
schedule: string;
|
|
13
6
|
input: z.ZodObject<{
|
|
14
7
|
path: z.ZodDefault<z.ZodString>;
|
|
15
8
|
recursive: z.ZodDefault<z.ZodBoolean>;
|
|
16
9
|
}, z.core.$strip>;
|
|
17
|
-
output
|
|
10
|
+
output?: z.ZodObject<{
|
|
18
11
|
'.tag': z.ZodLiteral<"folder">;
|
|
19
12
|
name: z.ZodString;
|
|
20
13
|
id: z.ZodString;
|
|
21
14
|
path_lower: z.ZodOptional<z.ZodString>;
|
|
22
15
|
path_display: z.ZodOptional<z.ZodString>;
|
|
23
|
-
}, z.core.$catchall<z.ZodJSONSchema
|
|
24
|
-
|
|
25
|
-
|
|
16
|
+
}, z.core.$catchall<z.ZodJSONSchema>> | undefined;
|
|
17
|
+
sample?: {
|
|
18
|
+
[x: string]: z.core.util.JSONType;
|
|
19
|
+
'.tag': "folder";
|
|
20
|
+
name: string;
|
|
21
|
+
id: string;
|
|
22
|
+
path_lower?: string | undefined;
|
|
23
|
+
path_display?: string | undefined;
|
|
24
|
+
} | undefined;
|
|
25
|
+
} & {
|
|
26
|
+
type: "polling";
|
|
27
|
+
schedule?: string;
|
|
28
|
+
run(args: import("frogbot").PieceRunArgs<{
|
|
29
|
+
path: string;
|
|
30
|
+
recursive: boolean;
|
|
31
|
+
}, Record<string, never>, import("../client.js").DropboxClient> & {
|
|
32
|
+
cursor?: import("frogbot").PieceJSON | undefined;
|
|
26
33
|
}): Promise<{
|
|
27
34
|
events: {
|
|
28
35
|
[x: string]: z.core.util.JSONType;
|
|
@@ -32,8 +39,9 @@ export declare const newFolder: {
|
|
|
32
39
|
path_lower?: string | undefined;
|
|
33
40
|
path_display?: string | undefined;
|
|
34
41
|
}[];
|
|
35
|
-
cursor
|
|
42
|
+
cursor?: import("frogbot").PieceJSON | undefined;
|
|
36
43
|
}>;
|
|
44
|
+
} & {
|
|
45
|
+
slug: "newFolder";
|
|
37
46
|
};
|
|
38
|
-
export {};
|
|
39
47
|
//# sourceMappingURL=newFolder.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"newFolder.d.ts","sourceRoot":"","sources":["../../src/triggers/newFolder.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"newFolder.d.ts","sourceRoot":"","sources":["../../src/triggers/newFolder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAiBxB,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2CpB,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { definePollingTrigger } from '../define.js';
|
|
2
3
|
import { folderMetadata } from '../schemas.js';
|
|
3
4
|
const inputSchema = z.object({
|
|
4
5
|
path: z.string().default(''),
|
|
@@ -10,15 +11,15 @@ const pageSchema = z.object({
|
|
|
10
11
|
cursor: cursorSchema,
|
|
11
12
|
has_more: z.boolean(),
|
|
12
13
|
});
|
|
13
|
-
export const newFolder = {
|
|
14
|
+
export const newFolder = definePollingTrigger({
|
|
14
15
|
slug: 'newFolder',
|
|
15
16
|
description: 'Emit folders created inside a watched Dropbox folder.',
|
|
16
17
|
type: 'polling',
|
|
17
18
|
schedule: '*/5 * * * *',
|
|
18
19
|
input: inputSchema,
|
|
19
20
|
output: folderMetadata,
|
|
20
|
-
async run({ client, input, cursor, req
|
|
21
|
-
if (!cursor) {
|
|
21
|
+
async run({ client, input, cursor, req }) {
|
|
22
|
+
if (typeof cursor !== 'string' || !cursor) {
|
|
22
23
|
const initial = await client.rpc('files/list_folder/get_latest_cursor', { path: input.path, recursive: input.recursive, include_deleted: false }, z.object({ cursor: cursorSchema }), req.signal ?? undefined);
|
|
23
24
|
return { events: [], cursor: initial.cursor };
|
|
24
25
|
}
|
|
@@ -37,5 +38,5 @@ export const newFolder = {
|
|
|
37
38
|
}
|
|
38
39
|
return { events, cursor: nextCursor };
|
|
39
40
|
},
|
|
40
|
-
};
|
|
41
|
+
});
|
|
41
42
|
//# sourceMappingURL=newFolder.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"newFolder.js","sourceRoot":"","sources":["../../src/triggers/newFolder.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"newFolder.js","sourceRoot":"","sources":["../../src/triggers/newFolder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAE/C,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3B,IAAI,E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AAG,MAAM,CAAC;QACxB,IAAI,OAAO,GAAG,IAAI,CAAC;QAEnB,OAAO,OAAO,EAAE,CAAC;YACf,MAAM,IAAI,GAAG,MAAM,MAAM,CAAC,GAAG,CAC3B,4BAA4B,EAC5B,EAAE,MAAM,EAAE,UAAU,EAAE,EACtB,UAAU,EACV,GAAG,CAAC,MAAM,IAAI,SAAS,CACxB,CAAC;YAEF,KAAK,MAAM,KAAK,IAAI,IAAI,CAAC,OAAO,EAAE,CAAC;gBACjC,MAAM,MAAM,GAAG,cAAc,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;gBAE/C,IAAI,MAAM,CAAC,OAAO;oBAAE,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;YAC/C,CAAC;YAED,UAAU,GAAG,IAAI,CAAC,MAAM,CAAC;YACzB,OAAO,GAAG,IAAI,CAAC,QAAQ,CAAC;QAC1B,CAAC;QAED,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC;IACxC,CAAC;CACF,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frogbotai/piece-dropbox",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.29.0",
|
|
4
4
|
"description": "Dropbox tools for FrogBot.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Colby Gilbert",
|
|
@@ -22,11 +22,11 @@
|
|
|
22
22
|
},
|
|
23
23
|
"sideEffects": false,
|
|
24
24
|
"peerDependencies": {
|
|
25
|
-
"frogbot": "0.
|
|
25
|
+
"frogbot": "0.29.0"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"typescript": "5.6.2",
|
|
29
|
-
"frogbot": "0.
|
|
29
|
+
"frogbot": "0.29.0"
|
|
30
30
|
},
|
|
31
31
|
"publishConfig": {
|
|
32
32
|
"access": "public"
|