Skip to content

Commit fcbe342

Browse files
authored
Merge branch 'master' into issue-13302
2 parents f386b34 + 4e6a586 commit fcbe342

File tree

111 files changed

+4771
-254
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

111 files changed

+4771
-254
lines changed

components/adobe_document_generation_api/adobe_document_generation_api.app.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ export default {
88
console.log(Object.keys(this.$auth));
99
},
1010
},
11-
};
11+
};

components/browserbase/browserbase.app.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ export default {
88
console.log(Object.keys(this.$auth));
99
},
1010
},
11-
};
11+
};
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
export default {
2+
type: "app",
3+
app: "buysellads",
4+
propDefinitions: {},
5+
methods: {
6+
// this.$auth contains connected account data
7+
authKeys() {
8+
console.log(Object.keys(this.$auth));
9+
},
10+
},
11+
};

components/buysellads/package.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"name": "@pipedream/buysellads",
3+
"version": "0.0.1",
4+
"description": "Pipedream BuySellAds Components",
5+
"main": "buysellads.app.mjs",
6+
"keywords": [
7+
"pipedream",
8+
"buysellads"
9+
],
10+
"homepage": "https://pipedream.com/apps/buysellads",
11+
"author": "Pipedream <[email protected]> (https://pipedream.com/)",
12+
"publishConfig": {
13+
"access": "public"
14+
}
15+
}

components/google_docs/actions/append-image/append-image.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
key: "google_docs-append-image",
55
name: "Append Image to Document",
66
description: "Appends an image to the end of a document. [See the documentation](https://developers.google.com/docs/api/reference/rest/v1/documents/request#InsertInlineImageRequest)",
7-
version: "0.0.5",
7+
version: "0.0.6",
88
type: "action",
99
props: {
1010
googleDocs,

components/google_docs/actions/append-text/append-text.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
key: "google_docs-append-text",
55
name: "Append Text",
66
description: "Append text to an existing document. [See the documentation](https://developers.google.com/docs/api/reference/rest/v1/documents/request#InsertTextRequest)",
7-
version: "0.1.4",
7+
version: "0.1.5",
88
type: "action",
99
props: {
1010
googleDocs,
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
import app from "../../google_docs.app.mjs";
2+
import common from "@pipedream/google_drive/actions/create-file-from-template/create-file-from-template.mjs";
3+
4+
import utils from "../../common/utils.mjs";
5+
6+
const {
7+
// eslint-disable-next-line no-unused-vars
8+
name, description, type, ...others
9+
} = common;
10+
const props = utils.adjustPropDefinitions(others.props, app);
11+
12+
export default {
13+
...others,
14+
key: "google_docs-create-document-from-template",
15+
name: "Create New Document From Template",
16+
version: "0.0.1",
17+
description,
18+
type,
19+
props: {
20+
googleDrive: app,
21+
...props,
22+
templateId: {
23+
propDefinition: [
24+
app,
25+
"docId",
26+
],
27+
label: "Template",
28+
description:
29+
"Select the template document you'd like to use as the template, or use a custom expression to reference a document ID from a previous step. Template documents should contain placeholders in the format `{{xyz}}`.",
30+
},
31+
},
32+
};

components/google_docs/actions/create-document/create-document.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
key: "google_docs-create-document",
55
name: "Create a New Document",
66
description: "Create a new document. [See the documentation](https://developers.google.com/docs/api/reference/rest/v1/documents/create)",
7-
version: "0.1.4",
7+
version: "0.1.5",
88
type: "action",
99
props: {
1010
googleDocs,
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
import app from "../../google_docs.app.mjs";
2+
import common from "@pipedream/google_drive/actions/find-file/find-file.mjs";
3+
import { getListFilesOpts } from "@pipedream/google_drive/common/utils.mjs";
4+
5+
import utils from "../../common/utils.mjs";
6+
7+
const {
8+
// eslint-disable-next-line no-unused-vars
9+
name, description, type, ...others
10+
} = common;
11+
const props = utils.adjustPropDefinitions(others.props, app);
12+
13+
export default {
14+
...others,
15+
key: "google_docs-find-document",
16+
name: "Find Document",
17+
version: "0.0.1",
18+
description,
19+
type,
20+
props: {
21+
googleDrive: app,
22+
...props,
23+
},
24+
async run({ $ }) {
25+
const q = this.getQuery();
26+
const opts = getListFilesOpts(this.drive, {
27+
q,
28+
});
29+
const files = (await this.googleDrive.listFilesInPage(null, opts)).files?.filter(({ mimeType }) => mimeType === "application/vnd.google-apps.document") || [];
30+
31+
$.export("$summary", `Successfully found ${files.length} file${files.length === 1
32+
? ""
33+
: "s"} with the query "${q}"`);
34+
return files;
35+
},
36+
};

components/google_docs/actions/get-document/get-document.mjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
key: "google_docs-get-document",
55
name: "Get Document",
66
description: "Get the contents of the latest version of a document. [See the documentation](https://developers.google.com/docs/api/reference/rest/v1/documents/get)",
7-
version: "0.1.3",
7+
version: "0.1.4",
88
type: "action",
99
props: {
1010
googleDocs,
@@ -17,7 +17,9 @@ export default {
1717
},
1818
async run({ $ }) {
1919
const response = await this.googleDocs.getDocument(this.docId);
20+
2021
$.export("$summary", `Successfully retrieved document with ID: ${this.docId}`);
22+
2123
return response;
2224
},
2325
};

0 commit comments

Comments
 (0)