@keystrokehq/finmei 0.1.1 → 0.1.3
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.
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/create-expense.cjs +2 -2
- package/dist/actions/create-expense.cjs.map +1 -1
- package/dist/actions/create-expense.d.cts +3 -13
- package/dist/actions/create-expense.d.mts +3 -13
- package/dist/actions/create-expense.mjs +2 -2
- package/dist/actions/create-expense.mjs.map +1 -1
- package/dist/actions/create-invoice.cjs +71 -71
- package/dist/actions/create-invoice.cjs.map +1 -1
- package/dist/actions/create-invoice.d.cts +74 -141
- package/dist/actions/create-invoice.d.cts.map +1 -1
- package/dist/actions/create-invoice.d.mts +74 -141
- package/dist/actions/create-invoice.d.mts.map +1 -1
- package/dist/actions/create-invoice.mjs +71 -71
- package/dist/actions/create-invoice.mjs.map +1 -1
- package/dist/actions/delete-customer.cjs +1 -1
- package/dist/actions/delete-customer.cjs.map +1 -1
- package/dist/actions/delete-customer.d.cts +2 -2
- package/dist/actions/delete-customer.d.cts.map +1 -1
- package/dist/actions/delete-customer.d.mts +2 -2
- package/dist/actions/delete-customer.d.mts.map +1 -1
- package/dist/actions/delete-customer.mjs +1 -1
- package/dist/actions/delete-customer.mjs.map +1 -1
- package/dist/actions/delete-invoice.cjs +2 -2
- package/dist/actions/delete-invoice.cjs.map +1 -1
- package/dist/actions/delete-invoice.d.cts +3 -6
- package/dist/actions/delete-invoice.d.mts +3 -6
- package/dist/actions/delete-invoice.mjs +2 -2
- package/dist/actions/delete-invoice.mjs.map +1 -1
- package/dist/actions/delete-payment.cjs +1 -1
- package/dist/actions/delete-payment.cjs.map +1 -1
- package/dist/actions/delete-payment.d.cts +2 -4
- package/dist/actions/delete-payment.d.mts +2 -4
- package/dist/actions/delete-payment.mjs +1 -1
- package/dist/actions/delete-payment.mjs.map +1 -1
- package/dist/actions/delete-product.cjs +2 -2
- package/dist/actions/delete-product.cjs.map +1 -1
- package/dist/actions/delete-product.d.cts +3 -6
- package/dist/actions/delete-product.d.mts +3 -6
- package/dist/actions/delete-product.mjs +2 -2
- package/dist/actions/delete-product.mjs.map +1 -1
- package/dist/actions/download-expense-file.cjs +2 -2
- package/dist/actions/download-expense-file.cjs.map +1 -1
- package/dist/actions/download-expense-file.d.cts +3 -9
- package/dist/actions/download-expense-file.d.mts +3 -9
- package/dist/actions/download-expense-file.mjs +2 -2
- package/dist/actions/download-expense-file.mjs.map +1 -1
- package/dist/actions/download-invoice-pdf.cjs +2 -2
- package/dist/actions/download-invoice-pdf.cjs.map +1 -1
- package/dist/actions/download-invoice-pdf.d.cts +3 -9
- package/dist/actions/download-invoice-pdf.d.mts +3 -9
- package/dist/actions/download-invoice-pdf.mjs +2 -2
- package/dist/actions/download-invoice-pdf.mjs.map +1 -1
- package/dist/actions/get-expense.cjs +2 -2
- package/dist/actions/get-expense.cjs.map +1 -1
- package/dist/actions/get-expense.d.cts +3 -13
- package/dist/actions/get-expense.d.mts +3 -13
- package/dist/actions/get-expense.mjs +2 -2
- package/dist/actions/get-expense.mjs.map +1 -1
- package/dist/actions/get-invoice.cjs +29 -29
- package/dist/actions/get-invoice.cjs.map +1 -1
- package/dist/actions/get-invoice.d.cts +30 -81
- package/dist/actions/get-invoice.d.cts.map +1 -1
- package/dist/actions/get-invoice.d.mts +30 -81
- package/dist/actions/get-invoice.d.mts.map +1 -1
- package/dist/actions/get-invoice.mjs +29 -29
- package/dist/actions/get-invoice.mjs.map +1 -1
- package/dist/actions/get-payment.cjs +3 -3
- package/dist/actions/get-payment.cjs.map +1 -1
- package/dist/actions/get-payment.d.cts +4 -14
- package/dist/actions/get-payment.d.mts +4 -14
- package/dist/actions/get-payment.mjs +3 -3
- package/dist/actions/get-payment.mjs.map +1 -1
- package/dist/actions/get-product.cjs +2 -2
- package/dist/actions/get-product.cjs.map +1 -1
- package/dist/actions/get-product.d.cts +3 -11
- package/dist/actions/get-product.d.mts +3 -11
- package/dist/actions/get-product.mjs +2 -2
- package/dist/actions/get-product.mjs.map +1 -1
- package/dist/actions/get-profile.cjs +9 -9
- package/dist/actions/get-profile.cjs.map +1 -1
- package/dist/actions/get-profile.d.cts +10 -20
- package/dist/actions/get-profile.d.cts.map +1 -1
- package/dist/actions/get-profile.d.mts +10 -20
- package/dist/actions/get-profile.d.mts.map +1 -1
- package/dist/actions/get-profile.mjs +9 -9
- package/dist/actions/get-profile.mjs.map +1 -1
- package/dist/actions/list-currencies.cjs +3 -3
- package/dist/actions/list-currencies.cjs.map +1 -1
- package/dist/actions/list-currencies.d.cts +4 -10
- package/dist/actions/list-currencies.d.cts.map +1 -1
- package/dist/actions/list-currencies.d.mts +4 -10
- package/dist/actions/list-currencies.d.mts.map +1 -1
- package/dist/actions/list-currencies.mjs +3 -3
- package/dist/actions/list-currencies.mjs.map +1 -1
- package/dist/actions/list-customers.cjs +11 -11
- package/dist/actions/list-customers.cjs.map +1 -1
- package/dist/actions/list-customers.d.cts +12 -28
- package/dist/actions/list-customers.d.mts +12 -28
- package/dist/actions/list-customers.mjs +11 -11
- package/dist/actions/list-customers.mjs.map +1 -1
- package/dist/actions/list-expenses.cjs +14 -14
- package/dist/actions/list-expenses.cjs.map +1 -1
- package/dist/actions/list-expenses.d.cts +15 -34
- package/dist/actions/list-expenses.d.mts +15 -34
- package/dist/actions/list-expenses.mjs +14 -14
- package/dist/actions/list-expenses.mjs.map +1 -1
- package/dist/actions/list-invoices.cjs +35 -35
- package/dist/actions/list-invoices.cjs.map +1 -1
- package/dist/actions/list-invoices.d.cts +36 -98
- package/dist/actions/list-invoices.d.cts.map +1 -1
- package/dist/actions/list-invoices.d.mts +36 -98
- package/dist/actions/list-invoices.d.mts.map +1 -1
- package/dist/actions/list-invoices.mjs +35 -35
- package/dist/actions/list-invoices.mjs.map +1 -1
- package/dist/actions/list-payments.cjs +9 -9
- package/dist/actions/list-payments.cjs.map +1 -1
- package/dist/actions/list-payments.d.cts +10 -25
- package/dist/actions/list-payments.d.mts +10 -25
- package/dist/actions/list-payments.mjs +9 -9
- package/dist/actions/list-payments.mjs.map +1 -1
- package/dist/actions/list-products.cjs +6 -6
- package/dist/actions/list-products.cjs.map +1 -1
- package/dist/actions/list-products.d.cts +7 -23
- package/dist/actions/list-products.d.mts +7 -23
- package/dist/actions/list-products.mjs +6 -6
- package/dist/actions/list-products.mjs.map +1 -1
- package/dist/actions/update-customer.cjs +13 -13
- package/dist/actions/update-customer.cjs.map +1 -1
- package/dist/actions/update-customer.d.cts +14 -31
- package/dist/actions/update-customer.d.cts.map +1 -1
- package/dist/actions/update-customer.d.mts +14 -31
- package/dist/actions/update-customer.d.mts.map +1 -1
- package/dist/actions/update-customer.mjs +13 -13
- package/dist/actions/update-customer.mjs.map +1 -1
- package/dist/actions/update-expense-file.cjs +6 -6
- package/dist/actions/update-expense-file.cjs.map +1 -1
- package/dist/actions/update-expense-file.d.cts +7 -13
- package/dist/actions/update-expense-file.d.mts +7 -13
- package/dist/actions/update-expense-file.mjs +6 -6
- package/dist/actions/update-expense-file.mjs.map +1 -1
- package/dist/actions/update-expense.cjs +3 -3
- package/dist/actions/update-expense.cjs.map +1 -1
- package/dist/actions/update-expense.d.cts +4 -12
- package/dist/actions/update-expense.d.mts +4 -12
- package/dist/actions/update-expense.mjs +3 -3
- package/dist/actions/update-expense.mjs.map +1 -1
- package/dist/actions/update-invoice.cjs +57 -57
- package/dist/actions/update-invoice.cjs.map +1 -1
- package/dist/actions/update-invoice.d.cts +59 -114
- package/dist/actions/update-invoice.d.cts.map +1 -1
- package/dist/actions/update-invoice.d.mts +59 -114
- package/dist/actions/update-invoice.d.mts.map +1 -1
- package/dist/actions/update-invoice.mjs +57 -57
- package/dist/actions/update-invoice.mjs.map +1 -1
- package/dist/actions/update-product.cjs +2 -2
- package/dist/actions/update-product.cjs.map +1 -1
- package/dist/actions/update-product.d.cts +3 -11
- package/dist/actions/update-product.d.mts +3 -11
- package/dist/actions/update-product.mjs +2 -2
- package/dist/actions/update-product.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -45,69 +45,69 @@ declare const FinmeiUpdateInvoiceInput: z.ZodObject<{
|
|
|
45
45
|
units: z.ZodOptional<z.ZodString>;
|
|
46
46
|
quantity: z.ZodNumber;
|
|
47
47
|
vat_percentage: z.ZodOptional<z.ZodNumber>;
|
|
48
|
-
}, z.core.$
|
|
48
|
+
}, z.core.$loose>>>;
|
|
49
49
|
invoice_id: z.ZodString;
|
|
50
50
|
invoice_date: z.ZodOptional<z.ZodString>;
|
|
51
51
|
pay_until_date: z.ZodOptional<z.ZodString>;
|
|
52
52
|
use_default_seller_info: z.ZodOptional<z.ZodBoolean>;
|
|
53
53
|
}, z.core.$strip>;
|
|
54
54
|
declare const FinmeiUpdateInvoiceOutput: z.ZodObject<{
|
|
55
|
-
id: z.
|
|
56
|
-
vat: z.
|
|
57
|
-
code: z.
|
|
58
|
-
buyer: z.
|
|
59
|
-
type: z.
|
|
60
|
-
email: z.
|
|
61
|
-
phone: z.
|
|
62
|
-
address: z.
|
|
63
|
-
vat_code: z.
|
|
64
|
-
last_name: z.
|
|
65
|
-
first_name: z.
|
|
66
|
-
company_code: z.
|
|
67
|
-
company_name: z.
|
|
68
|
-
individual_tax_id: z.
|
|
69
|
-
}, z.core.$
|
|
70
|
-
items: z.
|
|
71
|
-
id: z.
|
|
72
|
-
name: z.
|
|
73
|
-
price: z.
|
|
74
|
-
units: z.
|
|
75
|
-
quantity: z.
|
|
76
|
-
vat_percentage: z.
|
|
77
|
-
}, z.core.$
|
|
78
|
-
notes: z.
|
|
79
|
-
seller: z.
|
|
80
|
-
email: z.
|
|
81
|
-
phone: z.
|
|
82
|
-
address: z.
|
|
83
|
-
vat_code: z.
|
|
84
|
-
last_name: z.
|
|
85
|
-
first_name: z.
|
|
86
|
-
company_code: z.
|
|
87
|
-
company_name: z.
|
|
88
|
-
business_type: z.
|
|
89
|
-
custom_fields: z.
|
|
90
|
-
individual_tax_id: z.
|
|
91
|
-
}, z.core.$
|
|
92
|
-
series: z.
|
|
93
|
-
status: z.
|
|
94
|
-
currency: z.
|
|
95
|
-
language: z.
|
|
96
|
-
subtotal: z.
|
|
97
|
-
amount_due: z.
|
|
98
|
-
created_at: z.
|
|
99
|
-
share_link: z.
|
|
100
|
-
updated_at: z.
|
|
101
|
-
amount_paid: z.
|
|
102
|
-
business_id: z.
|
|
103
|
-
invoice_date: z.
|
|
104
|
-
invoice_type: z.
|
|
105
|
-
invoice_number: z.
|
|
106
|
-
pay_until_date: z.
|
|
107
|
-
payment_status: z.
|
|
108
|
-
total_incl_vat: z.
|
|
109
|
-
payment_options: z.
|
|
110
|
-
}, z.core.$
|
|
55
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
56
|
+
vat: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
57
|
+
code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
58
|
+
buyer: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
59
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
60
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
61
|
+
phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
62
|
+
address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
63
|
+
vat_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
64
|
+
last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
65
|
+
first_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
66
|
+
company_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
67
|
+
company_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
68
|
+
individual_tax_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
69
|
+
}, z.core.$loose>>>;
|
|
70
|
+
items: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
71
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
72
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
73
|
+
price: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
74
|
+
units: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
75
|
+
quantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
76
|
+
vat_percentage: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
77
|
+
}, z.core.$loose>>>>;
|
|
78
|
+
notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
79
|
+
seller: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
80
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
81
|
+
phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
82
|
+
address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
83
|
+
vat_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
84
|
+
last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
85
|
+
first_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
86
|
+
company_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
87
|
+
company_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
88
|
+
business_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
89
|
+
custom_fields: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
90
|
+
individual_tax_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
91
|
+
}, z.core.$loose>>>;
|
|
92
|
+
series: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
93
|
+
status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
94
|
+
currency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
95
|
+
language: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
96
|
+
subtotal: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
97
|
+
amount_due: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
98
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
|
|
99
|
+
share_link: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
100
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
|
|
101
|
+
amount_paid: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
102
|
+
business_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
103
|
+
invoice_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
104
|
+
invoice_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
105
|
+
invoice_number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
106
|
+
pay_until_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
107
|
+
payment_status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
108
|
+
total_incl_vat: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
109
|
+
payment_options: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
110
|
+
}, z.core.$loose>;
|
|
111
111
|
declare const finmeiUpdateInvoice: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
112
112
|
invoice_id: string;
|
|
113
113
|
code?: string | undefined;
|
|
@@ -138,6 +138,7 @@ declare const finmeiUpdateInvoice: import("@keystrokehq/action").WorkflowActionD
|
|
|
138
138
|
currency?: string | undefined;
|
|
139
139
|
due_date?: string | undefined;
|
|
140
140
|
products?: {
|
|
141
|
+
[x: string]: unknown;
|
|
141
142
|
name: string;
|
|
142
143
|
price: number;
|
|
143
144
|
quantity: number;
|
|
@@ -147,63 +148,7 @@ declare const finmeiUpdateInvoice: import("@keystrokehq/action").WorkflowActionD
|
|
|
147
148
|
invoice_date?: string | undefined;
|
|
148
149
|
pay_until_date?: string | undefined;
|
|
149
150
|
use_default_seller_info?: boolean | undefined;
|
|
150
|
-
},
|
|
151
|
-
id?: string | undefined;
|
|
152
|
-
vat?: number | undefined;
|
|
153
|
-
code?: string | undefined;
|
|
154
|
-
buyer?: {
|
|
155
|
-
type?: string | undefined;
|
|
156
|
-
email?: string | undefined;
|
|
157
|
-
phone?: string | undefined;
|
|
158
|
-
address?: string | undefined;
|
|
159
|
-
vat_code?: string | undefined;
|
|
160
|
-
last_name?: string | undefined;
|
|
161
|
-
first_name?: string | undefined;
|
|
162
|
-
company_code?: string | undefined;
|
|
163
|
-
company_name?: string | undefined;
|
|
164
|
-
individual_tax_id?: string | undefined;
|
|
165
|
-
} | undefined;
|
|
166
|
-
items?: {
|
|
167
|
-
id?: string | undefined;
|
|
168
|
-
name?: string | undefined;
|
|
169
|
-
price?: number | undefined;
|
|
170
|
-
units?: string | undefined;
|
|
171
|
-
quantity?: number | undefined;
|
|
172
|
-
vat_percentage?: number | undefined;
|
|
173
|
-
}[] | undefined;
|
|
174
|
-
notes?: string | undefined;
|
|
175
|
-
seller?: {
|
|
176
|
-
email?: string | undefined;
|
|
177
|
-
phone?: string | undefined;
|
|
178
|
-
address?: string | undefined;
|
|
179
|
-
vat_code?: string | undefined;
|
|
180
|
-
last_name?: string | undefined;
|
|
181
|
-
first_name?: string | undefined;
|
|
182
|
-
company_code?: string | undefined;
|
|
183
|
-
company_name?: string | undefined;
|
|
184
|
-
business_type?: string | undefined;
|
|
185
|
-
custom_fields?: Record<string, unknown>[] | undefined;
|
|
186
|
-
individual_tax_id?: string | undefined;
|
|
187
|
-
} | undefined;
|
|
188
|
-
series?: string | undefined;
|
|
189
|
-
status?: string | undefined;
|
|
190
|
-
currency?: string | undefined;
|
|
191
|
-
language?: string | undefined;
|
|
192
|
-
subtotal?: number | undefined;
|
|
193
|
-
amount_due?: number | undefined;
|
|
194
|
-
created_at?: string | number | undefined;
|
|
195
|
-
share_link?: string | undefined;
|
|
196
|
-
updated_at?: string | number | undefined;
|
|
197
|
-
amount_paid?: number | undefined;
|
|
198
|
-
business_id?: string | undefined;
|
|
199
|
-
invoice_date?: string | undefined;
|
|
200
|
-
invoice_type?: string | undefined;
|
|
201
|
-
invoice_number?: string | undefined;
|
|
202
|
-
pay_until_date?: string | undefined;
|
|
203
|
-
payment_status?: string | undefined;
|
|
204
|
-
total_incl_vat?: number | undefined;
|
|
205
|
-
payment_options?: Record<string, unknown>[] | undefined;
|
|
206
|
-
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
151
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
207
152
|
//#endregion
|
|
208
153
|
export { finmeiUpdateInvoice };
|
|
209
154
|
//# sourceMappingURL=update-invoice.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-invoice.d.cts","names":[],"sources":["../../src/actions/update-invoice.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAyExB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA4BzB,mBAAA,gCAAmB,wBAAA
|
|
1
|
+
{"version":3,"file":"update-invoice.d.cts","names":[],"sources":["../../src/actions/update-invoice.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAyExB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA4BzB,mBAAA,gCAAmB,wBAAA"}
|
|
@@ -45,69 +45,69 @@ declare const FinmeiUpdateInvoiceInput: z.ZodObject<{
|
|
|
45
45
|
units: z.ZodOptional<z.ZodString>;
|
|
46
46
|
quantity: z.ZodNumber;
|
|
47
47
|
vat_percentage: z.ZodOptional<z.ZodNumber>;
|
|
48
|
-
}, z.core.$
|
|
48
|
+
}, z.core.$loose>>>;
|
|
49
49
|
invoice_id: z.ZodString;
|
|
50
50
|
invoice_date: z.ZodOptional<z.ZodString>;
|
|
51
51
|
pay_until_date: z.ZodOptional<z.ZodString>;
|
|
52
52
|
use_default_seller_info: z.ZodOptional<z.ZodBoolean>;
|
|
53
53
|
}, z.core.$strip>;
|
|
54
54
|
declare const FinmeiUpdateInvoiceOutput: z.ZodObject<{
|
|
55
|
-
id: z.
|
|
56
|
-
vat: z.
|
|
57
|
-
code: z.
|
|
58
|
-
buyer: z.
|
|
59
|
-
type: z.
|
|
60
|
-
email: z.
|
|
61
|
-
phone: z.
|
|
62
|
-
address: z.
|
|
63
|
-
vat_code: z.
|
|
64
|
-
last_name: z.
|
|
65
|
-
first_name: z.
|
|
66
|
-
company_code: z.
|
|
67
|
-
company_name: z.
|
|
68
|
-
individual_tax_id: z.
|
|
69
|
-
}, z.core.$
|
|
70
|
-
items: z.
|
|
71
|
-
id: z.
|
|
72
|
-
name: z.
|
|
73
|
-
price: z.
|
|
74
|
-
units: z.
|
|
75
|
-
quantity: z.
|
|
76
|
-
vat_percentage: z.
|
|
77
|
-
}, z.core.$
|
|
78
|
-
notes: z.
|
|
79
|
-
seller: z.
|
|
80
|
-
email: z.
|
|
81
|
-
phone: z.
|
|
82
|
-
address: z.
|
|
83
|
-
vat_code: z.
|
|
84
|
-
last_name: z.
|
|
85
|
-
first_name: z.
|
|
86
|
-
company_code: z.
|
|
87
|
-
company_name: z.
|
|
88
|
-
business_type: z.
|
|
89
|
-
custom_fields: z.
|
|
90
|
-
individual_tax_id: z.
|
|
91
|
-
}, z.core.$
|
|
92
|
-
series: z.
|
|
93
|
-
status: z.
|
|
94
|
-
currency: z.
|
|
95
|
-
language: z.
|
|
96
|
-
subtotal: z.
|
|
97
|
-
amount_due: z.
|
|
98
|
-
created_at: z.
|
|
99
|
-
share_link: z.
|
|
100
|
-
updated_at: z.
|
|
101
|
-
amount_paid: z.
|
|
102
|
-
business_id: z.
|
|
103
|
-
invoice_date: z.
|
|
104
|
-
invoice_type: z.
|
|
105
|
-
invoice_number: z.
|
|
106
|
-
pay_until_date: z.
|
|
107
|
-
payment_status: z.
|
|
108
|
-
total_incl_vat: z.
|
|
109
|
-
payment_options: z.
|
|
110
|
-
}, z.core.$
|
|
55
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
56
|
+
vat: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
57
|
+
code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
58
|
+
buyer: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
59
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
60
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
61
|
+
phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
62
|
+
address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
63
|
+
vat_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
64
|
+
last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
65
|
+
first_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
66
|
+
company_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
67
|
+
company_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
68
|
+
individual_tax_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
69
|
+
}, z.core.$loose>>>;
|
|
70
|
+
items: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
71
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
72
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
73
|
+
price: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
74
|
+
units: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
75
|
+
quantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
76
|
+
vat_percentage: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
77
|
+
}, z.core.$loose>>>>;
|
|
78
|
+
notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
79
|
+
seller: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
80
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
81
|
+
phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
82
|
+
address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
83
|
+
vat_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
84
|
+
last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
85
|
+
first_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
86
|
+
company_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
87
|
+
company_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
88
|
+
business_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
89
|
+
custom_fields: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
90
|
+
individual_tax_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
91
|
+
}, z.core.$loose>>>;
|
|
92
|
+
series: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
93
|
+
status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
94
|
+
currency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
95
|
+
language: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
96
|
+
subtotal: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
97
|
+
amount_due: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
98
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
|
|
99
|
+
share_link: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
100
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
|
|
101
|
+
amount_paid: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
102
|
+
business_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
103
|
+
invoice_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
104
|
+
invoice_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
105
|
+
invoice_number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
106
|
+
pay_until_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
107
|
+
payment_status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
108
|
+
total_incl_vat: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
109
|
+
payment_options: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
110
|
+
}, z.core.$loose>;
|
|
111
111
|
declare const finmeiUpdateInvoice: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
112
112
|
invoice_id: string;
|
|
113
113
|
code?: string | undefined;
|
|
@@ -138,6 +138,7 @@ declare const finmeiUpdateInvoice: import("@keystrokehq/action").WorkflowActionD
|
|
|
138
138
|
currency?: string | undefined;
|
|
139
139
|
due_date?: string | undefined;
|
|
140
140
|
products?: {
|
|
141
|
+
[x: string]: unknown;
|
|
141
142
|
name: string;
|
|
142
143
|
price: number;
|
|
143
144
|
quantity: number;
|
|
@@ -147,63 +148,7 @@ declare const finmeiUpdateInvoice: import("@keystrokehq/action").WorkflowActionD
|
|
|
147
148
|
invoice_date?: string | undefined;
|
|
148
149
|
pay_until_date?: string | undefined;
|
|
149
150
|
use_default_seller_info?: boolean | undefined;
|
|
150
|
-
},
|
|
151
|
-
id?: string | undefined;
|
|
152
|
-
vat?: number | undefined;
|
|
153
|
-
code?: string | undefined;
|
|
154
|
-
buyer?: {
|
|
155
|
-
type?: string | undefined;
|
|
156
|
-
email?: string | undefined;
|
|
157
|
-
phone?: string | undefined;
|
|
158
|
-
address?: string | undefined;
|
|
159
|
-
vat_code?: string | undefined;
|
|
160
|
-
last_name?: string | undefined;
|
|
161
|
-
first_name?: string | undefined;
|
|
162
|
-
company_code?: string | undefined;
|
|
163
|
-
company_name?: string | undefined;
|
|
164
|
-
individual_tax_id?: string | undefined;
|
|
165
|
-
} | undefined;
|
|
166
|
-
items?: {
|
|
167
|
-
id?: string | undefined;
|
|
168
|
-
name?: string | undefined;
|
|
169
|
-
price?: number | undefined;
|
|
170
|
-
units?: string | undefined;
|
|
171
|
-
quantity?: number | undefined;
|
|
172
|
-
vat_percentage?: number | undefined;
|
|
173
|
-
}[] | undefined;
|
|
174
|
-
notes?: string | undefined;
|
|
175
|
-
seller?: {
|
|
176
|
-
email?: string | undefined;
|
|
177
|
-
phone?: string | undefined;
|
|
178
|
-
address?: string | undefined;
|
|
179
|
-
vat_code?: string | undefined;
|
|
180
|
-
last_name?: string | undefined;
|
|
181
|
-
first_name?: string | undefined;
|
|
182
|
-
company_code?: string | undefined;
|
|
183
|
-
company_name?: string | undefined;
|
|
184
|
-
business_type?: string | undefined;
|
|
185
|
-
custom_fields?: Record<string, unknown>[] | undefined;
|
|
186
|
-
individual_tax_id?: string | undefined;
|
|
187
|
-
} | undefined;
|
|
188
|
-
series?: string | undefined;
|
|
189
|
-
status?: string | undefined;
|
|
190
|
-
currency?: string | undefined;
|
|
191
|
-
language?: string | undefined;
|
|
192
|
-
subtotal?: number | undefined;
|
|
193
|
-
amount_due?: number | undefined;
|
|
194
|
-
created_at?: string | number | undefined;
|
|
195
|
-
share_link?: string | undefined;
|
|
196
|
-
updated_at?: string | number | undefined;
|
|
197
|
-
amount_paid?: number | undefined;
|
|
198
|
-
business_id?: string | undefined;
|
|
199
|
-
invoice_date?: string | undefined;
|
|
200
|
-
invoice_type?: string | undefined;
|
|
201
|
-
invoice_number?: string | undefined;
|
|
202
|
-
pay_until_date?: string | undefined;
|
|
203
|
-
payment_status?: string | undefined;
|
|
204
|
-
total_incl_vat?: number | undefined;
|
|
205
|
-
payment_options?: Record<string, unknown>[] | undefined;
|
|
206
|
-
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
151
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
207
152
|
//#endregion
|
|
208
153
|
export { finmeiUpdateInvoice };
|
|
209
154
|
//# sourceMappingURL=update-invoice.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-invoice.d.mts","names":[],"sources":["../../src/actions/update-invoice.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAyExB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA4BzB,mBAAA,gCAAmB,wBAAA
|
|
1
|
+
{"version":3,"file":"update-invoice.d.mts","names":[],"sources":["../../src/actions/update-invoice.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAyExB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA4BzB,mBAAA,gCAAmB,wBAAA"}
|
|
@@ -42,77 +42,77 @@ const FinmeiUpdateInvoiceInput = z.object({
|
|
|
42
42
|
units: z.string().describe("Units for the product (e.g., pcs, hours, months)").optional(),
|
|
43
43
|
quantity: z.number().describe("Quantity for this product"),
|
|
44
44
|
vat_percentage: z.number().describe("VAT percentage to apply (0-100)").optional()
|
|
45
|
-
})).describe("Products array with line items for the invoice").optional(),
|
|
45
|
+
}).passthrough()).describe("Products array with line items for the invoice").optional(),
|
|
46
46
|
invoice_id: z.string().describe("Unique identifier of the invoice to update"),
|
|
47
47
|
invoice_date: z.string().describe("Date on the invoice. Format: YYYY-MM-DD").optional(),
|
|
48
48
|
pay_until_date: z.string().describe("Payment due date. Format: YYYY-MM-DD").optional(),
|
|
49
49
|
use_default_seller_info: z.boolean().describe("If true, API will use default seller info instead of requiring seller object").optional()
|
|
50
50
|
});
|
|
51
51
|
const FinmeiUpdateInvoice_BuyerResponseSchema = z.object({
|
|
52
|
-
type: z.
|
|
53
|
-
email: z.
|
|
54
|
-
phone: z.
|
|
55
|
-
address: z.
|
|
56
|
-
vat_code: z.
|
|
57
|
-
last_name: z.
|
|
58
|
-
first_name: z.
|
|
59
|
-
company_code: z.
|
|
60
|
-
company_name: z.
|
|
61
|
-
individual_tax_id: z.
|
|
62
|
-
});
|
|
52
|
+
type: z.string().describe("Buyer type (individual, company)").nullable().optional(),
|
|
53
|
+
email: z.string().describe("Contact email").nullable().optional(),
|
|
54
|
+
phone: z.string().describe("Contact phone").nullable().optional(),
|
|
55
|
+
address: z.string().describe("Buyer address").nullable().optional(),
|
|
56
|
+
vat_code: z.string().describe("VAT code").nullable().optional(),
|
|
57
|
+
last_name: z.string().describe("Last name (for individuals)").nullable().optional(),
|
|
58
|
+
first_name: z.string().describe("First name (for individuals)").nullable().optional(),
|
|
59
|
+
company_code: z.string().describe("Company registration code").nullable().optional(),
|
|
60
|
+
company_name: z.string().describe("Company name (for companies)").nullable().optional(),
|
|
61
|
+
individual_tax_id: z.string().describe("Individual tax ID").nullable().optional()
|
|
62
|
+
}).passthrough();
|
|
63
63
|
const FinmeiUpdateInvoice_InvoiceItemResponseSchema = z.object({
|
|
64
|
-
id: z.
|
|
65
|
-
name: z.
|
|
66
|
-
price: z.
|
|
67
|
-
units: z.
|
|
68
|
-
quantity: z.
|
|
69
|
-
vat_percentage: z.
|
|
70
|
-
});
|
|
64
|
+
id: z.string().describe("Item unique identifier").nullable().optional(),
|
|
65
|
+
name: z.string().describe("Product or service name").nullable().optional(),
|
|
66
|
+
price: z.number().describe("Unit price").nullable().optional(),
|
|
67
|
+
units: z.string().describe("Units (e.g., pcs, hours)").nullable().optional(),
|
|
68
|
+
quantity: z.number().describe("Quantity").nullable().optional(),
|
|
69
|
+
vat_percentage: z.number().describe("VAT percentage applied").nullable().optional()
|
|
70
|
+
}).passthrough();
|
|
71
71
|
const FinmeiUpdateInvoice_SellerResponseSchema = z.object({
|
|
72
|
-
email: z.
|
|
73
|
-
phone: z.
|
|
74
|
-
address: z.
|
|
75
|
-
vat_code: z.
|
|
76
|
-
last_name: z.
|
|
77
|
-
first_name: z.
|
|
78
|
-
company_code: z.
|
|
79
|
-
company_name: z.
|
|
80
|
-
business_type: z.
|
|
81
|
-
custom_fields: z.
|
|
82
|
-
individual_tax_id: z.
|
|
83
|
-
});
|
|
72
|
+
email: z.string().describe("Contact email").nullable().optional(),
|
|
73
|
+
phone: z.string().describe("Contact phone").nullable().optional(),
|
|
74
|
+
address: z.string().describe("Business address").nullable().optional(),
|
|
75
|
+
vat_code: z.string().describe("VAT code").nullable().optional(),
|
|
76
|
+
last_name: z.string().describe("Last name (for individuals)").nullable().optional(),
|
|
77
|
+
first_name: z.string().describe("First name (for individuals)").nullable().optional(),
|
|
78
|
+
company_code: z.string().describe("Company registration code").nullable().optional(),
|
|
79
|
+
company_name: z.string().describe("Company name (for companies)").nullable().optional(),
|
|
80
|
+
business_type: z.string().describe("Type of business (company, individual)").nullable().optional(),
|
|
81
|
+
custom_fields: z.array(z.record(z.string(), z.unknown())).describe("Custom fields").nullable().optional(),
|
|
82
|
+
individual_tax_id: z.string().describe("Individual tax ID").nullable().optional()
|
|
83
|
+
}).passthrough();
|
|
84
84
|
const finmeiUpdateInvoice = action("FINMEI_UPDATE_INVOICE", {
|
|
85
85
|
slug: "finmei-update-invoice",
|
|
86
86
|
name: "Update Invoice",
|
|
87
87
|
description: "Tool to update an existing invoice in Finmei. Use when you need to modify invoice details such as buyer information, products, dates, or currency.",
|
|
88
88
|
input: FinmeiUpdateInvoiceInput,
|
|
89
89
|
output: z.object({
|
|
90
|
-
id: z.
|
|
91
|
-
vat: z.
|
|
92
|
-
code: z.
|
|
93
|
-
buyer:
|
|
94
|
-
items: z.
|
|
95
|
-
notes: z.
|
|
96
|
-
seller:
|
|
97
|
-
series: z.
|
|
98
|
-
status: z.
|
|
99
|
-
currency: z.
|
|
100
|
-
language: z.
|
|
101
|
-
subtotal: z.
|
|
102
|
-
amount_due: z.
|
|
103
|
-
created_at: z.
|
|
104
|
-
share_link: z.
|
|
105
|
-
updated_at: z.
|
|
106
|
-
amount_paid: z.
|
|
107
|
-
business_id: z.
|
|
108
|
-
invoice_date: z.
|
|
109
|
-
invoice_type: z.
|
|
110
|
-
invoice_number: z.
|
|
111
|
-
pay_until_date: z.
|
|
112
|
-
payment_status: z.
|
|
113
|
-
total_incl_vat: z.
|
|
114
|
-
payment_options: z.
|
|
115
|
-
})
|
|
90
|
+
id: z.string().describe("Unique identifier of the updated invoice").nullable().optional(),
|
|
91
|
+
vat: z.number().describe("Total VAT amount").nullable().optional(),
|
|
92
|
+
code: z.string().describe("Invoice code or reference").nullable().optional(),
|
|
93
|
+
buyer: FinmeiUpdateInvoice_BuyerResponseSchema.nullable().optional(),
|
|
94
|
+
items: z.array(FinmeiUpdateInvoice_InvoiceItemResponseSchema).describe("Line items on the invoice").nullable().optional(),
|
|
95
|
+
notes: z.string().describe("Notes included on the invoice").nullable().optional(),
|
|
96
|
+
seller: FinmeiUpdateInvoice_SellerResponseSchema.nullable().optional(),
|
|
97
|
+
series: z.string().describe("Invoice series/prefix").nullable().optional(),
|
|
98
|
+
status: z.string().describe("Status of the invoice").nullable().optional(),
|
|
99
|
+
currency: z.string().describe("Currency code of the invoice").nullable().optional(),
|
|
100
|
+
language: z.string().describe("Invoice language").nullable().optional(),
|
|
101
|
+
subtotal: z.number().describe("Subtotal amount before VAT").nullable().optional(),
|
|
102
|
+
amount_due: z.number().describe("Total amount due on the invoice").nullable().optional(),
|
|
103
|
+
created_at: z.union([z.string(), z.number().int()]).nullable().optional(),
|
|
104
|
+
share_link: z.string().describe("Public link to share the invoice").nullable().optional(),
|
|
105
|
+
updated_at: z.union([z.string(), z.number().int()]).nullable().optional(),
|
|
106
|
+
amount_paid: z.number().describe("Total amount paid on the invoice").nullable().optional(),
|
|
107
|
+
business_id: z.string().describe("Business identifier").nullable().optional(),
|
|
108
|
+
invoice_date: z.string().describe("Date the invoice was issued").nullable().optional(),
|
|
109
|
+
invoice_type: z.string().describe("Type of the invoice").nullable().optional(),
|
|
110
|
+
invoice_number: z.string().describe("Invoice number").nullable().optional(),
|
|
111
|
+
pay_until_date: z.string().describe("Payment due date").nullable().optional(),
|
|
112
|
+
payment_status: z.string().describe("Payment status of the invoice").nullable().optional(),
|
|
113
|
+
total_incl_vat: z.number().describe("Total amount including VAT").nullable().optional(),
|
|
114
|
+
payment_options: z.array(z.record(z.string(), z.unknown())).describe("Available payment options").nullable().optional()
|
|
115
|
+
}).passthrough()
|
|
116
116
|
});
|
|
117
117
|
//#endregion
|
|
118
118
|
export { finmeiUpdateInvoice };
|