@keystrokehq/moneybird 0.1.0 → 0.1.2

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 (145) 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 +3 -3
  4. package/dist/actions/add-note-to-contact.cjs.map +1 -1
  5. package/dist/actions/add-note-to-contact.d.cts +34 -3
  6. package/dist/actions/add-note-to-contact.d.cts.map +1 -1
  7. package/dist/actions/add-note-to-contact.d.mts +34 -3
  8. package/dist/actions/add-note-to-contact.d.mts.map +1 -1
  9. package/dist/actions/add-note-to-contact.mjs +3 -3
  10. package/dist/actions/add-note-to-contact.mjs.map +1 -1
  11. package/dist/actions/archive-contact.cjs.map +1 -1
  12. package/dist/actions/archive-contact.d.cts +9 -3
  13. package/dist/actions/archive-contact.d.cts.map +1 -1
  14. package/dist/actions/archive-contact.d.mts +9 -3
  15. package/dist/actions/archive-contact.d.mts.map +1 -1
  16. package/dist/actions/archive-contact.mjs.map +1 -1
  17. package/dist/actions/create-contact-person.cjs +7 -7
  18. package/dist/actions/create-contact-person.cjs.map +1 -1
  19. package/dist/actions/create-contact-person.d.cts +34 -3
  20. package/dist/actions/create-contact-person.d.cts.map +1 -1
  21. package/dist/actions/create-contact-person.d.mts +34 -3
  22. package/dist/actions/create-contact-person.d.mts.map +1 -1
  23. package/dist/actions/create-contact-person.mjs +7 -7
  24. package/dist/actions/create-contact-person.mjs.map +1 -1
  25. package/dist/actions/create-contact.cjs +4 -4
  26. package/dist/actions/create-contact.cjs.map +1 -1
  27. package/dist/actions/create-contact.d.cts +82 -3
  28. package/dist/actions/create-contact.d.cts.map +1 -1
  29. package/dist/actions/create-contact.d.mts +82 -3
  30. package/dist/actions/create-contact.d.mts.map +1 -1
  31. package/dist/actions/create-contact.mjs +4 -4
  32. package/dist/actions/create-contact.mjs.map +1 -1
  33. package/dist/actions/create-sales-invoice.cjs +10 -10
  34. package/dist/actions/create-sales-invoice.cjs.map +1 -1
  35. package/dist/actions/create-sales-invoice.d.cts +95 -3
  36. package/dist/actions/create-sales-invoice.d.cts.map +1 -1
  37. package/dist/actions/create-sales-invoice.d.mts +95 -3
  38. package/dist/actions/create-sales-invoice.d.mts.map +1 -1
  39. package/dist/actions/create-sales-invoice.mjs +10 -10
  40. package/dist/actions/create-sales-invoice.mjs.map +1 -1
  41. package/dist/actions/delete-contact-note.cjs.map +1 -1
  42. package/dist/actions/delete-contact-note.d.cts +11 -3
  43. package/dist/actions/delete-contact-note.d.cts.map +1 -1
  44. package/dist/actions/delete-contact-note.d.mts +11 -3
  45. package/dist/actions/delete-contact-note.d.mts.map +1 -1
  46. package/dist/actions/delete-contact-note.mjs.map +1 -1
  47. package/dist/actions/delete-contact-person.cjs.map +1 -1
  48. package/dist/actions/delete-contact-person.d.cts +11 -3
  49. package/dist/actions/delete-contact-person.d.cts.map +1 -1
  50. package/dist/actions/delete-contact-person.d.mts +11 -3
  51. package/dist/actions/delete-contact-person.d.mts.map +1 -1
  52. package/dist/actions/delete-contact-person.mjs.map +1 -1
  53. package/dist/actions/delete-contact.cjs.map +1 -1
  54. package/dist/actions/delete-contact.d.cts +9 -3
  55. package/dist/actions/delete-contact.d.cts.map +1 -1
  56. package/dist/actions/delete-contact.d.mts +9 -3
  57. package/dist/actions/delete-contact.d.mts.map +1 -1
  58. package/dist/actions/delete-contact.mjs.map +1 -1
  59. package/dist/actions/filter-contacts.cjs.map +1 -1
  60. package/dist/actions/filter-contacts.d.cts +19 -3
  61. package/dist/actions/filter-contacts.d.cts.map +1 -1
  62. package/dist/actions/filter-contacts.d.mts +19 -3
  63. package/dist/actions/filter-contacts.d.mts.map +1 -1
  64. package/dist/actions/filter-contacts.mjs.map +1 -1
  65. package/dist/actions/get-additional-charges.cjs.map +1 -1
  66. package/dist/actions/get-additional-charges.d.cts +11 -3
  67. package/dist/actions/get-additional-charges.d.cts.map +1 -1
  68. package/dist/actions/get-additional-charges.d.mts +11 -3
  69. package/dist/actions/get-additional-charges.d.mts.map +1 -1
  70. package/dist/actions/get-additional-charges.mjs.map +1 -1
  71. package/dist/actions/get-contact-by-customer-id.cjs +33 -33
  72. package/dist/actions/get-contact-by-customer-id.cjs.map +1 -1
  73. package/dist/actions/get-contact-by-customer-id.d.cts +101 -3
  74. package/dist/actions/get-contact-by-customer-id.d.cts.map +1 -1
  75. package/dist/actions/get-contact-by-customer-id.d.mts +101 -3
  76. package/dist/actions/get-contact-by-customer-id.d.mts.map +1 -1
  77. package/dist/actions/get-contact-by-customer-id.mjs +33 -33
  78. package/dist/actions/get-contact-by-customer-id.mjs.map +1 -1
  79. package/dist/actions/get-contact-person.cjs +7 -7
  80. package/dist/actions/get-contact-person.cjs.map +1 -1
  81. package/dist/actions/get-contact-person.d.cts +21 -3
  82. package/dist/actions/get-contact-person.d.cts.map +1 -1
  83. package/dist/actions/get-contact-person.d.mts +21 -3
  84. package/dist/actions/get-contact-person.d.mts.map +1 -1
  85. package/dist/actions/get-contact-person.mjs +7 -7
  86. package/dist/actions/get-contact-person.mjs.map +1 -1
  87. package/dist/actions/get-contact.cjs.map +1 -1
  88. package/dist/actions/get-contact.d.cts +13 -3
  89. package/dist/actions/get-contact.d.cts.map +1 -1
  90. package/dist/actions/get-contact.d.mts +13 -3
  91. package/dist/actions/get-contact.d.mts.map +1 -1
  92. package/dist/actions/get-contact.mjs.map +1 -1
  93. package/dist/actions/get-sales-invoice.cjs.map +1 -1
  94. package/dist/actions/get-sales-invoice.d.cts +11 -3
  95. package/dist/actions/get-sales-invoice.d.cts.map +1 -1
  96. package/dist/actions/get-sales-invoice.d.mts +11 -3
  97. package/dist/actions/get-sales-invoice.d.mts.map +1 -1
  98. package/dist/actions/get-sales-invoice.mjs.map +1 -1
  99. package/dist/actions/list-administrations.cjs.map +1 -1
  100. package/dist/actions/list-administrations.d.cts +3 -3
  101. package/dist/actions/list-administrations.d.cts.map +1 -1
  102. package/dist/actions/list-administrations.d.mts +3 -3
  103. package/dist/actions/list-administrations.d.mts.map +1 -1
  104. package/dist/actions/list-administrations.mjs.map +1 -1
  105. package/dist/actions/list-contacts-synchronization.cjs.map +1 -1
  106. package/dist/actions/list-contacts-synchronization.d.cts +11 -3
  107. package/dist/actions/list-contacts-synchronization.d.cts.map +1 -1
  108. package/dist/actions/list-contacts-synchronization.d.mts +11 -3
  109. package/dist/actions/list-contacts-synchronization.d.mts.map +1 -1
  110. package/dist/actions/list-contacts-synchronization.mjs.map +1 -1
  111. package/dist/actions/list-sales-invoices.cjs.map +1 -1
  112. package/dist/actions/list-sales-invoices.d.cts +13 -3
  113. package/dist/actions/list-sales-invoices.d.cts.map +1 -1
  114. package/dist/actions/list-sales-invoices.d.mts +13 -3
  115. package/dist/actions/list-sales-invoices.d.mts.map +1 -1
  116. package/dist/actions/list-sales-invoices.mjs.map +1 -1
  117. package/dist/actions/request-contact-payments-mandate-url.cjs +1 -1
  118. package/dist/actions/request-contact-payments-mandate-url.cjs.map +1 -1
  119. package/dist/actions/request-contact-payments-mandate-url.d.cts +13 -3
  120. package/dist/actions/request-contact-payments-mandate-url.d.cts.map +1 -1
  121. package/dist/actions/request-contact-payments-mandate-url.d.mts +13 -3
  122. package/dist/actions/request-contact-payments-mandate-url.d.mts.map +1 -1
  123. package/dist/actions/request-contact-payments-mandate-url.mjs +1 -1
  124. package/dist/actions/request-contact-payments-mandate-url.mjs.map +1 -1
  125. package/dist/actions/update-contact-person.cjs +8 -8
  126. package/dist/actions/update-contact-person.cjs.map +1 -1
  127. package/dist/actions/update-contact-person.d.cts +33 -3
  128. package/dist/actions/update-contact-person.d.cts.map +1 -1
  129. package/dist/actions/update-contact-person.d.mts +33 -3
  130. package/dist/actions/update-contact-person.d.mts.map +1 -1
  131. package/dist/actions/update-contact-person.mjs +8 -8
  132. package/dist/actions/update-contact-person.mjs.map +1 -1
  133. package/dist/actions/update-contact.cjs.map +1 -1
  134. package/dist/actions/update-contact.d.cts +13 -3
  135. package/dist/actions/update-contact.d.cts.map +1 -1
  136. package/dist/actions/update-contact.d.mts +13 -3
  137. package/dist/actions/update-contact.d.mts.map +1 -1
  138. package/dist/actions/update-contact.mjs.map +1 -1
  139. package/dist/actions/update-sales-invoice.cjs.map +1 -1
  140. package/dist/actions/update-sales-invoice.d.cts +87 -3
  141. package/dist/actions/update-sales-invoice.d.cts.map +1 -1
  142. package/dist/actions/update-sales-invoice.d.mts +87 -3
  143. package/dist/actions/update-sales-invoice.d.mts.map +1 -1
  144. package/dist/actions/update-sales-invoice.mjs.map +1 -1
  145. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"action.cjs","names":["moneybird","executeMoneybirdTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { moneybird } from \"./app\";\nimport { executeMoneybirdTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: z.ZodTypeAny;\n output: z.ZodTypeAny;\n },\n) {\n return moneybird.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeMoneybirdTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,UAAU,OAAO;EACtB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,qBAAqB,MAAM,KAAgC,CAAC;EAC5F;CACF,CAAC;AACH"}
1
+ {"version":3,"file":"action.cjs","names":["moneybird","executeMoneybirdTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { moneybird } from \"./app\";\nimport { executeMoneybirdTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return moneybird.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executeMoneybirdTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,UAAU,OAAO;EACtB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,qBAAqB,MAAM,KAAgC,CAAC;EAC5F;CACF,CAAC;AACH"}
@@ -1 +1 @@
1
- {"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { moneybird } from \"./app\";\nimport { executeMoneybirdTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: z.ZodTypeAny;\n output: z.ZodTypeAny;\n },\n) {\n return moneybird.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeMoneybirdTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,UAAU,OAAO;EACtB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,qBAAqB,MAAM,KAAgC,CAAC;EAC5F;CACF,CAAC;AACH"}
1
+ {"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { moneybird } from \"./app\";\nimport { executeMoneybirdTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return moneybird.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executeMoneybirdTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,UAAU,OAAO;EACtB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,qBAAqB,MAAM,KAAgC,CAAC;EAC5F;CACF,CAAC;AACH"}
@@ -18,10 +18,10 @@ const MoneybirdAddNoteToContactOutput = zod.z.object({
18
18
  user_id: zod.z.union([zod.z.string(), zod.z.number().int()]),
19
19
  entity_id: zod.z.union([zod.z.string(), zod.z.number().int()]).nullable().optional(),
20
20
  todo_type: zod.z.string().describe("Enumerated values for todo types (e.g., sales_invoice_due, purchase_invoice_due)").nullable().optional(),
21
- created_at: zod.z.string().describe("ISO 8601 date-time format indicating when the note was created"),
22
- updated_at: zod.z.string().describe("ISO 8601 date-time format indicating when the note was last updated"),
21
+ created_at: zod.z.string().describe("ISO 8601 date-time format indicating when the note was created").nullable(),
22
+ updated_at: zod.z.string().describe("ISO 8601 date-time format indicating when the note was last updated").nullable(),
23
23
  assignee_id: zod.z.union([zod.z.string(), zod.z.number().int()]).nullable().optional(),
24
- entity_type: zod.z.string().describe("The entity type (e.g., 'Contact')"),
24
+ entity_type: zod.z.string().describe("The entity type (e.g., 'Contact')").nullable(),
25
25
  completed_at: zod.z.string().describe("ISO 8601 date-time format indicating when the todo was completed").nullable().optional(),
26
26
  completed_by_id: zod.z.union([zod.z.string(), zod.z.number().int()]).nullable().optional(),
27
27
  administration_id: zod.z.union([zod.z.string(), zod.z.number().int()])
@@ -1 +1 @@
1
- {"version":3,"file":"add-note-to-contact.cjs","names":["z","action"],"sources":["../../src/actions/add-note-to-contact.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoneybirdAddNoteToContactInput: z.ZodTypeAny = z.object({\n note: z.object({\n note: z.string().describe(\"Text for the note or to-do.\"),\n todo: z.boolean().default(false).describe(\"If true, the note is marked as a to-do.\").optional(),\n assignee_id: z.number().int().describe(\"Assigns the to-do to a specific user ID.\").optional(),\n}).describe(\"Payload containing the note details\"),\n contact_id: z.string().describe(\"ID of the contact to which the note will be added\"),\n administration_id: z.number().int().describe(\"Numeric administration ID, part of the Moneybird URL path.\"),\n}).describe(\"Request model for adding a note or to-do to a contact.\");\nexport const MoneybirdAddNoteToContactOutput: z.ZodTypeAny = z.object({\n id: z.union([z.string(), z.number().int()]),\n data: z.record(z.string(), z.unknown()).describe(\"Additional metadata\").nullable().optional(),\n note: z.string().describe(\"Text content of the note\").nullable().optional(),\n todo: z.union([z.boolean(), z.string()]).nullable().optional(),\n user_id: z.union([z.string(), z.number().int()]),\n entity_id: z.union([z.string(), z.number().int()]).nullable().optional(),\n todo_type: z.string().describe(\"Enumerated values for todo types (e.g., sales_invoice_due, purchase_invoice_due)\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 date-time format indicating when the note was created\"),\n updated_at: z.string().describe(\"ISO 8601 date-time format indicating when the note was last updated\"),\n assignee_id: z.union([z.string(), z.number().int()]).nullable().optional(),\n entity_type: z.string().describe(\"The entity type (e.g., 'Contact')\"),\n completed_at: z.string().describe(\"ISO 8601 date-time format indicating when the todo was completed\").nullable().optional(),\n completed_by_id: z.union([z.string(), z.number().int()]).nullable().optional(),\n administration_id: z.union([z.string(), z.number().int()]),\n}).describe(\"Response model for a newly created note or to-do on a contact.\");\n\nexport const moneybirdAddNoteToContact = action(\"MONEYBIRD_ADD_NOTE_TO_CONTACT\", {\n slug: \"moneybird-add-note-to-contact\",\n name: \"Add Note to Contact\",\n description: \"Tool to add a note or to-do to a contact. Use when you need to record a comment or assign a task to a contact.\",\n input: MoneybirdAddNoteToContactInput,\n output: MoneybirdAddNoteToContactOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAA+CA,IAAAA,EAAE,OAAO;CACnE,MAAMA,IAAAA,EAAE,OAAO;EACf,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;EACvD,MAAMA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;EAC9F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAC9F,CAAC,CAAC,CAAC,SAAS,qCAAqC;CAC/C,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD;CACnF,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4DAA4D;AAC3G,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACpE,MAAa,kCAAgDA,IAAAA,EAAE,OAAO;CACpE,IAAIA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC;CAC1C,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;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E5E,MAAa,4BAA4BC,eAAAA,OAAO,iCAAiC;CAC/E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"add-note-to-contact.cjs","names":["z","action"],"sources":["../../src/actions/add-note-to-contact.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoneybirdAddNoteToContactInput = z.object({\n note: z.object({\n note: z.string().describe(\"Text for the note or to-do.\"),\n todo: z.boolean().default(false).describe(\"If true, the note is marked as a to-do.\").optional(),\n assignee_id: z.number().int().describe(\"Assigns the to-do to a specific user ID.\").optional(),\n}).describe(\"Payload containing the note details\"),\n contact_id: z.string().describe(\"ID of the contact to which the note will be added\"),\n administration_id: z.number().int().describe(\"Numeric administration ID, part of the Moneybird URL path.\"),\n}).describe(\"Request model for adding a note or to-do to a contact.\");\nexport const MoneybirdAddNoteToContactOutput = z.object({\n id: z.union([z.string(), z.number().int()]),\n data: z.record(z.string(), z.unknown()).describe(\"Additional metadata\").nullable().optional(),\n note: z.string().describe(\"Text content of the note\").nullable().optional(),\n todo: z.union([z.boolean(), z.string()]).nullable().optional(),\n user_id: z.union([z.string(), z.number().int()]),\n entity_id: z.union([z.string(), z.number().int()]).nullable().optional(),\n todo_type: z.string().describe(\"Enumerated values for todo types (e.g., sales_invoice_due, purchase_invoice_due)\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 date-time format indicating when the note was created\").nullable(),\n updated_at: z.string().describe(\"ISO 8601 date-time format indicating when the note was last updated\").nullable(),\n assignee_id: z.union([z.string(), z.number().int()]).nullable().optional(),\n entity_type: z.string().describe(\"The entity type (e.g., 'Contact')\").nullable(),\n completed_at: z.string().describe(\"ISO 8601 date-time format indicating when the todo was completed\").nullable().optional(),\n completed_by_id: z.union([z.string(), z.number().int()]).nullable().optional(),\n administration_id: z.union([z.string(), z.number().int()]),\n}).describe(\"Response model for a newly created note or to-do on a contact.\");\n\nexport const moneybirdAddNoteToContact = action(\"MONEYBIRD_ADD_NOTE_TO_CONTACT\", {\n slug: \"moneybird-add-note-to-contact\",\n name: \"Add Note to Contact\",\n description: \"Tool to add a note or to-do to a contact. Use when you need to record a comment or assign a task to a contact.\",\n input: MoneybirdAddNoteToContactInput,\n output: MoneybirdAddNoteToContactOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,MAAMA,IAAAA,EAAE,OAAO;EACf,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;EACvD,MAAMA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;EAC9F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAC9F,CAAC,CAAC,CAAC,SAAS,qCAAqC;CAC/C,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD;CACnF,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4DAA4D;AAC3G,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACpE,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,IAAIA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC;CAC1C,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1E,MAAMA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,QAAQ,GAAGA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,4BAA4BC,eAAAA,OAAO,iCAAiC;CAC/E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,40 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/add-note-to-contact.d.ts
4
- declare const MoneybirdAddNoteToContactInput: z.ZodTypeAny;
5
- declare const MoneybirdAddNoteToContactOutput: z.ZodTypeAny;
6
- declare const moneybirdAddNoteToContact: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const MoneybirdAddNoteToContactInput: z.ZodObject<{
5
+ note: z.ZodObject<{
6
+ note: z.ZodString;
7
+ todo: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
8
+ assignee_id: z.ZodOptional<z.ZodNumber>;
9
+ }, z.core.$strip>;
10
+ contact_id: z.ZodString;
11
+ administration_id: z.ZodNumber;
12
+ }, z.core.$strip>;
13
+ declare const MoneybirdAddNoteToContactOutput: z.ZodObject<{
14
+ id: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
15
+ data: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
16
+ note: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ todo: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>>;
18
+ user_id: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
19
+ entity_id: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
20
+ todo_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
+ created_at: z.ZodNullable<z.ZodString>;
22
+ updated_at: z.ZodNullable<z.ZodString>;
23
+ assignee_id: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
24
+ entity_type: z.ZodNullable<z.ZodString>;
25
+ completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
+ completed_by_id: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
27
+ administration_id: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
28
+ }, z.core.$strip>;
29
+ declare const moneybirdAddNoteToContact: import("@keystrokehq/action").WorkflowActionDefinition<{
30
+ note: {
31
+ note: string;
32
+ todo?: boolean | undefined;
33
+ assignee_id?: number | undefined;
34
+ };
35
+ contact_id: string;
36
+ administration_id: number;
37
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
38
  //#endregion
8
39
  export { moneybirdAddNoteToContact };
9
40
  //# sourceMappingURL=add-note-to-contact.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"add-note-to-contact.d.cts","names":[],"sources":["../../src/actions/add-note-to-contact.ts"],"mappings":";;;cAIa,8BAAA,EAAgC,CAAA,CAAE,UAQsB;AAAA,cACxD,+BAAA,EAAiC,CAAA,CAAE,UAe6B;AAAA,cAEhE,yBAAA,gCAAyB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"add-note-to-contact.d.cts","names":[],"sources":["../../src/actions/add-note-to-contact.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;cAS9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAiB/B,yBAAA,gCAAyB,wBAAA"}
@@ -1,9 +1,40 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/add-note-to-contact.d.ts
4
- declare const MoneybirdAddNoteToContactInput: z.ZodTypeAny;
5
- declare const MoneybirdAddNoteToContactOutput: z.ZodTypeAny;
6
- declare const moneybirdAddNoteToContact: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const MoneybirdAddNoteToContactInput: z.ZodObject<{
5
+ note: z.ZodObject<{
6
+ note: z.ZodString;
7
+ todo: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
8
+ assignee_id: z.ZodOptional<z.ZodNumber>;
9
+ }, z.core.$strip>;
10
+ contact_id: z.ZodString;
11
+ administration_id: z.ZodNumber;
12
+ }, z.core.$strip>;
13
+ declare const MoneybirdAddNoteToContactOutput: z.ZodObject<{
14
+ id: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
15
+ data: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
16
+ note: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ todo: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>>;
18
+ user_id: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
19
+ entity_id: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
20
+ todo_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
+ created_at: z.ZodNullable<z.ZodString>;
22
+ updated_at: z.ZodNullable<z.ZodString>;
23
+ assignee_id: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
24
+ entity_type: z.ZodNullable<z.ZodString>;
25
+ completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
+ completed_by_id: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
27
+ administration_id: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
28
+ }, z.core.$strip>;
29
+ declare const moneybirdAddNoteToContact: import("@keystrokehq/action").WorkflowActionDefinition<{
30
+ note: {
31
+ note: string;
32
+ todo?: boolean | undefined;
33
+ assignee_id?: number | undefined;
34
+ };
35
+ contact_id: string;
36
+ administration_id: number;
37
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
38
  //#endregion
8
39
  export { moneybirdAddNoteToContact };
9
40
  //# sourceMappingURL=add-note-to-contact.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"add-note-to-contact.d.mts","names":[],"sources":["../../src/actions/add-note-to-contact.ts"],"mappings":";;;cAIa,8BAAA,EAAgC,CAAA,CAAE,UAQsB;AAAA,cACxD,+BAAA,EAAiC,CAAA,CAAE,UAe6B;AAAA,cAEhE,yBAAA,gCAAyB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"add-note-to-contact.d.mts","names":[],"sources":["../../src/actions/add-note-to-contact.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;cAS9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAiB/B,yBAAA,gCAAyB,wBAAA"}
@@ -21,10 +21,10 @@ const moneybirdAddNoteToContact = action("MONEYBIRD_ADD_NOTE_TO_CONTACT", {
21
21
  user_id: z.union([z.string(), z.number().int()]),
22
22
  entity_id: z.union([z.string(), z.number().int()]).nullable().optional(),
23
23
  todo_type: z.string().describe("Enumerated values for todo types (e.g., sales_invoice_due, purchase_invoice_due)").nullable().optional(),
24
- created_at: z.string().describe("ISO 8601 date-time format indicating when the note was created"),
25
- updated_at: z.string().describe("ISO 8601 date-time format indicating when the note was last updated"),
24
+ created_at: z.string().describe("ISO 8601 date-time format indicating when the note was created").nullable(),
25
+ updated_at: z.string().describe("ISO 8601 date-time format indicating when the note was last updated").nullable(),
26
26
  assignee_id: z.union([z.string(), z.number().int()]).nullable().optional(),
27
- entity_type: z.string().describe("The entity type (e.g., 'Contact')"),
27
+ entity_type: z.string().describe("The entity type (e.g., 'Contact')").nullable(),
28
28
  completed_at: z.string().describe("ISO 8601 date-time format indicating when the todo was completed").nullable().optional(),
29
29
  completed_by_id: z.union([z.string(), z.number().int()]).nullable().optional(),
30
30
  administration_id: z.union([z.string(), z.number().int()])
@@ -1 +1 @@
1
- {"version":3,"file":"add-note-to-contact.mjs","names":[],"sources":["../../src/actions/add-note-to-contact.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoneybirdAddNoteToContactInput: z.ZodTypeAny = z.object({\n note: z.object({\n note: z.string().describe(\"Text for the note or to-do.\"),\n todo: z.boolean().default(false).describe(\"If true, the note is marked as a to-do.\").optional(),\n assignee_id: z.number().int().describe(\"Assigns the to-do to a specific user ID.\").optional(),\n}).describe(\"Payload containing the note details\"),\n contact_id: z.string().describe(\"ID of the contact to which the note will be added\"),\n administration_id: z.number().int().describe(\"Numeric administration ID, part of the Moneybird URL path.\"),\n}).describe(\"Request model for adding a note or to-do to a contact.\");\nexport const MoneybirdAddNoteToContactOutput: z.ZodTypeAny = z.object({\n id: z.union([z.string(), z.number().int()]),\n data: z.record(z.string(), z.unknown()).describe(\"Additional metadata\").nullable().optional(),\n note: z.string().describe(\"Text content of the note\").nullable().optional(),\n todo: z.union([z.boolean(), z.string()]).nullable().optional(),\n user_id: z.union([z.string(), z.number().int()]),\n entity_id: z.union([z.string(), z.number().int()]).nullable().optional(),\n todo_type: z.string().describe(\"Enumerated values for todo types (e.g., sales_invoice_due, purchase_invoice_due)\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 date-time format indicating when the note was created\"),\n updated_at: z.string().describe(\"ISO 8601 date-time format indicating when the note was last updated\"),\n assignee_id: z.union([z.string(), z.number().int()]).nullable().optional(),\n entity_type: z.string().describe(\"The entity type (e.g., 'Contact')\"),\n completed_at: z.string().describe(\"ISO 8601 date-time format indicating when the todo was completed\").nullable().optional(),\n completed_by_id: z.union([z.string(), z.number().int()]).nullable().optional(),\n administration_id: z.union([z.string(), z.number().int()]),\n}).describe(\"Response model for a newly created note or to-do on a contact.\");\n\nexport const moneybirdAddNoteToContact = action(\"MONEYBIRD_ADD_NOTE_TO_CONTACT\", {\n slug: \"moneybird-add-note-to-contact\",\n name: \"Add Note to Contact\",\n description: \"Tool to add a note or to-do to a contact. Use when you need to record a comment or assign a task to a contact.\",\n input: MoneybirdAddNoteToContactInput,\n output: MoneybirdAddNoteToContactOutput,\n});\n"],"mappings":";;AA8BA,MAAa,4BAA4B,OAAO,iCAAiC;CAC/E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA9B0D,EAAE,OAAO;EACnE,MAAM,EAAE,OAAO;GACf,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;GACvD,MAAM,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;GAC9F,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;EAC9F,CAAC,CAAC,CAAC,SAAS,qCAAqC;EAC/C,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD;EACnF,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4DAA4D;CAC3G,CAAC,CAAC,CAAC,SAAS,wDAsBH;CACP,QAtB2D,EAAE,OAAO;EACpE,IAAI,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC;EAC1C,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5F,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1E,MAAM,EAAE,MAAM,CAAC,EAAE,QAAQ,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7D,SAAS,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC;EAC/C,WAAW,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvI,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE;EAChG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE;EACrG,aAAa,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;EACpE,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1H,iBAAiB,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7E,mBAAmB,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC;CAC3D,CAAC,CAAC,CAAC,SAAS,gEAOF;AACV,CAAC"}
1
+ {"version":3,"file":"add-note-to-contact.mjs","names":[],"sources":["../../src/actions/add-note-to-contact.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoneybirdAddNoteToContactInput = z.object({\n note: z.object({\n note: z.string().describe(\"Text for the note or to-do.\"),\n todo: z.boolean().default(false).describe(\"If true, the note is marked as a to-do.\").optional(),\n assignee_id: z.number().int().describe(\"Assigns the to-do to a specific user ID.\").optional(),\n}).describe(\"Payload containing the note details\"),\n contact_id: z.string().describe(\"ID of the contact to which the note will be added\"),\n administration_id: z.number().int().describe(\"Numeric administration ID, part of the Moneybird URL path.\"),\n}).describe(\"Request model for adding a note or to-do to a contact.\");\nexport const MoneybirdAddNoteToContactOutput = z.object({\n id: z.union([z.string(), z.number().int()]),\n data: z.record(z.string(), z.unknown()).describe(\"Additional metadata\").nullable().optional(),\n note: z.string().describe(\"Text content of the note\").nullable().optional(),\n todo: z.union([z.boolean(), z.string()]).nullable().optional(),\n user_id: z.union([z.string(), z.number().int()]),\n entity_id: z.union([z.string(), z.number().int()]).nullable().optional(),\n todo_type: z.string().describe(\"Enumerated values for todo types (e.g., sales_invoice_due, purchase_invoice_due)\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 date-time format indicating when the note was created\").nullable(),\n updated_at: z.string().describe(\"ISO 8601 date-time format indicating when the note was last updated\").nullable(),\n assignee_id: z.union([z.string(), z.number().int()]).nullable().optional(),\n entity_type: z.string().describe(\"The entity type (e.g., 'Contact')\").nullable(),\n completed_at: z.string().describe(\"ISO 8601 date-time format indicating when the todo was completed\").nullable().optional(),\n completed_by_id: z.union([z.string(), z.number().int()]).nullable().optional(),\n administration_id: z.union([z.string(), z.number().int()]),\n}).describe(\"Response model for a newly created note or to-do on a contact.\");\n\nexport const moneybirdAddNoteToContact = action(\"MONEYBIRD_ADD_NOTE_TO_CONTACT\", {\n slug: \"moneybird-add-note-to-contact\",\n name: \"Add Note to Contact\",\n description: \"Tool to add a note or to-do to a contact. Use when you need to record a comment or assign a task to a contact.\",\n input: MoneybirdAddNoteToContactInput,\n output: MoneybirdAddNoteToContactOutput,\n});\n"],"mappings":";;AA8BA,MAAa,4BAA4B,OAAO,iCAAiC;CAC/E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA9B4C,EAAE,OAAO;EACrD,MAAM,EAAE,OAAO;GACf,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,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CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;EAChH,aAAa,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EAC/E,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1H,iBAAiB,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7E,mBAAmB,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC;CAC3D,CAAC,CAAC,CAAC,SAAS,gEAOF;AACV,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"archive-contact.cjs","names":["z","action"],"sources":["../../src/actions/archive-contact.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoneybirdArchiveContactInput: z.ZodTypeAny = z.object({\n contact_id: z.number().int().describe(\"The unique identifier of the contact to archive\"),\n administration_id: z.number().int().describe(\"The unique identifier of the administration\"),\n});\nexport const MoneybirdArchiveContactOutput: z.ZodTypeAny = z.object({}).describe(\"Empty response for archive action\");\n\nexport const moneybirdArchiveContact = action(\"MONEYBIRD_ARCHIVE_CONTACT\", {\n slug: \"moneybird-archive-contact\",\n name: \"Archive Contact\",\n description: \"Tool to archive a contact. Use when a contact is no longer needed and should be hidden permanently.\",\n input: MoneybirdArchiveContactInput,\n output: MoneybirdArchiveContactOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA6CA,IAAAA,EAAE,OAAO;CACjE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iDAAiD;CACvF,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C;AAC5F,CAAC;AACD,MAAa,gCAA8CA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,mCAAmC;AAEpH,MAAa,0BAA0BC,eAAAA,OAAO,6BAA6B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"archive-contact.cjs","names":["z","action"],"sources":["../../src/actions/archive-contact.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoneybirdArchiveContactInput = z.object({\n contact_id: z.number().int().describe(\"The unique identifier of the contact to archive\"),\n administration_id: z.number().int().describe(\"The unique identifier of the administration\"),\n});\nexport const MoneybirdArchiveContactOutput = z.object({}).describe(\"Empty response for archive action\");\n\nexport const moneybirdArchiveContact = action(\"MONEYBIRD_ARCHIVE_CONTACT\", {\n slug: \"moneybird-archive-contact\",\n name: \"Archive Contact\",\n description: \"Tool to archive a contact. Use when a contact is no longer needed and should be hidden permanently.\",\n input: MoneybirdArchiveContactInput,\n output: MoneybirdArchiveContactOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iDAAiD;CACvF,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C;AAC5F,CAAC;AACD,MAAa,gCAAgCA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,mCAAmC;AAEtG,MAAa,0BAA0BC,eAAAA,OAAO,6BAA6B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,15 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/archive-contact.d.ts
4
- declare const MoneybirdArchiveContactInput: z.ZodTypeAny;
5
- declare const MoneybirdArchiveContactOutput: z.ZodTypeAny;
6
- declare const moneybirdArchiveContact: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const MoneybirdArchiveContactInput: z.ZodObject<{
5
+ contact_id: z.ZodNumber;
6
+ administration_id: z.ZodNumber;
7
+ }, z.core.$strip>;
8
+ declare const MoneybirdArchiveContactOutput: z.ZodObject<{}, z.core.$strip>;
9
+ declare const moneybirdArchiveContact: import("@keystrokehq/action").WorkflowActionDefinition<{
10
+ contact_id: number;
11
+ administration_id: number;
12
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
13
  //#endregion
8
14
  export { moneybirdArchiveContact };
9
15
  //# sourceMappingURL=archive-contact.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"archive-contact.d.cts","names":[],"sources":["../../src/actions/archive-contact.ts"],"mappings":";;;cAIa,4BAAA,EAA8B,CAAA,CAAE,UAG3C;AAAA,cACW,6BAAA,EAA+B,CAAA,CAAE,UAAuE;AAAA,cAExG,uBAAA,gCAAuB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"archive-contact.d.cts","names":[],"sources":["../../src/actions/archive-contact.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;cAI5B,6BAAA,EAA6B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAE7B,uBAAA,gCAAuB,wBAAA"}
@@ -1,9 +1,15 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/archive-contact.d.ts
4
- declare const MoneybirdArchiveContactInput: z.ZodTypeAny;
5
- declare const MoneybirdArchiveContactOutput: z.ZodTypeAny;
6
- declare const moneybirdArchiveContact: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const MoneybirdArchiveContactInput: z.ZodObject<{
5
+ contact_id: z.ZodNumber;
6
+ administration_id: z.ZodNumber;
7
+ }, z.core.$strip>;
8
+ declare const MoneybirdArchiveContactOutput: z.ZodObject<{}, z.core.$strip>;
9
+ declare const moneybirdArchiveContact: import("@keystrokehq/action").WorkflowActionDefinition<{
10
+ contact_id: number;
11
+ administration_id: number;
12
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
13
  //#endregion
8
14
  export { moneybirdArchiveContact };
9
15
  //# sourceMappingURL=archive-contact.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"archive-contact.d.mts","names":[],"sources":["../../src/actions/archive-contact.ts"],"mappings":";;;cAIa,4BAAA,EAA8B,CAAA,CAAE,UAG3C;AAAA,cACW,6BAAA,EAA+B,CAAA,CAAE,UAAuE;AAAA,cAExG,uBAAA,gCAAuB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"archive-contact.d.mts","names":[],"sources":["../../src/actions/archive-contact.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;cAI5B,6BAAA,EAA6B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAE7B,uBAAA,gCAAuB,wBAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"archive-contact.mjs","names":[],"sources":["../../src/actions/archive-contact.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoneybirdArchiveContactInput: z.ZodTypeAny = z.object({\n contact_id: z.number().int().describe(\"The unique identifier of the contact to archive\"),\n administration_id: z.number().int().describe(\"The unique identifier of the administration\"),\n});\nexport const MoneybirdArchiveContactOutput: z.ZodTypeAny = z.object({}).describe(\"Empty response for archive action\");\n\nexport const moneybirdArchiveContact = action(\"MONEYBIRD_ARCHIVE_CONTACT\", {\n slug: \"moneybird-archive-contact\",\n name: \"Archive Contact\",\n description: \"Tool to archive a contact. Use when a contact is no longer needed and should be hidden permanently.\",\n input: MoneybirdArchiveContactInput,\n output: MoneybirdArchiveContactOutput,\n});\n"],"mappings":";;AAUA,MAAa,0BAA0B,OAAO,6BAA6B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAVwD,EAAE,OAAO;EACjE,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iDAAiD;EACvF,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C;CAC5F,CAOS;CACP,QAPyD,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,mCAOvE;AACV,CAAC"}
1
+ {"version":3,"file":"archive-contact.mjs","names":[],"sources":["../../src/actions/archive-contact.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoneybirdArchiveContactInput = z.object({\n contact_id: z.number().int().describe(\"The unique identifier of the contact to archive\"),\n administration_id: z.number().int().describe(\"The unique identifier of the administration\"),\n});\nexport const MoneybirdArchiveContactOutput = z.object({}).describe(\"Empty response for archive action\");\n\nexport const moneybirdArchiveContact = action(\"MONEYBIRD_ARCHIVE_CONTACT\", {\n slug: \"moneybird-archive-contact\",\n name: \"Archive Contact\",\n description: \"Tool to archive a contact. Use when a contact is no longer needed and should be hidden permanently.\",\n input: MoneybirdArchiveContactInput,\n output: MoneybirdArchiveContactOutput,\n});\n"],"mappings":";;AAUA,MAAa,0BAA0B,OAAO,6BAA6B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAV0C,EAAE,OAAO;EACnD,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iDAAiD;EACvF,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C;CAC5F,CAOS;CACP,QAP2C,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,mCAOzD;AACV,CAAC"}
@@ -13,16 +13,16 @@ const MoneybirdCreateContactPersonInput = zod.z.object({
13
13
  administration_id: zod.z.number().int().describe("ID of the administration under which the contact person will be created")
14
14
  }).describe("Request payload for creating a new contact person.");
15
15
  const MoneybirdCreateContactPersonOutput = zod.z.object({
16
- id: zod.z.string().describe("Unique identifier of the created contact person"),
16
+ id: zod.z.string().describe("Unique identifier of the created contact person").nullable(),
17
17
  email: zod.z.string().describe("Email address of the contact person").nullable().optional(),
18
18
  phone: zod.z.string().describe("Phone number of the contact person").nullable().optional(),
19
- version: zod.z.number().int().describe("Version number of the contact person record"),
20
- lastname: zod.z.string().describe("Last name of the contact person"),
21
- firstname: zod.z.string().describe("First name of the contact person"),
22
- created_at: zod.z.string().describe("Timestamp when the contact person was created"),
19
+ version: zod.z.number().int().describe("Version number of the contact person record").nullable(),
20
+ lastname: zod.z.string().describe("Last name of the contact person").nullable(),
21
+ firstname: zod.z.string().describe("First name of the contact person").nullable(),
22
+ created_at: zod.z.string().describe("Timestamp when the contact person was created").nullable(),
23
23
  department: zod.z.string().describe("Department of the contact person").nullable().optional(),
24
- updated_at: zod.z.string().describe("Timestamp when the contact person was last updated"),
25
- administration_id: zod.z.number().int().describe("ID of the administration under which this contact person was created")
24
+ updated_at: zod.z.string().describe("Timestamp when the contact person was last updated").nullable(),
25
+ administration_id: zod.z.number().int().describe("ID of the administration under which this contact person was created").nullable()
26
26
  }).describe("The created contact person record.");
27
27
  const moneybirdCreateContactPerson = require_action.action("MONEYBIRD_CREATE_CONTACT_PERSON", {
28
28
  slug: "moneybird-create-contact-person",
@@ -1 +1 @@
1
- {"version":3,"file":"create-contact-person.cjs","names":["z","action"],"sources":["../../src/actions/create-contact-person.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoneybirdCreateContactPersonInput: z.ZodTypeAny = z.object({\n contact_id: z.number().int().describe(\"ID of the contact under which the person will be created\"),\n contact_person: z.object({\n email: z.string().describe(\"Email address of the contact person\").optional(),\n phone: z.string().describe(\"Phone number of the contact person\").optional(),\n lastname: z.string().describe(\"Last name of the contact person\"),\n firstname: z.string().describe(\"First name of the contact person\"),\n department: z.string().describe(\"Department of the contact person\").optional(),\n}).describe(\"Container for all contact person fields\"),\n administration_id: z.number().int().describe(\"ID of the administration under which the contact person will be created\"),\n}).describe(\"Request payload for creating a new contact person.\");\nexport const MoneybirdCreateContactPersonOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the created contact person\"),\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\"),\n lastname: z.string().describe(\"Last name of the contact person\"),\n firstname: z.string().describe(\"First name of the contact person\"),\n created_at: z.string().describe(\"Timestamp when the contact person was created\"),\n department: z.string().describe(\"Department of the contact person\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when the contact person was last updated\"),\n administration_id: z.number().int().describe(\"ID of the administration under which this contact person was created\"),\n}).describe(\"The created contact person record.\");\n\nexport const moneybirdCreateContactPerson = action(\"MONEYBIRD_CREATE_CONTACT_PERSON\", {\n slug: \"moneybird-create-contact-person\",\n name: \"Create Contact Person\",\n description: \"Tool to create a new contact person. Use when you have the contact ID and need to add a person after confirming their firstname and lastname.\",\n input: MoneybirdCreateContactPersonInput,\n output: MoneybirdCreateContactPersonOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAkDA,IAAAA,EAAE,OAAO;CACtE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,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CAAC,CAAC,SAAS,oDAAoD;CACpF,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sEAAsE;AACrH,CAAC,CAAC,CAAC,SAAS,oCAAoC;AAEhD,MAAa,+BAA+BC,eAAAA,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-contact-person.cjs","names":["z","action"],"sources":["../../src/actions/create-contact-person.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoneybirdCreateContactPersonInput = z.object({\n contact_id: z.number().int().describe(\"ID of the contact under which the person will be created\"),\n contact_person: z.object({\n email: z.string().describe(\"Email address of the contact person\").optional(),\n phone: z.string().describe(\"Phone number of the contact person\").optional(),\n lastname: z.string().describe(\"Last name of the contact person\"),\n firstname: z.string().describe(\"First name of the contact person\"),\n department: z.string().describe(\"Department of the contact person\").optional(),\n}).describe(\"Container for all contact person fields\"),\n administration_id: z.number().int().describe(\"ID of the administration under which the contact person will be created\"),\n}).describe(\"Request payload for creating a new contact person.\");\nexport const MoneybirdCreateContactPersonOutput = z.object({\n id: z.string().describe(\"Unique identifier of the created contact person\").nullable(),\n email: z.string().describe(\"Email address of the contact person\").nullable().optional(),\n phone: z.string().describe(\"Phone number of the contact person\").nullable().optional(),\n version: z.number().int().describe(\"Version number of the contact person record\").nullable(),\n lastname: z.string().describe(\"Last name of the contact person\").nullable(),\n firstname: z.string().describe(\"First name of the contact person\").nullable(),\n created_at: z.string().describe(\"Timestamp when the contact person was created\").nullable(),\n department: z.string().describe(\"Department of the contact person\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when the contact person was last updated\").nullable(),\n administration_id: z.number().int().describe(\"ID of the administration under which this contact person was created\").nullable(),\n}).describe(\"The created contact person record.\");\n\nexport const moneybirdCreateContactPerson = action(\"MONEYBIRD_CREATE_CONTACT_PERSON\", {\n slug: \"moneybird-create-contact-person\",\n name: \"Create Contact Person\",\n description: \"Tool to create a new contact person. Use when you have the contact ID and need to add a person after confirming their firstname and lastname.\",\n input: MoneybirdCreateContactPersonInput,\n output: MoneybirdCreateContactPersonOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAoCA,IAAAA,EAAE,OAAO;CACxD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0DAA0D;CAChG,gBAAgBA,IAAAA,EAAE,OAAO;EACzB,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EAC3E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;EAC1E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;EAC/D,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;EACjE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAC/E,CAAC,CAAC,CAAC,SAAS,yCAAyC;CACnD,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yEAAyE;AACxH,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAChE,MAAa,qCAAqCA,IAAAA,EAAE,OAAO;CACzD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CACpF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAC3F,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC1E,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAC5E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CAC1F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAC/F,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;AAChI,CAAC,CAAC,CAAC,SAAS,oCAAoC;AAEhD,MAAa,+BAA+BC,eAAAA,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,40 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/create-contact-person.d.ts
4
- declare const MoneybirdCreateContactPersonInput: z.ZodTypeAny;
5
- declare const MoneybirdCreateContactPersonOutput: z.ZodTypeAny;
6
- declare const moneybirdCreateContactPerson: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const MoneybirdCreateContactPersonInput: z.ZodObject<{
5
+ contact_id: z.ZodNumber;
6
+ contact_person: z.ZodObject<{
7
+ email: z.ZodOptional<z.ZodString>;
8
+ phone: z.ZodOptional<z.ZodString>;
9
+ lastname: z.ZodString;
10
+ firstname: z.ZodString;
11
+ department: z.ZodOptional<z.ZodString>;
12
+ }, z.core.$strip>;
13
+ administration_id: z.ZodNumber;
14
+ }, z.core.$strip>;
15
+ declare const MoneybirdCreateContactPersonOutput: z.ZodObject<{
16
+ id: z.ZodNullable<z.ZodString>;
17
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ version: z.ZodNullable<z.ZodNumber>;
20
+ lastname: z.ZodNullable<z.ZodString>;
21
+ firstname: z.ZodNullable<z.ZodString>;
22
+ created_at: z.ZodNullable<z.ZodString>;
23
+ department: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
+ updated_at: z.ZodNullable<z.ZodString>;
25
+ administration_id: z.ZodNullable<z.ZodNumber>;
26
+ }, z.core.$strip>;
27
+ declare const moneybirdCreateContactPerson: import("@keystrokehq/action").WorkflowActionDefinition<{
28
+ contact_id: number;
29
+ contact_person: {
30
+ lastname: string;
31
+ firstname: string;
32
+ email?: string | undefined;
33
+ phone?: string | undefined;
34
+ department?: string | undefined;
35
+ };
36
+ administration_id: number;
37
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
38
  //#endregion
8
39
  export { moneybirdCreateContactPerson };
9
40
  //# sourceMappingURL=create-contact-person.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-contact-person.d.cts","names":[],"sources":["../../src/actions/create-contact-person.ts"],"mappings":";;;cAIa,iCAAA,EAAmC,CAAA,CAAE,UAUe;AAAA,cACpD,kCAAA,EAAoC,CAAA,CAAE,UAWF;AAAA,cAEpC,4BAAA,gCAA4B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"create-contact-person.d.cts","names":[],"sources":["../../src/actions/create-contact-person.ts"],"mappings":";;;cAIa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;;cAWjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;;cAalC,4BAAA,gCAA4B,wBAAA"}
@@ -1,9 +1,40 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/create-contact-person.d.ts
4
- declare const MoneybirdCreateContactPersonInput: z.ZodTypeAny;
5
- declare const MoneybirdCreateContactPersonOutput: z.ZodTypeAny;
6
- declare const moneybirdCreateContactPerson: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const MoneybirdCreateContactPersonInput: z.ZodObject<{
5
+ contact_id: z.ZodNumber;
6
+ contact_person: z.ZodObject<{
7
+ email: z.ZodOptional<z.ZodString>;
8
+ phone: z.ZodOptional<z.ZodString>;
9
+ lastname: z.ZodString;
10
+ firstname: z.ZodString;
11
+ department: z.ZodOptional<z.ZodString>;
12
+ }, z.core.$strip>;
13
+ administration_id: z.ZodNumber;
14
+ }, z.core.$strip>;
15
+ declare const MoneybirdCreateContactPersonOutput: z.ZodObject<{
16
+ id: z.ZodNullable<z.ZodString>;
17
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ version: z.ZodNullable<z.ZodNumber>;
20
+ lastname: z.ZodNullable<z.ZodString>;
21
+ firstname: z.ZodNullable<z.ZodString>;
22
+ created_at: z.ZodNullable<z.ZodString>;
23
+ department: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
+ updated_at: z.ZodNullable<z.ZodString>;
25
+ administration_id: z.ZodNullable<z.ZodNumber>;
26
+ }, z.core.$strip>;
27
+ declare const moneybirdCreateContactPerson: import("@keystrokehq/action").WorkflowActionDefinition<{
28
+ contact_id: number;
29
+ contact_person: {
30
+ lastname: string;
31
+ firstname: string;
32
+ email?: string | undefined;
33
+ phone?: string | undefined;
34
+ department?: string | undefined;
35
+ };
36
+ administration_id: number;
37
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
38
  //#endregion
8
39
  export { moneybirdCreateContactPerson };
9
40
  //# sourceMappingURL=create-contact-person.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-contact-person.d.mts","names":[],"sources":["../../src/actions/create-contact-person.ts"],"mappings":";;;cAIa,iCAAA,EAAmC,CAAA,CAAE,UAUe;AAAA,cACpD,kCAAA,EAAoC,CAAA,CAAE,UAWF;AAAA,cAEpC,4BAAA,gCAA4B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"create-contact-person.d.mts","names":[],"sources":["../../src/actions/create-contact-person.ts"],"mappings":";;;cAIa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;;cAWjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;;cAalC,4BAAA,gCAA4B,wBAAA"}
@@ -16,16 +16,16 @@ const moneybirdCreateContactPerson = action("MONEYBIRD_CREATE_CONTACT_PERSON", {
16
16
  administration_id: z.number().int().describe("ID of the administration under which the contact person will be created")
17
17
  }).describe("Request payload for creating a new contact person."),
18
18
  output: z.object({
19
- id: z.string().describe("Unique identifier of the created contact person"),
19
+ id: z.string().describe("Unique identifier of the created contact person").nullable(),
20
20
  email: z.string().describe("Email address of the contact person").nullable().optional(),
21
21
  phone: z.string().describe("Phone number of the contact person").nullable().optional(),
22
- version: z.number().int().describe("Version number of the contact person record"),
23
- lastname: z.string().describe("Last name of the contact person"),
24
- firstname: z.string().describe("First name of the contact person"),
25
- created_at: z.string().describe("Timestamp when the contact person was created"),
22
+ version: z.number().int().describe("Version number of the contact person record").nullable(),
23
+ lastname: z.string().describe("Last name of the contact person").nullable(),
24
+ firstname: z.string().describe("First name of the contact person").nullable(),
25
+ created_at: z.string().describe("Timestamp when the contact person was created").nullable(),
26
26
  department: z.string().describe("Department of the contact person").nullable().optional(),
27
- updated_at: z.string().describe("Timestamp when the contact person was last updated"),
28
- administration_id: z.number().int().describe("ID of the administration under which this contact person was created")
27
+ updated_at: z.string().describe("Timestamp when the contact person was last updated").nullable(),
28
+ administration_id: z.number().int().describe("ID of the administration under which this contact person was created").nullable()
29
29
  }).describe("The created contact person record.")
30
30
  });
31
31
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"create-contact-person.mjs","names":[],"sources":["../../src/actions/create-contact-person.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoneybirdCreateContactPersonInput: z.ZodTypeAny = z.object({\n contact_id: z.number().int().describe(\"ID of the contact under which the person will be created\"),\n contact_person: z.object({\n email: z.string().describe(\"Email address of the contact person\").optional(),\n phone: z.string().describe(\"Phone number of the contact person\").optional(),\n lastname: z.string().describe(\"Last name of the contact person\"),\n firstname: z.string().describe(\"First name of the contact person\"),\n department: z.string().describe(\"Department of the contact person\").optional(),\n}).describe(\"Container for all contact person fields\"),\n administration_id: z.number().int().describe(\"ID of the administration under which the contact person will be created\"),\n}).describe(\"Request payload for creating a new contact person.\");\nexport const MoneybirdCreateContactPersonOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the created contact person\"),\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\"),\n lastname: z.string().describe(\"Last name of the contact person\"),\n firstname: z.string().describe(\"First name of the contact person\"),\n created_at: z.string().describe(\"Timestamp when the contact person was created\"),\n department: z.string().describe(\"Department of the contact person\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when the contact person was last updated\"),\n administration_id: z.number().int().describe(\"ID of the administration under which this contact person was created\"),\n}).describe(\"The created contact person record.\");\n\nexport const moneybirdCreateContactPerson = action(\"MONEYBIRD_CREATE_CONTACT_PERSON\", {\n slug: \"moneybird-create-contact-person\",\n name: \"Create Contact Person\",\n description: \"Tool to create a new contact person. Use when you have the contact ID and need to add a person after confirming their firstname and lastname.\",\n input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AkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD;EACpF,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sEAAsE;CACrH,CAAC,CAAC,CAAC,SAAS,oCAOF;AACV,CAAC"}
1
+ {"version":3,"file":"create-contact-person.mjs","names":[],"sources":["../../src/actions/create-contact-person.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoneybirdCreateContactPersonInput = z.object({\n contact_id: z.number().int().describe(\"ID of the contact under which the person will be created\"),\n contact_person: z.object({\n email: z.string().describe(\"Email address of the contact person\").optional(),\n phone: z.string().describe(\"Phone number of the contact person\").optional(),\n lastname: z.string().describe(\"Last name of the contact person\"),\n firstname: z.string().describe(\"First name of the contact person\"),\n department: z.string().describe(\"Department of the contact person\").optional(),\n}).describe(\"Container for all contact person fields\"),\n administration_id: z.number().int().describe(\"ID of the administration under which the contact person will be created\"),\n}).describe(\"Request payload for creating a new contact person.\");\nexport const MoneybirdCreateContactPersonOutput = z.object({\n id: z.string().describe(\"Unique identifier of the created contact person\").nullable(),\n email: z.string().describe(\"Email address of the contact person\").nullable().optional(),\n phone: z.string().describe(\"Phone number of the contact person\").nullable().optional(),\n version: z.number().int().describe(\"Version number of the contact person record\").nullable(),\n lastname: z.string().describe(\"Last name of the contact person\").nullable(),\n firstname: z.string().describe(\"First name of the contact person\").nullable(),\n created_at: z.string().describe(\"Timestamp when the contact person was created\").nullable(),\n department: z.string().describe(\"Department of the contact person\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when the contact person was last updated\").nullable(),\n administration_id: z.number().int().describe(\"ID of the administration under which this contact person was created\").nullable(),\n}).describe(\"The created contact person record.\");\n\nexport const moneybirdCreateContactPerson = action(\"MONEYBIRD_CREATE_CONTACT_PERSON\", {\n slug: \"moneybird-create-contact-person\",\n name: \"Create Contact Person\",\n description: \"Tool to create a new contact person. Use when you have the contact ID and need to add a person after confirming their firstname and lastname.\",\n input: MoneybirdCreateContactPersonInput,\n output: MoneybirdCreateContactPersonOutput,\n});\n"],"mappings":";;AA4BA,MAAa,+BAA+B,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA5B+C,EAAE,OAAO;EACxD,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0DAA0D;EAChG,gBAAgB,EAAE,OAAO;GACzB,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;GAC3E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;GAC1E,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;GAC/D,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;GACjE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;EAC/E,CAAC,CAAC,CAAC,SAAS,yCAAyC;EACnD,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yEAAyE;CACxH,CAAC,CAAC,CAAC,SAAS,oDAkBH;CACP,QAlBgD,EAAE,OAAO;EACzD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;EACpF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrF,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;EAC3F,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;EAC1E,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;EAC5E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;EAC1F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;EAC/F,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;CAChI,CAAC,CAAC,CAAC,SAAS,oCAOF;AACV,CAAC"}
@@ -44,13 +44,13 @@ const MoneybirdCreateContactInput = zod.z.object({
44
44
  custom_fields_attributes: zod.z.object({}).describe("Custom fields as dict of {index:{id, value}}").optional()
45
45
  });
46
46
  const MoneybirdCreateContactOutput = zod.z.object({
47
- id: zod.z.string().describe("ID of the created contact"),
47
+ id: zod.z.string().describe("ID of the created contact").nullable(),
48
48
  lastname: zod.z.string().describe("Last name").nullable().optional(),
49
49
  firstname: zod.z.string().describe("First name").nullable().optional(),
50
- created_at: zod.z.string().describe("Creation timestamp"),
51
- updated_at: zod.z.string().describe("Last update timestamp"),
50
+ created_at: zod.z.string().describe("Creation timestamp").nullable(),
51
+ updated_at: zod.z.string().describe("Last update timestamp").nullable(),
52
52
  company_name: zod.z.string().describe("Company name").nullable().optional(),
53
- administration_id: zod.z.number().int().describe("ID of the administration")
53
+ administration_id: zod.z.number().int().describe("ID of the administration").nullable()
54
54
  });
55
55
  const moneybirdCreateContact = require_action.action("MONEYBIRD_CREATE_CONTACT", {
56
56
  slug: "moneybird-create-contact",
@@ -1 +1 @@
1
- {"version":3,"file":"create-contact.cjs","names":["z","action"],"sources":["../../src/actions/create-contact.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoneybirdCreateContactInput: z.ZodTypeAny = z.object({\n city: z.string().describe(\"City name\").optional(),\n phone: z.string().describe(\"Phone number\").optional(),\n country: z.string().describe(\"ISO 3166-1 alpha-2 country code, e.g., NL\").optional(),\n zipcode: z.string().describe(\"Postal code\").optional(),\n address1: z.string().describe(\"Street and number\").optional(),\n address2: z.string().describe(\"Additional address line\").optional(),\n lastname: z.string().describe(\"Last name; required if company_name is blank\").optional(),\n sepa_bic: z.string().describe(\"Valid BIC; required if sepa_active\").optional(),\n firstname: z.string().describe(\"First name; required if company_name is blank\").optional(),\n sepa_iban: z.string().describe(\"Valid IBAN; required if sepa_active\").optional(),\n tax_number: z.string().describe(\"Tax/VAT number\").optional(),\n customer_id: z.string().describe(\"Unique customer identifier; autogenerated if empty\").optional(),\n sepa_active: z.boolean().describe(\"Enable SEPA direct debit; when true, other SEPA fields are required\").optional(),\n bank_account: z.string().describe(\"Bank account number\").optional(),\n company_name: z.string().describe(\"Company name; required if firstname and lastname are blank\").optional(),\n si_identifier: z.string().describe(\"SEPA identifier\").optional(),\n delivery_method: z.enum([\"Email\", \"Simplerinvoicing\", \"Peppol\", \"Manual\", \"Post\"]).describe(\"Delivery method\").optional(),\n sepa_mandate_id: z.string().describe(\"Mandate ID; required if sepa_active\").optional(),\n administration_id: z.number().int().describe(\"ID of the administration\"),\n sepa_mandate_date: z.string().describe(\"Mandate date (YYYY-MM-DD); required if sepa_active\").optional(),\n sepa_sequence_type: z.enum([\"RCUR\", \"FRST\", \"OOFF\", \"FNAL\"]).describe(\"SEPA sequence type; required if sepa_active\").optional(),\n si_identifier_type: z.string().describe(\"SEPA identifier type\").optional(),\n chamber_of_commerce: z.string().describe(\"Chamber of Commerce number\").optional(),\n invoice_workflow_id: z.number().int().describe(\"Invoice workflow ID\").optional(),\n estimate_workflow_id: z.number().int().describe(\"Estimate workflow ID\").optional(),\n send_invoices_to_email: z.string().describe(\"Comma-separated emails to send invoices to\").optional(),\n sepa_iban_account_name: z.string().describe(\"Account holder name for SEPA\").optional(),\n send_estimates_to_email: z.string().describe(\"Comma-separated emails to send estimates to\").optional(),\n custom_fields_attributes: z.object({}).describe(\"Custom fields as dict of {index:{id, value}}\").optional(),\n});\nexport const MoneybirdCreateContactOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"ID of the created contact\"),\n lastname: z.string().describe(\"Last name\").nullable().optional(),\n firstname: z.string().describe(\"First name\").nullable().optional(),\n created_at: z.string().describe(\"Creation timestamp\"),\n updated_at: z.string().describe(\"Last update timestamp\"),\n company_name: z.string().describe(\"Company name\").nullable().optional(),\n administration_id: z.number().int().describe(\"ID of the administration\"),\n});\n\nexport const moneybirdCreateContact = action(\"MONEYBIRD_CREATE_CONTACT\", {\n slug: \"moneybird-create-contact\",\n name: \"Create Moneybird Contact\",\n description: \"Tool to create a new contact in Moneybird. Use after you have an administration ID and need to onboard a new company/person. Provide either company_name or both firstname and lastname.\",\n input: MoneybirdCreateContactInput,\n output: MoneybirdCreateContactOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA4CA,IAAAA,EAAE,OAAO;CAChE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,WAAW,CAAC,CAAC,SAAS;CAChD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS;CACpD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACnF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS;CACrD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS;CAC5D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAClE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACvF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAC7E,WAAWA,IAAAA,EAAE,OAAO,CAA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
+ {"version":3,"file":"create-contact.cjs","names":["z","action"],"sources":["../../src/actions/create-contact.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoneybirdCreateContactInput = z.object({\n city: z.string().describe(\"City name\").optional(),\n phone: z.string().describe(\"Phone number\").optional(),\n country: z.string().describe(\"ISO 3166-1 alpha-2 country code, e.g., NL\").optional(),\n zipcode: z.string().describe(\"Postal code\").optional(),\n address1: z.string().describe(\"Street and number\").optional(),\n address2: z.string().describe(\"Additional address line\").optional(),\n lastname: z.string().describe(\"Last name; required if company_name is blank\").optional(),\n sepa_bic: z.string().describe(\"Valid BIC; required if sepa_active\").optional(),\n firstname: z.string().describe(\"First name; required if company_name is blank\").optional(),\n sepa_iban: z.string().describe(\"Valid IBAN; required if sepa_active\").optional(),\n tax_number: z.string().describe(\"Tax/VAT number\").optional(),\n customer_id: z.string().describe(\"Unique customer identifier; autogenerated if empty\").optional(),\n sepa_active: z.boolean().describe(\"Enable SEPA direct debit; when true, other SEPA fields are required\").optional(),\n bank_account: z.string().describe(\"Bank account number\").optional(),\n company_name: z.string().describe(\"Company name; required if firstname and lastname are blank\").optional(),\n si_identifier: z.string().describe(\"SEPA identifier\").optional(),\n delivery_method: z.enum([\"Email\", \"Simplerinvoicing\", \"Peppol\", \"Manual\", \"Post\"]).describe(\"Delivery method\").optional(),\n sepa_mandate_id: z.string().describe(\"Mandate ID; required if sepa_active\").optional(),\n administration_id: z.number().int().describe(\"ID of the administration\"),\n sepa_mandate_date: z.string().describe(\"Mandate date (YYYY-MM-DD); required if sepa_active\").optional(),\n sepa_sequence_type: z.enum([\"RCUR\", \"FRST\", \"OOFF\", \"FNAL\"]).describe(\"SEPA sequence type; required if sepa_active\").optional(),\n si_identifier_type: z.string().describe(\"SEPA identifier type\").optional(),\n chamber_of_commerce: z.string().describe(\"Chamber of Commerce number\").optional(),\n invoice_workflow_id: z.number().int().describe(\"Invoice workflow ID\").optional(),\n estimate_workflow_id: z.number().int().describe(\"Estimate workflow ID\").optional(),\n send_invoices_to_email: z.string().describe(\"Comma-separated emails to send invoices to\").optional(),\n sepa_iban_account_name: z.string().describe(\"Account holder name for SEPA\").optional(),\n send_estimates_to_email: z.string().describe(\"Comma-separated emails to send estimates to\").optional(),\n custom_fields_attributes: z.object({}).describe(\"Custom fields as dict of {index:{id, value}}\").optional(),\n});\nexport const MoneybirdCreateContactOutput = z.object({\n id: z.string().describe(\"ID of the created contact\").nullable(),\n lastname: z.string().describe(\"Last name\").nullable().optional(),\n firstname: z.string().describe(\"First name\").nullable().optional(),\n created_at: z.string().describe(\"Creation timestamp\").nullable(),\n updated_at: z.string().describe(\"Last update timestamp\").nullable(),\n company_name: z.string().describe(\"Company name\").nullable().optional(),\n administration_id: z.number().int().describe(\"ID of the administration\").nullable(),\n});\n\nexport const moneybirdCreateContact = action(\"MONEYBIRD_CREATE_CONTACT\", {\n slug: \"moneybird-create-contact\",\n name: \"Create Moneybird Contact\",\n description: \"Tool to create a new contact in Moneybird. Use after you have an administration ID and need to onboard a new company/person. Provide either company_name or both firstname and lastname.\",\n input: MoneybirdCreateContactInput,\n output: MoneybirdCreateContactOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,WAAW,CAAC,CAAC,SAAS;CAChD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS;CACpD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACnF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS;CACrD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS;CAC5D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CACl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