@keystrokehq/finmei 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (139) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/create-expense.d.cts +1 -11
  4. package/dist/actions/create-expense.d.mts +1 -11
  5. package/dist/actions/create-invoice.cjs +63 -63
  6. package/dist/actions/create-invoice.cjs.map +1 -1
  7. package/dist/actions/create-invoice.d.cts +64 -133
  8. package/dist/actions/create-invoice.d.cts.map +1 -1
  9. package/dist/actions/create-invoice.d.mts +64 -133
  10. package/dist/actions/create-invoice.d.mts.map +1 -1
  11. package/dist/actions/create-invoice.mjs +63 -63
  12. package/dist/actions/create-invoice.mjs.map +1 -1
  13. package/dist/actions/delete-customer.d.cts +1 -1
  14. package/dist/actions/delete-customer.d.cts.map +1 -1
  15. package/dist/actions/delete-customer.d.mts +1 -1
  16. package/dist/actions/delete-customer.d.mts.map +1 -1
  17. package/dist/actions/delete-invoice.cjs +1 -1
  18. package/dist/actions/delete-invoice.cjs.map +1 -1
  19. package/dist/actions/delete-invoice.d.cts +2 -5
  20. package/dist/actions/delete-invoice.d.mts +2 -5
  21. package/dist/actions/delete-invoice.mjs +1 -1
  22. package/dist/actions/delete-invoice.mjs.map +1 -1
  23. package/dist/actions/delete-payment.d.cts +1 -3
  24. package/dist/actions/delete-payment.d.mts +1 -3
  25. package/dist/actions/delete-product.cjs +1 -1
  26. package/dist/actions/delete-product.cjs.map +1 -1
  27. package/dist/actions/delete-product.d.cts +2 -5
  28. package/dist/actions/delete-product.d.mts +2 -5
  29. package/dist/actions/delete-product.mjs +1 -1
  30. package/dist/actions/delete-product.mjs.map +1 -1
  31. package/dist/actions/download-expense-file.d.cts +1 -7
  32. package/dist/actions/download-expense-file.d.mts +1 -7
  33. package/dist/actions/download-invoice-pdf.d.cts +1 -7
  34. package/dist/actions/download-invoice-pdf.d.mts +1 -7
  35. package/dist/actions/get-expense.d.cts +1 -11
  36. package/dist/actions/get-expense.d.mts +1 -11
  37. package/dist/actions/get-invoice.cjs +25 -25
  38. package/dist/actions/get-invoice.cjs.map +1 -1
  39. package/dist/actions/get-invoice.d.cts +26 -77
  40. package/dist/actions/get-invoice.d.cts.map +1 -1
  41. package/dist/actions/get-invoice.d.mts +26 -77
  42. package/dist/actions/get-invoice.d.mts.map +1 -1
  43. package/dist/actions/get-invoice.mjs +25 -25
  44. package/dist/actions/get-invoice.mjs.map +1 -1
  45. package/dist/actions/get-payment.cjs +2 -2
  46. package/dist/actions/get-payment.cjs.map +1 -1
  47. package/dist/actions/get-payment.d.cts +3 -13
  48. package/dist/actions/get-payment.d.mts +3 -13
  49. package/dist/actions/get-payment.mjs +2 -2
  50. package/dist/actions/get-payment.mjs.map +1 -1
  51. package/dist/actions/get-product.cjs +1 -1
  52. package/dist/actions/get-product.cjs.map +1 -1
  53. package/dist/actions/get-product.d.cts +2 -10
  54. package/dist/actions/get-product.d.mts +2 -10
  55. package/dist/actions/get-product.mjs +1 -1
  56. package/dist/actions/get-product.mjs.map +1 -1
  57. package/dist/actions/get-profile.cjs +7 -7
  58. package/dist/actions/get-profile.cjs.map +1 -1
  59. package/dist/actions/get-profile.d.cts +8 -18
  60. package/dist/actions/get-profile.d.cts.map +1 -1
  61. package/dist/actions/get-profile.d.mts +8 -18
  62. package/dist/actions/get-profile.d.mts.map +1 -1
  63. package/dist/actions/get-profile.mjs +7 -7
  64. package/dist/actions/get-profile.mjs.map +1 -1
  65. package/dist/actions/list-currencies.cjs +1 -1
  66. package/dist/actions/list-currencies.cjs.map +1 -1
  67. package/dist/actions/list-currencies.d.cts +2 -8
  68. package/dist/actions/list-currencies.d.cts.map +1 -1
  69. package/dist/actions/list-currencies.d.mts +2 -8
  70. package/dist/actions/list-currencies.d.mts.map +1 -1
  71. package/dist/actions/list-currencies.mjs +1 -1
  72. package/dist/actions/list-currencies.mjs.map +1 -1
  73. package/dist/actions/list-customers.cjs +8 -8
  74. package/dist/actions/list-customers.cjs.map +1 -1
  75. package/dist/actions/list-customers.d.cts +9 -25
  76. package/dist/actions/list-customers.d.mts +9 -25
  77. package/dist/actions/list-customers.mjs +8 -8
  78. package/dist/actions/list-customers.mjs.map +1 -1
  79. package/dist/actions/list-expenses.cjs +11 -11
  80. package/dist/actions/list-expenses.cjs.map +1 -1
  81. package/dist/actions/list-expenses.d.cts +12 -31
  82. package/dist/actions/list-expenses.d.mts +12 -31
  83. package/dist/actions/list-expenses.mjs +11 -11
  84. package/dist/actions/list-expenses.mjs.map +1 -1
  85. package/dist/actions/list-invoices.cjs +29 -29
  86. package/dist/actions/list-invoices.cjs.map +1 -1
  87. package/dist/actions/list-invoices.d.cts +30 -92
  88. package/dist/actions/list-invoices.d.cts.map +1 -1
  89. package/dist/actions/list-invoices.d.mts +30 -92
  90. package/dist/actions/list-invoices.d.mts.map +1 -1
  91. package/dist/actions/list-invoices.mjs +29 -29
  92. package/dist/actions/list-invoices.mjs.map +1 -1
  93. package/dist/actions/list-payments.cjs +7 -7
  94. package/dist/actions/list-payments.cjs.map +1 -1
  95. package/dist/actions/list-payments.d.cts +8 -23
  96. package/dist/actions/list-payments.d.mts +8 -23
  97. package/dist/actions/list-payments.mjs +7 -7
  98. package/dist/actions/list-payments.mjs.map +1 -1
  99. package/dist/actions/list-products.cjs +3 -3
  100. package/dist/actions/list-products.cjs.map +1 -1
  101. package/dist/actions/list-products.d.cts +4 -20
  102. package/dist/actions/list-products.d.mts +4 -20
  103. package/dist/actions/list-products.mjs +3 -3
  104. package/dist/actions/list-products.mjs.map +1 -1
  105. package/dist/actions/update-customer.cjs +10 -10
  106. package/dist/actions/update-customer.cjs.map +1 -1
  107. package/dist/actions/update-customer.d.cts +11 -28
  108. package/dist/actions/update-customer.d.cts.map +1 -1
  109. package/dist/actions/update-customer.d.mts +11 -28
  110. package/dist/actions/update-customer.d.mts.map +1 -1
  111. package/dist/actions/update-customer.mjs +10 -10
  112. package/dist/actions/update-customer.mjs.map +1 -1
  113. package/dist/actions/update-expense-file.cjs +5 -5
  114. package/dist/actions/update-expense-file.cjs.map +1 -1
  115. package/dist/actions/update-expense-file.d.cts +6 -12
  116. package/dist/actions/update-expense-file.d.mts +6 -12
  117. package/dist/actions/update-expense-file.mjs +5 -5
  118. package/dist/actions/update-expense-file.mjs.map +1 -1
  119. package/dist/actions/update-expense.cjs +2 -2
  120. package/dist/actions/update-expense.cjs.map +1 -1
  121. package/dist/actions/update-expense.d.cts +3 -11
  122. package/dist/actions/update-expense.d.mts +3 -11
  123. package/dist/actions/update-expense.mjs +2 -2
  124. package/dist/actions/update-expense.mjs.map +1 -1
  125. package/dist/actions/update-invoice.cjs +52 -52
  126. package/dist/actions/update-invoice.cjs.map +1 -1
  127. package/dist/actions/update-invoice.d.cts +53 -109
  128. package/dist/actions/update-invoice.d.cts.map +1 -1
  129. package/dist/actions/update-invoice.d.mts +53 -109
  130. package/dist/actions/update-invoice.d.mts.map +1 -1
  131. package/dist/actions/update-invoice.mjs +52 -52
  132. package/dist/actions/update-invoice.mjs.map +1 -1
  133. package/dist/actions/update-product.cjs +1 -1
  134. package/dist/actions/update-product.cjs.map +1 -1
  135. package/dist/actions/update-product.d.cts +2 -10
  136. package/dist/actions/update-product.d.mts +2 -10
  137. package/dist/actions/update-product.mjs +1 -1
  138. package/dist/actions/update-product.mjs.map +1 -1
  139. package/package.json +1 -1
@@ -9,9 +9,7 @@ declare const FinmeiDeletePaymentOutput: z.ZodObject<{
9
9
  }, z.core.$strip>;
10
10
  declare const finmeiDeletePayment: import("@keystrokehq/action").WorkflowActionDefinition<{
11
11
  payment_id: string;
12
- }, {
13
- success: boolean | null;
14
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
12
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
15
13
  //#endregion
16
14
  export { finmeiDeletePayment };
17
15
  //# sourceMappingURL=delete-payment.d.cts.map
@@ -9,9 +9,7 @@ declare const FinmeiDeletePaymentOutput: z.ZodObject<{
9
9
  }, z.core.$strip>;
10
10
  declare const finmeiDeletePayment: import("@keystrokehq/action").WorkflowActionDefinition<{
11
11
  payment_id: string;
12
- }, {
13
- success: boolean | null;
14
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
12
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
15
13
  //#endregion
16
14
  export { finmeiDeletePayment };
17
15
  //# sourceMappingURL=delete-payment.d.mts.map
@@ -3,7 +3,7 @@ let zod = require("zod");
3
3
  //#region src/actions/delete-product.ts
4
4
  const FinmeiDeleteProductInput = zod.z.object({ product_id: zod.z.string().describe("Unique identifier of the product to delete. This is the product's ID as returned by list_products or get_product operations.") });
5
5
  const FinmeiDeleteProductOutput = zod.z.object({
6
- message: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Detailed message explaining the deletion outcome. Provides context about whether the product was deleted, already didn't exist, or if the API endpoint is unavailable.").optional()),
6
+ message: zod.z.string().describe("Detailed message explaining the deletion outcome. Provides context about whether the product was deleted, already didn't exist, or if the API endpoint is unavailable.").nullable().optional(),
7
7
  success: zod.z.boolean().describe("True if the product was deleted or does not exist (idempotent). False only on actual errors like authentication failures.").nullable()
8
8
  });
9
9
  const finmeiDeleteProduct = require_action.action("FINMEI_DELETE_PRODUCT", {
@@ -1 +1 @@
1
- {"version":3,"file":"delete-product.cjs","names":["z","action"],"sources":["../../src/actions/delete-product.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiDeleteProductInput = z.object({\n product_id: z.string().describe(\"Unique identifier of the product to delete. This is the product's ID as returned by list_products or get_product operations.\"),\n});\nexport const FinmeiDeleteProductOutput = z.object({\n message: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Detailed message explaining the deletion outcome. Provides context about whether the product was deleted, already didn't exist, or if the API endpoint is unavailable.\").optional()),\n success: z.boolean().describe(\"True if the product was deleted or does not exist (idempotent). False only on actual errors like authentication failures.\").nullable(),\n});\n\nexport const finmeiDeleteProduct = action(\"FINMEI_DELETE_PRODUCT\", {\n slug: \"finmei-delete-product\",\n name: \"Delete Product\",\n description: \"Deletes a product from the Finmei catalog by its unique identifier. This operation is idempotent - calling it multiple times with the same product_id will return success. The tool attempts multiple endpoint patterns to maximize compatibility across different Finmei API deployments. Use this when you need to: - Permanently remove a product from the catalog - Clean up discontinued or obsolete products - Remove test or duplicate product entries Note: If all API endpoints return 404, the action will succeed with a message explaining that the product doesn't exist or the API doesn't support deletion. This follows idempotent DELETE semantics.\",\n input: FinmeiDeleteProductInput,\n output: FinmeiDeleteProductOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO,EAC/C,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8HAA8H,EAChK,CAAC;AACD,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,SAASA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wKAAwK,CAAC,CAAC,SAAS,CAAC;CAC/Q,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,2HAA2H,CAAC,CAAC,SAAS;AACtK,CAAC;AAED,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"delete-product.cjs","names":["z","action"],"sources":["../../src/actions/delete-product.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiDeleteProductInput = z.object({\n product_id: z.string().describe(\"Unique identifier of the product to delete. This is the product's ID as returned by list_products or get_product operations.\"),\n});\nexport const FinmeiDeleteProductOutput = z.object({\n message: z.string().describe(\"Detailed message explaining the deletion outcome. Provides context about whether the product was deleted, already didn't exist, or if the API endpoint is unavailable.\").nullable().optional(),\n success: z.boolean().describe(\"True if the product was deleted or does not exist (idempotent). False only on actual errors like authentication failures.\").nullable(),\n});\n\nexport const finmeiDeleteProduct = action(\"FINMEI_DELETE_PRODUCT\", {\n slug: \"finmei-delete-product\",\n name: \"Delete Product\",\n description: \"Deletes a product from the Finmei catalog by its unique identifier. This operation is idempotent - calling it multiple times with the same product_id will return success. The tool attempts multiple endpoint patterns to maximize compatibility across different Finmei API deployments. Use this when you need to: - Permanently remove a product from the catalog - Clean up discontinued or obsolete products - Remove test or duplicate product entries Note: If all API endpoints return 404, the action will succeed with a message explaining that the product doesn't exist or the API doesn't support deletion. This follows idempotent DELETE semantics.\",\n input: FinmeiDeleteProductInput,\n output: FinmeiDeleteProductOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO,EAC/C,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8HAA8H,EAChK,CAAC;AACD,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wKAAwK,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3N,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,2HAA2H,CAAC,CAAC,SAAS;AACtK,CAAC;AAED,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -5,15 +5,12 @@ declare const FinmeiDeleteProductInput: z.ZodObject<{
5
5
  product_id: z.ZodString;
6
6
  }, z.core.$strip>;
7
7
  declare const FinmeiDeleteProductOutput: z.ZodObject<{
8
- message: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
8
+ message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9
9
  success: z.ZodNullable<z.ZodBoolean>;
10
10
  }, z.core.$strip>;
11
11
  declare const finmeiDeleteProduct: import("@keystrokehq/action").WorkflowActionDefinition<{
12
12
  product_id: string;
13
- }, {
14
- success: boolean | null;
15
- message?: string | undefined;
16
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
13
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
17
14
  //#endregion
18
15
  export { finmeiDeleteProduct };
19
16
  //# sourceMappingURL=delete-product.d.cts.map
@@ -5,15 +5,12 @@ declare const FinmeiDeleteProductInput: z.ZodObject<{
5
5
  product_id: z.ZodString;
6
6
  }, z.core.$strip>;
7
7
  declare const FinmeiDeleteProductOutput: z.ZodObject<{
8
- message: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
8
+ message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9
9
  success: z.ZodNullable<z.ZodBoolean>;
10
10
  }, z.core.$strip>;
11
11
  declare const finmeiDeleteProduct: import("@keystrokehq/action").WorkflowActionDefinition<{
12
12
  product_id: string;
13
- }, {
14
- success: boolean | null;
15
- message?: string | undefined;
16
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
13
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
17
14
  //#endregion
18
15
  export { finmeiDeleteProduct };
19
16
  //# sourceMappingURL=delete-product.d.mts.map
@@ -6,7 +6,7 @@ const finmeiDeleteProduct = action("FINMEI_DELETE_PRODUCT", {
6
6
  description: "Deletes a product from the Finmei catalog by its unique identifier. This operation is idempotent - calling it multiple times with the same product_id will return success. The tool attempts multiple endpoint patterns to maximize compatibility across different Finmei API deployments. Use this when you need to: - Permanently remove a product from the catalog - Clean up discontinued or obsolete products - Remove test or duplicate product entries Note: If all API endpoints return 404, the action will succeed with a message explaining that the product doesn't exist or the API doesn't support deletion. This follows idempotent DELETE semantics.",
7
7
  input: z.object({ product_id: z.string().describe("Unique identifier of the product to delete. This is the product's ID as returned by list_products or get_product operations.") }),
8
8
  output: z.object({
9
- message: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Detailed message explaining the deletion outcome. Provides context about whether the product was deleted, already didn't exist, or if the API endpoint is unavailable.").optional()),
9
+ message: z.string().describe("Detailed message explaining the deletion outcome. Provides context about whether the product was deleted, already didn't exist, or if the API endpoint is unavailable.").nullable().optional(),
10
10
  success: z.boolean().describe("True if the product was deleted or does not exist (idempotent). False only on actual errors like authentication failures.").nullable()
11
11
  })
12
12
  });
@@ -1 +1 @@
1
- {"version":3,"file":"delete-product.mjs","names":[],"sources":["../../src/actions/delete-product.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiDeleteProductInput = z.object({\n product_id: z.string().describe(\"Unique identifier of the product to delete. This is the product's ID as returned by list_products or get_product operations.\"),\n});\nexport const FinmeiDeleteProductOutput = z.object({\n message: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Detailed message explaining the deletion outcome. Provides context about whether the product was deleted, already didn't exist, or if the API endpoint is unavailable.\").optional()),\n success: z.boolean().describe(\"True if the product was deleted or does not exist (idempotent). False only on actual errors like authentication failures.\").nullable(),\n});\n\nexport const finmeiDeleteProduct = action(\"FINMEI_DELETE_PRODUCT\", {\n slug: \"finmei-delete-product\",\n name: \"Delete Product\",\n description: \"Deletes a product from the Finmei catalog by its unique identifier. This operation is idempotent - calling it multiple times with the same product_id will return success. The tool attempts multiple endpoint patterns to maximize compatibility across different Finmei API deployments. Use this when you need to: - Permanently remove a product from the catalog - Clean up discontinued or obsolete products - Remove test or duplicate product entries Note: If all API endpoints return 404, the action will succeed with a message explaining that the product doesn't exist or the API doesn't support deletion. This follows idempotent DELETE semantics.\",\n input: FinmeiDeleteProductInput,\n output: FinmeiDeleteProductOutput,\n});\n"],"mappings":";;AAYA,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZsC,EAAE,OAAO,EAC/C,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,8HAA8H,EAChK,CAUS;CACP,QAVuC,EAAE,OAAO;EAChD,SAAS,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,wKAAwK,CAAC,CAAC,SAAS,CAAC;EAC/Q,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,2HAA2H,CAAC,CAAC,SAAS;CACtK,CAOU;AACV,CAAC"}
1
+ {"version":3,"file":"delete-product.mjs","names":[],"sources":["../../src/actions/delete-product.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiDeleteProductInput = z.object({\n product_id: z.string().describe(\"Unique identifier of the product to delete. This is the product's ID as returned by list_products or get_product operations.\"),\n});\nexport const FinmeiDeleteProductOutput = z.object({\n message: z.string().describe(\"Detailed message explaining the deletion outcome. Provides context about whether the product was deleted, already didn't exist, or if the API endpoint is unavailable.\").nullable().optional(),\n success: z.boolean().describe(\"True if the product was deleted or does not exist (idempotent). False only on actual errors like authentication failures.\").nullable(),\n});\n\nexport const finmeiDeleteProduct = action(\"FINMEI_DELETE_PRODUCT\", {\n slug: \"finmei-delete-product\",\n name: \"Delete Product\",\n description: \"Deletes a product from the Finmei catalog by its unique identifier. This operation is idempotent - calling it multiple times with the same product_id will return success. The tool attempts multiple endpoint patterns to maximize compatibility across different Finmei API deployments. Use this when you need to: - Permanently remove a product from the catalog - Clean up discontinued or obsolete products - Remove test or duplicate product entries Note: If all API endpoints return 404, the action will succeed with a message explaining that the product doesn't exist or the API doesn't support deletion. This follows idempotent DELETE semantics.\",\n input: FinmeiDeleteProductInput,\n output: FinmeiDeleteProductOutput,\n});\n"],"mappings":";;AAYA,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZsC,EAAE,OAAO,EAC/C,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,8HAA8H,EAChK,CAUS;CACP,QAVuC,EAAE,OAAO;EAChD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,wKAAwK,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3N,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,2HAA2H,CAAC,CAAC,SAAS;CACtK,CAOU;AACV,CAAC"}
@@ -13,13 +13,7 @@ declare const FinmeiDownloadExpenseFileOutput: z.ZodObject<{
13
13
  }, z.core.$strip>;
14
14
  declare const finmeiDownloadExpenseFile: import("@keystrokehq/action").WorkflowActionDefinition<{
15
15
  id: string;
16
- }, {
17
- content: {
18
- name: string | null;
19
- s3url: string | null;
20
- mimetype: string | null;
21
- } | null;
22
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
16
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
23
17
  //#endregion
24
18
  export { finmeiDownloadExpenseFile };
25
19
  //# sourceMappingURL=download-expense-file.d.cts.map
@@ -13,13 +13,7 @@ declare const FinmeiDownloadExpenseFileOutput: z.ZodObject<{
13
13
  }, z.core.$strip>;
14
14
  declare const finmeiDownloadExpenseFile: import("@keystrokehq/action").WorkflowActionDefinition<{
15
15
  id: string;
16
- }, {
17
- content: {
18
- name: string | null;
19
- s3url: string | null;
20
- mimetype: string | null;
21
- } | null;
22
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
16
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
23
17
  //#endregion
24
18
  export { finmeiDownloadExpenseFile };
25
19
  //# sourceMappingURL=download-expense-file.d.mts.map
@@ -13,13 +13,7 @@ declare const FinmeiDownloadInvoicePdfOutput: z.ZodObject<{
13
13
  }, z.core.$strip>;
14
14
  declare const finmeiDownloadInvoicePdf: import("@keystrokehq/action").WorkflowActionDefinition<{
15
15
  invoice_id: string;
16
- }, {
17
- file: {
18
- name: string | null;
19
- s3url: string | null;
20
- mimetype: string | null;
21
- } | null;
22
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
16
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
23
17
  //#endregion
24
18
  export { finmeiDownloadInvoicePdf };
25
19
  //# sourceMappingURL=download-invoice-pdf.d.cts.map
@@ -13,13 +13,7 @@ declare const FinmeiDownloadInvoicePdfOutput: z.ZodObject<{
13
13
  }, z.core.$strip>;
14
14
  declare const finmeiDownloadInvoicePdf: import("@keystrokehq/action").WorkflowActionDefinition<{
15
15
  invoice_id: string;
16
- }, {
17
- file: {
18
- name: string | null;
19
- s3url: string | null;
20
- mimetype: string | null;
21
- } | null;
22
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
16
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
23
17
  //#endregion
24
18
  export { finmeiDownloadInvoicePdf };
25
19
  //# sourceMappingURL=download-invoice-pdf.d.mts.map
@@ -17,17 +17,7 @@ declare const FinmeiGetExpenseOutput: z.ZodObject<{
17
17
  }, z.core.$strip>;
18
18
  declare const finmeiGetExpense: import("@keystrokehq/action").WorkflowActionDefinition<{
19
19
  id: string;
20
- }, {
21
- data: {
22
- id: string | null;
23
- date: string | null;
24
- total: number | null;
25
- seller: string | null;
26
- currency: string | null;
27
- created_at: number | null;
28
- updated_at: number | null;
29
- } | null;
30
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
20
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
31
21
  //#endregion
32
22
  export { finmeiGetExpense };
33
23
  //# sourceMappingURL=get-expense.d.cts.map
@@ -17,17 +17,7 @@ declare const FinmeiGetExpenseOutput: z.ZodObject<{
17
17
  }, z.core.$strip>;
18
18
  declare const finmeiGetExpense: import("@keystrokehq/action").WorkflowActionDefinition<{
19
19
  id: string;
20
- }, {
21
- data: {
22
- id: string | null;
23
- date: string | null;
24
- total: number | null;
25
- seller: string | null;
26
- currency: string | null;
27
- created_at: number | null;
28
- updated_at: number | null;
29
- } | null;
30
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
20
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
31
21
  //#endregion
32
22
  export { finmeiGetExpense };
33
23
  //# sourceMappingURL=get-expense.d.mts.map
@@ -3,16 +3,16 @@ let zod = require("zod");
3
3
  //#region src/actions/get-invoice.ts
4
4
  const FinmeiGetInvoiceInput = zod.z.object({ id: zod.z.string().describe("Invoice ID to retrieve") }).describe("Request parameters for retrieving a single invoice by ID.");
5
5
  const FinmeiGetInvoice_BuyerSchema = zod.z.object({
6
- type: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Type of buyer (company or individual)").optional()),
7
- email: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Buyer email").optional()),
8
- phone: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Buyer phone number").optional()),
9
- address: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Buyer address").optional()),
10
- vat_code: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("VAT registration number").optional()),
11
- last_name: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Last name (for individual buyers)").optional()),
12
- first_name: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("First name (for individual buyers)").optional()),
13
- company_code: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Company registration code").optional()),
14
- company_name: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Company name (for company buyers)").optional()),
15
- individual_tax_id: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Individual tax ID").optional())
6
+ type: zod.z.string().describe("Type of buyer (company or individual)").nullable().optional(),
7
+ email: zod.z.string().describe("Buyer email").nullable().optional(),
8
+ phone: zod.z.string().describe("Buyer phone number").nullable().optional(),
9
+ address: zod.z.string().describe("Buyer address").nullable().optional(),
10
+ vat_code: zod.z.string().describe("VAT registration number").nullable().optional(),
11
+ last_name: zod.z.string().describe("Last name (for individual buyers)").nullable().optional(),
12
+ first_name: zod.z.string().describe("First name (for individual buyers)").nullable().optional(),
13
+ company_code: zod.z.string().describe("Company registration code").nullable().optional(),
14
+ company_name: zod.z.string().describe("Company name (for company buyers)").nullable().optional(),
15
+ individual_tax_id: zod.z.string().describe("Individual tax ID").nullable().optional()
16
16
  }).describe("Buyer/customer information on the invoice");
17
17
  const FinmeiGetInvoice_InvoiceItemSchema = zod.z.object({
18
18
  id: zod.z.string().describe("Unique item identifier").nullable(),
@@ -20,26 +20,26 @@ const FinmeiGetInvoice_InvoiceItemSchema = zod.z.object({
20
20
  price: zod.z.number().describe("Unit price").nullable(),
21
21
  units: zod.z.string().describe("Unit of measurement (hours, pcs, etc.)").nullable(),
22
22
  quantity: zod.z.number().describe("Quantity").nullable(),
23
- vat_percentage: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().describe("VAT/tax percentage applied").optional())
23
+ vat_percentage: zod.z.number().describe("VAT/tax percentage applied").nullable().optional()
24
24
  }).describe("Line item on the invoice");
25
25
  const FinmeiGetInvoice_SellerSchema = zod.z.object({
26
- email: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Business email").optional()),
27
- phone: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Business phone number").optional()),
28
- address: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Business address").optional()),
29
- vat_code: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("VAT registration number").optional()),
30
- last_name: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Last name (for individual sellers)").optional()),
31
- first_name: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("First name (for individual sellers)").optional()),
32
- company_code: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Company registration code").optional()),
33
- company_name: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Company name (for company sellers)").optional()),
34
- business_type: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Type of business (company or individual)").optional()),
35
- individual_tax_id: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Individual tax ID").optional())
26
+ email: zod.z.string().describe("Business email").nullable().optional(),
27
+ phone: zod.z.string().describe("Business phone number").nullable().optional(),
28
+ address: zod.z.string().describe("Business address").nullable().optional(),
29
+ vat_code: zod.z.string().describe("VAT registration number").nullable().optional(),
30
+ last_name: zod.z.string().describe("Last name (for individual sellers)").nullable().optional(),
31
+ first_name: zod.z.string().describe("First name (for individual sellers)").nullable().optional(),
32
+ company_code: zod.z.string().describe("Company registration code").nullable().optional(),
33
+ company_name: zod.z.string().describe("Company name (for company sellers)").nullable().optional(),
34
+ business_type: zod.z.string().describe("Type of business (company or individual)").nullable().optional(),
35
+ individual_tax_id: zod.z.string().describe("Individual tax ID").nullable().optional()
36
36
  }).describe("Seller/business information on the invoice");
37
37
  const FinmeiGetInvoiceOutput = zod.z.object({
38
38
  id: zod.z.string().describe("Unique invoice identifier").nullable(),
39
39
  vat: zod.z.number().describe("Total VAT/tax amount").nullable(),
40
40
  buyer: FinmeiGetInvoice_BuyerSchema.nullable(),
41
- items: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.array(FinmeiGetInvoice_InvoiceItemSchema).describe("List of line items on the invoice").optional()),
42
- notes: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Additional notes on the invoice").optional()),
41
+ items: zod.z.array(FinmeiGetInvoice_InvoiceItemSchema).describe("List of line items on the invoice").nullable().optional(),
42
+ notes: zod.z.string().describe("Additional notes on the invoice").nullable().optional(),
43
43
  seller: FinmeiGetInvoice_SellerSchema.nullable(),
44
44
  series: zod.z.string().describe("Invoice series/prefix").nullable(),
45
45
  currency: zod.z.string().describe("ISO 4217 currency code (USD, EUR, GBP, etc.)").nullable(),
@@ -52,10 +52,10 @@ const FinmeiGetInvoiceOutput = zod.z.object({
52
52
  invoice_date: zod.z.string().describe("Invoice date in YYYY-MM-DD format").nullable(),
53
53
  invoice_type: zod.z.string().describe("Type of invoice (regular_invoice, vat_invoice, preliminary_invoice, credit_invoice)").nullable(),
54
54
  invoice_number: zod.z.string().describe("Invoice number within the series").nullable(),
55
- pay_until_date: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Payment due date in YYYY-MM-DD format").optional()),
55
+ pay_until_date: zod.z.string().describe("Payment due date in YYYY-MM-DD format").nullable().optional(),
56
56
  payment_status: zod.z.string().describe("Payment status (not_paid, paid, partially_paid, etc.)").nullable(),
57
57
  total_incl_vat: zod.z.number().describe("Total amount including VAT").nullable(),
58
- payment_options: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.array(zod.z.object({})).describe("Available payment options").optional())
58
+ payment_options: zod.z.array(zod.z.object({})).describe("Available payment options").nullable().optional()
59
59
  }).describe("Complete invoice details returned by the API.");
60
60
  const finmeiGetInvoice = require_action.action("FINMEI_GET_INVOICE", {
61
61
  slug: "finmei-get-invoice",
@@ -1 +1 @@
1
- {"version":3,"file":"get-invoice.cjs","names":["z","action"],"sources":["../../src/actions/get-invoice.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiGetInvoiceInput = z.object({\n id: z.string().describe(\"Invoice ID to retrieve\"),\n}).describe(\"Request parameters for retrieving a single invoice by ID.\");\nconst FinmeiGetInvoice_BuyerSchema = z.object({\n type: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Type of buyer (company or individual)\").optional()),\n email: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Buyer email\").optional()),\n phone: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Buyer phone number\").optional()),\n address: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Buyer address\").optional()),\n vat_code: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"VAT registration number\").optional()),\n last_name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Last name (for individual buyers)\").optional()),\n first_name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"First name (for individual buyers)\").optional()),\n company_code: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Company registration code\").optional()),\n company_name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Company name (for company buyers)\").optional()),\n individual_tax_id: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Individual tax ID\").optional()),\n}).describe(\"Buyer/customer information on the invoice\");\nconst FinmeiGetInvoice_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.preprocess((value) => (value === null ? undefined : value), z.number().describe(\"VAT/tax percentage applied\").optional()),\n}).describe(\"Line item on the invoice\");\nconst FinmeiGetInvoice_SellerSchema = z.object({\n email: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Business email\").optional()),\n phone: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Business phone number\").optional()),\n address: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Business address\").optional()),\n vat_code: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"VAT registration number\").optional()),\n last_name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Last name (for individual sellers)\").optional()),\n first_name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"First name (for individual sellers)\").optional()),\n company_code: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Company registration code\").optional()),\n company_name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Company name (for company sellers)\").optional()),\n business_type: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Type of business (company or individual)\").optional()),\n individual_tax_id: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Individual tax ID\").optional()),\n}).describe(\"Seller/business information on the invoice\");\nexport const FinmeiGetInvoiceOutput = z.object({\n id: z.string().describe(\"Unique invoice identifier\").nullable(),\n vat: z.number().describe(\"Total VAT/tax amount\").nullable(),\n buyer: FinmeiGetInvoice_BuyerSchema.nullable(),\n items: z.preprocess((value) => (value === null ? undefined : value), z.array(FinmeiGetInvoice_InvoiceItemSchema).describe(\"List of line items on the invoice\").optional()),\n notes: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Additional notes on the invoice\").optional()),\n seller: FinmeiGetInvoice_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.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Payment due date in YYYY-MM-DD format\").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.preprocess((value) => (value === null ? undefined : value), z.array(z.object({})).describe(\"Available payment options\").optional()),\n}).describe(\"Complete invoice details returned by the API.\");\n\nexport const finmeiGetInvoice = action(\"FINMEI_GET_INVOICE\", {\n slug: \"finmei-get-invoice\",\n name: \"Get Invoice by ID\",\n description: \"Tool to retrieve a single invoice by its ID. Use when you need full invoice details including buyer, seller, items, amounts, and payment options.\",\n input: FinmeiGetInvoiceInput,\n output: FinmeiGetInvoiceOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAwBA,IAAAA,EAAE,OAAO,EAC5C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,EAClD,CAAC,CAAC,CAAC,SAAS,2DAA2D;AACvE,MAAM,+BAA+BA,IAAAA,EAAE,OAAO;CAC5C,MAAMA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC;CAC3I,OAAOA,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AAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CAC3E,iBAAiBA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC;AACvJ,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAE3D,MAAa,mBAAmBC,eAAAA,OAAO,sBAAsB;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-invoice.cjs","names":["z","action"],"sources":["../../src/actions/get-invoice.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiGetInvoiceInput = z.object({\n id: z.string().describe(\"Invoice ID to retrieve\"),\n}).describe(\"Request parameters for retrieving a single invoice by ID.\");\nconst FinmeiGetInvoice_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}).describe(\"Buyer/customer information on the invoice\");\nconst FinmeiGetInvoice_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}).describe(\"Line item on the invoice\");\nconst FinmeiGetInvoice_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}).describe(\"Seller/business information on the invoice\");\nexport const FinmeiGetInvoiceOutput = z.object({\n id: z.string().describe(\"Unique invoice identifier\").nullable(),\n vat: z.number().describe(\"Total VAT/tax amount\").nullable(),\n buyer: FinmeiGetInvoice_BuyerSchema.nullable(),\n items: z.array(FinmeiGetInvoice_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: FinmeiGetInvoice_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.object({})).describe(\"Available payment options\").nullable().optional(),\n}).describe(\"Complete invoice details returned by the API.\");\n\nexport const finmeiGetInvoice = action(\"FINMEI_GET_INVOICE\", {\n slug: \"finmei-get-invoice\",\n name: \"Get Invoice by ID\",\n description: \"Tool to retrieve a single invoice by its ID. Use when you need full invoice details including buyer, seller, items, amounts, and payment options.\",\n input: FinmeiGetInvoiceInput,\n output: FinmeiGetInvoiceOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAwBA,IAAAA,EAAE,OAAO,EAC5C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,EAClD,CAAC,CAAC,CAAC,SAAS,2DAA2D;AACvE,MAAM,+BAA+BA,IAAAA,EAAE,OAAO;CAC5C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,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O,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnG,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAE3D,MAAa,mBAAmBC,eAAAA,OAAO,sBAAsB;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -8,37 +8,37 @@ declare const FinmeiGetInvoiceOutput: z.ZodObject<{
8
8
  id: z.ZodNullable<z.ZodString>;
9
9
  vat: z.ZodNullable<z.ZodNumber>;
10
10
  buyer: z.ZodNullable<z.ZodObject<{
11
- type: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
12
- email: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
13
- phone: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
14
- address: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
15
- vat_code: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
16
- last_name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
17
- first_name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
18
- company_code: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
19
- company_name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
20
- individual_tax_id: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
11
+ type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ vat_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ first_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ company_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ company_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
+ individual_tax_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
21
  }, z.core.$strip>>;
22
- items: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodObject<{
22
+ items: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
23
23
  id: z.ZodNullable<z.ZodString>;
24
24
  name: z.ZodNullable<z.ZodString>;
25
25
  price: z.ZodNullable<z.ZodNumber>;
26
26
  units: z.ZodNullable<z.ZodString>;
27
27
  quantity: z.ZodNullable<z.ZodNumber>;
28
- vat_percentage: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
28
+ vat_percentage: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
29
29
  }, z.core.$strip>>>>;
30
- notes: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
30
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
31
31
  seller: z.ZodNullable<z.ZodObject<{
32
- email: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
33
- phone: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
34
- address: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
35
- vat_code: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
36
- last_name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
37
- first_name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
38
- company_code: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
39
- company_name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
40
- business_type: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
41
- individual_tax_id: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
32
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
34
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
35
+ vat_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36
+ last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
37
+ first_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
38
+ company_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
39
+ company_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40
+ business_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
41
+ individual_tax_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
42
42
  }, z.core.$strip>>;
43
43
  series: z.ZodNullable<z.ZodString>;
44
44
  currency: z.ZodNullable<z.ZodString>;
@@ -51,65 +51,14 @@ declare const FinmeiGetInvoiceOutput: z.ZodObject<{
51
51
  invoice_date: z.ZodNullable<z.ZodString>;
52
52
  invoice_type: z.ZodNullable<z.ZodString>;
53
53
  invoice_number: z.ZodNullable<z.ZodString>;
54
- pay_until_date: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
54
+ pay_until_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
55
55
  payment_status: z.ZodNullable<z.ZodString>;
56
56
  total_incl_vat: z.ZodNullable<z.ZodNumber>;
57
- payment_options: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodObject<{}, z.core.$strip>>>>;
57
+ payment_options: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{}, z.core.$strip>>>>;
58
58
  }, z.core.$strip>;
59
59
  declare const finmeiGetInvoice: import("@keystrokehq/action").WorkflowActionDefinition<{
60
60
  id: string;
61
- }, {
62
- id: string | null;
63
- vat: number | null;
64
- buyer: {
65
- type?: string | undefined;
66
- email?: string | undefined;
67
- phone?: string | undefined;
68
- address?: string | undefined;
69
- vat_code?: string | undefined;
70
- last_name?: string | undefined;
71
- first_name?: string | undefined;
72
- company_code?: string | undefined;
73
- company_name?: string | undefined;
74
- individual_tax_id?: string | undefined;
75
- } | null;
76
- seller: {
77
- email?: string | undefined;
78
- phone?: string | undefined;
79
- address?: string | undefined;
80
- vat_code?: string | undefined;
81
- last_name?: string | undefined;
82
- first_name?: string | undefined;
83
- company_code?: string | undefined;
84
- company_name?: string | undefined;
85
- business_type?: string | undefined;
86
- individual_tax_id?: string | undefined;
87
- } | null;
88
- series: string | null;
89
- currency: string | null;
90
- language: string | null;
91
- subtotal: number | null;
92
- created_at: number | null;
93
- share_link: string | null;
94
- updated_at: number | null;
95
- business_id: string | null;
96
- invoice_date: string | null;
97
- invoice_type: string | null;
98
- invoice_number: string | null;
99
- payment_status: string | null;
100
- total_incl_vat: number | null;
101
- items?: {
102
- id: string | null;
103
- name: string | null;
104
- price: number | null;
105
- units: string | null;
106
- quantity: number | null;
107
- vat_percentage?: number | undefined;
108
- }[] | undefined;
109
- notes?: string | undefined;
110
- pay_until_date?: string | undefined;
111
- payment_options?: Record<string, never>[] | undefined;
112
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
61
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
113
62
  //#endregion
114
63
  export { finmeiGetInvoice };
115
64
  //# sourceMappingURL=get-invoice.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-invoice.d.cts","names":[],"sources":["../../src/actions/get-invoice.ts"],"mappings":";;;cAIa,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;cAmCrB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAwBtB,gBAAA,gCAAgB,wBAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAM3B,MAAA;AAAA"}
1
+ {"version":3,"file":"get-invoice.d.cts","names":[],"sources":["../../src/actions/get-invoice.ts"],"mappings":";;;cAIa,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;cAmCrB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAwBtB,gBAAA,gCAAgB,wBAAA"}