@keystrokehq/moneybird 0.1.3 → 0.1.5

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 (181) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/add-note-to-contact.cjs +1 -0
  4. package/dist/actions/add-note-to-contact.cjs.map +1 -1
  5. package/dist/actions/add-note-to-contact.d.cts +3 -9
  6. package/dist/actions/add-note-to-contact.d.cts.map +1 -1
  7. package/dist/actions/add-note-to-contact.d.mts +3 -9
  8. package/dist/actions/add-note-to-contact.d.mts.map +1 -1
  9. package/dist/actions/add-note-to-contact.mjs +1 -0
  10. package/dist/actions/add-note-to-contact.mjs.map +1 -1
  11. package/dist/actions/archive-contact.cjs +1 -0
  12. package/dist/actions/archive-contact.cjs.map +1 -1
  13. package/dist/actions/archive-contact.d.cts +3 -4
  14. package/dist/actions/archive-contact.d.cts.map +1 -1
  15. package/dist/actions/archive-contact.d.mts +3 -4
  16. package/dist/actions/archive-contact.d.mts.map +1 -1
  17. package/dist/actions/archive-contact.mjs +1 -0
  18. package/dist/actions/archive-contact.mjs.map +1 -1
  19. package/dist/actions/create-contact-person.cjs +1 -0
  20. package/dist/actions/create-contact-person.cjs.map +1 -1
  21. package/dist/actions/create-contact-person.d.cts +3 -11
  22. package/dist/actions/create-contact-person.d.cts.map +1 -1
  23. package/dist/actions/create-contact-person.d.mts +3 -11
  24. package/dist/actions/create-contact-person.d.mts.map +1 -1
  25. package/dist/actions/create-contact-person.mjs +1 -0
  26. package/dist/actions/create-contact-person.mjs.map +1 -1
  27. package/dist/actions/create-contact.cjs +1 -0
  28. package/dist/actions/create-contact.cjs.map +1 -1
  29. package/dist/actions/create-contact.d.cts +3 -31
  30. package/dist/actions/create-contact.d.cts.map +1 -1
  31. package/dist/actions/create-contact.d.mts +3 -31
  32. package/dist/actions/create-contact.d.mts.map +1 -1
  33. package/dist/actions/create-contact.mjs +1 -0
  34. package/dist/actions/create-contact.mjs.map +1 -1
  35. package/dist/actions/create-sales-invoice.cjs +1 -0
  36. package/dist/actions/create-sales-invoice.cjs.map +1 -1
  37. package/dist/actions/create-sales-invoice.d.cts +3 -37
  38. package/dist/actions/create-sales-invoice.d.cts.map +1 -1
  39. package/dist/actions/create-sales-invoice.d.mts +3 -37
  40. package/dist/actions/create-sales-invoice.d.mts.map +1 -1
  41. package/dist/actions/create-sales-invoice.mjs +1 -0
  42. package/dist/actions/create-sales-invoice.mjs.map +1 -1
  43. package/dist/actions/delete-contact-note.cjs +1 -0
  44. package/dist/actions/delete-contact-note.cjs.map +1 -1
  45. package/dist/actions/delete-contact-note.d.cts +3 -5
  46. package/dist/actions/delete-contact-note.d.cts.map +1 -1
  47. package/dist/actions/delete-contact-note.d.mts +3 -5
  48. package/dist/actions/delete-contact-note.d.mts.map +1 -1
  49. package/dist/actions/delete-contact-note.mjs +1 -0
  50. package/dist/actions/delete-contact-note.mjs.map +1 -1
  51. package/dist/actions/delete-contact-person.cjs +1 -0
  52. package/dist/actions/delete-contact-person.cjs.map +1 -1
  53. package/dist/actions/delete-contact-person.d.cts +3 -5
  54. package/dist/actions/delete-contact-person.d.cts.map +1 -1
  55. package/dist/actions/delete-contact-person.d.mts +3 -5
  56. package/dist/actions/delete-contact-person.d.mts.map +1 -1
  57. package/dist/actions/delete-contact-person.mjs +1 -0
  58. package/dist/actions/delete-contact-person.mjs.map +1 -1
  59. package/dist/actions/delete-contact.cjs +1 -0
  60. package/dist/actions/delete-contact.cjs.map +1 -1
  61. package/dist/actions/delete-contact.d.cts +3 -4
  62. package/dist/actions/delete-contact.d.cts.map +1 -1
  63. package/dist/actions/delete-contact.d.mts +3 -4
  64. package/dist/actions/delete-contact.d.mts.map +1 -1
  65. package/dist/actions/delete-contact.mjs +1 -0
  66. package/dist/actions/delete-contact.mjs.map +1 -1
  67. package/dist/actions/filter-contacts.cjs +1 -0
  68. package/dist/actions/filter-contacts.cjs.map +1 -1
  69. package/dist/actions/filter-contacts.d.cts +3 -9
  70. package/dist/actions/filter-contacts.d.cts.map +1 -1
  71. package/dist/actions/filter-contacts.d.mts +3 -9
  72. package/dist/actions/filter-contacts.d.mts.map +1 -1
  73. package/dist/actions/filter-contacts.mjs +1 -0
  74. package/dist/actions/filter-contacts.mjs.map +1 -1
  75. package/dist/actions/get-additional-charges.cjs +1 -0
  76. package/dist/actions/get-additional-charges.cjs.map +1 -1
  77. package/dist/actions/get-additional-charges.d.cts +3 -5
  78. package/dist/actions/get-additional-charges.d.cts.map +1 -1
  79. package/dist/actions/get-additional-charges.d.mts +3 -5
  80. package/dist/actions/get-additional-charges.d.mts.map +1 -1
  81. package/dist/actions/get-additional-charges.mjs +1 -0
  82. package/dist/actions/get-additional-charges.mjs.map +1 -1
  83. package/dist/actions/get-contact-by-customer-id.cjs +1 -0
  84. package/dist/actions/get-contact-by-customer-id.cjs.map +1 -1
  85. package/dist/actions/get-contact-by-customer-id.d.cts +3 -4
  86. package/dist/actions/get-contact-by-customer-id.d.cts.map +1 -1
  87. package/dist/actions/get-contact-by-customer-id.d.mts +3 -4
  88. package/dist/actions/get-contact-by-customer-id.d.mts.map +1 -1
  89. package/dist/actions/get-contact-by-customer-id.mjs +1 -0
  90. package/dist/actions/get-contact-by-customer-id.mjs.map +1 -1
  91. package/dist/actions/get-contact-person.cjs +1 -0
  92. package/dist/actions/get-contact-person.cjs.map +1 -1
  93. package/dist/actions/get-contact-person.d.cts +3 -5
  94. package/dist/actions/get-contact-person.d.cts.map +1 -1
  95. package/dist/actions/get-contact-person.d.mts +3 -5
  96. package/dist/actions/get-contact-person.d.mts.map +1 -1
  97. package/dist/actions/get-contact-person.mjs +1 -0
  98. package/dist/actions/get-contact-person.mjs.map +1 -1
  99. package/dist/actions/get-contact.cjs +1 -0
  100. package/dist/actions/get-contact.cjs.map +1 -1
  101. package/dist/actions/get-contact.d.cts +3 -5
  102. package/dist/actions/get-contact.d.cts.map +1 -1
  103. package/dist/actions/get-contact.d.mts +3 -5
  104. package/dist/actions/get-contact.d.mts.map +1 -1
  105. package/dist/actions/get-contact.mjs +1 -0
  106. package/dist/actions/get-contact.mjs.map +1 -1
  107. package/dist/actions/get-sales-invoice.cjs +1 -0
  108. package/dist/actions/get-sales-invoice.cjs.map +1 -1
  109. package/dist/actions/get-sales-invoice.d.cts +3 -4
  110. package/dist/actions/get-sales-invoice.d.cts.map +1 -1
  111. package/dist/actions/get-sales-invoice.d.mts +3 -4
  112. package/dist/actions/get-sales-invoice.d.mts.map +1 -1
  113. package/dist/actions/get-sales-invoice.mjs +1 -0
  114. package/dist/actions/get-sales-invoice.mjs.map +1 -1
  115. package/dist/actions/list-administrations.cjs +1 -0
  116. package/dist/actions/list-administrations.cjs.map +1 -1
  117. package/dist/actions/list-administrations.d.cts +3 -1
  118. package/dist/actions/list-administrations.d.cts.map +1 -1
  119. package/dist/actions/list-administrations.d.mts +3 -1
  120. package/dist/actions/list-administrations.d.mts.map +1 -1
  121. package/dist/actions/list-administrations.mjs +1 -0
  122. package/dist/actions/list-administrations.mjs.map +1 -1
  123. package/dist/actions/list-contacts-synchronization.cjs +1 -0
  124. package/dist/actions/list-contacts-synchronization.cjs.map +1 -1
  125. package/dist/actions/list-contacts-synchronization.d.cts +3 -5
  126. package/dist/actions/list-contacts-synchronization.d.cts.map +1 -1
  127. package/dist/actions/list-contacts-synchronization.d.mts +3 -5
  128. package/dist/actions/list-contacts-synchronization.d.mts.map +1 -1
  129. package/dist/actions/list-contacts-synchronization.mjs +1 -0
  130. package/dist/actions/list-contacts-synchronization.mjs.map +1 -1
  131. package/dist/actions/list-sales-invoices.cjs +1 -0
  132. package/dist/actions/list-sales-invoices.cjs.map +1 -1
  133. package/dist/actions/list-sales-invoices.d.cts +3 -6
  134. package/dist/actions/list-sales-invoices.d.cts.map +1 -1
  135. package/dist/actions/list-sales-invoices.d.mts +3 -6
  136. package/dist/actions/list-sales-invoices.d.mts.map +1 -1
  137. package/dist/actions/list-sales-invoices.mjs +1 -0
  138. package/dist/actions/list-sales-invoices.mjs.map +1 -1
  139. package/dist/actions/request-contact-payments-mandate-url.cjs +1 -0
  140. package/dist/actions/request-contact-payments-mandate-url.cjs.map +1 -1
  141. package/dist/actions/request-contact-payments-mandate-url.d.cts +3 -5
  142. package/dist/actions/request-contact-payments-mandate-url.d.cts.map +1 -1
  143. package/dist/actions/request-contact-payments-mandate-url.d.mts +3 -5
  144. package/dist/actions/request-contact-payments-mandate-url.d.mts.map +1 -1
  145. package/dist/actions/request-contact-payments-mandate-url.mjs +1 -0
  146. package/dist/actions/request-contact-payments-mandate-url.mjs.map +1 -1
  147. package/dist/actions/update-contact-person.cjs +1 -0
  148. package/dist/actions/update-contact-person.cjs.map +1 -1
  149. package/dist/actions/update-contact-person.d.cts +3 -10
  150. package/dist/actions/update-contact-person.d.cts.map +1 -1
  151. package/dist/actions/update-contact-person.d.mts +3 -10
  152. package/dist/actions/update-contact-person.d.mts.map +1 -1
  153. package/dist/actions/update-contact-person.mjs +1 -0
  154. package/dist/actions/update-contact-person.mjs.map +1 -1
  155. package/dist/actions/update-contact.cjs +1 -0
  156. package/dist/actions/update-contact.cjs.map +1 -1
  157. package/dist/actions/update-contact.d.cts +3 -5
  158. package/dist/actions/update-contact.d.cts.map +1 -1
  159. package/dist/actions/update-contact.d.mts +3 -5
  160. package/dist/actions/update-contact.d.mts.map +1 -1
  161. package/dist/actions/update-contact.mjs +1 -0
  162. package/dist/actions/update-contact.mjs.map +1 -1
  163. package/dist/actions/update-sales-invoice.cjs +1 -0
  164. package/dist/actions/update-sales-invoice.cjs.map +1 -1
  165. package/dist/actions/update-sales-invoice.d.cts +3 -44
  166. package/dist/actions/update-sales-invoice.d.cts.map +1 -1
  167. package/dist/actions/update-sales-invoice.d.mts +3 -44
  168. package/dist/actions/update-sales-invoice.d.mts.map +1 -1
  169. package/dist/actions/update-sales-invoice.mjs +1 -0
  170. package/dist/actions/update-sales-invoice.mjs.map +1 -1
  171. package/dist/app.cjs +5 -2
  172. package/dist/app.cjs.map +1 -1
  173. package/dist/app.d.cts +7 -1
  174. package/dist/app.d.cts.map +1 -1
  175. package/dist/app.d.mts +7 -1
  176. package/dist/app.d.mts.map +1 -1
  177. package/dist/app.mjs +3 -2
  178. package/dist/app.mjs.map +1 -1
  179. package/dist/index.d.cts +1 -1
  180. package/dist/index.d.mts +1 -1
  181. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"action.cjs","names":["moneybird","executeMoneybirdTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { moneybird } from \"./app\";\nimport { executeMoneybirdTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return moneybird.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executeMoneybirdTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,UAAU,OAAO;EACtB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,qBAAqB,MAAM,KAAgC,CAAC;EAC5F;CACF,CAAC;AACH"}
1
+ {"version":3,"file":"action.cjs","names":["moneybird","executeMoneybirdTool"],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { moneybird } from \"./app\";\nimport { executeMoneybirdTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType, TOutput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n): AppAction<TInput, TOutput, typeof moneybird.credential> {\n return moneybird.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeMoneybirdTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAOA,SAAgB,OACd,MACA,KAOyD;CACzD,OAAOA,YAAAA,UAAU,OAAO;EACtB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,qBAAqB,MAAM,KAAgC,CAAC;EAC5F;CACF,CAAC;AACH"}
@@ -1 +1 @@
1
- {"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { moneybird } from \"./app\";\nimport { executeMoneybirdTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return moneybird.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executeMoneybirdTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,UAAU,OAAO;EACtB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,qBAAqB,MAAM,KAAgC,CAAC;EAC5F;CACF,CAAC;AACH"}
1
+ {"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { moneybird } from \"./app\";\nimport { executeMoneybirdTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType, TOutput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n): AppAction<TInput, TOutput, typeof moneybird.credential> {\n return moneybird.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeMoneybirdTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAOA,SAAgB,OACd,MACA,KAOyD;CACzD,OAAO,UAAU,OAAO;EACtB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,qBAAqB,MAAM,KAAgC,CAAC;EAC5F;CACF,CAAC;AACH"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/add-note-to-contact.ts
@@ -1 +1 @@
1
- {"version":3,"file":"add-note-to-contact.cjs","names":["z","action"],"sources":["../../src/actions/add-note-to-contact.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoneybirdAddNoteToContactInput = z.object({\n note: z.object({\n note: z.string().describe(\"Text for the note or to-do.\"),\n todo: z.boolean().default(false).describe(\"If true, the note is marked as a to-do.\").optional(),\n assignee_id: z.number().int().describe(\"Assigns the to-do to a specific user ID.\").optional(),\n}).describe(\"Payload containing the note details\"),\n contact_id: z.string().describe(\"ID of the contact to which the note will be added\"),\n administration_id: z.number().int().describe(\"Numeric administration ID, part of the Moneybird URL path.\"),\n}).describe(\"Request model for adding a note or to-do to a contact.\");\nexport const MoneybirdAddNoteToContactOutput = z.object({\n id: z.union([z.string(), z.number().int()]),\n data: z.record(z.string(), z.unknown()).describe(\"Additional metadata\").nullable().optional(),\n note: z.string().describe(\"Text content of the note\").nullable().optional(),\n todo: z.union([z.boolean(), z.string()]).nullable().optional(),\n user_id: z.union([z.string(), z.number().int()]),\n entity_id: z.union([z.string(), z.number().int()]).nullable().optional(),\n todo_type: z.string().describe(\"Enumerated values for todo types (e.g., sales_invoice_due, purchase_invoice_due)\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 date-time format indicating when the note was created\").nullable(),\n updated_at: z.string().describe(\"ISO 8601 date-time format indicating when the note was last updated\").nullable(),\n assignee_id: z.union([z.string(), z.number().int()]).nullable().optional(),\n entity_type: z.string().describe(\"The entity type (e.g., 'Contact')\").nullable(),\n completed_at: z.string().describe(\"ISO 8601 date-time format indicating when the todo was completed\").nullable().optional(),\n completed_by_id: z.union([z.string(), z.number().int()]).nullable().optional(),\n administration_id: z.union([z.string(), z.number().int()]),\n}).passthrough().describe(\"Response model for a newly created note or to-do on a contact.\");\n\nexport const moneybirdAddNoteToContact = action(\"MONEYBIRD_ADD_NOTE_TO_CONTACT\", {\n slug: \"moneybird-add-note-to-contact\",\n name: \"Add Note to Contact\",\n description: \"Tool to add a note or to-do to a contact. Use when you need to record a comment or assign a task to a contact.\",\n input: MoneybirdAddNoteToContactInput,\n output: MoneybirdAddNoteToContactOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,MAAMA,IAAAA,EAAE,OAAO;EACf,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;EACvD,MAAMA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;EAC9F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,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,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CAChH,aAAaA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAC/E,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1H,iBAAiBA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,mBAAmBA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC;AAC3D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gEAAgE;AAE1F,MAAa,4BAA4BC,eAAAA,OAAO,iCAAiC;CAC/E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"add-note-to-contact.cjs","names":["z","action"],"sources":["../../src/actions/add-note-to-contact.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { moneybird } from \"../app\";\n\nexport const MoneybirdAddNoteToContactInput = z.object({\n note: z.object({\n note: z.string().describe(\"Text for the note or to-do.\"),\n todo: z.boolean().default(false).describe(\"If true, the note is marked as a to-do.\").optional(),\n assignee_id: z.number().int().describe(\"Assigns the to-do to a specific user ID.\").optional(),\n}).describe(\"Payload containing the note details\"),\n contact_id: z.string().describe(\"ID of the contact to which the note will be added\"),\n administration_id: z.number().int().describe(\"Numeric administration ID, part of the Moneybird URL path.\"),\n}).describe(\"Request model for adding a note or to-do to a contact.\");\nexport const MoneybirdAddNoteToContactOutput = z.object({\n id: z.union([z.string(), z.number().int()]),\n data: z.record(z.string(), z.unknown()).describe(\"Additional metadata\").nullable().optional(),\n note: z.string().describe(\"Text content of the note\").nullable().optional(),\n todo: z.union([z.boolean(), z.string()]).nullable().optional(),\n user_id: z.union([z.string(), z.number().int()]),\n entity_id: z.union([z.string(), z.number().int()]).nullable().optional(),\n todo_type: z.string().describe(\"Enumerated values for todo types (e.g., sales_invoice_due, purchase_invoice_due)\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 date-time format indicating when the note was created\").nullable(),\n updated_at: z.string().describe(\"ISO 8601 date-time format indicating when the note was last updated\").nullable(),\n assignee_id: z.union([z.string(), z.number().int()]).nullable().optional(),\n entity_type: z.string().describe(\"The entity type (e.g., 'Contact')\").nullable(),\n completed_at: z.string().describe(\"ISO 8601 date-time format indicating when the todo was completed\").nullable().optional(),\n completed_by_id: z.union([z.string(), z.number().int()]).nullable().optional(),\n administration_id: z.union([z.string(), z.number().int()]),\n}).passthrough().describe(\"Response model for a newly created note or to-do on a contact.\");\n\nexport const moneybirdAddNoteToContact: AppAction<\n typeof MoneybirdAddNoteToContactInput,\n typeof MoneybirdAddNoteToContactOutput,\n typeof moneybird.credential\n> = action(\"MONEYBIRD_ADD_NOTE_TO_CONTACT\", {\n slug: \"moneybird-add-note-to-contact\",\n name: \"Add Note to Contact\",\n description: \"Tool to add a note or to-do to a contact. Use when you need to record a comment or assign a task to a contact.\",\n input: MoneybirdAddNoteToContactInput,\n output: MoneybirdAddNoteToContactOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,MAAMA,IAAAA,EAAE,OAAO;EACf,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;EACvD,MAAMA,IAAAA,EAAE,QAAQ,CA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AS,kFAAkF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvI,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CAC3G,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CAChH,aAAaA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAC/E,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1H,iBAAiBA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,mBAAmBA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC;AAC3D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gEAAgE;AAE1F,MAAa,4BAITC,eAAAA,OAAO,iCAAiC;CAC1C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { moneybird } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/add-note-to-contact.d.ts
@@ -26,15 +28,7 @@ declare const MoneybirdAddNoteToContactOutput: z.ZodObject<{
26
28
  completed_by_id: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
27
29
  administration_id: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
28
30
  }, z.core.$loose>;
29
- declare const moneybirdAddNoteToContact: import("@keystrokehq/action").WorkflowActionDefinition<{
30
- note: {
31
- note: string;
32
- todo?: boolean | undefined;
33
- assignee_id?: number | undefined;
34
- };
35
- contact_id: string;
36
- administration_id: number;
37
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
31
+ declare const moneybirdAddNoteToContact: AppAction<typeof MoneybirdAddNoteToContactInput, typeof MoneybirdAddNoteToContactOutput, typeof moneybird.credential>;
38
32
  //#endregion
39
33
  export { moneybirdAddNoteToContact };
40
34
  //# sourceMappingURL=add-note-to-contact.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"add-note-to-contact.d.cts","names":[],"sources":["../../src/actions/add-note-to-contact.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;cAS9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAiB/B,yBAAA,gCAAyB,wBAAA"}
1
+ {"version":3,"file":"add-note-to-contact.d.cts","names":[],"sources":["../../src/actions/add-note-to-contact.ts"],"mappings":";;;;;cAMa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;cAS9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAiB/B,yBAAA,EAA2B,SAAA,QAC/B,8BAAA,SACA,+BAAA,SACA,SAAA,CAAU,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { moneybird } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/add-note-to-contact.d.ts
@@ -26,15 +28,7 @@ declare const MoneybirdAddNoteToContactOutput: z.ZodObject<{
26
28
  completed_by_id: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
27
29
  administration_id: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
28
30
  }, z.core.$loose>;
29
- declare const moneybirdAddNoteToContact: import("@keystrokehq/action").WorkflowActionDefinition<{
30
- note: {
31
- note: string;
32
- todo?: boolean | undefined;
33
- assignee_id?: number | undefined;
34
- };
35
- contact_id: string;
36
- administration_id: number;
37
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
31
+ declare const moneybirdAddNoteToContact: AppAction<typeof MoneybirdAddNoteToContactInput, typeof MoneybirdAddNoteToContactOutput, typeof moneybird.credential>;
38
32
  //#endregion
39
33
  export { moneybirdAddNoteToContact };
40
34
  //# sourceMappingURL=add-note-to-contact.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"add-note-to-contact.d.mts","names":[],"sources":["../../src/actions/add-note-to-contact.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;cAS9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAiB/B,yBAAA,gCAAyB,wBAAA"}
1
+ {"version":3,"file":"add-note-to-contact.d.mts","names":[],"sources":["../../src/actions/add-note-to-contact.ts"],"mappings":";;;;;cAMa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;cAS9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAiB/B,yBAAA,EAA2B,SAAA,QAC/B,8BAAA,SACA,+BAAA,SACA,SAAA,CAAU,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const moneybirdAddNoteToContact = action("MONEYBIRD_ADD_NOTE_TO_CONTACT", {
@@ -1 +1 @@
1
- {"version":3,"file":"add-note-to-contact.mjs","names":[],"sources":["../../src/actions/add-note-to-contact.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoneybirdAddNoteToContactInput = z.object({\n note: z.object({\n note: z.string().describe(\"Text for the note or to-do.\"),\n todo: z.boolean().default(false).describe(\"If true, the note is marked as a to-do.\").optional(),\n assignee_id: z.number().int().describe(\"Assigns the to-do to a specific user ID.\").optional(),\n}).describe(\"Payload containing the note details\"),\n contact_id: z.string().describe(\"ID of the contact to which the note will be added\"),\n administration_id: z.number().int().describe(\"Numeric administration ID, part of the Moneybird URL path.\"),\n}).describe(\"Request model for adding a note or to-do to a contact.\");\nexport const MoneybirdAddNoteToContactOutput = z.object({\n id: z.union([z.string(), z.number().int()]),\n data: z.record(z.string(), z.unknown()).describe(\"Additional metadata\").nullable().optional(),\n note: z.string().describe(\"Text content of the note\").nullable().optional(),\n todo: z.union([z.boolean(), z.string()]).nullable().optional(),\n user_id: z.union([z.string(), z.number().int()]),\n entity_id: z.union([z.string(), z.number().int()]).nullable().optional(),\n todo_type: z.string().describe(\"Enumerated values for todo types (e.g., sales_invoice_due, purchase_invoice_due)\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 date-time format indicating when the note was created\").nullable(),\n updated_at: z.string().describe(\"ISO 8601 date-time format indicating when the note was last updated\").nullable(),\n assignee_id: z.union([z.string(), z.number().int()]).nullable().optional(),\n entity_type: z.string().describe(\"The entity type (e.g., 'Contact')\").nullable(),\n completed_at: z.string().describe(\"ISO 8601 date-time format indicating when the todo was completed\").nullable().optional(),\n completed_by_id: z.union([z.string(), z.number().int()]).nullable().optional(),\n administration_id: z.union([z.string(), z.number().int()]),\n}).passthrough().describe(\"Response model for a newly created note or to-do on a contact.\");\n\nexport const moneybirdAddNoteToContact = action(\"MONEYBIRD_ADD_NOTE_TO_CONTACT\", {\n slug: \"moneybird-add-note-to-contact\",\n name: \"Add Note to Contact\",\n description: \"Tool to add a note or to-do to a contact. Use when you need to record a comment or assign a task to a contact.\",\n input: MoneybirdAddNoteToContactInput,\n output: Mo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AAC,CAAC,SAAS;EACvE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvI,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;EAC3G,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;EAChH,aAAa,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EAC/E,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1H,iBAAiB,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7E,mBAAmB,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC;CAC3D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gEAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"add-note-to-contact.mjs","names":[],"sources":["../../src/actions/add-note-to-contact.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { moneybird } from \"../app\";\n\nexport const MoneybirdAddNoteToContactInput = z.object({\n note: z.object({\n note: z.string().describe(\"Text for the note or to-do.\"),\n todo: z.boolean().default(false).describe(\"If true, the note is marked as a to-do.\").optional(),\n assignee_id: z.number().int().describe(\"Assigns the to-do to a specific user ID.\").optional(),\n}).describe(\"Payload containing the note details\"),\n contact_id: z.string().describe(\"ID of the contact to which the note will be added\"),\n administration_id: z.number().int().describe(\"Numeric administration ID, part of the Moneybird URL path.\"),\n}).describe(\"Request model for adding a note or to-do to a contact.\");\nexport const MoneybirdAddNoteToContactOutput = z.object({\n id: z.union([z.string(), z.number().int()]),\n data: z.record(z.string(), z.unknown()).describe(\"Additional metadata\").nullable().optional(),\n note: z.string().describe(\"Text content of the note\").nullable().optional(),\n todo: z.union([z.boolean(), z.string()]).nullable().optional(),\n user_id: z.union([z.string(), z.number().int()]),\n entity_id: z.union([z.string(), z.number().int()]).nullable().optional(),\n todo_type: z.string().describe(\"Enumerated values for todo types (e.g., sales_invoice_due, purchase_invoice_due)\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 date-time format indicating when the note was created\").nullable(),\n updated_at: z.string().describe(\"ISO 8601 date-time format indicating when the note was last updated\").nullable(),\n assignee_id: z.union([z.string(), z.number().int()]).nullable().optional(),\n entity_type: z.string().describe(\"The entity type (e.g., 'Contact')\").nullable(),\n completed_at: z.string().describe(\"ISO 8601 date-time format indicating when the todo was completed\").nullable().optional(),\n completed_by_id: z.union([z.string(), z.number().int()]).nullable().optional(),\n administration_id: z.union([z.string(), z.number().int()]),\n}).passthrough().describe(\"Response model for a newly created note or to-do on a contact.\");\n\nexport const moneybirdAddNoteToContact: AppAction<\n typeof MoneybirdAddNoteToContactInput,\n typeof MoneybirdAddNoteToContactOutput,\n typeof moneybird.credential\n> = action(\"MONEYBIRD_ADD_NOTE_TO_CONTACT\", {\n slug: \"moneybird-add-note-to-contact\",\n name: \"Add Note to Contact\",\n description: \"Tool to add a note or to-do to a contact. Use when you need to record a comment or assign a task to a contact.\",\n input: MoneybirdAddNoteToContactInput,\n output: MoneybirdAddNoteToContactOutput,\n});\n"],"mappings":";;;AAgCA,MAAa,4BAIT,OAAO,iCAAiC;CAC1C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAlC4C,EAAE,OAAO;EACrD,MAAM,EAAE,OAAO;GACf,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;GACvD,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AS,qEAAqE,CAAC,CAAC,SAAS;EAChH,aAAa,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EAC/E,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1H,iBAAiB,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7E,mBAAmB,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC;CAC3D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gEAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/archive-contact.ts
@@ -1 +1 @@
1
- {"version":3,"file":"archive-contact.cjs","names":["z","action"],"sources":["../../src/actions/archive-contact.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoneybirdArchiveContactInput = z.object({\n contact_id: z.number().int().describe(\"The unique identifier of the contact to archive\"),\n administration_id: z.number().int().describe(\"The unique identifier of the administration\"),\n});\nexport const MoneybirdArchiveContactOutput = z.record(z.string(), z.unknown()).describe(\"Empty response for archive action\");\n\nexport const moneybirdArchiveContact = action(\"MONEYBIRD_ARCHIVE_CONTACT\", {\n slug: \"moneybird-archive-contact\",\n name: \"Archive Contact\",\n description: \"Tool to archive a contact. Use when a contact is no longer needed and should be hidden permanently.\",\n input: MoneybirdArchiveContactInput,\n output: MoneybirdArchiveContactOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iDAAiD;CACvF,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C;AAC5F,CAAC;AACD,MAAa,gCAAgCA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mCAAmC;AAE3H,MAAa,0BAA0BC,eAAAA,OAAO,6BAA6B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"archive-contact.cjs","names":["z","action"],"sources":["../../src/actions/archive-contact.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { moneybird } from \"../app\";\n\nexport const MoneybirdArchiveContactInput = z.object({\n contact_id: z.number().int().describe(\"The unique identifier of the contact to archive\"),\n administration_id: z.number().int().describe(\"The unique identifier of the administration\"),\n});\nexport const MoneybirdArchiveContactOutput = z.record(z.string(), z.unknown()).describe(\"Empty response for archive action\");\n\nexport const moneybirdArchiveContact: AppAction<\n typeof MoneybirdArchiveContactInput,\n typeof MoneybirdArchiveContactOutput,\n typeof moneybird.credential\n> = action(\"MONEYBIRD_ARCHIVE_CONTACT\", {\n slug: \"moneybird-archive-contact\",\n name: \"Archive Contact\",\n description: \"Tool to archive a contact. Use when a contact is no longer needed and should be hidden permanently.\",\n input: MoneybirdArchiveContactInput,\n output: MoneybirdArchiveContactOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iDAAiD;CACvF,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C;AAC5F,CAAC;AACD,MAAa,gCAAgCA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mCAAmC;AAE3H,MAAa,0BAITC,eAAAA,OAAO,6BAA6B;CACtC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { moneybird } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/archive-contact.d.ts
@@ -6,10 +8,7 @@ declare const MoneybirdArchiveContactInput: z.ZodObject<{
6
8
  administration_id: z.ZodNumber;
7
9
  }, z.core.$strip>;
8
10
  declare const MoneybirdArchiveContactOutput: z.ZodRecord<z.ZodString, z.ZodUnknown>;
9
- declare const moneybirdArchiveContact: import("@keystrokehq/action").WorkflowActionDefinition<{
10
- contact_id: number;
11
- administration_id: number;
12
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
11
+ declare const moneybirdArchiveContact: AppAction<typeof MoneybirdArchiveContactInput, typeof MoneybirdArchiveContactOutput, typeof moneybird.credential>;
13
12
  //#endregion
14
13
  export { moneybirdArchiveContact };
15
14
  //# sourceMappingURL=archive-contact.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"archive-contact.d.cts","names":[],"sources":["../../src/actions/archive-contact.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;cAI5B,6BAAA,EAA6B,CAAA,CAAA,SAAA,CAAA,CAAA,CAAA,SAAA,EAAA,CAAA,CAAA,UAAA;AAAA,cAE7B,uBAAA,gCAAuB,wBAAA"}
1
+ {"version":3,"file":"archive-contact.d.cts","names":[],"sources":["../../src/actions/archive-contact.ts"],"mappings":";;;;;cAMa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;cAI5B,6BAAA,EAA6B,CAAA,CAAA,SAAA,CAAA,CAAA,CAAA,SAAA,EAAA,CAAA,CAAA,UAAA;AAAA,cAE7B,uBAAA,EAAyB,SAAA,QAC7B,4BAAA,SACA,6BAAA,SACA,SAAA,CAAU,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { moneybird } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/archive-contact.d.ts
@@ -6,10 +8,7 @@ declare const MoneybirdArchiveContactInput: z.ZodObject<{
6
8
  administration_id: z.ZodNumber;
7
9
  }, z.core.$strip>;
8
10
  declare const MoneybirdArchiveContactOutput: z.ZodRecord<z.ZodString, z.ZodUnknown>;
9
- declare const moneybirdArchiveContact: import("@keystrokehq/action").WorkflowActionDefinition<{
10
- contact_id: number;
11
- administration_id: number;
12
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
11
+ declare const moneybirdArchiveContact: AppAction<typeof MoneybirdArchiveContactInput, typeof MoneybirdArchiveContactOutput, typeof moneybird.credential>;
13
12
  //#endregion
14
13
  export { moneybirdArchiveContact };
15
14
  //# sourceMappingURL=archive-contact.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"archive-contact.d.mts","names":[],"sources":["../../src/actions/archive-contact.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;cAI5B,6BAAA,EAA6B,CAAA,CAAA,SAAA,CAAA,CAAA,CAAA,SAAA,EAAA,CAAA,CAAA,UAAA;AAAA,cAE7B,uBAAA,gCAAuB,wBAAA"}
1
+ {"version":3,"file":"archive-contact.d.mts","names":[],"sources":["../../src/actions/archive-contact.ts"],"mappings":";;;;;cAMa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;cAI5B,6BAAA,EAA6B,CAAA,CAAA,SAAA,CAAA,CAAA,CAAA,SAAA,EAAA,CAAA,CAAA,UAAA;AAAA,cAE7B,uBAAA,EAAyB,SAAA,QAC7B,4BAAA,SACA,6BAAA,SACA,SAAA,CAAU,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const moneybirdArchiveContact = action("MONEYBIRD_ARCHIVE_CONTACT", {
@@ -1 +1 @@
1
- {"version":3,"file":"archive-contact.mjs","names":[],"sources":["../../src/actions/archive-contact.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoneybirdArchiveContactInput = z.object({\n contact_id: z.number().int().describe(\"The unique identifier of the contact to archive\"),\n administration_id: z.number().int().describe(\"The unique identifier of the administration\"),\n});\nexport const MoneybirdArchiveContactOutput = z.record(z.string(), z.unknown()).describe(\"Empty response for archive action\");\n\nexport const moneybirdArchiveContact = action(\"MONEYBIRD_ARCHIVE_CONTACT\", {\n slug: \"moneybird-archive-contact\",\n name: \"Archive Contact\",\n description: \"Tool to archive a contact. Use when a contact is no longer needed and should be hidden permanently.\",\n input: MoneybirdArchiveContactInput,\n output: MoneybirdArchiveContactOutput,\n});\n"],"mappings":";;AAUA,MAAa,0BAA0B,OAAO,6BAA6B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAV0C,EAAE,OAAO;EACnD,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iDAAiD;EACvF,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C;CAC5F,CAOS;CACP,QAP2C,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mCAO9E;AACV,CAAC"}
1
+ {"version":3,"file":"archive-contact.mjs","names":[],"sources":["../../src/actions/archive-contact.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { moneybird } from \"../app\";\n\nexport const MoneybirdArchiveContactInput = z.object({\n contact_id: z.number().int().describe(\"The unique identifier of the contact to archive\"),\n administration_id: z.number().int().describe(\"The unique identifier of the administration\"),\n});\nexport const MoneybirdArchiveContactOutput = z.record(z.string(), z.unknown()).describe(\"Empty response for archive action\");\n\nexport const moneybirdArchiveContact: AppAction<\n typeof MoneybirdArchiveContactInput,\n typeof MoneybirdArchiveContactOutput,\n typeof moneybird.credential\n> = action(\"MONEYBIRD_ARCHIVE_CONTACT\", {\n slug: \"moneybird-archive-contact\",\n name: \"Archive Contact\",\n description: \"Tool to archive a contact. Use when a contact is no longer needed and should be hidden permanently.\",\n input: MoneybirdArchiveContactInput,\n output: MoneybirdArchiveContactOutput,\n});\n"],"mappings":";;;AAYA,MAAa,0BAIT,OAAO,6BAA6B;CACtC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAd0C,EAAE,OAAO;EACnD,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iDAAiD;EACvF,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C;CAC5F,CAWS;CACP,QAX2C,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mCAW9E;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/create-contact-person.ts
@@ -1 +1 @@
1
- {"version":3,"file":"create-contact-person.cjs","names":["z","action"],"sources":["../../src/actions/create-contact-person.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoneybirdCreateContactPersonInput = z.object({\n contact_id: z.number().int().describe(\"ID of the contact under which the person will be created\"),\n contact_person: z.object({\n email: z.string().describe(\"Email address of the contact person\").optional(),\n phone: z.string().describe(\"Phone number of the contact person\").optional(),\n lastname: z.string().describe(\"Last name of the contact person\"),\n firstname: z.string().describe(\"First name of the contact person\"),\n department: z.string().describe(\"Department of the contact person\").optional(),\n}).describe(\"Container for all contact person fields\"),\n administration_id: z.number().int().describe(\"ID of the administration under which the contact person will be created\"),\n}).describe(\"Request payload for creating a new contact person.\");\nexport const MoneybirdCreateContactPersonOutput = z.object({\n id: z.string().describe(\"Unique identifier of the created contact person\").nullable(),\n email: z.string().describe(\"Email address of the contact person\").nullable().optional(),\n phone: z.string().describe(\"Phone number of the contact person\").nullable().optional(),\n version: z.number().int().describe(\"Version number of the contact person record\").nullable(),\n lastname: z.string().describe(\"Last name of the contact person\").nullable(),\n firstname: z.string().describe(\"First name of the contact person\").nullable(),\n created_at: z.string().describe(\"Timestamp when the contact person was created\").nullable(),\n department: z.string().describe(\"Department of the contact person\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when the contact person was last updated\").nullable(),\n administration_id: z.number().int().describe(\"ID of the administration under which this contact person was created\").nullable(),\n}).passthrough().describe(\"The created contact person record.\");\n\nexport const moneybirdCreateContactPerson = action(\"MONEYBIRD_CREATE_CONTACT_PERSON\", {\n slug: \"moneybird-create-contact-person\",\n name: \"Create Contact Person\",\n description: \"Tool to create a new contact person. Use when you have the contact ID and need to add a person after confirming their firstname and lastname.\",\n input: MoneybirdCreateContactPersonInput,\n output: MoneybirdCreateContactPersonOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAoCA,IAAAA,EAAE,OAAO;CACxD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0DAA0D;CAChG,gBAAgBA,IAAAA,EAAE,OAAO;EACzB,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EAC3E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;EAC1E,UAAUA,IAAAA,EAAE,OAAO,C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I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oCAAoC;AAE9D,MAAa,+BAA+BC,eAAAA,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-contact-person.cjs","names":["z","action"],"sources":["../../src/actions/create-contact-person.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { moneybird } from \"../app\";\n\nexport const MoneybirdCreateContactPersonInput = z.object({\n contact_id: z.number().int().describe(\"ID of the contact under which the person will be created\"),\n contact_person: z.object({\n email: z.string().describe(\"Email address of the contact person\").optional(),\n phone: z.string().describe(\"Phone number of the contact person\").optional(),\n lastname: z.string().describe(\"Last name of the contact person\"),\n firstname: z.string().describe(\"First name of the contact person\"),\n department: z.string().describe(\"Department of the contact person\").optional(),\n}).describe(\"Container for all contact person fields\"),\n administration_id: z.number().int().describe(\"ID of the administration under which the contact person will be created\"),\n}).describe(\"Request payload for creating a new contact person.\");\nexport const MoneybirdCreateContactPersonOutput = z.object({\n id: z.string().describe(\"Unique identifier of the created contact person\").nullable(),\n email: z.string().describe(\"Email address of the contact person\").nullable().optional(),\n phone: z.string().describe(\"Phone number of the contact person\").nullable().optional(),\n version: z.number().int().describe(\"Version number of the contact person record\").nullable(),\n lastname: z.string().describe(\"Last name of the contact person\").nullable(),\n firstname: z.string().describe(\"First name of the contact person\").nullable(),\n created_at: z.string().describe(\"Timestamp when the contact person was created\").nullable(),\n department: z.string().describe(\"Department of the contact person\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when the contact person was last updated\").nullable(),\n administration_id: z.number().int().describe(\"ID of the administration under which this contact person was created\").nullable(),\n}).passthrough().describe(\"The created contact person record.\");\n\nexport const moneybirdCreateContactPerson: AppAction<\n typeof MoneybirdCreateContactPersonInput,\n typeof MoneybirdCreateContactPersonOutput,\n typeof moneybird.credential\n> = action(\"MONEYBIRD_CREATE_CONTACT_PERSON\", {\n slug: \"moneybird-create-contact-person\",\n name: \"Create Contact Person\",\n description: \"Tool to create a new contact person. Use when you have the contact ID and need to add a person after confirming their firstname and lastname.\",\n input: MoneybirdCreateContactPersonInput,\n output: MoneybirdCreateContactPersonOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,oCAAoCA,IAAAA,EAAE,OAAO;CACxD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0DAA0D;CAChG,gBAAgBA,IAAAA,EAAE,OAAO;EACzB,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EAC3E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;EAC1E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;EAC/D,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;EACjE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAC/E,CAAC,CAAC,CAAC,SAAS,yCAAyC;CACnD,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yEAAyE;AACxH,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAChE,MAAa,qCAAqCA,IAAAA,EAAE,OAAO;CACzD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CACpF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAC3F,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC1E,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAC5E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CAC1F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAC/F,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;AAChI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oCAAoC;AAE9D,MAAa,+BAITC,eAAAA,OAAO,mCAAmC;CAC5C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { moneybird } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/create-contact-person.d.ts
@@ -24,17 +26,7 @@ declare const MoneybirdCreateContactPersonOutput: z.ZodObject<{
24
26
  updated_at: z.ZodNullable<z.ZodString>;
25
27
  administration_id: z.ZodNullable<z.ZodNumber>;
26
28
  }, z.core.$loose>;
27
- declare const moneybirdCreateContactPerson: import("@keystrokehq/action").WorkflowActionDefinition<{
28
- contact_id: number;
29
- contact_person: {
30
- lastname: string;
31
- firstname: string;
32
- email?: string | undefined;
33
- phone?: string | undefined;
34
- department?: string | undefined;
35
- };
36
- administration_id: number;
37
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
29
+ declare const moneybirdCreateContactPerson: AppAction<typeof MoneybirdCreateContactPersonInput, typeof MoneybirdCreateContactPersonOutput, typeof moneybird.credential>;
38
30
  //#endregion
39
31
  export { moneybirdCreateContactPerson };
40
32
  //# sourceMappingURL=create-contact-person.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-contact-person.d.cts","names":[],"sources":["../../src/actions/create-contact-person.ts"],"mappings":";;;cAIa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;;cAWjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;;cAalC,4BAAA,gCAA4B,wBAAA"}
1
+ {"version":3,"file":"create-contact-person.d.cts","names":[],"sources":["../../src/actions/create-contact-person.ts"],"mappings":";;;;;cAMa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;;cAWjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;;cAalC,4BAAA,EAA8B,SAAA,QAClC,iCAAA,SACA,kCAAA,SACA,SAAA,CAAU,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { moneybird } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/create-contact-person.d.ts
@@ -24,17 +26,7 @@ declare const MoneybirdCreateContactPersonOutput: z.ZodObject<{
24
26
  updated_at: z.ZodNullable<z.ZodString>;
25
27
  administration_id: z.ZodNullable<z.ZodNumber>;
26
28
  }, z.core.$loose>;
27
- declare const moneybirdCreateContactPerson: import("@keystrokehq/action").WorkflowActionDefinition<{
28
- contact_id: number;
29
- contact_person: {
30
- lastname: string;
31
- firstname: string;
32
- email?: string | undefined;
33
- phone?: string | undefined;
34
- department?: string | undefined;
35
- };
36
- administration_id: number;
37
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
29
+ declare const moneybirdCreateContactPerson: AppAction<typeof MoneybirdCreateContactPersonInput, typeof MoneybirdCreateContactPersonOutput, typeof moneybird.credential>;
38
30
  //#endregion
39
31
  export { moneybirdCreateContactPerson };
40
32
  //# sourceMappingURL=create-contact-person.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-contact-person.d.mts","names":[],"sources":["../../src/actions/create-contact-person.ts"],"mappings":";;;cAIa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;;cAWjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;;cAalC,4BAAA,gCAA4B,wBAAA"}
1
+ {"version":3,"file":"create-contact-person.d.mts","names":[],"sources":["../../src/actions/create-contact-person.ts"],"mappings":";;;;;cAMa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;;cAWjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;;cAalC,4BAAA,EAA8B,SAAA,QAClC,iCAAA,SACA,kCAAA,SACA,SAAA,CAAU,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const moneybirdCreateContactPerson = action("MONEYBIRD_CREATE_CONTACT_PERSON", {
@@ -1 +1 @@
1
- {"version":3,"file":"create-contact-person.mjs","names":[],"sources":["../../src/actions/create-contact-person.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoneybirdCreateContactPersonInput = z.object({\n contact_id: z.number().int().describe(\"ID of the contact under which the person will be created\"),\n contact_person: z.object({\n email: z.string().describe(\"Email address of the contact person\").optional(),\n phone: z.string().describe(\"Phone number of the contact person\").optional(),\n lastname: z.string().describe(\"Last name of the contact person\"),\n firstname: z.string().describe(\"First name of the contact person\"),\n department: z.string().describe(\"Department of the contact person\").optional(),\n}).describe(\"Container for all contact person fields\"),\n administration_id: z.number().int().describe(\"ID of the administration under which the contact person will be created\"),\n}).describe(\"Request payload for creating a new contact person.\");\nexport const MoneybirdCreateContactPersonOutput = z.object({\n id: z.string().describe(\"Unique identifier of the created contact person\").nullable(),\n email: z.string().describe(\"Email address of the contact person\").nullable().optional(),\n phone: z.string().describe(\"Phone number of the contact person\").nullable().optional(),\n version: z.number().int().describe(\"Version number of the contact person record\").nullable(),\n lastname: z.string().describe(\"Last name of the contact person\").nullable(),\n firstname: z.string().describe(\"First name of the contact person\").nullable(),\n created_at: z.string().describe(\"Timestamp when the contact person was created\").nullable(),\n department: z.string().describe(\"Department of the contact person\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when the contact person was last updated\").nullable(),\n administration_id: z.number().int().describe(\"ID of the administration under which this contact person was created\").nullable(),\n}).passthrough().describe(\"The created contact person record.\");\n\nexport const moneybirdCreateContactPerson = action(\"MONEYBIRD_CREATE_CONTACT_PERSON\", {\n slug: \"moneybird-create-contact-person\",\n name: \"Create Contact Person\",\n description: \"Tool to create a new contact person. Use when you have the contact ID and need to add a person after confirming their firstname and lastname.\",\n input: MoneybirdCreateContactPersonInput,\n output: MoneybirdCreateContactPersonOutput,\n});\n"],"mappings":";;AA4BA,MAAa,+BAA+B,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA5B+C,EAAE,OAAO;EACxD,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0DAA0D;EAChG,gBAAgB,EAAE,OAAO;GACzB,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;GAC3E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;GAC1E,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;GAC/D,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;GACjE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;EAC/E,CAAC,CAAC,CAAC,SAAS,yCAAyC;EACnD,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yEAAyE;CACxH,CAAC,CAAC,CAAC,SAAS,oDAkBH;CACP,QAlBgD,EAAE,OAAO;EACzD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;EACpF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrF,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;EAC3F,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;EAC1E,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;EAC5E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;EAC1F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;EAC/F,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;CAChI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oCAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"create-contact-person.mjs","names":[],"sources":["../../src/actions/create-contact-person.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { moneybird } from \"../app\";\n\nexport const MoneybirdCreateContactPersonInput = z.object({\n contact_id: z.number().int().describe(\"ID of the contact under which the person will be created\"),\n contact_person: z.object({\n email: z.string().describe(\"Email address of the contact person\").optional(),\n phone: z.string().describe(\"Phone number of the contact person\").optional(),\n lastname: z.string().describe(\"Last name of the contact person\"),\n firstname: z.string().describe(\"First name of the contact person\"),\n department: z.string().describe(\"Department of the contact person\").optional(),\n}).describe(\"Container for all contact person fields\"),\n administration_id: z.number().int().describe(\"ID of the administration under which the contact person will be created\"),\n}).describe(\"Request payload for creating a new contact person.\");\nexport const MoneybirdCreateContactPersonOutput = z.object({\n id: z.string().describe(\"Unique identifier of the created contact person\").nullable(),\n email: z.string().describe(\"Email address of the contact person\").nullable().optional(),\n phone: z.string().describe(\"Phone number of the contact person\").nullable().optional(),\n version: z.number().int().describe(\"Version number of the contact person record\").nullable(),\n lastname: z.string().describe(\"Last name of the contact person\").nullable(),\n firstname: z.string().describe(\"First name of the contact person\").nullable(),\n created_at: z.string().describe(\"Timestamp when the contact person was created\").nullable(),\n department: z.string().describe(\"Department of the contact person\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when the contact person was last updated\").nullable(),\n administration_id: z.number().int().describe(\"ID of the administration under which this contact person was created\").nullable(),\n}).passthrough().describe(\"The created contact person record.\");\n\nexport const moneybirdCreateContactPerson: AppAction<\n typeof MoneybirdCreateContactPersonInput,\n typeof MoneybirdCreateContactPersonOutput,\n typeof moneybird.credential\n> = action(\"MONEYBIRD_CREATE_CONTACT_PERSON\", {\n slug: \"moneybird-create-contact-person\",\n name: \"Create Contact Person\",\n description: \"Tool to create a new contact person. Use when you have the contact ID and need to add a person after confirming their firstname and lastname.\",\n input: MoneybirdCreateContactPersonInput,\n output: MoneybirdCreateContactPersonOutput,\n});\n"],"mappings":";;;AA8BA,MAAa,+BAIT,OAAO,mCAAmC;CAC5C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhC+C,EAAE,OAAO;EACxD,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0DAA0D;EAChG,gBAAgB,EAAE,OAAO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CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;CAChI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oCAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/create-contact.ts
@@ -1 +1 @@
1
- {"version":3,"file":"create-contact.cjs","names":["z","action"],"sources":["../../src/actions/create-contact.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoneybirdCreateContactInput = z.object({\n city: z.string().describe(\"City name\").optional(),\n phone: z.string().describe(\"Phone number\").optional(),\n country: z.string().describe(\"ISO 3166-1 alpha-2 country code, e.g., NL\").optional(),\n zipcode: z.string().describe(\"Postal code\").optional(),\n address1: z.string().describe(\"Street and number\").optional(),\n address2: z.string().describe(\"Additional address line\").optional(),\n lastname: z.string().describe(\"Last name; required if company_name is blank\").optional(),\n sepa_bic: z.string().describe(\"Valid BIC; required if sepa_active\").optional(),\n firstname: z.string().describe(\"First name; required if company_name is blank\").optional(),\n sepa_iban: z.string().describe(\"Valid IBAN; required if sepa_active\").optional(),\n tax_number: z.string().describe(\"Tax/VAT number\").optional(),\n customer_id: z.string().describe(\"Unique customer identifier; autogenerated if empty\").optional(),\n sepa_active: z.boolean().describe(\"Enable SEPA direct debit; when true, other SEPA fields are required\").optional(),\n bank_account: z.string().describe(\"Bank account number\").optional(),\n company_name: z.string().describe(\"Company name; required if firstname and lastname are blank\").optional(),\n si_identifier: z.string().describe(\"SEPA identifier\").optional(),\n delivery_method: z.enum([\"Email\", \"Simplerinvoicing\", \"Peppol\", \"Manual\", \"Post\"]).describe(\"Delivery method\").optional(),\n sepa_mandate_id: z.string().describe(\"Mandate ID; required if sepa_active\").optional(),\n administration_id: z.number().int().describe(\"ID of the administration\"),\n sepa_mandate_date: z.string().describe(\"Mandate date (YYYY-MM-DD); required if sepa_active\").optional(),\n sepa_sequence_type: z.enum([\"RCUR\", \"FRST\", \"OOFF\", \"FNAL\"]).describe(\"SEPA sequence type; required if sepa_active\").optional(),\n si_identifier_type: z.string().describe(\"SEPA identifier type\").optional(),\n chamber_of_commerce: z.string().describe(\"Chamber of Commerce number\").optional(),\n invoice_workflow_id: z.number().int().describe(\"Invoice workflow ID\").optional(),\n estimate_workflow_id: z.number().int().describe(\"Estimate workflow ID\").optional(),\n send_invoices_to_email: z.string().describe(\"Comma-separated emails to send invoices to\").optional(),\n sepa_iban_account_name: z.string().describe(\"Account holder name for SEPA\").optional(),\n send_estimates_to_email: z.string().describe(\"Comma-separated emails to send estimates to\").optional(),\n custom_fields_attributes: z.record(z.string(), z.unknown()).describe(\"Custom fields as dict of {index:{id, value}}\").optional(),\n});\nexport const MoneybirdCreateContactOutput = z.object({\n id: z.string().describe(\"ID of the created contact\").nullable(),\n lastname: z.string().describe(\"Last name\").nullable().optional(),\n firstname: z.string().describe(\"First name\").nullable().optional(),\n created_at: z.string().describe(\"Creation timestamp\").nullable(),\n updated_at: z.string().describe(\"Last update timestamp\").nullable(),\n company_name: z.string().describe(\"Company name\").nullable().optional(),\n administration_id: z.number().int().describe(\"ID of the administration\").nullable(),\n}).passthrough();\n\nexport const moneybirdCreateContact = action(\"MONEYBIRD_CREATE_CONTACT\", {\n slug: \"moneybird-create-contact\",\n name: \"Create Moneybird Contact\",\n description: \"Tool to create a new contact in Moneybird. Use after you have an administration ID and need to onboard a new company/person. Provide either company_name or both firstname and lastname.\",\n input: MoneybirdCreateContactInput,\n output: MoneybirdCreateContactOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,WAAW,CAAC,CAAC,SAAS;CAChD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS;CACpD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC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AAAA,EAAE,OAAO,CAAC,CAAC,SAAS,YAAY,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;CAC/D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAClE,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtE,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;AACpF,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,yBAAyBC,eAAAA,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-contact.cjs","names":["z","action"],"sources":["../../src/actions/create-contact.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { moneybird } from \"../app\";\n\nexport const MoneybirdCreateContactInput = z.object({\n city: z.string().describe(\"City name\").optional(),\n phone: z.string().describe(\"Phone number\").optional(),\n country: z.string().describe(\"ISO 3166-1 alpha-2 country code, e.g., NL\").optional(),\n zipcode: z.string().describe(\"Postal code\").optional(),\n address1: z.string().describe(\"Street and number\").optional(),\n address2: z.string().describe(\"Additional address line\").optional(),\n lastname: z.string().describe(\"Last name; required if company_name is blank\").optional(),\n sepa_bic: z.string().describe(\"Valid BIC; required if sepa_active\").optional(),\n firstname: z.string().describe(\"First name; required if company_name is blank\").optional(),\n sepa_iban: z.string().describe(\"Valid IBAN; required if sepa_active\").optional(),\n tax_number: z.string().describe(\"Tax/VAT number\").optional(),\n customer_id: z.string().describe(\"Unique customer identifier; autogenerated if empty\").optional(),\n sepa_active: z.boolean().describe(\"Enable SEPA direct debit; when true, other SEPA fields are required\").optional(),\n bank_account: z.string().describe(\"Bank account number\").optional(),\n company_name: z.string().describe(\"Company name; required if firstname and lastname are blank\").optional(),\n si_identifier: z.string().describe(\"SEPA identifier\").optional(),\n delivery_method: z.enum([\"Email\", \"Simplerinvoicing\", \"Peppol\", \"Manual\", \"Post\"]).describe(\"Delivery method\").optional(),\n sepa_mandate_id: z.string().describe(\"Mandate ID; required if sepa_active\").optional(),\n administration_id: z.number().int().describe(\"ID of the administration\"),\n sepa_mandate_date: z.string().describe(\"Mandate date (YYYY-MM-DD); required if sepa_active\").optional(),\n sepa_sequence_type: z.enum([\"RCUR\", \"FRST\", \"OOFF\", \"FNAL\"]).describe(\"SEPA sequence type; required if sepa_active\").optional(),\n si_identifier_type: z.string().describe(\"SEPA identifier type\").optional(),\n chamber_of_commerce: z.string().describe(\"Chamber of Commerce number\").optional(),\n invoice_workflow_id: z.number().int().describe(\"Invoice workflow ID\").optional(),\n estimate_workflow_id: z.number().int().describe(\"Estimate workflow ID\").optional(),\n send_invoices_to_email: z.string().describe(\"Comma-separated emails to send invoices to\").optional(),\n sepa_iban_account_name: z.string().describe(\"Account holder name for SEPA\").optional(),\n send_estimates_to_email: z.string().describe(\"Comma-separated emails to send estimates to\").optional(),\n custom_fields_attributes: z.record(z.string(), z.unknown()).describe(\"Custom fields as dict of {index:{id, value}}\").optional(),\n});\nexport const MoneybirdCreateContactOutput = z.object({\n id: z.string().describe(\"ID of the created contact\").nullable(),\n lastname: z.string().describe(\"Last name\").nullable().optional(),\n firstname: z.string().describe(\"First name\").nullable().optional(),\n created_at: z.string().describe(\"Creation timestamp\").nullable(),\n updated_at: z.string().describe(\"Last update timestamp\").nullable(),\n company_name: z.string().describe(\"Company name\").nullable().optional(),\n administration_id: z.number().int().describe(\"ID of the administration\").nullable(),\n}).passthrough();\n\nexport const moneybirdCreateContact: AppAction<\n typeof MoneybirdCreateContactInput,\n typeof MoneybirdCreateContactOutput,\n typeof moneybird.credential\n> = action(\"MONEYBIRD_CREATE_CONTACT\", {\n slug: \"moneybird-create-contact\",\n name: \"Create Moneybird Contact\",\n description: \"Tool to create a new contact in Moneybird. Use after you have an administration ID and need to onboard a new company/person. Provide either company_name or both firstname and lastname.\",\n input: MoneybirdCreateContactInput,\n output: MoneybirdCreateContactOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,WAAW,CAAC,CAAC,SAAS;CAChD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS;CACpD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACnF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS;CACrD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS;CAC5D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAClE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACvF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAC7E,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACzF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC/E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;CAC3D,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAChG,aAAaA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,q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B,CAAC,CAAC,SAAS;CACrF,yBAAyBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CACrG,0BAA0BA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;AAChI,CAAC;AACD,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAC9D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,WAAW,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/D,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,YAAY,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;CAC/D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAClE,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtE,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;AACpF,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,yBAITC,eAAAA,OAAO,4BAA4B;CACrC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { moneybird } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/create-contact.d.ts
@@ -52,37 +54,7 @@ declare const MoneybirdCreateContactOutput: z.ZodObject<{
52
54
  company_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
53
55
  administration_id: z.ZodNullable<z.ZodNumber>;
54
56
  }, z.core.$loose>;
55
- declare const moneybirdCreateContact: import("@keystrokehq/action").WorkflowActionDefinition<{
56
- administration_id: number;
57
- city?: string | undefined;
58
- phone?: string | undefined;
59
- country?: string | undefined;
60
- zipcode?: string | undefined;
61
- address1?: string | undefined;
62
- address2?: string | undefined;
63
- lastname?: string | undefined;
64
- sepa_bic?: string | undefined;
65
- firstname?: string | undefined;
66
- sepa_iban?: string | undefined;
67
- tax_number?: string | undefined;
68
- customer_id?: string | undefined;
69
- sepa_active?: boolean | undefined;
70
- bank_account?: string | undefined;
71
- company_name?: string | undefined;
72
- si_identifier?: string | undefined;
73
- delivery_method?: "Email" | "Simplerinvoicing" | "Peppol" | "Manual" | "Post" | undefined;
74
- sepa_mandate_id?: string | undefined;
75
- sepa_mandate_date?: string | undefined;
76
- sepa_sequence_type?: "RCUR" | "FRST" | "OOFF" | "FNAL" | undefined;
77
- si_identifier_type?: string | undefined;
78
- chamber_of_commerce?: string | undefined;
79
- invoice_workflow_id?: number | undefined;
80
- estimate_workflow_id?: number | undefined;
81
- send_invoices_to_email?: string | undefined;
82
- sepa_iban_account_name?: string | undefined;
83
- send_estimates_to_email?: string | undefined;
84
- custom_fields_attributes?: Record<string, unknown> | undefined;
85
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
57
+ declare const moneybirdCreateContact: AppAction<typeof MoneybirdCreateContactInput, typeof MoneybirdCreateContactOutput, typeof moneybird.credential>;
86
58
  //#endregion
87
59
  export { moneybirdCreateContact };
88
60
  //# sourceMappingURL=create-contact.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-contact.d.cts","names":[],"sources":["../../src/actions/create-contact.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA+B3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;cAU5B,sBAAA,gCAAsB,wBAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6BAMjC,MAAA;AAAA"}
1
+ {"version":3,"file":"create-contact.d.cts","names":[],"sources":["../../src/actions/create-contact.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA+B3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;cAU5B,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,SACA,SAAA,CAAU,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { moneybird } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/create-contact.d.ts
@@ -52,37 +54,7 @@ declare const MoneybirdCreateContactOutput: z.ZodObject<{
52
54
  company_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
53
55
  administration_id: z.ZodNullable<z.ZodNumber>;
54
56
  }, z.core.$loose>;
55
- declare const moneybirdCreateContact: import("@keystrokehq/action").WorkflowActionDefinition<{
56
- administration_id: number;
57
- city?: string | undefined;
58
- phone?: string | undefined;
59
- country?: string | undefined;
60
- zipcode?: string | undefined;
61
- address1?: string | undefined;
62
- address2?: string | undefined;
63
- lastname?: string | undefined;
64
- sepa_bic?: string | undefined;
65
- firstname?: string | undefined;
66
- sepa_iban?: string | undefined;
67
- tax_number?: string | undefined;
68
- customer_id?: string | undefined;
69
- sepa_active?: boolean | undefined;
70
- bank_account?: string | undefined;
71
- company_name?: string | undefined;
72
- si_identifier?: string | undefined;
73
- delivery_method?: "Email" | "Simplerinvoicing" | "Peppol" | "Manual" | "Post" | undefined;
74
- sepa_mandate_id?: string | undefined;
75
- sepa_mandate_date?: string | undefined;
76
- sepa_sequence_type?: "RCUR" | "FRST" | "OOFF" | "FNAL" | undefined;
77
- si_identifier_type?: string | undefined;
78
- chamber_of_commerce?: string | undefined;
79
- invoice_workflow_id?: number | undefined;
80
- estimate_workflow_id?: number | undefined;
81
- send_invoices_to_email?: string | undefined;
82
- sepa_iban_account_name?: string | undefined;
83
- send_estimates_to_email?: string | undefined;
84
- custom_fields_attributes?: Record<string, unknown> | undefined;
85
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
57
+ declare const moneybirdCreateContact: AppAction<typeof MoneybirdCreateContactInput, typeof MoneybirdCreateContactOutput, typeof moneybird.credential>;
86
58
  //#endregion
87
59
  export { moneybirdCreateContact };
88
60
  //# sourceMappingURL=create-contact.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-contact.d.mts","names":[],"sources":["../../src/actions/create-contact.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA+B3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;cAU5B,sBAAA,gCAAsB,wBAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6BAMjC,MAAA;AAAA"}
1
+ {"version":3,"file":"create-contact.d.mts","names":[],"sources":["../../src/actions/create-contact.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA+B3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;cAU5B,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,SACA,SAAA,CAAU,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const moneybirdCreateContact = action("MONEYBIRD_CREATE_CONTACT", {
@@ -1 +1 @@
1
- {"version":3,"file":"create-contact.mjs","names":[],"sources":["../../src/actions/create-contact.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoneybirdCreateContactInput = z.object({\n city: z.string().describe(\"City name\").optional(),\n phone: z.string().describe(\"Phone number\").optional(),\n country: z.string().describe(\"ISO 3166-1 alpha-2 country code, e.g., NL\").optional(),\n zipcode: z.string().describe(\"Postal code\").optional(),\n address1: z.string().describe(\"Street and number\").optional(),\n address2: z.string().describe(\"Additional address line\").optional(),\n lastname: z.string().describe(\"Last name; required if company_name is blank\").optional(),\n sepa_bic: z.string().describe(\"Valid BIC; required if sepa_active\").optional(),\n firstname: z.string().describe(\"First name; required if company_name is blank\").optional(),\n sepa_iban: z.string().describe(\"Valid IBAN; required if sepa_active\").optional(),\n tax_number: z.string().describe(\"Tax/VAT number\").optional(),\n customer_id: z.string().describe(\"Unique customer identifier; autogenerated if empty\").optional(),\n sepa_active: z.boolean().describe(\"Enable SEPA direct debit; when true, other SEPA fields are required\").optional(),\n bank_account: z.string().describe(\"Bank account number\").optional(),\n company_name: z.string().describe(\"Company name; required if firstname and lastname are blank\").optional(),\n si_identifier: z.string().describe(\"SEPA identifier\").optional(),\n delivery_method: z.enum([\"Email\", \"Simplerinvoicing\", \"Peppol\", \"Manual\", \"Post\"]).describe(\"Delivery method\").optional(),\n sepa_mandate_id: z.string().describe(\"Mandate ID; required if sepa_active\").optional(),\n administration_id: z.number().int().describe(\"ID of the administration\"),\n sepa_mandate_date: z.string().describe(\"Mandate date (YYYY-MM-DD); required if sepa_active\").optional(),\n sepa_sequence_type: z.enum([\"RCUR\", \"FRST\", \"OOFF\", \"FNAL\"]).describe(\"SEPA sequence type; required if sepa_active\").optional(),\n si_identifier_type: z.string().describe(\"SEPA identifier type\").optional(),\n chamber_of_commerce: z.string().describe(\"Chamber of Commerce number\").optional(),\n invoice_workflow_id: z.number().int().describe(\"Invoice workflow ID\").optional(),\n estimate_workflow_id: z.number().int().describe(\"Estimate workflow ID\").optional(),\n send_invoices_to_email: z.string().describe(\"Comma-separated emails to send invoices to\").optional(),\n sepa_iban_account_name: z.string().describe(\"Account holder name for SEPA\").optional(),\n send_estimates_to_email: z.string().describe(\"Comma-separated emails to send estimates to\").optional(),\n custom_fields_attributes: z.record(z.string(), z.unknown()).describe(\"Custom fields as dict of {index:{id, value}}\").optional(),\n});\nexport const MoneybirdCreateContactOutput = z.object({\n id: z.string().describe(\"ID of the created contact\").nullable(),\n lastname: z.string().describe(\"Last name\").nullable().optional(),\n firstname: z.string().describe(\"First name\").nullable().optional(),\n created_at: z.string().describe(\"Creation timestamp\").nullable(),\n updated_at: z.string().describe(\"Last update timestamp\").nullable(),\n company_name: z.string().describe(\"Company name\").nullable().optional(),\n administration_id: z.number().int().describe(\"ID of the administration\").nullable(),\n}).passthrough();\n\nexport const moneybirdCreateContact = action(\"MONEYBIRD_CREATE_CONTACT\", {\n slug: \"moneybird-create-contact\",\n name: \"Create Moneybird Contact\",\n description: \"Tool to create a new contact in Moneybird. Use after you have an administration ID and need to onboard a new company/person. Provide either company_name or both firstname and lastname.\",\n input: MoneybirdCreateContactInput,\n output: MoneybirdCreateContactOutput,\n});\n"],"mappings":";;AA6CA,MAAa,yBAAyB,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA7CyC,EAAE,OAAO;EAClD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,WAAW,CAAC,CAAC,SAAS;EAChD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS;EACpD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;EACnF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS;EACrD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS;EAC5D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,C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contact.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { moneybird } from \"../app\";\n\nexport const MoneybirdCreateContactInput = z.object({\n city: z.string().describe(\"City name\").optional(),\n phone: z.string().describe(\"Phone number\").optional(),\n country: z.string().describe(\"ISO 3166-1 alpha-2 country code, e.g., NL\").optional(),\n zipcode: z.string().describe(\"Postal code\").optional(),\n address1: z.string().describe(\"Street and number\").optional(),\n address2: z.string().describe(\"Additional address line\").optional(),\n lastname: z.string().describe(\"Last name; required if company_name is blank\").optional(),\n sepa_bic: z.string().describe(\"Valid BIC; required if sepa_active\").optional(),\n firstname: z.string().describe(\"First name; required if company_name is blank\").optional(),\n sepa_iban: z.string().describe(\"Valid IBAN; required if sepa_active\").optional(),\n tax_number: z.string().describe(\"Tax/VAT number\").optional(),\n customer_id: z.string().describe(\"Unique customer identifier; autogenerated if empty\").optional(),\n sepa_active: z.boolean().describe(\"Enable SEPA direct debit; when true, other SEPA fields are required\").optional(),\n bank_account: z.string().describe(\"Bank account number\").optional(),\n company_name: z.string().describe(\"Company name; required if firstname and lastname are blank\").optional(),\n si_identifier: z.string().describe(\"SEPA identifier\").optional(),\n delivery_method: z.enum([\"Email\", \"Simplerinvoicing\", \"Peppol\", \"Manual\", \"Post\"]).describe(\"Delivery method\").optional(),\n sepa_mandate_id: z.string().describe(\"Mandate ID; required if sepa_active\").optional(),\n administration_id: z.number().int().describe(\"ID of the administration\"),\n sepa_mandate_date: z.string().describe(\"Mandate date (YYYY-MM-DD); required if sepa_active\").optional(),\n sepa_sequence_type: z.enum([\"RCUR\", \"FRST\", \"OOFF\", \"FNAL\"]).describe(\"SEPA sequence type; required if sepa_active\").optional(),\n si_identifier_type: z.string().describe(\"SEPA identifier type\").optional(),\n chamber_of_commerce: z.string().describe(\"Chamber of Commerce number\").optional(),\n invoice_workflow_id: z.number().int().describe(\"Invoice workflow ID\").optional(),\n estimate_workflow_id: z.number().int().describe(\"Estimate workflow ID\").optional(),\n send_invoices_to_email: z.string().describe(\"Comma-separated emails to send invoices to\").optional(),\n sepa_iban_account_name: z.string().describe(\"Account holder name for SEPA\").optional(),\n send_estimates_to_email: z.string().describe(\"Comma-separated emails to send estimates to\").optional(),\n custom_fields_attributes: z.record(z.string(), z.unknown()).describe(\"Custom fields as dict of {index:{id, value}}\").optional(),\n});\nexport const MoneybirdCreateContactOutput = z.object({\n id: z.string().describe(\"ID of the created contact\").nullable(),\n lastname: z.string().describe(\"Last name\").nullable().optional(),\n firstname: z.string().describe(\"First name\").nullable().optional(),\n created_at: z.string().describe(\"Creation timestamp\").nullable(),\n updated_at: z.string().describe(\"Last update timestamp\").nullable(),\n company_name: z.string().describe(\"Company name\").nullable().optional(),\n administration_id: z.number().int().describe(\"ID of the administration\").nullable(),\n}).passthrough();\n\nexport const moneybirdCreateContact: AppAction<\n typeof MoneybirdCreateContactInput,\n typeof MoneybirdCreateContactOutput,\n typeof moneybird.credential\n> = action(\"MONEYBIRD_CREATE_CONTACT\", {\n slug: \"moneybird-create-contact\",\n name: \"Create Moneybird Contact\",\n description: \"Tool to create a new contact in Moneybird. Use after you have an administration ID and need to onboard a new company/person. Provide either company_name or both firstname and lastname.\",\n input: MoneybirdCreateContactInput,\n output: MoneybirdCreateContactOutput,\n});\n"],"mappings":";;;AA+CA,MAAa,yBAIT,OAAO,4BAA4B;CACrC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAjDyC,EAAE,OAAO;EAClD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,WAAW,CAAC,CAAC,SAAS;EAChD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS;EACpD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;EACnF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS;EACrD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,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,CAAC,CAAC,CAAC,YAWO;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/create-sales-invoice.ts
@@ -1 +1 @@
1
- {"version":3,"file":"create-sales-invoice.cjs","names":["z","action"],"sources":["../../src/actions/create-sales-invoice.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoneybirdCreateSalesInvoiceInput = z.object({\n sales_invoice: z.object({\n currency: z.string().describe(\"ISO currency code, e.g., 'EUR'\").optional(),\n discount: z.union([z.number(), z.string()]).optional(),\n reference: z.string().describe(\"Invoice reference\").optional(),\n contact_id: z.number().int().describe(\"ID of the contact for this invoice\"),\n workflow_id: z.number().int().describe(\"ID of the workflow\").optional(),\n invoice_date: z.string().describe(\"Invoice date in YYYY-MM-DD format\").optional(),\n time_entry_ids: z.array(z.number().int()).describe(\"List of time entry IDs to include\").optional(),\n contact_person_id: z.number().int().describe(\"ID of the contact person\").optional(),\n document_style_id: z.number().int().describe(\"ID of the document style\").optional(),\n details_attributes: z.array(z.object({\n price: z.union([z.number(), z.string()]),\n amount: z.string().describe(\"Quantity, e.g., '1 x'\").optional(),\n period: z.string().describe(\"Date range, e.g., '20250101..20250131'\").optional(),\n row_order: z.number().int().describe(\"Order of this line in the invoice\").optional(),\n product_id: z.number().int().describe(\"ID of a product\").optional(),\n project_id: z.number().int().describe(\"ID of a project\").optional(),\n description: z.string().describe(\"Description of the item\"),\n tax_rate_id: z.number().int().describe(\"ID of a valid tax rate\").optional(),\n ledger_account_id: z.number().int().describe(\"ID of a valid ledger account\").optional(),\n}).passthrough().describe(\"Sales invoice line item.\")).describe(\"List of line items, at least one item is required\"),\n first_due_interval: z.number().int().describe(\"Days until due date if not specified\").optional(),\n payment_conditions: z.string().describe(\"Payment conditions text\").optional(),\n invoice_sequence_id: z.string().describe(\"Sequence ID for the invoice\").optional(),\n prices_are_incl_tax: z.boolean().describe(\"Whether line prices include tax\").optional(),\n from_payment_request: z.boolean().describe(\"Flag indicating invoice originates from payment request\").optional(),\n original_estimate_id: z.number().int().describe(\"ID of the original estimate\").optional(),\n custom_fields_attributes: z.array(z.object({\n id: z.number().int().describe(\"ID of the custom field\"),\n value: z.string().describe(\"Value for the custom field\"),\n}).passthrough()).describe(\"List of custom field values\").optional(),\n}).describe(\"Sales invoice data to create\"),\n administration_id: z.number().int().describe(\"Numeric administration ID, part of the Moneybird URL path\"),\n}).describe(\"Request model for creating a sales invoice.\");\nconst MoneybirdCreateSalesInvoice_SalesInvoiceDetailSchema = z.object({\n price: z.union([z.number(), z.string()]),\n amount: z.string().describe(\"Quantity, e.g., '1 x'\").nullable().optional(),\n period: z.string().describe(\"Date range, e.g., '20250101..20250131'\").nullable().optional(),\n row_order: z.number().int().describe(\"Order of this line in the invoice\").nullable().optional(),\n product_id: z.number().int().describe(\"ID of a product\").nullable().optional(),\n project_id: z.number().int().describe(\"ID of a project\").nullable().optional(),\n description: z.string().describe(\"Description of the item\").nullable(),\n tax_rate_id: z.number().int().describe(\"ID of a valid tax rate\").nullable().optional(),\n ledger_account_id: z.number().int().describe(\"ID of a valid ledger account\").nullable().optional(),\n}).passthrough().describe(\"Sales invoice line item.\");\nexport const MoneybirdCreateSalesInvoiceOutput = z.object({\n id: z.string().describe(\"Unique ID of the created sales invoice\").nullable(),\n state: z.string().describe(\"State of the invoice, e.g., 'draft' or 'open'\").nullable(),\n details: z.array(MoneybirdCreateSalesInvoice_SalesInvoiceDetailSchema).describe(\"List of line items created\"),\n currency: z.string().describe(\"Currency code used\").nullable(),\n due_date: z.string().describe(\"Due date of the invoice\").nullable().optional(),\n contact_id: z.string().describe(\"Contact ID associated with the invoice\").nullable(),\n created_at: z.string().describe(\"Timestamp when the invoice was created\").nullable(),\n invoice_id: z.string().describe(\"Invoice number if assigned\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when the invoice was last updated\").nullable(),\n invoice_date: z.string().describe(\"Date of the invoice\").nullable().optional(),\n administration_id: z.number().int().describe(\"Administration ID of the invoice\").nullable(),\n total_price_excl_tax: z.string().describe(\"Total price excluding tax\").nullable(),\n total_price_incl_tax: z.string().describe(\"Total price including tax\").nullable(),\n}).passthrough().describe(\"Response model for a created sales invoice. Contains key fields returned by the API.\");\n\nexport const moneybirdCreateSalesInvoice = action(\"MONEYBIRD_CREATE_SALES_INVOICE\", {\n slug: \"moneybird-create-sales-invoice\",\n name: \"Create Sales Invoice\",\n description: \"Tool to create a new sales invoice. Use when you need to bill a contact with specified line items.\",\n input: MoneybirdCreateSalesInvoiceInput,\n output: MoneybirdCreateSalesInvoiceOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,eAAeA,IAAAA,EAAE,OAAO;EACxB,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;EACzE,UAAUA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS;EACrD,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS;EAC7D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC;EAC1E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;EACtE,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EAChF,gBAAgBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EACjG,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B,CAAC,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,CAAC,CAAC,SAAS;CAClF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CACxF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAC1F,sBAAsBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAChF,sBAAsBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;AAClF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sFAAsF;AAEhH,MAAa,8BAA8BC,eAAAA,OAAO,kCAAkC;CAClF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-sales-invoice.cjs","names":["z","action"],"sources":["../../src/actions/create-sales-invoice.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { moneybird } from \"../app\";\n\nexport const MoneybirdCreateSalesInvoiceInput = z.object({\n sales_invoice: z.object({\n currency: z.string().describe(\"ISO currency code, e.g., 'EUR'\").optional(),\n discount: z.union([z.number(), z.string()]).optional(),\n reference: z.string().describe(\"Invoice reference\").optional(),\n contact_id: z.number().int().describe(\"ID of the contact for this invoice\"),\n workflow_id: z.number().int().describe(\"ID of the workflow\").optional(),\n invoice_date: z.string().describe(\"Invoice date in YYYY-MM-DD format\").optional(),\n time_entry_ids: z.array(z.number().int()).describe(\"List of time entry IDs to include\").optional(),\n contact_person_id: z.number().int().describe(\"ID of the contact person\").optional(),\n document_style_id: z.number().int().describe(\"ID of the document style\").optional(),\n details_attributes: z.array(z.object({\n price: z.union([z.number(), z.string()]),\n amount: z.string().describe(\"Quantity, e.g., '1 x'\").optional(),\n period: z.string().describe(\"Date range, e.g., '20250101..20250131'\").optional(),\n row_order: z.number().int().describe(\"Order of this line in the invoice\").optional(),\n product_id: z.number().int().describe(\"ID of a product\").optional(),\n project_id: z.number().int().describe(\"ID of a project\").optional(),\n description: z.string().describe(\"Description of the item\"),\n tax_rate_id: z.number().int().describe(\"ID of a valid tax rate\").optional(),\n ledger_account_id: z.number().int().describe(\"ID of a valid ledger account\").optional(),\n}).passthrough().describe(\"Sales invoice line item.\")).describe(\"List of line items, at least one item is required\"),\n first_due_interval: z.number().int().describe(\"Days until due date if not specified\").optional(),\n payment_conditions: z.string().describe(\"Payment conditions text\").optional(),\n invoice_sequence_id: z.string().describe(\"Sequence ID for the invoice\").optional(),\n prices_are_incl_tax: z.boolean().describe(\"Whether line prices include tax\").optional(),\n from_payment_request: z.boolean().describe(\"Flag indicating invoice originates from payment request\").optional(),\n original_estimate_id: z.number().int().describe(\"ID of the original estimate\").optional(),\n custom_fields_attributes: z.array(z.object({\n id: z.number().int().describe(\"ID of the custom field\"),\n value: z.string().describe(\"Value for the custom field\"),\n}).passthrough()).describe(\"List of custom field values\").optional(),\n}).describe(\"Sales invoice data to create\"),\n administration_id: z.number().int().describe(\"Numeric administration ID, part of the Moneybird URL path\"),\n}).describe(\"Request model for creating a sales invoice.\");\nconst MoneybirdCreateSalesInvoice_SalesInvoiceDetailSchema = z.object({\n price: z.union([z.number(), z.string()]),\n amount: z.string().describe(\"Quantity, e.g., '1 x'\").nullable().optional(),\n period: z.string().describe(\"Date range, e.g., '20250101..20250131'\").nullable().optional(),\n row_order: z.number().int().describe(\"Order of this line in the invoice\").nullable().optional(),\n product_id: z.number().int().describe(\"ID of a product\").nullable().optional(),\n project_id: z.number().int().describe(\"ID of a project\").nullable().optional(),\n description: z.string().describe(\"Description of the item\").nullable(),\n tax_rate_id: z.number().int().describe(\"ID of a valid tax rate\").nullable().optional(),\n ledger_account_id: z.number().int().describe(\"ID of a valid ledger account\").nullable().optional(),\n}).passthrough().describe(\"Sales invoice line item.\");\nexport const MoneybirdCreateSalesInvoiceOutput = z.object({\n id: z.string().describe(\"Unique ID of the created sales invoice\").nullable(),\n state: z.string().describe(\"State of the invoice, e.g., 'draft' or 'open'\").nullable(),\n details: z.array(MoneybirdCreateSalesInvoice_SalesInvoiceDetailSchema).describe(\"List of line items created\"),\n currency: z.string().describe(\"Currency code used\").nullable(),\n due_date: z.string().describe(\"Due date of the invoice\").nullable().optional(),\n contact_id: z.string().describe(\"Contact ID associated with the invoice\").nullable(),\n created_at: z.string().describe(\"Timestamp when the invoice was created\").nullable(),\n invoice_id: z.string().describe(\"Invoice number if assigned\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when the invoice was last updated\").nullable(),\n invoice_date: z.string().describe(\"Date of the invoice\").nullable().optional(),\n administration_id: z.number().int().describe(\"Administration ID of the invoice\").nullable(),\n total_price_excl_tax: z.string().describe(\"Total price excluding tax\").nullable(),\n total_price_incl_tax: z.string().describe(\"Total price including tax\").nullable(),\n}).passthrough().describe(\"Response model for a created sales invoice. Contains key fields returned by the API.\");\n\nexport const moneybirdCreateSalesInvoice: AppAction<\n typeof MoneybirdCreateSalesInvoiceInput,\n typeof MoneybirdCreateSalesInvoiceOutput,\n typeof moneybird.credential\n> = action(\"MONEYBIRD_CREATE_SALES_INVOICE\", {\n slug: \"moneybird-create-sales-invoice\",\n name: \"Create Sales Invoice\",\n description: \"Tool to create a new sales invoice. Use when you need to bill a contact with specified line items.\",\n input: MoneybirdCreateSalesInvoiceInput,\n output: MoneybirdCreateSalesInvoiceOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,eAAeA,IAAAA,EAAE,OAAO;EACxB,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;EACzE,UAAUA,IAAAA,EAAE,MAAM,CAACA,IAAAA,E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