@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,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const moneybirdGetAdditionalCharges = action("MONEYBIRD_GET_ADDITIONAL_CHARGES", {
@@ -1 +1 @@
1
- {"version":3,"file":"get-additional-charges.mjs","names":[],"sources":["../../src/actions/get-additional-charges.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoneybirdGetAdditionalChargesInput = z.object({\n contact_id: z.string().describe(\"ID of the contact to retrieve additional charges for\"),\n include_billed: z.boolean().default(false).describe(\"If true, includes additional charges that have already been billed. Default is false.\").optional(),\n administration_id: z.number().int().describe(\"Numeric administration ID, as part of the Moneybird URL path.\"),\n});\nexport const MoneybirdGetAdditionalChargesOutput = z.unknown();\n\nexport const moneybirdGetAdditionalCharges = action(\"MONEYBIRD_GET_ADDITIONAL_CHARGES\", {\n slug: \"moneybird-get-additional-charges\",\n name: \"Get Additional Charges\",\n description: \"Tool to get additional charges for a contact. Use when you need to view pending (or optionally billed) usage or recurring charges.\",\n input: MoneybirdGetAdditionalChargesInput,\n output: MoneybirdGetAdditionalChargesOutput,\n});\n"],"mappings":";;AAWA,MAAa,gCAAgC,OAAO,oCAAoC;CACtF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAXgD,EAAE,OAAO;EACzD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;EACtF,gBAAgB,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,uFAAuF,CAAC,CAAC,SAAS;EACtJ,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+DAA+D;CAC9G,CAOS;CACP,QAPiD,EAAE,QAO3C;AACV,CAAC"}
1
+ {"version":3,"file":"get-additional-charges.mjs","names":[],"sources":["../../src/actions/get-additional-charges.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 MoneybirdGetAdditionalChargesInput = z.object({\n contact_id: z.string().describe(\"ID of the contact to retrieve additional charges for\"),\n include_billed: z.boolean().default(false).describe(\"If true, includes additional charges that have already been billed. Default is false.\").optional(),\n administration_id: z.number().int().describe(\"Numeric administration ID, as part of the Moneybird URL path.\"),\n});\nexport const MoneybirdGetAdditionalChargesOutput = z.unknown();\n\nexport const moneybirdGetAdditionalCharges: AppAction<\n typeof MoneybirdGetAdditionalChargesInput,\n typeof MoneybirdGetAdditionalChargesOutput,\n typeof moneybird.credential\n> = action(\"MONEYBIRD_GET_ADDITIONAL_CHARGES\", {\n slug: \"moneybird-get-additional-charges\",\n name: \"Get Additional Charges\",\n description: \"Tool to get additional charges for a contact. Use when you need to view pending (or optionally billed) usage or recurring charges.\",\n input: MoneybirdGetAdditionalChargesInput,\n output: MoneybirdGetAdditionalChargesOutput,\n});\n"],"mappings":";;;AAaA,MAAa,gCAIT,OAAO,oCAAoC;CAC7C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAfgD,EAAE,OAAO;EACzD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;EACtF,gBAAgB,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,uFAAuF,CAAC,CAAC,SAAS;EACtJ,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+DAA+D;CAC9G,CAWS;CACP,QAXiD,EAAE,QAW3C;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/get-contact-by-customer-id.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-contact-by-customer-id.cjs","names":["z","action"],"sources":["../../src/actions/get-contact-by-customer-id.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoneybirdGetContactByCustomerIdInput = z.object({\n customer_id: z.string().describe(\"Unique customer identifier for the contact.\"),\n administration_id: z.number().int().describe(\"Numeric administration ID, used in the URL path.\"),\n}).describe(\"Request parameters for fetching a contact by its customer_id.\");\nconst MoneybirdGetContactByCustomerId_NoteSchema = z.object({\n id: z.string().describe(\"ID of the note\").nullable(),\n data: z.record(z.string(), z.unknown()).describe(\"Additional data for the note\"),\n note: z.string().describe(\"Text content of the note\").nullable(),\n todo: z.boolean().describe(\"Whether this note is a to-do item\").nullable(),\n user_id: z.number().int().describe(\"User ID who created the note\").nullable(),\n entity_id: z.string().describe(\"ID of the related entity (contact)\").nullable(),\n todo_type: z.string().describe(\"Type of to-do\").nullable().optional(),\n created_at: z.string().describe(\"Creation timestamp of the note\").nullable(),\n updated_at: z.string().describe(\"Last update timestamp of the note\").nullable(),\n assignee_id: z.string().describe(\"Assigned user ID if to-do\").nullable().optional(),\n entity_type: z.string().describe(\"Type of the related entity\").nullable(),\n completed_at: z.string().describe(\"Timestamp when to-do was completed\").nullable().optional(),\n completed_by_id: z.string().describe(\"User ID who completed the to-do\").nullable().optional(),\n administration_id: z.number().int().describe(\"Administration ID\").nullable(),\n}).passthrough();\nconst MoneybirdGetContactByCustomerId_EventSchema = z.object({\n data: z.record(z.string(), z.unknown()).describe(\"Additional data for the event\"),\n action: z.string().describe(\"Action type of the event\").nullable(),\n user_id: z.number().int().describe(\"User ID who triggered the event\").nullable(),\n created_at: z.string().describe(\"Event creation timestamp\").nullable(),\n updated_at: z.string().describe(\"Event update timestamp\").nullable(),\n link_entity_id: z.string().describe(\"Linked entity ID if any\").nullable().optional(),\n link_entity_type: z.string().describe(\"Linked entity type if any\").nullable().optional(),\n administration_id: z.number().int().describe(\"Administration ID\").nullable(),\n}).passthrough();\nconst MoneybirdGetContactByCustomerId_CustomFieldSchema = z.object({\n id: z.string().describe(\"Custom field ID\").nullable(),\n name: z.string().describe(\"Name of the custom field\").nullable().optional(),\n value: z.string().describe(\"Value of the custom field\").nullable().optional(),\n}).passthrough();\nconst MoneybirdGetContactByCustomerId_ContactPersonSchema = z.object({\n id: z.string().describe(\"Contact person ID\").nullable(),\n email: z.string().describe(\"Email of contact person\").nullable().optional(),\n phone: z.string().describe(\"Phone number of contact person\").nullable().optional(),\n version: z.number().int().describe(\"Version of contact person record\").nullable(),\n lastname: z.string().describe(\"Last name of contact person\").nullable().optional(),\n firstname: z.string().describe(\"First name of contact person\").nullable().optional(),\n contact_id: z.string().describe(\"Parent contact ID\").nullable(),\n created_at: z.string().describe(\"Creation timestamp of contact person\").nullable(),\n department: z.string().describe(\"Department of contact person\").nullable().optional(),\n updated_at: z.string().describe(\"Last update timestamp of contact person\").nullable(),\n administration_id: z.number().int().describe(\"Administration ID\").nullable(),\n}).passthrough();\nexport const MoneybirdGetContactByCustomerIdOutput = z.object({\n id: z.string().describe(\"Contact ID\").nullable(),\n city: z.string().describe(\"City name\").nullable().optional(),\n email: z.string().describe(\"Primary email address\").nullable().optional(),\n notes: z.array(MoneybirdGetContactByCustomerId_NoteSchema).describe(\"List of notes associated with the contact\"),\n phone: z.string().describe(\"Phone number\").nullable().optional(),\n events: z.array(MoneybirdGetContactByCustomerId_EventSchema).describe(\"List of events related to the contact\"),\n country: z.string().describe(\"Country code (ISO 3166-1 alpha-2)\").nullable().optional(),\n version: z.number().int().describe(\"Version number of contact record\").nullable(),\n zipcode: z.string().describe(\"Postal code\").nullable().optional(),\n address1: z.string().describe(\"Address line 1\").nullable().optional(),\n address2: z.string().describe(\"Address line 2\").nullable().optional(),\n archived: z.boolean().describe(\"Whether the contact is archived\").nullable(),\n lastname: z.string().describe(\"Last name of the contact\").nullable().optional(),\n sepa_bic: z.string().describe(\"SEPA BIC code\").nullable().optional(),\n attention: z.string().describe(\"Billing attention line\").nullable().optional(),\n email_ubl: z.boolean().describe(\"Whether to send UBL invoices\").nullable(),\n firstname: z.string().describe(\"First name of the contact\").nullable().optional(),\n sepa_iban: z.string().describe(\"SEPA IBAN number\").nullable().optional(),\n created_at: z.string().describe(\"Creation timestamp of contact\").nullable(),\n is_trusted: z.boolean().describe(\"Whether the contact is trusted\").nullable(),\n tax_number: z.string().describe(\"Tax or VAT number\").nullable().optional(),\n updated_at: z.string().describe(\"Last update timestamp of contact\").nullable(),\n customer_id: z.string().describe(\"Customer identifier of the contact\").nullable(),\n sepa_active: z.boolean().describe(\"SEPA direct debit active\").nullable(),\n bank_account: z.string().describe(\"Bank account number of contact\").nullable().optional(),\n company_name: z.string().describe(\"Company name of the contact\").nullable().optional(),\n custom_fields: z.array(MoneybirdGetContactByCustomerId_CustomFieldSchema).describe(\"List of custom fields and values\"),\n si_identifier: z.string().describe(\"SEPA identifier\").nullable().optional(),\n contact_people: z.array(MoneybirdGetContactByCustomerId_ContactPersonSchema).describe(\"List of contact person records\"),\n delivery_method: z.string().describe(\"Delivery method for invoices\").nullable().optional(),\n sepa_mandate_id: z.string().describe(\"SEPA mandate ID\").nullable().optional(),\n credit_card_type: z.string().describe(\"Type of credit card\").nullable().optional(),\n tax_number_valid: z.boolean().describe(\"Whether tax number is valid\").nullable().optional(),\n administration_id: z.number().int().describe(\"Administration ID\").nullable(),\n sepa_mandate_date: z.string().describe(\"SEPA mandate date\").nullable().optional(),\n credit_card_number: z.string().describe(\"Credit card number token\").nullable().optional(),\n sales_invoices_url: z.string().describe(\"URL for contact's sales invoices\").nullable().optional(),\n sepa_sequence_type: z.string().describe(\"SEPA sequence type\").nullable(),\n si_identifier_type: z.string().describe(\"SEPA identifier type\").nullable().optional(),\n chamber_of_commerce: z.string().describe(\"Chamber of Commerce number\").nullable().optional(),\n invoice_workflow_id: z.number().int().describe(\"Invoice workflow ID\").nullable().optional(),\n max_transfer_amount: z.string().describe(\"Maximum transfer amount allowed\").nullable().optional(),\n estimate_workflow_id: z.number().int().describe(\"Estimate workflow ID\").nullable().optional(),\n credit_card_reference: z.string().describe(\"Credit card reference\").nullable().optional(),\n send_invoices_to_email: z.string().describe(\"Email addresses for sending invoices\").nullable().optional(),\n sepa_iban_account_name: z.string().describe(\"SEPA IBAN account name\").nullable().optional(),\n send_estimates_to_email: z.string().describe(\"Email addresses for sending estimates\").nullable().optional(),\n tax_number_validated_at: z.string().describe(\"Timestamp when tax number was validated\").nullable().optional(),\n moneybird_payments_mandate: z.boolean().describe(\"Moneybird Payments mandate active\").nullable(),\n send_invoices_to_attention: z.string().describe(\"Attention line for sending invoices\").nullable().optional(),\n send_estimates_to_attention: z.string().describe(\"Attention line for sending estimates\").nullable().optional(),\n}).passthrough();\n\nexport const moneybirdGetContactByCustomerId = action(\"MONEYBIRD_GET_CONTACT_BY_CUSTOMER_ID\", {\n slug: \"moneybird-get-contact-by-customer-id\",\n name: \"Get Contact by Customer ID\",\n description: \"Tool to retrieve full contact details by customer ID. Use when you need all fields of a contact given its customer_id.\",\n input: MoneybirdGetContactByCustomerIdInput,\n output: MoneybirdGetContactByCustomerIdOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uCAAuCA,IAAAA,EAAE,OAAO;CAC3D,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;CAC9E,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD;AACjG,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAM,6CAA6CA,IAAAA,EAAE,OAAO;CAC1D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;CACnD,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,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AAS,CAAC,CAAC,SAAS;CACxG,wBAAwBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,yBAAyBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,yBAAyBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,4BAA4BA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAC/F,4BAA4BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3G,6BAA6BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/G,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,kCAAkCC,eAAAA,OAAO,wCAAwC;CAC5F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-contact-by-customer-id.cjs","names":["z","action"],"sources":["../../src/actions/get-contact-by-customer-id.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 MoneybirdGetContactByCustomerIdInput = z.object({\n customer_id: z.string().describe(\"Unique customer identifier for the contact.\"),\n administration_id: z.number().int().describe(\"Numeric administration ID, used in the URL path.\"),\n}).describe(\"Request parameters for fetching a contact by its customer_id.\");\nconst MoneybirdGetContactByCustomerId_NoteSchema = z.object({\n id: z.string().describe(\"ID of the note\").nullable(),\n data: z.record(z.string(), z.unknown()).describe(\"Additional data for the note\"),\n note: z.string().describe(\"Text content of the note\").nullable(),\n todo: z.boolean().describe(\"Whether this note is a to-do item\").nullable(),\n user_id: z.number().int().describe(\"User ID who created the note\").nullable(),\n entity_id: z.string().describe(\"ID of the related entity (contact)\").nullable(),\n todo_type: z.string().describe(\"Type of to-do\").nullable().optional(),\n created_at: z.string().describe(\"Creation timestamp of the note\").nullable(),\n updated_at: z.string().describe(\"Last update timestamp of the note\").nullable(),\n assignee_id: z.string().describe(\"Assigned user ID if to-do\").nullable().optional(),\n entity_type: z.string().describe(\"Type of the related entity\").nullable(),\n completed_at: z.string().describe(\"Timestamp when to-do was completed\").nullable().optional(),\n completed_by_id: z.string().describe(\"User ID who completed the to-do\").nullable().optional(),\n administration_id: z.number().int().describe(\"Administration ID\").nullable(),\n}).passthrough();\nconst MoneybirdGetContactByCustomerId_EventSchema = z.object({\n data: z.record(z.string(), z.unknown()).describe(\"Additional data for the event\"),\n action: z.string().describe(\"Action type of the event\").nullable(),\n user_id: z.number().int().describe(\"User ID who triggered the event\").nullable(),\n created_at: z.string().describe(\"Event creation timestamp\").nullable(),\n updated_at: z.string().describe(\"Event update timestamp\").nullable(),\n link_entity_id: z.string().describe(\"Linked entity ID if any\").nullable().optional(),\n link_entity_type: z.string().describe(\"Linked entity type if any\").nullable().optional(),\n administration_id: z.number().int().describe(\"Administration ID\").nullable(),\n}).passthrough();\nconst MoneybirdGetContactByCustomerId_CustomFieldSchema = z.object({\n id: z.string().describe(\"Custom field ID\").nullable(),\n name: z.string().describe(\"Name of the custom field\").nullable().optional(),\n value: z.string().describe(\"Value of the custom field\").nullable().optional(),\n}).passthrough();\nconst MoneybirdGetContactByCustomerId_ContactPersonSchema = z.object({\n id: z.string().describe(\"Contact person ID\").nullable(),\n email: z.string().describe(\"Email of contact person\").nullable().optional(),\n phone: z.string().describe(\"Phone number of contact person\").nullable().optional(),\n version: z.number().int().describe(\"Version of contact person record\").nullable(),\n lastname: z.string().describe(\"Last name of contact person\").nullable().optional(),\n firstname: z.string().describe(\"First name of contact person\").nullable().optional(),\n contact_id: z.string().describe(\"Parent contact ID\").nullable(),\n created_at: z.string().describe(\"Creation timestamp of contact person\").nullable(),\n department: z.string().describe(\"Department of contact person\").nullable().optional(),\n updated_at: z.string().describe(\"Last update timestamp of contact person\").nullable(),\n administration_id: z.number().int().describe(\"Administration ID\").nullable(),\n}).passthrough();\nexport const MoneybirdGetContactByCustomerIdOutput = z.object({\n id: z.string().describe(\"Contact ID\").nullable(),\n city: z.string().describe(\"City name\").nullable().optional(),\n email: z.string().describe(\"Primary email address\").nullable().optional(),\n notes: z.array(MoneybirdGetContactByCustomerId_NoteSchema).describe(\"List of notes associated with the contact\"),\n phone: z.string().describe(\"Phone number\").nullable().optional(),\n events: z.array(MoneybirdGetContactByCustomerId_EventSchema).describe(\"List of events related to the contact\"),\n country: z.string().describe(\"Country code (ISO 3166-1 alpha-2)\").nullable().optional(),\n version: z.number().int().describe(\"Version number of contact record\").nullable(),\n zipcode: z.string().describe(\"Postal code\").nullable().optional(),\n address1: z.string().describe(\"Address line 1\").nullable().optional(),\n address2: z.string().describe(\"Address line 2\").nullable().optional(),\n archived: z.boolean().describe(\"Whether the contact is archived\").nullable(),\n lastname: z.string().describe(\"Last name of the contact\").nullable().optional(),\n sepa_bic: z.string().describe(\"SEPA BIC code\").nullable().optional(),\n attention: z.string().describe(\"Billing attention line\").nullable().optional(),\n email_ubl: z.boolean().describe(\"Whether to send UBL invoices\").nullable(),\n firstname: z.string().describe(\"First name of the contact\").nullable().optional(),\n sepa_iban: z.string().describe(\"SEPA IBAN number\").nullable().optional(),\n created_at: z.string().describe(\"Creation timestamp of contact\").nullable(),\n is_trusted: z.boolean().describe(\"Whether the contact is trusted\").nullable(),\n tax_number: z.string().describe(\"Tax or VAT number\").nullable().optional(),\n updated_at: z.string().describe(\"Last update timestamp of contact\").nullable(),\n customer_id: z.string().describe(\"Customer identifier of the contact\").nullable(),\n sepa_active: z.boolean().describe(\"SEPA direct debit active\").nullable(),\n bank_account: z.string().describe(\"Bank account number of contact\").nullable().optional(),\n company_name: z.string().describe(\"Company name of the contact\").nullable().optional(),\n custom_fields: z.array(MoneybirdGetContactByCustomerId_CustomFieldSchema).describe(\"List of custom fields and values\"),\n si_identifier: z.string().describe(\"SEPA identifier\").nullable().optional(),\n contact_people: z.array(MoneybirdGetContactByCustomerId_ContactPersonSchema).describe(\"List of contact person records\"),\n delivery_method: z.string().describe(\"Delivery method for invoices\").nullable().optional(),\n sepa_mandate_id: z.string().describe(\"SEPA mandate ID\").nullable().optional(),\n credit_card_type: z.string().describe(\"Type of credit card\").nullable().optional(),\n tax_number_valid: z.boolean().describe(\"Whether tax number is valid\").nullable().optional(),\n administration_id: z.number().int().describe(\"Administration ID\").nullable(),\n sepa_mandate_date: z.string().describe(\"SEPA mandate date\").nullable().optional(),\n credit_card_number: z.string().describe(\"Credit card number token\").nullable().optional(),\n sales_invoices_url: z.string().describe(\"URL for contact's sales invoices\").nullable().optional(),\n sepa_sequence_type: z.string().describe(\"SEPA sequence type\").nullable(),\n si_identifier_type: z.string().describe(\"SEPA identifier type\").nullable().optional(),\n chamber_of_commerce: z.string().describe(\"Chamber of Commerce number\").nullable().optional(),\n invoice_workflow_id: z.number().int().describe(\"Invoice workflow ID\").nullable().optional(),\n max_transfer_amount: z.string().describe(\"Maximum transfer amount allowed\").nullable().optional(),\n estimate_workflow_id: z.number().int().describe(\"Estimate workflow ID\").nullable().optional(),\n credit_card_reference: z.string().describe(\"Credit card reference\").nullable().optional(),\n send_invoices_to_email: z.string().describe(\"Email addresses for sending invoices\").nullable().optional(),\n sepa_iban_account_name: z.string().describe(\"SEPA IBAN account name\").nullable().optional(),\n send_estimates_to_email: z.string().describe(\"Email addresses for sending estimates\").nullable().optional(),\n tax_number_validated_at: z.string().describe(\"Timestamp when tax number was validated\").nullable().optional(),\n moneybird_payments_mandate: z.boolean().describe(\"Moneybird Payments mandate active\").nullable(),\n send_invoices_to_attention: z.string().describe(\"Attention line for sending invoices\").nullable().optional(),\n send_estimates_to_attention: z.string().describe(\"Attention line for sending estimates\").nullable().optional(),\n}).passthrough();\n\nexport const moneybirdGetContactByCustomerId: AppAction<\n typeof MoneybirdGetContactByCustomerIdInput,\n typeof MoneybirdGetContactByCustomerIdOutput,\n typeof moneybird.credential\n> = action(\"MONEYBIRD_GET_CONTACT_BY_CUSTOMER_ID\", {\n slug: \"moneybird-get-contact-by-customer-id\",\n name: \"Get Contact by Customer ID\",\n description: \"Tool to retrieve full contact details by customer ID. Use when you need all fields of a contact given its customer_id.\",\n input: MoneybirdGetContactByCustomerIdInput,\n output: MoneybirdGetContactByCustomerIdOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,uCAAuCA,IAAAA,EAAE,OAAO;CAC3D,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;CAC9E,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD;AACjG,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAM,6CAA6CA,IAAAA,EAAE,OAAO;CAC1D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;CACnD,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8BAA8B;CAC/E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CAC/D,MAAMA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACzE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CAC5E,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAC9E,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS,CAAC,CA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,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3G,6BAA6BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/G,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,kCAITC,eAAAA,OAAO,wCAAwC;CACjD,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/get-contact-by-customer-id.d.ts
@@ -98,10 +100,7 @@ declare const MoneybirdGetContactByCustomerIdOutput: z.ZodObject<{
98
100
  send_invoices_to_attention: z.ZodOptional<z.ZodNullable<z.ZodString>>;
99
101
  send_estimates_to_attention: z.ZodOptional<z.ZodNullable<z.ZodString>>;
100
102
  }, z.core.$loose>;
101
- declare const moneybirdGetContactByCustomerId: import("@keystrokehq/action").WorkflowActionDefinition<{
102
- customer_id: string;
103
- administration_id: number;
104
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
103
+ declare const moneybirdGetContactByCustomerId: AppAction<typeof MoneybirdGetContactByCustomerIdInput, typeof MoneybirdGetContactByCustomerIdOutput, typeof moneybird.credential>;
105
104
  //#endregion
106
105
  export { moneybirdGetContactByCustomerId };
107
106
  //# sourceMappingURL=get-contact-by-customer-id.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-contact-by-customer-id.d.cts","names":[],"sources":["../../src/actions/get-contact-by-customer-id.ts"],"mappings":";;;cAIa,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;cAgDpC,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAsDrC,+BAAA,gCAA+B,wBAAA"}
1
+ {"version":3,"file":"get-contact-by-customer-id.d.cts","names":[],"sources":["../../src/actions/get-contact-by-customer-id.ts"],"mappings":";;;;;cAMa,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;cAgDpC,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAsDrC,+BAAA,EAAiC,SAAA,QACrC,oCAAA,SACA,qCAAA,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/get-contact-by-customer-id.d.ts
@@ -98,10 +100,7 @@ declare const MoneybirdGetContactByCustomerIdOutput: z.ZodObject<{
98
100
  send_invoices_to_attention: z.ZodOptional<z.ZodNullable<z.ZodString>>;
99
101
  send_estimates_to_attention: z.ZodOptional<z.ZodNullable<z.ZodString>>;
100
102
  }, z.core.$loose>;
101
- declare const moneybirdGetContactByCustomerId: import("@keystrokehq/action").WorkflowActionDefinition<{
102
- customer_id: string;
103
- administration_id: number;
104
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
103
+ declare const moneybirdGetContactByCustomerId: AppAction<typeof MoneybirdGetContactByCustomerIdInput, typeof MoneybirdGetContactByCustomerIdOutput, typeof moneybird.credential>;
105
104
  //#endregion
106
105
  export { moneybirdGetContactByCustomerId };
107
106
  //# sourceMappingURL=get-contact-by-customer-id.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-contact-by-customer-id.d.mts","names":[],"sources":["../../src/actions/get-contact-by-customer-id.ts"],"mappings":";;;cAIa,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;cAgDpC,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAsDrC,+BAAA,gCAA+B,wBAAA"}
1
+ {"version":3,"file":"get-contact-by-customer-id.d.mts","names":[],"sources":["../../src/actions/get-contact-by-customer-id.ts"],"mappings":";;;;;cAMa,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;cAgDpC,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAsDrC,+BAAA,EAAiC,SAAA,QACrC,oCAAA,SACA,qCAAA,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
  //#region src/actions/get-contact-by-customer-id.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-contact-by-customer-id.mjs","names":[],"sources":["../../src/actions/get-contact-by-customer-id.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoneybirdGetContactByCustomerIdInput = z.object({\n customer_id: z.string().describe(\"Unique customer identifier for the contact.\"),\n administration_id: z.number().int().describe(\"Numeric administration ID, used in the URL path.\"),\n}).describe(\"Request parameters for fetching a contact by its customer_id.\");\nconst MoneybirdGetContactByCustomerId_NoteSchema = z.object({\n id: z.string().describe(\"ID of the note\").nullable(),\n data: z.record(z.string(), z.unknown()).describe(\"Additional data for the note\"),\n note: z.string().describe(\"Text content of the note\").nullable(),\n todo: z.boolean().describe(\"Whether this note is a to-do item\").nullable(),\n user_id: z.number().int().describe(\"User ID who created the note\").nullable(),\n entity_id: z.string().describe(\"ID of the related entity (contact)\").nullable(),\n todo_type: z.string().describe(\"Type of to-do\").nullable().optional(),\n created_at: z.string().describe(\"Creation timestamp of the note\").nullable(),\n updated_at: z.string().describe(\"Last update timestamp of the note\").nullable(),\n assignee_id: z.string().describe(\"Assigned user ID if to-do\").nullable().optional(),\n entity_type: z.string().describe(\"Type of the related entity\").nullable(),\n completed_at: z.string().describe(\"Timestamp when to-do was completed\").nullable().optional(),\n completed_by_id: z.string().describe(\"User ID who completed the to-do\").nullable().optional(),\n administration_id: z.number().int().describe(\"Administration ID\").nullable(),\n}).passthrough();\nconst MoneybirdGetContactByCustomerId_EventSchema = z.object({\n data: z.record(z.string(), z.unknown()).describe(\"Additional data for the event\"),\n action: z.string().describe(\"Action type of the event\").nullable(),\n user_id: z.number().int().describe(\"User ID who triggered the event\").nullable(),\n created_at: z.string().describe(\"Event creation timestamp\").nullable(),\n updated_at: z.string().describe(\"Event update timestamp\").nullable(),\n link_entity_id: z.string().describe(\"Linked entity ID if any\").nullable().optional(),\n link_entity_type: z.string().describe(\"Linked entity type if any\").nullable().optional(),\n administration_id: z.number().int().describe(\"Administration ID\").nullable(),\n}).passthrough();\nconst MoneybirdGetContactByCustomerId_CustomFieldSchema = z.object({\n id: z.string().describe(\"Custom field ID\").nullable(),\n name: z.string().describe(\"Name of the custom field\").nullable().optional(),\n value: z.string().describe(\"Value of the custom field\").nullable().optional(),\n}).passthrough();\nconst MoneybirdGetContactByCustomerId_ContactPersonSchema = z.object({\n id: z.string().describe(\"Contact person ID\").nullable(),\n email: z.string().describe(\"Email of contact person\").nullable().optional(),\n phone: z.string().describe(\"Phone number of contact person\").nullable().optional(),\n version: z.number().int().describe(\"Version of contact person record\").nullable(),\n lastname: z.string().describe(\"Last name of contact person\").nullable().optional(),\n firstname: z.string().describe(\"First name of contact person\").nullable().optional(),\n contact_id: z.string().describe(\"Parent contact ID\").nullable(),\n created_at: z.string().describe(\"Creation timestamp of contact person\").nullable(),\n department: z.string().describe(\"Department of contact person\").nullable().optional(),\n updated_at: z.string().describe(\"Last update timestamp of contact person\").nullable(),\n administration_id: z.number().int().describe(\"Administration ID\").nullable(),\n}).passthrough();\nexport const MoneybirdGetContactByCustomerIdOutput = z.object({\n id: z.string().describe(\"Contact ID\").nullable(),\n city: z.string().describe(\"City name\").nullable().optional(),\n email: z.string().describe(\"Primary email address\").nullable().optional(),\n notes: z.array(MoneybirdGetContactByCustomerId_NoteSchema).describe(\"List of notes associated with the contact\"),\n phone: z.string().describe(\"Phone number\").nullable().optional(),\n events: z.array(MoneybirdGetContactByCustomerId_EventSchema).describe(\"List of events related to the contact\"),\n country: z.string().describe(\"Country code (ISO 3166-1 alpha-2)\").nullable().optional(),\n version: z.number().int().describe(\"Version number of contact record\").nullable(),\n zipcode: z.string().describe(\"Postal code\").nullable().optional(),\n address1: z.string().describe(\"Address line 1\").nullable().optional(),\n address2: z.string().describe(\"Address line 2\").nullable().optional(),\n archived: z.boolean().describe(\"Whether the contact is archived\").nullable(),\n lastname: z.string().describe(\"Last name of the contact\").nullable().optional(),\n sepa_bic: z.string().describe(\"SEPA BIC code\").nullable().optional(),\n attention: z.string().describe(\"Billing attention line\").nullable().optional(),\n email_ubl: z.boolean().describe(\"Whether to send UBL invoices\").nullable(),\n firstname: z.string().describe(\"First name of the contact\").nullable().optional(),\n sepa_iban: z.string().describe(\"SEPA IBAN number\").nullable().optional(),\n created_at: z.string().describe(\"Creation timestamp of contact\").nullable(),\n is_trusted: z.boolean().describe(\"Whether the contact is trusted\").nullable(),\n tax_number: z.string().describe(\"Tax or VAT number\").nullable().optional(),\n updated_at: z.string().describe(\"Last update timestamp of contact\").nullable(),\n customer_id: z.string().describe(\"Customer identifier of the contact\").nullable(),\n sepa_active: z.boolean().describe(\"SEPA direct debit active\").nullable(),\n bank_account: z.string().describe(\"Bank account number of contact\").nullable().optional(),\n company_name: z.string().describe(\"Company name of the contact\").nullable().optional(),\n custom_fields: z.array(MoneybirdGetContactByCustomerId_CustomFieldSchema).describe(\"List of custom fields and values\"),\n si_identifier: z.string().describe(\"SEPA identifier\").nullable().optional(),\n contact_people: z.array(MoneybirdGetContactByCustomerId_ContactPersonSchema).describe(\"List of contact person records\"),\n delivery_method: z.string().describe(\"Delivery method for invoices\").nullable().optional(),\n sepa_mandate_id: z.string().describe(\"SEPA mandate ID\").nullable().optional(),\n credit_card_type: z.string().describe(\"Type of credit card\").nullable().optional(),\n tax_number_valid: z.boolean().describe(\"Whether tax number is valid\").nullable().optional(),\n administration_id: z.number().int().describe(\"Administration ID\").nullable(),\n sepa_mandate_date: z.string().describe(\"SEPA mandate date\").nullable().optional(),\n credit_card_number: z.string().describe(\"Credit card number token\").nullable().optional(),\n sales_invoices_url: z.string().describe(\"URL for contact's sales invoices\").nullable().optional(),\n sepa_sequence_type: z.string().describe(\"SEPA sequence type\").nullable(),\n si_identifier_type: z.string().describe(\"SEPA identifier type\").nullable().optional(),\n chamber_of_commerce: z.string().describe(\"Chamber of Commerce number\").nullable().optional(),\n invoice_workflow_id: z.number().int().describe(\"Invoice workflow ID\").nullable().optional(),\n max_transfer_amount: z.string().describe(\"Maximum transfer amount allowed\").nullable().optional(),\n estimate_workflow_id: z.number().int().describe(\"Estimate workflow ID\").nullable().optional(),\n credit_card_reference: z.string().describe(\"Credit card reference\").nullable().optional(),\n send_invoices_to_email: z.string().describe(\"Email addresses for sending invoices\").nullable().optional(),\n sepa_iban_account_name: z.string().describe(\"SEPA IBAN account name\").nullable().optional(),\n send_estimates_to_email: z.string().describe(\"Email addresses for sending estimates\").nullable().optional(),\n tax_number_validated_at: z.string().describe(\"Timestamp when tax number was validated\").nullable().optional(),\n moneybird_payments_mandate: z.boolean().describe(\"Moneybird Payments mandate active\").nullable(),\n send_invoices_to_attention: z.string().describe(\"Attention line for sending invoices\").nullable().optional(),\n send_estimates_to_attention: z.string().describe(\"Attention line for sending estimates\").nullable().optional(),\n}).passthrough();\n\nexport const moneybirdGetContactByCustomerId = action(\"MONEYBIRD_GET_CONTACT_BY_CUSTOMER_ID\", {\n slug: \"moneybird-get-contact-by-customer-id\",\n name: \"Get Contact by Customer ID\",\n description: \"Tool to retrieve full contact details by customer ID. Use when you need all fields of a contact given its customer_id.\",\n input: MoneybirdGetContactByCustomerIdInput,\n output: MoneybirdGetContactByCustomerIdOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uCAAuC,EAAE,OAAO;CAC3D,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;CAC9E,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD;AACjG,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAM,6CAA6C,EAAE,OAAO;CAC1D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;CACnD,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8BAA8B;CAC/E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CAC/D,MAAM,EAAE,QAAQ,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACzE,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CAC5E,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAC9E,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CAC3E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAC9E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,aAAa,EAAE,OAAO,CA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,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1F,yBAAyB,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1G,yBAAyB,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5G,4BAA4B,EAAE,QAAQ,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EAC/F,4BAA4B,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3G,6BAA6B,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/G,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
1
+ {"version":3,"file":"get-contact-by-customer-id.mjs","names":[],"sources":["../../src/actions/get-contact-by-customer-id.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 MoneybirdGetContactByCustomerIdInput = z.object({\n customer_id: z.string().describe(\"Unique customer identifier for the contact.\"),\n administration_id: z.number().int().describe(\"Numeric administration ID, used in the URL path.\"),\n}).describe(\"Request parameters for fetching a contact by its customer_id.\");\nconst MoneybirdGetContactByCustomerId_NoteSchema = z.object({\n id: z.string().describe(\"ID of the note\").nullable(),\n data: z.record(z.string(), z.unknown()).describe(\"Additional data for the note\"),\n note: z.string().describe(\"Text content of the note\").nullable(),\n todo: z.boolean().describe(\"Whether this note is a to-do item\").nullable(),\n user_id: z.number().int().describe(\"User ID who created the note\").nullable(),\n entity_id: z.string().describe(\"ID of the related entity (contact)\").nullable(),\n todo_type: z.string().describe(\"Type of to-do\").nullable().optional(),\n created_at: z.string().describe(\"Creation timestamp of the note\").nullable(),\n updated_at: z.string().describe(\"Last update timestamp of the note\").nullable(),\n assignee_id: z.string().describe(\"Assigned user ID if to-do\").nullable().optional(),\n entity_type: z.string().describe(\"Type of the related entity\").nullable(),\n completed_at: z.string().describe(\"Timestamp when to-do was completed\").nullable().optional(),\n completed_by_id: z.string().describe(\"User ID who completed the to-do\").nullable().optional(),\n administration_id: z.number().int().describe(\"Administration ID\").nullable(),\n}).passthrough();\nconst MoneybirdGetContactByCustomerId_EventSchema = z.object({\n data: z.record(z.string(), z.unknown()).describe(\"Additional data for the event\"),\n action: z.string().describe(\"Action type of the event\").nullable(),\n user_id: z.number().int().describe(\"User ID who triggered the event\").nullable(),\n created_at: z.string().describe(\"Event creation timestamp\").nullable(),\n updated_at: z.string().describe(\"Event update timestamp\").nullable(),\n link_entity_id: z.string().describe(\"Linked entity ID if any\").nullable().optional(),\n link_entity_type: z.string().describe(\"Linked entity type if any\").nullable().optional(),\n administration_id: z.number().int().describe(\"Administration ID\").nullable(),\n}).passthrough();\nconst MoneybirdGetContactByCustomerId_CustomFieldSchema = z.object({\n id: z.string().describe(\"Custom field ID\").nullable(),\n name: z.string().describe(\"Name of the custom field\").nullable().optional(),\n value: z.string().describe(\"Value of the custom field\").nullable().optional(),\n}).passthrough();\nconst MoneybirdGetContactByCustomerId_ContactPersonSchema = z.object({\n id: z.string().describe(\"Contact person ID\").nullable(),\n email: z.string().describe(\"Email of contact person\").nullable().optional(),\n phone: z.string().describe(\"Phone number of contact person\").nullable().optional(),\n version: z.number().int().describe(\"Version of contact person record\").nullable(),\n lastname: z.string().describe(\"Last name of contact person\").nullable().optional(),\n firstname: z.string().describe(\"First name of contact person\").nullable().optional(),\n contact_id: z.string().describe(\"Parent contact ID\").nullable(),\n created_at: z.string().describe(\"Creation timestamp of contact person\").nullable(),\n department: z.string().describe(\"Department of contact person\").nullable().optional(),\n updated_at: z.string().describe(\"Last update timestamp of contact person\").nullable(),\n administration_id: z.number().int().describe(\"Administration ID\").nullable(),\n}).passthrough();\nexport const MoneybirdGetContactByCustomerIdOutput = z.object({\n id: z.string().describe(\"Contact ID\").nullable(),\n city: z.string().describe(\"City name\").nullable().optional(),\n email: z.string().describe(\"Primary email address\").nullable().optional(),\n notes: z.array(MoneybirdGetContactByCustomerId_NoteSchema).describe(\"List of notes associated with the contact\"),\n phone: z.string().describe(\"Phone number\").nullable().optional(),\n events: z.array(MoneybirdGetContactByCustomerId_EventSchema).describe(\"List of events related to the contact\"),\n country: z.string().describe(\"Country code (ISO 3166-1 alpha-2)\").nullable().optional(),\n version: z.number().int().describe(\"Version number of contact record\").nullable(),\n zipcode: z.string().describe(\"Postal code\").nullable().optional(),\n address1: z.string().describe(\"Address line 1\").nullable().optional(),\n address2: z.string().describe(\"Address line 2\").nullable().optional(),\n archived: z.boolean().describe(\"Whether the contact is archived\").nullable(),\n lastname: z.string().describe(\"Last name of the contact\").nullable().optional(),\n sepa_bic: z.string().describe(\"SEPA BIC code\").nullable().optional(),\n attention: z.string().describe(\"Billing attention line\").nullable().optional(),\n email_ubl: z.boolean().describe(\"Whether to send UBL invoices\").nullable(),\n firstname: z.string().describe(\"First name of the contact\").nullable().optional(),\n sepa_iban: z.string().describe(\"SEPA IBAN number\").nullable().optional(),\n created_at: z.string().describe(\"Creation timestamp of contact\").nullable(),\n is_trusted: z.boolean().describe(\"Whether the contact is trusted\").nullable(),\n tax_number: z.string().describe(\"Tax or VAT number\").nullable().optional(),\n updated_at: z.string().describe(\"Last update timestamp of contact\").nullable(),\n customer_id: z.string().describe(\"Customer identifier of the contact\").nullable(),\n sepa_active: z.boolean().describe(\"SEPA direct debit active\").nullable(),\n bank_account: z.string().describe(\"Bank account number of contact\").nullable().optional(),\n company_name: z.string().describe(\"Company name of the contact\").nullable().optional(),\n custom_fields: z.array(MoneybirdGetContactByCustomerId_CustomFieldSchema).describe(\"List of custom fields and values\"),\n si_identifier: z.string().describe(\"SEPA identifier\").nullable().optional(),\n contact_people: z.array(MoneybirdGetContactByCustomerId_ContactPersonSchema).describe(\"List of contact person records\"),\n delivery_method: z.string().describe(\"Delivery method for invoices\").nullable().optional(),\n sepa_mandate_id: z.string().describe(\"SEPA mandate ID\").nullable().optional(),\n credit_card_type: z.string().describe(\"Type of credit card\").nullable().optional(),\n tax_number_valid: z.boolean().describe(\"Whether tax number is valid\").nullable().optional(),\n administration_id: z.number().int().describe(\"Administration ID\").nullable(),\n sepa_mandate_date: z.string().describe(\"SEPA mandate date\").nullable().optional(),\n credit_card_number: z.string().describe(\"Credit card number token\").nullable().optional(),\n sales_invoices_url: z.string().describe(\"URL for contact's sales invoices\").nullable().optional(),\n sepa_sequence_type: z.string().describe(\"SEPA sequence type\").nullable(),\n si_identifier_type: z.string().describe(\"SEPA identifier type\").nullable().optional(),\n chamber_of_commerce: z.string().describe(\"Chamber of Commerce number\").nullable().optional(),\n invoice_workflow_id: z.number().int().describe(\"Invoice workflow ID\").nullable().optional(),\n max_transfer_amount: z.string().describe(\"Maximum transfer amount allowed\").nullable().optional(),\n estimate_workflow_id: z.number().int().describe(\"Estimate workflow ID\").nullable().optional(),\n credit_card_reference: z.string().describe(\"Credit card reference\").nullable().optional(),\n send_invoices_to_email: z.string().describe(\"Email addresses for sending invoices\").nullable().optional(),\n sepa_iban_account_name: z.string().describe(\"SEPA IBAN account name\").nullable().optional(),\n send_estimates_to_email: z.string().describe(\"Email addresses for sending estimates\").nullable().optional(),\n tax_number_validated_at: z.string().describe(\"Timestamp when tax number was validated\").nullable().optional(),\n moneybird_payments_mandate: z.boolean().describe(\"Moneybird Payments mandate active\").nullable(),\n send_invoices_to_attention: z.string().describe(\"Attention line for sending invoices\").nullable().optional(),\n send_estimates_to_attention: z.string().describe(\"Attention line for sending estimates\").nullable().optional(),\n}).passthrough();\n\nexport const moneybirdGetContactByCustomerId: AppAction<\n typeof MoneybirdGetContactByCustomerIdInput,\n typeof MoneybirdGetContactByCustomerIdOutput,\n typeof moneybird.credential\n> = action(\"MONEYBIRD_GET_CONTACT_BY_CUSTOMER_ID\", {\n slug: \"moneybird-get-contact-by-customer-id\",\n name: \"Get Contact by Customer ID\",\n description: \"Tool to retrieve full contact details by customer ID. Use when you need all fields of a contact given its customer_id.\",\n input: MoneybirdGetContactByCustomerIdInput,\n output: MoneybirdGetContactByCustomerIdOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,uCAAuC,EAAE,OAAO;CAC3D,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;CAC9E,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD;AACjG,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAM,6CAA6C,EAAE,OAAO;CAC1D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;CACnD,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8BAA8B;CAC/E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CAC/D,MAAM,EAAE,QAAQ,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACzE,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CAC5E,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAC9E,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CAC3E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAC9E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACxE,cA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AAC,SAAS;EAC1F,yBAAyB,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1G,yBAAyB,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5G,4BAA4B,EAAE,QAAQ,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EAC/F,4BAA4B,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3G,6BAA6B,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/G,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/get-contact-person.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-contact-person.cjs","names":["z","action"],"sources":["../../src/actions/get-contact-person.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoneybirdGetContactPersonInput = z.object({\n contact_id: z.number().int().describe(\"The ID of the contact to which the person belongs.\"),\n administration_id: z.number().int().describe(\"Numeric administration ID, used in the URL path.\"),\n contact_person_id: z.number().int().describe(\"The ID of the contact person to retrieve.\"),\n}).describe(\"Path parameters for retrieving a contact person from a contact.\");\nexport const MoneybirdGetContactPersonOutput = z.object({\n id: z.string().describe(\"Unique identifier of the 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 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 the contact person belongs to\").nullable(),\n}).passthrough().describe(\"The retrieved contact person record.\");\n\nexport const moneybirdGetContactPerson = action(\"MONEYBIRD_GET_CONTACT_PERSON\", {\n slug: \"moneybird-get-contact-person\",\n name: \"Get Contact Person\",\n description: \"Tool to get all information about a contact person. Use when you have the administration, contact, and contact person IDs and need full details before updating.\",\n input: MoneybirdGetContactPersonInput,\n output: MoneybirdGetContactPersonOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD;CAC1F,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD;CAC/F,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C;AAC1F,CAAC,CAAC,CAAC,SAAS,iEAAiE;AAC7E,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC5E,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,oDAAoD,CAAC,CAAC,SAAS;CAC/F,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;AAClH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sCAAsC;AAEhE,MAAa,4BAA4BC,eAAAA,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-contact-person.cjs","names":["z","action"],"sources":["../../src/actions/get-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 MoneybirdGetContactPersonInput = z.object({\n contact_id: z.number().int().describe(\"The ID of the contact to which the person belongs.\"),\n administration_id: z.number().int().describe(\"Numeric administration ID, used in the URL path.\"),\n contact_person_id: z.number().int().describe(\"The ID of the contact person to retrieve.\"),\n}).describe(\"Path parameters for retrieving a contact person from a contact.\");\nexport const MoneybirdGetContactPersonOutput = z.object({\n id: z.string().describe(\"Unique identifier of the 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 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 the contact person belongs to\").nullable(),\n}).passthrough().describe(\"The retrieved contact person record.\");\n\nexport const moneybirdGetContactPerson: AppAction<\n typeof MoneybirdGetContactPersonInput,\n typeof MoneybirdGetContactPersonOutput,\n typeof moneybird.credential\n> = action(\"MONEYBIRD_GET_CONTACT_PERSON\", {\n slug: \"moneybird-get-contact-person\",\n name: \"Get Contact Person\",\n description: \"Tool to get all information about a contact person. Use when you have the administration, contact, and contact person IDs and need full details before updating.\",\n input: MoneybirdGetContactPersonInput,\n output: MoneybirdGetContactPersonOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD;CAC1F,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD;CAC/F,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C;AAC1F,CAAC,CAAC,CAAC,SAAS,iEAAiE;AAC7E,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC5E,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,oDAAoD,CAAC,CAAC,SAAS;CAC/F,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;AAClH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sCAAsC;AAEhE,MAAa,4BAITC,eAAAA,OAAO,gCAAgC;CACzC,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/get-contact-person.d.ts
@@ -17,11 +19,7 @@ declare const MoneybirdGetContactPersonOutput: z.ZodObject<{
17
19
  updated_at: z.ZodNullable<z.ZodString>;
18
20
  administration_id: z.ZodNullable<z.ZodNumber>;
19
21
  }, z.core.$loose>;
20
- declare const moneybirdGetContactPerson: import("@keystrokehq/action").WorkflowActionDefinition<{
21
- contact_id: number;
22
- administration_id: number;
23
- contact_person_id: number;
24
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
22
+ declare const moneybirdGetContactPerson: AppAction<typeof MoneybirdGetContactPersonInput, typeof MoneybirdGetContactPersonOutput, typeof moneybird.credential>;
25
23
  //#endregion
26
24
  export { moneybirdGetContactPerson };
27
25
  //# sourceMappingURL=get-contact-person.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-contact-person.d.cts","names":[],"sources":["../../src/actions/get-contact-person.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;cAK9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;cAY/B,yBAAA,gCAAyB,wBAAA"}
1
+ {"version":3,"file":"get-contact-person.d.cts","names":[],"sources":["../../src/actions/get-contact-person.ts"],"mappings":";;;;;cAMa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;cAK9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;cAY/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/get-contact-person.d.ts
@@ -17,11 +19,7 @@ declare const MoneybirdGetContactPersonOutput: z.ZodObject<{
17
19
  updated_at: z.ZodNullable<z.ZodString>;
18
20
  administration_id: z.ZodNullable<z.ZodNumber>;
19
21
  }, z.core.$loose>;
20
- declare const moneybirdGetContactPerson: import("@keystrokehq/action").WorkflowActionDefinition<{
21
- contact_id: number;
22
- administration_id: number;
23
- contact_person_id: number;
24
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
22
+ declare const moneybirdGetContactPerson: AppAction<typeof MoneybirdGetContactPersonInput, typeof MoneybirdGetContactPersonOutput, typeof moneybird.credential>;
25
23
  //#endregion
26
24
  export { moneybirdGetContactPerson };
27
25
  //# sourceMappingURL=get-contact-person.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-contact-person.d.mts","names":[],"sources":["../../src/actions/get-contact-person.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;cAK9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;cAY/B,yBAAA,gCAAyB,wBAAA"}
1
+ {"version":3,"file":"get-contact-person.d.mts","names":[],"sources":["../../src/actions/get-contact-person.ts"],"mappings":";;;;;cAMa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;cAK9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;cAY/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 moneybirdGetContactPerson = action("MONEYBIRD_GET_CONTACT_PERSON", {
@@ -1 +1 @@
1
- {"version":3,"file":"get-contact-person.mjs","names":[],"sources":["../../src/actions/get-contact-person.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoneybirdGetContactPersonInput = z.object({\n contact_id: z.number().int().describe(\"The ID of the contact to which the person belongs.\"),\n administration_id: z.number().int().describe(\"Numeric administration ID, used in the URL path.\"),\n contact_person_id: z.number().int().describe(\"The ID of the contact person to retrieve.\"),\n}).describe(\"Path parameters for retrieving a contact person from a contact.\");\nexport const MoneybirdGetContactPersonOutput = z.object({\n id: z.string().describe(\"Unique identifier of the 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 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 the contact person belongs to\").nullable(),\n}).passthrough().describe(\"The retrieved contact person record.\");\n\nexport const moneybirdGetContactPerson = action(\"MONEYBIRD_GET_CONTACT_PERSON\", {\n slug: \"moneybird-get-contact-person\",\n name: \"Get Contact Person\",\n description: \"Tool to get all information about a contact person. Use when you have the administration, contact, and contact person IDs and need full details before updating.\",\n input: MoneybirdGetContactPersonInput,\n output: MoneybirdGetContactPersonOutput,\n});\n"],"mappings":";;AAqBA,MAAa,4BAA4B,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OArB4C,EAAE,OAAO;EACrD,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD;EAC1F,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD;EAC/F,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C;CAC1F,CAAC,CAAC,CAAC,SAAS,iEAiBH;CACP,QAjB6C,EAAE,OAAO;EACtD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;EAC5E,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,oDAAoD,CAAC,CAAC,SAAS;EAC/F,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CAClH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sCAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"get-contact-person.mjs","names":[],"sources":["../../src/actions/get-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 MoneybirdGetContactPersonInput = z.object({\n contact_id: z.number().int().describe(\"The ID of the contact to which the person belongs.\"),\n administration_id: z.number().int().describe(\"Numeric administration ID, used in the URL path.\"),\n contact_person_id: z.number().int().describe(\"The ID of the contact person to retrieve.\"),\n}).describe(\"Path parameters for retrieving a contact person from a contact.\");\nexport const MoneybirdGetContactPersonOutput = z.object({\n id: z.string().describe(\"Unique identifier of the 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 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 the contact person belongs to\").nullable(),\n}).passthrough().describe(\"The retrieved contact person record.\");\n\nexport const moneybirdGetContactPerson: AppAction<\n typeof MoneybirdGetContactPersonInput,\n typeof MoneybirdGetContactPersonOutput,\n typeof moneybird.credential\n> = action(\"MONEYBIRD_GET_CONTACT_PERSON\", {\n slug: \"moneybird-get-contact-person\",\n name: \"Get Contact Person\",\n description: \"Tool to get all information about a contact person. Use when you have the administration, contact, and contact person IDs and need full details before updating.\",\n input: MoneybirdGetContactPersonInput,\n output: MoneybirdGetContactPersonOutput,\n});\n"],"mappings":";;;AAuBA,MAAa,4BAIT,OAAO,gCAAgC;CACzC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAzB4C,EAAE,OAAO;EACrD,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD;EAC1F,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD;EAC/F,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C;CAC1F,CAAC,CAAC,CAAC,SAAS,iEAqBH;CACP,QArB6C,EAAE,OAAO;EACtD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;EAC5E,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,oDAAoD,CAAC,CAAC,SAAS;EAC/F,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CAClH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sCAWhB;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/get-contact.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-contact.cjs","names":["z","action"],"sources":["../../src/actions/get-contact.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoneybirdGetContactInput = z.object({\n contact_id: z.string().describe(\"ID of the contact to retrieve\"),\n include_archived: z.boolean().default(false).describe(\"Return archived contact when true (default false)\").optional(),\n administration_id: z.number().int().describe(\"Numeric administration ID, part of the Moneybird URL path\"),\n});\nexport const MoneybirdGetContactOutput = z.object({\n contact: z.record(z.string(), z.unknown()).describe(\"Full contact object returned by Moneybird\"),\n}).passthrough();\n\nexport const moneybirdGetContact = action(\"MONEYBIRD_GET_CONTACT\", {\n slug: \"moneybird-get-contact\",\n name: \"Get Contact\",\n description: \"Tool to retrieve all information about a specific contact by ID. Use when you need the full details of a contact, for example before generating invoices.\",\n input: MoneybirdGetContactInput,\n output: MoneybirdGetContactOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;CAC/D,kBAAkBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CACpH,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2DAA2D;AAC1G,CAAC;AACD,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,EAChD,SAASA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,2CAA2C,EACjG,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-contact.cjs","names":["z","action"],"sources":["../../src/actions/get-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 MoneybirdGetContactInput = z.object({\n contact_id: z.string().describe(\"ID of the contact to retrieve\"),\n include_archived: z.boolean().default(false).describe(\"Return archived contact when true (default false)\").optional(),\n administration_id: z.number().int().describe(\"Numeric administration ID, part of the Moneybird URL path\"),\n});\nexport const MoneybirdGetContactOutput = z.object({\n contact: z.record(z.string(), z.unknown()).describe(\"Full contact object returned by Moneybird\"),\n}).passthrough();\n\nexport const moneybirdGetContact: AppAction<\n typeof MoneybirdGetContactInput,\n typeof MoneybirdGetContactOutput,\n typeof moneybird.credential\n> = action(\"MONEYBIRD_GET_CONTACT\", {\n slug: \"moneybird-get-contact\",\n name: \"Get Contact\",\n description: \"Tool to retrieve all information about a specific contact by ID. Use when you need the full details of a contact, for example before generating invoices.\",\n input: MoneybirdGetContactInput,\n output: MoneybirdGetContactOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;CAC/D,kBAAkBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CACpH,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2DAA2D;AAC1G,CAAC;AACD,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,EAChD,SAASA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,2CAA2C,EACjG,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,sBAITC,eAAAA,OAAO,yBAAyB;CAClC,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/get-contact.d.ts
@@ -9,11 +11,7 @@ declare const MoneybirdGetContactInput: z.ZodObject<{
9
11
  declare const MoneybirdGetContactOutput: z.ZodObject<{
10
12
  contact: z.ZodRecord<z.ZodString, z.ZodUnknown>;
11
13
  }, z.core.$loose>;
12
- declare const moneybirdGetContact: import("@keystrokehq/action").WorkflowActionDefinition<{
13
- contact_id: string;
14
- administration_id: number;
15
- include_archived?: boolean | undefined;
16
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
14
+ declare const moneybirdGetContact: AppAction<typeof MoneybirdGetContactInput, typeof MoneybirdGetContactOutput, typeof moneybird.credential>;
17
15
  //#endregion
18
16
  export { moneybirdGetContact };
19
17
  //# sourceMappingURL=get-contact.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-contact.d.cts","names":[],"sources":["../../src/actions/get-contact.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;cAKxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;cAIzB,mBAAA,gCAAmB,wBAAA"}
1
+ {"version":3,"file":"get-contact.d.cts","names":[],"sources":["../../src/actions/get-contact.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;cAKxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;cAIzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,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/get-contact.d.ts
@@ -9,11 +11,7 @@ declare const MoneybirdGetContactInput: z.ZodObject<{
9
11
  declare const MoneybirdGetContactOutput: z.ZodObject<{
10
12
  contact: z.ZodRecord<z.ZodString, z.ZodUnknown>;
11
13
  }, z.core.$loose>;
12
- declare const moneybirdGetContact: import("@keystrokehq/action").WorkflowActionDefinition<{
13
- contact_id: string;
14
- administration_id: number;
15
- include_archived?: boolean | undefined;
16
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
14
+ declare const moneybirdGetContact: AppAction<typeof MoneybirdGetContactInput, typeof MoneybirdGetContactOutput, typeof moneybird.credential>;
17
15
  //#endregion
18
16
  export { moneybirdGetContact };
19
17
  //# sourceMappingURL=get-contact.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-contact.d.mts","names":[],"sources":["../../src/actions/get-contact.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;cAKxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;cAIzB,mBAAA,gCAAmB,wBAAA"}
1
+ {"version":3,"file":"get-contact.d.mts","names":[],"sources":["../../src/actions/get-contact.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;cAKxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;cAIzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,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 moneybirdGetContact = action("MONEYBIRD_GET_CONTACT", {
@@ -1 +1 @@
1
- {"version":3,"file":"get-contact.mjs","names":[],"sources":["../../src/actions/get-contact.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoneybirdGetContactInput = z.object({\n contact_id: z.string().describe(\"ID of the contact to retrieve\"),\n include_archived: z.boolean().default(false).describe(\"Return archived contact when true (default false)\").optional(),\n administration_id: z.number().int().describe(\"Numeric administration ID, part of the Moneybird URL path\"),\n});\nexport const MoneybirdGetContactOutput = z.object({\n contact: z.record(z.string(), z.unknown()).describe(\"Full contact object returned by Moneybird\"),\n}).passthrough();\n\nexport const moneybirdGetContact = action(\"MONEYBIRD_GET_CONTACT\", {\n slug: \"moneybird-get-contact\",\n name: \"Get Contact\",\n description: \"Tool to retrieve all information about a specific contact by ID. Use when you need the full details of a contact, for example before generating invoices.\",\n input: MoneybirdGetContactInput,\n output: MoneybirdGetContactOutput,\n});\n"],"mappings":";;AAaA,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAbsC,EAAE,OAAO;EAC/C,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;EAC/D,kBAAkB,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;EACpH,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2DAA2D;CAC1G,CASS;CACP,QATuC,EAAE,OAAO,EAChD,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,2CAA2C,EACjG,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
1
+ {"version":3,"file":"get-contact.mjs","names":[],"sources":["../../src/actions/get-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 MoneybirdGetContactInput = z.object({\n contact_id: z.string().describe(\"ID of the contact to retrieve\"),\n include_archived: z.boolean().default(false).describe(\"Return archived contact when true (default false)\").optional(),\n administration_id: z.number().int().describe(\"Numeric administration ID, part of the Moneybird URL path\"),\n});\nexport const MoneybirdGetContactOutput = z.object({\n contact: z.record(z.string(), z.unknown()).describe(\"Full contact object returned by Moneybird\"),\n}).passthrough();\n\nexport const moneybirdGetContact: AppAction<\n typeof MoneybirdGetContactInput,\n typeof MoneybirdGetContactOutput,\n typeof moneybird.credential\n> = action(\"MONEYBIRD_GET_CONTACT\", {\n slug: \"moneybird-get-contact\",\n name: \"Get Contact\",\n description: \"Tool to retrieve all information about a specific contact by ID. Use when you need the full details of a contact, for example before generating invoices.\",\n input: MoneybirdGetContactInput,\n output: MoneybirdGetContactOutput,\n});\n"],"mappings":";;;AAeA,MAAa,sBAIT,OAAO,yBAAyB;CAClC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAjBsC,EAAE,OAAO;EAC/C,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;EAC/D,kBAAkB,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;EACpH,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2DAA2D;CAC1G,CAaS;CACP,QAbuC,EAAE,OAAO,EAChD,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,2CAA2C,EACjG,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/get-sales-invoice.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-sales-invoice.cjs","names":["z","action"],"sources":["../../src/actions/get-sales-invoice.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoneybirdGetSalesInvoiceInput = z.object({\n invoice_id: z.string().describe(\"ID of the sales invoice to retrieve\"),\n administration_id: z.number().int().describe(\"Numeric administration ID, part of the Moneybird URL path\"),\n});\nexport const MoneybirdGetSalesInvoiceOutput = z.object({\n invoice: z.record(z.string(), z.unknown()).describe(\"Full sales invoice object returned by Moneybird\"),\n}).passthrough();\n\nexport const moneybirdGetSalesInvoice = action(\"MONEYBIRD_GET_SALES_INVOICE\", {\n slug: \"moneybird-get-sales-invoice\",\n name: \"Get Sales Invoice\",\n description: \"Tool to get a single sales invoice by ID. Use when you need detailed invoice data for a known invoice ID.\",\n input: MoneybirdGetSalesInvoiceInput,\n output: MoneybirdGetSalesInvoiceOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;CACrE,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2DAA2D;AAC1G,CAAC;AACD,MAAa,iCAAiCA,IAAAA,EAAE,OAAO,EACrD,SAASA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,iDAAiD,EACvG,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,2BAA2BC,eAAAA,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-sales-invoice.cjs","names":["z","action"],"sources":["../../src/actions/get-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 MoneybirdGetSalesInvoiceInput = z.object({\n invoice_id: z.string().describe(\"ID of the sales invoice to retrieve\"),\n administration_id: z.number().int().describe(\"Numeric administration ID, part of the Moneybird URL path\"),\n});\nexport const MoneybirdGetSalesInvoiceOutput = z.object({\n invoice: z.record(z.string(), z.unknown()).describe(\"Full sales invoice object returned by Moneybird\"),\n}).passthrough();\n\nexport const moneybirdGetSalesInvoice: AppAction<\n typeof MoneybirdGetSalesInvoiceInput,\n typeof MoneybirdGetSalesInvoiceOutput,\n typeof moneybird.credential\n> = action(\"MONEYBIRD_GET_SALES_INVOICE\", {\n slug: \"moneybird-get-sales-invoice\",\n name: \"Get Sales Invoice\",\n description: \"Tool to get a single sales invoice by ID. Use when you need detailed invoice data for a known invoice ID.\",\n input: MoneybirdGetSalesInvoiceInput,\n output: MoneybirdGetSalesInvoiceOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;CACrE,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2DAA2D;AAC1G,CAAC;AACD,MAAa,iCAAiCA,IAAAA,EAAE,OAAO,EACrD,SAASA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,iDAAiD,EACvG,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,2BAITC,eAAAA,OAAO,+BAA+B;CACxC,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/get-sales-invoice.d.ts
@@ -8,10 +10,7 @@ declare const MoneybirdGetSalesInvoiceInput: z.ZodObject<{
8
10
  declare const MoneybirdGetSalesInvoiceOutput: z.ZodObject<{
9
11
  invoice: z.ZodRecord<z.ZodString, z.ZodUnknown>;
10
12
  }, z.core.$loose>;
11
- declare const moneybirdGetSalesInvoice: import("@keystrokehq/action").WorkflowActionDefinition<{
12
- invoice_id: string;
13
- administration_id: number;
14
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
13
+ declare const moneybirdGetSalesInvoice: AppAction<typeof MoneybirdGetSalesInvoiceInput, typeof MoneybirdGetSalesInvoiceOutput, typeof moneybird.credential>;
15
14
  //#endregion
16
15
  export { moneybirdGetSalesInvoice };
17
16
  //# sourceMappingURL=get-sales-invoice.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-sales-invoice.d.cts","names":[],"sources":["../../src/actions/get-sales-invoice.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;cAI7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;cAI9B,wBAAA,gCAAwB,wBAAA"}
1
+ {"version":3,"file":"get-sales-invoice.d.cts","names":[],"sources":["../../src/actions/get-sales-invoice.ts"],"mappings":";;;;;cAMa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;cAI7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;cAI9B,wBAAA,EAA0B,SAAA,QAC9B,6BAAA,SACA,8BAAA,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/get-sales-invoice.d.ts
@@ -8,10 +10,7 @@ declare const MoneybirdGetSalesInvoiceInput: z.ZodObject<{
8
10
  declare const MoneybirdGetSalesInvoiceOutput: z.ZodObject<{
9
11
  invoice: z.ZodRecord<z.ZodString, z.ZodUnknown>;
10
12
  }, z.core.$loose>;
11
- declare const moneybirdGetSalesInvoice: import("@keystrokehq/action").WorkflowActionDefinition<{
12
- invoice_id: string;
13
- administration_id: number;
14
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
13
+ declare const moneybirdGetSalesInvoice: AppAction<typeof MoneybirdGetSalesInvoiceInput, typeof MoneybirdGetSalesInvoiceOutput, typeof moneybird.credential>;
15
14
  //#endregion
16
15
  export { moneybirdGetSalesInvoice };
17
16
  //# sourceMappingURL=get-sales-invoice.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-sales-invoice.d.mts","names":[],"sources":["../../src/actions/get-sales-invoice.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;cAI7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;cAI9B,wBAAA,gCAAwB,wBAAA"}
1
+ {"version":3,"file":"get-sales-invoice.d.mts","names":[],"sources":["../../src/actions/get-sales-invoice.ts"],"mappings":";;;;;cAMa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;cAI7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;cAI9B,wBAAA,EAA0B,SAAA,QAC9B,6BAAA,SACA,8BAAA,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 moneybirdGetSalesInvoice = action("MONEYBIRD_GET_SALES_INVOICE", {
@@ -1 +1 @@
1
- {"version":3,"file":"get-sales-invoice.mjs","names":[],"sources":["../../src/actions/get-sales-invoice.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoneybirdGetSalesInvoiceInput = z.object({\n invoice_id: z.string().describe(\"ID of the sales invoice to retrieve\"),\n administration_id: z.number().int().describe(\"Numeric administration ID, part of the Moneybird URL path\"),\n});\nexport const MoneybirdGetSalesInvoiceOutput = z.object({\n invoice: z.record(z.string(), z.unknown()).describe(\"Full sales invoice object returned by Moneybird\"),\n}).passthrough();\n\nexport const moneybirdGetSalesInvoice = action(\"MONEYBIRD_GET_SALES_INVOICE\", {\n slug: \"moneybird-get-sales-invoice\",\n name: \"Get Sales Invoice\",\n description: \"Tool to get a single sales invoice by ID. Use when you need detailed invoice data for a known invoice ID.\",\n input: MoneybirdGetSalesInvoiceInput,\n output: MoneybirdGetSalesInvoiceOutput,\n});\n"],"mappings":";;AAYA,MAAa,2BAA2B,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZ2C,EAAE,OAAO;EACpD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;EACrE,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2DAA2D;CAC1G,CASS;CACP,QAT4C,EAAE,OAAO,EACrD,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,iDAAiD,EACvG,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
1
+ {"version":3,"file":"get-sales-invoice.mjs","names":[],"sources":["../../src/actions/get-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 MoneybirdGetSalesInvoiceInput = z.object({\n invoice_id: z.string().describe(\"ID of the sales invoice to retrieve\"),\n administration_id: z.number().int().describe(\"Numeric administration ID, part of the Moneybird URL path\"),\n});\nexport const MoneybirdGetSalesInvoiceOutput = z.object({\n invoice: z.record(z.string(), z.unknown()).describe(\"Full sales invoice object returned by Moneybird\"),\n}).passthrough();\n\nexport const moneybirdGetSalesInvoice: AppAction<\n typeof MoneybirdGetSalesInvoiceInput,\n typeof MoneybirdGetSalesInvoiceOutput,\n typeof moneybird.credential\n> = action(\"MONEYBIRD_GET_SALES_INVOICE\", {\n slug: \"moneybird-get-sales-invoice\",\n name: \"Get Sales Invoice\",\n description: \"Tool to get a single sales invoice by ID. Use when you need detailed invoice data for a known invoice ID.\",\n input: MoneybirdGetSalesInvoiceInput,\n output: MoneybirdGetSalesInvoiceOutput,\n});\n"],"mappings":";;;AAcA,MAAa,2BAIT,OAAO,+BAA+B;CACxC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhB2C,EAAE,OAAO;EACpD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;EACrE,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2DAA2D;CAC1G,CAaS;CACP,QAb4C,EAAE,OAAO,EACrD,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,iDAAiD,EACvG,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/list-administrations.ts
@@ -1 +1 @@
1
- {"version":3,"file":"list-administrations.cjs","names":["z","action"],"sources":["../../src/actions/list-administrations.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoneybirdListAdministrationsInput = z.object({}).describe(\"Request model for listing administrations. No parameters required.\");\nexport const MoneybirdListAdministrationsOutput = z.unknown();\n\nexport const moneybirdListAdministrations = action(\"MONEYBIRD_LIST_ADMINISTRATIONS\", {\n slug: \"moneybird-list-administrations\",\n name: \"List Administrations\",\n description: \"Tool to list all administrations accessible by the authenticated user. Use when you need to obtain administration_id for subsequent operations like create_contact.\",\n input: MoneybirdListAdministrationsInput,\n output: MoneybirdListAdministrationsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAoCA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,oEAAoE;AAC3I,MAAa,qCAAqCA,IAAAA,EAAE,QAAQ;AAE5D,MAAa,+BAA+BC,eAAAA,OAAO,kCAAkC;CACnF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"list-administrations.cjs","names":["z","action"],"sources":["../../src/actions/list-administrations.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 MoneybirdListAdministrationsInput = z.object({}).describe(\"Request model for listing administrations. No parameters required.\");\nexport const MoneybirdListAdministrationsOutput = z.unknown();\n\nexport const moneybirdListAdministrations: AppAction<\n typeof MoneybirdListAdministrationsInput,\n typeof MoneybirdListAdministrationsOutput,\n typeof moneybird.credential\n> = action(\"MONEYBIRD_LIST_ADMINISTRATIONS\", {\n slug: \"moneybird-list-administrations\",\n name: \"List Administrations\",\n description: \"Tool to list all administrations accessible by the authenticated user. Use when you need to obtain administration_id for subsequent operations like create_contact.\",\n input: MoneybirdListAdministrationsInput,\n output: MoneybirdListAdministrationsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,oCAAoCA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,oEAAoE;AAC3I,MAAa,qCAAqCA,IAAAA,EAAE,QAAQ;AAE5D,MAAa,+BAITC,eAAAA,OAAO,kCAAkC;CAC3C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,11 @@
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/list-administrations.d.ts
4
6
  declare const MoneybirdListAdministrationsInput: z.ZodObject<{}, z.core.$strip>;
5
7
  declare const MoneybirdListAdministrationsOutput: z.ZodUnknown;
6
- declare const moneybirdListAdministrations: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
8
+ declare const moneybirdListAdministrations: AppAction<typeof MoneybirdListAdministrationsInput, typeof MoneybirdListAdministrationsOutput, typeof moneybird.credential>;
7
9
  //#endregion
8
10
  export { moneybirdListAdministrations };
9
11
  //# sourceMappingURL=list-administrations.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-administrations.d.cts","names":[],"sources":["../../src/actions/list-administrations.ts"],"mappings":";;;cAIa,iCAAA,EAAiC,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cACjC,kCAAA,EAAkC,CAAA,CAAA,UAAc;AAAA,cAEhD,4BAAA,gCAA4B,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"list-administrations.d.cts","names":[],"sources":["../../src/actions/list-administrations.ts"],"mappings":";;;;;cAMa,iCAAA,EAAiC,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cACjC,kCAAA,EAAkC,CAAA,CAAA,UAAc;AAAA,cAEhD,4BAAA,EAA8B,SAAA,QAClC,iCAAA,SACA,kCAAA,SACA,SAAA,CAAU,UAAA"}
@@ -1,9 +1,11 @@
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/list-administrations.d.ts
4
6
  declare const MoneybirdListAdministrationsInput: z.ZodObject<{}, z.core.$strip>;
5
7
  declare const MoneybirdListAdministrationsOutput: z.ZodUnknown;
6
- declare const moneybirdListAdministrations: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
8
+ declare const moneybirdListAdministrations: AppAction<typeof MoneybirdListAdministrationsInput, typeof MoneybirdListAdministrationsOutput, typeof moneybird.credential>;
7
9
  //#endregion
8
10
  export { moneybirdListAdministrations };
9
11
  //# sourceMappingURL=list-administrations.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-administrations.d.mts","names":[],"sources":["../../src/actions/list-administrations.ts"],"mappings":";;;cAIa,iCAAA,EAAiC,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cACjC,kCAAA,EAAkC,CAAA,CAAA,UAAc;AAAA,cAEhD,4BAAA,gCAA4B,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"list-administrations.d.mts","names":[],"sources":["../../src/actions/list-administrations.ts"],"mappings":";;;;;cAMa,iCAAA,EAAiC,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cACjC,kCAAA,EAAkC,CAAA,CAAA,UAAc;AAAA,cAEhD,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 moneybirdListAdministrations = action("MONEYBIRD_LIST_ADMINISTRATIONS", {