@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
@@ -55,74 +55,74 @@ declare const FinmeiCreateInvoiceInput: z.ZodObject<{
55
55
  use_default_seller_info: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
56
56
  }, z.core.$strip>;
57
57
  declare const FinmeiCreateInvoiceOutput: z.ZodObject<{
58
- id: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
59
- vat: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
60
- code: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
61
- buyer: z.ZodPreprocess<z.ZodOptional<z.ZodObject<{
62
- type: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
63
- email: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
64
- phone: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
65
- address: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
66
- vat_code: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
67
- last_name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
68
- first_name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
69
- company_code: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
70
- company_name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
71
- individual_tax_id: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
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
72
  }, z.core.$strip>>>;
73
- items: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodObject<{
74
- id: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
75
- name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
76
- price: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
77
- units: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
78
- quantity: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
79
- vat_percentage: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
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
80
  }, z.core.$strip>>>>;
81
- notes: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
82
- seller: z.ZodPreprocess<z.ZodOptional<z.ZodObject<{
83
- email: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
84
- phone: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
85
- address: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
86
- vat_code: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
87
- last_name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
88
- first_name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
89
- company_code: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
90
- company_name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
91
- business_type: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
92
- custom_fields: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
93
- individual_tax_id: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
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
94
  }, z.core.$strip>>>;
95
- series: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
96
- status: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
97
- currency: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
98
- customer: z.ZodPreprocess<z.ZodOptional<z.ZodObject<{
99
- id: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
100
- name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
101
- email: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
102
- address: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
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
103
  }, z.core.$strip>>>;
104
- due_date: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
105
- language: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
106
- subtotal: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
107
- amount_due: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
108
- created_at: z.ZodPreprocess<z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
109
- issue_date: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
110
- line_items: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodObject<{
111
- quantity: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
112
- unit_price: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
113
- description: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
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
114
  }, z.core.$strip>>>>;
115
- share_link: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
116
- updated_at: z.ZodPreprocess<z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
117
- amount_paid: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
118
- business_id: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
119
- invoice_date: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
120
- invoice_type: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
121
- invoice_number: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
122
- pay_until_date: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
123
- payment_status: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
124
- total_incl_vat: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
125
- payment_options: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
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
126
  }, z.core.$strip>;
127
127
  declare const finmeiCreateInvoice: import("@keystrokehq/action").WorkflowActionDefinition<{
128
128
  code?: string | undefined;
@@ -166,76 +166,7 @@ declare const finmeiCreateInvoice: import("@keystrokehq/action").WorkflowActionD
166
166
  customer_id?: string | undefined;
167
167
  invoice_date?: string | undefined;
168
168
  use_default_seller_info?: boolean | undefined;
169
- }, {
170
- id?: string | undefined;
171
- vat?: number | undefined;
172
- code?: string | undefined;
173
- buyer?: {
174
- type?: string | undefined;
175
- email?: string | undefined;
176
- phone?: string | undefined;
177
- address?: string | undefined;
178
- vat_code?: string | undefined;
179
- last_name?: string | undefined;
180
- first_name?: string | undefined;
181
- company_code?: string | undefined;
182
- company_name?: string | undefined;
183
- individual_tax_id?: string | undefined;
184
- } | undefined;
185
- items?: {
186
- id?: string | undefined;
187
- name?: string | undefined;
188
- price?: number | undefined;
189
- units?: string | undefined;
190
- quantity?: number | undefined;
191
- vat_percentage?: number | undefined;
192
- }[] | undefined;
193
- notes?: string | undefined;
194
- seller?: {
195
- email?: string | undefined;
196
- phone?: string | undefined;
197
- address?: string | undefined;
198
- vat_code?: string | undefined;
199
- last_name?: string | undefined;
200
- first_name?: string | undefined;
201
- company_code?: string | undefined;
202
- company_name?: string | undefined;
203
- business_type?: string | undefined;
204
- custom_fields?: Record<string, unknown>[] | undefined;
205
- individual_tax_id?: string | undefined;
206
- } | undefined;
207
- series?: string | undefined;
208
- status?: string | undefined;
209
- currency?: string | undefined;
210
- customer?: {
211
- id?: string | undefined;
212
- name?: string | undefined;
213
- email?: string | undefined;
214
- address?: string | undefined;
215
- } | undefined;
216
- due_date?: string | undefined;
217
- language?: string | undefined;
218
- subtotal?: number | undefined;
219
- amount_due?: number | undefined;
220
- created_at?: string | number | undefined;
221
- issue_date?: string | undefined;
222
- line_items?: {
223
- quantity?: number | undefined;
224
- unit_price?: number | undefined;
225
- description?: string | undefined;
226
- }[] | undefined;
227
- share_link?: string | undefined;
228
- updated_at?: string | number | undefined;
229
- amount_paid?: number | undefined;
230
- business_id?: string | undefined;
231
- invoice_date?: string | undefined;
232
- invoice_type?: string | undefined;
233
- invoice_number?: string | undefined;
234
- pay_until_date?: string | undefined;
235
- payment_status?: string | undefined;
236
- total_incl_vat?: number | undefined;
237
- payment_options?: Record<string, unknown>[] | undefined;
238
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
169
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
239
170
  //#endregion
240
171
  export { finmeiCreateInvoice };
241
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,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAuFxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAgCzB,mBAAA,gCAAmB,wBAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAM9B,MAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAAA,MAAA;AAAA"}
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"}
@@ -52,48 +52,48 @@ const FinmeiCreateInvoiceInput = z.object({
52
52
  use_default_seller_info: z.boolean().default(true).describe("If true, API will use default seller info instead of requiring seller object").optional()
53
53
  });
54
54
  const FinmeiCreateInvoice_BuyerResponseSchema = z.object({
55
- type: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Buyer type (individual, company)").optional()),
56
- email: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Contact email").optional()),
57
- phone: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Contact phone").optional()),
58
- address: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Buyer address").optional()),
59
- vat_code: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("VAT code").optional()),
60
- last_name: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Last name (for individuals)").optional()),
61
- first_name: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("First name (for individuals)").optional()),
62
- company_code: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Company registration code").optional()),
63
- company_name: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Company name (for companies)").optional()),
64
- individual_tax_id: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Individual tax ID").optional())
55
+ type: z.string().describe("Buyer type (individual, company)").nullable().optional(),
56
+ email: z.string().describe("Contact email").nullable().optional(),
57
+ phone: z.string().describe("Contact phone").nullable().optional(),
58
+ address: z.string().describe("Buyer address").nullable().optional(),
59
+ vat_code: z.string().describe("VAT code").nullable().optional(),
60
+ last_name: z.string().describe("Last name (for individuals)").nullable().optional(),
61
+ first_name: z.string().describe("First name (for individuals)").nullable().optional(),
62
+ company_code: z.string().describe("Company registration code").nullable().optional(),
63
+ company_name: z.string().describe("Company name (for companies)").nullable().optional(),
64
+ individual_tax_id: z.string().describe("Individual tax ID").nullable().optional()
65
65
  });
66
66
  const FinmeiCreateInvoice_InvoiceItemResponseSchema = z.object({
67
- id: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Item unique identifier").optional()),
68
- name: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Product or service name").optional()),
69
- price: z.preprocess((value) => value === null ? void 0 : value, z.number().describe("Unit price").optional()),
70
- units: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Units (e.g., pcs, hours)").optional()),
71
- quantity: z.preprocess((value) => value === null ? void 0 : value, z.number().describe("Quantity").optional()),
72
- vat_percentage: z.preprocess((value) => value === null ? void 0 : value, z.number().describe("VAT percentage applied").optional())
67
+ id: z.string().describe("Item unique identifier").nullable().optional(),
68
+ name: z.string().describe("Product or service name").nullable().optional(),
69
+ price: z.number().describe("Unit price").nullable().optional(),
70
+ units: z.string().describe("Units (e.g., pcs, hours)").nullable().optional(),
71
+ quantity: z.number().describe("Quantity").nullable().optional(),
72
+ vat_percentage: z.number().describe("VAT percentage applied").nullable().optional()
73
73
  });
74
74
  const FinmeiCreateInvoice_SellerResponseSchema = z.object({
75
- email: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Contact email").optional()),
76
- phone: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Contact phone").optional()),
77
- address: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Business address").optional()),
78
- vat_code: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("VAT code").optional()),
79
- last_name: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Last name (for individuals)").optional()),
80
- first_name: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("First name (for individuals)").optional()),
81
- company_code: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Company registration code").optional()),
82
- company_name: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Company name (for companies)").optional()),
83
- business_type: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Type of business (company, individual)").optional()),
84
- custom_fields: z.preprocess((value) => value === null ? void 0 : value, z.array(z.record(z.string(), z.unknown())).describe("Custom fields").optional()),
85
- individual_tax_id: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Individual tax ID").optional())
75
+ email: z.string().describe("Contact email").nullable().optional(),
76
+ phone: z.string().describe("Contact phone").nullable().optional(),
77
+ address: z.string().describe("Business address").nullable().optional(),
78
+ vat_code: z.string().describe("VAT code").nullable().optional(),
79
+ last_name: z.string().describe("Last name (for individuals)").nullable().optional(),
80
+ first_name: z.string().describe("First name (for individuals)").nullable().optional(),
81
+ company_code: z.string().describe("Company registration code").nullable().optional(),
82
+ company_name: z.string().describe("Company name (for companies)").nullable().optional(),
83
+ business_type: z.string().describe("Type of business (company, individual)").nullable().optional(),
84
+ custom_fields: z.array(z.record(z.string(), z.unknown())).describe("Custom fields").nullable().optional(),
85
+ individual_tax_id: z.string().describe("Individual tax ID").nullable().optional()
86
86
  });
87
87
  const FinmeiCreateInvoice_CustomerResponseSchema = z.object({
88
- id: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Unique identifier of the customer").optional()),
89
- name: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Full name of the customer").optional()),
90
- email: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Email address of the customer").optional()),
91
- address: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Postal address of the customer").optional())
88
+ id: z.string().describe("Unique identifier of the customer").nullable().optional(),
89
+ name: z.string().describe("Full name of the customer").nullable().optional(),
90
+ email: z.string().describe("Email address of the customer").nullable().optional(),
91
+ address: z.string().describe("Postal address of the customer").nullable().optional()
92
92
  });
93
93
  const FinmeiCreateInvoice_LineItemResponseSchema = z.object({
94
- quantity: z.preprocess((value) => value === null ? void 0 : value, z.number().describe("Quantity of the item").optional()),
95
- unit_price: z.preprocess((value) => value === null ? void 0 : value, z.number().describe("Unit price of the item").optional()),
96
- description: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Description of the line item").optional())
94
+ quantity: z.number().describe("Quantity of the item").nullable().optional(),
95
+ unit_price: z.number().describe("Unit price of the item").nullable().optional(),
96
+ description: z.string().describe("Description of the line item").nullable().optional()
97
97
  });
98
98
  const finmeiCreateInvoice = action("FINMEI_CREATE_INVOICE", {
99
99
  slug: "finmei-create-invoice",
@@ -101,35 +101,35 @@ const finmeiCreateInvoice = action("FINMEI_CREATE_INVOICE", {
101
101
  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\"",
102
102
  input: FinmeiCreateInvoiceInput,
103
103
  output: z.object({
104
- id: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Unique identifier of the created invoice").optional()),
105
- vat: z.preprocess((value) => value === null ? void 0 : value, z.number().describe("Total VAT amount").optional()),
106
- code: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Invoice code or reference (legacy)").optional()),
107
- buyer: z.preprocess((value) => value === null ? void 0 : value, FinmeiCreateInvoice_BuyerResponseSchema.optional()),
108
- items: z.preprocess((value) => value === null ? void 0 : value, z.array(FinmeiCreateInvoice_InvoiceItemResponseSchema).describe("Line items on the invoice").optional()),
109
- notes: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Notes included on the invoice").optional()),
110
- seller: z.preprocess((value) => value === null ? void 0 : value, FinmeiCreateInvoice_SellerResponseSchema.optional()),
111
- series: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Invoice series/prefix").optional()),
112
- status: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Status of the invoice (legacy)").optional()),
113
- currency: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Currency code of the invoice").optional()),
114
- customer: z.preprocess((value) => value === null ? void 0 : value, FinmeiCreateInvoice_CustomerResponseSchema.optional()),
115
- due_date: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Payment due date (legacy)").optional()),
116
- language: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Invoice language").optional()),
117
- subtotal: z.preprocess((value) => value === null ? void 0 : value, z.number().describe("Subtotal amount before VAT").optional()),
118
- amount_due: z.preprocess((value) => value === null ? void 0 : value, z.number().describe("Total amount due on the invoice (legacy)").optional()),
119
- created_at: z.preprocess((value) => value === null ? void 0 : value, z.union([z.string(), z.number().int()]).optional()),
120
- issue_date: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Date the invoice was issued (legacy)").optional()),
121
- line_items: z.preprocess((value) => value === null ? void 0 : value, z.array(FinmeiCreateInvoice_LineItemResponseSchema).describe("Line items (legacy)").optional()),
122
- share_link: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Public link to share the invoice").optional()),
123
- updated_at: z.preprocess((value) => value === null ? void 0 : value, z.union([z.string(), z.number().int()]).optional()),
124
- amount_paid: z.preprocess((value) => value === null ? void 0 : value, z.number().describe("Total amount paid on the invoice (legacy)").optional()),
125
- business_id: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Business identifier").optional()),
126
- invoice_date: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Date the invoice was issued").optional()),
127
- invoice_type: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Type of the invoice").optional()),
128
- invoice_number: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Invoice number").optional()),
129
- pay_until_date: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Payment due date").optional()),
130
- payment_status: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Payment status of the invoice").optional()),
131
- total_incl_vat: z.preprocess((value) => value === null ? void 0 : value, z.number().describe("Total amount including VAT").optional()),
132
- payment_options: z.preprocess((value) => value === null ? void 0 : value, z.array(z.record(z.string(), z.unknown())).describe("Available payment options").optional())
104
+ id: z.string().describe("Unique identifier of the created invoice").nullable().optional(),
105
+ vat: z.number().describe("Total VAT amount").nullable().optional(),
106
+ code: z.string().describe("Invoice code or reference (legacy)").nullable().optional(),
107
+ buyer: FinmeiCreateInvoice_BuyerResponseSchema.nullable().optional(),
108
+ items: z.array(FinmeiCreateInvoice_InvoiceItemResponseSchema).describe("Line items on the invoice").nullable().optional(),
109
+ notes: z.string().describe("Notes included on the invoice").nullable().optional(),
110
+ seller: FinmeiCreateInvoice_SellerResponseSchema.nullable().optional(),
111
+ series: z.string().describe("Invoice series/prefix").nullable().optional(),
112
+ status: z.string().describe("Status of the invoice (legacy)").nullable().optional(),
113
+ currency: z.string().describe("Currency code of the invoice").nullable().optional(),
114
+ customer: FinmeiCreateInvoice_CustomerResponseSchema.nullable().optional(),
115
+ due_date: z.string().describe("Payment due date (legacy)").nullable().optional(),
116
+ language: z.string().describe("Invoice language").nullable().optional(),
117
+ subtotal: z.number().describe("Subtotal amount before VAT").nullable().optional(),
118
+ amount_due: z.number().describe("Total amount due on the invoice (legacy)").nullable().optional(),
119
+ created_at: z.union([z.string(), z.number().int()]).nullable().optional(),
120
+ issue_date: z.string().describe("Date the invoice was issued (legacy)").nullable().optional(),
121
+ line_items: z.array(FinmeiCreateInvoice_LineItemResponseSchema).describe("Line items (legacy)").nullable().optional(),
122
+ share_link: z.string().describe("Public link to share the invoice").nullable().optional(),
123
+ updated_at: z.union([z.string(), z.number().int()]).nullable().optional(),
124
+ amount_paid: z.number().describe("Total amount paid on the invoice (legacy)").nullable().optional(),
125
+ business_id: z.string().describe("Business identifier").nullable().optional(),
126
+ invoice_date: z.string().describe("Date the invoice was issued").nullable().optional(),
127
+ invoice_type: z.string().describe("Type of the invoice").nullable().optional(),
128
+ invoice_number: z.string().describe("Invoice number").nullable().optional(),
129
+ pay_until_date: z.string().describe("Payment due date").nullable().optional(),
130
+ payment_status: z.string().describe("Payment status of the invoice").nullable().optional(),
131
+ total_incl_vat: z.number().describe("Total amount including VAT").nullable().optional(),
132
+ payment_options: z.array(z.record(z.string(), z.unknown())).describe("Available payment options").nullable().optional()
133
133
  })
134
134
  });
135
135
  //#endregion
@@ -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.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.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Buyer type (individual, company)\").optional()),\n email: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Contact email\").optional()),\n phone: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Contact phone\").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 code\").optional()),\n last_name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Last name (for individuals)\").optional()),\n first_name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"First name (for individuals)\").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 companies)\").optional()),\n individual_tax_id: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Individual tax ID\").optional()),\n});\nconst FinmeiCreateInvoice_InvoiceItemResponseSchema = z.object({\n id: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Item unique identifier\").optional()),\n name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Product or service name\").optional()),\n price: z.preprocess((value) => (value === null ? undefined : value), z.number().describe(\"Unit price\").optional()),\n units: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Units (e.g., pcs, hours)\").optional()),\n quantity: z.preprocess((value) => (value === null ? undefined : value), z.number().describe(\"Quantity\").optional()),\n vat_percentage: z.preprocess((value) => (value === null ? undefined : value), z.number().describe(\"VAT percentage applied\").optional()),\n});\nconst FinmeiCreateInvoice_SellerResponseSchema = z.object({\n email: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Contact email\").optional()),\n phone: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Contact phone\").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 code\").optional()),\n last_name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Last name (for individuals)\").optional()),\n first_name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"First name (for individuals)\").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 companies)\").optional()),\n business_type: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Type of business (company, individual)\").optional()),\n custom_fields: z.preprocess((value) => (value === null ? undefined : value), z.array(z.record(z.string(), z.unknown())).describe(\"Custom fields\").optional()),\n individual_tax_id: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Individual tax ID\").optional()),\n});\nconst FinmeiCreateInvoice_CustomerResponseSchema = z.object({\n id: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Unique identifier of the customer\").optional()),\n name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Full name of the customer\").optional()),\n email: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Email address of the customer\").optional()),\n address: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Postal address of the customer\").optional()),\n});\nconst FinmeiCreateInvoice_LineItemResponseSchema = z.object({\n quantity: z.preprocess((value) => (value === null ? undefined : value), z.number().describe(\"Quantity of the item\").optional()),\n unit_price: z.preprocess((value) => (value === null ? undefined : value), z.number().describe(\"Unit price of the item\").optional()),\n description: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Description of the line item\").optional()),\n});\nexport const FinmeiCreateInvoiceOutput = z.object({\n id: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Unique identifier of the created invoice\").optional()),\n vat: z.preprocess((value) => (value === null ? undefined : value), z.number().describe(\"Total VAT amount\").optional()),\n code: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Invoice code or reference (legacy)\").optional()),\n buyer: z.preprocess((value) => (value === null ? undefined : value), FinmeiCreateInvoice_BuyerResponseSchema.optional()),\n items: z.preprocess((value) => (value === null ? undefined : value), z.array(FinmeiCreateInvoice_InvoiceItemResponseSchema).describe(\"Line items on the invoice\").optional()),\n notes: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Notes included on the invoice\").optional()),\n seller: z.preprocess((value) => (value === null ? undefined : value), FinmeiCreateInvoice_SellerResponseSchema.optional()),\n series: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Invoice series/prefix\").optional()),\n status: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Status of the invoice (legacy)\").optional()),\n currency: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Currency code of the invoice\").optional()),\n customer: z.preprocess((value) => (value === null ? undefined : value), FinmeiCreateInvoice_CustomerResponseSchema.optional()),\n due_date: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Payment due date (legacy)\").optional()),\n language: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Invoice language\").optional()),\n subtotal: z.preprocess((value) => (value === null ? undefined : value), z.number().describe(\"Subtotal amount before VAT\").optional()),\n amount_due: z.preprocess((value) => (value === null ? undefined : value), z.number().describe(\"Total amount due on the invoice (legacy)\").optional()),\n created_at: z.preprocess((value) => (value === null ? undefined : value), z.union([z.string(), z.number().int()]).optional()),\n issue_date: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Date the invoice was issued (legacy)\").optional()),\n line_items: z.preprocess((value) => (value === null ? undefined : value), z.array(FinmeiCreateInvoice_LineItemResponseSchema).describe(\"Line items (legacy)\").optional()),\n share_link: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Public link to share the invoice\").optional()),\n updated_at: z.preprocess((value) => (value === null ? undefined : value), z.union([z.string(), z.number().int()]).optional()),\n amount_paid: z.preprocess((value) => (value === null ? undefined : value), z.number().describe(\"Total amount paid on the invoice (legacy)\").optional()),\n business_id: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Business identifier\").optional()),\n invoice_date: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Date the invoice was issued\").optional()),\n invoice_type: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Type of the invoice\").optional()),\n invoice_number: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Invoice number\").optional()),\n pay_until_date: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Payment due date\").optional()),\n payment_status: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Payment status of the invoice\").optional()),\n total_incl_vat: z.preprocess((value) => (value === null ? undefined : value), z.number().describe(\"Total amount including VAT\").optional()),\n payment_options: z.preprocess((value) => (value === null ? undefined : value), z.array(z.record(z.string(), z.unknown())).describe(\"Available payment options\").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,2BAA2B,EAAE,OAAO;CAC/C,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;EACh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AAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC;CAC5K,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 Tech Solutions Inc with 3 months of support services at $99.99/month\\\"\",\n input: FinmeiCreateInvoiceInput,\n output: FinmeiCreateInvoiceOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2B,EAAE,OAAO;CAC/C,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,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS;EACpD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;EACxD,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;CACzD,CAAC,CAAC,CAAC,SAAS,oCAAoC,CA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odObject<{
7
7
  declare const FinmeiDeleteCustomerOutput: z.ZodObject<{}, z.core.$strip>;
8
8
  declare const finmeiDeleteCustomer: import("@keystrokehq/action").WorkflowActionDefinition<{
9
9
  customer_id: string;
10
- }, Record<string, never>, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
10
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
11
11
  //#endregion
12
12
  export { finmeiDeleteCustomer };
13
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,EAAyB,CAAA,CAAA,SAAA;;;cAGzB,0BAAA,EAA0B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAE1B,oBAAA,gCAAoB,wBAAA;;GAM/B,MAAA"}
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"}
@@ -7,7 +7,7 @@ declare const FinmeiDeleteCustomerInput: z.ZodObject<{
7
7
  declare const FinmeiDeleteCustomerOutput: z.ZodObject<{}, z.core.$strip>;
8
8
  declare const finmeiDeleteCustomer: import("@keystrokehq/action").WorkflowActionDefinition<{
9
9
  customer_id: string;
10
- }, Record<string, never>, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
10
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
11
11
  //#endregion
12
12
  export { finmeiDeleteCustomer };
13
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,EAAyB,CAAA,CAAA,SAAA;;;cAGzB,0BAAA,EAA0B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAE1B,oBAAA,gCAAoB,wBAAA;;GAM/B,MAAA"}
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"}
@@ -3,7 +3,7 @@ let zod = require("zod");
3
3
  //#region src/actions/delete-invoice.ts
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
- message: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Optional message returned by the API").optional()),
6
+ message: zod.z.string().describe("Optional message returned by the API").nullable().optional(),
7
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", {
@@ -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.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.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Optional message returned by the API\").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,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC;CAC7I,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
+ {"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"}
@@ -5,15 +5,12 @@ declare const FinmeiDeleteInvoiceInput: z.ZodObject<{
5
5
  invoice_id: z.ZodString;
6
6
  }, z.core.$strip>;
7
7
  declare const FinmeiDeleteInvoiceOutput: 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 finmeiDeleteInvoice: import("@keystrokehq/action").WorkflowActionDefinition<{
12
12
  invoice_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 { finmeiDeleteInvoice };
19
16
  //# sourceMappingURL=delete-invoice.d.cts.map
@@ -5,15 +5,12 @@ declare const FinmeiDeleteInvoiceInput: z.ZodObject<{
5
5
  invoice_id: z.ZodString;
6
6
  }, z.core.$strip>;
7
7
  declare const FinmeiDeleteInvoiceOutput: 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 finmeiDeleteInvoice: import("@keystrokehq/action").WorkflowActionDefinition<{
12
12
  invoice_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 { finmeiDeleteInvoice };
19
16
  //# sourceMappingURL=delete-invoice.d.mts.map
@@ -6,7 +6,7 @@ const finmeiDeleteInvoice = action("FINMEI_DELETE_INVOICE", {
6
6
  description: "Tool to delete an invoice. Use when you need to remove an existing invoice by its ID.",
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
- message: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Optional message returned by the API").optional()),
9
+ message: z.string().describe("Optional message returned by the API").nullable().optional(),
10
10
  success: z.boolean().describe("Indicates whether the invoice was successfully deleted").nullable()
11
11
  }).describe("Response model returning deletion result.")
12
12
  });
@@ -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.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.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Optional message returned by the API\").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,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC;EAC7I,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CACnG,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"}