@keystrokehq/finmei 0.1.0

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 (226) hide show
  1. package/README.md +17 -0
  2. package/dist/action.cjs +21 -0
  3. package/dist/action.cjs.map +1 -0
  4. package/dist/action.mjs +21 -0
  5. package/dist/action.mjs.map +1 -0
  6. package/dist/actions/create-expense.cjs +35 -0
  7. package/dist/actions/create-expense.cjs.map +1 -0
  8. package/dist/actions/create-expense.d.cts +9 -0
  9. package/dist/actions/create-expense.d.cts.map +1 -0
  10. package/dist/actions/create-expense.d.mts +9 -0
  11. package/dist/actions/create-expense.d.mts.map +1 -0
  12. package/dist/actions/create-expense.mjs +34 -0
  13. package/dist/actions/create-expense.mjs.map +1 -0
  14. package/dist/actions/create-invoice.cjs +139 -0
  15. package/dist/actions/create-invoice.cjs.map +1 -0
  16. package/dist/actions/create-invoice.d.cts +9 -0
  17. package/dist/actions/create-invoice.d.cts.map +1 -0
  18. package/dist/actions/create-invoice.d.mts +9 -0
  19. package/dist/actions/create-invoice.d.mts.map +1 -0
  20. package/dist/actions/create-invoice.mjs +138 -0
  21. package/dist/actions/create-invoice.mjs.map +1 -0
  22. package/dist/actions/delete-customer.cjs +16 -0
  23. package/dist/actions/delete-customer.cjs.map +1 -0
  24. package/dist/actions/delete-customer.d.cts +9 -0
  25. package/dist/actions/delete-customer.d.cts.map +1 -0
  26. package/dist/actions/delete-customer.d.mts +9 -0
  27. package/dist/actions/delete-customer.d.mts.map +1 -0
  28. package/dist/actions/delete-customer.mjs +13 -0
  29. package/dist/actions/delete-customer.mjs.map +1 -0
  30. package/dist/actions/delete-invoice.cjs +19 -0
  31. package/dist/actions/delete-invoice.cjs.map +1 -0
  32. package/dist/actions/delete-invoice.d.cts +9 -0
  33. package/dist/actions/delete-invoice.d.cts.map +1 -0
  34. package/dist/actions/delete-invoice.d.mts +9 -0
  35. package/dist/actions/delete-invoice.d.mts.map +1 -0
  36. package/dist/actions/delete-invoice.mjs +16 -0
  37. package/dist/actions/delete-invoice.mjs.map +1 -0
  38. package/dist/actions/delete-payment.cjs +16 -0
  39. package/dist/actions/delete-payment.cjs.map +1 -0
  40. package/dist/actions/delete-payment.d.cts +9 -0
  41. package/dist/actions/delete-payment.d.cts.map +1 -0
  42. package/dist/actions/delete-payment.d.mts +9 -0
  43. package/dist/actions/delete-payment.d.mts.map +1 -0
  44. package/dist/actions/delete-payment.mjs +13 -0
  45. package/dist/actions/delete-payment.mjs.map +1 -0
  46. package/dist/actions/delete-product.cjs +19 -0
  47. package/dist/actions/delete-product.cjs.map +1 -0
  48. package/dist/actions/delete-product.d.cts +9 -0
  49. package/dist/actions/delete-product.d.cts.map +1 -0
  50. package/dist/actions/delete-product.d.mts +9 -0
  51. package/dist/actions/delete-product.d.mts.map +1 -0
  52. package/dist/actions/delete-product.mjs +16 -0
  53. package/dist/actions/delete-product.mjs.map +1 -0
  54. package/dist/actions/download-expense-file.cjs +21 -0
  55. package/dist/actions/download-expense-file.cjs.map +1 -0
  56. package/dist/actions/download-expense-file.d.cts +9 -0
  57. package/dist/actions/download-expense-file.d.cts.map +1 -0
  58. package/dist/actions/download-expense-file.d.mts +9 -0
  59. package/dist/actions/download-expense-file.d.mts.map +1 -0
  60. package/dist/actions/download-expense-file.mjs +20 -0
  61. package/dist/actions/download-expense-file.mjs.map +1 -0
  62. package/dist/actions/download-invoice-pdf.cjs +21 -0
  63. package/dist/actions/download-invoice-pdf.cjs.map +1 -0
  64. package/dist/actions/download-invoice-pdf.d.cts +9 -0
  65. package/dist/actions/download-invoice-pdf.d.cts.map +1 -0
  66. package/dist/actions/download-invoice-pdf.d.mts +9 -0
  67. package/dist/actions/download-invoice-pdf.d.mts.map +1 -0
  68. package/dist/actions/download-invoice-pdf.mjs +20 -0
  69. package/dist/actions/download-invoice-pdf.mjs.map +1 -0
  70. package/dist/actions/get-expense.cjs +25 -0
  71. package/dist/actions/get-expense.cjs.map +1 -0
  72. package/dist/actions/get-expense.d.cts +9 -0
  73. package/dist/actions/get-expense.d.cts.map +1 -0
  74. package/dist/actions/get-expense.d.mts +9 -0
  75. package/dist/actions/get-expense.d.mts.map +1 -0
  76. package/dist/actions/get-expense.mjs +24 -0
  77. package/dist/actions/get-expense.mjs.map +1 -0
  78. package/dist/actions/get-invoice.cjs +70 -0
  79. package/dist/actions/get-invoice.cjs.map +1 -0
  80. package/dist/actions/get-invoice.d.cts +9 -0
  81. package/dist/actions/get-invoice.d.cts.map +1 -0
  82. package/dist/actions/get-invoice.d.mts +9 -0
  83. package/dist/actions/get-invoice.d.mts.map +1 -0
  84. package/dist/actions/get-invoice.mjs +69 -0
  85. package/dist/actions/get-invoice.mjs.map +1 -0
  86. package/dist/actions/get-payment.cjs +26 -0
  87. package/dist/actions/get-payment.cjs.map +1 -0
  88. package/dist/actions/get-payment.d.cts +9 -0
  89. package/dist/actions/get-payment.d.cts.map +1 -0
  90. package/dist/actions/get-payment.d.mts +9 -0
  91. package/dist/actions/get-payment.d.mts.map +1 -0
  92. package/dist/actions/get-payment.mjs +23 -0
  93. package/dist/actions/get-payment.mjs.map +1 -0
  94. package/dist/actions/get-product.cjs +24 -0
  95. package/dist/actions/get-product.cjs.map +1 -0
  96. package/dist/actions/get-product.d.cts +9 -0
  97. package/dist/actions/get-product.d.cts.map +1 -0
  98. package/dist/actions/get-product.d.mts +9 -0
  99. package/dist/actions/get-product.d.mts.map +1 -0
  100. package/dist/actions/get-product.mjs +21 -0
  101. package/dist/actions/get-product.mjs.map +1 -0
  102. package/dist/actions/get-profile.cjs +25 -0
  103. package/dist/actions/get-profile.cjs.map +1 -0
  104. package/dist/actions/get-profile.d.cts +9 -0
  105. package/dist/actions/get-profile.d.cts.map +1 -0
  106. package/dist/actions/get-profile.d.mts +9 -0
  107. package/dist/actions/get-profile.d.mts.map +1 -0
  108. package/dist/actions/get-profile.mjs +24 -0
  109. package/dist/actions/get-profile.mjs.map +1 -0
  110. package/dist/actions/index.cjs +49 -0
  111. package/dist/actions/index.d.cts +25 -0
  112. package/dist/actions/index.d.mts +25 -0
  113. package/dist/actions/index.mjs +25 -0
  114. package/dist/actions/list-currencies.cjs +21 -0
  115. package/dist/actions/list-currencies.cjs.map +1 -0
  116. package/dist/actions/list-currencies.d.cts +9 -0
  117. package/dist/actions/list-currencies.d.cts.map +1 -0
  118. package/dist/actions/list-currencies.d.mts +9 -0
  119. package/dist/actions/list-currencies.d.mts.map +1 -0
  120. package/dist/actions/list-currencies.mjs +20 -0
  121. package/dist/actions/list-currencies.mjs.map +1 -0
  122. package/dist/actions/list-customers.cjs +39 -0
  123. package/dist/actions/list-customers.cjs.map +1 -0
  124. package/dist/actions/list-customers.d.cts +9 -0
  125. package/dist/actions/list-customers.d.cts.map +1 -0
  126. package/dist/actions/list-customers.d.mts +9 -0
  127. package/dist/actions/list-customers.d.mts.map +1 -0
  128. package/dist/actions/list-customers.mjs +38 -0
  129. package/dist/actions/list-customers.mjs.map +1 -0
  130. package/dist/actions/list-expenses.cjs +40 -0
  131. package/dist/actions/list-expenses.cjs.map +1 -0
  132. package/dist/actions/list-expenses.d.cts +9 -0
  133. package/dist/actions/list-expenses.d.cts.map +1 -0
  134. package/dist/actions/list-expenses.d.mts +9 -0
  135. package/dist/actions/list-expenses.d.mts.map +1 -0
  136. package/dist/actions/list-expenses.mjs +39 -0
  137. package/dist/actions/list-expenses.mjs.map +1 -0
  138. package/dist/actions/list-invoices.cjs +86 -0
  139. package/dist/actions/list-invoices.cjs.map +1 -0
  140. package/dist/actions/list-invoices.d.cts +9 -0
  141. package/dist/actions/list-invoices.d.cts.map +1 -0
  142. package/dist/actions/list-invoices.d.mts +9 -0
  143. package/dist/actions/list-invoices.d.mts.map +1 -0
  144. package/dist/actions/list-invoices.mjs +85 -0
  145. package/dist/actions/list-invoices.mjs.map +1 -0
  146. package/dist/actions/list-payments.cjs +42 -0
  147. package/dist/actions/list-payments.cjs.map +1 -0
  148. package/dist/actions/list-payments.d.cts +9 -0
  149. package/dist/actions/list-payments.d.cts.map +1 -0
  150. package/dist/actions/list-payments.d.mts +9 -0
  151. package/dist/actions/list-payments.d.mts.map +1 -0
  152. package/dist/actions/list-payments.mjs +41 -0
  153. package/dist/actions/list-payments.mjs.map +1 -0
  154. package/dist/actions/list-products.cjs +39 -0
  155. package/dist/actions/list-products.cjs.map +1 -0
  156. package/dist/actions/list-products.d.cts +9 -0
  157. package/dist/actions/list-products.d.cts.map +1 -0
  158. package/dist/actions/list-products.d.mts +9 -0
  159. package/dist/actions/list-products.d.mts.map +1 -0
  160. package/dist/actions/list-products.mjs +38 -0
  161. package/dist/actions/list-products.mjs.map +1 -0
  162. package/dist/actions/update-customer.cjs +46 -0
  163. package/dist/actions/update-customer.cjs.map +1 -0
  164. package/dist/actions/update-customer.d.cts +9 -0
  165. package/dist/actions/update-customer.d.cts.map +1 -0
  166. package/dist/actions/update-customer.d.mts +9 -0
  167. package/dist/actions/update-customer.d.mts.map +1 -0
  168. package/dist/actions/update-customer.mjs +45 -0
  169. package/dist/actions/update-customer.mjs.map +1 -0
  170. package/dist/actions/update-expense-file.cjs +29 -0
  171. package/dist/actions/update-expense-file.cjs.map +1 -0
  172. package/dist/actions/update-expense-file.d.cts +9 -0
  173. package/dist/actions/update-expense-file.d.cts.map +1 -0
  174. package/dist/actions/update-expense-file.d.mts +9 -0
  175. package/dist/actions/update-expense-file.d.mts.map +1 -0
  176. package/dist/actions/update-expense-file.mjs +26 -0
  177. package/dist/actions/update-expense-file.mjs.map +1 -0
  178. package/dist/actions/update-expense.cjs +30 -0
  179. package/dist/actions/update-expense.cjs.map +1 -0
  180. package/dist/actions/update-expense.d.cts +9 -0
  181. package/dist/actions/update-expense.d.cts.map +1 -0
  182. package/dist/actions/update-expense.d.mts +9 -0
  183. package/dist/actions/update-expense.d.mts.map +1 -0
  184. package/dist/actions/update-expense.mjs +27 -0
  185. package/dist/actions/update-expense.mjs.map +1 -0
  186. package/dist/actions/update-invoice.cjs +121 -0
  187. package/dist/actions/update-invoice.cjs.map +1 -0
  188. package/dist/actions/update-invoice.d.cts +9 -0
  189. package/dist/actions/update-invoice.d.cts.map +1 -0
  190. package/dist/actions/update-invoice.d.mts +9 -0
  191. package/dist/actions/update-invoice.d.mts.map +1 -0
  192. package/dist/actions/update-invoice.mjs +120 -0
  193. package/dist/actions/update-invoice.mjs.map +1 -0
  194. package/dist/actions/update-product.cjs +30 -0
  195. package/dist/actions/update-product.cjs.map +1 -0
  196. package/dist/actions/update-product.d.cts +9 -0
  197. package/dist/actions/update-product.d.cts.map +1 -0
  198. package/dist/actions/update-product.d.mts +9 -0
  199. package/dist/actions/update-product.d.mts.map +1 -0
  200. package/dist/actions/update-product.mjs +27 -0
  201. package/dist/actions/update-product.mjs.map +1 -0
  202. package/dist/app.cjs +9 -0
  203. package/dist/app.cjs.map +1 -0
  204. package/dist/app.d.cts +5 -0
  205. package/dist/app.d.cts.map +1 -0
  206. package/dist/app.d.mts +5 -0
  207. package/dist/app.d.mts.map +1 -0
  208. package/dist/app.mjs +10 -0
  209. package/dist/app.mjs.map +1 -0
  210. package/dist/catalog.cjs +15 -0
  211. package/dist/catalog.cjs.map +1 -0
  212. package/dist/catalog.d.cts +14 -0
  213. package/dist/catalog.d.cts.map +1 -0
  214. package/dist/catalog.d.mts +14 -0
  215. package/dist/catalog.d.mts.map +1 -0
  216. package/dist/catalog.mjs +15 -0
  217. package/dist/catalog.mjs.map +1 -0
  218. package/dist/execute.cjs +18 -0
  219. package/dist/execute.cjs.map +1 -0
  220. package/dist/execute.mjs +18 -0
  221. package/dist/execute.mjs.map +1 -0
  222. package/dist/index.cjs +54 -0
  223. package/dist/index.d.cts +27 -0
  224. package/dist/index.d.mts +27 -0
  225. package/dist/index.mjs +28 -0
  226. package/package.json +49 -0
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/update-expense-file.d.ts
4
+ declare const FinmeiUpdateExpenseFileInput: z.ZodTypeAny;
5
+ declare const FinmeiUpdateExpenseFileOutput: z.ZodTypeAny;
6
+ declare const finmeiUpdateExpenseFile: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { finmeiUpdateExpenseFile };
9
+ //# sourceMappingURL=update-expense-file.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-expense-file.d.mts","names":[],"sources":["../../src/actions/update-expense-file.ts"],"mappings":";;;cAIa,4BAAA,EAA8B,CAAA,CAAE,UAOmJ;AAAA,cACnL,6BAAA,EAA+B,CAAA,CAAE,UAMoD;AAAA,cAErF,uBAAA,gCAAuB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,26 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ const finmeiUpdateExpenseFile = action("FINMEI_UPDATE_EXPENSE_FILE", {
4
+ slug: "finmei-update-expense-file",
5
+ name: "Update Expense File",
6
+ description: "Updates the file attachment of an existing expense in Finmei. Use this action when you need to attach or replace a receipt/invoice file for an expense. This endpoint is specifically for updating the file only - use the Update Expense action for updating other expense fields like amount, date, or description. The file is uploaded using multipart/form-data content type and typically should be a PDF or image file of the bill/receipt.",
7
+ input: z.object({
8
+ id: z.string().describe("Unique identifier of the expense to update the file for. Must be a valid existing expense ID."),
9
+ file: z.object({
10
+ name: z.string().describe("The filename that will be used when uploading the file to the destination service"),
11
+ s3key: z.string().describe("The S3 key of a publicly accessible file, typically returned from a previous download action that stored the file in S3. This key references an existing file that can be uploaded to another service."),
12
+ mimetype: z.string().describe("The MIME type of the file")
13
+ }).describe("File to upload as the expense attachment (usually PDF or image file of the bill).")
14
+ }).describe("Request model for updating the file attachment of an existing expense.\nThis endpoint is used solely for updating the file. Use Update Expense endpoint for updating form fields."),
15
+ output: z.object({
16
+ id: z.string().describe("Unique identifier of the expense").nullable().optional(),
17
+ message: z.string().describe("Success message from the API").nullable().optional(),
18
+ file_url: z.string().describe("URL of the uploaded file attachment").nullable().optional(),
19
+ file_name: z.string().describe("Name of the uploaded file").nullable().optional(),
20
+ updated_at: z.union([z.string(), z.number().int()]).nullable().optional()
21
+ }).describe("Response model containing the updated expense details after successful file upload.")
22
+ });
23
+ //#endregion
24
+ export { finmeiUpdateExpenseFile };
25
+
26
+ //# sourceMappingURL=update-expense-file.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-expense-file.mjs","names":[],"sources":["../../src/actions/update-expense-file.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiUpdateExpenseFileInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the expense to update the file for. Must be a valid existing expense ID.\"),\n file: z.object({\n name: z.string().describe(\"The filename that will be used when uploading the file to the destination service\"),\n s3key: z.string().describe(\"The S3 key of a publicly accessible file, typically returned from a previous download action that stored the file in S3. This key references an existing file that can be uploaded to another service.\"),\n mimetype: z.string().describe(\"The MIME type of the file\"),\n}).describe(\"File to upload as the expense attachment (usually PDF or image file of the bill).\"),\n}).describe(\"Request model for updating the file attachment of an existing expense.\\nThis endpoint is used solely for updating the file. Use Update Expense endpoint for updating form fields.\");\nexport const FinmeiUpdateExpenseFileOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the expense\").nullable().optional(),\n message: z.string().describe(\"Success message from the API\").nullable().optional(),\n file_url: z.string().describe(\"URL of the uploaded file attachment\").nullable().optional(),\n file_name: z.string().describe(\"Name of the uploaded file\").nullable().optional(),\n updated_at: z.union([z.string(), z.number().int()]).nullable().optional(),\n}).describe(\"Response model containing the updated expense details after successful file upload.\");\n\nexport const finmeiUpdateExpenseFile = action(\"FINMEI_UPDATE_EXPENSE_FILE\", {\n slug: \"finmei-update-expense-file\",\n name: \"Update Expense File\",\n description: \"Updates the file attachment of an existing expense in Finmei. Use this action when you need to attach or replace a receipt/invoice file for an expense. This endpoint is specifically for updating the file only - use the Update Expense action for updating other expense fields like amount, date, or description. The file is uploaded using multipart/form-data content type and typically should be a PDF or image file of the bill/receipt.\",\n input: FinmeiUpdateExpenseFileInput,\n output: FinmeiUpdateExpenseFileOutput,\n});\n"],"mappings":";;AAoBA,MAAa,0BAA0B,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OApBwD,EAAE,OAAO;EACjE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,+FAA+F;EACvH,MAAM,EAAE,OAAO;GACf,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF;GAC7G,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wMAAwM;GACnO,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;EAC3D,CAAC,CAAC,CAAC,SAAS,mFAAmF;CAC/F,CAAC,CAAC,CAAC,SAAS,mLAaH;CACP,QAbyD,EAAE,OAAO;EAClE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChF,YAAY,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1E,CAAC,CAAC,CAAC,SAAS,qFAOF;AACV,CAAC"}
@@ -0,0 +1,30 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/update-expense.ts
4
+ const FinmeiUpdateExpenseInput = zod.z.object({
5
+ id: zod.z.string().describe("Unique identifier of the expense to update. Must be a valid existing expense ID."),
6
+ date: zod.z.string().describe("Date of the expense in YYYY-MM-DD format. This field is required."),
7
+ total: zod.z.number().describe("Total amount of the expense. Must be non-negative. This field is required."),
8
+ seller: zod.z.string().describe("Name of the seller from invoice. This field is required."),
9
+ currency: zod.z.string().describe("Uppercase three letter currency code (ISO 4217 format). Example: USD, EUR, GBP. This field is required.")
10
+ }).describe("Request model for updating an existing expense's fields");
11
+ const FinmeiUpdateExpenseOutput = zod.z.object({
12
+ id: zod.z.string().describe("Unique identifier of the expense"),
13
+ date: zod.z.string().describe("Date of the expense after the update"),
14
+ total: zod.z.number().describe("Total amount of the expense after the update"),
15
+ seller: zod.z.string().describe("Seller name after the update"),
16
+ currency: zod.z.string().describe("Currency code of the expense after the update"),
17
+ created_at: zod.z.string().describe("ISO8601 timestamp when the expense was originally created").nullable().optional(),
18
+ updated_at: zod.z.string().describe("ISO8601 timestamp when the expense was last updated").nullable().optional()
19
+ }).describe("Response model containing the updated expense details after a successful update");
20
+ const finmeiUpdateExpense = require_action.action("FINMEI_UPDATE_EXPENSE", {
21
+ slug: "finmei-update-expense",
22
+ name: "Update Expense",
23
+ description: "Tool to update an existing expense's fields including date, total, currency, and seller. Use when you need to modify expense details. To update the invoice/bill file, use the Update Expense File endpoint instead.",
24
+ input: FinmeiUpdateExpenseInput,
25
+ output: FinmeiUpdateExpenseOutput
26
+ });
27
+ //#endregion
28
+ exports.finmeiUpdateExpense = finmeiUpdateExpense;
29
+
30
+ //# sourceMappingURL=update-expense.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-expense.cjs","names":["z","action"],"sources":["../../src/actions/update-expense.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiUpdateExpenseInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the expense to update. Must be a valid existing expense ID.\"),\n date: z.string().describe(\"Date of the expense in YYYY-MM-DD format. This field is required.\"),\n total: z.number().describe(\"Total amount of the expense. Must be non-negative. This field is required.\"),\n seller: z.string().describe(\"Name of the seller from invoice. This field is required.\"),\n currency: z.string().describe(\"Uppercase three letter currency code (ISO 4217 format). Example: USD, EUR, GBP. This field is required.\"),\n}).describe(\"Request model for updating an existing expense's fields\");\nexport const FinmeiUpdateExpenseOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the expense\"),\n date: z.string().describe(\"Date of the expense after the update\"),\n total: z.number().describe(\"Total amount of the expense after the update\"),\n seller: z.string().describe(\"Seller name after the update\"),\n currency: z.string().describe(\"Currency code of the expense after the update\"),\n created_at: z.string().describe(\"ISO8601 timestamp when the expense was originally created\").nullable().optional(),\n updated_at: z.string().describe(\"ISO8601 timestamp when the expense was last updated\").nullable().optional(),\n}).describe(\"Response model containing the updated expense details after a successful update\");\n\nexport const finmeiUpdateExpense = action(\"FINMEI_UPDATE_EXPENSE\", {\n slug: \"finmei-update-expense\",\n name: \"Update Expense\",\n description: \"Tool to update an existing expense's fields including date, total, currency, and seller. Use when you need to modify expense details. To update the invoice/bill file, use the Update Expense File endpoint instead.\",\n input: FinmeiUpdateExpenseInput,\n output: FinmeiUpdateExpenseOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAAyCA,IAAAA,EAAE,OAAO;CAC7D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kFAAkF;CAC1G,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE;CAC7F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E;CACvG,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D;CACtF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yGAAyG;AACzI,CAAC,CAAC,CAAC,SAAS,yDAAyD;AACrE,MAAa,4BAA0CA,IAAAA,EAAE,OAAO;CAC9D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;CAC1D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CAChE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;CACzE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;CAC1D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;CAC7E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjH,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7G,CAAC,CAAC,CAAC,SAAS,iFAAiF;AAE7F,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/update-expense.d.ts
4
+ declare const FinmeiUpdateExpenseInput: z.ZodTypeAny;
5
+ declare const FinmeiUpdateExpenseOutput: z.ZodTypeAny;
6
+ declare const finmeiUpdateExpense: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { finmeiUpdateExpense };
9
+ //# sourceMappingURL=update-expense.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-expense.d.cts","names":[],"sources":["../../src/actions/update-expense.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAM6B;AAAA,cACzD,yBAAA,EAA2B,CAAA,CAAE,UAQoD;AAAA,cAEjF,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/update-expense.d.ts
4
+ declare const FinmeiUpdateExpenseInput: z.ZodTypeAny;
5
+ declare const FinmeiUpdateExpenseOutput: z.ZodTypeAny;
6
+ declare const finmeiUpdateExpense: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { finmeiUpdateExpense };
9
+ //# sourceMappingURL=update-expense.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-expense.d.mts","names":[],"sources":["../../src/actions/update-expense.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAM6B;AAAA,cACzD,yBAAA,EAA2B,CAAA,CAAE,UAQoD;AAAA,cAEjF,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,27 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ const finmeiUpdateExpense = action("FINMEI_UPDATE_EXPENSE", {
4
+ slug: "finmei-update-expense",
5
+ name: "Update Expense",
6
+ description: "Tool to update an existing expense's fields including date, total, currency, and seller. Use when you need to modify expense details. To update the invoice/bill file, use the Update Expense File endpoint instead.",
7
+ input: z.object({
8
+ id: z.string().describe("Unique identifier of the expense to update. Must be a valid existing expense ID."),
9
+ date: z.string().describe("Date of the expense in YYYY-MM-DD format. This field is required."),
10
+ total: z.number().describe("Total amount of the expense. Must be non-negative. This field is required."),
11
+ seller: z.string().describe("Name of the seller from invoice. This field is required."),
12
+ currency: z.string().describe("Uppercase three letter currency code (ISO 4217 format). Example: USD, EUR, GBP. This field is required.")
13
+ }).describe("Request model for updating an existing expense's fields"),
14
+ output: z.object({
15
+ id: z.string().describe("Unique identifier of the expense"),
16
+ date: z.string().describe("Date of the expense after the update"),
17
+ total: z.number().describe("Total amount of the expense after the update"),
18
+ seller: z.string().describe("Seller name after the update"),
19
+ currency: z.string().describe("Currency code of the expense after the update"),
20
+ created_at: z.string().describe("ISO8601 timestamp when the expense was originally created").nullable().optional(),
21
+ updated_at: z.string().describe("ISO8601 timestamp when the expense was last updated").nullable().optional()
22
+ }).describe("Response model containing the updated expense details after a successful update")
23
+ });
24
+ //#endregion
25
+ export { finmeiUpdateExpense };
26
+
27
+ //# sourceMappingURL=update-expense.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-expense.mjs","names":[],"sources":["../../src/actions/update-expense.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiUpdateExpenseInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the expense to update. Must be a valid existing expense ID.\"),\n date: z.string().describe(\"Date of the expense in YYYY-MM-DD format. This field is required.\"),\n total: z.number().describe(\"Total amount of the expense. Must be non-negative. This field is required.\"),\n seller: z.string().describe(\"Name of the seller from invoice. This field is required.\"),\n currency: z.string().describe(\"Uppercase three letter currency code (ISO 4217 format). Example: USD, EUR, GBP. This field is required.\"),\n}).describe(\"Request model for updating an existing expense's fields\");\nexport const FinmeiUpdateExpenseOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the expense\"),\n date: z.string().describe(\"Date of the expense after the update\"),\n total: z.number().describe(\"Total amount of the expense after the update\"),\n seller: z.string().describe(\"Seller name after the update\"),\n currency: z.string().describe(\"Currency code of the expense after the update\"),\n created_at: z.string().describe(\"ISO8601 timestamp when the expense was originally created\").nullable().optional(),\n updated_at: z.string().describe(\"ISO8601 timestamp when the expense was last updated\").nullable().optional(),\n}).describe(\"Response model containing the updated expense details after a successful update\");\n\nexport const finmeiUpdateExpense = action(\"FINMEI_UPDATE_EXPENSE\", {\n slug: \"finmei-update-expense\",\n name: \"Update Expense\",\n description: \"Tool to update an existing expense's fields including date, total, currency, and seller. Use when you need to modify expense details. To update the invoice/bill file, use the Update Expense File endpoint instead.\",\n input: FinmeiUpdateExpenseInput,\n output: FinmeiUpdateExpenseOutput,\n});\n"],"mappings":";;AAqBA,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OArBoD,EAAE,OAAO;EAC7D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,kFAAkF;EAC1G,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE;EAC7F,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E;EACvG,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D;EACtF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,yGAAyG;CACzI,CAAC,CAAC,CAAC,SAAS,yDAeH;CACP,QAfqD,EAAE,OAAO;EAC9D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;EAC1D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;EAChE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;EACzE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;EAC1D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;EAC7E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjH,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,CAAC,CAAC,CAAC,SAAS,iFAOF;AACV,CAAC"}
@@ -0,0 +1,121 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/update-invoice.ts
4
+ const FinmeiUpdateInvoiceInput = zod.z.object({
5
+ code: zod.z.string().describe("Optional custom invoice code or reference").optional(),
6
+ type: zod.z.enum([
7
+ "regular_invoice",
8
+ "vat_invoice",
9
+ "preliminary_invoice",
10
+ "preliminary_vat_invoice",
11
+ "credit_invoice",
12
+ "credit_vat_invoice"
13
+ ]).describe("Invoice type. Valid values: 'regular_invoice', 'vat_invoice', 'preliminary_invoice', 'preliminary_vat_invoice', 'credit_invoice', 'credit_vat_invoice'").optional(),
14
+ buyer: zod.z.object({
15
+ name: zod.z.string().describe("Generic name (legacy/compat)").optional(),
16
+ type: zod.z.enum(["person", "company"]).describe("Buyer type as required by the API"),
17
+ email: zod.z.string().describe("Buyer email").optional(),
18
+ phone: zod.z.string().describe("Contact phone").optional(),
19
+ address: zod.z.string().describe("Buyer address").optional(),
20
+ vat_code: zod.z.string().describe("VAT code").optional(),
21
+ last_name: zod.z.string().describe("Buyer last name (person)").optional(),
22
+ first_name: zod.z.string().describe("Buyer first name (person)").optional(),
23
+ company_code: zod.z.string().describe("Company registration code").optional(),
24
+ company_name: zod.z.string().describe("Company name (company)").optional(),
25
+ individual_tax_id: zod.z.string().describe("Individual tax ID").optional()
26
+ }).describe("Buyer object with customer information").optional(),
27
+ notes: zod.z.string().describe("Optional notes to appear on the invoice").optional(),
28
+ seller: zod.z.object({
29
+ email: zod.z.string().describe("Seller email").optional(),
30
+ phone: zod.z.string().describe("Contact phone").optional(),
31
+ address: zod.z.string().describe("Seller address").optional(),
32
+ vat_code: zod.z.string().describe("VAT code").optional(),
33
+ company_code: zod.z.string().describe("Company registration code").optional(),
34
+ company_name: zod.z.string().describe("Seller company name")
35
+ }).describe("Seller object if not using default").optional(),
36
+ series: zod.z.string().describe("Series code/prefix for the invoice").optional(),
37
+ currency: zod.z.string().describe("ISO 4217 three-letter currency code").optional(),
38
+ due_date: zod.z.string().describe("Payment due date (alias). Format: YYYY-MM-DD").optional(),
39
+ products: zod.z.array(zod.z.object({
40
+ name: zod.z.string().describe("Product or service name"),
41
+ price: zod.z.number().describe("Unit price for this product"),
42
+ units: zod.z.string().describe("Units for the product (e.g., pcs, hours, months)").optional(),
43
+ quantity: zod.z.number().describe("Quantity for this product"),
44
+ vat_percentage: zod.z.number().describe("VAT percentage to apply (0-100)").optional()
45
+ })).describe("Products array with line items for the invoice").optional(),
46
+ invoice_id: zod.z.string().describe("Unique identifier of the invoice to update"),
47
+ invoice_date: zod.z.string().describe("Date on the invoice. Format: YYYY-MM-DD").optional(),
48
+ pay_until_date: zod.z.string().describe("Payment due date. Format: YYYY-MM-DD").optional(),
49
+ use_default_seller_info: zod.z.boolean().describe("If true, API will use default seller info instead of requiring seller object").optional()
50
+ });
51
+ const FinmeiUpdateInvoice_BuyerResponseSchema = zod.z.object({
52
+ type: zod.z.string().describe("Buyer type (individual, company)").nullable().optional(),
53
+ email: zod.z.string().describe("Contact email").nullable().optional(),
54
+ phone: zod.z.string().describe("Contact phone").nullable().optional(),
55
+ address: zod.z.string().describe("Buyer address").nullable().optional(),
56
+ vat_code: zod.z.string().describe("VAT code").nullable().optional(),
57
+ last_name: zod.z.string().describe("Last name (for individuals)").nullable().optional(),
58
+ first_name: zod.z.string().describe("First name (for individuals)").nullable().optional(),
59
+ company_code: zod.z.string().describe("Company registration code").nullable().optional(),
60
+ company_name: zod.z.string().describe("Company name (for companies)").nullable().optional(),
61
+ individual_tax_id: zod.z.string().describe("Individual tax ID").nullable().optional()
62
+ });
63
+ const FinmeiUpdateInvoice_InvoiceItemResponseSchema = zod.z.object({
64
+ id: zod.z.string().describe("Item unique identifier").nullable().optional(),
65
+ name: zod.z.string().describe("Product or service name").nullable().optional(),
66
+ price: zod.z.number().describe("Unit price").nullable().optional(),
67
+ units: zod.z.string().describe("Units (e.g., pcs, hours)").nullable().optional(),
68
+ quantity: zod.z.number().describe("Quantity").nullable().optional(),
69
+ vat_percentage: zod.z.number().describe("VAT percentage applied").nullable().optional()
70
+ });
71
+ const FinmeiUpdateInvoice_SellerResponseSchema = zod.z.object({
72
+ email: zod.z.string().describe("Contact email").nullable().optional(),
73
+ phone: zod.z.string().describe("Contact phone").nullable().optional(),
74
+ address: zod.z.string().describe("Business address").nullable().optional(),
75
+ vat_code: zod.z.string().describe("VAT code").nullable().optional(),
76
+ last_name: zod.z.string().describe("Last name (for individuals)").nullable().optional(),
77
+ first_name: zod.z.string().describe("First name (for individuals)").nullable().optional(),
78
+ company_code: zod.z.string().describe("Company registration code").nullable().optional(),
79
+ company_name: zod.z.string().describe("Company name (for companies)").nullable().optional(),
80
+ business_type: zod.z.string().describe("Type of business (company, individual)").nullable().optional(),
81
+ custom_fields: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("Custom fields").nullable().optional(),
82
+ individual_tax_id: zod.z.string().describe("Individual tax ID").nullable().optional()
83
+ });
84
+ const FinmeiUpdateInvoiceOutput = zod.z.object({
85
+ id: zod.z.string().describe("Unique identifier of the updated invoice").nullable().optional(),
86
+ vat: zod.z.number().describe("Total VAT amount").nullable().optional(),
87
+ code: zod.z.string().describe("Invoice code or reference").nullable().optional(),
88
+ buyer: FinmeiUpdateInvoice_BuyerResponseSchema.nullable().optional(),
89
+ items: zod.z.array(FinmeiUpdateInvoice_InvoiceItemResponseSchema).describe("Line items on the invoice").nullable().optional(),
90
+ notes: zod.z.string().describe("Notes included on the invoice").nullable().optional(),
91
+ seller: FinmeiUpdateInvoice_SellerResponseSchema.nullable().optional(),
92
+ series: zod.z.string().describe("Invoice series/prefix").nullable().optional(),
93
+ status: zod.z.string().describe("Status of the invoice").nullable().optional(),
94
+ currency: zod.z.string().describe("Currency code of the invoice").nullable().optional(),
95
+ language: zod.z.string().describe("Invoice language").nullable().optional(),
96
+ subtotal: zod.z.number().describe("Subtotal amount before VAT").nullable().optional(),
97
+ amount_due: zod.z.number().describe("Total amount due on the invoice").nullable().optional(),
98
+ created_at: zod.z.union([zod.z.string(), zod.z.number().int()]).nullable().optional(),
99
+ share_link: zod.z.string().describe("Public link to share the invoice").nullable().optional(),
100
+ updated_at: zod.z.union([zod.z.string(), zod.z.number().int()]).nullable().optional(),
101
+ amount_paid: zod.z.number().describe("Total amount paid on the invoice").nullable().optional(),
102
+ business_id: zod.z.string().describe("Business identifier").nullable().optional(),
103
+ invoice_date: zod.z.string().describe("Date the invoice was issued").nullable().optional(),
104
+ invoice_type: zod.z.string().describe("Type of the invoice").nullable().optional(),
105
+ invoice_number: zod.z.string().describe("Invoice number").nullable().optional(),
106
+ pay_until_date: zod.z.string().describe("Payment due date").nullable().optional(),
107
+ payment_status: zod.z.string().describe("Payment status of the invoice").nullable().optional(),
108
+ total_incl_vat: zod.z.number().describe("Total amount including VAT").nullable().optional(),
109
+ payment_options: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("Available payment options").nullable().optional()
110
+ });
111
+ const finmeiUpdateInvoice = require_action.action("FINMEI_UPDATE_INVOICE", {
112
+ slug: "finmei-update-invoice",
113
+ name: "Update Invoice",
114
+ description: "Tool to update an existing invoice in Finmei. Use when you need to modify invoice details such as buyer information, products, dates, or currency.",
115
+ input: FinmeiUpdateInvoiceInput,
116
+ output: FinmeiUpdateInvoiceOutput
117
+ });
118
+ //#endregion
119
+ exports.finmeiUpdateInvoice = finmeiUpdateInvoice;
120
+
121
+ //# sourceMappingURL=update-invoice.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-invoice.cjs","names":["z","action"],"sources":["../../src/actions/update-invoice.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiUpdateInvoiceInput: z.ZodTypeAny = z.object({\n code: z.string().describe(\"Optional custom invoice code or reference\").optional(),\n type: z.enum([\"regular_invoice\", \"vat_invoice\", \"preliminary_invoice\", \"preliminary_vat_invoice\", \"credit_invoice\", \"credit_vat_invoice\"]).describe(\"Invoice type. Valid values: 'regular_invoice', 'vat_invoice', 'preliminary_invoice', 'preliminary_vat_invoice', 'credit_invoice', 'credit_vat_invoice'\").optional(),\n buyer: z.object({\n name: z.string().describe(\"Generic name (legacy/compat)\").optional(),\n type: z.enum([\"person\", \"company\"]).describe(\"Buyer type as required by the API\"),\n email: z.string().describe(\"Buyer email\").optional(),\n phone: z.string().describe(\"Contact phone\").optional(),\n address: z.string().describe(\"Buyer address\").optional(),\n vat_code: z.string().describe(\"VAT code\").optional(),\n last_name: z.string().describe(\"Buyer last name (person)\").optional(),\n first_name: z.string().describe(\"Buyer first name (person)\").optional(),\n company_code: z.string().describe(\"Company registration code\").optional(),\n company_name: z.string().describe(\"Company name (company)\").optional(),\n individual_tax_id: z.string().describe(\"Individual tax ID\").optional(),\n}).describe(\"Buyer object with customer information\").optional(),\n notes: z.string().describe(\"Optional notes to appear on the invoice\").optional(),\n seller: z.object({\n email: z.string().describe(\"Seller email\").optional(),\n phone: z.string().describe(\"Contact phone\").optional(),\n address: z.string().describe(\"Seller address\").optional(),\n vat_code: z.string().describe(\"VAT code\").optional(),\n company_code: z.string().describe(\"Company registration code\").optional(),\n company_name: z.string().describe(\"Seller company name\"),\n}).describe(\"Seller object if not using default\").optional(),\n series: z.string().describe(\"Series code/prefix for the invoice\").optional(),\n currency: z.string().describe(\"ISO 4217 three-letter currency code\").optional(),\n due_date: z.string().describe(\"Payment due date (alias). Format: YYYY-MM-DD\").optional(),\n products: z.array(z.object({\n name: z.string().describe(\"Product or service name\"),\n price: z.number().describe(\"Unit price for this product\"),\n units: z.string().describe(\"Units for the product (e.g., pcs, hours, months)\").optional(),\n quantity: z.number().describe(\"Quantity for this product\"),\n vat_percentage: z.number().describe(\"VAT percentage to apply (0-100)\").optional(),\n})).describe(\"Products array with line items for the invoice\").optional(),\n invoice_id: z.string().describe(\"Unique identifier of the invoice to update\"),\n invoice_date: z.string().describe(\"Date on the invoice. Format: YYYY-MM-DD\").optional(),\n pay_until_date: z.string().describe(\"Payment due date. Format: YYYY-MM-DD\").optional(),\n use_default_seller_info: z.boolean().describe(\"If true, API will use default seller info instead of requiring seller object\").optional(),\n});\nconst FinmeiUpdateInvoice_BuyerResponseSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Buyer type (individual, company)\").nullable().optional(),\n email: z.string().describe(\"Contact email\").nullable().optional(),\n phone: z.string().describe(\"Contact phone\").nullable().optional(),\n address: z.string().describe(\"Buyer address\").nullable().optional(),\n vat_code: z.string().describe(\"VAT code\").nullable().optional(),\n last_name: z.string().describe(\"Last name (for individuals)\").nullable().optional(),\n first_name: z.string().describe(\"First name (for individuals)\").nullable().optional(),\n company_code: z.string().describe(\"Company registration code\").nullable().optional(),\n company_name: z.string().describe(\"Company name (for companies)\").nullable().optional(),\n individual_tax_id: z.string().describe(\"Individual tax ID\").nullable().optional(),\n});\nconst FinmeiUpdateInvoice_InvoiceItemResponseSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Item unique identifier\").nullable().optional(),\n name: z.string().describe(\"Product or service name\").nullable().optional(),\n price: z.number().describe(\"Unit price\").nullable().optional(),\n units: z.string().describe(\"Units (e.g., pcs, hours)\").nullable().optional(),\n quantity: z.number().describe(\"Quantity\").nullable().optional(),\n vat_percentage: z.number().describe(\"VAT percentage applied\").nullable().optional(),\n});\nconst FinmeiUpdateInvoice_SellerResponseSchema: z.ZodTypeAny = z.object({\n email: z.string().describe(\"Contact email\").nullable().optional(),\n phone: z.string().describe(\"Contact phone\").nullable().optional(),\n address: z.string().describe(\"Business address\").nullable().optional(),\n vat_code: z.string().describe(\"VAT code\").nullable().optional(),\n last_name: z.string().describe(\"Last name (for individuals)\").nullable().optional(),\n first_name: z.string().describe(\"First name (for individuals)\").nullable().optional(),\n company_code: z.string().describe(\"Company registration code\").nullable().optional(),\n company_name: z.string().describe(\"Company name (for companies)\").nullable().optional(),\n business_type: z.string().describe(\"Type of business (company, individual)\").nullable().optional(),\n custom_fields: z.array(z.record(z.string(), z.unknown())).describe(\"Custom fields\").nullable().optional(),\n individual_tax_id: z.string().describe(\"Individual tax ID\").nullable().optional(),\n});\nexport const FinmeiUpdateInvoiceOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the updated invoice\").nullable().optional(),\n vat: z.number().describe(\"Total VAT amount\").nullable().optional(),\n code: z.string().describe(\"Invoice code or reference\").nullable().optional(),\n buyer: FinmeiUpdateInvoice_BuyerResponseSchema.nullable().optional(),\n items: z.array(FinmeiUpdateInvoice_InvoiceItemResponseSchema).describe(\"Line items on the invoice\").nullable().optional(),\n notes: z.string().describe(\"Notes included on the invoice\").nullable().optional(),\n seller: FinmeiUpdateInvoice_SellerResponseSchema.nullable().optional(),\n series: z.string().describe(\"Invoice series/prefix\").nullable().optional(),\n status: z.string().describe(\"Status of the invoice\").nullable().optional(),\n currency: z.string().describe(\"Currency code of the invoice\").nullable().optional(),\n language: z.string().describe(\"Invoice language\").nullable().optional(),\n subtotal: z.number().describe(\"Subtotal amount before VAT\").nullable().optional(),\n amount_due: z.number().describe(\"Total amount due on the invoice\").nullable().optional(),\n created_at: z.union([z.string(), z.number().int()]).nullable().optional(),\n share_link: z.string().describe(\"Public link to share the invoice\").nullable().optional(),\n updated_at: z.union([z.string(), z.number().int()]).nullable().optional(),\n amount_paid: z.number().describe(\"Total amount paid on the invoice\").nullable().optional(),\n business_id: z.string().describe(\"Business identifier\").nullable().optional(),\n invoice_date: z.string().describe(\"Date the invoice was issued\").nullable().optional(),\n invoice_type: z.string().describe(\"Type of the invoice\").nullable().optional(),\n invoice_number: z.string().describe(\"Invoice number\").nullable().optional(),\n pay_until_date: z.string().describe(\"Payment due date\").nullable().optional(),\n payment_status: z.string().describe(\"Payment status of the invoice\").nullable().optional(),\n total_incl_vat: z.number().describe(\"Total amount including VAT\").nullable().optional(),\n payment_options: z.array(z.record(z.string(), z.unknown())).describe(\"Available payment options\").nullable().optional(),\n});\n\nexport const finmeiUpdateInvoice = action(\"FINMEI_UPDATE_INVOICE\", {\n slug: \"finmei-update-invoice\",\n name: \"Update Invoice\",\n description: \"Tool to update an existing invoice in Finmei. Use when you need to modify invoice details such as buyer information, products, dates, or currency.\",\n input: FinmeiUpdateInvoiceInput,\n output: FinmeiUpdateInvoiceOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAAyCA,IAAAA,EAAE,OAAO;CAC7D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;C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AAS,CAAC,CAAC,SAAS;CAC7E,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1E,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5E,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,iBAAiBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxH,CAAC;AAED,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/update-invoice.d.ts
4
+ declare const FinmeiUpdateInvoiceInput: z.ZodTypeAny;
5
+ declare const FinmeiUpdateInvoiceOutput: z.ZodTypeAny;
6
+ declare const finmeiUpdateInvoice: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { finmeiUpdateInvoice };
9
+ //# sourceMappingURL=update-invoice.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-invoice.d.cts","names":[],"sources":["../../src/actions/update-invoice.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAuCvC;AAAA,cAkCW,yBAAA,EAA2B,CAAA,CAAE,UA0BxC;AAAA,cAEW,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/update-invoice.d.ts
4
+ declare const FinmeiUpdateInvoiceInput: z.ZodTypeAny;
5
+ declare const FinmeiUpdateInvoiceOutput: z.ZodTypeAny;
6
+ declare const finmeiUpdateInvoice: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { finmeiUpdateInvoice };
9
+ //# sourceMappingURL=update-invoice.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-invoice.d.mts","names":[],"sources":["../../src/actions/update-invoice.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAuCvC;AAAA,cAkCW,yBAAA,EAA2B,CAAA,CAAE,UA0BxC;AAAA,cAEW,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,120 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/update-invoice.ts
4
+ const FinmeiUpdateInvoiceInput = z.object({
5
+ code: z.string().describe("Optional custom invoice code or reference").optional(),
6
+ type: z.enum([
7
+ "regular_invoice",
8
+ "vat_invoice",
9
+ "preliminary_invoice",
10
+ "preliminary_vat_invoice",
11
+ "credit_invoice",
12
+ "credit_vat_invoice"
13
+ ]).describe("Invoice type. Valid values: 'regular_invoice', 'vat_invoice', 'preliminary_invoice', 'preliminary_vat_invoice', 'credit_invoice', 'credit_vat_invoice'").optional(),
14
+ buyer: z.object({
15
+ name: z.string().describe("Generic name (legacy/compat)").optional(),
16
+ type: z.enum(["person", "company"]).describe("Buyer type as required by the API"),
17
+ email: z.string().describe("Buyer email").optional(),
18
+ phone: z.string().describe("Contact phone").optional(),
19
+ address: z.string().describe("Buyer address").optional(),
20
+ vat_code: z.string().describe("VAT code").optional(),
21
+ last_name: z.string().describe("Buyer last name (person)").optional(),
22
+ first_name: z.string().describe("Buyer first name (person)").optional(),
23
+ company_code: z.string().describe("Company registration code").optional(),
24
+ company_name: z.string().describe("Company name (company)").optional(),
25
+ individual_tax_id: z.string().describe("Individual tax ID").optional()
26
+ }).describe("Buyer object with customer information").optional(),
27
+ notes: z.string().describe("Optional notes to appear on the invoice").optional(),
28
+ seller: z.object({
29
+ email: z.string().describe("Seller email").optional(),
30
+ phone: z.string().describe("Contact phone").optional(),
31
+ address: z.string().describe("Seller address").optional(),
32
+ vat_code: z.string().describe("VAT code").optional(),
33
+ company_code: z.string().describe("Company registration code").optional(),
34
+ company_name: z.string().describe("Seller company name")
35
+ }).describe("Seller object if not using default").optional(),
36
+ series: z.string().describe("Series code/prefix for the invoice").optional(),
37
+ currency: z.string().describe("ISO 4217 three-letter currency code").optional(),
38
+ due_date: z.string().describe("Payment due date (alias). Format: YYYY-MM-DD").optional(),
39
+ products: z.array(z.object({
40
+ name: z.string().describe("Product or service name"),
41
+ price: z.number().describe("Unit price for this product"),
42
+ units: z.string().describe("Units for the product (e.g., pcs, hours, months)").optional(),
43
+ quantity: z.number().describe("Quantity for this product"),
44
+ vat_percentage: z.number().describe("VAT percentage to apply (0-100)").optional()
45
+ })).describe("Products array with line items for the invoice").optional(),
46
+ invoice_id: z.string().describe("Unique identifier of the invoice to update"),
47
+ invoice_date: z.string().describe("Date on the invoice. Format: YYYY-MM-DD").optional(),
48
+ pay_until_date: z.string().describe("Payment due date. Format: YYYY-MM-DD").optional(),
49
+ use_default_seller_info: z.boolean().describe("If true, API will use default seller info instead of requiring seller object").optional()
50
+ });
51
+ const FinmeiUpdateInvoice_BuyerResponseSchema = z.object({
52
+ type: z.string().describe("Buyer type (individual, company)").nullable().optional(),
53
+ email: z.string().describe("Contact email").nullable().optional(),
54
+ phone: z.string().describe("Contact phone").nullable().optional(),
55
+ address: z.string().describe("Buyer address").nullable().optional(),
56
+ vat_code: z.string().describe("VAT code").nullable().optional(),
57
+ last_name: z.string().describe("Last name (for individuals)").nullable().optional(),
58
+ first_name: z.string().describe("First name (for individuals)").nullable().optional(),
59
+ company_code: z.string().describe("Company registration code").nullable().optional(),
60
+ company_name: z.string().describe("Company name (for companies)").nullable().optional(),
61
+ individual_tax_id: z.string().describe("Individual tax ID").nullable().optional()
62
+ });
63
+ const FinmeiUpdateInvoice_InvoiceItemResponseSchema = z.object({
64
+ id: z.string().describe("Item unique identifier").nullable().optional(),
65
+ name: z.string().describe("Product or service name").nullable().optional(),
66
+ price: z.number().describe("Unit price").nullable().optional(),
67
+ units: z.string().describe("Units (e.g., pcs, hours)").nullable().optional(),
68
+ quantity: z.number().describe("Quantity").nullable().optional(),
69
+ vat_percentage: z.number().describe("VAT percentage applied").nullable().optional()
70
+ });
71
+ const FinmeiUpdateInvoice_SellerResponseSchema = z.object({
72
+ email: z.string().describe("Contact email").nullable().optional(),
73
+ phone: z.string().describe("Contact phone").nullable().optional(),
74
+ address: z.string().describe("Business address").nullable().optional(),
75
+ vat_code: z.string().describe("VAT code").nullable().optional(),
76
+ last_name: z.string().describe("Last name (for individuals)").nullable().optional(),
77
+ first_name: z.string().describe("First name (for individuals)").nullable().optional(),
78
+ company_code: z.string().describe("Company registration code").nullable().optional(),
79
+ company_name: z.string().describe("Company name (for companies)").nullable().optional(),
80
+ business_type: z.string().describe("Type of business (company, individual)").nullable().optional(),
81
+ custom_fields: z.array(z.record(z.string(), z.unknown())).describe("Custom fields").nullable().optional(),
82
+ individual_tax_id: z.string().describe("Individual tax ID").nullable().optional()
83
+ });
84
+ const finmeiUpdateInvoice = action("FINMEI_UPDATE_INVOICE", {
85
+ slug: "finmei-update-invoice",
86
+ name: "Update Invoice",
87
+ description: "Tool to update an existing invoice in Finmei. Use when you need to modify invoice details such as buyer information, products, dates, or currency.",
88
+ input: FinmeiUpdateInvoiceInput,
89
+ output: z.object({
90
+ id: z.string().describe("Unique identifier of the updated invoice").nullable().optional(),
91
+ vat: z.number().describe("Total VAT amount").nullable().optional(),
92
+ code: z.string().describe("Invoice code or reference").nullable().optional(),
93
+ buyer: FinmeiUpdateInvoice_BuyerResponseSchema.nullable().optional(),
94
+ items: z.array(FinmeiUpdateInvoice_InvoiceItemResponseSchema).describe("Line items on the invoice").nullable().optional(),
95
+ notes: z.string().describe("Notes included on the invoice").nullable().optional(),
96
+ seller: FinmeiUpdateInvoice_SellerResponseSchema.nullable().optional(),
97
+ series: z.string().describe("Invoice series/prefix").nullable().optional(),
98
+ status: z.string().describe("Status of the invoice").nullable().optional(),
99
+ currency: z.string().describe("Currency code of the invoice").nullable().optional(),
100
+ language: z.string().describe("Invoice language").nullable().optional(),
101
+ subtotal: z.number().describe("Subtotal amount before VAT").nullable().optional(),
102
+ amount_due: z.number().describe("Total amount due on the invoice").nullable().optional(),
103
+ created_at: z.union([z.string(), z.number().int()]).nullable().optional(),
104
+ share_link: z.string().describe("Public link to share the invoice").nullable().optional(),
105
+ updated_at: z.union([z.string(), z.number().int()]).nullable().optional(),
106
+ amount_paid: z.number().describe("Total amount paid on the invoice").nullable().optional(),
107
+ business_id: z.string().describe("Business identifier").nullable().optional(),
108
+ invoice_date: z.string().describe("Date the invoice was issued").nullable().optional(),
109
+ invoice_type: z.string().describe("Type of the invoice").nullable().optional(),
110
+ invoice_number: z.string().describe("Invoice number").nullable().optional(),
111
+ pay_until_date: z.string().describe("Payment due date").nullable().optional(),
112
+ payment_status: z.string().describe("Payment status of the invoice").nullable().optional(),
113
+ total_incl_vat: z.number().describe("Total amount including VAT").nullable().optional(),
114
+ payment_options: z.array(z.record(z.string(), z.unknown())).describe("Available payment options").nullable().optional()
115
+ })
116
+ });
117
+ //#endregion
118
+ export { finmeiUpdateInvoice };
119
+
120
+ //# sourceMappingURL=update-invoice.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-invoice.mjs","names":[],"sources":["../../src/actions/update-invoice.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiUpdateInvoiceInput: z.ZodTypeAny = z.object({\n code: z.string().describe(\"Optional custom invoice code or reference\").optional(),\n type: z.enum([\"regular_invoice\", \"vat_invoice\", \"preliminary_invoice\", \"preliminary_vat_invoice\", \"credit_invoice\", \"credit_vat_invoice\"]).describe(\"Invoice type. Valid values: 'regular_invoice', 'vat_invoice', 'preliminary_invoice', 'preliminary_vat_invoice', 'credit_invoice', 'credit_vat_invoice'\").optional(),\n buyer: z.object({\n name: z.string().describe(\"Generic name (legacy/compat)\").optional(),\n type: z.enum([\"person\", \"company\"]).describe(\"Buyer type as required by the API\"),\n email: z.string().describe(\"Buyer email\").optional(),\n phone: z.string().describe(\"Contact phone\").optional(),\n address: z.string().describe(\"Buyer address\").optional(),\n vat_code: z.string().describe(\"VAT code\").optional(),\n last_name: z.string().describe(\"Buyer last name (person)\").optional(),\n first_name: z.string().describe(\"Buyer first name (person)\").optional(),\n company_code: z.string().describe(\"Company registration code\").optional(),\n company_name: z.string().describe(\"Company name (company)\").optional(),\n individual_tax_id: z.string().describe(\"Individual tax ID\").optional(),\n}).describe(\"Buyer object with customer information\").optional(),\n notes: z.string().describe(\"Optional notes to appear on the invoice\").optional(),\n seller: z.object({\n email: z.string().describe(\"Seller email\").optional(),\n phone: z.string().describe(\"Contact phone\").optional(),\n address: z.string().describe(\"Seller address\").optional(),\n vat_code: z.string().describe(\"VAT code\").optional(),\n company_code: z.string().describe(\"Company registration code\").optional(),\n company_name: z.string().describe(\"Seller company name\"),\n}).describe(\"Seller object if not using default\").optional(),\n series: z.string().describe(\"Series code/prefix for the invoice\").optional(),\n currency: z.string().describe(\"ISO 4217 three-letter currency code\").optional(),\n due_date: z.string().describe(\"Payment due date (alias). Format: YYYY-MM-DD\").optional(),\n products: z.array(z.object({\n name: z.string().describe(\"Product or service name\"),\n price: z.number().describe(\"Unit price for this product\"),\n units: z.string().describe(\"Units for the product (e.g., pcs, hours, months)\").optional(),\n quantity: z.number().describe(\"Quantity for this product\"),\n vat_percentage: z.number().describe(\"VAT percentage to apply (0-100)\").optional(),\n})).describe(\"Products array with line items for the invoice\").optional(),\n invoice_id: z.string().describe(\"Unique identifier of the invoice to update\"),\n invoice_date: z.string().describe(\"Date on the invoice. Format: YYYY-MM-DD\").optional(),\n pay_until_date: z.string().describe(\"Payment due date. Format: YYYY-MM-DD\").optional(),\n use_default_seller_info: z.boolean().describe(\"If true, API will use default seller info instead of requiring seller object\").optional(),\n});\nconst FinmeiUpdateInvoice_BuyerResponseSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Buyer type (individual, company)\").nullable().optional(),\n email: z.string().describe(\"Contact email\").nullable().optional(),\n phone: z.string().describe(\"Contact phone\").nullable().optional(),\n address: z.string().describe(\"Buyer address\").nullable().optional(),\n vat_code: z.string().describe(\"VAT code\").nullable().optional(),\n last_name: z.string().describe(\"Last name (for individuals)\").nullable().optional(),\n first_name: z.string().describe(\"First name (for individuals)\").nullable().optional(),\n company_code: z.string().describe(\"Company registration code\").nullable().optional(),\n company_name: z.string().describe(\"Company name (for companies)\").nullable().optional(),\n individual_tax_id: z.string().describe(\"Individual tax ID\").nullable().optional(),\n});\nconst FinmeiUpdateInvoice_InvoiceItemResponseSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Item unique identifier\").nullable().optional(),\n name: z.string().describe(\"Product or service name\").nullable().optional(),\n price: z.number().describe(\"Unit price\").nullable().optional(),\n units: z.string().describe(\"Units (e.g., pcs, hours)\").nullable().optional(),\n quantity: z.number().describe(\"Quantity\").nullable().optional(),\n vat_percentage: z.number().describe(\"VAT percentage applied\").nullable().optional(),\n});\nconst FinmeiUpdateInvoice_SellerResponseSchema: z.ZodTypeAny = z.object({\n email: z.string().describe(\"Contact email\").nullable().optional(),\n phone: z.string().describe(\"Contact phone\").nullable().optional(),\n address: z.string().describe(\"Business address\").nullable().optional(),\n vat_code: z.string().describe(\"VAT code\").nullable().optional(),\n last_name: z.string().describe(\"Last name (for individuals)\").nullable().optional(),\n first_name: z.string().describe(\"First name (for individuals)\").nullable().optional(),\n company_code: z.string().describe(\"Company registration code\").nullable().optional(),\n company_name: z.string().describe(\"Company name (for companies)\").nullable().optional(),\n business_type: z.string().describe(\"Type of business (company, individual)\").nullable().optional(),\n custom_fields: z.array(z.record(z.string(), z.unknown())).describe(\"Custom fields\").nullable().optional(),\n individual_tax_id: z.string().describe(\"Individual tax ID\").nullable().optional(),\n});\nexport const FinmeiUpdateInvoiceOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the updated invoice\").nullable().optional(),\n vat: z.number().describe(\"Total VAT amount\").nullable().optional(),\n code: z.string().describe(\"Invoice code or reference\").nullable().optional(),\n buyer: FinmeiUpdateInvoice_BuyerResponseSchema.nullable().optional(),\n items: z.array(FinmeiUpdateInvoice_InvoiceItemResponseSchema).describe(\"Line items on the invoice\").nullable().optional(),\n notes: z.string().describe(\"Notes included on the invoice\").nullable().optional(),\n seller: FinmeiUpdateInvoice_SellerResponseSchema.nullable().optional(),\n series: z.string().describe(\"Invoice series/prefix\").nullable().optional(),\n status: z.string().describe(\"Status of the invoice\").nullable().optional(),\n currency: z.string().describe(\"Currency code of the invoice\").nullable().optional(),\n language: z.string().describe(\"Invoice language\").nullable().optional(),\n subtotal: z.number().describe(\"Subtotal amount before VAT\").nullable().optional(),\n amount_due: z.number().describe(\"Total amount due on the invoice\").nullable().optional(),\n created_at: z.union([z.string(), z.number().int()]).nullable().optional(),\n share_link: z.string().describe(\"Public link to share the invoice\").nullable().optional(),\n updated_at: z.union([z.string(), z.number().int()]).nullable().optional(),\n amount_paid: z.number().describe(\"Total amount paid on the invoice\").nullable().optional(),\n business_id: z.string().describe(\"Business identifier\").nullable().optional(),\n invoice_date: z.string().describe(\"Date the invoice was issued\").nullable().optional(),\n invoice_type: z.string().describe(\"Type of the invoice\").nullable().optional(),\n invoice_number: z.string().describe(\"Invoice number\").nullable().optional(),\n pay_until_date: z.string().describe(\"Payment due date\").nullable().optional(),\n payment_status: z.string().describe(\"Payment status of the invoice\").nullable().optional(),\n total_incl_vat: z.number().describe(\"Total amount including VAT\").nullable().optional(),\n payment_options: z.array(z.record(z.string(), z.unknown())).describe(\"Available payment options\").nullable().optional(),\n});\n\nexport const finmeiUpdateInvoice = action(\"FINMEI_UPDATE_INVOICE\", {\n slug: \"finmei-update-invoice\",\n name: \"Update Invoice\",\n description: \"Tool to update an existing invoice in Finmei. Use when you need to modify invoice details such as buyer information, products, dates, or currency.\",\n input: FinmeiUpdateInvoiceInput,\n output: FinmeiUpdateInvoiceOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAAyC,EAAE,OAAO;CAC7D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAChF,MAAM,EAAE,KAAK;EAAC;EAAmB;EAAe;EAAuB;EAA2B;EAAkB;CAAoB,CAAC,CAAC,CAAC,SAAS,wJAAwJ,CAAC,CAAC,SAAS;CACvT,OAAO,EAAE,OAAO;EAChB,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;EACnE,MAAM,EAAE,KAAK,CAAC,UAAU,SAAS,CAAC,CAAC,CAAC,SAAS,mCAAmC;EAChF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS;EACnD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS;EACrD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS;EACvD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,UAAU,CAAC,CAAC,SAAS;EACnD,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;EACpE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC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B,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5E,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzF,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtF,iBAAiB,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxH,CAOU;AACV,CAAC"}
@@ -0,0 +1,30 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/update-product.ts
4
+ const FinmeiUpdateProductInput = zod.z.object({
5
+ name: zod.z.string().describe("Updated name for the product. If provided, replaces the existing product name.").optional(),
6
+ price: zod.z.number().describe("Updated price for the product in the specified currency. Must be non-negative. If provided, replaces the existing price.").optional(),
7
+ currency: zod.z.string().describe("Updated currency code for the product price (ISO 4217 format, e.g., USD, EUR, GBP). If provided, replaces the existing currency.").optional(),
8
+ product_id: zod.z.string().describe("Unique identifier of the product to update. Must be a valid existing product ID."),
9
+ description: zod.z.string().describe("Updated description for the product. If provided, replaces the existing description.").optional()
10
+ }).describe("Request model for updating an existing product's details in the Finmei product catalog.\nAt least one field (name, description, price, or currency) must be provided.");
11
+ const FinmeiUpdateProductOutput = zod.z.object({
12
+ id: zod.z.string().describe("Unique identifier of the product"),
13
+ name: zod.z.string().describe("Current name of the product after the update"),
14
+ price: zod.z.number().describe("Current price of the product after the update"),
15
+ currency: zod.z.string().describe("Current currency code of the product price after the update (e.g., USD, EUR)"),
16
+ created_at: zod.z.string().describe("ISO8601 timestamp when the product was originally created"),
17
+ updated_at: zod.z.string().describe("ISO8601 timestamp when the product was last updated"),
18
+ description: zod.z.string().describe("Current description of the product after the update").nullable().optional()
19
+ }).describe("Response model containing the complete updated product details after a successful update.\nAll fields reflect the current state of the product after applying the updates.");
20
+ const finmeiUpdateProduct = require_action.action("FINMEI_UPDATE_PRODUCT", {
21
+ slug: "finmei-update-product",
22
+ name: "Update Product",
23
+ description: "Updates an existing product in the Finmei product catalog. Use this action when you need to modify product details such as name, description, price, or currency. You must provide the product ID and at least one field to update. The action returns the complete updated product details. Prerequisites: - The product must already exist in the system (obtain product_id from List Products action) - At least one update field (name, description, price, or currency) must be provided Note: This action will fail if the product doesn't exist or if the Finmei API instance doesn't support product management endpoints.",
24
+ input: FinmeiUpdateProductInput,
25
+ output: FinmeiUpdateProductOutput
26
+ });
27
+ //#endregion
28
+ exports.finmeiUpdateProduct = finmeiUpdateProduct;
29
+
30
+ //# sourceMappingURL=update-product.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-product.cjs","names":["z","action"],"sources":["../../src/actions/update-product.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiUpdateProductInput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Updated name for the product. If provided, replaces the existing product name.\").optional(),\n price: z.number().describe(\"Updated price for the product in the specified currency. Must be non-negative. If provided, replaces the existing price.\").optional(),\n currency: z.string().describe(\"Updated currency code for the product price (ISO 4217 format, e.g., USD, EUR, GBP). If provided, replaces the existing currency.\").optional(),\n product_id: z.string().describe(\"Unique identifier of the product to update. Must be a valid existing product ID.\"),\n description: z.string().describe(\"Updated description for the product. If provided, replaces the existing description.\").optional(),\n}).describe(\"Request model for updating an existing product's details in the Finmei product catalog.\\nAt least one field (name, description, price, or currency) must be provided.\");\nexport const FinmeiUpdateProductOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the product\"),\n name: z.string().describe(\"Current name of the product after the update\"),\n price: z.number().describe(\"Current price of the product after the update\"),\n currency: z.string().describe(\"Current currency code of the product price after the update (e.g., USD, EUR)\"),\n created_at: z.string().describe(\"ISO8601 timestamp when the product was originally created\"),\n updated_at: z.string().describe(\"ISO8601 timestamp when the product was last updated\"),\n description: z.string().describe(\"Current description of the product after the update\").nullable().optional(),\n}).describe(\"Response model containing the complete updated product details after a successful update.\\nAll fields reflect the current state of the product after applying the updates.\");\n\nexport const finmeiUpdateProduct = action(\"FINMEI_UPDATE_PRODUCT\", {\n slug: \"finmei-update-product\",\n name: \"Update Product\",\n description: \"Updates an existing product in the Finmei product catalog. Use this action when you need to modify product details such as name, description, price, or currency. You must provide the product ID and at least one field to update. The action returns the complete updated product details. Prerequisites: - The product must already exist in the system (obtain product_id from List Products action) - At least one update field (name, description, price, or currency) must be provided Note: This action will fail if the product doesn't exist or if the Finmei API instance doesn't support product management endpoints.\",\n input: FinmeiUpdateProductInput,\n output: FinmeiUpdateProductOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAAyCA,IAAAA,EAAE,OAAO;CAC7D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS;CACrH,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0HAA0H,CAAC,CAAC,SAAS;CAChK,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kIAAkI,CAAC,CAAC,SAAS;CAC3K,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kFAAkF;CAClH,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS;AACpI,CAAC,CAAC,CAAC,SAAS,uKAAuK;AACnL,MAAa,4BAA0CA,IAAAA,EAAE,OAAO;CAC9D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;CAC1D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;CACxE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;CAC1E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E;CAC5G,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D;CAC3F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD;CACrF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9G,CAAC,CAAC,CAAC,SAAS,4KAA4K;AAExL,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/update-product.d.ts
4
+ declare const FinmeiUpdateProductInput: z.ZodTypeAny;
5
+ declare const FinmeiUpdateProductOutput: z.ZodTypeAny;
6
+ declare const finmeiUpdateProduct: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { finmeiUpdateProduct };
9
+ //# sourceMappingURL=update-product.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-product.d.cts","names":[],"sources":["../../src/actions/update-product.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAM2I;AAAA,cACvK,yBAAA,EAA2B,CAAA,CAAE,UAQ+I;AAAA,cAE5K,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/update-product.d.ts
4
+ declare const FinmeiUpdateProductInput: z.ZodTypeAny;
5
+ declare const FinmeiUpdateProductOutput: z.ZodTypeAny;
6
+ declare const finmeiUpdateProduct: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { finmeiUpdateProduct };
9
+ //# sourceMappingURL=update-product.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-product.d.mts","names":[],"sources":["../../src/actions/update-product.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAM2I;AAAA,cACvK,yBAAA,EAA2B,CAAA,CAAE,UAQ+I;AAAA,cAE5K,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}