@keystrokehq/finmei 0.1.0 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (191) 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 +7 -7
  4. package/dist/actions/create-expense.cjs.map +1 -1
  5. package/dist/actions/create-expense.d.cts +33 -3
  6. package/dist/actions/create-expense.d.cts.map +1 -1
  7. package/dist/actions/create-expense.d.mts +33 -3
  8. package/dist/actions/create-expense.d.mts.map +1 -1
  9. package/dist/actions/create-expense.mjs +7 -7
  10. package/dist/actions/create-expense.mjs.map +1 -1
  11. package/dist/actions/create-invoice.cjs.map +1 -1
  12. package/dist/actions/create-invoice.d.cts +166 -3
  13. package/dist/actions/create-invoice.d.cts.map +1 -1
  14. package/dist/actions/create-invoice.d.mts +166 -3
  15. package/dist/actions/create-invoice.d.mts.map +1 -1
  16. package/dist/actions/create-invoice.mjs.map +1 -1
  17. package/dist/actions/delete-customer.cjs.map +1 -1
  18. package/dist/actions/delete-customer.d.cts +7 -3
  19. package/dist/actions/delete-customer.d.cts.map +1 -1
  20. package/dist/actions/delete-customer.d.mts +7 -3
  21. package/dist/actions/delete-customer.d.mts.map +1 -1
  22. package/dist/actions/delete-customer.mjs.map +1 -1
  23. package/dist/actions/delete-invoice.cjs +1 -1
  24. package/dist/actions/delete-invoice.cjs.map +1 -1
  25. package/dist/actions/delete-invoice.d.cts +10 -3
  26. package/dist/actions/delete-invoice.d.cts.map +1 -1
  27. package/dist/actions/delete-invoice.d.mts +10 -3
  28. package/dist/actions/delete-invoice.d.mts.map +1 -1
  29. package/dist/actions/delete-invoice.mjs +1 -1
  30. package/dist/actions/delete-invoice.mjs.map +1 -1
  31. package/dist/actions/delete-payment.cjs +1 -1
  32. package/dist/actions/delete-payment.cjs.map +1 -1
  33. package/dist/actions/delete-payment.d.cts +9 -3
  34. package/dist/actions/delete-payment.d.cts.map +1 -1
  35. package/dist/actions/delete-payment.d.mts +9 -3
  36. package/dist/actions/delete-payment.d.mts.map +1 -1
  37. package/dist/actions/delete-payment.mjs +1 -1
  38. package/dist/actions/delete-payment.mjs.map +1 -1
  39. package/dist/actions/delete-product.cjs +1 -1
  40. package/dist/actions/delete-product.cjs.map +1 -1
  41. package/dist/actions/delete-product.d.cts +10 -3
  42. package/dist/actions/delete-product.d.cts.map +1 -1
  43. package/dist/actions/delete-product.d.mts +10 -3
  44. package/dist/actions/delete-product.d.mts.map +1 -1
  45. package/dist/actions/delete-product.mjs +1 -1
  46. package/dist/actions/delete-product.mjs.map +1 -1
  47. package/dist/actions/download-expense-file.cjs +3 -3
  48. package/dist/actions/download-expense-file.cjs.map +1 -1
  49. package/dist/actions/download-expense-file.d.cts +13 -3
  50. package/dist/actions/download-expense-file.d.cts.map +1 -1
  51. package/dist/actions/download-expense-file.d.mts +13 -3
  52. package/dist/actions/download-expense-file.d.mts.map +1 -1
  53. package/dist/actions/download-expense-file.mjs +3 -3
  54. package/dist/actions/download-expense-file.mjs.map +1 -1
  55. package/dist/actions/download-invoice-pdf.cjs +3 -3
  56. package/dist/actions/download-invoice-pdf.cjs.map +1 -1
  57. package/dist/actions/download-invoice-pdf.d.cts +13 -3
  58. package/dist/actions/download-invoice-pdf.d.cts.map +1 -1
  59. package/dist/actions/download-invoice-pdf.d.mts +13 -3
  60. package/dist/actions/download-invoice-pdf.d.mts.map +1 -1
  61. package/dist/actions/download-invoice-pdf.mjs +3 -3
  62. package/dist/actions/download-invoice-pdf.mjs.map +1 -1
  63. package/dist/actions/get-expense.cjs +7 -7
  64. package/dist/actions/get-expense.cjs.map +1 -1
  65. package/dist/actions/get-expense.d.cts +17 -3
  66. package/dist/actions/get-expense.d.cts.map +1 -1
  67. package/dist/actions/get-expense.d.mts +17 -3
  68. package/dist/actions/get-expense.d.mts.map +1 -1
  69. package/dist/actions/get-expense.mjs +7 -7
  70. package/dist/actions/get-expense.mjs.map +1 -1
  71. package/dist/actions/get-invoice.cjs +20 -20
  72. package/dist/actions/get-invoice.cjs.map +1 -1
  73. package/dist/actions/get-invoice.d.cts +58 -3
  74. package/dist/actions/get-invoice.d.cts.map +1 -1
  75. package/dist/actions/get-invoice.d.mts +58 -3
  76. package/dist/actions/get-invoice.d.mts.map +1 -1
  77. package/dist/actions/get-invoice.mjs +20 -20
  78. package/dist/actions/get-invoice.mjs.map +1 -1
  79. package/dist/actions/get-payment.cjs +7 -7
  80. package/dist/actions/get-payment.cjs.map +1 -1
  81. package/dist/actions/get-payment.d.cts +17 -3
  82. package/dist/actions/get-payment.d.cts.map +1 -1
  83. package/dist/actions/get-payment.d.mts +17 -3
  84. package/dist/actions/get-payment.d.mts.map +1 -1
  85. package/dist/actions/get-payment.mjs +7 -7
  86. package/dist/actions/get-payment.mjs.map +1 -1
  87. package/dist/actions/get-product.cjs +6 -6
  88. package/dist/actions/get-product.cjs.map +1 -1
  89. package/dist/actions/get-product.d.cts +15 -3
  90. package/dist/actions/get-product.d.cts.map +1 -1
  91. package/dist/actions/get-product.d.mts +15 -3
  92. package/dist/actions/get-product.d.mts.map +1 -1
  93. package/dist/actions/get-product.mjs +6 -6
  94. package/dist/actions/get-product.mjs.map +1 -1
  95. package/dist/actions/get-profile.cjs.map +1 -1
  96. package/dist/actions/get-profile.d.cts +13 -3
  97. package/dist/actions/get-profile.d.cts.map +1 -1
  98. package/dist/actions/get-profile.d.mts +13 -3
  99. package/dist/actions/get-profile.d.mts.map +1 -1
  100. package/dist/actions/get-profile.mjs.map +1 -1
  101. package/dist/actions/list-currencies.cjs +2 -2
  102. package/dist/actions/list-currencies.cjs.map +1 -1
  103. package/dist/actions/list-currencies.d.cts +9 -3
  104. package/dist/actions/list-currencies.d.cts.map +1 -1
  105. package/dist/actions/list-currencies.d.mts +9 -3
  106. package/dist/actions/list-currencies.d.mts.map +1 -1
  107. package/dist/actions/list-currencies.mjs +2 -2
  108. package/dist/actions/list-currencies.mjs.map +1 -1
  109. package/dist/actions/list-customers.cjs +5 -5
  110. package/dist/actions/list-customers.cjs.map +1 -1
  111. package/dist/actions/list-customers.d.cts +29 -3
  112. package/dist/actions/list-customers.d.cts.map +1 -1
  113. package/dist/actions/list-customers.d.mts +29 -3
  114. package/dist/actions/list-customers.d.mts.map +1 -1
  115. package/dist/actions/list-customers.mjs +5 -5
  116. package/dist/actions/list-customers.mjs.map +1 -1
  117. package/dist/actions/list-expenses.cjs +5 -5
  118. package/dist/actions/list-expenses.cjs.map +1 -1
  119. package/dist/actions/list-expenses.d.cts +28 -3
  120. package/dist/actions/list-expenses.d.cts.map +1 -1
  121. package/dist/actions/list-expenses.d.mts +28 -3
  122. package/dist/actions/list-expenses.d.mts.map +1 -1
  123. package/dist/actions/list-expenses.mjs +5 -5
  124. package/dist/actions/list-expenses.mjs.map +1 -1
  125. package/dist/actions/list-invoices.cjs +25 -25
  126. package/dist/actions/list-invoices.cjs.map +1 -1
  127. package/dist/actions/list-invoices.d.cts +71 -3
  128. package/dist/actions/list-invoices.d.cts.map +1 -1
  129. package/dist/actions/list-invoices.d.mts +71 -3
  130. package/dist/actions/list-invoices.d.mts.map +1 -1
  131. package/dist/actions/list-invoices.mjs +25 -25
  132. package/dist/actions/list-invoices.mjs.map +1 -1
  133. package/dist/actions/list-payments.cjs +6 -6
  134. package/dist/actions/list-payments.cjs.map +1 -1
  135. package/dist/actions/list-payments.d.cts +34 -3
  136. package/dist/actions/list-payments.d.cts.map +1 -1
  137. package/dist/actions/list-payments.d.mts +34 -3
  138. package/dist/actions/list-payments.d.mts.map +1 -1
  139. package/dist/actions/list-payments.mjs +6 -6
  140. package/dist/actions/list-payments.mjs.map +1 -1
  141. package/dist/actions/list-products.cjs +8 -8
  142. package/dist/actions/list-products.cjs.map +1 -1
  143. package/dist/actions/list-products.d.cts +35 -3
  144. package/dist/actions/list-products.d.cts.map +1 -1
  145. package/dist/actions/list-products.d.mts +35 -3
  146. package/dist/actions/list-products.d.mts.map +1 -1
  147. package/dist/actions/list-products.mjs +8 -8
  148. package/dist/actions/list-products.mjs.map +1 -1
  149. package/dist/actions/update-customer.cjs +3 -3
  150. package/dist/actions/update-customer.cjs.map +1 -1
  151. package/dist/actions/update-customer.d.cts +46 -3
  152. package/dist/actions/update-customer.d.cts.map +1 -1
  153. package/dist/actions/update-customer.d.mts +46 -3
  154. package/dist/actions/update-customer.d.mts.map +1 -1
  155. package/dist/actions/update-customer.mjs +3 -3
  156. package/dist/actions/update-customer.mjs.map +1 -1
  157. package/dist/actions/update-expense-file.cjs.map +1 -1
  158. package/dist/actions/update-expense-file.d.cts +23 -3
  159. package/dist/actions/update-expense-file.d.cts.map +1 -1
  160. package/dist/actions/update-expense-file.d.mts +23 -3
  161. package/dist/actions/update-expense-file.d.mts.map +1 -1
  162. package/dist/actions/update-expense-file.mjs.map +1 -1
  163. package/dist/actions/update-expense.cjs +5 -5
  164. package/dist/actions/update-expense.cjs.map +1 -1
  165. package/dist/actions/update-expense.d.cts +23 -3
  166. package/dist/actions/update-expense.d.cts.map +1 -1
  167. package/dist/actions/update-expense.d.mts +23 -3
  168. package/dist/actions/update-expense.d.mts.map +1 -1
  169. package/dist/actions/update-expense.mjs +5 -5
  170. package/dist/actions/update-expense.mjs.map +1 -1
  171. package/dist/actions/update-invoice.cjs.map +1 -1
  172. package/dist/actions/update-invoice.d.cts +147 -3
  173. package/dist/actions/update-invoice.d.cts.map +1 -1
  174. package/dist/actions/update-invoice.d.mts +147 -3
  175. package/dist/actions/update-invoice.d.mts.map +1 -1
  176. package/dist/actions/update-invoice.mjs.map +1 -1
  177. package/dist/actions/update-product.cjs +6 -6
  178. package/dist/actions/update-product.cjs.map +1 -1
  179. package/dist/actions/update-product.d.cts +23 -3
  180. package/dist/actions/update-product.d.cts.map +1 -1
  181. package/dist/actions/update-product.d.mts +23 -3
  182. package/dist/actions/update-product.d.mts.map +1 -1
  183. package/dist/actions/update-product.mjs +6 -6
  184. package/dist/actions/update-product.mjs.map +1 -1
  185. package/dist/catalog.cjs +7 -1
  186. package/dist/catalog.cjs.map +1 -1
  187. package/dist/catalog.d.cts +8 -0
  188. package/dist/catalog.d.mts +8 -0
  189. package/dist/catalog.mjs +7 -1
  190. package/dist/catalog.mjs.map +1 -1
  191. package/package.json +2 -2
@@ -1,9 +1,172 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/create-invoice.d.ts
4
- declare const FinmeiCreateInvoiceInput: z.ZodTypeAny;
5
- declare const FinmeiCreateInvoiceOutput: z.ZodTypeAny;
6
- declare const finmeiCreateInvoice: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const FinmeiCreateInvoiceInput: z.ZodObject<{
5
+ code: z.ZodOptional<z.ZodString>;
6
+ type: z.ZodOptional<z.ZodEnum<{
7
+ regular_invoice: "regular_invoice";
8
+ vat_invoice: "vat_invoice";
9
+ preliminary_invoice: "preliminary_invoice";
10
+ preliminary_vat_invoice: "preliminary_vat_invoice";
11
+ credit_invoice: "credit_invoice";
12
+ credit_vat_invoice: "credit_vat_invoice";
13
+ }>>;
14
+ buyer: z.ZodOptional<z.ZodObject<{
15
+ name: z.ZodOptional<z.ZodString>;
16
+ type: z.ZodEnum<{
17
+ person: "person";
18
+ company: "company";
19
+ }>;
20
+ email: z.ZodOptional<z.ZodString>;
21
+ address: z.ZodOptional<z.ZodString>;
22
+ last_name: z.ZodOptional<z.ZodString>;
23
+ first_name: z.ZodOptional<z.ZodString>;
24
+ company_name: z.ZodOptional<z.ZodString>;
25
+ }, z.core.$strip>>;
26
+ notes: z.ZodOptional<z.ZodString>;
27
+ seller: z.ZodOptional<z.ZodObject<{
28
+ email: z.ZodOptional<z.ZodString>;
29
+ address: z.ZodOptional<z.ZodString>;
30
+ company_name: z.ZodString;
31
+ }, z.core.$strip>>;
32
+ series: z.ZodOptional<z.ZodString>;
33
+ currency: z.ZodOptional<z.ZodString>;
34
+ customer: z.ZodOptional<z.ZodObject<{
35
+ name: z.ZodString;
36
+ email: z.ZodString;
37
+ address: z.ZodOptional<z.ZodString>;
38
+ }, z.core.$strip>>;
39
+ due_date: z.ZodOptional<z.ZodString>;
40
+ products: z.ZodOptional<z.ZodArray<z.ZodObject<{
41
+ name: z.ZodString;
42
+ price: z.ZodNumber;
43
+ units: z.ZodOptional<z.ZodString>;
44
+ quantity: z.ZodNumber;
45
+ vat_percentage: z.ZodOptional<z.ZodNumber>;
46
+ }, z.core.$strip>>>;
47
+ issue_date: z.ZodOptional<z.ZodString>;
48
+ line_items: z.ZodOptional<z.ZodArray<z.ZodObject<{
49
+ quantity: z.ZodNumber;
50
+ unit_price: z.ZodNumber;
51
+ description: z.ZodString;
52
+ }, z.core.$strip>>>;
53
+ customer_id: z.ZodOptional<z.ZodString>;
54
+ invoice_date: z.ZodOptional<z.ZodString>;
55
+ use_default_seller_info: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
56
+ }, z.core.$strip>;
57
+ declare const FinmeiCreateInvoiceOutput: z.ZodObject<{
58
+ id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
59
+ vat: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
60
+ code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
61
+ buyer: z.ZodOptional<z.ZodNullable<z.ZodObject<{
62
+ type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
63
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
64
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
65
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
66
+ vat_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
67
+ last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
68
+ first_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
69
+ company_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
70
+ company_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
71
+ individual_tax_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
72
+ }, z.core.$strip>>>;
73
+ items: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
74
+ id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
75
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
76
+ price: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
77
+ units: z.ZodOptional<z.ZodNullable<z.ZodString>>;
78
+ quantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
79
+ vat_percentage: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
80
+ }, z.core.$strip>>>>;
81
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
82
+ seller: z.ZodOptional<z.ZodNullable<z.ZodObject<{
83
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
84
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
85
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
86
+ vat_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
87
+ last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
88
+ first_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
89
+ company_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
90
+ company_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
91
+ business_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
92
+ custom_fields: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
93
+ individual_tax_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
94
+ }, z.core.$strip>>>;
95
+ series: z.ZodOptional<z.ZodNullable<z.ZodString>>;
96
+ status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
97
+ currency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
98
+ customer: z.ZodOptional<z.ZodNullable<z.ZodObject<{
99
+ id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
100
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
101
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
102
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
103
+ }, z.core.$strip>>>;
104
+ due_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
105
+ language: z.ZodOptional<z.ZodNullable<z.ZodString>>;
106
+ subtotal: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
107
+ amount_due: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
108
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
109
+ issue_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
110
+ line_items: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
111
+ quantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
112
+ unit_price: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
113
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
114
+ }, z.core.$strip>>>>;
115
+ share_link: z.ZodOptional<z.ZodNullable<z.ZodString>>;
116
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
117
+ amount_paid: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
118
+ business_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
119
+ invoice_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
120
+ invoice_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
121
+ invoice_number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
122
+ pay_until_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
123
+ payment_status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
124
+ total_incl_vat: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
125
+ payment_options: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
126
+ }, z.core.$strip>;
127
+ declare const finmeiCreateInvoice: import("@keystrokehq/action").WorkflowActionDefinition<{
128
+ code?: string | undefined;
129
+ type?: "regular_invoice" | "vat_invoice" | "preliminary_invoice" | "preliminary_vat_invoice" | "credit_invoice" | "credit_vat_invoice" | undefined;
130
+ buyer?: {
131
+ type: "person" | "company";
132
+ name?: string | undefined;
133
+ email?: string | undefined;
134
+ address?: string | undefined;
135
+ last_name?: string | undefined;
136
+ first_name?: string | undefined;
137
+ company_name?: string | undefined;
138
+ } | undefined;
139
+ notes?: string | undefined;
140
+ seller?: {
141
+ company_name: string;
142
+ email?: string | undefined;
143
+ address?: string | undefined;
144
+ } | undefined;
145
+ series?: string | undefined;
146
+ currency?: string | undefined;
147
+ customer?: {
148
+ name: string;
149
+ email: string;
150
+ address?: string | undefined;
151
+ } | undefined;
152
+ due_date?: string | undefined;
153
+ products?: {
154
+ name: string;
155
+ price: number;
156
+ quantity: number;
157
+ units?: string | undefined;
158
+ vat_percentage?: number | undefined;
159
+ }[] | undefined;
160
+ issue_date?: string | undefined;
161
+ line_items?: {
162
+ quantity: number;
163
+ unit_price: number;
164
+ description: string;
165
+ }[] | undefined;
166
+ customer_id?: string | undefined;
167
+ invoice_date?: string | undefined;
168
+ use_default_seller_info?: boolean | undefined;
169
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
170
  //#endregion
8
171
  export { finmeiCreateInvoice };
9
172
  //# sourceMappingURL=create-invoice.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-invoice.d.mts","names":[],"sources":["../../src/actions/create-invoice.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UA0CvC;AAAA,cA6CW,yBAAA,EAA2B,CAAA,CAAE,UA8BxC;AAAA,cAEW,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"create-invoice.d.mts","names":[],"sources":["../../src/actions/create-invoice.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAuFxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAgCzB,mBAAA,gCAAmB,wBAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"create-invoice.mjs","names":[],"sources":["../../src/actions/create-invoice.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiCreateInvoiceInput: z.ZodTypeAny = z.object({\n code: z.string().describe(\"Optional custom invoice code or reference\").optional(),\n type: z.enum([\"regular_invoice\", \"vat_invoice\", \"preliminary_invoice\", \"preliminary_vat_invoice\", \"credit_invoice\", \"credit_vat_invoice\"]).describe(\"Invoice type required by API. Valid values: 'regular_invoice', 'vat_invoice', 'preliminary_invoice', 'preliminary_vat_invoice', 'credit_invoice', 'credit_vat_invoice'\").optional(),\n buyer: z.object({\n name: z.string().describe(\"Generic name (legacy/compat)\").optional(),\n type: z.enum([\"person\", \"company\"]).describe(\"Buyer type as required by the API\"),\n email: z.string().describe(\"Buyer email\").optional(),\n address: z.string().describe(\"Buyer address\").optional(),\n last_name: z.string().describe(\"Buyer last name (person)\").optional(),\n first_name: z.string().describe(\"Buyer first name (person)\").optional(),\n company_name: z.string().describe(\"Company name (company)\").optional(),\n}).describe(\"Buyer object; required by API when not using customer_id\").optional(),\n notes: z.string().describe(\"Optional notes to appear on the invoice\").optional(),\n seller: z.object({\n email: z.string().describe(\"Seller email\").optional(),\n address: z.string().describe(\"Seller address\").optional(),\n company_name: z.string().describe(\"Seller company name\"),\n}).describe(\"Seller object if not using default\").optional(),\n series: z.string().describe(\"Series code/prefix for the invoice\").optional(),\n currency: z.string().describe(\"ISO 4217 three-letter currency code\").optional(),\n customer: z.object({\n name: z.string().describe(\"Full name of the customer\"),\n email: z.string().describe(\"Email address of the customer\"),\n address: z.string().describe(\"Postal address of the customer\").optional(),\n}).describe(\"Inline customer details; mutually exclusive with `customer_id`\").optional(),\n due_date: z.string().describe(\"Payment due date (YYYY-MM-DD)\").optional(),\n products: z.array(z.object({\n name: z.string().describe(\"Product or service name\"),\n price: z.number().describe(\"Unit price for this product\"),\n units: z.string().describe(\"Units for the product (e.g., pcs, hours)\").optional(),\n quantity: z.number().describe(\"Quantity for this product\"),\n vat_percentage: z.number().describe(\"VAT percentage to apply (0-100)\").optional(),\n})).describe(\"Products array as required by API\").optional(),\n issue_date: z.string().describe(\"Date the invoice was issued (YYYY-MM-DD)\").optional(),\n line_items: z.array(z.object({\n quantity: z.number().describe(\"Quantity of the item, must be non-negative\"),\n unit_price: z.number().describe(\"Unit price of the item in decimal, must be non-negative\"),\n description: z.string().describe(\"Description of the line item\"),\n})).describe(\"List of line items for the invoice\").optional(),\n customer_id: z.string().describe(\"ID of an existing customer; mutually exclusive with `customer`\").optional(),\n invoice_date: z.string().describe(\"Invoice date as expected by the API (YYYY-MM-DD)\").optional(),\n use_default_seller_info: z.boolean().default(true).describe(\"If true, API will use default seller info instead of requiring seller object\").optional(),\n});\nconst FinmeiCreateInvoice_BuyerResponseSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Buyer type (individual, company)\").nullable().optional(),\n email: z.string().describe(\"Contact email\").nullable().optional(),\n phone: z.string().describe(\"Contact phone\").nullable().optional(),\n address: z.string().describe(\"Buyer address\").nullable().optional(),\n vat_code: z.string().describe(\"VAT code\").nullable().optional(),\n last_name: z.string().describe(\"Last name (for individuals)\").nullable().optional(),\n first_name: z.string().describe(\"First name (for individuals)\").nullable().optional(),\n company_code: z.string().describe(\"Company registration code\").nullable().optional(),\n company_name: z.string().describe(\"Company name (for companies)\").nullable().optional(),\n individual_tax_id: z.string().describe(\"Individual tax ID\").nullable().optional(),\n});\nconst FinmeiCreateInvoice_InvoiceItemResponseSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Item unique identifier\").nullable().optional(),\n name: z.string().describe(\"Product or service name\").nullable().optional(),\n price: z.number().describe(\"Unit price\").nullable().optional(),\n units: z.string().describe(\"Units (e.g., pcs, hours)\").nullable().optional(),\n quantity: z.number().describe(\"Quantity\").nullable().optional(),\n vat_percentage: z.number().describe(\"VAT percentage applied\").nullable().optional(),\n});\nconst FinmeiCreateInvoice_SellerResponseSchema: z.ZodTypeAny = z.object({\n email: z.string().describe(\"Contact email\").nullable().optional(),\n phone: z.string().describe(\"Contact phone\").nullable().optional(),\n address: z.string().describe(\"Business address\").nullable().optional(),\n vat_code: z.string().describe(\"VAT code\").nullable().optional(),\n last_name: z.string().describe(\"Last name (for individuals)\").nullable().optional(),\n first_name: z.string().describe(\"First name (for individuals)\").nullable().optional(),\n company_code: z.string().describe(\"Company registration code\").nullable().optional(),\n company_name: z.string().describe(\"Company name (for companies)\").nullable().optional(),\n business_type: z.string().describe(\"Type of business (company, individual)\").nullable().optional(),\n custom_fields: z.array(z.record(z.string(), z.unknown())).describe(\"Custom fields\").nullable().optional(),\n individual_tax_id: z.string().describe(\"Individual tax ID\").nullable().optional(),\n});\nconst FinmeiCreateInvoice_CustomerResponseSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the customer\").nullable().optional(),\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 address: z.string().describe(\"Postal address of the customer\").nullable().optional(),\n});\nconst FinmeiCreateInvoice_LineItemResponseSchema: z.ZodTypeAny = z.object({\n quantity: z.number().describe(\"Quantity of the item\").nullable().optional(),\n unit_price: z.number().describe(\"Unit price of the item\").nullable().optional(),\n description: z.string().describe(\"Description of the line item\").nullable().optional(),\n});\nexport const FinmeiCreateInvoiceOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the created invoice\").nullable().optional(),\n vat: z.number().describe(\"Total VAT amount\").nullable().optional(),\n code: z.string().describe(\"Invoice code or reference (legacy)\").nullable().optional(),\n buyer: FinmeiCreateInvoice_BuyerResponseSchema.nullable().optional(),\n items: z.array(FinmeiCreateInvoice_InvoiceItemResponseSchema).describe(\"Line items on the invoice\").nullable().optional(),\n notes: z.string().describe(\"Notes included on the invoice\").nullable().optional(),\n seller: FinmeiCreateInvoice_SellerResponseSchema.nullable().optional(),\n series: z.string().describe(\"Invoice series/prefix\").nullable().optional(),\n status: z.string().describe(\"Status of the invoice (legacy)\").nullable().optional(),\n currency: z.string().describe(\"Currency code of the invoice\").nullable().optional(),\n customer: FinmeiCreateInvoice_CustomerResponseSchema.nullable().optional(),\n due_date: z.string().describe(\"Payment due date (legacy)\").nullable().optional(),\n language: z.string().describe(\"Invoice language\").nullable().optional(),\n subtotal: z.number().describe(\"Subtotal amount before VAT\").nullable().optional(),\n amount_due: z.number().describe(\"Total amount due on the invoice (legacy)\").nullable().optional(),\n created_at: z.union([z.string(), z.number().int()]).nullable().optional(),\n issue_date: z.string().describe(\"Date the invoice was issued (legacy)\").nullable().optional(),\n line_items: z.array(FinmeiCreateInvoice_LineItemResponseSchema).describe(\"Line items (legacy)\").nullable().optional(),\n share_link: z.string().describe(\"Public link to share the invoice\").nullable().optional(),\n updated_at: z.union([z.string(), z.number().int()]).nullable().optional(),\n amount_paid: z.number().describe(\"Total amount paid on the invoice (legacy)\").nullable().optional(),\n business_id: z.string().describe(\"Business identifier\").nullable().optional(),\n invoice_date: z.string().describe(\"Date the invoice was issued\").nullable().optional(),\n invoice_type: z.string().describe(\"Type of the invoice\").nullable().optional(),\n invoice_number: z.string().describe(\"Invoice number\").nullable().optional(),\n pay_until_date: z.string().describe(\"Payment due date\").nullable().optional(),\n payment_status: z.string().describe(\"Payment status of the invoice\").nullable().optional(),\n total_incl_vat: z.number().describe(\"Total amount including VAT\").nullable().optional(),\n payment_options: z.array(z.record(z.string(), z.unknown())).describe(\"Available payment options\").nullable().optional(),\n});\n\nexport const finmeiCreateInvoice = action(\"FINMEI_CREATE_INVOICE\", {\n slug: \"finmei-create-invoice\",\n name: \"Create Invoice\",\n description: \"Creates a new invoice in Finmei with buyer information and line items. Use this when you need to generate an invoice for a customer. You can specify: - Buyer details (person or company) - Products/services with quantities and prices - Invoice type (regular, VAT, preliminary, credit) - Currency, dates, and custom notes Example: \\\"Create an invoice for Tech Solutions Inc with 3 months of support services at $99.99/month\\\"\",\n input: FinmeiCreateInvoiceInput,\n output: FinmeiCreateInvoiceOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAAyC,EAAE,OAAO;CAC7D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAChF,MAAM,EAAE,KAAK;EAAC;EAAmB;EAAe;EAAuB;EAA2B;EAAkB;CAAoB,CAAC,CAAC,CAAC,SAAS,wKAAwK,CAAC,CAAC,SAAS;CACvU,OAAO,EAAE,OAAO;EAChB,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;EACnE,MAAM,EAAE,KAAK,CAAC,UAAU,SAAS,CAAC,CAAC,CAAC,SAAS,mCAAmC;EAChF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS;EACnD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS;EACvD,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;EACpE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;EACtE,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CACvE,CAAC,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CAC/E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC/E,QAAQ,EAAE,OAAO;EACjB,OAA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ACtF,iBAAiB,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxH,CAOU;AACV,CAAC"}
1
+ {"version":3,"file":"create-invoice.mjs","names":[],"sources":["../../src/actions/create-invoice.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiCreateInvoiceInput = z.object({\n code: z.string().describe(\"Optional custom invoice code or reference\").optional(),\n type: z.enum([\"regular_invoice\", \"vat_invoice\", \"preliminary_invoice\", \"preliminary_vat_invoice\", \"credit_invoice\", \"credit_vat_invoice\"]).describe(\"Invoice type required by API. Valid values: 'regular_invoice', 'vat_invoice', 'preliminary_invoice', 'preliminary_vat_invoice', 'credit_invoice', 'credit_vat_invoice'\").optional(),\n buyer: z.object({\n name: z.string().describe(\"Generic name (legacy/compat)\").optional(),\n type: z.enum([\"person\", \"company\"]).describe(\"Buyer type as required by the API\"),\n email: z.string().describe(\"Buyer email\").optional(),\n address: z.string().describe(\"Buyer address\").optional(),\n last_name: z.string().describe(\"Buyer last name (person)\").optional(),\n first_name: z.string().describe(\"Buyer first name (person)\").optional(),\n company_name: z.string().describe(\"Company name (company)\").optional(),\n}).describe(\"Buyer object; required by API when not using customer_id\").optional(),\n notes: z.string().describe(\"Optional notes to appear on the invoice\").optional(),\n seller: z.object({\n email: z.string().describe(\"Seller email\").optional(),\n address: z.string().describe(\"Seller address\").optional(),\n company_name: z.string().describe(\"Seller company name\"),\n}).describe(\"Seller object if not using default\").optional(),\n series: z.string().describe(\"Series code/prefix for the invoice\").optional(),\n currency: z.string().describe(\"ISO 4217 three-letter currency code\").optional(),\n customer: z.object({\n name: z.string().describe(\"Full name of the customer\"),\n email: z.string().describe(\"Email address of the customer\"),\n address: z.string().describe(\"Postal address of the customer\").optional(),\n}).describe(\"Inline customer details; mutually exclusive with `customer_id`\").optional(),\n due_date: z.string().describe(\"Payment due date (YYYY-MM-DD)\").optional(),\n products: z.array(z.object({\n name: z.string().describe(\"Product or service name\"),\n price: z.number().describe(\"Unit price for this product\"),\n units: z.string().describe(\"Units for the product (e.g., pcs, hours)\").optional(),\n quantity: z.number().describe(\"Quantity for this product\"),\n vat_percentage: z.number().describe(\"VAT percentage to apply (0-100)\").optional(),\n})).describe(\"Products array as required by API\").optional(),\n issue_date: z.string().describe(\"Date the invoice was issued (YYYY-MM-DD)\").optional(),\n line_items: z.array(z.object({\n quantity: z.number().describe(\"Quantity of the item, must be non-negative\"),\n unit_price: z.number().describe(\"Unit price of the item in decimal, must be non-negative\"),\n description: z.string().describe(\"Description of the line item\"),\n})).describe(\"List of line items for the invoice\").optional(),\n customer_id: z.string().describe(\"ID of an existing customer; mutually exclusive with `customer`\").optional(),\n invoice_date: z.string().describe(\"Invoice date as expected by the API (YYYY-MM-DD)\").optional(),\n use_default_seller_info: z.boolean().default(true).describe(\"If true, API will use default seller info instead of requiring seller object\").optional(),\n});\nconst FinmeiCreateInvoice_BuyerResponseSchema = z.object({\n type: z.string().describe(\"Buyer type (individual, company)\").nullable().optional(),\n email: z.string().describe(\"Contact email\").nullable().optional(),\n phone: z.string().describe(\"Contact phone\").nullable().optional(),\n address: z.string().describe(\"Buyer address\").nullable().optional(),\n vat_code: z.string().describe(\"VAT code\").nullable().optional(),\n last_name: z.string().describe(\"Last name (for individuals)\").nullable().optional(),\n first_name: z.string().describe(\"First name (for individuals)\").nullable().optional(),\n company_code: z.string().describe(\"Company registration code\").nullable().optional(),\n company_name: z.string().describe(\"Company name (for companies)\").nullable().optional(),\n individual_tax_id: z.string().describe(\"Individual tax ID\").nullable().optional(),\n});\nconst FinmeiCreateInvoice_InvoiceItemResponseSchema = z.object({\n id: z.string().describe(\"Item unique identifier\").nullable().optional(),\n name: z.string().describe(\"Product or service name\").nullable().optional(),\n price: z.number().describe(\"Unit price\").nullable().optional(),\n units: z.string().describe(\"Units (e.g., pcs, hours)\").nullable().optional(),\n quantity: z.number().describe(\"Quantity\").nullable().optional(),\n vat_percentage: z.number().describe(\"VAT percentage applied\").nullable().optional(),\n});\nconst FinmeiCreateInvoice_SellerResponseSchema = z.object({\n email: z.string().describe(\"Contact email\").nullable().optional(),\n phone: z.string().describe(\"Contact phone\").nullable().optional(),\n address: z.string().describe(\"Business address\").nullable().optional(),\n vat_code: z.string().describe(\"VAT code\").nullable().optional(),\n last_name: z.string().describe(\"Last name (for individuals)\").nullable().optional(),\n first_name: z.string().describe(\"First name (for individuals)\").nullable().optional(),\n company_code: z.string().describe(\"Company registration code\").nullable().optional(),\n company_name: z.string().describe(\"Company name (for companies)\").nullable().optional(),\n business_type: z.string().describe(\"Type of business (company, individual)\").nullable().optional(),\n custom_fields: z.array(z.record(z.string(), z.unknown())).describe(\"Custom fields\").nullable().optional(),\n individual_tax_id: z.string().describe(\"Individual tax ID\").nullable().optional(),\n});\nconst FinmeiCreateInvoice_CustomerResponseSchema = z.object({\n id: z.string().describe(\"Unique identifier of the customer\").nullable().optional(),\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 address: z.string().describe(\"Postal address of the customer\").nullable().optional(),\n});\nconst FinmeiCreateInvoice_LineItemResponseSchema = z.object({\n quantity: z.number().describe(\"Quantity of the item\").nullable().optional(),\n unit_price: z.number().describe(\"Unit price of the item\").nullable().optional(),\n description: z.string().describe(\"Description of the line item\").nullable().optional(),\n});\nexport const FinmeiCreateInvoiceOutput = z.object({\n id: z.string().describe(\"Unique identifier of the created invoice\").nullable().optional(),\n vat: z.number().describe(\"Total VAT amount\").nullable().optional(),\n code: z.string().describe(\"Invoice code or reference (legacy)\").nullable().optional(),\n buyer: FinmeiCreateInvoice_BuyerResponseSchema.nullable().optional(),\n items: z.array(FinmeiCreateInvoice_InvoiceItemResponseSchema).describe(\"Line items on the invoice\").nullable().optional(),\n notes: z.string().describe(\"Notes included on the invoice\").nullable().optional(),\n seller: FinmeiCreateInvoice_SellerResponseSchema.nullable().optional(),\n series: z.string().describe(\"Invoice series/prefix\").nullable().optional(),\n status: z.string().describe(\"Status of the invoice (legacy)\").nullable().optional(),\n currency: z.string().describe(\"Currency code of the invoice\").nullable().optional(),\n customer: FinmeiCreateInvoice_CustomerResponseSchema.nullable().optional(),\n due_date: z.string().describe(\"Payment due date (legacy)\").nullable().optional(),\n language: z.string().describe(\"Invoice language\").nullable().optional(),\n subtotal: z.number().describe(\"Subtotal amount before VAT\").nullable().optional(),\n amount_due: z.number().describe(\"Total amount due on the invoice (legacy)\").nullable().optional(),\n created_at: z.union([z.string(), z.number().int()]).nullable().optional(),\n issue_date: z.string().describe(\"Date the invoice was issued (legacy)\").nullable().optional(),\n line_items: z.array(FinmeiCreateInvoice_LineItemResponseSchema).describe(\"Line items (legacy)\").nullable().optional(),\n share_link: z.string().describe(\"Public link to share the invoice\").nullable().optional(),\n updated_at: z.union([z.string(), z.number().int()]).nullable().optional(),\n amount_paid: z.number().describe(\"Total amount paid on the invoice (legacy)\").nullable().optional(),\n business_id: z.string().describe(\"Business identifier\").nullable().optional(),\n invoice_date: z.string().describe(\"Date the invoice was issued\").nullable().optional(),\n invoice_type: z.string().describe(\"Type of the invoice\").nullable().optional(),\n invoice_number: z.string().describe(\"Invoice number\").nullable().optional(),\n pay_until_date: z.string().describe(\"Payment due date\").nullable().optional(),\n payment_status: z.string().describe(\"Payment status of the invoice\").nullable().optional(),\n total_incl_vat: z.number().describe(\"Total amount including VAT\").nullable().optional(),\n payment_options: z.array(z.record(z.string(), z.unknown())).describe(\"Available payment options\").nullable().optional(),\n});\n\nexport const finmeiCreateInvoice = action(\"FINMEI_CREATE_INVOICE\", {\n slug: \"finmei-create-invoice\",\n name: \"Create Invoice\",\n description: \"Creates a new invoice in Finmei with buyer information and line items. Use this when you need to generate an invoice for a customer. You can specify: - Buyer details (person or company) - Products/services with quantities and prices - Invoice type (regular, VAT, preliminary, credit) - Currency, dates, and custom notes Example: \\\"Create an invoice for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/delete-customer.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiDeleteCustomerInput: z.ZodTypeAny = z.object({\n customer_id: z.string().describe(\"Unique identifier of the customer to delete\"),\n}).describe(\"Request schema for deleting a customer.\");\nexport const FinmeiDeleteCustomerOutput: z.ZodTypeAny = z.object({}).describe(\"Response schema for deleting a customer. Empty if successful.\");\n\nexport const finmeiDeleteCustomer = action(\"FINMEI_DELETE_CUSTOMER\", {\n slug: \"finmei-delete-customer\",\n name: \"Delete Customer\",\n description: \"Tool to delete a specific customer by their ID. Use after confirming the correct customer_id to remove the record.\",\n input: FinmeiDeleteCustomerInput,\n output: FinmeiDeleteCustomerOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA0CA,IAAAA,EAAE,OAAO,EAC9D,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,EAChF,CAAC,CAAC,CAAC,SAAS,yCAAyC;AACrD,MAAa,6BAA2CA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAE7I,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"delete-customer.cjs","names":["z","action"],"sources":["../../src/actions/delete-customer.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiDeleteCustomerInput = z.object({\n customer_id: z.string().describe(\"Unique identifier of the customer to delete\"),\n}).describe(\"Request schema for deleting a customer.\");\nexport const FinmeiDeleteCustomerOutput = z.object({}).describe(\"Response schema for deleting a customer. Empty if successful.\");\n\nexport const finmeiDeleteCustomer = action(\"FINMEI_DELETE_CUSTOMER\", {\n slug: \"finmei-delete-customer\",\n name: \"Delete Customer\",\n description: \"Tool to delete a specific customer by their ID. Use after confirming the correct customer_id to remove the record.\",\n input: FinmeiDeleteCustomerInput,\n output: FinmeiDeleteCustomerOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,EAChD,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,EAChF,CAAC,CAAC,CAAC,SAAS,yCAAyC;AACrD,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAE/H,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,13 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/delete-customer.d.ts
4
- declare const FinmeiDeleteCustomerInput: z.ZodTypeAny;
5
- declare const FinmeiDeleteCustomerOutput: z.ZodTypeAny;
6
- declare const finmeiDeleteCustomer: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const FinmeiDeleteCustomerInput: z.ZodObject<{
5
+ customer_id: z.ZodString;
6
+ }, z.core.$strip>;
7
+ declare const FinmeiDeleteCustomerOutput: z.ZodObject<{}, z.core.$strip>;
8
+ declare const finmeiDeleteCustomer: import("@keystrokehq/action").WorkflowActionDefinition<{
9
+ customer_id: string;
10
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
11
  //#endregion
8
12
  export { finmeiDeleteCustomer };
9
13
  //# sourceMappingURL=delete-customer.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"delete-customer.d.cts","names":[],"sources":["../../src/actions/delete-customer.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAEY;AAAA,cACzC,0BAAA,EAA4B,CAAA,CAAE,UAAmG;AAAA,cAEjI,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"delete-customer.d.cts","names":[],"sources":["../../src/actions/delete-customer.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;cAGzB,0BAAA,EAA0B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAE1B,oBAAA,gCAAoB,wBAAA"}
@@ -1,9 +1,13 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/delete-customer.d.ts
4
- declare const FinmeiDeleteCustomerInput: z.ZodTypeAny;
5
- declare const FinmeiDeleteCustomerOutput: z.ZodTypeAny;
6
- declare const finmeiDeleteCustomer: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const FinmeiDeleteCustomerInput: z.ZodObject<{
5
+ customer_id: z.ZodString;
6
+ }, z.core.$strip>;
7
+ declare const FinmeiDeleteCustomerOutput: z.ZodObject<{}, z.core.$strip>;
8
+ declare const finmeiDeleteCustomer: import("@keystrokehq/action").WorkflowActionDefinition<{
9
+ customer_id: string;
10
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
11
  //#endregion
8
12
  export { finmeiDeleteCustomer };
9
13
  //# sourceMappingURL=delete-customer.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"delete-customer.d.mts","names":[],"sources":["../../src/actions/delete-customer.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAEY;AAAA,cACzC,0BAAA,EAA4B,CAAA,CAAE,UAAmG;AAAA,cAEjI,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"delete-customer.d.mts","names":[],"sources":["../../src/actions/delete-customer.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;cAGzB,0BAAA,EAA0B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAE1B,oBAAA,gCAAoB,wBAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"delete-customer.mjs","names":[],"sources":["../../src/actions/delete-customer.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiDeleteCustomerInput: z.ZodTypeAny = z.object({\n customer_id: z.string().describe(\"Unique identifier of the customer to delete\"),\n}).describe(\"Request schema for deleting a customer.\");\nexport const FinmeiDeleteCustomerOutput: z.ZodTypeAny = z.object({}).describe(\"Response schema for deleting a customer. Empty if successful.\");\n\nexport const finmeiDeleteCustomer = action(\"FINMEI_DELETE_CUSTOMER\", {\n slug: \"finmei-delete-customer\",\n name: \"Delete Customer\",\n description: \"Tool to delete a specific customer by their ID. Use after confirming the correct customer_id to remove the record.\",\n input: FinmeiDeleteCustomerInput,\n output: FinmeiDeleteCustomerOutput,\n});\n"],"mappings":";;AASA,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OATqD,EAAE,OAAO,EAC9D,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,EAChF,CAAC,CAAC,CAAC,SAAS,yCAOH;CACP,QAPsD,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,+DAOpE;AACV,CAAC"}
1
+ {"version":3,"file":"delete-customer.mjs","names":[],"sources":["../../src/actions/delete-customer.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiDeleteCustomerInput = z.object({\n customer_id: z.string().describe(\"Unique identifier of the customer to delete\"),\n}).describe(\"Request schema for deleting a customer.\");\nexport const FinmeiDeleteCustomerOutput = z.object({}).describe(\"Response schema for deleting a customer. Empty if successful.\");\n\nexport const finmeiDeleteCustomer = action(\"FINMEI_DELETE_CUSTOMER\", {\n slug: \"finmei-delete-customer\",\n name: \"Delete Customer\",\n description: \"Tool to delete a specific customer by their ID. Use after confirming the correct customer_id to remove the record.\",\n input: FinmeiDeleteCustomerInput,\n output: FinmeiDeleteCustomerOutput,\n});\n"],"mappings":";;AASA,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OATuC,EAAE,OAAO,EAChD,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,EAChF,CAAC,CAAC,CAAC,SAAS,yCAOH;CACP,QAPwC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,+DAOtD;AACV,CAAC"}
@@ -4,7 +4,7 @@ let zod = require("zod");
4
4
  const FinmeiDeleteInvoiceInput = zod.z.object({ invoice_id: zod.z.string().describe("The unique identifier of the invoice to delete") }).describe("Request model for deleting an invoice by its ID.");
5
5
  const FinmeiDeleteInvoiceOutput = zod.z.object({
6
6
  message: zod.z.string().describe("Optional message returned by the API").nullable().optional(),
7
- success: zod.z.boolean().describe("Indicates whether the invoice was successfully deleted")
7
+ success: zod.z.boolean().describe("Indicates whether the invoice was successfully deleted").nullable()
8
8
  }).describe("Response model returning deletion result.");
9
9
  const finmeiDeleteInvoice = require_action.action("FINMEI_DELETE_INVOICE", {
10
10
  slug: "finmei-delete-invoice",
@@ -1 +1 @@
1
- {"version":3,"file":"delete-invoice.cjs","names":["z","action"],"sources":["../../src/actions/delete-invoice.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiDeleteInvoiceInput: z.ZodTypeAny = z.object({\n invoice_id: z.string().describe(\"The unique identifier of the invoice to delete\"),\n}).describe(\"Request model for deleting an invoice by its ID.\");\nexport const FinmeiDeleteInvoiceOutput: z.ZodTypeAny = z.object({\n message: z.string().describe(\"Optional message returned by the API\").nullable().optional(),\n success: z.boolean().describe(\"Indicates whether the invoice was successfully deleted\"),\n}).describe(\"Response model returning deletion result.\");\n\nexport const finmeiDeleteInvoice = action(\"FINMEI_DELETE_INVOICE\", {\n slug: \"finmei-delete-invoice\",\n name: \"Delete Invoice\",\n description: \"Tool to delete an invoice. Use when you need to remove an existing invoice by its ID.\",\n input: FinmeiDeleteInvoiceInput,\n output: FinmeiDeleteInvoiceOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAAyCA,IAAAA,EAAE,OAAO,EAC7D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,EAClF,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAC9D,MAAa,4BAA0CA,IAAAA,EAAE,OAAO;CAC9D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,wDAAwD;AACxF,CAAC,CAAC,CAAC,SAAS,2CAA2C;AAEvD,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"delete-invoice.cjs","names":["z","action"],"sources":["../../src/actions/delete-invoice.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiDeleteInvoiceInput = z.object({\n invoice_id: z.string().describe(\"The unique identifier of the invoice to delete\"),\n}).describe(\"Request model for deleting an invoice by its ID.\");\nexport const FinmeiDeleteInvoiceOutput = z.object({\n message: z.string().describe(\"Optional message returned by the API\").nullable().optional(),\n success: z.boolean().describe(\"Indicates whether the invoice was successfully deleted\").nullable(),\n}).describe(\"Response model returning deletion result.\");\n\nexport const finmeiDeleteInvoice = action(\"FINMEI_DELETE_INVOICE\", {\n slug: \"finmei-delete-invoice\",\n name: \"Delete Invoice\",\n description: \"Tool to delete an invoice. Use when you need to remove an existing invoice by its ID.\",\n input: FinmeiDeleteInvoiceInput,\n output: FinmeiDeleteInvoiceOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO,EAC/C,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,EAClF,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAC9D,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;AACnG,CAAC,CAAC,CAAC,SAAS,2CAA2C;AAEvD,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,16 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/delete-invoice.d.ts
4
- declare const FinmeiDeleteInvoiceInput: z.ZodTypeAny;
5
- declare const FinmeiDeleteInvoiceOutput: z.ZodTypeAny;
6
- declare const finmeiDeleteInvoice: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const FinmeiDeleteInvoiceInput: z.ZodObject<{
5
+ invoice_id: z.ZodString;
6
+ }, z.core.$strip>;
7
+ declare const FinmeiDeleteInvoiceOutput: z.ZodObject<{
8
+ message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9
+ success: z.ZodNullable<z.ZodBoolean>;
10
+ }, z.core.$strip>;
11
+ declare const finmeiDeleteInvoice: import("@keystrokehq/action").WorkflowActionDefinition<{
12
+ invoice_id: string;
13
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
14
  //#endregion
8
15
  export { finmeiDeleteInvoice };
9
16
  //# sourceMappingURL=delete-invoice.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"delete-invoice.d.cts","names":[],"sources":["../../src/actions/delete-invoice.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAEsB;AAAA,cAClD,yBAAA,EAA2B,CAAA,CAAE,UAGc;AAAA,cAE3C,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"delete-invoice.d.cts","names":[],"sources":["../../src/actions/delete-invoice.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;cAGxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;cAKzB,mBAAA,gCAAmB,wBAAA"}
@@ -1,9 +1,16 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/delete-invoice.d.ts
4
- declare const FinmeiDeleteInvoiceInput: z.ZodTypeAny;
5
- declare const FinmeiDeleteInvoiceOutput: z.ZodTypeAny;
6
- declare const finmeiDeleteInvoice: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const FinmeiDeleteInvoiceInput: z.ZodObject<{
5
+ invoice_id: z.ZodString;
6
+ }, z.core.$strip>;
7
+ declare const FinmeiDeleteInvoiceOutput: z.ZodObject<{
8
+ message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9
+ success: z.ZodNullable<z.ZodBoolean>;
10
+ }, z.core.$strip>;
11
+ declare const finmeiDeleteInvoice: import("@keystrokehq/action").WorkflowActionDefinition<{
12
+ invoice_id: string;
13
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
14
  //#endregion
8
15
  export { finmeiDeleteInvoice };
9
16
  //# sourceMappingURL=delete-invoice.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"delete-invoice.d.mts","names":[],"sources":["../../src/actions/delete-invoice.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAEsB;AAAA,cAClD,yBAAA,EAA2B,CAAA,CAAE,UAGc;AAAA,cAE3C,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"delete-invoice.d.mts","names":[],"sources":["../../src/actions/delete-invoice.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;cAGxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;cAKzB,mBAAA,gCAAmB,wBAAA"}
@@ -7,7 +7,7 @@ const finmeiDeleteInvoice = action("FINMEI_DELETE_INVOICE", {
7
7
  input: z.object({ invoice_id: z.string().describe("The unique identifier of the invoice to delete") }).describe("Request model for deleting an invoice by its ID."),
8
8
  output: z.object({
9
9
  message: z.string().describe("Optional message returned by the API").nullable().optional(),
10
- success: z.boolean().describe("Indicates whether the invoice was successfully deleted")
10
+ success: z.boolean().describe("Indicates whether the invoice was successfully deleted").nullable()
11
11
  }).describe("Response model returning deletion result.")
12
12
  });
13
13
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"delete-invoice.mjs","names":[],"sources":["../../src/actions/delete-invoice.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiDeleteInvoiceInput: z.ZodTypeAny = z.object({\n invoice_id: z.string().describe(\"The unique identifier of the invoice to delete\"),\n}).describe(\"Request model for deleting an invoice by its ID.\");\nexport const FinmeiDeleteInvoiceOutput: z.ZodTypeAny = z.object({\n message: z.string().describe(\"Optional message returned by the API\").nullable().optional(),\n success: z.boolean().describe(\"Indicates whether the invoice was successfully deleted\"),\n}).describe(\"Response model returning deletion result.\");\n\nexport const finmeiDeleteInvoice = action(\"FINMEI_DELETE_INVOICE\", {\n slug: \"finmei-delete-invoice\",\n name: \"Delete Invoice\",\n description: \"Tool to delete an invoice. Use when you need to remove an existing invoice by its ID.\",\n input: FinmeiDeleteInvoiceInput,\n output: FinmeiDeleteInvoiceOutput,\n});\n"],"mappings":";;AAYA,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZoD,EAAE,OAAO,EAC7D,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,EAClF,CAAC,CAAC,CAAC,SAAS,kDAUH;CACP,QAVqD,EAAE,OAAO;EAC9D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzF,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,wDAAwD;CACxF,CAAC,CAAC,CAAC,SAAS,2CAOF;AACV,CAAC"}
1
+ {"version":3,"file":"delete-invoice.mjs","names":[],"sources":["../../src/actions/delete-invoice.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiDeleteInvoiceInput = z.object({\n invoice_id: z.string().describe(\"The unique identifier of the invoice to delete\"),\n}).describe(\"Request model for deleting an invoice by its ID.\");\nexport const FinmeiDeleteInvoiceOutput = z.object({\n message: z.string().describe(\"Optional message returned by the API\").nullable().optional(),\n success: z.boolean().describe(\"Indicates whether the invoice was successfully deleted\").nullable(),\n}).describe(\"Response model returning deletion result.\");\n\nexport const finmeiDeleteInvoice = action(\"FINMEI_DELETE_INVOICE\", {\n slug: \"finmei-delete-invoice\",\n name: \"Delete Invoice\",\n description: \"Tool to delete an invoice. Use when you need to remove an existing invoice by its ID.\",\n input: FinmeiDeleteInvoiceInput,\n output: FinmeiDeleteInvoiceOutput,\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,gDAAgD,EAClF,CAAC,CAAC,CAAC,SAAS,kDAUH;CACP,QAVuC,EAAE,OAAO;EAChD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzF,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CACnG,CAAC,CAAC,CAAC,SAAS,2CAOF;AACV,CAAC"}
@@ -2,7 +2,7 @@ const require_action = require("../action.cjs");
2
2
  let zod = require("zod");
3
3
  //#region src/actions/delete-payment.ts
4
4
  const FinmeiDeletePaymentInput = zod.z.object({ payment_id: zod.z.string().describe("Unique identifier of the payment to delete. This is typically returned from payment creation or list operations.") }).describe("Request model for deleting a payment.");
5
- const FinmeiDeletePaymentOutput = zod.z.object({ success: zod.z.boolean().describe("Always true when the operation completes without errors. Returns true even if the payment didn't exist (idempotent behavior).") }).describe("Response model for delete payment action.");
5
+ const FinmeiDeletePaymentOutput = zod.z.object({ success: zod.z.boolean().describe("Always true when the operation completes without errors. Returns true even if the payment didn't exist (idempotent behavior).").nullable() }).describe("Response model for delete payment action.");
6
6
  const finmeiDeletePayment = require_action.action("FINMEI_DELETE_PAYMENT", {
7
7
  slug: "finmei-delete-payment",
8
8
  name: "Delete Payment",
@@ -1 +1 @@
1
- {"version":3,"file":"delete-payment.cjs","names":["z","action"],"sources":["../../src/actions/delete-payment.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiDeletePaymentInput: z.ZodTypeAny = z.object({\n payment_id: z.string().describe(\"Unique identifier of the payment to delete. This is typically returned from payment creation or list operations.\"),\n}).describe(\"Request model for deleting a payment.\");\nexport const FinmeiDeletePaymentOutput: z.ZodTypeAny = z.object({\n success: z.boolean().describe(\"Always true when the operation completes without errors. Returns true even if the payment didn't exist (idempotent behavior).\"),\n}).describe(\"Response model for delete payment action.\");\n\nexport const finmeiDeletePayment = action(\"FINMEI_DELETE_PAYMENT\", {\n slug: \"finmei-delete-payment\",\n name: \"Delete Payment\",\n description: \"Delete a payment record by its unique identifier. This action permanently removes the payment from the system. Returns success even if the payment doesn't exist (idempotent operation). Use this when you need to remove incorrect, duplicate, or obsolete payment records.\",\n input: FinmeiDeletePaymentInput,\n output: FinmeiDeletePaymentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAAyCA,IAAAA,EAAE,OAAO,EAC7D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kHAAkH,EACpJ,CAAC,CAAC,CAAC,SAAS,uCAAuC;AACnD,MAAa,4BAA0CA,IAAAA,EAAE,OAAO,EAC9D,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,+HAA+H,EAC/J,CAAC,CAAC,CAAC,SAAS,2CAA2C;AAEvD,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"delete-payment.cjs","names":["z","action"],"sources":["../../src/actions/delete-payment.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiDeletePaymentInput = z.object({\n payment_id: z.string().describe(\"Unique identifier of the payment to delete. This is typically returned from payment creation or list operations.\"),\n}).describe(\"Request model for deleting a payment.\");\nexport const FinmeiDeletePaymentOutput = z.object({\n success: z.boolean().describe(\"Always true when the operation completes without errors. Returns true even if the payment didn't exist (idempotent behavior).\").nullable(),\n}).describe(\"Response model for delete payment action.\");\n\nexport const finmeiDeletePayment = action(\"FINMEI_DELETE_PAYMENT\", {\n slug: \"finmei-delete-payment\",\n name: \"Delete Payment\",\n description: \"Delete a payment record by its unique identifier. This action permanently removes the payment from the system. Returns success even if the payment doesn't exist (idempotent operation). Use this when you need to remove incorrect, duplicate, or obsolete payment records.\",\n input: FinmeiDeletePaymentInput,\n output: FinmeiDeletePaymentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO,EAC/C,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kHAAkH,EACpJ,CAAC,CAAC,CAAC,SAAS,uCAAuC;AACnD,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,EAChD,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,+HAA+H,CAAC,CAAC,SAAS,EAC1K,CAAC,CAAC,CAAC,SAAS,2CAA2C;AAEvD,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,15 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/delete-payment.d.ts
4
- declare const FinmeiDeletePaymentInput: z.ZodTypeAny;
5
- declare const FinmeiDeletePaymentOutput: z.ZodTypeAny;
6
- declare const finmeiDeletePayment: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const FinmeiDeletePaymentInput: z.ZodObject<{
5
+ payment_id: z.ZodString;
6
+ }, z.core.$strip>;
7
+ declare const FinmeiDeletePaymentOutput: z.ZodObject<{
8
+ success: z.ZodNullable<z.ZodBoolean>;
9
+ }, z.core.$strip>;
10
+ declare const finmeiDeletePayment: import("@keystrokehq/action").WorkflowActionDefinition<{
11
+ payment_id: string;
12
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
13
  //#endregion
8
14
  export { finmeiDeletePayment };
9
15
  //# sourceMappingURL=delete-payment.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"delete-payment.d.cts","names":[],"sources":["../../src/actions/delete-payment.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAEW;AAAA,cACvC,yBAAA,EAA2B,CAAA,CAAE,UAEc;AAAA,cAE3C,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"delete-payment.d.cts","names":[],"sources":["../../src/actions/delete-payment.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;cAGxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;cAIzB,mBAAA,gCAAmB,wBAAA"}
@@ -1,9 +1,15 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/delete-payment.d.ts
4
- declare const FinmeiDeletePaymentInput: z.ZodTypeAny;
5
- declare const FinmeiDeletePaymentOutput: z.ZodTypeAny;
6
- declare const finmeiDeletePayment: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const FinmeiDeletePaymentInput: z.ZodObject<{
5
+ payment_id: z.ZodString;
6
+ }, z.core.$strip>;
7
+ declare const FinmeiDeletePaymentOutput: z.ZodObject<{
8
+ success: z.ZodNullable<z.ZodBoolean>;
9
+ }, z.core.$strip>;
10
+ declare const finmeiDeletePayment: import("@keystrokehq/action").WorkflowActionDefinition<{
11
+ payment_id: string;
12
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
13
  //#endregion
8
14
  export { finmeiDeletePayment };
9
15
  //# sourceMappingURL=delete-payment.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"delete-payment.d.mts","names":[],"sources":["../../src/actions/delete-payment.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAEW;AAAA,cACvC,yBAAA,EAA2B,CAAA,CAAE,UAEc;AAAA,cAE3C,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"delete-payment.d.mts","names":[],"sources":["../../src/actions/delete-payment.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;cAGxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;cAIzB,mBAAA,gCAAmB,wBAAA"}
@@ -5,7 +5,7 @@ const finmeiDeletePayment = action("FINMEI_DELETE_PAYMENT", {
5
5
  name: "Delete Payment",
6
6
  description: "Delete a payment record by its unique identifier. This action permanently removes the payment from the system. Returns success even if the payment doesn't exist (idempotent operation). Use this when you need to remove incorrect, duplicate, or obsolete payment records.",
7
7
  input: z.object({ payment_id: z.string().describe("Unique identifier of the payment to delete. This is typically returned from payment creation or list operations.") }).describe("Request model for deleting a payment."),
8
- output: z.object({ success: z.boolean().describe("Always true when the operation completes without errors. Returns true even if the payment didn't exist (idempotent behavior).") }).describe("Response model for delete payment action.")
8
+ output: z.object({ success: z.boolean().describe("Always true when the operation completes without errors. Returns true even if the payment didn't exist (idempotent behavior).").nullable() }).describe("Response model for delete payment action.")
9
9
  });
10
10
  //#endregion
11
11
  export { finmeiDeletePayment };
@@ -1 +1 @@
1
- {"version":3,"file":"delete-payment.mjs","names":[],"sources":["../../src/actions/delete-payment.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiDeletePaymentInput: z.ZodTypeAny = z.object({\n payment_id: z.string().describe(\"Unique identifier of the payment to delete. This is typically returned from payment creation or list operations.\"),\n}).describe(\"Request model for deleting a payment.\");\nexport const FinmeiDeletePaymentOutput: z.ZodTypeAny = z.object({\n success: z.boolean().describe(\"Always true when the operation completes without errors. Returns true even if the payment didn't exist (idempotent behavior).\"),\n}).describe(\"Response model for delete payment action.\");\n\nexport const finmeiDeletePayment = action(\"FINMEI_DELETE_PAYMENT\", {\n slug: \"finmei-delete-payment\",\n name: \"Delete Payment\",\n description: \"Delete a payment record by its unique identifier. This action permanently removes the payment from the system. Returns success even if the payment doesn't exist (idempotent operation). Use this when you need to remove incorrect, duplicate, or obsolete payment records.\",\n input: FinmeiDeletePaymentInput,\n output: FinmeiDeletePaymentOutput,\n});\n"],"mappings":";;AAWA,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAXoD,EAAE,OAAO,EAC7D,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,kHAAkH,EACpJ,CAAC,CAAC,CAAC,SAAS,uCASH;CACP,QATqD,EAAE,OAAO,EAC9D,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,+HAA+H,EAC/J,CAAC,CAAC,CAAC,SAAS,2CAOF;AACV,CAAC"}
1
+ {"version":3,"file":"delete-payment.mjs","names":[],"sources":["../../src/actions/delete-payment.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiDeletePaymentInput = z.object({\n payment_id: z.string().describe(\"Unique identifier of the payment to delete. This is typically returned from payment creation or list operations.\"),\n}).describe(\"Request model for deleting a payment.\");\nexport const FinmeiDeletePaymentOutput = z.object({\n success: z.boolean().describe(\"Always true when the operation completes without errors. Returns true even if the payment didn't exist (idempotent behavior).\").nullable(),\n}).describe(\"Response model for delete payment action.\");\n\nexport const finmeiDeletePayment = action(\"FINMEI_DELETE_PAYMENT\", {\n slug: \"finmei-delete-payment\",\n name: \"Delete Payment\",\n description: \"Delete a payment record by its unique identifier. This action permanently removes the payment from the system. Returns success even if the payment doesn't exist (idempotent operation). Use this when you need to remove incorrect, duplicate, or obsolete payment records.\",\n input: FinmeiDeletePaymentInput,\n output: FinmeiDeletePaymentOutput,\n});\n"],"mappings":";;AAWA,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAXsC,EAAE,OAAO,EAC/C,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,kHAAkH,EACpJ,CAAC,CAAC,CAAC,SAAS,uCASH;CACP,QATuC,EAAE,OAAO,EAChD,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,+HAA+H,CAAC,CAAC,SAAS,EAC1K,CAAC,CAAC,CAAC,SAAS,2CAOF;AACV,CAAC"}
@@ -4,7 +4,7 @@ let zod = require("zod");
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
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
- success: zod.z.boolean().describe("True if the product was deleted or does not exist (idempotent). False only on actual errors like authentication failures.")
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", {
10
10
  slug: "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.ZodTypeAny = 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.ZodTypeAny = 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.\"),\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,2BAAyCA,IAAAA,EAAE,OAAO,EAC7D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8HAA8H,EAChK,CAAC;AACD,MAAa,4BAA0CA,IAAAA,EAAE,OAAO;CAC9D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wKAAwK,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3N,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,2HAA2H;AAC3J,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"}
@@ -1,9 +1,16 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/delete-product.d.ts
4
- declare const FinmeiDeleteProductInput: z.ZodTypeAny;
5
- declare const FinmeiDeleteProductOutput: z.ZodTypeAny;
6
- declare const finmeiDeleteProduct: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const FinmeiDeleteProductInput: z.ZodObject<{
5
+ product_id: z.ZodString;
6
+ }, z.core.$strip>;
7
+ declare const FinmeiDeleteProductOutput: z.ZodObject<{
8
+ message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9
+ success: z.ZodNullable<z.ZodBoolean>;
10
+ }, z.core.$strip>;
11
+ declare const finmeiDeleteProduct: import("@keystrokehq/action").WorkflowActionDefinition<{
12
+ product_id: string;
13
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
14
  //#endregion
8
15
  export { finmeiDeleteProduct };
9
16
  //# sourceMappingURL=delete-product.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"delete-product.d.cts","names":[],"sources":["../../src/actions/delete-product.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAEvC;AAAA,cACW,yBAAA,EAA2B,CAAA,CAAE,UAGxC;AAAA,cAEW,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"delete-product.d.cts","names":[],"sources":["../../src/actions/delete-product.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;cAGxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;cAKzB,mBAAA,gCAAmB,wBAAA"}
@@ -1,9 +1,16 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/delete-product.d.ts
4
- declare const FinmeiDeleteProductInput: z.ZodTypeAny;
5
- declare const FinmeiDeleteProductOutput: z.ZodTypeAny;
6
- declare const finmeiDeleteProduct: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const FinmeiDeleteProductInput: z.ZodObject<{
5
+ product_id: z.ZodString;
6
+ }, z.core.$strip>;
7
+ declare const FinmeiDeleteProductOutput: z.ZodObject<{
8
+ message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9
+ success: z.ZodNullable<z.ZodBoolean>;
10
+ }, z.core.$strip>;
11
+ declare const finmeiDeleteProduct: import("@keystrokehq/action").WorkflowActionDefinition<{
12
+ product_id: string;
13
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
14
  //#endregion
8
15
  export { finmeiDeleteProduct };
9
16
  //# sourceMappingURL=delete-product.d.mts.map