@divyacon/piece-google-docs 0.0.0-stage → 0.1.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.
Files changed (243) hide show
  1. package/LICENSE.MIT-AP +24 -0
  2. package/dist/index.d.ts +6 -0
  3. package/dist/index.d.ts.map +1 -0
  4. package/dist/index.js +128 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/lib/actions/append-text.d.ts +8 -0
  7. package/dist/lib/actions/append-text.d.ts.map +1 -0
  8. package/dist/lib/actions/append-text.js +40 -0
  9. package/dist/lib/actions/append-text.js.map +1 -0
  10. package/dist/lib/actions/batch-update.action.d.ts +8 -0
  11. package/dist/lib/actions/batch-update.action.d.ts.map +1 -0
  12. package/dist/lib/actions/batch-update.action.js +63 -0
  13. package/dist/lib/actions/batch-update.action.js.map +1 -0
  14. package/dist/lib/actions/copy-document.action.d.ts +12 -0
  15. package/dist/lib/actions/copy-document.action.d.ts.map +1 -0
  16. package/dist/lib/actions/copy-document.action.js +72 -0
  17. package/dist/lib/actions/copy-document.action.js.map +1 -0
  18. package/dist/lib/actions/create-and-populate-table.action.d.ts +8 -0
  19. package/dist/lib/actions/create-and-populate-table.action.d.ts.map +1 -0
  20. package/dist/lib/actions/create-and-populate-table.action.js +138 -0
  21. package/dist/lib/actions/create-and-populate-table.action.js.map +1 -0
  22. package/dist/lib/actions/create-document-based-on-template.action.d.ts +10 -0
  23. package/dist/lib/actions/create-document-based-on-template.action.d.ts.map +1 -0
  24. package/dist/lib/actions/create-document-based-on-template.action.js +107 -0
  25. package/dist/lib/actions/create-document-based-on-template.action.js.map +1 -0
  26. package/dist/lib/actions/create-document-from-markdown.action.d.ts +8 -0
  27. package/dist/lib/actions/create-document-from-markdown.action.d.ts.map +1 -0
  28. package/dist/lib/actions/create-document-from-markdown.action.js +69 -0
  29. package/dist/lib/actions/create-document-from-markdown.action.js.map +1 -0
  30. package/dist/lib/actions/create-document.d.ts +8 -0
  31. package/dist/lib/actions/create-document.d.ts.map +1 -0
  32. package/dist/lib/actions/create-document.js +35 -0
  33. package/dist/lib/actions/create-document.js.map +1 -0
  34. package/dist/lib/actions/create-footer.action.d.ts +8 -0
  35. package/dist/lib/actions/create-footer.action.d.ts.map +1 -0
  36. package/dist/lib/actions/create-footer.action.js +66 -0
  37. package/dist/lib/actions/create-footer.action.js.map +1 -0
  38. package/dist/lib/actions/create-footnote.action.d.ts +8 -0
  39. package/dist/lib/actions/create-footnote.action.d.ts.map +1 -0
  40. package/dist/lib/actions/create-footnote.action.js +58 -0
  41. package/dist/lib/actions/create-footnote.action.js.map +1 -0
  42. package/dist/lib/actions/create-header.action.d.ts +8 -0
  43. package/dist/lib/actions/create-header.action.d.ts.map +1 -0
  44. package/dist/lib/actions/create-header.action.js +66 -0
  45. package/dist/lib/actions/create-header.action.js.map +1 -0
  46. package/dist/lib/actions/create-named-range.action.d.ts +10 -0
  47. package/dist/lib/actions/create-named-range.action.d.ts.map +1 -0
  48. package/dist/lib/actions/create-named-range.action.js +74 -0
  49. package/dist/lib/actions/create-named-range.action.js.map +1 -0
  50. package/dist/lib/actions/create-paragraph-bullets.action.d.ts +10 -0
  51. package/dist/lib/actions/create-paragraph-bullets.action.d.ts.map +1 -0
  52. package/dist/lib/actions/create-paragraph-bullets.action.js +98 -0
  53. package/dist/lib/actions/create-paragraph-bullets.action.js.map +1 -0
  54. package/dist/lib/actions/create-text-document.action.d.ts +8 -0
  55. package/dist/lib/actions/create-text-document.action.d.ts.map +1 -0
  56. package/dist/lib/actions/create-text-document.action.js +42 -0
  57. package/dist/lib/actions/create-text-document.action.js.map +1 -0
  58. package/dist/lib/actions/delete-content-range.action.d.ts +9 -0
  59. package/dist/lib/actions/delete-content-range.action.d.ts.map +1 -0
  60. package/dist/lib/actions/delete-content-range.action.js +64 -0
  61. package/dist/lib/actions/delete-content-range.action.js.map +1 -0
  62. package/dist/lib/actions/delete-footer.action.d.ts +8 -0
  63. package/dist/lib/actions/delete-footer.action.d.ts.map +1 -0
  64. package/dist/lib/actions/delete-footer.action.js +56 -0
  65. package/dist/lib/actions/delete-footer.action.js.map +1 -0
  66. package/dist/lib/actions/delete-header.action.d.ts +8 -0
  67. package/dist/lib/actions/delete-header.action.d.ts.map +1 -0
  68. package/dist/lib/actions/delete-header.action.js +56 -0
  69. package/dist/lib/actions/delete-header.action.js.map +1 -0
  70. package/dist/lib/actions/delete-named-range.action.d.ts +9 -0
  71. package/dist/lib/actions/delete-named-range.action.d.ts.map +1 -0
  72. package/dist/lib/actions/delete-named-range.action.js +69 -0
  73. package/dist/lib/actions/delete-named-range.action.js.map +1 -0
  74. package/dist/lib/actions/delete-paragraph-bullets.action.d.ts +9 -0
  75. package/dist/lib/actions/delete-paragraph-bullets.action.d.ts.map +1 -0
  76. package/dist/lib/actions/delete-paragraph-bullets.action.js +66 -0
  77. package/dist/lib/actions/delete-paragraph-bullets.action.js.map +1 -0
  78. package/dist/lib/actions/delete-table-column.action.d.ts +10 -0
  79. package/dist/lib/actions/delete-table-column.action.d.ts.map +1 -0
  80. package/dist/lib/actions/delete-table-column.action.js +72 -0
  81. package/dist/lib/actions/delete-table-column.action.js.map +1 -0
  82. package/dist/lib/actions/delete-table-row.action.d.ts +10 -0
  83. package/dist/lib/actions/delete-table-row.action.d.ts.map +1 -0
  84. package/dist/lib/actions/delete-table-row.action.js +72 -0
  85. package/dist/lib/actions/delete-table-row.action.js.map +1 -0
  86. package/dist/lib/actions/export-as-pdf.action.d.ts +7 -0
  87. package/dist/lib/actions/export-as-pdf.action.d.ts.map +1 -0
  88. package/dist/lib/actions/export-as-pdf.action.js +61 -0
  89. package/dist/lib/actions/export-as-pdf.action.js.map +1 -0
  90. package/dist/lib/actions/find-document.d.ts +16 -0
  91. package/dist/lib/actions/find-document.d.ts.map +1 -0
  92. package/dist/lib/actions/find-document.js +127 -0
  93. package/dist/lib/actions/find-document.js.map +1 -0
  94. package/dist/lib/actions/get-document-end-index.action.d.ts +7 -0
  95. package/dist/lib/actions/get-document-end-index.action.d.ts.map +1 -0
  96. package/dist/lib/actions/get-document-end-index.action.js +54 -0
  97. package/dist/lib/actions/get-document-end-index.action.js.map +1 -0
  98. package/dist/lib/actions/get-document-plaintext.action.d.ts +7 -0
  99. package/dist/lib/actions/get-document-plaintext.action.d.ts.map +1 -0
  100. package/dist/lib/actions/get-document-plaintext.action.js +76 -0
  101. package/dist/lib/actions/get-document-plaintext.action.js.map +1 -0
  102. package/dist/lib/actions/get-document.action.d.ts +7 -0
  103. package/dist/lib/actions/get-document.action.d.ts.map +1 -0
  104. package/dist/lib/actions/get-document.action.js +45 -0
  105. package/dist/lib/actions/get-document.action.js.map +1 -0
  106. package/dist/lib/actions/insert-image-in-table-cell.action.d.ts +13 -0
  107. package/dist/lib/actions/insert-image-in-table-cell.action.d.ts.map +1 -0
  108. package/dist/lib/actions/insert-image-in-table-cell.action.js +128 -0
  109. package/dist/lib/actions/insert-image-in-table-cell.action.js.map +1 -0
  110. package/dist/lib/actions/insert-inline-image.action.d.ts +11 -0
  111. package/dist/lib/actions/insert-inline-image.action.d.ts.map +1 -0
  112. package/dist/lib/actions/insert-inline-image.action.js +84 -0
  113. package/dist/lib/actions/insert-inline-image.action.js.map +1 -0
  114. package/dist/lib/actions/insert-page-break.action.d.ts +8 -0
  115. package/dist/lib/actions/insert-page-break.action.d.ts.map +1 -0
  116. package/dist/lib/actions/insert-page-break.action.js +60 -0
  117. package/dist/lib/actions/insert-page-break.action.js.map +1 -0
  118. package/dist/lib/actions/insert-table-column.action.d.ts +11 -0
  119. package/dist/lib/actions/insert-table-column.action.d.ts.map +1 -0
  120. package/dist/lib/actions/insert-table-column.action.js +86 -0
  121. package/dist/lib/actions/insert-table-column.action.js.map +1 -0
  122. package/dist/lib/actions/insert-table-row.action.d.ts +11 -0
  123. package/dist/lib/actions/insert-table-row.action.d.ts.map +1 -0
  124. package/dist/lib/actions/insert-table-row.action.js +86 -0
  125. package/dist/lib/actions/insert-table-row.action.js.map +1 -0
  126. package/dist/lib/actions/insert-table.action.d.ts +10 -0
  127. package/dist/lib/actions/insert-table.action.d.ts.map +1 -0
  128. package/dist/lib/actions/insert-table.action.js +72 -0
  129. package/dist/lib/actions/insert-table.action.js.map +1 -0
  130. package/dist/lib/actions/insert-text-in-table-cell.action.d.ts +11 -0
  131. package/dist/lib/actions/insert-text-in-table-cell.action.d.ts.map +1 -0
  132. package/dist/lib/actions/insert-text-in-table-cell.action.js +115 -0
  133. package/dist/lib/actions/insert-text-in-table-cell.action.js.map +1 -0
  134. package/dist/lib/actions/insert-text.action.d.ts +9 -0
  135. package/dist/lib/actions/insert-text.action.d.ts.map +1 -0
  136. package/dist/lib/actions/insert-text.action.js +66 -0
  137. package/dist/lib/actions/insert-text.action.js.map +1 -0
  138. package/dist/lib/actions/read-document.action.d.ts +7 -0
  139. package/dist/lib/actions/read-document.action.d.ts.map +1 -0
  140. package/dist/lib/actions/read-document.action.js +44 -0
  141. package/dist/lib/actions/read-document.action.js.map +1 -0
  142. package/dist/lib/actions/replace-all-text.action.d.ts +10 -0
  143. package/dist/lib/actions/replace-all-text.action.d.ts.map +1 -0
  144. package/dist/lib/actions/replace-all-text.action.js +92 -0
  145. package/dist/lib/actions/replace-all-text.action.js.map +1 -0
  146. package/dist/lib/actions/replace-body-with-markdown.action.d.ts +8 -0
  147. package/dist/lib/actions/replace-body-with-markdown.action.d.ts.map +1 -0
  148. package/dist/lib/actions/replace-body-with-markdown.action.js +79 -0
  149. package/dist/lib/actions/replace-body-with-markdown.action.js.map +1 -0
  150. package/dist/lib/actions/replace-image.action.d.ts +9 -0
  151. package/dist/lib/actions/replace-image.action.d.ts.map +1 -0
  152. package/dist/lib/actions/replace-image.action.js +65 -0
  153. package/dist/lib/actions/replace-image.action.js.map +1 -0
  154. package/dist/lib/actions/replace-section-with-markdown.action.d.ts +10 -0
  155. package/dist/lib/actions/replace-section-with-markdown.action.d.ts.map +1 -0
  156. package/dist/lib/actions/replace-section-with-markdown.action.js +106 -0
  157. package/dist/lib/actions/replace-section-with-markdown.action.js.map +1 -0
  158. package/dist/lib/actions/search-documents.action.d.ts +11 -0
  159. package/dist/lib/actions/search-documents.action.d.ts.map +1 -0
  160. package/dist/lib/actions/search-documents.action.js +121 -0
  161. package/dist/lib/actions/search-documents.action.js.map +1 -0
  162. package/dist/lib/actions/unmerge-table-cells.action.d.ts +12 -0
  163. package/dist/lib/actions/unmerge-table-cells.action.d.ts.map +1 -0
  164. package/dist/lib/actions/unmerge-table-cells.action.js +94 -0
  165. package/dist/lib/actions/unmerge-table-cells.action.js.map +1 -0
  166. package/dist/lib/actions/update-document-style.action.d.ts +11 -0
  167. package/dist/lib/actions/update-document-style.action.d.ts.map +1 -0
  168. package/dist/lib/actions/update-document-style.action.js +95 -0
  169. package/dist/lib/actions/update-document-style.action.js.map +1 -0
  170. package/dist/lib/actions/update-table-row-style.action.d.ts +10 -0
  171. package/dist/lib/actions/update-table-row-style.action.d.ts.map +1 -0
  172. package/dist/lib/actions/update-table-row-style.action.js +78 -0
  173. package/dist/lib/actions/update-table-row-style.action.js.map +1 -0
  174. package/dist/lib/auth.d.ts +11 -0
  175. package/dist/lib/auth.d.ts.map +1 -0
  176. package/dist/lib/auth.js +92 -0
  177. package/dist/lib/auth.js.map +1 -0
  178. package/dist/lib/common/index.d.ts +11 -0
  179. package/dist/lib/common/index.d.ts.map +1 -0
  180. package/dist/lib/common/index.js +124 -0
  181. package/dist/lib/common/index.js.map +1 -0
  182. package/dist/lib/common/props.d.ts +5 -0
  183. package/dist/lib/common/props.d.ts.map +1 -0
  184. package/dist/lib/common/props.js +53 -0
  185. package/dist/lib/common/props.js.map +1 -0
  186. package/dist/lib/output-schemas.d.ts +43 -0
  187. package/dist/lib/output-schemas.d.ts.map +1 -0
  188. package/dist/lib/output-schemas.js +554 -0
  189. package/dist/lib/output-schemas.js.map +1 -0
  190. package/dist/lib/triggers/new-document.d.ts +35 -0
  191. package/dist/lib/triggers/new-document.d.ts.map +1 -0
  192. package/dist/lib/triggers/new-document.js +104 -0
  193. package/dist/lib/triggers/new-document.js.map +1 -0
  194. package/package.json +47 -3
  195. package/src/index.ts +120 -0
  196. package/src/lib/actions/append-text.ts +37 -0
  197. package/src/lib/actions/batch-update.action.ts +58 -0
  198. package/src/lib/actions/copy-document.action.ts +74 -0
  199. package/src/lib/actions/create-and-populate-table.action.ts +141 -0
  200. package/src/lib/actions/create-document-based-on-template.action.ts +110 -0
  201. package/src/lib/actions/create-document-from-markdown.action.ts +63 -0
  202. package/src/lib/actions/create-document.ts +36 -0
  203. package/src/lib/actions/create-footer.action.ts +59 -0
  204. package/src/lib/actions/create-footnote.action.ts +53 -0
  205. package/src/lib/actions/create-header.action.ts +59 -0
  206. package/src/lib/actions/create-named-range.action.ts +70 -0
  207. package/src/lib/actions/create-paragraph-bullets.action.ts +95 -0
  208. package/src/lib/actions/create-text-document.action.ts +35 -0
  209. package/src/lib/actions/delete-content-range.action.ts +59 -0
  210. package/src/lib/actions/delete-footer.action.ts +51 -0
  211. package/src/lib/actions/delete-header.action.ts +51 -0
  212. package/src/lib/actions/delete-named-range.action.ts +65 -0
  213. package/src/lib/actions/delete-paragraph-bullets.action.ts +62 -0
  214. package/src/lib/actions/delete-table-column.action.ts +67 -0
  215. package/src/lib/actions/delete-table-row.action.ts +67 -0
  216. package/src/lib/actions/export-as-pdf.action.ts +59 -0
  217. package/src/lib/actions/find-document.ts +136 -0
  218. package/src/lib/actions/get-document-end-index.action.ts +47 -0
  219. package/src/lib/actions/get-document-plaintext.action.ts +74 -0
  220. package/src/lib/actions/get-document.action.ts +37 -0
  221. package/src/lib/actions/insert-image-in-table-cell.action.ts +139 -0
  222. package/src/lib/actions/insert-inline-image.action.ts +83 -0
  223. package/src/lib/actions/insert-page-break.action.ts +56 -0
  224. package/src/lib/actions/insert-table-column.action.ts +80 -0
  225. package/src/lib/actions/insert-table-row.action.ts +80 -0
  226. package/src/lib/actions/insert-table.action.ts +68 -0
  227. package/src/lib/actions/insert-text-in-table-cell.action.ts +120 -0
  228. package/src/lib/actions/insert-text.action.ts +62 -0
  229. package/src/lib/actions/read-document.action.ts +40 -0
  230. package/src/lib/actions/replace-all-text.action.ts +95 -0
  231. package/src/lib/actions/replace-body-with-markdown.action.ts +76 -0
  232. package/src/lib/actions/replace-image.action.ts +60 -0
  233. package/src/lib/actions/replace-section-with-markdown.action.ts +104 -0
  234. package/src/lib/actions/search-documents.action.ts +131 -0
  235. package/src/lib/actions/unmerge-table-cells.action.ts +88 -0
  236. package/src/lib/actions/update-document-style.action.ts +93 -0
  237. package/src/lib/actions/update-table-row-style.action.ts +73 -0
  238. package/src/lib/auth.ts +84 -0
  239. package/src/lib/common/index.ts +126 -0
  240. package/src/lib/common/props.ts +55 -0
  241. package/src/lib/output-schemas.ts +593 -0
  242. package/src/lib/triggers/new-document.ts +108 -0
  243. package/README.md +0 -3
@@ -0,0 +1 @@
1
+ {"version":3,"file":"insert-table.action.d.ts","sourceRoot":"","sources":["../../../src/lib/actions/insert-table.action.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,WAAW;;;;;;;;EA6DtB,CAAC"}
@@ -0,0 +1,72 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.insertTable = void 0;
4
+ const tslib_1 = require("tslib");
5
+ // Vendored from Activepieces packages/pieces/community/google-docs/src/lib/actions/insert-table.action.ts (MIT).
6
+ // Generated by packages/scripts/vendor-ap.mjs - do not edit by hand.
7
+ const auth_1 = require("../auth");
8
+ const common_1 = require("../common");
9
+ const pieces_framework_1 = require("@agnocon/pieces-framework");
10
+ const docs_1 = require("@googleapis/docs");
11
+ const output_schemas_1 = require("../output-schemas");
12
+ exports.insertTable = (0, pieces_framework_1.createAction)({
13
+ auth: auth_1.googleDocsAuth,
14
+ name: 'insert_table',
15
+ displayName: 'Insert Table',
16
+ description: 'Insert a new table into a Google Docs document',
17
+ audience: 'ai',
18
+ aiMetadata: {
19
+ description: 'Inserts a new table with the specified number of rows and columns into a Google Docs document. If "index" is omitted the table is inserted at the end of the document body; if provided the table is inserted at that character index — obtain a valid index from Get Document End Index first. Not idempotent: each call inserts another table.',
20
+ idempotent: false,
21
+ },
22
+ outputSchema: output_schemas_1.insertTableActionOutputSchema,
23
+ props: {
24
+ documentId: pieces_framework_1.Property.ShortText({
25
+ displayName: 'Document ID',
26
+ description: 'The ID of the document to insert the table into.',
27
+ required: true,
28
+ }),
29
+ rows: pieces_framework_1.Property.Number({
30
+ displayName: 'Rows',
31
+ description: 'Number of rows in the new table.',
32
+ required: true,
33
+ }),
34
+ columns: pieces_framework_1.Property.Number({
35
+ displayName: 'Columns',
36
+ description: 'Number of columns in the new table.',
37
+ required: true,
38
+ }),
39
+ index: pieces_framework_1.Property.Number({
40
+ displayName: 'Index',
41
+ description: 'Character index at which to insert the table. Leave empty to append at the end of the document. Obtain a valid index from Get Document End Index.',
42
+ required: false,
43
+ }),
44
+ },
45
+ run(context) {
46
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
47
+ const { documentId, rows, columns, index } = context.propsValue;
48
+ const authClient = yield (0, auth_1.createGoogleClient)(context.auth);
49
+ const docs = (0, docs_1.docs)({ version: 'v1', auth: authClient });
50
+ const request = index === undefined || index === null
51
+ ? { insertTable: { rows, columns, endOfSegmentLocation: {} } }
52
+ : { insertTable: { rows, columns, location: { index } } };
53
+ try {
54
+ yield docs.documents.batchUpdate({
55
+ documentId,
56
+ requestBody: { requests: [request] },
57
+ });
58
+ return {
59
+ success: true,
60
+ documentId,
61
+ rows,
62
+ columns,
63
+ mode: index === undefined || index === null ? 'append' : 'insert_at_index',
64
+ };
65
+ }
66
+ catch (error) {
67
+ throw new Error(common_1.docsCommon.formatError(error, 'insert table into'));
68
+ }
69
+ });
70
+ },
71
+ });
72
+ //# sourceMappingURL=insert-table.action.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"insert-table.action.js","sourceRoot":"","sources":["../../../src/lib/actions/insert-table.action.ts"],"names":[],"mappings":";;;;AAAA,iHAAiH;AACjH,qEAAqE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,KAAK,SAAS,IAAI,KAAK,KAAK,IAAI;gBACnC,CAAC,CAAC,EAAE,WAAW,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,oBAAoB,EAAE,EAAE,EAAE,EAAE;gBAC9D,CAAC,CAAC,EAAE,WAAW,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC;YAE9D,IAAI,CAAC;gBACH,MAAM,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;oBAC/B,UAAU;oBACV,WAAW,EAAE,EAAE,QAAQ,EAAE,CAAC,OAAO,CAAC,EAAE;iBACrC,CAAC,CAAC;gBACH,OAAO;oBACL,OAAO,EAAE,IAAI;oBACb,UAAU;oBACV,IAAI;oBACJ,OAAO;oBACP,IAAI,EAAE,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,iBAAiB;iBAC3E,CAAC;YACJ,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACf,MAAM,IAAI,KAAK,CAAC,mBAAU,CAAC,WAAW,CAAC,KAAK,EAAE,mBAAmB,CAAC,CAAC,CAAC;YACtE,CAAC;QACH,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -0,0 +1,11 @@
1
+ export declare const insertTextInTableCell: import("@agnocon/pieces-framework").IAction<(import("@agnocon/pieces-framework").OAuth2Property<import("@agnocon/pieces-framework").OAuth2Props> | import("@agnocon/pieces-framework").CustomAuthProperty<{
2
+ serviceAccount: import("@agnocon/pieces-framework").LongTextProperty<true>;
3
+ userEmail: import("@agnocon/pieces-framework").ShortTextProperty<false>;
4
+ }>)[], {
5
+ documentId: import("@agnocon/pieces-framework").ShortTextProperty<true>;
6
+ tableStartIndex: import("@agnocon/pieces-framework").NumberProperty<true>;
7
+ rowIndex: import("@agnocon/pieces-framework").NumberProperty<true>;
8
+ columnIndex: import("@agnocon/pieces-framework").NumberProperty<true>;
9
+ text: import("@agnocon/pieces-framework").LongTextProperty<true>;
10
+ }>;
11
+ //# sourceMappingURL=insert-text-in-table-cell.action.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"insert-text-in-table-cell.action.d.ts","sourceRoot":"","sources":["../../../src/lib/actions/insert-text-in-table-cell.action.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,qBAAqB;;;;;;;;;EAiHhC,CAAC"}
@@ -0,0 +1,115 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.insertTextInTableCell = void 0;
4
+ const tslib_1 = require("tslib");
5
+ // Vendored from Activepieces packages/pieces/community/google-docs/src/lib/actions/insert-text-in-table-cell.action.ts (MIT).
6
+ // Generated by packages/scripts/vendor-ap.mjs - do not edit by hand.
7
+ const auth_1 = require("../auth");
8
+ const common_1 = require("../common");
9
+ const pieces_framework_1 = require("@agnocon/pieces-framework");
10
+ const docs_1 = require("@googleapis/docs");
11
+ const output_schemas_1 = require("../output-schemas");
12
+ exports.insertTextInTableCell = (0, pieces_framework_1.createAction)({
13
+ auth: auth_1.googleDocsAuth,
14
+ name: 'insert_text_in_table_cell',
15
+ displayName: 'Insert Text in Table Cell',
16
+ description: 'Insert text into a specific table cell in a Google Docs document',
17
+ audience: 'ai',
18
+ aiMetadata: {
19
+ description: 'Inserts text at the start of a specific table cell in a Google Docs document. The action reads the document to resolve the correct character index for the target cell, then inserts text there. Requires the table start index (from Read Document — cannot be guessed), plus the zero-based row and column index of the target cell. Not idempotent: each call inserts the text again.',
20
+ idempotent: false,
21
+ },
22
+ outputSchema: output_schemas_1.insertTextInTableCellActionOutputSchema,
23
+ props: {
24
+ documentId: pieces_framework_1.Property.ShortText({
25
+ displayName: 'Document ID',
26
+ description: 'The ID of the document containing the table.',
27
+ required: true,
28
+ }),
29
+ tableStartIndex: pieces_framework_1.Property.Number({
30
+ displayName: 'Table Start Index',
31
+ description: 'Obtain the table start index from Read Document — cannot be guessed.',
32
+ required: true,
33
+ }),
34
+ rowIndex: pieces_framework_1.Property.Number({
35
+ displayName: 'Row Index',
36
+ description: 'Zero-based row index of the target cell.',
37
+ required: true,
38
+ }),
39
+ columnIndex: pieces_framework_1.Property.Number({
40
+ displayName: 'Column Index',
41
+ description: 'Zero-based column index of the target cell.',
42
+ required: true,
43
+ }),
44
+ text: pieces_framework_1.Property.LongText({
45
+ displayName: 'Text',
46
+ description: 'The text to insert into the table cell.',
47
+ required: true,
48
+ }),
49
+ },
50
+ run(context) {
51
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
52
+ var _a, _b, _c, _d, _e, _f;
53
+ const { documentId, tableStartIndex, rowIndex, columnIndex, text } = context.propsValue;
54
+ const authClient = yield (0, auth_1.createGoogleClient)(context.auth);
55
+ const docs = (0, docs_1.docs)({ version: 'v1', auth: authClient });
56
+ let cellContentIndex;
57
+ try {
58
+ const docResponse = yield docs.documents.get({ documentId });
59
+ const content = (_b = (_a = docResponse.data.body) === null || _a === void 0 ? void 0 : _a.content) !== null && _b !== void 0 ? _b : [];
60
+ const tableElement = content.find((el) => el.table !== undefined && el.startIndex === tableStartIndex);
61
+ if (!(tableElement === null || tableElement === void 0 ? void 0 : tableElement.table)) {
62
+ throw new Error(`No table found at start index ${tableStartIndex}. Verify the table start index from Read Document.`);
63
+ }
64
+ const tableRows = (_c = tableElement.table.tableRows) !== null && _c !== void 0 ? _c : [];
65
+ const targetRow = tableRows[rowIndex];
66
+ if (!targetRow) {
67
+ throw new Error(`Row index ${rowIndex} is out of range — table has ${tableRows.length} row(s).`);
68
+ }
69
+ const targetCell = ((_d = targetRow.tableCells) !== null && _d !== void 0 ? _d : [])[columnIndex];
70
+ if (!targetCell) {
71
+ throw new Error(`Column index ${columnIndex} is out of range — row has ${((_e = targetRow.tableCells) !== null && _e !== void 0 ? _e : []).length} cell(s).`);
72
+ }
73
+ const firstContent = ((_f = targetCell.content) !== null && _f !== void 0 ? _f : [])[0];
74
+ if ((firstContent === null || firstContent === void 0 ? void 0 : firstContent.startIndex) === undefined || firstContent.startIndex === null) {
75
+ throw new Error('Could not resolve the content start index for the target cell.');
76
+ }
77
+ cellContentIndex = firstContent.startIndex;
78
+ }
79
+ catch (error) {
80
+ if (error instanceof Error && error.message.startsWith('No table') ||
81
+ error instanceof Error && error.message.startsWith('Row index') ||
82
+ error instanceof Error && error.message.startsWith('Column index') ||
83
+ error instanceof Error && error.message.startsWith('Could not')) {
84
+ throw error;
85
+ }
86
+ throw new Error(common_1.docsCommon.formatError(error, 'read'));
87
+ }
88
+ const request = {
89
+ insertText: {
90
+ text,
91
+ location: { index: cellContentIndex },
92
+ },
93
+ };
94
+ try {
95
+ yield docs.documents.batchUpdate({
96
+ documentId,
97
+ requestBody: { requests: [request] },
98
+ });
99
+ return {
100
+ success: true,
101
+ documentId,
102
+ tableStartIndex,
103
+ rowIndex,
104
+ columnIndex,
105
+ insertedAtIndex: cellContentIndex,
106
+ insertedCharacters: text.length,
107
+ };
108
+ }
109
+ catch (error) {
110
+ throw new Error(common_1.docsCommon.formatError(error, 'insert text into table cell in'));
111
+ }
112
+ });
113
+ },
114
+ });
115
+ //# sourceMappingURL=insert-text-in-table-cell.action.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"insert-text-in-table-cell.action.js","sourceRoot":"","sources":["../../../src/lib/actions/insert-text-in-table-cell.action.ts"],"names":[],"mappings":";;;;AAAA,8HAA8H;AAC9H,qEAAqE;AACrE,kCAA6D;AAC7D,sCAAuC;AACvC,gEAAmE;AACnE,2CAA+D;AAC/D,sDAA4E;AAE/D,QAAA,qBAAqB,GAAG,IAAA,+BAAY,EAAC;IAChD,IAAI,EAAE,qBAAc;IACpB,IAAI,EAAE,2BAA2B;IACjC,WAAW,EAAE,2BAA2B;IACxC,WAAW,EAAE,kEAAkE;IAC/E,QAAQ,EAAE,IAAI;IACd,UAAU,EAAE;QACV,WAAW,EACT,0XAA0X;QAC5X,UAAU,EAAE,KAAK;KAClB;IACD,YAAY,EAAE,wDAAuC;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ces-framework").OAuth2Property<import("@agnocon/pieces-framework").OAuth2Props> | import("@agnocon/pieces-framework").CustomAuthProperty<{
2
+ serviceAccount: import("@agnocon/pieces-framework").LongTextProperty<true>;
3
+ userEmail: import("@agnocon/pieces-framework").ShortTextProperty<false>;
4
+ }>)[], {
5
+ documentId: import("@agnocon/pieces-framework").ShortTextProperty<true>;
6
+ text: import("@agnocon/pieces-framework").LongTextProperty<true>;
7
+ index: import("@agnocon/pieces-framework").NumberProperty<false>;
8
+ }>;
9
+ //# sourceMappingURL=insert-text.action.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"insert-text.action.d.ts","sourceRoot":"","sources":["../../../src/lib/actions/insert-text.action.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,UAAU;;;;;;;EAuDrB,CAAC"}
@@ -0,0 +1,66 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.insertText = void 0;
4
+ const tslib_1 = require("tslib");
5
+ // Vendored from Activepieces packages/pieces/community/google-docs/src/lib/actions/insert-text.action.ts (MIT).
6
+ // Generated by packages/scripts/vendor-ap.mjs - do not edit by hand.
7
+ const auth_1 = require("../auth");
8
+ const common_1 = require("../common");
9
+ const pieces_framework_1 = require("@agnocon/pieces-framework");
10
+ const docs_1 = require("@googleapis/docs");
11
+ const output_schemas_1 = require("../output-schemas");
12
+ exports.insertText = (0, pieces_framework_1.createAction)({
13
+ auth: auth_1.googleDocsAuth,
14
+ name: 'insert_text',
15
+ displayName: 'Insert Text',
16
+ description: 'Insert text into a Google Docs document at a position or at the end',
17
+ audience: 'ai',
18
+ aiMetadata: {
19
+ description: 'Inserts text into a Google Docs document. If "index" is omitted the text is appended to the end of the document body; if "index" is provided the text is inserted at that character index — obtain a valid index from Get Document End Index first (indices cannot be guessed, must fall inside an existing paragraph, and must be below the body end index). Not idempotent: each call inserts the text again.',
20
+ idempotent: false,
21
+ },
22
+ outputSchema: output_schemas_1.insertTextActionOutputSchema,
23
+ props: {
24
+ documentId: pieces_framework_1.Property.ShortText({
25
+ displayName: 'Document ID',
26
+ description: 'The ID of the document to insert text into.',
27
+ required: true,
28
+ }),
29
+ text: pieces_framework_1.Property.LongText({
30
+ displayName: 'Text',
31
+ description: 'The text to insert.',
32
+ required: true,
33
+ }),
34
+ index: pieces_framework_1.Property.Number({
35
+ displayName: 'Index',
36
+ description: 'Character index to insert at. Leave empty to append to the end of the document. Get a valid index from Get Document End Index.',
37
+ required: false,
38
+ }),
39
+ },
40
+ run(context) {
41
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
42
+ const { documentId, text, index } = context.propsValue;
43
+ const authClient = yield (0, auth_1.createGoogleClient)(context.auth);
44
+ const docs = (0, docs_1.docs)({ version: 'v1', auth: authClient });
45
+ const request = index === undefined || index === null
46
+ ? { insertText: { text, endOfSegmentLocation: {} } }
47
+ : { insertText: { text, location: { index } } };
48
+ try {
49
+ yield docs.documents.batchUpdate({
50
+ documentId,
51
+ requestBody: { requests: [request] },
52
+ });
53
+ return {
54
+ success: true,
55
+ documentId,
56
+ insertedCharacters: text.length,
57
+ mode: index === undefined || index === null ? 'append' : 'insert_at_index',
58
+ };
59
+ }
60
+ catch (error) {
61
+ throw new Error(common_1.docsCommon.formatError(error, 'insert text into'));
62
+ }
63
+ });
64
+ },
65
+ });
66
+ //# sourceMappingURL=insert-text.action.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"insert-text.action.js","sourceRoot":"","sources":["../../../src/lib/actions/insert-text.action.ts"],"names":[],"mappings":";;;;AAAA,gHAAgH;AAChH,qEAAqE;AACrE,kCAA6D;AAC7D,sCAAuC;AACvC,gEAAmE;AACnE,2CAA+D;AAC/D,sDAAiE;AAEpD,QAAA,UAAU,GAAG,IAAA,+BAAY,EAAC;IACrC,IAAI,EAAE,qBAAc;IACpB,IAAI,EAAE,aAAa;IACnB,WAAW,EAAE,aAAa;IAC1B,WAAW,EAAE,qEAAqE;IAClF,QAAQ,EAAE,IAAI;IACd,UAAU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OAAO;oBACL,OAAO,EAAE,IAAI;oBACb,UAAU;oBACV,kBAAkB,EAAE,IAAI,CAAC,MAAM;oBAC/B,IAAI,EAAE,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,iBAAiB;iBAC3E,CAAC;YACJ,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACf,MAAM,IAAI,KAAK,CAAC,mBAAU,CAAC,WAAW,CAAC,KAAK,EAAE,kBAAkB,CAAC,CAAC,CAAC;YACrE,CAAC;QACH,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -0,0 +1,7 @@
1
+ export declare const readDocument: import("@agnocon/pieces-framework").IAction<(import("@agnocon/pieces-framework").OAuth2Property<import("@agnocon/pieces-framework").OAuth2Props> | import("@agnocon/pieces-framework").CustomAuthProperty<{
2
+ serviceAccount: import("@agnocon/pieces-framework").LongTextProperty<true>;
3
+ userEmail: import("@agnocon/pieces-framework").ShortTextProperty<false>;
4
+ }>)[], {
5
+ documentId: import("@agnocon/pieces-framework").ShortTextProperty<true>;
6
+ }>;
7
+ //# sourceMappingURL=read-document.action.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"read-document.action.d.ts","sourceRoot":"","sources":["../../../src/lib/actions/read-document.action.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,YAAY;;;;;EAkCvB,CAAC"}
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.readDocument = void 0;
4
+ const tslib_1 = require("tslib");
5
+ // Vendored from Activepieces packages/pieces/community/google-docs/src/lib/actions/read-document.action.ts (MIT).
6
+ // Generated by packages/scripts/vendor-ap.mjs - do not edit by hand.
7
+ const auth_1 = require("../auth");
8
+ const pieces_framework_1 = require("@agnocon/pieces-framework");
9
+ const docs_1 = require("@googleapis/docs");
10
+ const output_schemas_1 = require("../output-schemas");
11
+ exports.readDocument = (0, pieces_framework_1.createAction)({
12
+ displayName: 'Read Document',
13
+ auth: auth_1.googleDocsAuth,
14
+ name: 'read_document',
15
+ description: 'Read a document from Google Docs',
16
+ audience: 'human',
17
+ aiMetadata: {
18
+ description: 'Fetches the full content and structure of a Google Docs document by its ID. Use when an agent needs to inspect, summarize, or extract text from a known document. Requires the document ID (not a name or URL); read-only and idempotent.',
19
+ idempotent: true,
20
+ },
21
+ props: {
22
+ documentId: pieces_framework_1.Property.ShortText({
23
+ displayName: 'Document ID',
24
+ description: 'The ID of the document to read',
25
+ required: true,
26
+ }),
27
+ },
28
+ outputSchema: output_schemas_1.readDocumentActionOutputSchema,
29
+ run(context) {
30
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
31
+ const authClient = yield (0, auth_1.createGoogleClient)(context.auth);
32
+ const docs = (0, docs_1.docs)({ version: 'v1', auth: authClient });
33
+ const response = yield docs.documents.get({
34
+ documentId: context.propsValue.documentId,
35
+ });
36
+ if (response.status !== 200) {
37
+ console.error(response);
38
+ throw new Error('Error reading document');
39
+ }
40
+ return response.data;
41
+ });
42
+ },
43
+ });
44
+ //# sourceMappingURL=read-document.action.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"read-document.action.js","sourceRoot":"","sources":["../../../src/lib/actions/read-document.action.ts"],"names":[],"mappings":";;;;AAAA,kHAAkH;AAClH,qEAAqE;AACrE,kCAA6D;AAC7D,gEAAmE;AACnE,2CAAsD;AACtD,sDAAmE;AAEtD,QAAA,YAAY,GAAG,IAAA,+BAAY,EAAC;IACvC,WAAW,EAAE,eAAe;IAC5B,IAAI,EAAE,qBAAc;IACpB,IAAI,EAAE,eAAe;IACrB,WAAW,EAAE,kCAAkC;IAC/C,QAAQ,EAAE,OAAO;IACjB,UAAU,EAAE;QACV,WAAW,EACT,2OAA2O;QAC7O,UAAU,EAAE,IAAI;KACjB;IACD,KAAK,EAAE;QACL,UAAU,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC7B,WAAW,EAAE,aAAa;YAC1B,WAAW,EAAE,gCAAgC;YAC7C,QAAQ,EAAE,IAAI;SACf,CAAC;KACH;IACD,YAAY,EAAE,+CAA8B;IACtC,GAAG,CAAC,OAAO;;YACf,MAAM,UAAU,GAAG,MAAM,IAAA,yBAAkB,EAAC,OAAO,CAAC,IAAI,CAAC,CAAC;YAE1D,MAAM,IAAI,GAAG,IAAA,WAAU,EAAC,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC,CAAC;YAC7D,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC;gBACxC,UAAU,EAAE,OAAO,CAAC,UAAU,CAAC,UAAU;aAC1C,CAAC,CAAC;YAEH,IAAI,QAAQ,CAAC,MAAM,KAAK,GAAG,EAAE,CAAC;gBAC5B,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;gBACxB,MAAM,IAAI,KAAK,CAAC,wBAAwB,CAAC,CAAC;YAC5C,CAAC;YAED,OAAO,QAAQ,CAAC,IAAI,CAAC;QACvB,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -0,0 +1,10 @@
1
+ export declare const replaceAllText: import("@agnocon/pieces-framework").IAction<(import("@agnocon/pieces-framework").OAuth2Property<import("@agnocon/pieces-framework").OAuth2Props> | import("@agnocon/pieces-framework").CustomAuthProperty<{
2
+ serviceAccount: import("@agnocon/pieces-framework").LongTextProperty<true>;
3
+ userEmail: import("@agnocon/pieces-framework").ShortTextProperty<false>;
4
+ }>)[], {
5
+ documentId: import("@agnocon/pieces-framework").ShortTextProperty<true>;
6
+ find_text: import("@agnocon/pieces-framework").ShortTextProperty<true>;
7
+ replace_text: import("@agnocon/pieces-framework").ShortTextProperty<true>;
8
+ match_case: import("@agnocon/pieces-framework").CheckboxProperty<false>;
9
+ }>;
10
+ //# sourceMappingURL=replace-all-text.action.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"replace-all-text.action.d.ts","sourceRoot":"","sources":["../../../src/lib/actions/replace-all-text.action.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,cAAc;;;;;;;;EAyFzB,CAAC"}
@@ -0,0 +1,92 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.replaceAllText = void 0;
4
+ const tslib_1 = require("tslib");
5
+ // Vendored from Activepieces packages/pieces/community/google-docs/src/lib/actions/replace-all-text.action.ts (MIT).
6
+ // Generated by packages/scripts/vendor-ap.mjs - do not edit by hand.
7
+ const auth_1 = require("../auth");
8
+ const pieces_framework_1 = require("@agnocon/pieces-framework");
9
+ const docs_1 = require("@googleapis/docs");
10
+ const output_schemas_1 = require("../output-schemas");
11
+ exports.replaceAllText = (0, pieces_framework_1.createAction)({
12
+ auth: auth_1.googleDocsAuth,
13
+ name: 'replace_all_text',
14
+ displayName: 'Replace All Text in Document',
15
+ description: 'Replace every occurrence of a literal string in a Google Docs document with another string.',
16
+ audience: 'ai',
17
+ aiMetadata: {
18
+ // Idempotent matches the sibling create_document_based_on_template, which
19
+ // wraps the identical replaceAllText request and is labeled idempotent:true:
20
+ // re-running with the same find/replace leaves the same end state (the
21
+ // second run matches zero occurrences). Caveat noted below for the
22
+ // overlapping find/replace-literals edge case.
23
+ description: 'Find-and-replaces every occurrence of a literal string across a whole Google Docs document. Pick this for a bare ad-hoc text edit; use Edit Template File instead for placeholder-token merges or image swaps. Idempotent for normal use (a repeat run matches nothing and leaves the same end state); the exception is overlapping find/replace literals (e.g. replacing "a" with "ab"), which can re-match on a second run.',
24
+ idempotent: true,
25
+ },
26
+ outputSchema: output_schemas_1.replaceAllTextActionOutputSchema,
27
+ props: {
28
+ documentId: pieces_framework_1.Property.ShortText({
29
+ displayName: 'Document ID',
30
+ description: "The ID of the document to edit, found in its URL: 'https://docs.google.com/document/d/<documentId>/edit'.",
31
+ required: true,
32
+ }),
33
+ find_text: pieces_framework_1.Property.ShortText({
34
+ displayName: 'Find Text',
35
+ description: 'The literal text to search for in the document.',
36
+ required: true,
37
+ }),
38
+ replace_text: pieces_framework_1.Property.ShortText({
39
+ displayName: 'Replace With',
40
+ description: 'The text to replace every matched occurrence with.',
41
+ required: true,
42
+ }),
43
+ match_case: pieces_framework_1.Property.Checkbox({
44
+ displayName: 'Match Case',
45
+ description: 'When enabled, the search is case-sensitive.',
46
+ required: false,
47
+ defaultValue: false,
48
+ }),
49
+ },
50
+ run(context) {
51
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
52
+ var _a, _b, _c, _d;
53
+ const { documentId, find_text, replace_text, match_case } = context.propsValue;
54
+ const authClient = yield (0, auth_1.createGoogleClient)(context.auth);
55
+ const docs = (0, docs_1.docs)({ version: 'v1', auth: authClient });
56
+ try {
57
+ const response = yield docs.documents.batchUpdate({
58
+ documentId,
59
+ requestBody: {
60
+ requests: [
61
+ {
62
+ replaceAllText: {
63
+ containsText: {
64
+ text: find_text,
65
+ matchCase: match_case !== null && match_case !== void 0 ? match_case : false,
66
+ },
67
+ replaceText: replace_text,
68
+ },
69
+ },
70
+ ],
71
+ },
72
+ });
73
+ const occurrencesChanged = (_d = (_c = (_b = (_a = response.data.replies) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.replaceAllText) === null || _c === void 0 ? void 0 : _c.occurrencesChanged) !== null && _d !== void 0 ? _d : 0;
74
+ return {
75
+ documentId,
76
+ occurrencesChanged,
77
+ };
78
+ }
79
+ catch (e) {
80
+ const error = e;
81
+ if (error.code === 403) {
82
+ throw new Error('Permission denied editing the document. Ensure the connected account has edit access to this document.');
83
+ }
84
+ if (error.code === 404) {
85
+ throw new Error(`Document not found for ID '${documentId}'. Verify the document ID.`);
86
+ }
87
+ throw e;
88
+ }
89
+ });
90
+ },
91
+ });
92
+ //# sourceMappingURL=replace-all-text.action.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"replace-all-text.action.js","sourceRoot":"","sources":["../../../src/lib/actions/replace-all-text.action.ts"],"names":[],"mappings":";;;;AAAA,qHAAqH;AAC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WAAU,EAAC,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC,CAAC;YAE7D,IAAI,CAAC;gBACJ,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;oBACjD,UAAU;oBACV,WAAW,EAAE;wBACZ,QAAQ,EAAE;4BACT;gCACC,cAAc,EAAE;oCACf,YAAY,EAAE;wCACb,IAAI,EAAE,SAAS;wCACf,SAAS,EAAE,UAAU,aAAV,UAAU,cAAV,UAAU,GAAI,KAAK;qCAC9B;oCACD,WAAW,EAAE,YAAY;iCACzB;6BACD;yBACD;qBACD;iBACD,CAAC,CAAC;gBAEH,MAAM,kBAAkB,GACvB,MAAA,MAAA,MAAA,MAAA,QAAQ,CAAC,IAAI,CAAC,OAAO,0CAAG,CAAC,CAAC,0CAAE,cAAc,0CAAE,kBAAkB,mCAAI,CAAC,CAAC;gBAErE,OAAO;oBACN,UAAU;oBACV,kBAAkB;iBAClB,CAAC;YACH,CAAC;YAAC,OAAO,CAAC,EAAE,CAAC;gBACZ,MAAM,KAAK,GAAG,CAAwC,CAAC;gBACvD,IAAI,KAAK,CAAC,IAAI,KAAK,GAAG,EAAE,CAAC;oBACxB,MAAM,IAAI,KAAK,CACd,wGAAwG,CACxG,CAAC;gBACH,CAAC;gBACD,IAAI,KAAK,CAAC,IAAI,KAAK,GAAG,EAAE,CAAC;oBACxB,MAAM,IAAI,KAAK,CACd,8BAA8B,UAAU,4BAA4B,CACpE,CAAC;gBACH,CAAC;gBACD,MAAM,CAAC,CAAC;YACT,CAAC;QACF,CAAC;KAAA;CACD,CAAC,CAAC"}
@@ -0,0 +1,8 @@
1
+ export declare const replaceBodyWithMarkdown: import("@agnocon/pieces-framework").IAction<(import("@agnocon/pieces-framework").OAuth2Property<import("@agnocon/pieces-framework").OAuth2Props> | import("@agnocon/pieces-framework").CustomAuthProperty<{
2
+ serviceAccount: import("@agnocon/pieces-framework").LongTextProperty<true>;
3
+ userEmail: import("@agnocon/pieces-framework").ShortTextProperty<false>;
4
+ }>)[], {
5
+ documentId: import("@agnocon/pieces-framework").ShortTextProperty<true>;
6
+ markdown: import("@agnocon/pieces-framework").LongTextProperty<true>;
7
+ }>;
8
+ //# sourceMappingURL=replace-body-with-markdown.action.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"replace-body-with-markdown.action.d.ts","sourceRoot":"","sources":["../../../src/lib/actions/replace-body-with-markdown.action.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,uBAAuB;;;;;;EAqElC,CAAC"}
@@ -0,0 +1,79 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.replaceBodyWithMarkdown = void 0;
4
+ const tslib_1 = require("tslib");
5
+ // Vendored from Activepieces packages/pieces/community/google-docs/src/lib/actions/replace-body-with-markdown.action.ts (MIT).
6
+ // Generated by packages/scripts/vendor-ap.mjs - do not edit by hand.
7
+ const auth_1 = require("../auth");
8
+ const common_1 = require("../common");
9
+ const pieces_framework_1 = require("@agnocon/pieces-framework");
10
+ const docs_1 = require("@googleapis/docs");
11
+ const output_schemas_1 = require("../output-schemas");
12
+ exports.replaceBodyWithMarkdown = (0, pieces_framework_1.createAction)({
13
+ auth: auth_1.googleDocsAuth,
14
+ name: 'replace_body_with_markdown',
15
+ displayName: 'Replace Body with Markdown',
16
+ description: 'Replace the entire body of a Google Docs document with Markdown content',
17
+ audience: 'ai',
18
+ aiMetadata: {
19
+ description: 'Clears the entire body of an existing Google Docs document and repopulates it from Markdown text, converting headings (#, ##, ###), bullet lists (-, *, +), and paragraphs into native Google Docs formatting. Use when an agent wants to overwrite a document wholesale with freshly generated Markdown (the format LLMs produce natively) in one call. Inline styling such as bold/italic is inserted as plain text. Not supported when the body contains a table or table of contents — the action errors clearly instead of partially failing. Destructive and not idempotent: the previous body content is deleted.',
20
+ idempotent: false,
21
+ },
22
+ outputSchema: output_schemas_1.replaceBodyWithMarkdownActionOutputSchema,
23
+ props: {
24
+ documentId: pieces_framework_1.Property.ShortText({
25
+ displayName: 'Document ID',
26
+ description: 'The ID of the document to overwrite.',
27
+ required: true,
28
+ }),
29
+ markdown: pieces_framework_1.Property.LongText({
30
+ displayName: 'Markdown Content',
31
+ description: 'Markdown text. Supports headings (#/##/###), bullet lists (-/*/+), and paragraphs.',
32
+ required: true,
33
+ }),
34
+ },
35
+ run(context) {
36
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
37
+ var _a, _b, _c;
38
+ const { documentId, markdown } = context.propsValue;
39
+ const authClient = yield (0, auth_1.createGoogleClient)(context.auth);
40
+ const docs = (0, docs_1.docs)({ version: 'v1', auth: authClient });
41
+ let bodyEnd;
42
+ let hasStructuralElement = false;
43
+ try {
44
+ const response = yield docs.documents.get({ documentId });
45
+ const content = (_b = (_a = response.data.body) === null || _a === void 0 ? void 0 : _a.content) !== null && _b !== void 0 ? _b : [];
46
+ const lastElement = content[content.length - 1];
47
+ bodyEnd = (_c = lastElement === null || lastElement === void 0 ? void 0 : lastElement.endIndex) !== null && _c !== void 0 ? _c : 1;
48
+ // A single deleteContentRange cannot remove a table or table of contents
49
+ // that the range crosses, so a wholesale body replace is unsupported then.
50
+ hasStructuralElement = content.some((element) => element.table || element.tableOfContents);
51
+ }
52
+ catch (error) {
53
+ throw new Error(common_1.docsCommon.formatError(error, 'read'));
54
+ }
55
+ if (hasStructuralElement) {
56
+ throw new Error('Cannot replace the body wholesale because it contains a table or table of contents, which deleteContentRange cannot remove. Remove those elements first, or edit the document with the targeted table/section atomics.');
57
+ }
58
+ const requests = [];
59
+ // The body always ends in an undeletable trailing newline, so the deletable
60
+ // range is [1, bodyEnd-1); only delete when there is real content to remove.
61
+ if (bodyEnd > 2) {
62
+ requests.push({ deleteContentRange: { range: { startIndex: 1, endIndex: bodyEnd - 1 } } });
63
+ }
64
+ requests.push(...common_1.docsCommon.markdownToBatchRequests(markdown));
65
+ try {
66
+ yield docs.documents.batchUpdate({ documentId, requestBody: { requests } });
67
+ }
68
+ catch (error) {
69
+ throw new Error(common_1.docsCommon.formatError(error, 'replace the body of'));
70
+ }
71
+ return {
72
+ success: true,
73
+ documentId,
74
+ url: `https://docs.google.com/document/d/${documentId}/edit`,
75
+ };
76
+ });
77
+ },
78
+ });
79
+ //# sourceMappingURL=replace-body-with-markdown.action.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"replace-body-with-markdown.action.js","sourceRoot":"","sources":["../../../src/lib/actions/replace-body-with-markdown.action.ts"],"names":[],"mappings":";;;;AAAA,+HAA+H;AAC/H,qEAAqE;AACrE,kCAA6D;AAC7D,sCAAuC;AACvC,gEAAmE;AACnE,2CAA+D;AAC/D,sDAA8E;AAEjE,QAAA,uBAAuB,GAAG,IAAA,+BAAY,EAAC;IAClD,IAAI,EAAE,qBAAc;IACpB,IAAI,EAAE,4BAA4B;IAClC,WAAW,EAAE,4BAA4B;IACzC,WAAW,EAAE,yEAAyE;IACtF,QAAQ,EAAE,IAAI;IACd,UAAU,EAAE;QACV,WAAW,EACT,0lBAA0lB;QAC5lB,UAAU,EAAE,KAAK;KAClB;IACD,YAAY,EAAE,0DAAyC;IACvD,KAAK,EAAE;QACL,UAAU,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC7B,WAAW,EAAE,aAAa;YAC1B,WAAW,EAAE,sCAAsC;YACnD,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,QAAQ,EAAE,2BAAQ,CAAC,QAAQ,CAAC;YAC1B,WAAW,EAAE,kBAAkB;YAC/B,WAAW,EAAE,oFAAoF;YACjG,QAAQ,EAAE,IAAI;SACf,CAAC;KACH;IACK,GAAG,CAAC,OAAO;;;YACf,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC;YACpD,MAAM,UAAU,GAAG,MAAM,IAAA,yBAAkB,EAAC,OAAO,CAAC,IAAI,CAAC,CAAC;YAC1D,MAAM,IAAI,GAAG,IAAA,WAAU,EAAC,EAAE,OAAO,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BAAU,CAAC,uBAAuB,CAAC,QAAQ,CAAC,CAAC,CAAC;YAE/D,IAAI,CAAC;gBACH,MAAM,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,EAAE,UAAU,EAAE,WAAW,EAAE,EAAE,QAAQ,EAAE,EAAE,CAAC,CAAC;YAC9E,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACf,MAAM,IAAI,KAAK,CAAC,mBAAU,CAAC,WAAW,CAAC,KAAK,EAAE,qBAAqB,CAAC,CAAC,CAAC;YACxE,CAAC;YAED,OAAO;gBACL,OAAO,EAAE,IAAI;gBACb,UAAU;gBACV,GAAG,EAAE,sCAAsC,UAAU,OAAO;aAC7D,CAAC;QACJ,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -0,0 +1,9 @@
1
+ export declare const replaceImage: import("@agnocon/pieces-framework").IAction<(import("@agnocon/pieces-framework").OAuth2Property<import("@agnocon/pieces-framework").OAuth2Props> | import("@agnocon/pieces-framework").CustomAuthProperty<{
2
+ serviceAccount: import("@agnocon/pieces-framework").LongTextProperty<true>;
3
+ userEmail: import("@agnocon/pieces-framework").ShortTextProperty<false>;
4
+ }>)[], {
5
+ documentId: import("@agnocon/pieces-framework").ShortTextProperty<true>;
6
+ imageObjectId: import("@agnocon/pieces-framework").ShortTextProperty<true>;
7
+ uri: import("@agnocon/pieces-framework").ShortTextProperty<true>;
8
+ }>;
9
+ //# sourceMappingURL=replace-image.action.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"replace-image.action.d.ts","sourceRoot":"","sources":["../../../src/lib/actions/replace-image.action.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,YAAY;;;;;;;EAqDvB,CAAC"}