@keystrokehq/moneybird 0.1.2 → 0.1.4

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 (129) hide show
  1. package/dist/actions/add-note-to-contact.cjs +1 -1
  2. package/dist/actions/add-note-to-contact.cjs.map +1 -1
  3. package/dist/actions/add-note-to-contact.d.cts +14 -2
  4. package/dist/actions/add-note-to-contact.d.mts +14 -2
  5. package/dist/actions/add-note-to-contact.mjs +1 -1
  6. package/dist/actions/add-note-to-contact.mjs.map +1 -1
  7. package/dist/actions/archive-contact.cjs +1 -1
  8. package/dist/actions/archive-contact.cjs.map +1 -1
  9. package/dist/actions/archive-contact.d.cts +14 -2
  10. package/dist/actions/archive-contact.d.cts.map +1 -1
  11. package/dist/actions/archive-contact.d.mts +14 -2
  12. package/dist/actions/archive-contact.d.mts.map +1 -1
  13. package/dist/actions/archive-contact.mjs +1 -1
  14. package/dist/actions/archive-contact.mjs.map +1 -1
  15. package/dist/actions/create-contact-person.cjs +1 -1
  16. package/dist/actions/create-contact-person.cjs.map +1 -1
  17. package/dist/actions/create-contact-person.d.cts +14 -2
  18. package/dist/actions/create-contact-person.d.mts +14 -2
  19. package/dist/actions/create-contact-person.mjs +1 -1
  20. package/dist/actions/create-contact-person.mjs.map +1 -1
  21. package/dist/actions/create-contact.cjs +2 -2
  22. package/dist/actions/create-contact.cjs.map +1 -1
  23. package/dist/actions/create-contact.d.cts +16 -4
  24. package/dist/actions/create-contact.d.cts.map +1 -1
  25. package/dist/actions/create-contact.d.mts +16 -4
  26. package/dist/actions/create-contact.d.mts.map +1 -1
  27. package/dist/actions/create-contact.mjs +2 -2
  28. package/dist/actions/create-contact.mjs.map +1 -1
  29. package/dist/actions/create-sales-invoice.cjs +4 -4
  30. package/dist/actions/create-sales-invoice.cjs.map +1 -1
  31. package/dist/actions/create-sales-invoice.d.cts +19 -5
  32. package/dist/actions/create-sales-invoice.d.mts +19 -5
  33. package/dist/actions/create-sales-invoice.mjs +4 -4
  34. package/dist/actions/create-sales-invoice.mjs.map +1 -1
  35. package/dist/actions/delete-contact-note.cjs +1 -1
  36. package/dist/actions/delete-contact-note.cjs.map +1 -1
  37. package/dist/actions/delete-contact-note.d.cts +14 -2
  38. package/dist/actions/delete-contact-note.d.cts.map +1 -1
  39. package/dist/actions/delete-contact-note.d.mts +14 -2
  40. package/dist/actions/delete-contact-note.d.mts.map +1 -1
  41. package/dist/actions/delete-contact-note.mjs +1 -1
  42. package/dist/actions/delete-contact-note.mjs.map +1 -1
  43. package/dist/actions/delete-contact-person.cjs +1 -1
  44. package/dist/actions/delete-contact-person.cjs.map +1 -1
  45. package/dist/actions/delete-contact-person.d.cts +14 -2
  46. package/dist/actions/delete-contact-person.d.cts.map +1 -1
  47. package/dist/actions/delete-contact-person.d.mts +14 -2
  48. package/dist/actions/delete-contact-person.d.mts.map +1 -1
  49. package/dist/actions/delete-contact-person.mjs +1 -1
  50. package/dist/actions/delete-contact-person.mjs.map +1 -1
  51. package/dist/actions/delete-contact.cjs +1 -1
  52. package/dist/actions/delete-contact.cjs.map +1 -1
  53. package/dist/actions/delete-contact.d.cts +14 -2
  54. package/dist/actions/delete-contact.d.cts.map +1 -1
  55. package/dist/actions/delete-contact.d.mts +14 -2
  56. package/dist/actions/delete-contact.d.mts.map +1 -1
  57. package/dist/actions/delete-contact.mjs +1 -1
  58. package/dist/actions/delete-contact.mjs.map +1 -1
  59. package/dist/actions/filter-contacts.d.cts +13 -1
  60. package/dist/actions/filter-contacts.d.mts +13 -1
  61. package/dist/actions/get-additional-charges.d.cts +13 -1
  62. package/dist/actions/get-additional-charges.d.mts +13 -1
  63. package/dist/actions/get-contact-by-customer-id.cjs +5 -5
  64. package/dist/actions/get-contact-by-customer-id.cjs.map +1 -1
  65. package/dist/actions/get-contact-by-customer-id.d.cts +18 -6
  66. package/dist/actions/get-contact-by-customer-id.d.mts +18 -6
  67. package/dist/actions/get-contact-by-customer-id.mjs +5 -5
  68. package/dist/actions/get-contact-by-customer-id.mjs.map +1 -1
  69. package/dist/actions/get-contact-person.cjs +1 -1
  70. package/dist/actions/get-contact-person.cjs.map +1 -1
  71. package/dist/actions/get-contact-person.d.cts +14 -2
  72. package/dist/actions/get-contact-person.d.mts +14 -2
  73. package/dist/actions/get-contact-person.mjs +1 -1
  74. package/dist/actions/get-contact-person.mjs.map +1 -1
  75. package/dist/actions/get-contact.cjs +1 -1
  76. package/dist/actions/get-contact.cjs.map +1 -1
  77. package/dist/actions/get-contact.d.cts +14 -2
  78. package/dist/actions/get-contact.d.mts +14 -2
  79. package/dist/actions/get-contact.mjs +1 -1
  80. package/dist/actions/get-contact.mjs.map +1 -1
  81. package/dist/actions/get-sales-invoice.cjs +1 -1
  82. package/dist/actions/get-sales-invoice.cjs.map +1 -1
  83. package/dist/actions/get-sales-invoice.d.cts +14 -2
  84. package/dist/actions/get-sales-invoice.d.mts +14 -2
  85. package/dist/actions/get-sales-invoice.mjs +1 -1
  86. package/dist/actions/get-sales-invoice.mjs.map +1 -1
  87. package/dist/actions/list-administrations.d.cts +13 -1
  88. package/dist/actions/list-administrations.d.cts.map +1 -1
  89. package/dist/actions/list-administrations.d.mts +13 -1
  90. package/dist/actions/list-administrations.d.mts.map +1 -1
  91. package/dist/actions/list-contacts-synchronization.d.cts +13 -1
  92. package/dist/actions/list-contacts-synchronization.d.mts +13 -1
  93. package/dist/actions/list-sales-invoices.d.cts +13 -1
  94. package/dist/actions/list-sales-invoices.d.mts +13 -1
  95. package/dist/actions/request-contact-payments-mandate-url.cjs +1 -1
  96. package/dist/actions/request-contact-payments-mandate-url.cjs.map +1 -1
  97. package/dist/actions/request-contact-payments-mandate-url.d.cts +14 -2
  98. package/dist/actions/request-contact-payments-mandate-url.d.mts +14 -2
  99. package/dist/actions/request-contact-payments-mandate-url.mjs +1 -1
  100. package/dist/actions/request-contact-payments-mandate-url.mjs.map +1 -1
  101. package/dist/actions/update-contact-person.cjs +1 -1
  102. package/dist/actions/update-contact-person.cjs.map +1 -1
  103. package/dist/actions/update-contact-person.d.cts +14 -2
  104. package/dist/actions/update-contact-person.d.mts +14 -2
  105. package/dist/actions/update-contact-person.mjs +1 -1
  106. package/dist/actions/update-contact-person.mjs.map +1 -1
  107. package/dist/actions/update-contact.cjs +1 -1
  108. package/dist/actions/update-contact.cjs.map +1 -1
  109. package/dist/actions/update-contact.d.cts +14 -2
  110. package/dist/actions/update-contact.d.cts.map +1 -1
  111. package/dist/actions/update-contact.d.mts +14 -2
  112. package/dist/actions/update-contact.d.mts.map +1 -1
  113. package/dist/actions/update-contact.mjs +1 -1
  114. package/dist/actions/update-contact.mjs.map +1 -1
  115. package/dist/actions/update-sales-invoice.cjs +3 -3
  116. package/dist/actions/update-sales-invoice.cjs.map +1 -1
  117. package/dist/actions/update-sales-invoice.d.cts +18 -4
  118. package/dist/actions/update-sales-invoice.d.mts +18 -4
  119. package/dist/actions/update-sales-invoice.mjs +3 -3
  120. package/dist/actions/update-sales-invoice.mjs.map +1 -1
  121. package/dist/app.cjs +5 -2
  122. package/dist/app.cjs.map +1 -1
  123. package/dist/app.d.cts +9 -1
  124. package/dist/app.d.cts.map +1 -1
  125. package/dist/app.d.mts +9 -1
  126. package/dist/app.d.mts.map +1 -1
  127. package/dist/app.mjs +3 -1
  128. package/dist/app.mjs.map +1 -1
  129. package/package.json +1 -1
@@ -22,7 +22,7 @@ const MoneybirdCreateSalesInvoiceInput = zod.z.object({
22
22
  description: zod.z.string().describe("Description of the item"),
23
23
  tax_rate_id: zod.z.number().int().describe("ID of a valid tax rate").optional(),
24
24
  ledger_account_id: zod.z.number().int().describe("ID of a valid ledger account").optional()
25
- }).describe("Sales invoice line item.")).describe("List of line items, at least one item is required"),
25
+ }).passthrough().describe("Sales invoice line item.")).describe("List of line items, at least one item is required"),
26
26
  first_due_interval: zod.z.number().int().describe("Days until due date if not specified").optional(),
27
27
  payment_conditions: zod.z.string().describe("Payment conditions text").optional(),
28
28
  invoice_sequence_id: zod.z.string().describe("Sequence ID for the invoice").optional(),
@@ -32,7 +32,7 @@ const MoneybirdCreateSalesInvoiceInput = zod.z.object({
32
32
  custom_fields_attributes: zod.z.array(zod.z.object({
33
33
  id: zod.z.number().int().describe("ID of the custom field"),
34
34
  value: zod.z.string().describe("Value for the custom field")
35
- })).describe("List of custom field values").optional()
35
+ }).passthrough()).describe("List of custom field values").optional()
36
36
  }).describe("Sales invoice data to create"),
37
37
  administration_id: zod.z.number().int().describe("Numeric administration ID, part of the Moneybird URL path")
38
38
  }).describe("Request model for creating a sales invoice.");
@@ -46,7 +46,7 @@ const MoneybirdCreateSalesInvoice_SalesInvoiceDetailSchema = zod.z.object({
46
46
  description: zod.z.string().describe("Description of the item").nullable(),
47
47
  tax_rate_id: zod.z.number().int().describe("ID of a valid tax rate").nullable().optional(),
48
48
  ledger_account_id: zod.z.number().int().describe("ID of a valid ledger account").nullable().optional()
49
- }).describe("Sales invoice line item.");
49
+ }).passthrough().describe("Sales invoice line item.");
50
50
  const MoneybirdCreateSalesInvoiceOutput = zod.z.object({
51
51
  id: zod.z.string().describe("Unique ID of the created sales invoice").nullable(),
52
52
  state: zod.z.string().describe("State of the invoice, e.g., 'draft' or 'open'").nullable(),
@@ -61,7 +61,7 @@ const MoneybirdCreateSalesInvoiceOutput = zod.z.object({
61
61
  administration_id: zod.z.number().int().describe("Administration ID of the invoice").nullable(),
62
62
  total_price_excl_tax: zod.z.string().describe("Total price excluding tax").nullable(),
63
63
  total_price_incl_tax: zod.z.string().describe("Total price including tax").nullable()
64
- }).describe("Response model for a created sales invoice. Contains key fields returned by the API.");
64
+ }).passthrough().describe("Response model for a created sales invoice. Contains key fields returned by the API.");
65
65
  const moneybirdCreateSalesInvoice = require_action.action("MONEYBIRD_CREATE_SALES_INVOICE", {
66
66
  slug: "moneybird-create-sales-invoice",
67
67
  name: "Create Sales Invoice",
@@ -1 +1 @@
1
- {"version":3,"file":"create-sales-invoice.cjs","names":["z","action"],"sources":["../../src/actions/create-sales-invoice.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoneybirdCreateSalesInvoiceInput = z.object({\n sales_invoice: z.object({\n currency: z.string().describe(\"ISO currency code, e.g., 'EUR'\").optional(),\n discount: z.union([z.number(), z.string()]).optional(),\n reference: z.string().describe(\"Invoice reference\").optional(),\n contact_id: z.number().int().describe(\"ID of the contact for this invoice\"),\n workflow_id: z.number().int().describe(\"ID of the workflow\").optional(),\n invoice_date: z.string().describe(\"Invoice date in YYYY-MM-DD format\").optional(),\n time_entry_ids: z.array(z.number().int()).describe(\"List of time entry IDs to include\").optional(),\n contact_person_id: z.number().int().describe(\"ID of the contact person\").optional(),\n document_style_id: z.number().int().describe(\"ID of the document style\").optional(),\n details_attributes: z.array(z.object({\n price: z.union([z.number(), z.string()]),\n amount: z.string().describe(\"Quantity, e.g., '1 x'\").optional(),\n period: z.string().describe(\"Date range, e.g., '20250101..20250131'\").optional(),\n row_order: z.number().int().describe(\"Order of this line in the invoice\").optional(),\n product_id: z.number().int().describe(\"ID of a product\").optional(),\n project_id: z.number().int().describe(\"ID of a project\").optional(),\n description: z.string().describe(\"Description of the item\"),\n tax_rate_id: z.number().int().describe(\"ID of a valid tax rate\").optional(),\n ledger_account_id: z.number().int().describe(\"ID of a valid ledger account\").optional(),\n}).describe(\"Sales invoice line item.\")).describe(\"List of line items, at least one item is required\"),\n first_due_interval: z.number().int().describe(\"Days until due date if not specified\").optional(),\n payment_conditions: z.string().describe(\"Payment conditions text\").optional(),\n invoice_sequence_id: z.string().describe(\"Sequence ID for the invoice\").optional(),\n prices_are_incl_tax: z.boolean().describe(\"Whether line prices include tax\").optional(),\n from_payment_request: z.boolean().describe(\"Flag indicating invoice originates from payment request\").optional(),\n original_estimate_id: z.number().int().describe(\"ID of the original estimate\").optional(),\n custom_fields_attributes: z.array(z.object({\n id: z.number().int().describe(\"ID of the custom field\"),\n value: z.string().describe(\"Value for the custom field\"),\n})).describe(\"List of custom field values\").optional(),\n}).describe(\"Sales invoice data to create\"),\n administration_id: z.number().int().describe(\"Numeric administration ID, part of the Moneybird URL path\"),\n}).describe(\"Request model for creating a sales invoice.\");\nconst MoneybirdCreateSalesInvoice_SalesInvoiceDetailSchema = z.object({\n price: z.union([z.number(), z.string()]),\n amount: z.string().describe(\"Quantity, e.g., '1 x'\").nullable().optional(),\n period: z.string().describe(\"Date range, e.g., '20250101..20250131'\").nullable().optional(),\n row_order: z.number().int().describe(\"Order of this line in the invoice\").nullable().optional(),\n product_id: z.number().int().describe(\"ID of a product\").nullable().optional(),\n project_id: z.number().int().describe(\"ID of a project\").nullable().optional(),\n description: z.string().describe(\"Description of the item\").nullable(),\n tax_rate_id: z.number().int().describe(\"ID of a valid tax rate\").nullable().optional(),\n ledger_account_id: z.number().int().describe(\"ID of a valid ledger account\").nullable().optional(),\n}).describe(\"Sales invoice line item.\");\nexport const MoneybirdCreateSalesInvoiceOutput = z.object({\n id: z.string().describe(\"Unique ID of the created sales invoice\").nullable(),\n state: z.string().describe(\"State of the invoice, e.g., 'draft' or 'open'\").nullable(),\n details: z.array(MoneybirdCreateSalesInvoice_SalesInvoiceDetailSchema).describe(\"List of line items created\"),\n currency: z.string().describe(\"Currency code used\").nullable(),\n due_date: z.string().describe(\"Due date of the invoice\").nullable().optional(),\n contact_id: z.string().describe(\"Contact ID associated with the invoice\").nullable(),\n created_at: z.string().describe(\"Timestamp when the invoice was created\").nullable(),\n invoice_id: z.string().describe(\"Invoice number if assigned\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when the invoice was last updated\").nullable(),\n invoice_date: z.string().describe(\"Date of the invoice\").nullable().optional(),\n administration_id: z.number().int().describe(\"Administration ID of the invoice\").nullable(),\n total_price_excl_tax: z.string().describe(\"Total price excluding tax\").nullable(),\n total_price_incl_tax: z.string().describe(\"Total price including tax\").nullable(),\n}).describe(\"Response model for a created sales invoice. Contains key fields returned by the API.\");\n\nexport const moneybirdCreateSalesInvoice = action(\"MONEYBIRD_CREATE_SALES_INVOICE\", {\n slug: \"moneybird-create-sales-invoice\",\n name: \"Create Sales Invoice\",\n description: \"Tool to create a new sales invoice. Use when you need to bill a contact with specified line items.\",\n input: MoneybirdCreateSalesInvoiceInput,\n output: MoneybirdCreateSalesInvoiceOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,eAAeA,IAAAA,EAAE,OAAO;EACxB,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;EACzE,UAAUA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS;EACrD,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS;EAC7D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC;EAC1E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;EACtE,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EAChF,gBAAgBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EACjG,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;EAClF,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;EAClF,oBAAoBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;GACrC,OAAOA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC;GACvC,QA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O,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAChF,sBAAsBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;AAClF,CAAC,CAAC,CAAC,SAAS,sFAAsF;AAElG,MAAa,8BAA8BC,eAAAA,OAAO,kCAAkC;CAClF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-sales-invoice.cjs","names":["z","action"],"sources":["../../src/actions/create-sales-invoice.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoneybirdCreateSalesInvoiceInput = z.object({\n sales_invoice: z.object({\n currency: z.string().describe(\"ISO currency code, e.g., 'EUR'\").optional(),\n discount: z.union([z.number(), z.string()]).optional(),\n reference: z.string().describe(\"Invoice reference\").optional(),\n contact_id: z.number().int().describe(\"ID of the contact for this invoice\"),\n workflow_id: z.number().int().describe(\"ID of the workflow\").optional(),\n invoice_date: z.string().describe(\"Invoice date in YYYY-MM-DD format\").optional(),\n time_entry_ids: z.array(z.number().int()).describe(\"List of time entry IDs to include\").optional(),\n contact_person_id: z.number().int().describe(\"ID of the contact person\").optional(),\n document_style_id: z.number().int().describe(\"ID of the document style\").optional(),\n details_attributes: z.array(z.object({\n price: z.union([z.number(), z.string()]),\n amount: z.string().describe(\"Quantity, e.g., '1 x'\").optional(),\n period: z.string().describe(\"Date range, e.g., '20250101..20250131'\").optional(),\n row_order: z.number().int().describe(\"Order of this line in the invoice\").optional(),\n product_id: z.number().int().describe(\"ID of a product\").optional(),\n project_id: z.number().int().describe(\"ID of a project\").optional(),\n description: z.string().describe(\"Description of the item\"),\n tax_rate_id: z.number().int().describe(\"ID of a valid tax rate\").optional(),\n ledger_account_id: z.number().int().describe(\"ID of a valid ledger account\").optional(),\n}).passthrough().describe(\"Sales invoice line item.\")).describe(\"List of line items, at least one item is required\"),\n first_due_interval: z.number().int().describe(\"Days until due date if not specified\").optional(),\n payment_conditions: z.string().describe(\"Payment conditions text\").optional(),\n invoice_sequence_id: z.string().describe(\"Sequence ID for the invoice\").optional(),\n prices_are_incl_tax: z.boolean().describe(\"Whether line prices include tax\").optional(),\n from_payment_request: z.boolean().describe(\"Flag indicating invoice originates from payment request\").optional(),\n original_estimate_id: z.number().int().describe(\"ID of the original estimate\").optional(),\n custom_fields_attributes: z.array(z.object({\n id: z.number().int().describe(\"ID of the custom field\"),\n value: z.string().describe(\"Value for the custom field\"),\n}).passthrough()).describe(\"List of custom field values\").optional(),\n}).describe(\"Sales invoice data to create\"),\n administration_id: z.number().int().describe(\"Numeric administration ID, part of the Moneybird URL path\"),\n}).describe(\"Request model for creating a sales invoice.\");\nconst MoneybirdCreateSalesInvoice_SalesInvoiceDetailSchema = z.object({\n price: z.union([z.number(), z.string()]),\n amount: z.string().describe(\"Quantity, e.g., '1 x'\").nullable().optional(),\n period: z.string().describe(\"Date range, e.g., '20250101..20250131'\").nullable().optional(),\n row_order: z.number().int().describe(\"Order of this line in the invoice\").nullable().optional(),\n product_id: z.number().int().describe(\"ID of a product\").nullable().optional(),\n project_id: z.number().int().describe(\"ID of a project\").nullable().optional(),\n description: z.string().describe(\"Description of the item\").nullable(),\n tax_rate_id: z.number().int().describe(\"ID of a valid tax rate\").nullable().optional(),\n ledger_account_id: z.number().int().describe(\"ID of a valid ledger account\").nullable().optional(),\n}).passthrough().describe(\"Sales invoice line item.\");\nexport const MoneybirdCreateSalesInvoiceOutput = z.object({\n id: z.string().describe(\"Unique ID of the created sales invoice\").nullable(),\n state: z.string().describe(\"State of the invoice, e.g., 'draft' or 'open'\").nullable(),\n details: z.array(MoneybirdCreateSalesInvoice_SalesInvoiceDetailSchema).describe(\"List of line items created\"),\n currency: z.string().describe(\"Currency code used\").nullable(),\n due_date: z.string().describe(\"Due date of the invoice\").nullable().optional(),\n contact_id: z.string().describe(\"Contact ID associated with the invoice\").nullable(),\n created_at: z.string().describe(\"Timestamp when the invoice was created\").nullable(),\n invoice_id: z.string().describe(\"Invoice number if assigned\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when the invoice was last updated\").nullable(),\n invoice_date: z.string().describe(\"Date of the invoice\").nullable().optional(),\n administration_id: z.number().int().describe(\"Administration ID of the invoice\").nullable(),\n total_price_excl_tax: z.string().describe(\"Total price excluding tax\").nullable(),\n total_price_incl_tax: z.string().describe(\"Total price including tax\").nullable(),\n}).passthrough().describe(\"Response model for a created sales invoice. Contains key fields returned by the API.\");\n\nexport const moneybirdCreateSalesInvoice = action(\"MONEYBIRD_CREATE_SALES_INVOICE\", {\n slug: \"moneybird-create-sales-invoice\",\n name: \"Create Sales Invoice\",\n description: \"Tool to create a new sales invoice. Use when you need to bill a contact with specified line items.\",\n input: MoneybirdCreateSalesInvoiceInput,\n output: MoneybirdCreateSalesInvoiceOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,eAAeA,IAAAA,EAAE,OAAO;EACxB,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;EACzE,UAAUA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS;EACrD,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS;EAC7D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC;EAC1E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;EACtE,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EAChF,gBAAgBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,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AC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACnF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CACxF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAC1F,sBAAsBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAChF,sBAAsBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;AAClF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sFAAsF;AAEhH,MAAa,8BAA8BC,eAAAA,OAAO,kCAAkC;CAClF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -22,7 +22,7 @@ declare const MoneybirdCreateSalesInvoiceInput: z.ZodObject<{
22
22
  description: z.ZodString;
23
23
  tax_rate_id: z.ZodOptional<z.ZodNumber>;
24
24
  ledger_account_id: z.ZodOptional<z.ZodNumber>;
25
- }, z.core.$strip>>;
25
+ }, z.core.$loose>>;
26
26
  first_due_interval: z.ZodOptional<z.ZodNumber>;
27
27
  payment_conditions: z.ZodOptional<z.ZodString>;
28
28
  invoice_sequence_id: z.ZodOptional<z.ZodString>;
@@ -32,7 +32,7 @@ declare const MoneybirdCreateSalesInvoiceInput: z.ZodObject<{
32
32
  custom_fields_attributes: z.ZodOptional<z.ZodArray<z.ZodObject<{
33
33
  id: z.ZodNumber;
34
34
  value: z.ZodString;
35
- }, z.core.$strip>>>;
35
+ }, z.core.$loose>>>;
36
36
  }, z.core.$strip>;
37
37
  administration_id: z.ZodNumber;
38
38
  }, z.core.$strip>;
@@ -49,7 +49,7 @@ declare const MoneybirdCreateSalesInvoiceOutput: z.ZodObject<{
49
49
  description: z.ZodNullable<z.ZodString>;
50
50
  tax_rate_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
51
51
  ledger_account_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
52
- }, z.core.$strip>>;
52
+ }, z.core.$loose>>;
53
53
  currency: z.ZodNullable<z.ZodString>;
54
54
  due_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
55
55
  contact_id: z.ZodNullable<z.ZodString>;
@@ -60,11 +60,12 @@ declare const MoneybirdCreateSalesInvoiceOutput: z.ZodObject<{
60
60
  administration_id: z.ZodNullable<z.ZodNumber>;
61
61
  total_price_excl_tax: z.ZodNullable<z.ZodString>;
62
62
  total_price_incl_tax: z.ZodNullable<z.ZodString>;
63
- }, z.core.$strip>;
63
+ }, z.core.$loose>;
64
64
  declare const moneybirdCreateSalesInvoice: import("@keystrokehq/action").WorkflowActionDefinition<{
65
65
  sales_invoice: {
66
66
  contact_id: number;
67
67
  details_attributes: {
68
+ [x: string]: unknown;
68
69
  price: string | number;
69
70
  description: string;
70
71
  amount?: string | undefined;
@@ -90,12 +91,25 @@ declare const moneybirdCreateSalesInvoice: import("@keystrokehq/action").Workflo
90
91
  from_payment_request?: boolean | undefined;
91
92
  original_estimate_id?: number | undefined;
92
93
  custom_fields_attributes?: {
94
+ [x: string]: unknown;
93
95
  id: number;
94
96
  value: string;
95
97
  }[] | undefined;
96
98
  };
97
99
  administration_id: number;
98
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
100
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"moneybird", z.ZodObject<{
101
+ connectionId: z.ZodString;
102
+ entityId: z.ZodString;
103
+ instanceId: z.ZodString;
104
+ }, z.core.$strip>, z.ZodObject<{
105
+ accessToken: z.ZodString;
106
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"moneybird", z.ZodObject<{
107
+ connectionId: z.ZodString;
108
+ entityId: z.ZodString;
109
+ instanceId: z.ZodString;
110
+ }, z.core.$strip>, z.ZodObject<{
111
+ accessToken: z.ZodString;
112
+ }, z.core.$strip>>]>;
99
113
  //#endregion
100
114
  export { moneybirdCreateSalesInvoice };
101
115
  //# sourceMappingURL=create-sales-invoice.d.cts.map
@@ -22,7 +22,7 @@ declare const MoneybirdCreateSalesInvoiceInput: z.ZodObject<{
22
22
  description: z.ZodString;
23
23
  tax_rate_id: z.ZodOptional<z.ZodNumber>;
24
24
  ledger_account_id: z.ZodOptional<z.ZodNumber>;
25
- }, z.core.$strip>>;
25
+ }, z.core.$loose>>;
26
26
  first_due_interval: z.ZodOptional<z.ZodNumber>;
27
27
  payment_conditions: z.ZodOptional<z.ZodString>;
28
28
  invoice_sequence_id: z.ZodOptional<z.ZodString>;
@@ -32,7 +32,7 @@ declare const MoneybirdCreateSalesInvoiceInput: z.ZodObject<{
32
32
  custom_fields_attributes: z.ZodOptional<z.ZodArray<z.ZodObject<{
33
33
  id: z.ZodNumber;
34
34
  value: z.ZodString;
35
- }, z.core.$strip>>>;
35
+ }, z.core.$loose>>>;
36
36
  }, z.core.$strip>;
37
37
  administration_id: z.ZodNumber;
38
38
  }, z.core.$strip>;
@@ -49,7 +49,7 @@ declare const MoneybirdCreateSalesInvoiceOutput: z.ZodObject<{
49
49
  description: z.ZodNullable<z.ZodString>;
50
50
  tax_rate_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
51
51
  ledger_account_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
52
- }, z.core.$strip>>;
52
+ }, z.core.$loose>>;
53
53
  currency: z.ZodNullable<z.ZodString>;
54
54
  due_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
55
55
  contact_id: z.ZodNullable<z.ZodString>;
@@ -60,11 +60,12 @@ declare const MoneybirdCreateSalesInvoiceOutput: z.ZodObject<{
60
60
  administration_id: z.ZodNullable<z.ZodNumber>;
61
61
  total_price_excl_tax: z.ZodNullable<z.ZodString>;
62
62
  total_price_incl_tax: z.ZodNullable<z.ZodString>;
63
- }, z.core.$strip>;
63
+ }, z.core.$loose>;
64
64
  declare const moneybirdCreateSalesInvoice: import("@keystrokehq/action").WorkflowActionDefinition<{
65
65
  sales_invoice: {
66
66
  contact_id: number;
67
67
  details_attributes: {
68
+ [x: string]: unknown;
68
69
  price: string | number;
69
70
  description: string;
70
71
  amount?: string | undefined;
@@ -90,12 +91,25 @@ declare const moneybirdCreateSalesInvoice: import("@keystrokehq/action").Workflo
90
91
  from_payment_request?: boolean | undefined;
91
92
  original_estimate_id?: number | undefined;
92
93
  custom_fields_attributes?: {
94
+ [x: string]: unknown;
93
95
  id: number;
94
96
  value: string;
95
97
  }[] | undefined;
96
98
  };
97
99
  administration_id: number;
98
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
100
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"moneybird", z.ZodObject<{
101
+ connectionId: z.ZodString;
102
+ entityId: z.ZodString;
103
+ instanceId: z.ZodString;
104
+ }, z.core.$strip>, z.ZodObject<{
105
+ accessToken: z.ZodString;
106
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"moneybird", z.ZodObject<{
107
+ connectionId: z.ZodString;
108
+ entityId: z.ZodString;
109
+ instanceId: z.ZodString;
110
+ }, z.core.$strip>, z.ZodObject<{
111
+ accessToken: z.ZodString;
112
+ }, z.core.$strip>>]>;
99
113
  //#endregion
100
114
  export { moneybirdCreateSalesInvoice };
101
115
  //# sourceMappingURL=create-sales-invoice.d.mts.map
@@ -22,7 +22,7 @@ const MoneybirdCreateSalesInvoiceInput = z.object({
22
22
  description: z.string().describe("Description of the item"),
23
23
  tax_rate_id: z.number().int().describe("ID of a valid tax rate").optional(),
24
24
  ledger_account_id: z.number().int().describe("ID of a valid ledger account").optional()
25
- }).describe("Sales invoice line item.")).describe("List of line items, at least one item is required"),
25
+ }).passthrough().describe("Sales invoice line item.")).describe("List of line items, at least one item is required"),
26
26
  first_due_interval: z.number().int().describe("Days until due date if not specified").optional(),
27
27
  payment_conditions: z.string().describe("Payment conditions text").optional(),
28
28
  invoice_sequence_id: z.string().describe("Sequence ID for the invoice").optional(),
@@ -32,7 +32,7 @@ const MoneybirdCreateSalesInvoiceInput = z.object({
32
32
  custom_fields_attributes: z.array(z.object({
33
33
  id: z.number().int().describe("ID of the custom field"),
34
34
  value: z.string().describe("Value for the custom field")
35
- })).describe("List of custom field values").optional()
35
+ }).passthrough()).describe("List of custom field values").optional()
36
36
  }).describe("Sales invoice data to create"),
37
37
  administration_id: z.number().int().describe("Numeric administration ID, part of the Moneybird URL path")
38
38
  }).describe("Request model for creating a sales invoice.");
@@ -46,7 +46,7 @@ const MoneybirdCreateSalesInvoice_SalesInvoiceDetailSchema = z.object({
46
46
  description: z.string().describe("Description of the item").nullable(),
47
47
  tax_rate_id: z.number().int().describe("ID of a valid tax rate").nullable().optional(),
48
48
  ledger_account_id: z.number().int().describe("ID of a valid ledger account").nullable().optional()
49
- }).describe("Sales invoice line item.");
49
+ }).passthrough().describe("Sales invoice line item.");
50
50
  const moneybirdCreateSalesInvoice = action("MONEYBIRD_CREATE_SALES_INVOICE", {
51
51
  slug: "moneybird-create-sales-invoice",
52
52
  name: "Create Sales Invoice",
@@ -66,7 +66,7 @@ const moneybirdCreateSalesInvoice = action("MONEYBIRD_CREATE_SALES_INVOICE", {
66
66
  administration_id: z.number().int().describe("Administration ID of the invoice").nullable(),
67
67
  total_price_excl_tax: z.string().describe("Total price excluding tax").nullable(),
68
68
  total_price_incl_tax: z.string().describe("Total price including tax").nullable()
69
- }).describe("Response model for a created sales invoice. Contains key fields returned by the API.")
69
+ }).passthrough().describe("Response model for a created sales invoice. Contains key fields returned by the API.")
70
70
  });
71
71
  //#endregion
72
72
  export { moneybirdCreateSalesInvoice };
@@ -1 +1 @@
1
- {"version":3,"file":"create-sales-invoice.mjs","names":[],"sources":["../../src/actions/create-sales-invoice.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoneybirdCreateSalesInvoiceInput = z.object({\n sales_invoice: z.object({\n currency: z.string().describe(\"ISO currency code, e.g., 'EUR'\").optional(),\n discount: z.union([z.number(), z.string()]).optional(),\n reference: z.string().describe(\"Invoice reference\").optional(),\n contact_id: z.number().int().describe(\"ID of the contact for this invoice\"),\n workflow_id: z.number().int().describe(\"ID of the workflow\").optional(),\n invoice_date: z.string().describe(\"Invoice date in YYYY-MM-DD format\").optional(),\n time_entry_ids: z.array(z.number().int()).describe(\"List of time entry IDs to include\").optional(),\n contact_person_id: z.number().int().describe(\"ID of the contact person\").optional(),\n document_style_id: z.number().int().describe(\"ID of the document style\").optional(),\n details_attributes: z.array(z.object({\n price: z.union([z.number(), z.string()]),\n amount: z.string().describe(\"Quantity, e.g., '1 x'\").optional(),\n period: z.string().describe(\"Date range, e.g., '20250101..20250131'\").optional(),\n row_order: z.number().int().describe(\"Order of this line in the invoice\").optional(),\n product_id: z.number().int().describe(\"ID of a product\").optional(),\n project_id: z.number().int().describe(\"ID of a project\").optional(),\n description: z.string().describe(\"Description of the item\"),\n tax_rate_id: z.number().int().describe(\"ID of a valid tax rate\").optional(),\n ledger_account_id: z.number().int().describe(\"ID of a valid ledger account\").optional(),\n}).describe(\"Sales invoice line item.\")).describe(\"List of line items, at least one item is required\"),\n first_due_interval: z.number().int().describe(\"Days until due date if not specified\").optional(),\n payment_conditions: z.string().describe(\"Payment conditions text\").optional(),\n invoice_sequence_id: z.string().describe(\"Sequence ID for the invoice\").optional(),\n prices_are_incl_tax: z.boolean().describe(\"Whether line prices include tax\").optional(),\n from_payment_request: z.boolean().describe(\"Flag indicating invoice originates from payment request\").optional(),\n original_estimate_id: z.number().int().describe(\"ID of the original estimate\").optional(),\n custom_fields_attributes: z.array(z.object({\n id: z.number().int().describe(\"ID of the custom field\"),\n value: z.string().describe(\"Value for the custom field\"),\n})).describe(\"List of custom field values\").optional(),\n}).describe(\"Sales invoice data to create\"),\n administration_id: z.number().int().describe(\"Numeric administration ID, part of the Moneybird URL path\"),\n}).describe(\"Request model for creating a sales invoice.\");\nconst MoneybirdCreateSalesInvoice_SalesInvoiceDetailSchema = z.object({\n price: z.union([z.number(), z.string()]),\n amount: z.string().describe(\"Quantity, e.g., '1 x'\").nullable().optional(),\n period: z.string().describe(\"Date range, e.g., '20250101..20250131'\").nullable().optional(),\n row_order: z.number().int().describe(\"Order of this line in the invoice\").nullable().optional(),\n product_id: z.number().int().describe(\"ID of a product\").nullable().optional(),\n project_id: z.number().int().describe(\"ID of a project\").nullable().optional(),\n description: z.string().describe(\"Description of the item\").nullable(),\n tax_rate_id: z.number().int().describe(\"ID of a valid tax rate\").nullable().optional(),\n ledger_account_id: z.number().int().describe(\"ID of a valid ledger account\").nullable().optional(),\n}).describe(\"Sales invoice line item.\");\nexport const MoneybirdCreateSalesInvoiceOutput = z.object({\n id: z.string().describe(\"Unique ID of the created sales invoice\").nullable(),\n state: z.string().describe(\"State of the invoice, e.g., 'draft' or 'open'\").nullable(),\n details: z.array(MoneybirdCreateSalesInvoice_SalesInvoiceDetailSchema).describe(\"List of line items created\"),\n currency: z.string().describe(\"Currency code used\").nullable(),\n due_date: z.string().describe(\"Due date of the invoice\").nullable().optional(),\n contact_id: z.string().describe(\"Contact ID associated with the invoice\").nullable(),\n created_at: z.string().describe(\"Timestamp when the invoice was created\").nullable(),\n invoice_id: z.string().describe(\"Invoice number if assigned\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when the invoice was last updated\").nullable(),\n invoice_date: z.string().describe(\"Date of the invoice\").nullable().optional(),\n administration_id: z.number().int().describe(\"Administration ID of the invoice\").nullable(),\n total_price_excl_tax: z.string().describe(\"Total price excluding tax\").nullable(),\n total_price_incl_tax: z.string().describe(\"Total price including tax\").nullable(),\n}).describe(\"Response model for a created sales invoice. Contains key fields returned by the API.\");\n\nexport const moneybirdCreateSalesInvoice = action(\"MONEYBIRD_CREATE_SALES_INVOICE\", {\n slug: \"moneybird-create-sales-invoice\",\n name: \"Create Sales Invoice\",\n description: \"Tool to create a new sales invoice. Use when you need to bill a contact with specified line items.\",\n input: MoneybirdCreateSalesInvoiceInput,\n output: MoneybirdCreateSalesInvoiceOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAmC,EAAE,OAAO;CACvD,eAAe,EAAE,OAAO;EACxB,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;EACzE,UAAU,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS;EACrD,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS;EAC7D,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC;EAC1E,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;EACtE,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EAChF,gBAAgB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EACjG,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;EAClF,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;EAClF,oBAAoB,EAAE,MAAM,EAAE,OAAO;GACrC,OAAO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create-sales-invoice.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoneybirdCreateSalesInvoiceInput = z.object({\n sales_invoice: z.object({\n currency: z.string().describe(\"ISO currency code, e.g., 'EUR'\").optional(),\n discount: z.union([z.number(), z.string()]).optional(),\n reference: z.string().describe(\"Invoice reference\").optional(),\n contact_id: z.number().int().describe(\"ID of the contact for this invoice\"),\n workflow_id: z.number().int().describe(\"ID of the workflow\").optional(),\n invoice_date: z.string().describe(\"Invoice date in YYYY-MM-DD format\").optional(),\n time_entry_ids: z.array(z.number().int()).describe(\"List of time entry IDs to include\").optional(),\n contact_person_id: z.number().int().describe(\"ID of the contact person\").optional(),\n document_style_id: z.number().int().describe(\"ID of the document style\").optional(),\n details_attributes: z.array(z.object({\n price: z.union([z.number(), z.string()]),\n amount: z.string().describe(\"Quantity, e.g., '1 x'\").optional(),\n period: z.string().describe(\"Date range, e.g., '20250101..20250131'\").optional(),\n row_order: z.number().int().describe(\"Order of this line in the invoice\").optional(),\n product_id: z.number().int().describe(\"ID of a product\").optional(),\n project_id: z.number().int().describe(\"ID of a project\").optional(),\n description: z.string().describe(\"Description of the item\"),\n tax_rate_id: z.number().int().describe(\"ID of a valid tax rate\").optional(),\n ledger_account_id: z.number().int().describe(\"ID of a valid ledger account\").optional(),\n}).passthrough().describe(\"Sales invoice line item.\")).describe(\"List of line items, at least one item is required\"),\n first_due_interval: z.number().int().describe(\"Days until due date if not specified\").optional(),\n payment_conditions: z.string().describe(\"Payment conditions text\").optional(),\n invoice_sequence_id: z.string().describe(\"Sequence ID for the invoice\").optional(),\n prices_are_incl_tax: z.boolean().describe(\"Whether line prices include tax\").optional(),\n from_payment_request: z.boolean().describe(\"Flag indicating invoice originates from payment request\").optional(),\n original_estimate_id: z.number().int().describe(\"ID of the original estimate\").optional(),\n custom_fields_attributes: z.array(z.object({\n id: z.number().int().describe(\"ID of the custom field\"),\n value: z.string().describe(\"Value for the custom field\"),\n}).passthrough()).describe(\"List of custom field values\").optional(),\n}).describe(\"Sales invoice data to create\"),\n administration_id: z.number().int().describe(\"Numeric administration ID, part of the Moneybird URL path\"),\n}).describe(\"Request model for creating a sales invoice.\");\nconst MoneybirdCreateSalesInvoice_SalesInvoiceDetailSchema = z.object({\n price: z.union([z.number(), z.string()]),\n amount: z.string().describe(\"Quantity, e.g., '1 x'\").nullable().optional(),\n period: z.string().describe(\"Date range, e.g., '20250101..20250131'\").nullable().optional(),\n row_order: z.number().int().describe(\"Order of this line in the invoice\").nullable().optional(),\n product_id: z.number().int().describe(\"ID of a product\").nullable().optional(),\n project_id: z.number().int().describe(\"ID of a project\").nullable().optional(),\n description: z.string().describe(\"Description of the item\").nullable(),\n tax_rate_id: z.number().int().describe(\"ID of a valid tax rate\").nullable().optional(),\n ledger_account_id: z.number().int().describe(\"ID of a valid ledger account\").nullable().optional(),\n}).passthrough().describe(\"Sales invoice line item.\");\nexport const MoneybirdCreateSalesInvoiceOutput = z.object({\n id: z.string().describe(\"Unique ID of the created sales invoice\").nullable(),\n state: z.string().describe(\"State of the invoice, e.g., 'draft' or 'open'\").nullable(),\n details: z.array(MoneybirdCreateSalesInvoice_SalesInvoiceDetailSchema).describe(\"List of line items created\"),\n currency: z.string().describe(\"Currency code used\").nullable(),\n due_date: z.string().describe(\"Due date of the invoice\").nullable().optional(),\n contact_id: z.string().describe(\"Contact ID associated with the invoice\").nullable(),\n created_at: z.string().describe(\"Timestamp when the invoice was created\").nullable(),\n invoice_id: z.string().describe(\"Invoice number if assigned\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when the invoice was last updated\").nullable(),\n invoice_date: z.string().describe(\"Date of the invoice\").nullable().optional(),\n administration_id: z.number().int().describe(\"Administration ID of the invoice\").nullable(),\n total_price_excl_tax: z.string().describe(\"Total price excluding tax\").nullable(),\n total_price_incl_tax: z.string().describe(\"Total price including tax\").nullable(),\n}).passthrough().describe(\"Response model for a created sales invoice. Contains key fields returned by the API.\");\n\nexport const moneybirdCreateSalesInvoice = action(\"MONEYBIRD_CREATE_SALES_INVOICE\", {\n slug: \"moneybird-create-sales-invoice\",\n name: \"Create Sales Invoice\",\n description: \"Tool to create a new sales invoice. Use when you need to bill a contact with specified line items.\",\n input: MoneybirdCreateSalesInvoiceInput,\n output: MoneybirdCreateSalesInvoiceOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAmC,EAAE,OAAO;CACvD,eAAe,EAAE,OAAO;EACxB,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;EACzE,UAAU,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS;EACrD,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS;EAC7D,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC;EAC1E,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;EACtE,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EAChF,gBAAgB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EACjG,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;EAClF,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;EAClF,oBAAoB,EAAE,MAAM,EAAE,OAAO;GACrC,OAAO,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,OAAO,CAAC,CAAC;GACvC,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;GAC9D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS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aAAa;CACb,OAAO;CACP,QArB+C,EAAE,OAAO;EACxD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;EAC3E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;EACrF,SAAS,EAAE,MAAM,oDAAoD,CAAC,CAAC,SAAS,4BAA4B;EAC5G,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;EAC7D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;EACnF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;EACnF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;EACxF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7E,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;EAC1F,sBAAsB,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;EAChF,sBAAsB,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAClF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sFAOhB;AACV,CAAC"}
@@ -6,7 +6,7 @@ const MoneybirdDeleteContactNoteInput = zod.z.object({
6
6
  contact_id: zod.z.number().int().describe("The unique identifier of the contact"),
7
7
  administration_id: zod.z.number().int().describe("The unique identifier of the administration")
8
8
  }).describe("Request parameters for deleting a note from a contact.");
9
- const MoneybirdDeleteContactNoteOutput = zod.z.object({}).describe("Empty response for delete contact note.");
9
+ const MoneybirdDeleteContactNoteOutput = zod.z.record(zod.z.string(), zod.z.unknown()).describe("Empty response for delete contact note.");
10
10
  const moneybirdDeleteContactNote = require_action.action("MONEYBIRD_DELETE_CONTACT_NOTE", {
11
11
  slug: "moneybird-delete-contact-note",
12
12
  name: "Delete Contact Note",
@@ -1 +1 @@
1
- {"version":3,"file":"delete-contact-note.cjs","names":["z","action"],"sources":["../../src/actions/delete-contact-note.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoneybirdDeleteContactNoteInput = z.object({\n note_id: z.number().int().describe(\"The unique identifier of the note to delete\"),\n contact_id: z.number().int().describe(\"The unique identifier of the contact\"),\n administration_id: z.number().int().describe(\"The unique identifier of the administration\"),\n}).describe(\"Request parameters for deleting a note from a contact.\");\nexport const MoneybirdDeleteContactNoteOutput = z.object({}).describe(\"Empty response for delete contact note.\");\n\nexport const moneybirdDeleteContactNote = action(\"MONEYBIRD_DELETE_CONTACT_NOTE\", {\n slug: \"moneybird-delete-contact-note\",\n name: \"Delete Contact Note\",\n description: \"Tool to delete a note from a contact. Use when a note is no longer needed and should be removed permanently.\",\n input: MoneybirdDeleteContactNoteInput,\n output: MoneybirdDeleteContactNoteOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C;CAChF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC;CAC5E,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C;AAC5F,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACpE,MAAa,mCAAmCA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,yCAAyC;AAE/G,MAAa,6BAA6BC,eAAAA,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"delete-contact-note.cjs","names":["z","action"],"sources":["../../src/actions/delete-contact-note.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoneybirdDeleteContactNoteInput = z.object({\n note_id: z.number().int().describe(\"The unique identifier of the note to delete\"),\n contact_id: z.number().int().describe(\"The unique identifier of the contact\"),\n administration_id: z.number().int().describe(\"The unique identifier of the administration\"),\n}).describe(\"Request parameters for deleting a note from a contact.\");\nexport const MoneybirdDeleteContactNoteOutput = z.record(z.string(), z.unknown()).describe(\"Empty response for delete contact note.\");\n\nexport const moneybirdDeleteContactNote = action(\"MONEYBIRD_DELETE_CONTACT_NOTE\", {\n slug: \"moneybird-delete-contact-note\",\n name: \"Delete Contact Note\",\n description: \"Tool to delete a note from a contact. Use when a note is no longer needed and should be removed permanently.\",\n input: MoneybirdDeleteContactNoteInput,\n output: MoneybirdDeleteContactNoteOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C;CAChF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC;CAC5E,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C;AAC5F,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACpE,MAAa,mCAAmCA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,yCAAyC;AAEpI,MAAa,6BAA6BC,eAAAA,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -6,12 +6,24 @@ declare const MoneybirdDeleteContactNoteInput: z.ZodObject<{
6
6
  contact_id: z.ZodNumber;
7
7
  administration_id: z.ZodNumber;
8
8
  }, z.core.$strip>;
9
- declare const MoneybirdDeleteContactNoteOutput: z.ZodObject<{}, z.core.$strip>;
9
+ declare const MoneybirdDeleteContactNoteOutput: z.ZodRecord<z.ZodString, z.ZodUnknown>;
10
10
  declare const moneybirdDeleteContactNote: import("@keystrokehq/action").WorkflowActionDefinition<{
11
11
  note_id: number;
12
12
  contact_id: number;
13
13
  administration_id: number;
14
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
14
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"moneybird", z.ZodObject<{
15
+ connectionId: z.ZodString;
16
+ entityId: z.ZodString;
17
+ instanceId: z.ZodString;
18
+ }, z.core.$strip>, z.ZodObject<{
19
+ accessToken: z.ZodString;
20
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"moneybird", z.ZodObject<{
21
+ connectionId: z.ZodString;
22
+ entityId: z.ZodString;
23
+ instanceId: z.ZodString;
24
+ }, z.core.$strip>, z.ZodObject<{
25
+ accessToken: z.ZodString;
26
+ }, z.core.$strip>>]>;
15
27
  //#endregion
16
28
  export { moneybirdDeleteContactNote };
17
29
  //# sourceMappingURL=delete-contact-note.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"delete-contact-note.d.cts","names":[],"sources":["../../src/actions/delete-contact-note.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;cAK/B,gCAAA,EAAgC,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAEhC,0BAAA,gCAA0B,wBAAA"}
1
+ {"version":3,"file":"delete-contact-note.d.cts","names":[],"sources":["../../src/actions/delete-contact-note.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;cAK/B,gCAAA,EAAgC,CAAA,CAAA,SAAA,CAAA,CAAA,CAAA,SAAA,EAAA,CAAA,CAAA,UAAA;AAAA,cAEhC,0BAAA,gCAA0B,wBAAA"}
@@ -6,12 +6,24 @@ declare const MoneybirdDeleteContactNoteInput: z.ZodObject<{
6
6
  contact_id: z.ZodNumber;
7
7
  administration_id: z.ZodNumber;
8
8
  }, z.core.$strip>;
9
- declare const MoneybirdDeleteContactNoteOutput: z.ZodObject<{}, z.core.$strip>;
9
+ declare const MoneybirdDeleteContactNoteOutput: z.ZodRecord<z.ZodString, z.ZodUnknown>;
10
10
  declare const moneybirdDeleteContactNote: import("@keystrokehq/action").WorkflowActionDefinition<{
11
11
  note_id: number;
12
12
  contact_id: number;
13
13
  administration_id: number;
14
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
14
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"moneybird", z.ZodObject<{
15
+ connectionId: z.ZodString;
16
+ entityId: z.ZodString;
17
+ instanceId: z.ZodString;
18
+ }, z.core.$strip>, z.ZodObject<{
19
+ accessToken: z.ZodString;
20
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"moneybird", z.ZodObject<{
21
+ connectionId: z.ZodString;
22
+ entityId: z.ZodString;
23
+ instanceId: z.ZodString;
24
+ }, z.core.$strip>, z.ZodObject<{
25
+ accessToken: z.ZodString;
26
+ }, z.core.$strip>>]>;
15
27
  //#endregion
16
28
  export { moneybirdDeleteContactNote };
17
29
  //# sourceMappingURL=delete-contact-note.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"delete-contact-note.d.mts","names":[],"sources":["../../src/actions/delete-contact-note.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;cAK/B,gCAAA,EAAgC,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAEhC,0BAAA,gCAA0B,wBAAA"}
1
+ {"version":3,"file":"delete-contact-note.d.mts","names":[],"sources":["../../src/actions/delete-contact-note.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;cAK/B,gCAAA,EAAgC,CAAA,CAAA,SAAA,CAAA,CAAA,CAAA,SAAA,EAAA,CAAA,CAAA,UAAA;AAAA,cAEhC,0BAAA,gCAA0B,wBAAA"}
@@ -9,7 +9,7 @@ const moneybirdDeleteContactNote = action("MONEYBIRD_DELETE_CONTACT_NOTE", {
9
9
  contact_id: z.number().int().describe("The unique identifier of the contact"),
10
10
  administration_id: z.number().int().describe("The unique identifier of the administration")
11
11
  }).describe("Request parameters for deleting a note from a contact."),
12
- output: z.object({}).describe("Empty response for delete contact note.")
12
+ output: z.record(z.string(), z.unknown()).describe("Empty response for delete contact note.")
13
13
  });
14
14
  //#endregion
15
15
  export { moneybirdDeleteContactNote };
@@ -1 +1 @@
1
- {"version":3,"file":"delete-contact-note.mjs","names":[],"sources":["../../src/actions/delete-contact-note.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoneybirdDeleteContactNoteInput = z.object({\n note_id: z.number().int().describe(\"The unique identifier of the note to delete\"),\n contact_id: z.number().int().describe(\"The unique identifier of the contact\"),\n administration_id: z.number().int().describe(\"The unique identifier of the administration\"),\n}).describe(\"Request parameters for deleting a note from a contact.\");\nexport const MoneybirdDeleteContactNoteOutput = z.object({}).describe(\"Empty response for delete contact note.\");\n\nexport const moneybirdDeleteContactNote = action(\"MONEYBIRD_DELETE_CONTACT_NOTE\", {\n slug: \"moneybird-delete-contact-note\",\n name: \"Delete Contact Note\",\n description: \"Tool to delete a note from a contact. Use when a note is no longer needed and should be removed permanently.\",\n input: MoneybirdDeleteContactNoteInput,\n output: MoneybirdDeleteContactNoteOutput,\n});\n"],"mappings":";;AAWA,MAAa,6BAA6B,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAX6C,EAAE,OAAO;EACtD,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C;EAChF,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC;EAC5E,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C;CAC5F,CAAC,CAAC,CAAC,SAAS,wDAOH;CACP,QAP8C,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,yCAO5D;AACV,CAAC"}
1
+ {"version":3,"file":"delete-contact-note.mjs","names":[],"sources":["../../src/actions/delete-contact-note.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoneybirdDeleteContactNoteInput = z.object({\n note_id: z.number().int().describe(\"The unique identifier of the note to delete\"),\n contact_id: z.number().int().describe(\"The unique identifier of the contact\"),\n administration_id: z.number().int().describe(\"The unique identifier of the administration\"),\n}).describe(\"Request parameters for deleting a note from a contact.\");\nexport const MoneybirdDeleteContactNoteOutput = z.record(z.string(), z.unknown()).describe(\"Empty response for delete contact note.\");\n\nexport const moneybirdDeleteContactNote = action(\"MONEYBIRD_DELETE_CONTACT_NOTE\", {\n slug: \"moneybird-delete-contact-note\",\n name: \"Delete Contact Note\",\n description: \"Tool to delete a note from a contact. Use when a note is no longer needed and should be removed permanently.\",\n input: MoneybirdDeleteContactNoteInput,\n output: MoneybirdDeleteContactNoteOutput,\n});\n"],"mappings":";;AAWA,MAAa,6BAA6B,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAX6C,EAAE,OAAO;EACtD,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C;EAChF,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC;EAC5E,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C;CAC5F,CAAC,CAAC,CAAC,SAAS,wDAOH;CACP,QAP8C,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,yCAOjF;AACV,CAAC"}
@@ -6,7 +6,7 @@ const MoneybirdDeleteContactPersonInput = zod.z.object({
6
6
  administration_id: zod.z.number().int().describe("The Moneybird administration ID under which the contact resides"),
7
7
  contact_person_id: zod.z.number().int().describe("The ID of the contact person to delete")
8
8
  }).describe("Path parameters for deleting a Moneybird contact person.");
9
- const MoneybirdDeleteContactPersonOutput = zod.z.object({}).describe("Empty response returned after successful deletion (HTTP 204 No Content).");
9
+ const MoneybirdDeleteContactPersonOutput = zod.z.record(zod.z.string(), zod.z.unknown()).describe("Empty response returned after successful deletion (HTTP 204 No Content).");
10
10
  const moneybirdDeleteContactPerson = require_action.action("MONEYBIRD_DELETE_CONTACT_PERSON", {
11
11
  slug: "moneybird-delete-contact-person",
12
12
  name: "Delete Contact Person",
@@ -1 +1 @@
1
- {"version":3,"file":"delete-contact-person.cjs","names":["z","action"],"sources":["../../src/actions/delete-contact-person.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoneybirdDeleteContactPersonInput = z.object({\n contact_id: z.number().int().describe(\"The ID of the contact from which to remove a person\"),\n administration_id: z.number().int().describe(\"The Moneybird administration ID under which the contact resides\"),\n contact_person_id: z.number().int().describe(\"The ID of the contact person to delete\"),\n}).describe(\"Path parameters for deleting a Moneybird contact person.\");\nexport const MoneybirdDeleteContactPersonOutput = z.object({}).describe(\"Empty response returned after successful deletion (HTTP 204 No Content).\");\n\nexport const moneybirdDeleteContactPerson = action(\"MONEYBIRD_DELETE_CONTACT_PERSON\", {\n slug: \"moneybird-delete-contact-person\",\n name: \"Delete Contact Person\",\n description: \"Tool to delete a contact person from a contact. Use after confirming the administration_id, contact_id, and contact_person_id.\",\n input: MoneybirdDeleteContactPersonInput,\n output: MoneybirdDeleteContactPersonOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAoCA,IAAAA,EAAE,OAAO;CACxD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qDAAqD;CAC3F,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iEAAiE;CAC9G,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC;AACvF,CAAC,CAAC,CAAC,SAAS,0DAA0D;AACtE,MAAa,qCAAqCA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,0EAA0E;AAElJ,MAAa,+BAA+BC,eAAAA,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"delete-contact-person.cjs","names":["z","action"],"sources":["../../src/actions/delete-contact-person.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoneybirdDeleteContactPersonInput = z.object({\n contact_id: z.number().int().describe(\"The ID of the contact from which to remove a person\"),\n administration_id: z.number().int().describe(\"The Moneybird administration ID under which the contact resides\"),\n contact_person_id: z.number().int().describe(\"The ID of the contact person to delete\"),\n}).describe(\"Path parameters for deleting a Moneybird contact person.\");\nexport const MoneybirdDeleteContactPersonOutput = z.record(z.string(), z.unknown()).describe(\"Empty response returned after successful deletion (HTTP 204 No Content).\");\n\nexport const moneybirdDeleteContactPerson = action(\"MONEYBIRD_DELETE_CONTACT_PERSON\", {\n slug: \"moneybird-delete-contact-person\",\n name: \"Delete Contact Person\",\n description: \"Tool to delete a contact person from a contact. Use after confirming the administration_id, contact_id, and contact_person_id.\",\n input: MoneybirdDeleteContactPersonInput,\n output: MoneybirdDeleteContactPersonOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAoCA,IAAAA,EAAE,OAAO;CACxD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qDAAqD;CAC3F,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iEAAiE;CAC9G,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC;AACvF,CAAC,CAAC,CAAC,SAAS,0DAA0D;AACtE,MAAa,qCAAqCA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,0EAA0E;AAEvK,MAAa,+BAA+BC,eAAAA,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -6,12 +6,24 @@ declare const MoneybirdDeleteContactPersonInput: z.ZodObject<{
6
6
  administration_id: z.ZodNumber;
7
7
  contact_person_id: z.ZodNumber;
8
8
  }, z.core.$strip>;
9
- declare const MoneybirdDeleteContactPersonOutput: z.ZodObject<{}, z.core.$strip>;
9
+ declare const MoneybirdDeleteContactPersonOutput: z.ZodRecord<z.ZodString, z.ZodUnknown>;
10
10
  declare const moneybirdDeleteContactPerson: import("@keystrokehq/action").WorkflowActionDefinition<{
11
11
  contact_id: number;
12
12
  administration_id: number;
13
13
  contact_person_id: number;
14
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
14
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"moneybird", z.ZodObject<{
15
+ connectionId: z.ZodString;
16
+ entityId: z.ZodString;
17
+ instanceId: z.ZodString;
18
+ }, z.core.$strip>, z.ZodObject<{
19
+ accessToken: z.ZodString;
20
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"moneybird", z.ZodObject<{
21
+ connectionId: z.ZodString;
22
+ entityId: z.ZodString;
23
+ instanceId: z.ZodString;
24
+ }, z.core.$strip>, z.ZodObject<{
25
+ accessToken: z.ZodString;
26
+ }, z.core.$strip>>]>;
15
27
  //#endregion
16
28
  export { moneybirdDeleteContactPerson };
17
29
  //# sourceMappingURL=delete-contact-person.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"delete-contact-person.d.cts","names":[],"sources":["../../src/actions/delete-contact-person.ts"],"mappings":";;;cAIa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;cAKjC,kCAAA,EAAkC,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAElC,4BAAA,gCAA4B,wBAAA"}
1
+ {"version":3,"file":"delete-contact-person.d.cts","names":[],"sources":["../../src/actions/delete-contact-person.ts"],"mappings":";;;cAIa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;cAKjC,kCAAA,EAAkC,CAAA,CAAA,SAAA,CAAA,CAAA,CAAA,SAAA,EAAA,CAAA,CAAA,UAAA;AAAA,cAElC,4BAAA,gCAA4B,wBAAA"}
@@ -6,12 +6,24 @@ declare const MoneybirdDeleteContactPersonInput: z.ZodObject<{
6
6
  administration_id: z.ZodNumber;
7
7
  contact_person_id: z.ZodNumber;
8
8
  }, z.core.$strip>;
9
- declare const MoneybirdDeleteContactPersonOutput: z.ZodObject<{}, z.core.$strip>;
9
+ declare const MoneybirdDeleteContactPersonOutput: z.ZodRecord<z.ZodString, z.ZodUnknown>;
10
10
  declare const moneybirdDeleteContactPerson: import("@keystrokehq/action").WorkflowActionDefinition<{
11
11
  contact_id: number;
12
12
  administration_id: number;
13
13
  contact_person_id: number;
14
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
14
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"moneybird", z.ZodObject<{
15
+ connectionId: z.ZodString;
16
+ entityId: z.ZodString;
17
+ instanceId: z.ZodString;
18
+ }, z.core.$strip>, z.ZodObject<{
19
+ accessToken: z.ZodString;
20
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"moneybird", z.ZodObject<{
21
+ connectionId: z.ZodString;
22
+ entityId: z.ZodString;
23
+ instanceId: z.ZodString;
24
+ }, z.core.$strip>, z.ZodObject<{
25
+ accessToken: z.ZodString;
26
+ }, z.core.$strip>>]>;
15
27
  //#endregion
16
28
  export { moneybirdDeleteContactPerson };
17
29
  //# sourceMappingURL=delete-contact-person.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"delete-contact-person.d.mts","names":[],"sources":["../../src/actions/delete-contact-person.ts"],"mappings":";;;cAIa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;cAKjC,kCAAA,EAAkC,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAElC,4BAAA,gCAA4B,wBAAA"}
1
+ {"version":3,"file":"delete-contact-person.d.mts","names":[],"sources":["../../src/actions/delete-contact-person.ts"],"mappings":";;;cAIa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;cAKjC,kCAAA,EAAkC,CAAA,CAAA,SAAA,CAAA,CAAA,CAAA,SAAA,EAAA,CAAA,CAAA,UAAA;AAAA,cAElC,4BAAA,gCAA4B,wBAAA"}
@@ -9,7 +9,7 @@ const moneybirdDeleteContactPerson = action("MONEYBIRD_DELETE_CONTACT_PERSON", {
9
9
  administration_id: z.number().int().describe("The Moneybird administration ID under which the contact resides"),
10
10
  contact_person_id: z.number().int().describe("The ID of the contact person to delete")
11
11
  }).describe("Path parameters for deleting a Moneybird contact person."),
12
- output: z.object({}).describe("Empty response returned after successful deletion (HTTP 204 No Content).")
12
+ output: z.record(z.string(), z.unknown()).describe("Empty response returned after successful deletion (HTTP 204 No Content).")
13
13
  });
14
14
  //#endregion
15
15
  export { moneybirdDeleteContactPerson };
@@ -1 +1 @@
1
- {"version":3,"file":"delete-contact-person.mjs","names":[],"sources":["../../src/actions/delete-contact-person.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoneybirdDeleteContactPersonInput = z.object({\n contact_id: z.number().int().describe(\"The ID of the contact from which to remove a person\"),\n administration_id: z.number().int().describe(\"The Moneybird administration ID under which the contact resides\"),\n contact_person_id: z.number().int().describe(\"The ID of the contact person to delete\"),\n}).describe(\"Path parameters for deleting a Moneybird contact person.\");\nexport const MoneybirdDeleteContactPersonOutput = z.object({}).describe(\"Empty response returned after successful deletion (HTTP 204 No Content).\");\n\nexport const moneybirdDeleteContactPerson = action(\"MONEYBIRD_DELETE_CONTACT_PERSON\", {\n slug: \"moneybird-delete-contact-person\",\n name: \"Delete Contact Person\",\n description: \"Tool to delete a contact person from a contact. Use after confirming the administration_id, contact_id, and contact_person_id.\",\n input: MoneybirdDeleteContactPersonInput,\n output: MoneybirdDeleteContactPersonOutput,\n});\n"],"mappings":";;AAWA,MAAa,+BAA+B,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAX+C,EAAE,OAAO;EACxD,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qDAAqD;EAC3F,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iEAAiE;EAC9G,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC;CACvF,CAAC,CAAC,CAAC,SAAS,0DAOH;CACP,QAPgD,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,0EAO9D;AACV,CAAC"}
1
+ {"version":3,"file":"delete-contact-person.mjs","names":[],"sources":["../../src/actions/delete-contact-person.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoneybirdDeleteContactPersonInput = z.object({\n contact_id: z.number().int().describe(\"The ID of the contact from which to remove a person\"),\n administration_id: z.number().int().describe(\"The Moneybird administration ID under which the contact resides\"),\n contact_person_id: z.number().int().describe(\"The ID of the contact person to delete\"),\n}).describe(\"Path parameters for deleting a Moneybird contact person.\");\nexport const MoneybirdDeleteContactPersonOutput = z.record(z.string(), z.unknown()).describe(\"Empty response returned after successful deletion (HTTP 204 No Content).\");\n\nexport const moneybirdDeleteContactPerson = action(\"MONEYBIRD_DELETE_CONTACT_PERSON\", {\n slug: \"moneybird-delete-contact-person\",\n name: \"Delete Contact Person\",\n description: \"Tool to delete a contact person from a contact. Use after confirming the administration_id, contact_id, and contact_person_id.\",\n input: MoneybirdDeleteContactPersonInput,\n output: MoneybirdDeleteContactPersonOutput,\n});\n"],"mappings":";;AAWA,MAAa,+BAA+B,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAX+C,EAAE,OAAO;EACxD,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qDAAqD;EAC3F,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iEAAiE;EAC9G,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC;CACvF,CAAC,CAAC,CAAC,SAAS,0DAOH;CACP,QAPgD,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,0EAOnF;AACV,CAAC"}
@@ -5,7 +5,7 @@ const MoneybirdDeleteContactInput = zod.z.object({
5
5
  contact_id: zod.z.number().int().describe("ID of the contact to delete"),
6
6
  administration_id: zod.z.number().int().describe("ID of the administration")
7
7
  }).describe("Request parameters for deleting a contact.");
8
- const MoneybirdDeleteContactOutput = zod.z.object({}).describe("Response schema for deleting a contact. Empty because the API returns no content.");
8
+ const MoneybirdDeleteContactOutput = zod.z.record(zod.z.string(), zod.z.unknown()).describe("Response schema for deleting a contact. Empty because the API returns no content.");
9
9
  const moneybirdDeleteContact = require_action.action("MONEYBIRD_DELETE_CONTACT", {
10
10
  slug: "moneybird-delete-contact",
11
11
  name: "Delete Contact",
@@ -1 +1 @@
1
- {"version":3,"file":"delete-contact.cjs","names":["z","action"],"sources":["../../src/actions/delete-contact.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoneybirdDeleteContactInput = z.object({\n contact_id: z.number().int().describe(\"ID of the contact to delete\"),\n administration_id: z.number().int().describe(\"ID of the administration\"),\n}).describe(\"Request parameters for deleting a contact.\");\nexport const MoneybirdDeleteContactOutput = z.object({}).describe(\"Response schema for deleting a contact. Empty because the API returns no content.\");\n\nexport const moneybirdDeleteContact = action(\"MONEYBIRD_DELETE_CONTACT\", {\n slug: \"moneybird-delete-contact\",\n name: \"Delete Contact\",\n description: \"Tool to delete a contact. Use after confirming that contact should be removed.\",\n input: MoneybirdDeleteContactInput,\n output: MoneybirdDeleteContactOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6BAA6B;CACnE,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B;AACzE,CAAC,CAAC,CAAC,SAAS,4CAA4C;AACxD,MAAa,+BAA+BA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,mFAAmF;AAErJ,MAAa,yBAAyBC,eAAAA,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"delete-contact.cjs","names":["z","action"],"sources":["../../src/actions/delete-contact.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoneybirdDeleteContactInput = z.object({\n contact_id: z.number().int().describe(\"ID of the contact to delete\"),\n administration_id: z.number().int().describe(\"ID of the administration\"),\n}).describe(\"Request parameters for deleting a contact.\");\nexport const MoneybirdDeleteContactOutput = z.record(z.string(), z.unknown()).describe(\"Response schema for deleting a contact. Empty because the API returns no content.\");\n\nexport const moneybirdDeleteContact = action(\"MONEYBIRD_DELETE_CONTACT\", {\n slug: \"moneybird-delete-contact\",\n name: \"Delete Contact\",\n description: \"Tool to delete a contact. Use after confirming that contact should be removed.\",\n input: MoneybirdDeleteContactInput,\n output: MoneybirdDeleteContactOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6BAA6B;CACnE,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B;AACzE,CAAC,CAAC,CAAC,SAAS,4CAA4C;AACxD,MAAa,+BAA+BA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mFAAmF;AAE1K,MAAa,yBAAyBC,eAAAA,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -5,11 +5,23 @@ declare const MoneybirdDeleteContactInput: z.ZodObject<{
5
5
  contact_id: z.ZodNumber;
6
6
  administration_id: z.ZodNumber;
7
7
  }, z.core.$strip>;
8
- declare const MoneybirdDeleteContactOutput: z.ZodObject<{}, z.core.$strip>;
8
+ declare const MoneybirdDeleteContactOutput: z.ZodRecord<z.ZodString, z.ZodUnknown>;
9
9
  declare const moneybirdDeleteContact: import("@keystrokehq/action").WorkflowActionDefinition<{
10
10
  contact_id: number;
11
11
  administration_id: number;
12
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
12
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"moneybird", z.ZodObject<{
13
+ connectionId: z.ZodString;
14
+ entityId: z.ZodString;
15
+ instanceId: z.ZodString;
16
+ }, z.core.$strip>, z.ZodObject<{
17
+ accessToken: z.ZodString;
18
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"moneybird", z.ZodObject<{
19
+ connectionId: z.ZodString;
20
+ entityId: z.ZodString;
21
+ instanceId: z.ZodString;
22
+ }, z.core.$strip>, z.ZodObject<{
23
+ accessToken: z.ZodString;
24
+ }, z.core.$strip>>]>;
13
25
  //#endregion
14
26
  export { moneybirdDeleteContact };
15
27
  //# sourceMappingURL=delete-contact.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"delete-contact.d.cts","names":[],"sources":["../../src/actions/delete-contact.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;cAI3B,4BAAA,EAA4B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAE5B,sBAAA,gCAAsB,wBAAA"}
1
+ {"version":3,"file":"delete-contact.d.cts","names":[],"sources":["../../src/actions/delete-contact.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;cAI3B,4BAAA,EAA4B,CAAA,CAAA,SAAA,CAAA,CAAA,CAAA,SAAA,EAAA,CAAA,CAAA,UAAA;AAAA,cAE5B,sBAAA,gCAAsB,wBAAA"}