@keystrokehq/finmei 0.1.4 → 0.1.6

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 (205) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/create-expense.cjs +1 -0
  4. package/dist/actions/create-expense.cjs.map +1 -1
  5. package/dist/actions/create-expense.d.cts +3 -11
  6. package/dist/actions/create-expense.d.cts.map +1 -1
  7. package/dist/actions/create-expense.d.mts +3 -11
  8. package/dist/actions/create-expense.d.mts.map +1 -1
  9. package/dist/actions/create-expense.mjs +1 -0
  10. package/dist/actions/create-expense.mjs.map +1 -1
  11. package/dist/actions/create-invoice.cjs +1 -0
  12. package/dist/actions/create-invoice.cjs.map +1 -1
  13. package/dist/actions/create-invoice.d.cts +3 -45
  14. package/dist/actions/create-invoice.d.cts.map +1 -1
  15. package/dist/actions/create-invoice.d.mts +3 -45
  16. package/dist/actions/create-invoice.d.mts.map +1 -1
  17. package/dist/actions/create-invoice.mjs +1 -0
  18. package/dist/actions/create-invoice.mjs.map +1 -1
  19. package/dist/actions/delete-customer.cjs +1 -0
  20. package/dist/actions/delete-customer.cjs.map +1 -1
  21. package/dist/actions/delete-customer.d.cts +3 -3
  22. package/dist/actions/delete-customer.d.cts.map +1 -1
  23. package/dist/actions/delete-customer.d.mts +3 -3
  24. package/dist/actions/delete-customer.d.mts.map +1 -1
  25. package/dist/actions/delete-customer.mjs +1 -0
  26. package/dist/actions/delete-customer.mjs.map +1 -1
  27. package/dist/actions/delete-invoice.cjs +1 -0
  28. package/dist/actions/delete-invoice.cjs.map +1 -1
  29. package/dist/actions/delete-invoice.d.cts +3 -3
  30. package/dist/actions/delete-invoice.d.cts.map +1 -1
  31. package/dist/actions/delete-invoice.d.mts +3 -3
  32. package/dist/actions/delete-invoice.d.mts.map +1 -1
  33. package/dist/actions/delete-invoice.mjs +1 -0
  34. package/dist/actions/delete-invoice.mjs.map +1 -1
  35. package/dist/actions/delete-payment.cjs +1 -0
  36. package/dist/actions/delete-payment.cjs.map +1 -1
  37. package/dist/actions/delete-payment.d.cts +3 -3
  38. package/dist/actions/delete-payment.d.cts.map +1 -1
  39. package/dist/actions/delete-payment.d.mts +3 -3
  40. package/dist/actions/delete-payment.d.mts.map +1 -1
  41. package/dist/actions/delete-payment.mjs +1 -0
  42. package/dist/actions/delete-payment.mjs.map +1 -1
  43. package/dist/actions/delete-product.cjs +1 -0
  44. package/dist/actions/delete-product.cjs.map +1 -1
  45. package/dist/actions/delete-product.d.cts +3 -3
  46. package/dist/actions/delete-product.d.cts.map +1 -1
  47. package/dist/actions/delete-product.d.mts +3 -3
  48. package/dist/actions/delete-product.d.mts.map +1 -1
  49. package/dist/actions/delete-product.mjs +1 -0
  50. package/dist/actions/delete-product.mjs.map +1 -1
  51. package/dist/actions/download-expense-file.cjs +1 -0
  52. package/dist/actions/download-expense-file.cjs.map +1 -1
  53. package/dist/actions/download-expense-file.d.cts +3 -3
  54. package/dist/actions/download-expense-file.d.cts.map +1 -1
  55. package/dist/actions/download-expense-file.d.mts +3 -3
  56. package/dist/actions/download-expense-file.d.mts.map +1 -1
  57. package/dist/actions/download-expense-file.mjs +1 -0
  58. package/dist/actions/download-expense-file.mjs.map +1 -1
  59. package/dist/actions/download-invoice-pdf.cjs +1 -0
  60. package/dist/actions/download-invoice-pdf.cjs.map +1 -1
  61. package/dist/actions/download-invoice-pdf.d.cts +3 -3
  62. package/dist/actions/download-invoice-pdf.d.cts.map +1 -1
  63. package/dist/actions/download-invoice-pdf.d.mts +3 -3
  64. package/dist/actions/download-invoice-pdf.d.mts.map +1 -1
  65. package/dist/actions/download-invoice-pdf.mjs +1 -0
  66. package/dist/actions/download-invoice-pdf.mjs.map +1 -1
  67. package/dist/actions/get-expense.cjs +1 -0
  68. package/dist/actions/get-expense.cjs.map +1 -1
  69. package/dist/actions/get-expense.d.cts +3 -3
  70. package/dist/actions/get-expense.d.cts.map +1 -1
  71. package/dist/actions/get-expense.d.mts +3 -3
  72. package/dist/actions/get-expense.d.mts.map +1 -1
  73. package/dist/actions/get-expense.mjs +1 -0
  74. package/dist/actions/get-expense.mjs.map +1 -1
  75. package/dist/actions/get-invoice.cjs +1 -0
  76. package/dist/actions/get-invoice.cjs.map +1 -1
  77. package/dist/actions/get-invoice.d.cts +3 -3
  78. package/dist/actions/get-invoice.d.cts.map +1 -1
  79. package/dist/actions/get-invoice.d.mts +3 -3
  80. package/dist/actions/get-invoice.d.mts.map +1 -1
  81. package/dist/actions/get-invoice.mjs +1 -0
  82. package/dist/actions/get-invoice.mjs.map +1 -1
  83. package/dist/actions/get-payment.cjs +1 -0
  84. package/dist/actions/get-payment.cjs.map +1 -1
  85. package/dist/actions/get-payment.d.cts +3 -3
  86. package/dist/actions/get-payment.d.cts.map +1 -1
  87. package/dist/actions/get-payment.d.mts +3 -3
  88. package/dist/actions/get-payment.d.mts.map +1 -1
  89. package/dist/actions/get-payment.mjs +1 -0
  90. package/dist/actions/get-payment.mjs.map +1 -1
  91. package/dist/actions/get-product.cjs +1 -0
  92. package/dist/actions/get-product.cjs.map +1 -1
  93. package/dist/actions/get-product.d.cts +3 -3
  94. package/dist/actions/get-product.d.cts.map +1 -1
  95. package/dist/actions/get-product.d.mts +3 -3
  96. package/dist/actions/get-product.d.mts.map +1 -1
  97. package/dist/actions/get-product.mjs +1 -0
  98. package/dist/actions/get-product.mjs.map +1 -1
  99. package/dist/actions/get-profile.cjs +1 -0
  100. package/dist/actions/get-profile.cjs.map +1 -1
  101. package/dist/actions/get-profile.d.cts +3 -1
  102. package/dist/actions/get-profile.d.cts.map +1 -1
  103. package/dist/actions/get-profile.d.mts +3 -1
  104. package/dist/actions/get-profile.d.mts.map +1 -1
  105. package/dist/actions/get-profile.mjs +1 -0
  106. package/dist/actions/get-profile.mjs.map +1 -1
  107. package/dist/actions/list-currencies.cjs +1 -0
  108. package/dist/actions/list-currencies.cjs.map +1 -1
  109. package/dist/actions/list-currencies.d.cts +3 -1
  110. package/dist/actions/list-currencies.d.cts.map +1 -1
  111. package/dist/actions/list-currencies.d.mts +3 -1
  112. package/dist/actions/list-currencies.d.mts.map +1 -1
  113. package/dist/actions/list-currencies.mjs +1 -0
  114. package/dist/actions/list-currencies.mjs.map +1 -1
  115. package/dist/actions/list-customers.cjs +1 -0
  116. package/dist/actions/list-customers.cjs.map +1 -1
  117. package/dist/actions/list-customers.d.cts +3 -6
  118. package/dist/actions/list-customers.d.cts.map +1 -1
  119. package/dist/actions/list-customers.d.mts +3 -6
  120. package/dist/actions/list-customers.d.mts.map +1 -1
  121. package/dist/actions/list-customers.mjs +1 -0
  122. package/dist/actions/list-customers.mjs.map +1 -1
  123. package/dist/actions/list-expenses.cjs +1 -0
  124. package/dist/actions/list-expenses.cjs.map +1 -1
  125. package/dist/actions/list-expenses.d.cts +3 -4
  126. package/dist/actions/list-expenses.d.cts.map +1 -1
  127. package/dist/actions/list-expenses.d.mts +3 -4
  128. package/dist/actions/list-expenses.d.mts.map +1 -1
  129. package/dist/actions/list-expenses.mjs +1 -0
  130. package/dist/actions/list-expenses.mjs.map +1 -1
  131. package/dist/actions/list-invoices.cjs +1 -0
  132. package/dist/actions/list-invoices.cjs.map +1 -1
  133. package/dist/actions/list-invoices.d.cts +3 -4
  134. package/dist/actions/list-invoices.d.cts.map +1 -1
  135. package/dist/actions/list-invoices.d.mts +3 -4
  136. package/dist/actions/list-invoices.d.mts.map +1 -1
  137. package/dist/actions/list-invoices.mjs +1 -0
  138. package/dist/actions/list-invoices.mjs.map +1 -1
  139. package/dist/actions/list-payments.cjs +1 -0
  140. package/dist/actions/list-payments.cjs.map +1 -1
  141. package/dist/actions/list-payments.d.cts +3 -7
  142. package/dist/actions/list-payments.d.cts.map +1 -1
  143. package/dist/actions/list-payments.d.mts +3 -7
  144. package/dist/actions/list-payments.d.mts.map +1 -1
  145. package/dist/actions/list-payments.mjs +1 -0
  146. package/dist/actions/list-payments.mjs.map +1 -1
  147. package/dist/actions/list-products.cjs +1 -0
  148. package/dist/actions/list-products.cjs.map +1 -1
  149. package/dist/actions/list-products.d.cts +3 -6
  150. package/dist/actions/list-products.d.cts.map +1 -1
  151. package/dist/actions/list-products.d.mts +3 -6
  152. package/dist/actions/list-products.d.mts.map +1 -1
  153. package/dist/actions/list-products.mjs +1 -0
  154. package/dist/actions/list-products.mjs.map +1 -1
  155. package/dist/actions/update-customer.cjs +1 -0
  156. package/dist/actions/update-customer.cjs.map +1 -1
  157. package/dist/actions/update-customer.d.cts +3 -14
  158. package/dist/actions/update-customer.d.cts.map +1 -1
  159. package/dist/actions/update-customer.d.mts +3 -14
  160. package/dist/actions/update-customer.d.mts.map +1 -1
  161. package/dist/actions/update-customer.mjs +1 -0
  162. package/dist/actions/update-customer.mjs.map +1 -1
  163. package/dist/actions/update-expense-file.cjs +1 -0
  164. package/dist/actions/update-expense-file.cjs.map +1 -1
  165. package/dist/actions/update-expense-file.d.cts +3 -8
  166. package/dist/actions/update-expense-file.d.cts.map +1 -1
  167. package/dist/actions/update-expense-file.d.mts +3 -8
  168. package/dist/actions/update-expense-file.d.mts.map +1 -1
  169. package/dist/actions/update-expense-file.mjs +1 -0
  170. package/dist/actions/update-expense-file.mjs.map +1 -1
  171. package/dist/actions/update-expense.cjs +1 -0
  172. package/dist/actions/update-expense.cjs.map +1 -1
  173. package/dist/actions/update-expense.d.cts +3 -7
  174. package/dist/actions/update-expense.d.cts.map +1 -1
  175. package/dist/actions/update-expense.d.mts +3 -7
  176. package/dist/actions/update-expense.d.mts.map +1 -1
  177. package/dist/actions/update-expense.mjs +1 -0
  178. package/dist/actions/update-expense.mjs.map +1 -1
  179. package/dist/actions/update-invoice.cjs +1 -0
  180. package/dist/actions/update-invoice.cjs.map +1 -1
  181. package/dist/actions/update-invoice.d.cts +3 -41
  182. package/dist/actions/update-invoice.d.cts.map +1 -1
  183. package/dist/actions/update-invoice.d.mts +3 -41
  184. package/dist/actions/update-invoice.d.mts.map +1 -1
  185. package/dist/actions/update-invoice.mjs +1 -0
  186. package/dist/actions/update-invoice.mjs.map +1 -1
  187. package/dist/actions/update-product.cjs +1 -0
  188. package/dist/actions/update-product.cjs.map +1 -1
  189. package/dist/actions/update-product.d.cts +3 -7
  190. package/dist/actions/update-product.d.cts.map +1 -1
  191. package/dist/actions/update-product.d.mts +3 -7
  192. package/dist/actions/update-product.d.mts.map +1 -1
  193. package/dist/actions/update-product.mjs +1 -0
  194. package/dist/actions/update-product.mjs.map +1 -1
  195. package/dist/app.cjs +5 -2
  196. package/dist/app.cjs.map +1 -1
  197. package/dist/app.d.cts +7 -1
  198. package/dist/app.d.cts.map +1 -1
  199. package/dist/app.d.mts +7 -1
  200. package/dist/app.d.mts.map +1 -1
  201. package/dist/app.mjs +3 -2
  202. package/dist/app.mjs.map +1 -1
  203. package/dist/index.d.cts +1 -1
  204. package/dist/index.d.mts +1 -1
  205. package/package.json +2 -2
@@ -1,3 +1,5 @@
1
+ import { finmei } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/list-expenses.d.ts
@@ -25,10 +27,7 @@ declare const FinmeiListExpensesOutput: z.ZodObject<{
25
27
  updated_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
26
28
  }, z.core.$loose>>>>;
27
29
  }, z.core.$loose>;
28
- declare const finmeiListExpenses: import("@keystrokehq/action").WorkflowActionDefinition<{
29
- page?: number | undefined;
30
- per_page?: number | undefined;
31
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
30
+ declare const finmeiListExpenses: AppAction<typeof FinmeiListExpensesInput, typeof FinmeiListExpensesOutput, typeof finmei.credential>;
32
31
  //#endregion
33
32
  export { finmeiListExpenses };
34
33
  //# sourceMappingURL=list-expenses.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-expenses.d.mts","names":[],"sources":["../../src/actions/list-expenses.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;cAsBvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAKxB,kBAAA,gCAAkB,wBAAA"}
1
+ {"version":3,"file":"list-expenses.d.mts","names":[],"sources":["../../src/actions/list-expenses.ts"],"mappings":";;;;;cAMa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;cAsBvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAKxB,kBAAA,EAAoB,SAAA,QACxB,uBAAA,SACA,wBAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/list-expenses.ts
@@ -1 +1 @@
1
- {"version":3,"file":"list-expenses.mjs","names":[],"sources":["../../src/actions/list-expenses.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiListExpensesInput = z.object({\n page: z.number().int().default(1).describe(\"Page number to retrieve (must be >= 1)\").optional(),\n per_page: z.number().int().default(20).describe(\"Number of expenses per page (1-100)\").optional(),\n}).describe(\"Optional pagination parameters for listing expenses.\");\nconst FinmeiListExpenses_PaginationMetaSchema = z.object({\n to: z.number().int().describe(\"Ending item number on current page\").nullable().optional(),\n from: z.number().int().describe(\"Starting item number on current page (1-indexed)\").nullable().optional(),\n path: z.string().describe(\"API endpoint path\").nullable().optional(),\n total: z.number().int().describe(\"Total number of expenses across all pages\").nullable(),\n per_page: z.number().int().describe(\"Number of items per page\").nullable(),\n last_page: z.number().int().describe(\"Last page number\").nullable(),\n current_page: z.number().int().describe(\"Current page number\").nullable(),\n}).passthrough().describe(\"Pagination metadata from the API\");\nconst FinmeiListExpenses_ExpenseSchema = z.object({\n id: z.string().describe(\"Unique identifier of the expense\").nullable(),\n date: z.string().describe(\"Date of the expense in YYYY-MM-DD format\").nullable().optional(),\n total: z.number().describe(\"Total amount of the expense\").nullable().optional(),\n seller: z.string().describe(\"Name of the seller/vendor\").nullable().optional(),\n currency: z.string().describe(\"ISO 4217 currency code (USD, EUR, GBP, etc.)\").nullable().optional(),\n created_at: z.number().int().describe(\"Unix timestamp when expense was created\").nullable().optional(),\n updated_at: z.number().int().describe(\"Unix timestamp when expense was last updated\").nullable().optional(),\n}).passthrough().describe(\"Single expense object returned by the API\");\nexport const FinmeiListExpensesOutput = z.object({\n meta: FinmeiListExpenses_PaginationMetaSchema.nullable().optional(),\n expenses: z.array(FinmeiListExpenses_ExpenseSchema).describe(\"List of expense objects returned by the API\").nullable().optional(),\n}).passthrough().describe(\"Response model for listing expenses with pagination metadata.\");\n\nexport const finmeiListExpenses = action(\"FINMEI_LIST_EXPENSES\", {\n slug: \"finmei-list-expenses\",\n name: \"List Expenses\",\n description: \"Tool to list all expenses for the business. Use when you need a paginated list of expenses with metadata.\",\n input: FinmeiListExpensesInput,\n output: FinmeiListExpensesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0B,EAAE,OAAO;CAC9C,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC9F,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;AAClG,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAM,0CAA0C,EAAE,OAAO;CACvD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mBA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AAa;CACb,OAAO;CACP,QAVsC,EAAE,OAAO;EAC/C,MAAM,wCAAwC,SAAS,CAAC,CAAC,SAAS;EAClE,UAAU,EAAE,MAAM,gCAAgC,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+DAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"list-expenses.mjs","names":[],"sources":["../../src/actions/list-expenses.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { finmei } from \"../app\";\n\nexport const FinmeiListExpensesInput = z.object({\n page: z.number().int().default(1).describe(\"Page number to retrieve (must be >= 1)\").optional(),\n per_page: z.number().int().default(20).describe(\"Number of expenses per page (1-100)\").optional(),\n}).describe(\"Optional pagination parameters for listing expenses.\");\nconst FinmeiListExpenses_PaginationMetaSchema = z.object({\n to: z.number().int().describe(\"Ending item number on current page\").nullable().optional(),\n from: z.number().int().describe(\"Starting item number on current page (1-indexed)\").nullable().optional(),\n path: z.string().describe(\"API endpoint path\").nullable().optional(),\n total: z.number().int().describe(\"Total number of expenses across all pages\").nullable(),\n per_page: z.number().int().describe(\"Number of items per page\").nullable(),\n last_page: z.number().int().describe(\"Last page number\").nullable(),\n current_page: z.number().int().describe(\"Current page number\").nullable(),\n}).passthrough().describe(\"Pagination metadata from the API\");\nconst FinmeiListExpenses_ExpenseSchema = z.object({\n id: z.string().describe(\"Unique identifier of the expense\").nullable(),\n date: z.string().describe(\"Date of the expense in YYYY-MM-DD format\").nullable().optional(),\n total: z.number().describe(\"Total amount of the expense\").nullable().optional(),\n seller: z.string().describe(\"Name of the seller/vendor\").nullable().optional(),\n currency: z.string().describe(\"ISO 4217 currency code (USD, EUR, GBP, etc.)\").nullable().optional(),\n created_at: z.number().int().describe(\"Unix timestamp when expense was created\").nullable().optional(),\n updated_at: z.number().int().describe(\"Unix timestamp when expense was last updated\").nullable().optional(),\n}).passthrough().describe(\"Single expense object returned by the API\");\nexport const FinmeiListExpensesOutput = z.object({\n meta: FinmeiListExpenses_PaginationMetaSchema.nullable().optional(),\n expenses: z.array(FinmeiListExpenses_ExpenseSchema).describe(\"List of expense objects returned by the API\").nullable().optional(),\n}).passthrough().describe(\"Response model for listing expenses with pagination metadata.\");\n\nexport const finmeiListExpenses: AppAction<\n typeof FinmeiListExpensesInput,\n typeof FinmeiListExpensesOutput,\n typeof finmei.credential\n> = action(\"FINMEI_LIST_EXPENSES\", {\n slug: \"finmei-list-expenses\",\n name: \"List Expenses\",\n description: \"Tool to list all expenses for the business. Use when you need a paginated list of expenses with metadata.\",\n input: FinmeiListExpensesInput,\n output: FinmeiListExpensesOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,0BAA0B,EAAE,OAAO;CAC9C,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC9F,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;AAClG,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAM,0CAA0C,EAAE,OAAO;CACvD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnE,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACvF,UAAU,EAAE,OAAO,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C,SAAS,CAAC,CAAC,SAAS;CAClI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+DAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/list-invoices.ts
@@ -1 +1 @@
1
- {"version":3,"file":"list-invoices.cjs","names":["z","action"],"sources":["../../src/actions/list-invoices.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiListInvoicesInput = z.object({\n page: z.number().int().default(1).describe(\"Page number to retrieve (must be >= 1)\").optional(),\n per_page: z.number().int().default(20).describe(\"Number of invoices per page (1-100)\").optional(),\n}).describe(\"Optional pagination parameters for listing invoices.\");\nconst FinmeiListInvoices_PaginationMetaSchema = z.object({\n to: z.number().int().describe(\"Ending item number on current page\").nullable().optional(),\n from: z.number().int().describe(\"Starting item number on current page (1-indexed)\").nullable().optional(),\n path: z.string().describe(\"API endpoint path\").nullable(),\n total: z.number().int().describe(\"Total number of invoices across all pages\").nullable(),\n per_page: z.number().int().describe(\"Number of items per page\").nullable(),\n last_page: z.number().int().describe(\"Last page number\").nullable(),\n current_page: z.number().int().describe(\"Current page number\").nullable(),\n}).passthrough().describe(\"Pagination metadata from the API\");\nconst FinmeiListInvoices_BuyerSchema = z.object({\n type: z.string().describe(\"Type of buyer (company or individual)\").nullable().optional(),\n email: z.string().describe(\"Buyer email\").nullable().optional(),\n phone: z.string().describe(\"Buyer phone number\").nullable().optional(),\n address: z.string().describe(\"Buyer address\").nullable().optional(),\n vat_code: z.string().describe(\"VAT registration number\").nullable().optional(),\n last_name: z.string().describe(\"Last name (for individual buyers)\").nullable().optional(),\n first_name: z.string().describe(\"First name (for individual buyers)\").nullable().optional(),\n company_code: z.string().describe(\"Company registration code\").nullable().optional(),\n company_name: z.string().describe(\"Company name (for company buyers)\").nullable().optional(),\n individual_tax_id: z.string().describe(\"Individual tax ID\").nullable().optional(),\n}).passthrough().describe(\"Buyer/customer information on the invoice\");\nconst FinmeiListInvoices_InvoiceItemSchema = z.object({\n id: z.string().describe(\"Unique item identifier\").nullable(),\n name: z.string().describe(\"Item/product/service name\").nullable(),\n price: z.number().describe(\"Unit price\").nullable(),\n units: z.string().describe(\"Unit of measurement (hours, pcs, etc.)\").nullable(),\n quantity: z.number().describe(\"Quantity\").nullable(),\n vat_percentage: z.number().describe(\"VAT/tax percentage applied\").nullable().optional(),\n}).passthrough().describe(\"Line item on the invoice\");\nconst FinmeiListInvoices_SellerSchema = z.object({\n email: z.string().describe(\"Business email\").nullable().optional(),\n phone: z.string().describe(\"Business phone number\").nullable().optional(),\n address: z.string().describe(\"Business address\").nullable().optional(),\n vat_code: z.string().describe(\"VAT registration number\").nullable().optional(),\n last_name: z.string().describe(\"Last name (for individual sellers)\").nullable().optional(),\n first_name: z.string().describe(\"First name (for individual sellers)\").nullable().optional(),\n company_code: z.string().describe(\"Company registration code\").nullable().optional(),\n company_name: z.string().describe(\"Company name (for company sellers)\").nullable().optional(),\n business_type: z.string().describe(\"Type of business (company or individual)\").nullable().optional(),\n individual_tax_id: z.string().describe(\"Individual tax ID\").nullable().optional(),\n}).passthrough().describe(\"Seller/business information on the invoice\");\nconst FinmeiListInvoices_InvoiceSchema = z.object({\n id: z.string().describe(\"Unique invoice identifier\").nullable(),\n vat: z.number().describe(\"Total VAT/tax amount\").nullable(),\n buyer: FinmeiListInvoices_BuyerSchema.nullable(),\n items: z.array(FinmeiListInvoices_InvoiceItemSchema).describe(\"List of line items on the invoice\").nullable().optional(),\n notes: z.string().describe(\"Additional notes on the invoice\").nullable().optional(),\n seller: FinmeiListInvoices_SellerSchema.nullable(),\n series: z.string().describe(\"Invoice series/prefix\").nullable(),\n currency: z.string().describe(\"ISO 4217 currency code (USD, EUR, GBP, etc.)\").nullable(),\n language: z.string().describe(\"Invoice language code\").nullable(),\n subtotal: z.number().describe(\"Subtotal amount before VAT\").nullable(),\n created_at: z.number().int().describe(\"Unix timestamp when invoice was created\").nullable(),\n share_link: z.string().describe(\"Public URL to view/share the invoice\").nullable(),\n updated_at: z.number().int().describe(\"Unix timestamp when invoice was last updated\").nullable(),\n business_id: z.string().describe(\"Business account identifier\").nullable(),\n invoice_date: z.string().describe(\"Invoice date in YYYY-MM-DD format\").nullable(),\n invoice_type: z.string().describe(\"Type of invoice (regular_invoice, vat_invoice, preliminary_invoice, credit_invoice)\").nullable(),\n invoice_number: z.string().describe(\"Invoice number within the series\").nullable(),\n pay_until_date: z.string().describe(\"Payment due date in YYYY-MM-DD format\").nullable().optional(),\n payment_status: z.string().describe(\"Payment status (not_paid, paid, partially_paid, etc.)\").nullable(),\n total_incl_vat: z.number().describe(\"Total amount including VAT\").nullable(),\n payment_options: z.array(z.record(z.string(), z.unknown())).describe(\"Available payment options\").nullable().optional(),\n}).passthrough().describe(\"Single invoice object returned by the API\");\nexport const FinmeiListInvoicesOutput = z.object({\n meta: FinmeiListInvoices_PaginationMetaSchema.nullable().optional(),\n invoices: z.array(FinmeiListInvoices_InvoiceSchema).describe(\"List of invoice objects returned by the API\").nullable().optional(),\n}).passthrough().describe(\"Response model for listing invoices with pagination metadata.\");\n\nexport const finmeiListInvoices = action(\"FINMEI_LIST_INVOICES\", {\n slug: \"finmei-list-invoices\",\n name: \"List Invoices\",\n description: \"Tool to list invoices. Use when you need a paginated list of invoices with basic details.\",\n input: FinmeiListInvoicesInput,\n output: FinmeiListInvoicesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC9F,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;AAClG,CAAC,CAAC,CAAC,S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BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CACtG,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CAC3E,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,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C;AACrE,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,MAAM,wCAAwC,SAAS,CAAC,CAAC,SAAS;CAClE,UAAUA,IAAAA,EAAE,MAAM,gCAAgC,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+DAA+D;AAEzF,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"list-invoices.cjs","names":["z","action"],"sources":["../../src/actions/list-invoices.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { finmei } from \"../app\";\n\nexport const FinmeiListInvoicesInput = z.object({\n page: z.number().int().default(1).describe(\"Page number to retrieve (must be >= 1)\").optional(),\n per_page: z.number().int().default(20).describe(\"Number of invoices per page (1-100)\").optional(),\n}).describe(\"Optional pagination parameters for listing invoices.\");\nconst FinmeiListInvoices_PaginationMetaSchema = z.object({\n to: z.number().int().describe(\"Ending item number on current page\").nullable().optional(),\n from: z.number().int().describe(\"Starting item number on current page (1-indexed)\").nullable().optional(),\n path: z.string().describe(\"API endpoint path\").nullable(),\n total: z.number().int().describe(\"Total number of invoices across all pages\").nullable(),\n per_page: z.number().int().describe(\"Number of items per page\").nullable(),\n last_page: z.number().int().describe(\"Last page number\").nullable(),\n current_page: z.number().int().describe(\"Current page number\").nullable(),\n}).passthrough().describe(\"Pagination metadata from the API\");\nconst FinmeiListInvoices_BuyerSchema = z.object({\n type: z.string().describe(\"Type of buyer (company or individual)\").nullable().optional(),\n email: z.string().describe(\"Buyer email\").nullable().optional(),\n phone: z.string().describe(\"Buyer phone number\").nullable().optional(),\n address: z.string().describe(\"Buyer address\").nullable().optional(),\n vat_code: z.string().describe(\"VAT registration number\").nullable().optional(),\n last_name: z.string().describe(\"Last name (for individual buyers)\").nullable().optional(),\n first_name: z.string().describe(\"First name (for individual buyers)\").nullable().optional(),\n company_code: z.string().describe(\"Company registration code\").nullable().optional(),\n company_name: z.string().describe(\"Company name (for company buyers)\").nullable().optional(),\n individual_tax_id: z.string().describe(\"Individual tax ID\").nullable().optional(),\n}).passthrough().describe(\"Buyer/customer information on the invoice\");\nconst FinmeiListInvoices_InvoiceItemSchema = z.object({\n id: z.string().describe(\"Unique item identifier\").nullable(),\n name: z.string().describe(\"Item/product/service name\").nullable(),\n price: z.number().describe(\"Unit price\").nullable(),\n units: z.string().describe(\"Unit of measurement (hours, pcs, etc.)\").nullable(),\n quantity: z.number().describe(\"Quantity\").nullable(),\n vat_percentage: z.number().describe(\"VAT/tax percentage applied\").nullable().optional(),\n}).passthrough().describe(\"Line item on the invoice\");\nconst FinmeiListInvoices_SellerSchema = z.object({\n email: z.string().describe(\"Business email\").nullable().optional(),\n phone: z.string().describe(\"Business phone number\").nullable().optional(),\n address: z.string().describe(\"Business address\").nullable().optional(),\n vat_code: z.string().describe(\"VAT registration number\").nullable().optional(),\n last_name: z.string().describe(\"Last name (for individual sellers)\").nullable().optional(),\n first_name: z.string().describe(\"First name (for individual sellers)\").nullable().optional(),\n company_code: z.string().describe(\"Company registration code\").nullable().optional(),\n company_name: z.string().describe(\"Company name (for company sellers)\").nullable().optional(),\n business_type: z.string().describe(\"Type of business (company or individual)\").nullable().optional(),\n individual_tax_id: z.string().describe(\"Individual tax ID\").nullable().optional(),\n}).passthrough().describe(\"Seller/business information on the invoice\");\nconst FinmeiListInvoices_InvoiceSchema = z.object({\n id: z.string().describe(\"Unique invoice identifier\").nullable(),\n vat: z.number().describe(\"Total VAT/tax amount\").nullable(),\n buyer: FinmeiListInvoices_BuyerSchema.nullable(),\n items: z.array(FinmeiListInvoices_InvoiceItemSchema).describe(\"List of line items on the invoice\").nullable().optional(),\n notes: z.string().describe(\"Additional notes on the invoice\").nullable().optional(),\n seller: FinmeiListInvoices_SellerSchema.nullable(),\n series: z.string().describe(\"Invoice series/prefix\").nullable(),\n currency: z.string().describe(\"ISO 4217 currency code (USD, EUR, GBP, etc.)\").nullable(),\n language: z.string().describe(\"Invoice language code\").nullable(),\n subtotal: z.number().describe(\"Subtotal amount before VAT\").nullable(),\n created_at: z.number().int().describe(\"Unix timestamp when invoice was created\").nullable(),\n share_link: z.string().describe(\"Public URL to view/share the invoice\").nullable(),\n updated_at: z.number().int().describe(\"Unix timestamp when invoice was last updated\").nullable(),\n business_id: z.string().describe(\"Business account identifier\").nullable(),\n invoice_date: z.string().describe(\"Invoice date in YYYY-MM-DD format\").nullable(),\n invoice_type: z.string().describe(\"Type of invoice (regular_invoice, vat_invoice, preliminary_invoice, credit_invoice)\").nullable(),\n invoice_number: z.string().describe(\"Invoice number within the series\").nullable(),\n pay_until_date: z.string().describe(\"Payment due date in YYYY-MM-DD format\").nullable().optional(),\n payment_status: z.string().describe(\"Payment status (not_paid, paid, partially_paid, etc.)\").nullable(),\n total_incl_vat: z.number().describe(\"Total amount including VAT\").nullable(),\n payment_options: z.array(z.record(z.string(), z.unknown())).describe(\"Available payment options\").nullable().optional(),\n}).passthrough().describe(\"Single invoice object returned by the API\");\nexport const FinmeiListInvoicesOutput = z.object({\n meta: FinmeiListInvoices_PaginationMetaSchema.nullable().optional(),\n invoices: z.array(FinmeiListInvoices_InvoiceSchema).describe(\"List of invoice objects returned by the API\").nullable().optional(),\n}).passthrough().describe(\"Response model for listing invoices with pagination metadata.\");\n\nexport const finmeiListInvoices: AppAction<\n typeof FinmeiListInvoicesInput,\n typeof FinmeiListInvoicesOutput,\n typeof finmei.credential\n> = action(\"FINMEI_LIST_INVOICES\", {\n slug: \"finmei-list-invoices\",\n name: \"List Invoices\",\n description: \"Tool to list invoices. Use when you need a paginated list of invoices with basic details.\",\n input: FinmeiListInvoicesInput,\n output: FinmeiListInvoicesOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC9F,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;AAClG,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAM,0CAA0CA,IAAAA,EAAE,OAAO;CACvD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS;CACxD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACvF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CACzE,WAAWA,IAAAA,EAAE,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AClI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+DAA+D;AAEzF,MAAa,qBAITC,eAAAA,OAAO,wBAAwB;CACjC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { finmei } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/list-invoices.d.ts
@@ -68,10 +70,7 @@ declare const FinmeiListInvoicesOutput: z.ZodObject<{
68
70
  payment_options: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
69
71
  }, z.core.$loose>>>>;
70
72
  }, z.core.$loose>;
71
- declare const finmeiListInvoices: import("@keystrokehq/action").WorkflowActionDefinition<{
72
- page?: number | undefined;
73
- per_page?: number | undefined;
74
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
73
+ declare const finmeiListInvoices: AppAction<typeof FinmeiListInvoicesInput, typeof FinmeiListInvoicesOutput, typeof finmei.credential>;
75
74
  //#endregion
76
75
  export { finmeiListInvoices };
77
76
  //# sourceMappingURL=list-invoices.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-invoices.d.cts","names":[],"sources":["../../src/actions/list-invoices.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;cAoEvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKxB,kBAAA,gCAAkB,wBAAA"}
1
+ {"version":3,"file":"list-invoices.d.cts","names":[],"sources":["../../src/actions/list-invoices.ts"],"mappings":";;;;;cAMa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;cAoEvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKxB,kBAAA,EAAoB,SAAA,QACxB,uBAAA,SACA,wBAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { finmei } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/list-invoices.d.ts
@@ -68,10 +70,7 @@ declare const FinmeiListInvoicesOutput: z.ZodObject<{
68
70
  payment_options: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
69
71
  }, z.core.$loose>>>>;
70
72
  }, z.core.$loose>;
71
- declare const finmeiListInvoices: import("@keystrokehq/action").WorkflowActionDefinition<{
72
- page?: number | undefined;
73
- per_page?: number | undefined;
74
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
73
+ declare const finmeiListInvoices: AppAction<typeof FinmeiListInvoicesInput, typeof FinmeiListInvoicesOutput, typeof finmei.credential>;
75
74
  //#endregion
76
75
  export { finmeiListInvoices };
77
76
  //# sourceMappingURL=list-invoices.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-invoices.d.mts","names":[],"sources":["../../src/actions/list-invoices.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;cAoEvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKxB,kBAAA,gCAAkB,wBAAA"}
1
+ {"version":3,"file":"list-invoices.d.mts","names":[],"sources":["../../src/actions/list-invoices.ts"],"mappings":";;;;;cAMa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;cAoEvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKxB,kBAAA,EAAoB,SAAA,QACxB,uBAAA,SACA,wBAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/list-invoices.ts
@@ -1 +1 @@
1
- {"version":3,"file":"list-invoices.mjs","names":[],"sources":["../../src/actions/list-invoices.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiListInvoicesInput = z.object({\n page: z.number().int().default(1).describe(\"Page number to retrieve (must be >= 1)\").optional(),\n per_page: z.number().int().default(20).describe(\"Number of invoices per page (1-100)\").optional(),\n}).describe(\"Optional pagination parameters for listing invoices.\");\nconst FinmeiListInvoices_PaginationMetaSchema = z.object({\n to: z.number().int().describe(\"Ending item number on current page\").nullable().optional(),\n from: z.number().int().describe(\"Starting item number on current page (1-indexed)\").nullable().optional(),\n path: z.string().describe(\"API endpoint path\").nullable(),\n total: z.number().int().describe(\"Total number of invoices across all pages\").nullable(),\n per_page: z.number().int().describe(\"Number of items per page\").nullable(),\n last_page: z.number().int().describe(\"Last page number\").nullable(),\n current_page: z.number().int().describe(\"Current page number\").nullable(),\n}).passthrough().describe(\"Pagination metadata from the API\");\nconst FinmeiListInvoices_BuyerSchema = z.object({\n type: z.string().describe(\"Type of buyer (company or individual)\").nullable().optional(),\n email: z.string().describe(\"Buyer email\").nullable().optional(),\n phone: z.string().describe(\"Buyer phone number\").nullable().optional(),\n address: z.string().describe(\"Buyer address\").nullable().optional(),\n vat_code: z.string().describe(\"VAT registration number\").nullable().optional(),\n last_name: z.string().describe(\"Last name (for individual buyers)\").nullable().optional(),\n first_name: z.string().describe(\"First name (for individual buyers)\").nullable().optional(),\n company_code: z.string().describe(\"Company registration code\").nullable().optional(),\n company_name: z.string().describe(\"Company name (for company buyers)\").nullable().optional(),\n individual_tax_id: z.string().describe(\"Individual tax ID\").nullable().optional(),\n}).passthrough().describe(\"Buyer/customer information on the invoice\");\nconst FinmeiListInvoices_InvoiceItemSchema = z.object({\n id: z.string().describe(\"Unique item identifier\").nullable(),\n name: z.string().describe(\"Item/product/service name\").nullable(),\n price: z.number().describe(\"Unit price\").nullable(),\n units: z.string().describe(\"Unit of measurement (hours, pcs, etc.)\").nullable(),\n quantity: z.number().describe(\"Quantity\").nullable(),\n vat_percentage: z.number().describe(\"VAT/tax percentage applied\").nullable().optional(),\n}).passthrough().describe(\"Line item on the invoice\");\nconst FinmeiListInvoices_SellerSchema = z.object({\n email: z.string().describe(\"Business email\").nullable().optional(),\n phone: z.string().describe(\"Business phone number\").nullable().optional(),\n address: z.string().describe(\"Business address\").nullable().optional(),\n vat_code: z.string().describe(\"VAT registration number\").nullable().optional(),\n last_name: z.string().describe(\"Last name (for individual sellers)\").nullable().optional(),\n first_name: z.string().describe(\"First name (for individual sellers)\").nullable().optional(),\n company_code: z.string().describe(\"Company registration code\").nullable().optional(),\n company_name: z.string().describe(\"Company name (for company sellers)\").nullable().optional(),\n business_type: z.string().describe(\"Type of business (company or individual)\").nullable().optional(),\n individual_tax_id: z.string().describe(\"Individual tax ID\").nullable().optional(),\n}).passthrough().describe(\"Seller/business information on the invoice\");\nconst FinmeiListInvoices_InvoiceSchema = z.object({\n id: z.string().describe(\"Unique invoice identifier\").nullable(),\n vat: z.number().describe(\"Total VAT/tax amount\").nullable(),\n buyer: FinmeiListInvoices_BuyerSchema.nullable(),\n items: z.array(FinmeiListInvoices_InvoiceItemSchema).describe(\"List of line items on the invoice\").nullable().optional(),\n notes: z.string().describe(\"Additional notes on the invoice\").nullable().optional(),\n seller: FinmeiListInvoices_SellerSchema.nullable(),\n series: z.string().describe(\"Invoice series/prefix\").nullable(),\n currency: z.string().describe(\"ISO 4217 currency code (USD, EUR, GBP, etc.)\").nullable(),\n language: z.string().describe(\"Invoice language code\").nullable(),\n subtotal: z.number().describe(\"Subtotal amount before VAT\").nullable(),\n created_at: z.number().int().describe(\"Unix timestamp when invoice was created\").nullable(),\n share_link: z.string().describe(\"Public URL to view/share the invoice\").nullable(),\n updated_at: z.number().int().describe(\"Unix timestamp when invoice was last updated\").nullable(),\n business_id: z.string().describe(\"Business account identifier\").nullable(),\n invoice_date: z.string().describe(\"Invoice date in YYYY-MM-DD format\").nullable(),\n invoice_type: z.string().describe(\"Type of invoice (regular_invoice, vat_invoice, preliminary_invoice, credit_invoice)\").nullable(),\n invoice_number: z.string().describe(\"Invoice number within the series\").nullable(),\n pay_until_date: z.string().describe(\"Payment due date in YYYY-MM-DD format\").nullable().optional(),\n payment_status: z.string().describe(\"Payment status (not_paid, paid, partially_paid, etc.)\").nullable(),\n total_incl_vat: z.number().describe(\"Total amount including VAT\").nullable(),\n payment_options: z.array(z.record(z.string(), z.unknown())).describe(\"Available payment options\").nullable().optional(),\n}).passthrough().describe(\"Single invoice object returned by the API\");\nexport const FinmeiListInvoicesOutput = z.object({\n meta: FinmeiListInvoices_PaginationMetaSchema.nullable().optional(),\n invoices: z.array(FinmeiListInvoices_InvoiceSchema).describe(\"List of invoice objects returned by the API\").nullable().optional(),\n}).passthrough().describe(\"Response model for listing invoices with pagination metadata.\");\n\nexport const finmeiListInvoices = action(\"FINMEI_LIST_INVOICES\", {\n slug: \"finmei-list-invoices\",\n name: \"List Invoices\",\n description: \"Tool to list invoices. Use when you need a paginated list of invoices with basic details.\",\n input: FinmeiListInvoicesInput,\n output: FinmeiListInvoicesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0B,EAAE,OAAO;CAC9C,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC9F,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAA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C,EAAE,OAAO;EAC/C,MAAM,wCAAwC,SAAS,CAAC,CAAC,SAAS;EAClE,UAAU,EAAE,MAAM,gCAAgC,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+DAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"list-invoices.mjs","names":[],"sources":["../../src/actions/list-invoices.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { finmei } from \"../app\";\n\nexport const FinmeiListInvoicesInput = z.object({\n page: z.number().int().default(1).describe(\"Page number to retrieve (must be >= 1)\").optional(),\n per_page: z.number().int().default(20).describe(\"Number of invoices per page (1-100)\").optional(),\n}).describe(\"Optional pagination parameters for listing invoices.\");\nconst FinmeiListInvoices_PaginationMetaSchema = z.object({\n to: z.number().int().describe(\"Ending item number on current page\").nullable().optional(),\n from: z.number().int().describe(\"Starting item number on current page (1-indexed)\").nullable().optional(),\n path: z.string().describe(\"API endpoint path\").nullable(),\n total: z.number().int().describe(\"Total number of invoices across all pages\").nullable(),\n per_page: z.number().int().describe(\"Number of items per page\").nullable(),\n last_page: z.number().int().describe(\"Last page number\").nullable(),\n current_page: z.number().int().describe(\"Current page number\").nullable(),\n}).passthrough().describe(\"Pagination metadata from the API\");\nconst FinmeiListInvoices_BuyerSchema = z.object({\n type: z.string().describe(\"Type of buyer (company or individual)\").nullable().optional(),\n email: z.string().describe(\"Buyer email\").nullable().optional(),\n phone: z.string().describe(\"Buyer phone number\").nullable().optional(),\n address: z.string().describe(\"Buyer address\").nullable().optional(),\n vat_code: z.string().describe(\"VAT registration number\").nullable().optional(),\n last_name: z.string().describe(\"Last name (for individual buyers)\").nullable().optional(),\n first_name: z.string().describe(\"First name (for individual buyers)\").nullable().optional(),\n company_code: z.string().describe(\"Company registration code\").nullable().optional(),\n company_name: z.string().describe(\"Company name (for company buyers)\").nullable().optional(),\n individual_tax_id: z.string().describe(\"Individual tax ID\").nullable().optional(),\n}).passthrough().describe(\"Buyer/customer information on the invoice\");\nconst FinmeiListInvoices_InvoiceItemSchema = z.object({\n id: z.string().describe(\"Unique item identifier\").nullable(),\n name: z.string().describe(\"Item/product/service name\").nullable(),\n price: z.number().describe(\"Unit price\").nullable(),\n units: z.string().describe(\"Unit of measurement (hours, pcs, etc.)\").nullable(),\n quantity: z.number().describe(\"Quantity\").nullable(),\n vat_percentage: z.number().describe(\"VAT/tax percentage applied\").nullable().optional(),\n}).passthrough().describe(\"Line item on the invoice\");\nconst FinmeiListInvoices_SellerSchema = z.object({\n email: z.string().describe(\"Business email\").nullable().optional(),\n phone: z.string().describe(\"Business phone number\").nullable().optional(),\n address: z.string().describe(\"Business address\").nullable().optional(),\n vat_code: z.string().describe(\"VAT registration number\").nullable().optional(),\n last_name: z.string().describe(\"Last name (for individual sellers)\").nullable().optional(),\n first_name: z.string().describe(\"First name (for individual sellers)\").nullable().optional(),\n company_code: z.string().describe(\"Company registration code\").nullable().optional(),\n company_name: z.string().describe(\"Company name (for company sellers)\").nullable().optional(),\n business_type: z.string().describe(\"Type of business (company or individual)\").nullable().optional(),\n individual_tax_id: z.string().describe(\"Individual tax ID\").nullable().optional(),\n}).passthrough().describe(\"Seller/business information on the invoice\");\nconst FinmeiListInvoices_InvoiceSchema = z.object({\n id: z.string().describe(\"Unique invoice identifier\").nullable(),\n vat: z.number().describe(\"Total VAT/tax amount\").nullable(),\n buyer: FinmeiListInvoices_BuyerSchema.nullable(),\n items: z.array(FinmeiListInvoices_InvoiceItemSchema).describe(\"List of line items on the invoice\").nullable().optional(),\n notes: z.string().describe(\"Additional notes on the invoice\").nullable().optional(),\n seller: FinmeiListInvoices_SellerSchema.nullable(),\n series: z.string().describe(\"Invoice series/prefix\").nullable(),\n currency: z.string().describe(\"ISO 4217 currency code (USD, EUR, GBP, etc.)\").nullable(),\n language: z.string().describe(\"Invoice language code\").nullable(),\n subtotal: z.number().describe(\"Subtotal amount before VAT\").nullable(),\n created_at: z.number().int().describe(\"Unix timestamp when invoice was created\").nullable(),\n share_link: z.string().describe(\"Public URL to view/share the invoice\").nullable(),\n updated_at: z.number().int().describe(\"Unix timestamp when invoice was last updated\").nullable(),\n business_id: z.string().describe(\"Business account identifier\").nullable(),\n invoice_date: z.string().describe(\"Invoice date in YYYY-MM-DD format\").nullable(),\n invoice_type: z.string().describe(\"Type of invoice (regular_invoice, vat_invoice, preliminary_invoice, credit_invoice)\").nullable(),\n invoice_number: z.string().describe(\"Invoice number within the series\").nullable(),\n pay_until_date: z.string().describe(\"Payment due date in YYYY-MM-DD format\").nullable().optional(),\n payment_status: z.string().describe(\"Payment status (not_paid, paid, partially_paid, etc.)\").nullable(),\n total_incl_vat: z.number().describe(\"Total amount including VAT\").nullable(),\n payment_options: z.array(z.record(z.string(), z.unknown())).describe(\"Available payment options\").nullable().optional(),\n}).passthrough().describe(\"Single invoice object returned by the API\");\nexport const FinmeiListInvoicesOutput = z.object({\n meta: FinmeiListInvoices_PaginationMetaSchema.nullable().optional(),\n invoices: z.array(FinmeiListInvoices_InvoiceSchema).describe(\"List of invoice objects returned by the API\").nullable().optional(),\n}).passthrough().describe(\"Response model for listing invoices with pagination metadata.\");\n\nexport const finmeiListInvoices: AppAction<\n typeof FinmeiListInvoicesInput,\n typeof FinmeiListInvoicesOutput,\n typeof finmei.credential\n> = action(\"FINMEI_LIST_INVOICES\", {\n slug: \"finmei-list-invoices\",\n name: \"List Invoices\",\n description: \"Tool to list invoices. Use when you need a paginated list of invoices with basic details.\",\n input: FinmeiListInvoicesInput,\n output: FinmeiListInvoicesOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,0BAA0B,EAAE,OAAO;CAC9C,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC9F,UAAU,EAAE,OAAO,CAAC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a,qBAIT,OAAO,wBAAwB;CACjC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAdsC,EAAE,OAAO;EAC/C,MAAM,wCAAwC,SAAS,CAAC,CAAC,SAAS;EAClE,UAAU,EAAE,MAAM,gCAAgC,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+DAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/list-payments.ts
@@ -1 +1 @@
1
- {"version":3,"file":"list-payments.cjs","names":["z","action"],"sources":["../../src/actions/list-payments.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiListPaymentsInput = z.object({\n limit: z.number().int().default(20).describe(\"Number of payments to retrieve (default 20, max 100)\").optional(),\n offset: z.number().int().default(0).describe(\"Number of payments to skip for pagination\").optional(),\n status: z.enum([\"pending\", \"completed\", \"failed\"]).describe(\"Filter payments by status\").optional(),\n end_date: z.string().describe(\"Filter payments created on or before this date (ISO 8601 format)\").optional(),\n start_date: z.string().describe(\"Filter payments created on or after this date (ISO 8601 format)\").optional(),\n}).describe(\"Request model for listing payments with optional filters and pagination.\");\nconst FinmeiListPayments_PaymentItemSchema = z.object({\n id: z.string().describe(\"Unique identifier of the payment\").nullable(),\n date: z.string().describe(\"Date of the payment in ISO 8601 format\").nullable(),\n mode: z.string().describe(\"Mode of the payment, e.g., bank_transfer, cash\").nullable(),\n notes: z.string().describe(\"Notes attached to the payment\").nullable().optional(),\n amount: z.number().describe(\"Amount of the payment\").nullable(),\n reference: z.string().describe(\"Payment reference provided\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the payment was created\").nullable(),\n invoice_id: z.string().describe(\"ID of the invoice associated with the payment\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when the payment was last updated\").nullable(),\n}).passthrough().describe(\"Single payment object as returned in the list\");\nexport const FinmeiListPaymentsOutput = z.object({\n limit: z.number().int().describe(\"Number of payments requested per page\").nullable().optional(),\n total: z.number().int().describe(\"Total number of payments available\").nullable().optional(),\n offset: z.number().int().describe(\"Pagination offset used in the request\").nullable().optional(),\n payments: z.array(FinmeiListPayments_PaymentItemSchema).describe(\"List of payment objects\").nullable().optional(),\n}).passthrough().describe(\"Response model for listing payments, including pagination metadata.\");\n\nexport const finmeiListPayments = action(\"FINMEI_LIST_PAYMENTS\", {\n slug: \"finmei-list-payments\",\n name: \"List Payments\",\n description: \"Tool to retrieve a list of payments. Use when you need to view past payment records with optional filters and pagination.\",\n input: FinmeiListPaymentsInput,\n output: FinmeiListPaymentsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAC9G,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACnG,QAAQA,IAAAA,EAAE,KAAK;EAAC;EAAW;EAAa;CAAQ,CAAC,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAClG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CAC3G,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;AAC9G,CAAC,CAAC,CAAC,SAAS,0EAA0E;AACtF,MAAM,uCAAuCA,IAAAA,EAAE,OAAO;CACpD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CACrE,MAAMA,IAAAA,EAA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AAC,SAAS,qEAAqE;AAE/F,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"list-payments.cjs","names":["z","action"],"sources":["../../src/actions/list-payments.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { finmei } from \"../app\";\n\nexport const FinmeiListPaymentsInput = z.object({\n limit: z.number().int().default(20).describe(\"Number of payments to retrieve (default 20, max 100)\").optional(),\n offset: z.number().int().default(0).describe(\"Number of payments to skip for pagination\").optional(),\n status: z.enum([\"pending\", \"completed\", \"failed\"]).describe(\"Filter payments by status\").optional(),\n end_date: z.string().describe(\"Filter payments created on or before this date (ISO 8601 format)\").optional(),\n start_date: z.string().describe(\"Filter payments created on or after this date (ISO 8601 format)\").optional(),\n}).describe(\"Request model for listing payments with optional filters and pagination.\");\nconst FinmeiListPayments_PaymentItemSchema = z.object({\n id: z.string().describe(\"Unique identifier of the payment\").nullable(),\n date: z.string().describe(\"Date of the payment in ISO 8601 format\").nullable(),\n mode: z.string().describe(\"Mode of the payment, e.g., bank_transfer, cash\").nullable(),\n notes: z.string().describe(\"Notes attached to the payment\").nullable().optional(),\n amount: z.number().describe(\"Amount of the payment\").nullable(),\n reference: z.string().describe(\"Payment reference provided\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the payment was created\").nullable(),\n invoice_id: z.string().describe(\"ID of the invoice associated with the payment\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when the payment was last updated\").nullable(),\n}).passthrough().describe(\"Single payment object as returned in the list\");\nexport const FinmeiListPaymentsOutput = z.object({\n limit: z.number().int().describe(\"Number of payments requested per page\").nullable().optional(),\n total: z.number().int().describe(\"Total number of payments available\").nullable().optional(),\n offset: z.number().int().describe(\"Pagination offset used in the request\").nullable().optional(),\n payments: z.array(FinmeiListPayments_PaymentItemSchema).describe(\"List of payment objects\").nullable().optional(),\n}).passthrough().describe(\"Response model for listing payments, including pagination metadata.\");\n\nexport const finmeiListPayments: AppAction<\n typeof FinmeiListPaymentsInput,\n typeof FinmeiListPaymentsOutput,\n typeof finmei.credential\n> = action(\"FINMEI_LIST_PAYMENTS\", {\n slug: \"finmei-list-payments\",\n name: \"List Payments\",\n description: \"Tool to retrieve a list of payments. Use when you need to view past payment records with optional filters and pagination.\",\n input: FinmeiListPaymentsInput,\n output: FinmeiListPaymentsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAC9G,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACnG,QAAQA,IAAAA,EAAE,KAAK;EAAC;EAAW;EAAa;CAAQ,CAAC,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAClG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CAC3G,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;AAC9G,CAAC,CAAC,CAAC,SAAS,0EAA0E;AACtF,MAAM,uCAAuCA,IAAAA,EAAE,OAAO;CACpD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CACrE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC7E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACrF,OAAOA,IAAAA,EAAE,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finmei } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/list-payments.d.ts
@@ -28,13 +30,7 @@ declare const FinmeiListPaymentsOutput: z.ZodObject<{
28
30
  updated_at: z.ZodNullable<z.ZodString>;
29
31
  }, z.core.$loose>>>>;
30
32
  }, z.core.$loose>;
31
- declare const finmeiListPayments: import("@keystrokehq/action").WorkflowActionDefinition<{
32
- limit?: number | undefined;
33
- offset?: number | undefined;
34
- status?: "pending" | "completed" | "failed" | undefined;
35
- end_date?: string | undefined;
36
- start_date?: string | undefined;
37
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
33
+ declare const finmeiListPayments: AppAction<typeof FinmeiListPaymentsInput, typeof FinmeiListPaymentsOutput, typeof finmei.credential>;
38
34
  //#endregion
39
35
  export { finmeiListPayments };
40
36
  //# sourceMappingURL=list-payments.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-payments.d.cts","names":[],"sources":["../../src/actions/list-payments.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;cAkBvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAOxB,kBAAA,gCAAkB,wBAAA"}
1
+ {"version":3,"file":"list-payments.d.cts","names":[],"sources":["../../src/actions/list-payments.ts"],"mappings":";;;;;cAMa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;cAkBvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAOxB,kBAAA,EAAoB,SAAA,QACxB,uBAAA,SACA,wBAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { finmei } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/list-payments.d.ts
@@ -28,13 +30,7 @@ declare const FinmeiListPaymentsOutput: z.ZodObject<{
28
30
  updated_at: z.ZodNullable<z.ZodString>;
29
31
  }, z.core.$loose>>>>;
30
32
  }, z.core.$loose>;
31
- declare const finmeiListPayments: import("@keystrokehq/action").WorkflowActionDefinition<{
32
- limit?: number | undefined;
33
- offset?: number | undefined;
34
- status?: "pending" | "completed" | "failed" | undefined;
35
- end_date?: string | undefined;
36
- start_date?: string | undefined;
37
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
33
+ declare const finmeiListPayments: AppAction<typeof FinmeiListPaymentsInput, typeof FinmeiListPaymentsOutput, typeof finmei.credential>;
38
34
  //#endregion
39
35
  export { finmeiListPayments };
40
36
  //# sourceMappingURL=list-payments.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-payments.d.mts","names":[],"sources":["../../src/actions/list-payments.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;cAkBvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAOxB,kBAAA,gCAAkB,wBAAA"}
1
+ {"version":3,"file":"list-payments.d.mts","names":[],"sources":["../../src/actions/list-payments.ts"],"mappings":";;;;;cAMa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;cAkBvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAOxB,kBAAA,EAAoB,SAAA,QACxB,uBAAA,SACA,wBAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/list-payments.ts
@@ -1 +1 @@
1
- {"version":3,"file":"list-payments.mjs","names":[],"sources":["../../src/actions/list-payments.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiListPaymentsInput = z.object({\n limit: z.number().int().default(20).describe(\"Number of payments to retrieve (default 20, max 100)\").optional(),\n offset: z.number().int().default(0).describe(\"Number of payments to skip for pagination\").optional(),\n status: z.enum([\"pending\", \"completed\", \"failed\"]).describe(\"Filter payments by status\").optional(),\n end_date: z.string().describe(\"Filter payments created on or before this date (ISO 8601 format)\").optional(),\n start_date: z.string().describe(\"Filter payments created on or after this date (ISO 8601 format)\").optional(),\n}).describe(\"Request model for listing payments with optional filters and pagination.\");\nconst FinmeiListPayments_PaymentItemSchema = z.object({\n id: z.string().describe(\"Unique identifier of the payment\").nullable(),\n date: z.string().describe(\"Date of the payment in ISO 8601 format\").nullable(),\n mode: z.string().describe(\"Mode of the payment, e.g., bank_transfer, cash\").nullable(),\n notes: z.string().describe(\"Notes attached to the payment\").nullable().optional(),\n amount: z.number().describe(\"Amount of the payment\").nullable(),\n reference: z.string().describe(\"Payment reference provided\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the payment was created\").nullable(),\n invoice_id: z.string().describe(\"ID of the invoice associated with the payment\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when the payment was last updated\").nullable(),\n}).passthrough().describe(\"Single payment object as returned in the list\");\nexport const FinmeiListPaymentsOutput = z.object({\n limit: z.number().int().describe(\"Number of payments requested per page\").nullable().optional(),\n total: z.number().int().describe(\"Total number of payments available\").nullable().optional(),\n offset: z.number().int().describe(\"Pagination offset used in the request\").nullable().optional(),\n payments: z.array(FinmeiListPayments_PaymentItemSchema).describe(\"List of payment objects\").nullable().optional(),\n}).passthrough().describe(\"Response model for listing payments, including pagination metadata.\");\n\nexport const finmeiListPayments = action(\"FINMEI_LIST_PAYMENTS\", {\n slug: \"finmei-list-payments\",\n name: \"List Payments\",\n description: \"Tool to retrieve a list of payments. Use when you need to view past payment records with optional filters and pagination.\",\n input: FinmeiListPaymentsInput,\n output: FinmeiListPaymentsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0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1F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAA+C;AAQzE,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAZsC,EAAE,OAAO;EAC/C,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9F,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3F,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/F,UAAU,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qEAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"list-payments.mjs","names":[],"sources":["../../src/actions/list-payments.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { finmei } from \"../app\";\n\nexport const FinmeiListPaymentsInput = z.object({\n limit: z.number().int().default(20).describe(\"Number of payments to retrieve (default 20, max 100)\").optional(),\n offset: z.number().int().default(0).describe(\"Number of payments to skip for pagination\").optional(),\n status: z.enum([\"pending\", \"completed\", \"failed\"]).describe(\"Filter payments by status\").optional(),\n end_date: z.string().describe(\"Filter payments created on or before this date (ISO 8601 format)\").optional(),\n start_date: z.string().describe(\"Filter payments created on or after this date (ISO 8601 format)\").optional(),\n}).describe(\"Request model for listing payments with optional filters and pagination.\");\nconst FinmeiListPayments_PaymentItemSchema = z.object({\n id: z.string().describe(\"Unique identifier of the payment\").nullable(),\n date: z.string().describe(\"Date of the payment in ISO 8601 format\").nullable(),\n mode: z.string().describe(\"Mode of the payment, e.g., bank_transfer, cash\").nullable(),\n notes: z.string().describe(\"Notes attached to the payment\").nullable().optional(),\n amount: z.number().describe(\"Amount of the payment\").nullable(),\n reference: z.string().describe(\"Payment reference provided\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the payment was created\").nullable(),\n invoice_id: z.string().describe(\"ID of the invoice associated with the payment\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when the payment was last updated\").nullable(),\n}).passthrough().describe(\"Single payment object as returned in the list\");\nexport const FinmeiListPaymentsOutput = z.object({\n limit: z.number().int().describe(\"Number of payments requested per page\").nullable().optional(),\n total: z.number().int().describe(\"Total number of payments available\").nullable().optional(),\n offset: z.number().int().describe(\"Pagination offset used in the request\").nullable().optional(),\n payments: z.array(FinmeiListPayments_PaymentItemSchema).describe(\"List of payment objects\").nullable().optional(),\n}).passthrough().describe(\"Response model for listing payments, including pagination metadata.\");\n\nexport const finmeiListPayments: AppAction<\n typeof FinmeiListPaymentsInput,\n typeof FinmeiListPaymentsOutput,\n typeof finmei.credential\n> = action(\"FINMEI_LIST_PAYMENTS\", {\n slug: \"finmei-list-payments\",\n name: \"List Payments\",\n description: \"Tool to retrieve a list of payments. Use when you need to view past payment records with optional filters and pagination.\",\n input: FinmeiListPaymentsInput,\n output: FinmeiListPaymentsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,0BAA0B,EAAE,OAAO;CAC9C,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAC9G,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACnG,QAAQ,EAAE,KAAK;EAAC;EAAW;EAAa;CAAQ,CAAC,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAClG,UAAU,EAAE,OA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,SAAS;EAC3F,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/F,UAAU,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qEAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/list-products.ts
@@ -1 +1 @@
1
- {"version":3,"file":"list-products.cjs","names":["z","action"],"sources":["../../src/actions/list-products.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiListProductsInput = z.object({\n name: z.string().describe(\"Filter products by name substring.\").optional(),\n page: z.number().int().default(1).describe(\"Page number for pagination (1-indexed).\").optional(),\n status: z.enum([\"active\", \"inactive\"]).describe(\"Filter products by their status.\").optional(),\n per_page: z.number().int().default(20).describe(\"Number of products per page.\").optional(),\n}).describe(\"Optional filters and pagination for listing products.\");\nconst FinmeiListProducts_ProductSchema = z.object({\n id: z.string().describe(\"Unique identifier of the product\").nullable(),\n name: z.string().describe(\"Name of the product\").nullable(),\n price: z.number().describe(\"Price of the product in the account's currency\").nullable(),\n status: z.enum([\"active\", \"inactive\"]).describe(\"Current status of the product\").nullable(),\n created_at: z.string().describe(\"ISO 8601 timestamp when the product was created\").nullable().optional(),\n updated_at: z.string().describe(\"ISO 8601 timestamp when the product was last updated\").nullable().optional(),\n description: z.string().describe(\"Description of the product\").nullable().optional(),\n}).passthrough().describe(\"Schema for a product object returned by the API\");\nconst FinmeiListProducts_PaginationSchema = z.object({\n page: z.number().int().describe(\"Current page number\").nullable(),\n per_page: z.number().int().describe(\"Number of items per page\").nullable(),\n total_items: z.number().int().describe(\"Total number of items across all pages\").nullable(),\n total_pages: z.number().int().describe(\"Total number of pages available\").nullable(),\n}).passthrough().describe(\"Pagination metadata for list endpoints\");\nexport const FinmeiListProductsOutput = z.object({\n products: z.array(FinmeiListProducts_ProductSchema).describe(\"List of products matching the query\"),\n pagination: FinmeiListProducts_PaginationSchema.nullable(),\n}).passthrough().describe(\"Response schema when listing products\");\n\nexport const finmeiListProducts = action(\"FINMEI_LIST_PRODUCTS\", {\n slug: \"finmei-list-products\",\n name: \"List Products\",\n description: \"Tool to retrieve a list of products with optional filters and pagination. Use when you need to browse or filter the product catalog.\",\n input: FinmeiListProductsInput,\n output: FinmeiListProductsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACzE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC/F,QAAQA,IAAAA,EAAE,KAAK,CAAC,UAAU,UAAU,CAAC,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAC7F,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;AAC3F,CAAC,CAAC,CAAC,SAAS,uDAAuD;AACnE,MAAM,mCAAmCA,IAAAA,EAAE,OAAO;CAChD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CACrE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC1D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACtF,QAAQA,IAAAA,EAAE,KAAK,CAAC,UAAU,UAAU,CAAC,CAAC,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"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { finmei } from \"../app\";\n\nexport const FinmeiListProductsInput = z.object({\n name: z.string().describe(\"Filter products by name substring.\").optional(),\n page: z.number().int().default(1).describe(\"Page number for pagination (1-indexed).\").optional(),\n status: z.enum([\"active\", \"inactive\"]).describe(\"Filter products by their status.\").optional(),\n per_page: z.number().int().default(20).describe(\"Number of products per page.\").optional(),\n}).describe(\"Optional filters and pagination for listing products.\");\nconst FinmeiListProducts_ProductSchema = z.object({\n id: z.string().describe(\"Unique identifier of the product\").nullable(),\n name: z.string().describe(\"Name of the product\").nullable(),\n price: z.number().describe(\"Price of the product in the account's currency\").nullable(),\n status: z.enum([\"active\", \"inactive\"]).describe(\"Current status of the product\").nullable(),\n created_at: z.string().describe(\"ISO 8601 timestamp when the product was created\").nullable().optional(),\n updated_at: z.string().describe(\"ISO 8601 timestamp when the product was last updated\").nullable().optional(),\n description: z.string().describe(\"Description of the product\").nullable().optional(),\n}).passthrough().describe(\"Schema for a product object returned by the API\");\nconst FinmeiListProducts_PaginationSchema = z.object({\n page: z.number().int().describe(\"Current page number\").nullable(),\n per_page: z.number().int().describe(\"Number of items per page\").nullable(),\n total_items: z.number().int().describe(\"Total number of items across all pages\").nullable(),\n total_pages: z.number().int().describe(\"Total number of pages available\").nullable(),\n}).passthrough().describe(\"Pagination metadata for list endpoints\");\nexport const FinmeiListProductsOutput = z.object({\n products: z.array(FinmeiListProducts_ProductSchema).describe(\"List of products matching the query\"),\n pagination: FinmeiListProducts_PaginationSchema.nullable(),\n}).passthrough().describe(\"Response schema when listing products\");\n\nexport const finmeiListProducts: AppAction<\n typeof FinmeiListProductsInput,\n typeof FinmeiListProductsOutput,\n typeof finmei.credential\n> = action(\"FINMEI_LIST_PRODUCTS\", {\n slug: \"finmei-list-products\",\n name: \"List Products\",\n description: \"Tool to retrieve a list of products with optional filters and pagination. Use when you need to browse or filter the product catalog.\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AAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAC3E,MAAM,sCAAsCA,IAAAA,EAAE,OAAO;CACnD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAChE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CACzE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC1F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;AACrF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAAwC;AAClE,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,UAAUA,IAAAA,EAAE,MAAM,gCAAgC,CAAC,CAAC,SAAS,qCAAqC;CAClG,YAAY,oCAAoC,SAAS;AAC3D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AAEjE,MAAa,qBAITC,eAAAA,OAAO,wBAAwB;CACjC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { finmei } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/list-products.d.ts
@@ -30,12 +32,7 @@ declare const FinmeiListProductsOutput: z.ZodObject<{
30
32
  total_pages: z.ZodNullable<z.ZodNumber>;
31
33
  }, z.core.$loose>>;
32
34
  }, z.core.$loose>;
33
- declare const finmeiListProducts: import("@keystrokehq/action").WorkflowActionDefinition<{
34
- name?: string | undefined;
35
- page?: number | undefined;
36
- status?: "active" | "inactive" | undefined;
37
- per_page?: number | undefined;
38
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
35
+ declare const finmeiListProducts: AppAction<typeof FinmeiListProductsInput, typeof FinmeiListProductsOutput, typeof finmei.credential>;
39
36
  //#endregion
40
37
  export { finmeiListProducts };
41
38
  //# sourceMappingURL=list-products.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-products.d.cts","names":[],"sources":["../../src/actions/list-products.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;cAqBvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAKxB,kBAAA,gCAAkB,wBAAA"}
1
+ {"version":3,"file":"list-products.d.cts","names":[],"sources":["../../src/actions/list-products.ts"],"mappings":";;;;;cAMa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;cAqBvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAKxB,kBAAA,EAAoB,SAAA,QACxB,uBAAA,SACA,wBAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { finmei } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/list-products.d.ts
@@ -30,12 +32,7 @@ declare const FinmeiListProductsOutput: z.ZodObject<{
30
32
  total_pages: z.ZodNullable<z.ZodNumber>;
31
33
  }, z.core.$loose>>;
32
34
  }, z.core.$loose>;
33
- declare const finmeiListProducts: import("@keystrokehq/action").WorkflowActionDefinition<{
34
- name?: string | undefined;
35
- page?: number | undefined;
36
- status?: "active" | "inactive" | undefined;
37
- per_page?: number | undefined;
38
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
35
+ declare const finmeiListProducts: AppAction<typeof FinmeiListProductsInput, typeof FinmeiListProductsOutput, typeof finmei.credential>;
39
36
  //#endregion
40
37
  export { finmeiListProducts };
41
38
  //# sourceMappingURL=list-products.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-products.d.mts","names":[],"sources":["../../src/actions/list-products.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;cAqBvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAKxB,kBAAA,gCAAkB,wBAAA"}
1
+ {"version":3,"file":"list-products.d.mts","names":[],"sources":["../../src/actions/list-products.ts"],"mappings":";;;;;cAMa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;cAqBvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAKxB,kBAAA,EAAoB,SAAA,QACxB,uBAAA,SACA,wBAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/list-products.ts
@@ -1 +1 @@
1
- {"version":3,"file":"list-products.mjs","names":[],"sources":["../../src/actions/list-products.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiListProductsInput = z.object({\n name: z.string().describe(\"Filter products by name substring.\").optional(),\n page: z.number().int().default(1).describe(\"Page number for pagination (1-indexed).\").optional(),\n status: z.enum([\"active\", \"inactive\"]).describe(\"Filter products by their status.\").optional(),\n per_page: z.number().int().default(20).describe(\"Number of products per page.\").optional(),\n}).describe(\"Optional filters and pagination for listing products.\");\nconst FinmeiListProducts_ProductSchema = z.object({\n id: z.string().describe(\"Unique identifier of the product\").nullable(),\n name: z.string().describe(\"Name of the product\").nullable(),\n price: z.number().describe(\"Price of the product in the account's currency\").nullable(),\n status: z.enum([\"active\", \"inactive\"]).describe(\"Current status of the product\").nullable(),\n created_at: z.string().describe(\"ISO 8601 timestamp when the product was created\").nullable().optional(),\n updated_at: z.string().describe(\"ISO 8601 timestamp when the product was last updated\").nullable().optional(),\n description: z.string().describe(\"Description of the product\").nullable().optional(),\n}).passthrough().describe(\"Schema for a product object returned by the API\");\nconst FinmeiListProducts_PaginationSchema = z.object({\n page: z.number().int().describe(\"Current page number\").nullable(),\n per_page: z.number().int().describe(\"Number of items per page\").nullable(),\n total_items: z.number().int().describe(\"Total number of items across all pages\").nullable(),\n total_pages: z.number().int().describe(\"Total number of pages available\").nullable(),\n}).passthrough().describe(\"Pagination metadata for list endpoints\");\nexport const FinmeiListProductsOutput = z.object({\n products: z.array(FinmeiListProducts_ProductSchema).describe(\"List of products matching the query\"),\n pagination: FinmeiListProducts_PaginationSchema.nullable(),\n}).passthrough().describe(\"Response schema when listing products\");\n\nexport const finmeiListProducts = action(\"FINMEI_LIST_PRODUCTS\", {\n slug: \"finmei-list-products\",\n name: \"List Products\",\n description: \"Tool to retrieve a list of products with optional filters and pagination. Use when you need to browse or filter the product catalog.\",\n input: FinmeiListProductsInput,\n output: FinmeiListProductsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0B,EAAE,OAAO;CAC9C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACzE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC/F,QAAQ,EAAE,KAAK,CAAC,UAAU,UAAU,CAAC,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAC7F,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;AAC3F,CAAC,CAAC,CAAC,SAAS,uDAAuD;AACnE,MAAM,mCAAmC,EAAE,OAAO;CAChD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CA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C,CAAC,SAAS,uCAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"list-products.mjs","names":[],"sources":["../../src/actions/list-products.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { finmei } from \"../app\";\n\nexport const FinmeiListProductsInput = z.object({\n name: z.string().describe(\"Filter products by name substring.\").optional(),\n page: z.number().int().default(1).describe(\"Page number for pagination (1-indexed).\").optional(),\n status: z.enum([\"active\", \"inactive\"]).describe(\"Filter products by their status.\").optional(),\n per_page: z.number().int().default(20).describe(\"Number of products per page.\").optional(),\n}).describe(\"Optional filters and pagination for listing products.\");\nconst FinmeiListProducts_ProductSchema = z.object({\n id: z.string().describe(\"Unique identifier of the product\").nullable(),\n name: z.string().describe(\"Name of the product\").nullable(),\n price: z.number().describe(\"Price of the product in the account's currency\").nullable(),\n status: z.enum([\"active\", \"inactive\"]).describe(\"Current status of the product\").nullable(),\n created_at: z.string().describe(\"ISO 8601 timestamp when the product was created\").nullable().optional(),\n updated_at: z.string().describe(\"ISO 8601 timestamp when the product was last updated\").nullable().optional(),\n description: z.string().describe(\"Description of the product\").nullable().optional(),\n}).passthrough().describe(\"Schema for a product object returned by the API\");\nconst FinmeiListProducts_PaginationSchema = z.object({\n page: z.number().int().describe(\"Current page number\").nullable(),\n per_page: z.number().int().describe(\"Number of items per page\").nullable(),\n total_items: z.number().int().describe(\"Total number of items across all pages\").nullable(),\n total_pages: z.number().int().describe(\"Total number of pages available\").nullable(),\n}).passthrough().describe(\"Pagination metadata for list endpoints\");\nexport const FinmeiListProductsOutput = z.object({\n products: z.array(FinmeiListProducts_ProductSchema).describe(\"List of products matching the query\"),\n pagination: FinmeiListProducts_PaginationSchema.nullable(),\n}).passthrough().describe(\"Response schema when listing products\");\n\nexport const finmeiListProducts: AppAction<\n typeof FinmeiListProductsInput,\n typeof FinmeiListProductsOutput,\n typeof finmei.credential\n> = action(\"FINMEI_LIST_PRODUCTS\", {\n slug: \"finmei-list-products\",\n name: \"List Products\",\n description: \"Tool to retrieve a list of products with optional filters and pagination. Use when you need to browse or filter the product catalog.\",\n input: FinmeiListProductsInput,\n output: FinmeiListProductsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,0BAA0B,EAAE,OAAO;CAC9C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACzE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC/F,QAAQ,EAAE,KAAK,CAAC,UAAU,UAAU,CAAC,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAC7F,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;AAC3F,CAAC,CAAC,CAAC,SAAS,uDAAuD;AACnE,MAAM,mCAAmC,EAAE,OAAO;CAChD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CACrE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC1D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACtF,QAAQ,EAAE,KAAK,CAAC,UAAU,UAAU,CAAC,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAC1F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAC3E,MAAM,sCAAsC,EAAE,OAAO;CACnD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAChE,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CACzE,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC1F,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;AACrF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAAwC;AAMlE,MAAa,qBAIT,OAAO,wBAAwB;CACjC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAdsC,EAAE,OAAO;EAC/C,UAAU,EAAE,MAAM,gCAAgC,CAAC,CAAC,SAAS,qCAAqC;EAClG,YAAY,oCAAoC,SAAS;CAC3D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/update-customer.ts
@@ -1 +1 @@
1
- {"version":3,"file":"update-customer.cjs","names":["z","action"],"sources":["../../src/actions/update-customer.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiUpdateCustomerInput = z.object({\n name: z.string().describe(\"Full name of the customer\").optional(),\n email: z.string().describe(\"Email address of the customer\").optional(),\n phone: z.string().describe(\"Phone number of the customer\").optional(),\n address: z.object({\n city: z.string().describe(\"City of the customer's address\").optional(),\n state: z.string().describe(\"State or province of the customer's address\").optional(),\n street: z.string().describe(\"Street address of the customer\").optional(),\n country: z.string().describe(\"Country code (ISO 3166-1 alpha-2)\").optional(),\n postal_code: z.string().describe(\"Postal or ZIP code of the customer's address\").optional(),\n}).describe(\"Mailing address details\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Additional metadata for the customer as key-value pairs\").optional(),\n customer_id: z.string().describe(\"Unique identifier of the customer to update\"),\n}).describe(\"Request model for updating an existing customer\");\nconst FinmeiUpdateCustomer_AddressSchema = z.object({\n city: z.string().describe(\"City of the customer's address\").nullable().optional(),\n state: z.string().describe(\"State or province of the customer's address\").nullable().optional(),\n street: z.string().describe(\"Street address of the customer\").nullable().optional(),\n country: z.string().describe(\"Country code (ISO 3166-1 alpha-2)\").nullable().optional(),\n postal_code: z.string().describe(\"Postal or ZIP code of the customer's address\").nullable().optional(),\n}).passthrough().describe(\"Mailing address details\");\nconst FinmeiUpdateCustomer_CustomerSchema = z.object({\n id: z.string().describe(\"Unique identifier of the customer\").nullable(),\n name: z.string().describe(\"Full name of the customer\").nullable().optional(),\n email: z.string().describe(\"Email address of the customer\").nullable().optional(),\n phone: z.string().describe(\"Phone number of the customer\").nullable().optional(),\n address: FinmeiUpdateCustomer_AddressSchema.nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Additional metadata associated with the customer\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the customer was created\").nullable(),\n updated_at: z.string().describe(\"Timestamp when the customer was last updated\").nullable(),\n}).passthrough();\nexport const FinmeiUpdateCustomerOutput = z.object({\n customer: FinmeiUpdateCustomer_CustomerSchema.nullable(),\n}).passthrough().describe(\"Response model containing the updated customer record\");\n\nexport const finmeiUpdateCustomer = action(\"FINMEI_UPDATE_CUSTOMER\", {\n slug: \"finmei-update-customer\",\n name: \"Update Customer\",\n description: \"Tool to update an existing customer's details. Use after confirming the customer ID to modify their information.\",\n input: FinmeiUpdateCustomerInput,\n output: FinmeiUpdateCustomerOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,MAAMA,IAAAA,EAAE,OAAO,CAAC,C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O;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"update-customer.cjs","names":["z","action"],"sources":["../../src/actions/update-customer.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { finmei } from \"../app\";\n\nexport const FinmeiUpdateCustomerInput = z.object({\n name: z.string().describe(\"Full name of the customer\").optional(),\n email: z.string().describe(\"Email address of the customer\").optional(),\n phone: z.string().describe(\"Phone number of the customer\").optional(),\n address: z.object({\n city: z.string().describe(\"City of the customer's address\").optional(),\n state: z.string().describe(\"State or province of the customer's address\").optional(),\n street: z.string().describe(\"Street address of the customer\").optional(),\n country: z.string().describe(\"Country code (ISO 3166-1 alpha-2)\").optional(),\n postal_code: z.string().describe(\"Postal or ZIP code of the customer's address\").optional(),\n}).describe(\"Mailing address details\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Additional metadata for the customer as key-value pairs\").optional(),\n customer_id: z.string().describe(\"Unique identifier of the customer to update\"),\n}).describe(\"Request model for updating an existing customer\");\nconst FinmeiUpdateCustomer_AddressSchema = z.object({\n city: z.string().describe(\"City of the customer's address\").nullable().optional(),\n state: z.string().describe(\"State or province of the customer's address\").nullable().optional(),\n street: z.string().describe(\"Street address of the customer\").nullable().optional(),\n country: z.string().describe(\"Country code (ISO 3166-1 alpha-2)\").nullable().optional(),\n postal_code: z.string().describe(\"Postal or ZIP code of the customer's address\").nullable().optional(),\n}).passthrough().describe(\"Mailing address details\");\nconst FinmeiUpdateCustomer_CustomerSchema = z.object({\n id: z.string().describe(\"Unique identifier of the customer\").nullable(),\n name: z.string().describe(\"Full name of the customer\").nullable().optional(),\n email: z.string().describe(\"Email address of the customer\").nullable().optional(),\n phone: z.string().describe(\"Phone number of the customer\").nullable().optional(),\n address: FinmeiUpdateCustomer_AddressSchema.nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Additional metadata associated with the customer\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the customer was created\").nullable(),\n updated_at: z.string().describe(\"Timestamp when the customer was last updated\").nullable(),\n}).passthrough();\nexport const FinmeiUpdateCustomerOutput = z.object({\n customer: FinmeiUpdateCustomer_CustomerSchema.nullable(),\n}).passthrough().describe(\"Response model containing the updated customer record\");\n\nexport const finmeiUpdateCustomer: AppAction<\n typeof FinmeiUpdateCustomerInput,\n typeof FinmeiUpdateCustomerOutput,\n typeof finmei.credential\n> = action(\"FINMEI_UPDATE_CUSTOMER\", {\n slug: \"finmei-update-customer\",\n name: \"Update Customer\",\n description: \"Tool to update an existing customer's details. Use after confirming the customer ID to modify their information.\",\n input: FinmeiUpdateCustomerInput,\n output: FinmeiUpdateCustomerOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAChE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACrE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACpE,SAASA,IAAAA,EAAE,OAAO;EAClB,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;EACrE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;EACnF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;EACvE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EAC3E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CAC5F,CAAC,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAC9C,UAAUA,IAAAA,EA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ChE,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7H,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CACpF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;AAC3F,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,UAAU,oCAAoC,SAAS,EACzD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uDAAuD;AAEjF,MAAa,uBAITC,eAAAA,OAAO,0BAA0B;CACnC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { finmei } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/update-customer.d.ts
@@ -33,20 +35,7 @@ declare const FinmeiUpdateCustomerOutput: z.ZodObject<{
33
35
  updated_at: z.ZodNullable<z.ZodString>;
34
36
  }, z.core.$loose>>;
35
37
  }, z.core.$loose>;
36
- declare const finmeiUpdateCustomer: import("@keystrokehq/action").WorkflowActionDefinition<{
37
- customer_id: string;
38
- name?: string | undefined;
39
- email?: string | undefined;
40
- phone?: string | undefined;
41
- address?: {
42
- city?: string | undefined;
43
- state?: string | undefined;
44
- street?: string | undefined;
45
- country?: string | undefined;
46
- postal_code?: string | undefined;
47
- } | undefined;
48
- metadata?: Record<string, unknown> | undefined;
49
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
38
+ declare const finmeiUpdateCustomer: AppAction<typeof FinmeiUpdateCustomerInput, typeof FinmeiUpdateCustomerOutput, typeof finmei.credential>;
50
39
  //#endregion
51
40
  export { finmeiUpdateCustomer };
52
41
  //# sourceMappingURL=update-customer.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"update-customer.d.cts","names":[],"sources":["../../src/actions/update-customer.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cA+BzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAI1B,oBAAA,gCAAoB,wBAAA;;;;;;;;;;;;aAM/B,MAAA;AAAA"}
1
+ {"version":3,"file":"update-customer.d.cts","names":[],"sources":["../../src/actions/update-customer.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cA+BzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAI1B,oBAAA,EAAsB,SAAA,QAC1B,yBAAA,SACA,0BAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { finmei } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/update-customer.d.ts
@@ -33,20 +35,7 @@ declare const FinmeiUpdateCustomerOutput: z.ZodObject<{
33
35
  updated_at: z.ZodNullable<z.ZodString>;
34
36
  }, z.core.$loose>>;
35
37
  }, z.core.$loose>;
36
- declare const finmeiUpdateCustomer: import("@keystrokehq/action").WorkflowActionDefinition<{
37
- customer_id: string;
38
- name?: string | undefined;
39
- email?: string | undefined;
40
- phone?: string | undefined;
41
- address?: {
42
- city?: string | undefined;
43
- state?: string | undefined;
44
- street?: string | undefined;
45
- country?: string | undefined;
46
- postal_code?: string | undefined;
47
- } | undefined;
48
- metadata?: Record<string, unknown> | undefined;
49
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
38
+ declare const finmeiUpdateCustomer: AppAction<typeof FinmeiUpdateCustomerInput, typeof FinmeiUpdateCustomerOutput, typeof finmei.credential>;
50
39
  //#endregion
51
40
  export { finmeiUpdateCustomer };
52
41
  //# sourceMappingURL=update-customer.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"update-customer.d.mts","names":[],"sources":["../../src/actions/update-customer.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cA+BzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAI1B,oBAAA,gCAAoB,wBAAA;;;;;;;;;;;;aAM/B,MAAA;AAAA"}
1
+ {"version":3,"file":"update-customer.d.mts","names":[],"sources":["../../src/actions/update-customer.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cA+BzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAI1B,oBAAA,EAAsB,SAAA,QAC1B,yBAAA,SACA,0BAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/update-customer.ts