@divyacon/piece-google-docs 0.0.0-stage → 0.1.1

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 +48 -4
  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,107 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createDocumentBasedOnTemplate = void 0;
4
+ const tslib_1 = require("tslib");
5
+ // Vendored from Activepieces packages/pieces/community/google-docs/src/lib/actions/create-document-based-on-template.action.ts (MIT).
6
+ // Generated by packages/scripts/vendor-ap.mjs - do not edit by hand.
7
+ /* eslint-disable @typescript-eslint/no-explicit-any */
8
+ const auth_1 = require("../auth");
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
+ const PLACEHOLDER_FORMATS = {
13
+ 'curly_braces': '{{KEY}}',
14
+ 'square_brackets': '[[KEY]]',
15
+ 'single_curly': '{KEY}',
16
+ 'single_square': '[KEY]',
17
+ '{{KEY}}': '{{KEY}}',
18
+ '[[KEY]]': '[[KEY]]',
19
+ '{KEY}': '{KEY}',
20
+ '[KEY]': '[KEY]',
21
+ };
22
+ exports.createDocumentBasedOnTemplate = (0, pieces_framework_1.createAction)({
23
+ auth: auth_1.googleDocsAuth,
24
+ name: 'create_document_based_on_template',
25
+ description: 'Edit a template file and replace the values with the ones provided',
26
+ audience: 'both',
27
+ aiMetadata: {
28
+ description: 'Fills a Google Docs template in place by find-and-replacing placeholder tokens (e.g. [[KEY]] or {{KEY}}) with supplied key/value pairs and swapping placeholder images by object ID. Use when an agent has an existing template document and wants to merge data into it rather than build a doc from scratch. Requires the target document ID and the matching placeholder format; idempotent since re-running with the same values replaces no remaining placeholders and leaves the document unchanged.',
29
+ idempotent: true,
30
+ },
31
+ displayName: 'Edit template file',
32
+ props: {
33
+ template: pieces_framework_1.Property.ShortText({
34
+ displayName: 'Destination File',
35
+ description: 'The ID of the file to replace the values',
36
+ required: true,
37
+ }),
38
+ values: pieces_framework_1.Property.Object({
39
+ displayName: 'Variables',
40
+ description: 'Dont include the placeholder format "[[]]" or "{{}}", only the key name and its value',
41
+ required: true,
42
+ }),
43
+ images: pieces_framework_1.Property.Object({
44
+ displayName: 'Images',
45
+ description: 'Key: Image ID (get it manually from the Read File Action), Value: Image URL',
46
+ required: true,
47
+ }),
48
+ placeholder_format: pieces_framework_1.Property.StaticDropdown({
49
+ displayName: 'Placeholder Format',
50
+ description: 'Choose the format of placeholders in your template',
51
+ required: true,
52
+ defaultValue: 'square_brackets',
53
+ options: {
54
+ disabled: false,
55
+ options: [
56
+ { label: 'Curly Braces {{}}', value: 'curly_braces' },
57
+ { label: 'Square Brackets [[]]', value: 'square_brackets' },
58
+ { label: 'Single Curly Braces {}', value: 'single_curly' },
59
+ { label: 'Single Square Brackets []', value: 'single_square' }
60
+ ],
61
+ },
62
+ }),
63
+ },
64
+ outputSchema: output_schemas_1.editTemplateActionOutputSchema,
65
+ run(context) {
66
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
67
+ const documentId = context.propsValue.template;
68
+ const values = context.propsValue.values;
69
+ const placeholderType = context.propsValue.placeholder_format;
70
+ const placeholder_format = PLACEHOLDER_FORMATS[placeholderType] || '[[KEY]]';
71
+ const authClient = yield (0, auth_1.createGoogleClient)(context.auth);
72
+ const docs = (0, docs_1.docs)('v1');
73
+ const requests = [];
74
+ for (const key in values) {
75
+ const value = values[key];
76
+ const new_key = placeholder_format.replace('KEY', key);
77
+ requests.push({
78
+ replaceAllText: {
79
+ containsText: {
80
+ text: new_key,
81
+ matchCase: true,
82
+ },
83
+ replaceText: String(value),
84
+ },
85
+ });
86
+ }
87
+ for (const key in context.propsValue.images) {
88
+ const value = context.propsValue.images[key];
89
+ requests.push({
90
+ replaceImage: {
91
+ imageObjectId: key,
92
+ uri: String(value),
93
+ },
94
+ });
95
+ }
96
+ const res = yield docs.documents.batchUpdate({
97
+ auth: authClient,
98
+ documentId,
99
+ requestBody: {
100
+ requests: requests,
101
+ },
102
+ });
103
+ return res;
104
+ });
105
+ },
106
+ });
107
+ //# sourceMappingURL=create-document-based-on-template.action.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-document-based-on-template.action.js","sourceRoot":"","sources":["../../../src/lib/actions/create-document-based-on-template.action.ts"],"names":[],"mappings":";;;;AAAA,sIAAsI;AACtI,qEAAqE;AACrE,uDAAuD;AACvD,kCAA6D;AAC7D,gEAAmE;AACnE,2CAAsD;AACtD,sDAAmE;AAEnE,MAAM,mBAAmB,GAA2B;IAClD,cAAc,EAAE,SAAS;IACzB,iBAAiB,EAAE,SAAS;IAC5B,cAAc,EAAE,OAAO;IACvB,eAAe,EAAE,OAAO;IACxB,SAAS,EAAE,SAAS;IACpB,SAAS,EAAE,SAAS;IACpB,OAAO,EAAE,OAAO;IAChB,OAAO,EAAE,OAAO;CACjB,CAAC;AAEW,QAAA,6BAA6B,GAAG,IAAA,+BAAY,EAAC;IACxD,IAAI,EAAE,qBAAc;IACpB,IAAI,EAAE,mCAAmC;IACzC,WAAW,EACT,oEAAoE;IACtE,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE;QACV,WAAW,EACT,4eAA4e;QAC9e,UAAU,EAAE,IAAI;KACjB;IACD,WAAW,EAAE,oBAAoB;IACjC,KAAK,EAAE;QACL,QAAQ,EAAE,2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C,OAAO,CAAC,IAAI,CAAC,CAAC;YAC1D,MAAM,IAAI,GAAG,IAAA,WAAU,EAAC,IAAI,CAAC,CAAC;YAE9B,MAAM,QAAQ,GAAG,EAAE,CAAC;YAEpB,KAAK,MAAM,GAAG,IAAI,MAAM,EAAE,CAAC;gBACzB,MAAM,KAAK,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC;gBAC1B,MAAM,OAAO,GAAG,kBAAkB,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;gBAEvD,QAAQ,CAAC,IAAI,CAAC;oBACZ,cAAc,EAAE;wBACd,YAAY,EAAE;4BACZ,IAAI,EAAE,OAAO;4BACb,SAAS,EAAE,IAAI;yBAChB;wBACD,WAAW,EAAE,MAAM,CAAC,KAAK,CAAC;qBAC3B;iBACF,CAAC,CAAC;YACL,CAAC;YAED,KAAK,MAAM,GAAG,IAAI,OAAO,CAAC,UAAU,CAAC,MAAM,EAAE,CAAC;gBAC5C,MAAM,KAAK,GAAG,OAAO,CAAC,UAAU,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;gBAC7C,QAAQ,CAAC,IAAI,CAAC;oBACZ,YAAY,EAAE;wBACZ,aAAa,EAAE,GAAG;wBAClB,GAAG,EAAE,MAAM,CAAC,KAAK,CAAC;qBACnB;iBACF,CAAC,CAAC;YACL,CAAC;YAED,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;gBAC3C,IAAI,EAAE,UAAU;gBAChB,UAAU;gBACV,WAAW,EAAE;oBACX,QAAQ,EAAE,QAAQ;iBACnB;aACF,CAAC,CAAC;YAEH,OAAO,GAAG,CAAC;QACb,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -0,0 +1,8 @@
1
+ export declare const createDocumentFromMarkdown: 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
+ title: import("@agnocon/pieces-framework").ShortTextProperty<true>;
6
+ markdown: import("@agnocon/pieces-framework").LongTextProperty<true>;
7
+ }>;
8
+ //# sourceMappingURL=create-document-from-markdown.action.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-document-from-markdown.action.d.ts","sourceRoot":"","sources":["../../../src/lib/actions/create-document-from-markdown.action.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,0BAA0B;;;;;;EAwDrC,CAAC"}
@@ -0,0 +1,69 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createDocumentFromMarkdown = void 0;
4
+ const tslib_1 = require("tslib");
5
+ // Vendored from Activepieces packages/pieces/community/google-docs/src/lib/actions/create-document-from-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.createDocumentFromMarkdown = (0, pieces_framework_1.createAction)({
13
+ auth: auth_1.googleDocsAuth,
14
+ name: 'create_document_from_markdown',
15
+ displayName: 'Create Document from Markdown',
16
+ description: 'Create a Google Docs document from Markdown content',
17
+ audience: 'ai',
18
+ aiMetadata: {
19
+ description: 'Creates a new Google Docs document and populates it from Markdown text, converting headings (#, ##, ###), bullet lists (-, *, +), and paragraphs into native Google Docs formatting. Use when an agent has Markdown content (the format LLMs produce natively) and wants a formatted document in one call. Inline styling such as bold/italic is inserted as plain text. Not idempotent: each call creates a new document.',
20
+ idempotent: false,
21
+ },
22
+ outputSchema: output_schemas_1.createDocumentFromMarkdownActionOutputSchema,
23
+ props: {
24
+ title: pieces_framework_1.Property.ShortText({
25
+ displayName: 'Title',
26
+ description: 'The title (and file name) of the new document.',
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
+ const { title, markdown } = context.propsValue;
38
+ const authClient = yield (0, auth_1.createGoogleClient)(context.auth);
39
+ const docs = (0, docs_1.docs)({ version: 'v1', auth: authClient });
40
+ let documentId;
41
+ try {
42
+ const created = yield docs.documents.create({ requestBody: { title } });
43
+ if (!created.data.documentId) {
44
+ throw new Error('Google Docs did not return a document ID for the new document.');
45
+ }
46
+ documentId = created.data.documentId;
47
+ }
48
+ catch (error) {
49
+ throw new Error(common_1.docsCommon.formatError(error, 'create'));
50
+ }
51
+ const requests = common_1.docsCommon.markdownToBatchRequests(markdown);
52
+ if (requests.length > 0) {
53
+ try {
54
+ yield docs.documents.batchUpdate({ documentId, requestBody: { requests } });
55
+ }
56
+ catch (error) {
57
+ throw new Error(common_1.docsCommon.formatError(error, 'populate the new'));
58
+ }
59
+ }
60
+ return {
61
+ success: true,
62
+ documentId,
63
+ title,
64
+ url: `https://docs.google.com/document/d/${documentId}/edit`,
65
+ };
66
+ });
67
+ },
68
+ });
69
+ //# sourceMappingURL=create-document-from-markdown.action.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-document-from-markdown.action.js","sourceRoot":"","sources":["../../../src/lib/actions/create-document-from-markdown.action.ts"],"names":[],"mappings":";;;;AAAA,kIAAkI;AAClI,qEAAqE;AACrE,kCAA6D;AAC7D,sCAAuC;AACvC,gEAAmE;AACnE,2CAAsD;AACtD,sDAAiF;AAEpE,QAAA,0BAA0B,GAAG,IAAA,+BAAY,EAAC;IACrD,IAAI,EAAE,qBAAc;IACpB,IAAI,EAAE,+BAA+B;IACrC,WAAW,EAAE,+BAA+B;IAC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AM,QAAQ,GAAG,mBAAU,CAAC,uBAAuB,CAAC,QAAQ,CAAC,CAAC;YAC9D,IAAI,QAAQ,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;gBACxB,IAAI,CAAC;oBACH,MAAM,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,EAAE,UAAU,EAAE,WAAW,EAAE,EAAE,QAAQ,EAAE,EAAE,CAAC,CAAC;gBAC9E,CAAC;gBAAC,OAAO,KAAK,EAAE,CAAC;oBACf,MAAM,IAAI,KAAK,CAAC,mBAAU,CAAC,WAAW,CAAC,KAAK,EAAE,kBAAkB,CAAC,CAAC,CAAC;gBACrE,CAAC;YACH,CAAC;YAED,OAAO;gBACL,OAAO,EAAE,IAAI;gBACb,UAAU;gBACV,KAAK;gBACL,GAAG,EAAE,sCAAsC,UAAU,OAAO;aAC7D,CAAC;QACJ,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -0,0 +1,8 @@
1
+ export declare const createDocument: 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
+ title: import("@agnocon/pieces-framework").ShortTextProperty<true>;
6
+ body: import("@agnocon/pieces-framework").LongTextProperty<true>;
7
+ }>;
8
+ //# sourceMappingURL=create-document.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-document.d.ts","sourceRoot":"","sources":["../../../src/lib/actions/create-document.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,cAAc;;;;;;EA8BzB,CAAC"}
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createDocument = void 0;
4
+ const tslib_1 = require("tslib");
5
+ // Vendored from Activepieces packages/pieces/community/google-docs/src/lib/actions/create-document.ts (MIT).
6
+ // Generated by packages/scripts/vendor-ap.mjs - do not edit by hand.
7
+ const pieces_framework_1 = require("@agnocon/pieces-framework");
8
+ const common_1 = require("../common");
9
+ const auth_1 = require("../auth");
10
+ const output_schemas_1 = require("../output-schemas");
11
+ exports.createDocument = (0, pieces_framework_1.createAction)({
12
+ auth: auth_1.googleDocsAuth,
13
+ name: 'create_document',
14
+ description: 'Create a document on Google Docs',
15
+ audience: 'human',
16
+ aiMetadata: {
17
+ description: 'Creates a brand-new Google Docs document with the given title and writes the provided text into it. Use when an agent needs to generate a fresh document from content it has produced; to add to an existing document use Append Text instead. Not idempotent: every call creates a separate new document.',
18
+ idempotent: false,
19
+ },
20
+ displayName: 'Create Document',
21
+ props: {
22
+ title: common_1.docsCommon.title,
23
+ body: common_1.docsCommon.body,
24
+ },
25
+ outputSchema: output_schemas_1.createDocumentActionOutputSchema,
26
+ run(context) {
27
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
28
+ const accessToken = yield (0, auth_1.getAccessToken)(context.auth);
29
+ const document = yield common_1.docsCommon.createDocument(context.propsValue.title, accessToken);
30
+ const response = yield common_1.docsCommon.writeToDocument(document.documentId, context.propsValue.body, accessToken);
31
+ return response;
32
+ });
33
+ },
34
+ });
35
+ //# sourceMappingURL=create-document.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-document.js","sourceRoot":"","sources":["../../../src/lib/actions/create-document.ts"],"names":[],"mappings":";;;;AAAA,6GAA6G;AAC7G,qEAAqE;AACrE,gEAAyD;AACzD,sCAAuC;AACvC,kCAAyD;AACzD,sDAAqE;AAExD,QAAA,cAAc,GAAG,IAAA,+BAAY,EAAC;IACzC,IAAI,EAAE,qBAAc;IACpB,IAAI,EAAE,iBAAiB;IACvB,WAAW,EAAE,kCAAkC;IAC/C,QAAQ,EAAE,OAAO;IACjB,UAAU,EAAE;QACV,WAAW,EACT,4SAA4S;QAC9S,UAAU,EAAE,KAAK;KAClB;IACD,WAAW,EAAE,iBAAiB;IAC9B,KAAK,EAAE;QACL,KAAK,EAAE,mBAAU,CAAC,KAAK;QACvB,IAAI,EAAE,mBAAU,CAAC,IAAI;KACtB;IACD,YAAY,EAAE,iDAAgC;IACxC,GAAG,CAAC,OAAO;;YACf,MAAM,WAAW,GAAG,MAAM,IAAA,qBAAc,EAAC,OAAO,CAAC,IAAI,CAAC,CAAC;YACvD,MAAM,QAAQ,GAAG,MAAM,mBAAU,CAAC,cAAc,CAC9C,OAAO,CAAC,UAAU,CAAC,KAAK,EACxB,WAAW,CACZ,CAAC;YACF,MAAM,QAAQ,GAAG,MAAM,mBAAU,CAAC,eAAe,CAC/C,QAAQ,CAAC,UAAU,EACnB,OAAO,CAAC,UAAU,CAAC,IAAI,EACvB,WAAW,CACZ,CAAC;YAEF,OAAO,QAAQ,CAAC;QAClB,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -0,0 +1,8 @@
1
+ export declare const createFooter: 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
+ type: import("@agnocon/pieces-framework").StaticDropdownProperty<string, false>;
7
+ }>;
8
+ //# sourceMappingURL=create-footer.action.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-footer.action.d.ts","sourceRoot":"","sources":["../../../src/lib/actions/create-footer.action.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,YAAY;;;;;;EAoDvB,CAAC"}
@@ -0,0 +1,66 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createFooter = void 0;
4
+ const tslib_1 = require("tslib");
5
+ // Vendored from Activepieces packages/pieces/community/google-docs/src/lib/actions/create-footer.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.createFooter = (0, pieces_framework_1.createAction)({
13
+ auth: auth_1.googleDocsAuth,
14
+ name: 'create_footer',
15
+ displayName: 'Create Footer',
16
+ description: 'Create a footer section in a Google Docs document',
17
+ audience: 'ai',
18
+ aiMetadata: {
19
+ description: 'Creates a footer section in a Google Docs document and returns the new footerId. Use this when you need to add a footer to a document before inserting footer text — the footerId returned here is required by any subsequent Insert Text call targeting the footer segment. Each call creates a new footer; not idempotent.',
20
+ idempotent: false,
21
+ },
22
+ outputSchema: output_schemas_1.createFooterActionOutputSchema,
23
+ props: {
24
+ documentId: pieces_framework_1.Property.ShortText({
25
+ displayName: 'Document ID',
26
+ description: 'The ID of the document to add a footer to (from the document URL or Search Documents).',
27
+ required: true,
28
+ }),
29
+ type: pieces_framework_1.Property.StaticDropdown({
30
+ displayName: 'Footer Type',
31
+ description: 'The type of footer to create. DEFAULT is the standard document footer.',
32
+ required: false,
33
+ defaultValue: 'DEFAULT',
34
+ options: {
35
+ options: [
36
+ { label: 'Default', value: 'DEFAULT' },
37
+ ],
38
+ },
39
+ }),
40
+ },
41
+ run(context) {
42
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
43
+ var _a, _b, _c, _d;
44
+ const { documentId, type } = context.propsValue;
45
+ const authClient = yield (0, auth_1.createGoogleClient)(context.auth);
46
+ const docs = (0, docs_1.docs)({ version: 'v1', auth: authClient });
47
+ const request = {
48
+ createFooter: {
49
+ type: (type !== null && type !== void 0 ? type : 'DEFAULT'),
50
+ },
51
+ };
52
+ try {
53
+ const response = yield docs.documents.batchUpdate({
54
+ documentId,
55
+ requestBody: { requests: [request] },
56
+ });
57
+ const footerId = (_d = (_c = (_b = (_a = response.data.replies) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.createFooter) === null || _c === void 0 ? void 0 : _c.footerId) !== null && _d !== void 0 ? _d : null;
58
+ return { success: true, documentId, footerId };
59
+ }
60
+ catch (error) {
61
+ throw new Error(common_1.docsCommon.formatError(error, 'create the footer in'));
62
+ }
63
+ });
64
+ },
65
+ });
66
+ //# sourceMappingURL=create-footer.action.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-footer.action.js","sourceRoot":"","sources":["../../../src/lib/actions/create-footer.action.ts"],"names":[],"mappings":";;;;AAAA,kHAAkH;AAClH,qEAAqE;AACrE,kCAA6D;AAC7D,sCAAuC;AACvC,gEAAmE;AACnE,2CAA+D;AAC/D,sDAAmE;AAEtD,QAAA,YAAY,GAAG,IAAA,+BAAY,EAAC;IACvC,IAAI,EAAE,qBAAc;IACpB,IAAI,EAAE,eAAe;IACrB,WAAW,EAAE,eAAe;IAC5B,WAAW,EAAE,mDAAmD;IAChE,QAAQ,EAAE,IAAI;IACd,UAAU,EAAE;QACV,WAAW,EACT,8TAA8T;QAChU,UAAU,EAAE,KAAK;KAClB;IACD,YAAY,EAAE,+CAA8B;IAC5C,KAAK,EAAE;QACL,UAAU,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC7B,WAAW,EAAE,aAAa;YAC1B,WAAW,EAAE,wFAAwF;YACrG,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,IAAI,EAAE,2BAAQ,CAAC,cAAc,CAAC;YAC5B,WAAW,EAAE,aAAa;YAC1B,WAAW,EAAE,wEAAwE;YACrF,QAAQ,EAAE,KAAK;YACf,YAAY,EAAE,SAAS;YACvB,OAAO,EAAE;gBACP,OAAO,EAAE;oBACP,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE;iBACvC;aACF;SACF,CAAC;KACH;IACK,GAAG,CAAC,OAAO;;;YACf,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC;YAChD,MAAM,UAAU,GAAG,MAAM,IAAA,yBAAkB,EAAC,OAAO,CAAC,IAAI,CAAC,CAAC;YAC1D,MAAM,IAAI,GAAG,IAAA,WAAU,EAAC,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC,CAAC;YAE7D,MAAM,OAAO,GAA2B;gBACtC,YAAY,EAAE;oBACZ,IAAI,EAAE,CAAC,IAAI,aAAJ,IAAI,cAAJ,IAAI,GAAI,SAAS,CAA+C;iBACxE;aACF,CAAC;YAEF,IAAI,CAAC;gBACH,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;oBAChD,UAAU;oBACV,WAAW,EAAE,EAAE,QAAQ,EAAE,CAAC,OAAO,CAAC,EAAE;iBACrC,CAAC,CAAC;gBACH,MAAM,QAAQ,GAAG,MAAA,MAAA,MAAA,MAAA,QAAQ,CAAC,IAAI,CAAC,OAAO,0CAAG,CAAC,CAAC,0CAAE,YAAY,0CAAE,QAAQ,mCAAI,IAAI,CAAC;gBAC5E,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,CAAC;YACjD,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACf,MAAM,IAAI,KAAK,CAAC,mBAAU,CAAC,WAAW,CAAC,KAAK,EAAE,sBAAsB,CAAC,CAAC,CAAC;YACzE,CAAC;QACH,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -0,0 +1,8 @@
1
+ export declare const createFootnote: 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
+ index: import("@agnocon/pieces-framework").NumberProperty<false>;
7
+ }>;
8
+ //# sourceMappingURL=create-footnote.action.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-footnote.action.d.ts","sourceRoot":"","sources":["../../../src/lib/actions/create-footnote.action.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,cAAc;;;;;;EA8CzB,CAAC"}
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createFootnote = void 0;
4
+ const tslib_1 = require("tslib");
5
+ // Vendored from Activepieces packages/pieces/community/google-docs/src/lib/actions/create-footnote.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.createFootnote = (0, pieces_framework_1.createAction)({
13
+ auth: auth_1.googleDocsAuth,
14
+ name: 'create_footnote',
15
+ displayName: 'Create Footnote',
16
+ description: 'Insert a footnote at a character index in a Google Docs document',
17
+ audience: 'ai',
18
+ aiMetadata: {
19
+ description: 'Inserts a footnote at a specific character index inside an existing paragraph in a Google Docs document, or at the end of the body segment if no index is provided. Returns the new footnoteId, which can then be used to insert text into the footnote segment via Insert Text. The index must fall inside an existing paragraph — obtain a valid index from Get Document End Index or Read Document (cannot be guessed). Not idempotent.',
20
+ idempotent: false,
21
+ },
22
+ outputSchema: output_schemas_1.createFootnoteActionOutputSchema,
23
+ props: {
24
+ documentId: pieces_framework_1.Property.ShortText({
25
+ displayName: 'Document ID',
26
+ description: 'The ID of the document to insert a footnote into (from the document URL or Search Documents).',
27
+ required: true,
28
+ }),
29
+ index: pieces_framework_1.Property.Number({
30
+ displayName: 'Index',
31
+ description: 'Character index inside an existing paragraph where the footnote anchor is inserted. Leave empty to append at the end of the body segment. Obtain a valid index from Get Document End Index or Read Document — cannot be guessed.',
32
+ required: false,
33
+ }),
34
+ },
35
+ run(context) {
36
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
37
+ var _a, _b, _c, _d;
38
+ const { documentId, index } = context.propsValue;
39
+ const authClient = yield (0, auth_1.createGoogleClient)(context.auth);
40
+ const docs = (0, docs_1.docs)({ version: 'v1', auth: authClient });
41
+ const request = index === undefined || index === null
42
+ ? { createFootnote: { endOfSegmentLocation: {} } }
43
+ : { createFootnote: { location: { index } } };
44
+ try {
45
+ const response = yield docs.documents.batchUpdate({
46
+ documentId,
47
+ requestBody: { requests: [request] },
48
+ });
49
+ const footnoteId = (_d = (_c = (_b = (_a = response.data.replies) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.createFootnote) === null || _c === void 0 ? void 0 : _c.footnoteId) !== null && _d !== void 0 ? _d : null;
50
+ return { success: true, documentId, footnoteId };
51
+ }
52
+ catch (error) {
53
+ throw new Error(common_1.docsCommon.formatError(error, 'create the footnote in'));
54
+ }
55
+ });
56
+ },
57
+ });
58
+ //# sourceMappingURL=create-footnote.action.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-footnote.action.js","sourceRoot":"","sources":["../../../src/lib/actions/create-footnote.action.ts"],"names":[],"mappings":";;;;AAAA,oHAAoH;AACpH,qEAAqE;AACrE,kCAA6D;AAC7D,sCAAuC;AACvC,gEAAmE;AACnE,2CAA+D;AAC/D,sDAAqE;AAExD,QAAA,cAAc,GAAG,IAAA,+BAAY,EAAC;IACzC,IAAI,EAAE,qBAAc;IACpB,IAAI,EAAE,iBAAiB;IACvB,WAAW,EAAE,iBAAiB;IAC9B,WAAW,EAAE,kEAAkE;IAC/E,QAAQ,EAAE,IAAI;IACd,UAAU,EAAE;QACV,WAAW,EACT,4aAA4a;QAC9a,UAAU,EAAE,KAAK;KAClB;IACD,YAAY,EAAE,iDAAgC;IAC9C,KAAK,EAAE;QACL,UAAU,EAAE,2BAAQ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AC,mBAAU,CAAC,WAAW,CAAC,KAAK,EAAE,wBAAwB,CAAC,CAAC,CAAC;YAC3E,CAAC;QACH,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -0,0 +1,8 @@
1
+ export declare const createHeader: 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
+ type: import("@agnocon/pieces-framework").StaticDropdownProperty<string, false>;
7
+ }>;
8
+ //# sourceMappingURL=create-header.action.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-header.action.d.ts","sourceRoot":"","sources":["../../../src/lib/actions/create-header.action.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,YAAY;;;;;;EAoDvB,CAAC"}
@@ -0,0 +1,66 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createHeader = void 0;
4
+ const tslib_1 = require("tslib");
5
+ // Vendored from Activepieces packages/pieces/community/google-docs/src/lib/actions/create-header.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.createHeader = (0, pieces_framework_1.createAction)({
13
+ auth: auth_1.googleDocsAuth,
14
+ name: 'create_header',
15
+ displayName: 'Create Header',
16
+ description: 'Create a header section in a Google Docs document',
17
+ audience: 'ai',
18
+ aiMetadata: {
19
+ description: 'Creates a header section in a Google Docs document and returns the new headerId. Use this when you need to add a header to a document before inserting header text — the headerId returned here is required by any subsequent Insert Text call targeting the header segment. Each call creates a new header; not idempotent.',
20
+ idempotent: false,
21
+ },
22
+ outputSchema: output_schemas_1.createHeaderActionOutputSchema,
23
+ props: {
24
+ documentId: pieces_framework_1.Property.ShortText({
25
+ displayName: 'Document ID',
26
+ description: 'The ID of the document to add a header to (from the document URL or Search Documents).',
27
+ required: true,
28
+ }),
29
+ type: pieces_framework_1.Property.StaticDropdown({
30
+ displayName: 'Header Type',
31
+ description: 'The type of header to create. DEFAULT is the standard document header.',
32
+ required: false,
33
+ defaultValue: 'DEFAULT',
34
+ options: {
35
+ options: [
36
+ { label: 'Default', value: 'DEFAULT' },
37
+ ],
38
+ },
39
+ }),
40
+ },
41
+ run(context) {
42
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
43
+ var _a, _b, _c, _d;
44
+ const { documentId, type } = context.propsValue;
45
+ const authClient = yield (0, auth_1.createGoogleClient)(context.auth);
46
+ const docs = (0, docs_1.docs)({ version: 'v1', auth: authClient });
47
+ const request = {
48
+ createHeader: {
49
+ type: (type !== null && type !== void 0 ? type : 'DEFAULT'),
50
+ },
51
+ };
52
+ try {
53
+ const response = yield docs.documents.batchUpdate({
54
+ documentId,
55
+ requestBody: { requests: [request] },
56
+ });
57
+ const headerId = (_d = (_c = (_b = (_a = response.data.replies) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.createHeader) === null || _c === void 0 ? void 0 : _c.headerId) !== null && _d !== void 0 ? _d : null;
58
+ return { success: true, documentId, headerId };
59
+ }
60
+ catch (error) {
61
+ throw new Error(common_1.docsCommon.formatError(error, 'create the header in'));
62
+ }
63
+ });
64
+ },
65
+ });
66
+ //# sourceMappingURL=create-header.action.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-header.action.js","sourceRoot":"","sources":["../../../src/lib/actions/create-header.action.ts"],"names":[],"mappings":";;;;AAAA,kHAAkH;AAClH,qEAAqE;AACrE,kCAA6D;AAC7D,sCAAuC;AACvC,gEAAmE;AACnE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UAAU;oBACV,WAAW,EAAE,EAAE,QAAQ,EAAE,CAAC,OAAO,CAAC,EAAE;iBACrC,CAAC,CAAC;gBACH,MAAM,QAAQ,GAAG,MAAA,MAAA,MAAA,MAAA,QAAQ,CAAC,IAAI,CAAC,OAAO,0CAAG,CAAC,CAAC,0CAAE,YAAY,0CAAE,QAAQ,mCAAI,IAAI,CAAC;gBAC5E,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,CAAC;YACjD,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACf,MAAM,IAAI,KAAK,CAAC,mBAAU,CAAC,WAAW,CAAC,KAAK,EAAE,sBAAsB,CAAC,CAAC,CAAC;YACzE,CAAC;QACH,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -0,0 +1,10 @@
1
+ export declare const createNamedRange: 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
+ name: import("@agnocon/pieces-framework").ShortTextProperty<true>;
7
+ startIndex: import("@agnocon/pieces-framework").NumberProperty<true>;
8
+ endIndex: import("@agnocon/pieces-framework").NumberProperty<true>;
9
+ }>;
10
+ //# sourceMappingURL=create-named-range.action.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-named-range.action.d.ts","sourceRoot":"","sources":["../../../src/lib/actions/create-named-range.action.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,gBAAgB;;;;;;;;EA+D3B,CAAC"}
@@ -0,0 +1,74 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createNamedRange = void 0;
4
+ const tslib_1 = require("tslib");
5
+ // Vendored from Activepieces packages/pieces/community/google-docs/src/lib/actions/create-named-range.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.createNamedRange = (0, pieces_framework_1.createAction)({
13
+ auth: auth_1.googleDocsAuth,
14
+ name: 'create_named_range',
15
+ displayName: 'Create Named Range',
16
+ description: 'Create a named range over a character range in a Google Docs document',
17
+ audience: 'ai',
18
+ aiMetadata: {
19
+ description: 'Creates a named range over a specified character range in a Google Docs document body and returns the new namedRangeId. Named ranges let you bookmark a region for later operations (e.g. deletion, styling) by ID or by name. The startIndex and endIndex must be valid character positions inside the document body — obtain them from Get Document End Index or Read Document (cannot be guessed). Not idempotent.',
20
+ idempotent: false,
21
+ },
22
+ outputSchema: output_schemas_1.createNamedRangeActionOutputSchema,
23
+ props: {
24
+ documentId: pieces_framework_1.Property.ShortText({
25
+ displayName: 'Document ID',
26
+ description: 'The ID of the document to add a named range to (from the document URL or Search Documents).',
27
+ required: true,
28
+ }),
29
+ name: pieces_framework_1.Property.ShortText({
30
+ displayName: 'Range Name',
31
+ description: 'A human-readable name for the range. Multiple named ranges in the same document can share the same name.',
32
+ required: true,
33
+ }),
34
+ startIndex: pieces_framework_1.Property.Number({
35
+ displayName: 'Start Index',
36
+ description: 'Inclusive start character index of the range. Obtain from Get Document End Index or Read Document — cannot be guessed.',
37
+ required: true,
38
+ }),
39
+ endIndex: pieces_framework_1.Property.Number({
40
+ displayName: 'End Index',
41
+ description: 'Exclusive end character index of the range. Must be greater than Start Index. Obtain from Get Document End Index or Read Document — cannot be guessed.',
42
+ required: true,
43
+ }),
44
+ },
45
+ run(context) {
46
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
47
+ var _a, _b, _c, _d;
48
+ const { documentId, name, startIndex, endIndex } = context.propsValue;
49
+ if (endIndex <= startIndex) {
50
+ throw new Error('End Index must be greater than Start Index.');
51
+ }
52
+ const authClient = yield (0, auth_1.createGoogleClient)(context.auth);
53
+ const docs = (0, docs_1.docs)({ version: 'v1', auth: authClient });
54
+ const request = {
55
+ createNamedRange: {
56
+ name,
57
+ range: { startIndex, endIndex },
58
+ },
59
+ };
60
+ try {
61
+ const response = yield docs.documents.batchUpdate({
62
+ documentId,
63
+ requestBody: { requests: [request] },
64
+ });
65
+ const namedRangeId = (_d = (_c = (_b = (_a = response.data.replies) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.createNamedRange) === null || _c === void 0 ? void 0 : _c.namedRangeId) !== null && _d !== void 0 ? _d : null;
66
+ return { success: true, documentId, name, namedRangeId };
67
+ }
68
+ catch (error) {
69
+ throw new Error(common_1.docsCommon.formatError(error, 'create the named range in'));
70
+ }
71
+ });
72
+ },
73
+ });
74
+ //# sourceMappingURL=create-named-range.action.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-named-range.action.js","sourceRoot":"","sources":["../../../src/lib/actions/create-named-range.action.ts"],"names":[],"mappings":";;;;AAAA,uHAAuH;AACvH,qEAAqE;AACrE,kCAA6D;AAC7D,sCAAuC;AACvC,gEAAmE;AACnE,2CAA+D;AAC/D,sDAAuE;AAE1D,QAAA,gBAAgB,GAAG,IAAA,+BAAY,EAAC;IAC3C,IAAI,EAAE,qBAAc;IACpB,IAAI,EAAE,oBAAoB;IAC1B,WAAW,EAAE,oBAAoB;IACjC,WAAW,EAAE,uEAAuE;IACpF,QAAQ,EAAE,IAAI;IACd,UAAU,EAAE;QACV,WAAW,EACT,uZAAuZ;QACzZ,UAAU,EAAE,KAAK;KAClB;IACD,YAAY,EAAE,mDAAkC;IAChD,KAAK,EAAE;QACL,UAAU,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC7B,WAAW,EAAE,aAAa;YAC1B,WAAW,EAAE,6FAA6F;YAC1G,Q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AO,0CAAG,CAAC,CAAC,0CAAE,gBAAgB,0CAAE,YAAY,mCAAI,IAAI,CAAC;gBACxF,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;YAC3D,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACf,MAAM,IAAI,KAAK,CAAC,mBAAU,CAAC,WAAW,CAAC,KAAK,EAAE,2BAA2B,CAAC,CAAC,CAAC;YAC9E,CAAC;QACH,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -0,0 +1,10 @@
1
+ export declare const createParagraphBullets: 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
+ startIndex: import("@agnocon/pieces-framework").NumberProperty<true>;
7
+ endIndex: import("@agnocon/pieces-framework").NumberProperty<true>;
8
+ bulletPreset: import("@agnocon/pieces-framework").StaticDropdownProperty<string, false>;
9
+ }>;
10
+ //# sourceMappingURL=create-paragraph-bullets.action.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-paragraph-bullets.action.d.ts","sourceRoot":"","sources":["../../../src/lib/actions/create-paragraph-bullets.action.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,sBAAsB;;;;;;;;EAwFjC,CAAC"}