Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "google_docs-append-image",
name: "Append Image to Document",
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)",
version: "0.0.6",
version: "0.0.7",
type: "action",
props: {
googleDocs,
Expand Down
2 changes: 1 addition & 1 deletion components/google_docs/actions/append-text/append-text.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "google_docs-append-text",
name: "Append Text",
description: "Append text to an existing document. [See the documentation](https://developers.google.com/docs/api/reference/rest/v1/documents/request#InsertTextRequest)",
version: "0.1.5",
version: "0.1.6",
type: "action",
props: {
googleDocs,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default {
...others,
key: "google_docs-create-document-from-template",
name: "Create New Document From Template",
version: "0.0.1",
version: "0.0.2",
description,
type,
props: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "google_docs-create-document",
name: "Create a New Document",
description: "Create a new document. [See the documentation](https://developers.google.com/docs/api/reference/rest/v1/documents/create)",
version: "0.1.5",
version: "0.1.6",
type: "action",
props: {
googleDocs,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default {
...others,
key: "google_docs-find-document",
name: "Find Document",
version: "0.0.1",
version: "0.0.2",
description,
type,
props: {
Expand Down
11 changes: 9 additions & 2 deletions components/google_docs/actions/get-document/get-document.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "google_docs-get-document",
name: "Get Document",
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)",
version: "0.1.4",
version: "0.1.5",
type: "action",
props: {
googleDocs,
Expand All @@ -14,9 +14,16 @@ export default {
"docId",
],
},
includeTabsContent: {
type: "boolean",
label: "Include Tabs Content",
description: "Whether to populate the `Document.tabs` field instead of the text content fields like `body` and `documentStyle` on `Document`",
optional: true,
default: false,
},
},
async run({ $ }) {
const response = await this.googleDocs.getDocument(this.docId);
const response = await this.googleDocs.getDocument(this.docId, this.includeTabsContent);

$.export("$summary", `Successfully retrieved document with ID: ${this.docId}`);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "google_docs-replace-image",
name: "Replace Image",
description: "Replace image in a existing document. [See the documentation](https://developers.google.com/docs/api/reference/rest/v1/documents/request#ReplaceImageRequest)",
version: "0.0.6",
version: "0.0.7",
type: "action",
props: {
googleDocs,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "google_docs-replace-text",
name: "Replace Text",
description: "Replace all instances of matched text in an existing document. [See the documentation](https://developers.google.com/docs/api/reference/rest/v1/documents/request#ReplaceAllTextRequest)",
version: "0.0.6",
version: "0.0.7",
type: "action",
props: {
googleDocs,
Expand Down
7 changes: 5 additions & 2 deletions components/google_docs/google_docs.app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,14 @@ export default {
},
});
},
async getDocument(documentId) {
async getDocument(documentId, includeTabsContent = false) {
const { data } = await this.docs().documents.get({
documentId,
includeTabsContent,
});
const doc = utils.addTextContentToDocument(data);
const doc = includeTabsContent
? data
: utils.addTextContentToDocument(data);
return doc;
},
async createEmptyDoc(title) {
Expand Down
2 changes: 1 addition & 1 deletion components/google_docs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pipedream/google_docs",
"version": "0.4.2",
"version": "0.4.3",
"description": "Pipedream Google_docs Components",
"main": "google_docs.app.mjs",
"keywords": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
key: "google_docs-new-document-created",
name: "New Document Created (Instant)",
description: "Emit new event when a new document is created in Google Docs. [See the documentation](https://developers.google.com/drive/api/reference/rest/v3/changes/watch)",
version: "0.0.3",
version: "0.0.4",
type: "source",
dedupe: "unique",
methods: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default {
key: "google_docs-new-or-updated-document",
name: "New or Updated Document (Instant)",
description: "Emit new event when a document is created or updated in Google Docs. [See the documentation](https://developers.google.com/drive/api/reference/rest/v3/changes/watch)",
version: "0.0.3",
version: "0.0.4",
type: "source",
dedupe: "unique",
methods: {
Expand Down
8 changes: 0 additions & 8 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading