@keystrokehq/finmei 0.1.0 → 0.1.1
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 +7 -7
- package/dist/actions/create-expense.cjs.map +1 -1
- package/dist/actions/create-expense.d.cts +43 -3
- package/dist/actions/create-expense.d.cts.map +1 -1
- package/dist/actions/create-expense.d.mts +43 -3
- package/dist/actions/create-expense.d.mts.map +1 -1
- package/dist/actions/create-expense.mjs +7 -7
- package/dist/actions/create-expense.mjs.map +1 -1
- package/dist/actions/create-invoice.cjs +63 -63
- package/dist/actions/create-invoice.cjs.map +1 -1
- package/dist/actions/create-invoice.d.cts +235 -3
- package/dist/actions/create-invoice.d.cts.map +1 -1
- package/dist/actions/create-invoice.d.mts +235 -3
- package/dist/actions/create-invoice.d.mts.map +1 -1
- package/dist/actions/create-invoice.mjs +63 -63
- package/dist/actions/create-invoice.mjs.map +1 -1
- package/dist/actions/delete-customer.cjs.map +1 -1
- package/dist/actions/delete-customer.d.cts +7 -3
- package/dist/actions/delete-customer.d.cts.map +1 -1
- package/dist/actions/delete-customer.d.mts +7 -3
- package/dist/actions/delete-customer.d.mts.map +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 +13 -3
- package/dist/actions/delete-invoice.d.cts.map +1 -1
- package/dist/actions/delete-invoice.d.mts +13 -3
- package/dist/actions/delete-invoice.d.mts.map +1 -1
- 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 +11 -3
- package/dist/actions/delete-payment.d.cts.map +1 -1
- package/dist/actions/delete-payment.d.mts +11 -3
- package/dist/actions/delete-payment.d.mts.map +1 -1
- 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 +13 -3
- package/dist/actions/delete-product.d.cts.map +1 -1
- package/dist/actions/delete-product.d.mts +13 -3
- package/dist/actions/delete-product.d.mts.map +1 -1
- package/dist/actions/delete-product.mjs +2 -2
- package/dist/actions/delete-product.mjs.map +1 -1
- package/dist/actions/download-expense-file.cjs +3 -3
- package/dist/actions/download-expense-file.cjs.map +1 -1
- package/dist/actions/download-expense-file.d.cts +19 -3
- package/dist/actions/download-expense-file.d.cts.map +1 -1
- package/dist/actions/download-expense-file.d.mts +19 -3
- package/dist/actions/download-expense-file.d.mts.map +1 -1
- package/dist/actions/download-expense-file.mjs +3 -3
- package/dist/actions/download-expense-file.mjs.map +1 -1
- package/dist/actions/download-invoice-pdf.cjs +3 -3
- package/dist/actions/download-invoice-pdf.cjs.map +1 -1
- package/dist/actions/download-invoice-pdf.d.cts +19 -3
- package/dist/actions/download-invoice-pdf.d.cts.map +1 -1
- package/dist/actions/download-invoice-pdf.d.mts +19 -3
- package/dist/actions/download-invoice-pdf.d.mts.map +1 -1
- package/dist/actions/download-invoice-pdf.mjs +3 -3
- package/dist/actions/download-invoice-pdf.mjs.map +1 -1
- package/dist/actions/get-expense.cjs +7 -7
- package/dist/actions/get-expense.cjs.map +1 -1
- package/dist/actions/get-expense.d.cts +27 -3
- package/dist/actions/get-expense.d.cts.map +1 -1
- package/dist/actions/get-expense.d.mts +27 -3
- package/dist/actions/get-expense.d.mts.map +1 -1
- package/dist/actions/get-expense.mjs +7 -7
- package/dist/actions/get-expense.mjs.map +1 -1
- package/dist/actions/get-invoice.cjs +45 -45
- package/dist/actions/get-invoice.cjs.map +1 -1
- package/dist/actions/get-invoice.d.cts +109 -3
- package/dist/actions/get-invoice.d.cts.map +1 -1
- package/dist/actions/get-invoice.d.mts +109 -3
- package/dist/actions/get-invoice.d.mts.map +1 -1
- package/dist/actions/get-invoice.mjs +45 -45
- package/dist/actions/get-invoice.mjs.map +1 -1
- package/dist/actions/get-payment.cjs +9 -9
- package/dist/actions/get-payment.cjs.map +1 -1
- package/dist/actions/get-payment.d.cts +27 -3
- package/dist/actions/get-payment.d.cts.map +1 -1
- package/dist/actions/get-payment.d.mts +27 -3
- package/dist/actions/get-payment.d.mts.map +1 -1
- package/dist/actions/get-payment.mjs +9 -9
- package/dist/actions/get-payment.mjs.map +1 -1
- package/dist/actions/get-product.cjs +7 -7
- package/dist/actions/get-product.cjs.map +1 -1
- package/dist/actions/get-product.d.cts +23 -3
- package/dist/actions/get-product.d.cts.map +1 -1
- package/dist/actions/get-product.d.mts +23 -3
- package/dist/actions/get-product.d.mts.map +1 -1
- package/dist/actions/get-product.mjs +7 -7
- package/dist/actions/get-product.mjs.map +1 -1
- package/dist/actions/get-profile.cjs +7 -7
- package/dist/actions/get-profile.cjs.map +1 -1
- package/dist/actions/get-profile.d.cts +23 -3
- package/dist/actions/get-profile.d.cts.map +1 -1
- package/dist/actions/get-profile.d.mts +23 -3
- package/dist/actions/get-profile.d.mts.map +1 -1
- package/dist/actions/get-profile.mjs +7 -7
- 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 +15 -3
- package/dist/actions/list-currencies.d.cts.map +1 -1
- package/dist/actions/list-currencies.d.mts +15 -3
- 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 +13 -13
- package/dist/actions/list-customers.cjs.map +1 -1
- package/dist/actions/list-customers.d.cts +45 -3
- package/dist/actions/list-customers.d.cts.map +1 -1
- package/dist/actions/list-customers.d.mts +45 -3
- package/dist/actions/list-customers.d.mts.map +1 -1
- package/dist/actions/list-customers.mjs +13 -13
- package/dist/actions/list-customers.mjs.map +1 -1
- package/dist/actions/list-expenses.cjs +16 -16
- package/dist/actions/list-expenses.cjs.map +1 -1
- package/dist/actions/list-expenses.d.cts +47 -3
- package/dist/actions/list-expenses.d.cts.map +1 -1
- package/dist/actions/list-expenses.d.mts +47 -3
- package/dist/actions/list-expenses.d.mts.map +1 -1
- package/dist/actions/list-expenses.mjs +16 -16
- package/dist/actions/list-expenses.mjs.map +1 -1
- package/dist/actions/list-invoices.cjs +54 -54
- package/dist/actions/list-invoices.cjs.map +1 -1
- package/dist/actions/list-invoices.d.cts +133 -3
- package/dist/actions/list-invoices.d.cts.map +1 -1
- package/dist/actions/list-invoices.d.mts +133 -3
- package/dist/actions/list-invoices.d.mts.map +1 -1
- package/dist/actions/list-invoices.mjs +54 -54
- package/dist/actions/list-invoices.mjs.map +1 -1
- package/dist/actions/list-payments.cjs +13 -13
- package/dist/actions/list-payments.cjs.map +1 -1
- package/dist/actions/list-payments.d.cts +49 -3
- package/dist/actions/list-payments.d.cts.map +1 -1
- package/dist/actions/list-payments.d.mts +49 -3
- package/dist/actions/list-payments.d.mts.map +1 -1
- package/dist/actions/list-payments.mjs +13 -13
- package/dist/actions/list-payments.mjs.map +1 -1
- package/dist/actions/list-products.cjs +11 -11
- package/dist/actions/list-products.cjs.map +1 -1
- package/dist/actions/list-products.d.cts +51 -3
- package/dist/actions/list-products.d.cts.map +1 -1
- package/dist/actions/list-products.d.mts +51 -3
- package/dist/actions/list-products.d.mts.map +1 -1
- package/dist/actions/list-products.mjs +11 -11
- 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 +63 -3
- package/dist/actions/update-customer.d.cts.map +1 -1
- package/dist/actions/update-customer.d.mts +63 -3
- 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 +5 -5
- package/dist/actions/update-expense-file.cjs.map +1 -1
- package/dist/actions/update-expense-file.d.cts +29 -3
- package/dist/actions/update-expense-file.d.cts.map +1 -1
- package/dist/actions/update-expense-file.d.mts +29 -3
- package/dist/actions/update-expense-file.d.mts.map +1 -1
- package/dist/actions/update-expense-file.mjs +5 -5
- package/dist/actions/update-expense-file.mjs.map +1 -1
- package/dist/actions/update-expense.cjs +7 -7
- package/dist/actions/update-expense.cjs.map +1 -1
- package/dist/actions/update-expense.d.cts +31 -3
- package/dist/actions/update-expense.d.cts.map +1 -1
- package/dist/actions/update-expense.d.mts +31 -3
- package/dist/actions/update-expense.d.mts.map +1 -1
- package/dist/actions/update-expense.mjs +7 -7
- package/dist/actions/update-expense.mjs.map +1 -1
- package/dist/actions/update-invoice.cjs +52 -52
- package/dist/actions/update-invoice.cjs.map +1 -1
- package/dist/actions/update-invoice.d.cts +203 -3
- package/dist/actions/update-invoice.d.cts.map +1 -1
- package/dist/actions/update-invoice.d.mts +203 -3
- package/dist/actions/update-invoice.d.mts.map +1 -1
- package/dist/actions/update-invoice.mjs +52 -52
- package/dist/actions/update-invoice.mjs.map +1 -1
- package/dist/actions/update-product.cjs +7 -7
- package/dist/actions/update-product.cjs.map +1 -1
- package/dist/actions/update-product.d.cts +31 -3
- package/dist/actions/update-product.d.cts.map +1 -1
- package/dist/actions/update-product.d.mts +31 -3
- package/dist/actions/update-product.d.mts.map +1 -1
- package/dist/actions/update-product.mjs +7 -7
- package/dist/actions/update-product.mjs.map +1 -1
- package/dist/catalog.cjs +7 -1
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +8 -0
- package/dist/catalog.d.mts +8 -0
- package/dist/catalog.mjs +7 -1
- package/dist/catalog.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -16,21 +16,21 @@ const FinmeiUpdateCustomerInput = z.object({
|
|
|
16
16
|
customer_id: z.string().describe("Unique identifier of the customer to update")
|
|
17
17
|
}).describe("Request model for updating an existing customer");
|
|
18
18
|
const FinmeiUpdateCustomer_AddressSchema = z.object({
|
|
19
|
-
city: z.string().describe("City of the customer's address").
|
|
20
|
-
state: z.string().describe("State or province of the customer's address").
|
|
21
|
-
street: z.string().describe("Street address of the customer").
|
|
22
|
-
country: z.string().describe("Country code (ISO 3166-1 alpha-2)").
|
|
23
|
-
postal_code: z.string().describe("Postal or ZIP code of the customer's address").
|
|
19
|
+
city: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("City of the customer's address").optional()),
|
|
20
|
+
state: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("State or province of the customer's address").optional()),
|
|
21
|
+
street: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Street address of the customer").optional()),
|
|
22
|
+
country: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Country code (ISO 3166-1 alpha-2)").optional()),
|
|
23
|
+
postal_code: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Postal or ZIP code of the customer's address").optional())
|
|
24
24
|
}).describe("Mailing address details");
|
|
25
25
|
const FinmeiUpdateCustomer_CustomerSchema = z.object({
|
|
26
|
-
id: z.string().describe("Unique identifier of the customer"),
|
|
27
|
-
name: z.string().describe("Full name of the customer").
|
|
28
|
-
email: z.string().describe("Email address of the customer").
|
|
29
|
-
phone: z.string().describe("Phone number of the customer").
|
|
30
|
-
address:
|
|
31
|
-
metadata: z.record(z.string(), z.unknown()).describe("Additional metadata associated with the customer").
|
|
32
|
-
created_at: z.string().describe("Timestamp when the customer was created"),
|
|
33
|
-
updated_at: z.string().describe("Timestamp when the customer was last updated")
|
|
26
|
+
id: z.string().describe("Unique identifier of the customer").nullable(),
|
|
27
|
+
name: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Full name of the customer").optional()),
|
|
28
|
+
email: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Email address of the customer").optional()),
|
|
29
|
+
phone: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Phone number of the customer").optional()),
|
|
30
|
+
address: z.preprocess((value) => value === null ? void 0 : value, FinmeiUpdateCustomer_AddressSchema.optional()),
|
|
31
|
+
metadata: z.preprocess((value) => value === null ? void 0 : value, z.record(z.string(), z.unknown()).describe("Additional metadata associated with the customer").optional()),
|
|
32
|
+
created_at: z.string().describe("Timestamp when the customer was created").nullable(),
|
|
33
|
+
updated_at: z.string().describe("Timestamp when the customer was last updated").nullable()
|
|
34
34
|
});
|
|
35
35
|
const finmeiUpdateCustomer = action("FINMEI_UPDATE_CUSTOMER", {
|
|
36
36
|
slug: "finmei-update-customer",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-customer.mjs","names":[],"sources":["../../src/actions/update-customer.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiUpdateCustomerInput
|
|
1
|
+
{"version":3,"file":"update-customer.mjs","names":[],"sources":["../../src/actions/update-customer.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiUpdateCustomerInput = z.object({\n name: z.string().describe(\"Full name of the customer\").optional(),\n email: z.string().describe(\"Email address of the customer\").optional(),\n phone: z.string().describe(\"Phone number of the customer\").optional(),\n address: z.object({\n city: z.string().describe(\"City of the customer's address\").optional(),\n state: z.string().describe(\"State or province of the customer's address\").optional(),\n street: z.string().describe(\"Street address of the customer\").optional(),\n country: z.string().describe(\"Country code (ISO 3166-1 alpha-2)\").optional(),\n postal_code: z.string().describe(\"Postal or ZIP code of the customer's address\").optional(),\n}).describe(\"Mailing address details\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Additional metadata for the customer as key-value pairs\").optional(),\n customer_id: z.string().describe(\"Unique identifier of the customer to update\"),\n}).describe(\"Request model for updating an existing customer\");\nconst FinmeiUpdateCustomer_AddressSchema = z.object({\n city: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"City of the customer's address\").optional()),\n state: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"State or province of the customer's address\").optional()),\n street: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Street address of the customer\").optional()),\n country: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Country code (ISO 3166-1 alpha-2)\").optional()),\n postal_code: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Postal or ZIP code of the customer's address\").optional()),\n}).describe(\"Mailing address details\");\nconst FinmeiUpdateCustomer_CustomerSchema = z.object({\n id: z.string().describe(\"Unique identifier of the customer\").nullable(),\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 phone: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Phone number of the customer\").optional()),\n address: z.preprocess((value) => (value === null ? undefined : value), FinmeiUpdateCustomer_AddressSchema.optional()),\n metadata: z.preprocess((value) => (value === null ? undefined : value), z.record(z.string(), z.unknown()).describe(\"Additional metadata associated with the customer\").optional()),\n created_at: z.string().describe(\"Timestamp when the customer was created\").nullable(),\n updated_at: z.string().describe(\"Timestamp when the customer was last updated\").nullable(),\n});\nexport const FinmeiUpdateCustomerOutput = z.object({\n customer: FinmeiUpdateCustomer_CustomerSchema.nullable(),\n}).describe(\"Response model containing the updated customer record\");\n\nexport const finmeiUpdateCustomer = action(\"FINMEI_UPDATE_CUSTOMER\", {\n slug: \"finmei-update-customer\",\n name: \"Update Customer\",\n description: \"Tool to update an existing customer's details. Use after confirming the customer ID to modify their information.\",\n input: FinmeiUpdateCustomerInput,\n output: FinmeiUpdateCustomerOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4B,EAAE,OAAO;CAChD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAChE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACrE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACpE,SAAS,EAAE,OAAO;EAClB,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;EACrE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;EACnF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;EACvE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EAC3E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CAC5F,CAAC,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAC9C,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CACzH,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;AAChF,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAC7D,MAAM,qCAAqC,EAAE,OAAO;CAClD,MAAM,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC;CACpI,OAAO,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC;CAClJ,QAAQ,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC;CACtI,SAAS,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC;CAC1I,aAAa,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC;AAC3J,CAAC,CAAC,CAAC,SAAS,yBAAyB;AACrC,MAAM,sCAAsC,EAAE,OAAO;CACnD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACtE,MAAM,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC;CAC/H,OAAO,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC;CACpI,OAAO,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC;CACnI,SAAS,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,mCAAmC,SAAS,CAAC;CACpH,UAAU,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC;CACjL,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CACpF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;AAC3F,CAAC;AAKD,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATwC,EAAE,OAAO,EACjD,UAAU,oCAAoC,SAAS,EACzD,CAAC,CAAC,CAAC,SAAS,uDAOF;AACV,CAAC"}
|
|
@@ -10,11 +10,11 @@ const FinmeiUpdateExpenseFileInput = zod.z.object({
|
|
|
10
10
|
}).describe("File to upload as the expense attachment (usually PDF or image file of the bill).")
|
|
11
11
|
}).describe("Request model for updating the file attachment of an existing expense.\nThis endpoint is used solely for updating the file. Use Update Expense endpoint for updating form fields.");
|
|
12
12
|
const FinmeiUpdateExpenseFileOutput = zod.z.object({
|
|
13
|
-
id: zod.z.string().describe("Unique identifier of the expense").
|
|
14
|
-
message: zod.z.string().describe("Success message from the API").
|
|
15
|
-
file_url: zod.z.string().describe("URL of the uploaded file attachment").
|
|
16
|
-
file_name: zod.z.string().describe("Name of the uploaded file").
|
|
17
|
-
updated_at: zod.z.union([zod.z.string(), zod.z.number().int()]).
|
|
13
|
+
id: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Unique identifier of the expense").optional()),
|
|
14
|
+
message: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Success message from the API").optional()),
|
|
15
|
+
file_url: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("URL of the uploaded file attachment").optional()),
|
|
16
|
+
file_name: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Name of the uploaded file").optional()),
|
|
17
|
+
updated_at: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.union([zod.z.string(), zod.z.number().int()]).optional())
|
|
18
18
|
}).describe("Response model containing the updated expense details after successful file upload.");
|
|
19
19
|
const finmeiUpdateExpenseFile = require_action.action("FINMEI_UPDATE_EXPENSE_FILE", {
|
|
20
20
|
slug: "finmei-update-expense-file",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-expense-file.cjs","names":["z","action"],"sources":["../../src/actions/update-expense-file.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiUpdateExpenseFileInput
|
|
1
|
+
{"version":3,"file":"update-expense-file.cjs","names":["z","action"],"sources":["../../src/actions/update-expense-file.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiUpdateExpenseFileInput = z.object({\n id: z.string().describe(\"Unique identifier of the expense to update the file for. Must be a valid existing expense ID.\"),\n file: z.object({\n name: z.string().describe(\"The filename that will be used when uploading the file to the destination service\"),\n s3key: z.string().describe(\"The S3 key of a publicly accessible file, typically returned from a previous download action that stored the file in S3. This key references an existing file that can be uploaded to another service.\"),\n mimetype: z.string().describe(\"The MIME type of the file\"),\n}).describe(\"File to upload as the expense attachment (usually PDF or image file of the bill).\"),\n}).describe(\"Request model for updating the file attachment of an existing expense.\\nThis endpoint is used solely for updating the file. Use Update Expense endpoint for updating form fields.\");\nexport const FinmeiUpdateExpenseFileOutput = z.object({\n id: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Unique identifier of the expense\").optional()),\n message: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Success message from the API\").optional()),\n file_url: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"URL of the uploaded file attachment\").optional()),\n file_name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Name of the uploaded file\").optional()),\n updated_at: z.preprocess((value) => (value === null ? undefined : value), z.union([z.string(), z.number().int()]).optional()),\n}).describe(\"Response model containing the updated expense details after successful file upload.\");\n\nexport const finmeiUpdateExpenseFile = action(\"FINMEI_UPDATE_EXPENSE_FILE\", {\n slug: \"finmei-update-expense-file\",\n name: \"Update Expense File\",\n description: \"Updates the file attachment of an existing expense in Finmei. Use this action when you need to attach or replace a receipt/invoice file for an expense. This endpoint is specifically for updating the file only - use the Update Expense action for updating other expense fields like amount, date, or description. The file is uploaded using multipart/form-data content type and typically should be a PDF or image file of the bill/receipt.\",\n input: FinmeiUpdateExpenseFileInput,\n output: FinmeiUpdateExpenseFileOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+FAA+F;CACvH,MAAMA,IAAAA,EAAE,OAAO;EACf,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF;EAC7G,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wMAAwM;EACnO,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CAC3D,CAAC,CAAC,CAAC,SAAS,mFAAmF;AAC/F,CAAC,CAAC,CAAC,SAAS,mLAAmL;AAC/L,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,IAAIA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC;CACpI,SAASA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC;CACrI,UAAUA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC;CAC7I,WAAWA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC;CACpI,YAAYA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;AAC9H,CAAC,CAAC,CAAC,SAAS,qFAAqF;AAEjG,MAAa,0BAA0BC,eAAAA,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,35 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/update-expense-file.d.ts
|
|
4
|
-
declare const FinmeiUpdateExpenseFileInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const FinmeiUpdateExpenseFileInput: z.ZodObject<{
|
|
5
|
+
id: z.ZodString;
|
|
6
|
+
file: z.ZodObject<{
|
|
7
|
+
name: z.ZodString;
|
|
8
|
+
s3key: z.ZodString;
|
|
9
|
+
mimetype: z.ZodString;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
declare const FinmeiUpdateExpenseFileOutput: z.ZodObject<{
|
|
13
|
+
id: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
14
|
+
message: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
15
|
+
file_url: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
16
|
+
file_name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
17
|
+
updated_at: z.ZodPreprocess<z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
declare const finmeiUpdateExpenseFile: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
20
|
+
id: string;
|
|
21
|
+
file: {
|
|
22
|
+
name: string;
|
|
23
|
+
s3key: string;
|
|
24
|
+
mimetype: string;
|
|
25
|
+
};
|
|
26
|
+
}, {
|
|
27
|
+
id?: string | undefined;
|
|
28
|
+
message?: string | undefined;
|
|
29
|
+
file_url?: string | undefined;
|
|
30
|
+
file_name?: string | undefined;
|
|
31
|
+
updated_at?: string | number | undefined;
|
|
32
|
+
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
33
|
//#endregion
|
|
8
34
|
export { finmeiUpdateExpenseFile };
|
|
9
35
|
//# sourceMappingURL=update-expense-file.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-expense-file.d.cts","names":[],"sources":["../../src/actions/update-expense-file.ts"],"mappings":";;;cAIa,4BAAA,
|
|
1
|
+
{"version":3,"file":"update-expense-file.d.cts","names":[],"sources":["../../src/actions/update-expense-file.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;cAQ5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;cAQ7B,uBAAA,gCAAuB,wBAAA"}
|
|
@@ -1,9 +1,35 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/update-expense-file.d.ts
|
|
4
|
-
declare const FinmeiUpdateExpenseFileInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const FinmeiUpdateExpenseFileInput: z.ZodObject<{
|
|
5
|
+
id: z.ZodString;
|
|
6
|
+
file: z.ZodObject<{
|
|
7
|
+
name: z.ZodString;
|
|
8
|
+
s3key: z.ZodString;
|
|
9
|
+
mimetype: z.ZodString;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
declare const FinmeiUpdateExpenseFileOutput: z.ZodObject<{
|
|
13
|
+
id: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
14
|
+
message: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
15
|
+
file_url: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
16
|
+
file_name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
17
|
+
updated_at: z.ZodPreprocess<z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
declare const finmeiUpdateExpenseFile: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
20
|
+
id: string;
|
|
21
|
+
file: {
|
|
22
|
+
name: string;
|
|
23
|
+
s3key: string;
|
|
24
|
+
mimetype: string;
|
|
25
|
+
};
|
|
26
|
+
}, {
|
|
27
|
+
id?: string | undefined;
|
|
28
|
+
message?: string | undefined;
|
|
29
|
+
file_url?: string | undefined;
|
|
30
|
+
file_name?: string | undefined;
|
|
31
|
+
updated_at?: string | number | undefined;
|
|
32
|
+
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
33
|
//#endregion
|
|
8
34
|
export { finmeiUpdateExpenseFile };
|
|
9
35
|
//# sourceMappingURL=update-expense-file.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-expense-file.d.mts","names":[],"sources":["../../src/actions/update-expense-file.ts"],"mappings":";;;cAIa,4BAAA,
|
|
1
|
+
{"version":3,"file":"update-expense-file.d.mts","names":[],"sources":["../../src/actions/update-expense-file.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;cAQ5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;cAQ7B,uBAAA,gCAAuB,wBAAA"}
|
|
@@ -13,11 +13,11 @@ const finmeiUpdateExpenseFile = action("FINMEI_UPDATE_EXPENSE_FILE", {
|
|
|
13
13
|
}).describe("File to upload as the expense attachment (usually PDF or image file of the bill).")
|
|
14
14
|
}).describe("Request model for updating the file attachment of an existing expense.\nThis endpoint is used solely for updating the file. Use Update Expense endpoint for updating form fields."),
|
|
15
15
|
output: z.object({
|
|
16
|
-
id: z.string().describe("Unique identifier of the expense").
|
|
17
|
-
message: z.string().describe("Success message from the API").
|
|
18
|
-
file_url: z.string().describe("URL of the uploaded file attachment").
|
|
19
|
-
file_name: z.string().describe("Name of the uploaded file").
|
|
20
|
-
updated_at: z.union([z.string(), z.number().int()]).
|
|
16
|
+
id: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Unique identifier of the expense").optional()),
|
|
17
|
+
message: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Success message from the API").optional()),
|
|
18
|
+
file_url: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("URL of the uploaded file attachment").optional()),
|
|
19
|
+
file_name: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Name of the uploaded file").optional()),
|
|
20
|
+
updated_at: z.preprocess((value) => value === null ? void 0 : value, z.union([z.string(), z.number().int()]).optional())
|
|
21
21
|
}).describe("Response model containing the updated expense details after successful file upload.")
|
|
22
22
|
});
|
|
23
23
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-expense-file.mjs","names":[],"sources":["../../src/actions/update-expense-file.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiUpdateExpenseFileInput
|
|
1
|
+
{"version":3,"file":"update-expense-file.mjs","names":[],"sources":["../../src/actions/update-expense-file.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiUpdateExpenseFileInput = z.object({\n id: z.string().describe(\"Unique identifier of the expense to update the file for. Must be a valid existing expense ID.\"),\n file: z.object({\n name: z.string().describe(\"The filename that will be used when uploading the file to the destination service\"),\n s3key: z.string().describe(\"The S3 key of a publicly accessible file, typically returned from a previous download action that stored the file in S3. This key references an existing file that can be uploaded to another service.\"),\n mimetype: z.string().describe(\"The MIME type of the file\"),\n}).describe(\"File to upload as the expense attachment (usually PDF or image file of the bill).\"),\n}).describe(\"Request model for updating the file attachment of an existing expense.\\nThis endpoint is used solely for updating the file. Use Update Expense endpoint for updating form fields.\");\nexport const FinmeiUpdateExpenseFileOutput = z.object({\n id: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Unique identifier of the expense\").optional()),\n message: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Success message from the API\").optional()),\n file_url: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"URL of the uploaded file attachment\").optional()),\n file_name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Name of the uploaded file\").optional()),\n updated_at: z.preprocess((value) => (value === null ? undefined : value), z.union([z.string(), z.number().int()]).optional()),\n}).describe(\"Response model containing the updated expense details after successful file upload.\");\n\nexport const finmeiUpdateExpenseFile = action(\"FINMEI_UPDATE_EXPENSE_FILE\", {\n slug: \"finmei-update-expense-file\",\n name: \"Update Expense File\",\n description: \"Updates the file attachment of an existing expense in Finmei. Use this action when you need to attach or replace a receipt/invoice file for an expense. This endpoint is specifically for updating the file only - use the Update Expense action for updating other expense fields like amount, date, or description. The file is uploaded using multipart/form-data content type and typically should be a PDF or image file of the bill/receipt.\",\n input: FinmeiUpdateExpenseFileInput,\n output: FinmeiUpdateExpenseFileOutput,\n});\n"],"mappings":";;AAoBA,MAAa,0BAA0B,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OApB0C,EAAE,OAAO;EACnD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,+FAA+F;EACvH,MAAM,EAAE,OAAO;GACf,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF;GAC7G,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wMAAwM;GACnO,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;EAC3D,CAAC,CAAC,CAAC,SAAS,mFAAmF;CAC/F,CAAC,CAAC,CAAC,SAAS,mLAaH;CACP,QAb2C,EAAE,OAAO;EACpD,IAAI,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC;EACpI,SAAS,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC;EACrI,UAAU,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC;EAC7I,WAAW,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC;EACpI,YAAY,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;CAC9H,CAAC,CAAC,CAAC,SAAS,qFAOF;AACV,CAAC"}
|
|
@@ -9,13 +9,13 @@ const FinmeiUpdateExpenseInput = zod.z.object({
|
|
|
9
9
|
currency: zod.z.string().describe("Uppercase three letter currency code (ISO 4217 format). Example: USD, EUR, GBP. This field is required.")
|
|
10
10
|
}).describe("Request model for updating an existing expense's fields");
|
|
11
11
|
const FinmeiUpdateExpenseOutput = zod.z.object({
|
|
12
|
-
id: zod.z.string().describe("Unique identifier of the expense"),
|
|
13
|
-
date: zod.z.string().describe("Date of the expense after the update"),
|
|
14
|
-
total: zod.z.number().describe("Total amount of the expense after the update"),
|
|
15
|
-
seller: zod.z.string().describe("Seller name after the update"),
|
|
16
|
-
currency: zod.z.string().describe("Currency code of the expense after the update"),
|
|
17
|
-
created_at: zod.z.string().describe("ISO8601 timestamp when the expense was originally created").
|
|
18
|
-
updated_at: zod.z.string().describe("ISO8601 timestamp when the expense was last updated").
|
|
12
|
+
id: zod.z.string().describe("Unique identifier of the expense").nullable(),
|
|
13
|
+
date: zod.z.string().describe("Date of the expense after the update").nullable(),
|
|
14
|
+
total: zod.z.number().describe("Total amount of the expense after the update").nullable(),
|
|
15
|
+
seller: zod.z.string().describe("Seller name after the update").nullable(),
|
|
16
|
+
currency: zod.z.string().describe("Currency code of the expense after the update").nullable(),
|
|
17
|
+
created_at: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("ISO8601 timestamp when the expense was originally created").optional()),
|
|
18
|
+
updated_at: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("ISO8601 timestamp when the expense was last updated").optional())
|
|
19
19
|
}).describe("Response model containing the updated expense details after a successful update");
|
|
20
20
|
const finmeiUpdateExpense = require_action.action("FINMEI_UPDATE_EXPENSE", {
|
|
21
21
|
slug: "finmei-update-expense",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-expense.cjs","names":["z","action"],"sources":["../../src/actions/update-expense.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiUpdateExpenseInput
|
|
1
|
+
{"version":3,"file":"update-expense.cjs","names":["z","action"],"sources":["../../src/actions/update-expense.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiUpdateExpenseInput = z.object({\n id: z.string().describe(\"Unique identifier of the expense to update. Must be a valid existing expense ID.\"),\n date: z.string().describe(\"Date of the expense in YYYY-MM-DD format. This field is required.\"),\n total: z.number().describe(\"Total amount of the expense. Must be non-negative. This field is required.\"),\n seller: z.string().describe(\"Name of the seller from invoice. This field is required.\"),\n currency: z.string().describe(\"Uppercase three letter currency code (ISO 4217 format). Example: USD, EUR, GBP. This field is required.\"),\n}).describe(\"Request model for updating an existing expense's fields\");\nexport const FinmeiUpdateExpenseOutput = z.object({\n id: z.string().describe(\"Unique identifier of the expense\").nullable(),\n date: z.string().describe(\"Date of the expense after the update\").nullable(),\n total: z.number().describe(\"Total amount of the expense after the update\").nullable(),\n seller: z.string().describe(\"Seller name after the update\").nullable(),\n currency: z.string().describe(\"Currency code of the expense after the update\").nullable(),\n created_at: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"ISO8601 timestamp when the expense was originally created\").optional()),\n updated_at: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"ISO8601 timestamp when the expense was last updated\").optional()),\n}).describe(\"Response model containing the updated expense details after a successful update\");\n\nexport const finmeiUpdateExpense = action(\"FINMEI_UPDATE_EXPENSE\", {\n slug: \"finmei-update-expense\",\n name: \"Update Expense\",\n description: \"Tool to update an existing expense's fields including date, total, currency, and seller. Use when you need to modify expense details. To update the invoice/bill file, use the Update Expense File endpoint instead.\",\n input: FinmeiUpdateExpenseInput,\n output: FinmeiUpdateExpenseOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kFAAkF;CAC1G,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE;CAC7F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E;CACvG,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D;CACtF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yGAAyG;AACzI,CAAC,CAAC,CAAC,SAAS,yDAAyD;AACrE,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CACrE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC3E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACpF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACrE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACxF,YAAYA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC;CACrK,YAAYA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC;AACjK,CAAC,CAAC,CAAC,SAAS,iFAAiF;AAE7F,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,37 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/update-expense.d.ts
|
|
4
|
-
declare const FinmeiUpdateExpenseInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const FinmeiUpdateExpenseInput: z.ZodObject<{
|
|
5
|
+
id: z.ZodString;
|
|
6
|
+
date: z.ZodString;
|
|
7
|
+
total: z.ZodNumber;
|
|
8
|
+
seller: z.ZodString;
|
|
9
|
+
currency: z.ZodString;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
declare const FinmeiUpdateExpenseOutput: z.ZodObject<{
|
|
12
|
+
id: z.ZodNullable<z.ZodString>;
|
|
13
|
+
date: z.ZodNullable<z.ZodString>;
|
|
14
|
+
total: z.ZodNullable<z.ZodNumber>;
|
|
15
|
+
seller: z.ZodNullable<z.ZodString>;
|
|
16
|
+
currency: z.ZodNullable<z.ZodString>;
|
|
17
|
+
created_at: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
18
|
+
updated_at: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
19
|
+
}, z.core.$strip>;
|
|
20
|
+
declare const finmeiUpdateExpense: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
21
|
+
id: string;
|
|
22
|
+
date: string;
|
|
23
|
+
total: number;
|
|
24
|
+
seller: string;
|
|
25
|
+
currency: string;
|
|
26
|
+
}, {
|
|
27
|
+
id: string | null;
|
|
28
|
+
date: string | null;
|
|
29
|
+
total: number | null;
|
|
30
|
+
seller: string | null;
|
|
31
|
+
currency: string | null;
|
|
32
|
+
created_at?: string | undefined;
|
|
33
|
+
updated_at?: string | undefined;
|
|
34
|
+
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
35
|
//#endregion
|
|
8
36
|
export { finmeiUpdateExpense };
|
|
9
37
|
//# sourceMappingURL=update-expense.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-expense.d.cts","names":[],"sources":["../../src/actions/update-expense.ts"],"mappings":";;;cAIa,wBAAA,
|
|
1
|
+
{"version":3,"file":"update-expense.d.cts","names":[],"sources":["../../src/actions/update-expense.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;cAOxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;cAUzB,mBAAA,gCAAmB,wBAAA"}
|
|
@@ -1,9 +1,37 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/update-expense.d.ts
|
|
4
|
-
declare const FinmeiUpdateExpenseInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const FinmeiUpdateExpenseInput: z.ZodObject<{
|
|
5
|
+
id: z.ZodString;
|
|
6
|
+
date: z.ZodString;
|
|
7
|
+
total: z.ZodNumber;
|
|
8
|
+
seller: z.ZodString;
|
|
9
|
+
currency: z.ZodString;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
declare const FinmeiUpdateExpenseOutput: z.ZodObject<{
|
|
12
|
+
id: z.ZodNullable<z.ZodString>;
|
|
13
|
+
date: z.ZodNullable<z.ZodString>;
|
|
14
|
+
total: z.ZodNullable<z.ZodNumber>;
|
|
15
|
+
seller: z.ZodNullable<z.ZodString>;
|
|
16
|
+
currency: z.ZodNullable<z.ZodString>;
|
|
17
|
+
created_at: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
18
|
+
updated_at: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
19
|
+
}, z.core.$strip>;
|
|
20
|
+
declare const finmeiUpdateExpense: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
21
|
+
id: string;
|
|
22
|
+
date: string;
|
|
23
|
+
total: number;
|
|
24
|
+
seller: string;
|
|
25
|
+
currency: string;
|
|
26
|
+
}, {
|
|
27
|
+
id: string | null;
|
|
28
|
+
date: string | null;
|
|
29
|
+
total: number | null;
|
|
30
|
+
seller: string | null;
|
|
31
|
+
currency: string | null;
|
|
32
|
+
created_at?: string | undefined;
|
|
33
|
+
updated_at?: string | undefined;
|
|
34
|
+
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
35
|
//#endregion
|
|
8
36
|
export { finmeiUpdateExpense };
|
|
9
37
|
//# sourceMappingURL=update-expense.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-expense.d.mts","names":[],"sources":["../../src/actions/update-expense.ts"],"mappings":";;;cAIa,wBAAA,
|
|
1
|
+
{"version":3,"file":"update-expense.d.mts","names":[],"sources":["../../src/actions/update-expense.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;cAOxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;cAUzB,mBAAA,gCAAmB,wBAAA"}
|
|
@@ -12,13 +12,13 @@ const finmeiUpdateExpense = action("FINMEI_UPDATE_EXPENSE", {
|
|
|
12
12
|
currency: z.string().describe("Uppercase three letter currency code (ISO 4217 format). Example: USD, EUR, GBP. This field is required.")
|
|
13
13
|
}).describe("Request model for updating an existing expense's fields"),
|
|
14
14
|
output: z.object({
|
|
15
|
-
id: z.string().describe("Unique identifier of the expense"),
|
|
16
|
-
date: z.string().describe("Date of the expense after the update"),
|
|
17
|
-
total: z.number().describe("Total amount of the expense after the update"),
|
|
18
|
-
seller: z.string().describe("Seller name after the update"),
|
|
19
|
-
currency: z.string().describe("Currency code of the expense after the update"),
|
|
20
|
-
created_at: z.string().describe("ISO8601 timestamp when the expense was originally created").
|
|
21
|
-
updated_at: z.string().describe("ISO8601 timestamp when the expense was last updated").
|
|
15
|
+
id: z.string().describe("Unique identifier of the expense").nullable(),
|
|
16
|
+
date: z.string().describe("Date of the expense after the update").nullable(),
|
|
17
|
+
total: z.number().describe("Total amount of the expense after the update").nullable(),
|
|
18
|
+
seller: z.string().describe("Seller name after the update").nullable(),
|
|
19
|
+
currency: z.string().describe("Currency code of the expense after the update").nullable(),
|
|
20
|
+
created_at: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("ISO8601 timestamp when the expense was originally created").optional()),
|
|
21
|
+
updated_at: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("ISO8601 timestamp when the expense was last updated").optional())
|
|
22
22
|
}).describe("Response model containing the updated expense details after a successful update")
|
|
23
23
|
});
|
|
24
24
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-expense.mjs","names":[],"sources":["../../src/actions/update-expense.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiUpdateExpenseInput
|
|
1
|
+
{"version":3,"file":"update-expense.mjs","names":[],"sources":["../../src/actions/update-expense.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiUpdateExpenseInput = z.object({\n id: z.string().describe(\"Unique identifier of the expense to update. Must be a valid existing expense ID.\"),\n date: z.string().describe(\"Date of the expense in YYYY-MM-DD format. This field is required.\"),\n total: z.number().describe(\"Total amount of the expense. Must be non-negative. This field is required.\"),\n seller: z.string().describe(\"Name of the seller from invoice. This field is required.\"),\n currency: z.string().describe(\"Uppercase three letter currency code (ISO 4217 format). Example: USD, EUR, GBP. This field is required.\"),\n}).describe(\"Request model for updating an existing expense's fields\");\nexport const FinmeiUpdateExpenseOutput = z.object({\n id: z.string().describe(\"Unique identifier of the expense\").nullable(),\n date: z.string().describe(\"Date of the expense after the update\").nullable(),\n total: z.number().describe(\"Total amount of the expense after the update\").nullable(),\n seller: z.string().describe(\"Seller name after the update\").nullable(),\n currency: z.string().describe(\"Currency code of the expense after the update\").nullable(),\n created_at: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"ISO8601 timestamp when the expense was originally created\").optional()),\n updated_at: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"ISO8601 timestamp when the expense was last updated\").optional()),\n}).describe(\"Response model containing the updated expense details after a successful update\");\n\nexport const finmeiUpdateExpense = action(\"FINMEI_UPDATE_EXPENSE\", {\n slug: \"finmei-update-expense\",\n name: \"Update Expense\",\n description: \"Tool to update an existing expense's fields including date, total, currency, and seller. Use when you need to modify expense details. To update the invoice/bill file, use the Update Expense File endpoint instead.\",\n input: FinmeiUpdateExpenseInput,\n output: FinmeiUpdateExpenseOutput,\n});\n"],"mappings":";;AAqBA,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OArBsC,EAAE,OAAO;EAC/C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,kFAAkF;EAC1G,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE;EAC7F,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E;EACvG,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D;EACtF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,yGAAyG;CACzI,CAAC,CAAC,CAAC,SAAS,yDAeH;CACP,QAfuC,EAAE,OAAO;EAChD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;EACrE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;EAC3E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;EACpF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;EACrE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;EACxF,YAAY,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC;EACrK,YAAY,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC;CACjK,CAAC,CAAC,CAAC,SAAS,iFAOF;AACV,CAAC"}
|
|
@@ -49,64 +49,64 @@ const FinmeiUpdateInvoiceInput = zod.z.object({
|
|
|
49
49
|
use_default_seller_info: zod.z.boolean().describe("If true, API will use default seller info instead of requiring seller object").optional()
|
|
50
50
|
});
|
|
51
51
|
const FinmeiUpdateInvoice_BuyerResponseSchema = zod.z.object({
|
|
52
|
-
type: zod.z.string().describe("Buyer type (individual, company)").
|
|
53
|
-
email: zod.z.string().describe("Contact email").
|
|
54
|
-
phone: zod.z.string().describe("Contact phone").
|
|
55
|
-
address: zod.z.string().describe("Buyer address").
|
|
56
|
-
vat_code: zod.z.string().describe("VAT code").
|
|
57
|
-
last_name: zod.z.string().describe("Last name (for individuals)").
|
|
58
|
-
first_name: zod.z.string().describe("First name (for individuals)").
|
|
59
|
-
company_code: zod.z.string().describe("Company registration code").
|
|
60
|
-
company_name: zod.z.string().describe("Company name (for companies)").
|
|
61
|
-
individual_tax_id: zod.z.string().describe("Individual tax ID").
|
|
52
|
+
type: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Buyer type (individual, company)").optional()),
|
|
53
|
+
email: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Contact email").optional()),
|
|
54
|
+
phone: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Contact phone").optional()),
|
|
55
|
+
address: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Buyer address").optional()),
|
|
56
|
+
vat_code: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("VAT code").optional()),
|
|
57
|
+
last_name: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Last name (for individuals)").optional()),
|
|
58
|
+
first_name: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("First name (for individuals)").optional()),
|
|
59
|
+
company_code: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Company registration code").optional()),
|
|
60
|
+
company_name: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Company name (for companies)").optional()),
|
|
61
|
+
individual_tax_id: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Individual tax ID").optional())
|
|
62
62
|
});
|
|
63
63
|
const FinmeiUpdateInvoice_InvoiceItemResponseSchema = zod.z.object({
|
|
64
|
-
id: zod.z.string().describe("Item unique identifier").
|
|
65
|
-
name: zod.z.string().describe("Product or service name").
|
|
66
|
-
price: zod.z.number().describe("Unit price").
|
|
67
|
-
units: zod.z.string().describe("Units (e.g., pcs, hours)").
|
|
68
|
-
quantity: zod.z.number().describe("Quantity").
|
|
69
|
-
vat_percentage: zod.z.number().describe("VAT percentage applied").
|
|
64
|
+
id: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Item unique identifier").optional()),
|
|
65
|
+
name: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Product or service name").optional()),
|
|
66
|
+
price: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().describe("Unit price").optional()),
|
|
67
|
+
units: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Units (e.g., pcs, hours)").optional()),
|
|
68
|
+
quantity: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().describe("Quantity").optional()),
|
|
69
|
+
vat_percentage: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().describe("VAT percentage applied").optional())
|
|
70
70
|
});
|
|
71
71
|
const FinmeiUpdateInvoice_SellerResponseSchema = zod.z.object({
|
|
72
|
-
email: zod.z.string().describe("Contact email").
|
|
73
|
-
phone: zod.z.string().describe("Contact phone").
|
|
74
|
-
address: zod.z.string().describe("Business address").
|
|
75
|
-
vat_code: zod.z.string().describe("VAT code").
|
|
76
|
-
last_name: zod.z.string().describe("Last name (for individuals)").
|
|
77
|
-
first_name: zod.z.string().describe("First name (for individuals)").
|
|
78
|
-
company_code: zod.z.string().describe("Company registration code").
|
|
79
|
-
company_name: zod.z.string().describe("Company name (for companies)").
|
|
80
|
-
business_type: zod.z.string().describe("Type of business (company, individual)").
|
|
81
|
-
custom_fields: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("Custom fields").
|
|
82
|
-
individual_tax_id: zod.z.string().describe("Individual tax ID").
|
|
72
|
+
email: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Contact email").optional()),
|
|
73
|
+
phone: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Contact phone").optional()),
|
|
74
|
+
address: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Business address").optional()),
|
|
75
|
+
vat_code: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("VAT code").optional()),
|
|
76
|
+
last_name: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Last name (for individuals)").optional()),
|
|
77
|
+
first_name: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("First name (for individuals)").optional()),
|
|
78
|
+
company_code: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Company registration code").optional()),
|
|
79
|
+
company_name: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Company name (for companies)").optional()),
|
|
80
|
+
business_type: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Type of business (company, individual)").optional()),
|
|
81
|
+
custom_fields: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("Custom fields").optional()),
|
|
82
|
+
individual_tax_id: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Individual tax ID").optional())
|
|
83
83
|
});
|
|
84
84
|
const FinmeiUpdateInvoiceOutput = zod.z.object({
|
|
85
|
-
id: zod.z.string().describe("Unique identifier of the updated invoice").
|
|
86
|
-
vat: zod.z.number().describe("Total VAT amount").
|
|
87
|
-
code: zod.z.string().describe("Invoice code or reference").
|
|
88
|
-
buyer:
|
|
89
|
-
items: zod.z.array(FinmeiUpdateInvoice_InvoiceItemResponseSchema).describe("Line items on the invoice").
|
|
90
|
-
notes: zod.z.string().describe("Notes included on the invoice").
|
|
91
|
-
seller:
|
|
92
|
-
series: zod.z.string().describe("Invoice series/prefix").
|
|
93
|
-
status: zod.z.string().describe("Status of the invoice").
|
|
94
|
-
currency: zod.z.string().describe("Currency code of the invoice").
|
|
95
|
-
language: zod.z.string().describe("Invoice language").
|
|
96
|
-
subtotal: zod.z.number().describe("Subtotal amount before VAT").
|
|
97
|
-
amount_due: zod.z.number().describe("Total amount due on the invoice").
|
|
98
|
-
created_at: zod.z.union([zod.z.string(), zod.z.number().int()]).
|
|
99
|
-
share_link: zod.z.string().describe("Public link to share the invoice").
|
|
100
|
-
updated_at: zod.z.union([zod.z.string(), zod.z.number().int()]).
|
|
101
|
-
amount_paid: zod.z.number().describe("Total amount paid on the invoice").
|
|
102
|
-
business_id: zod.z.string().describe("Business identifier").
|
|
103
|
-
invoice_date: zod.z.string().describe("Date the invoice was issued").
|
|
104
|
-
invoice_type: zod.z.string().describe("Type of the invoice").
|
|
105
|
-
invoice_number: zod.z.string().describe("Invoice number").
|
|
106
|
-
pay_until_date: zod.z.string().describe("Payment due date").
|
|
107
|
-
payment_status: zod.z.string().describe("Payment status of the invoice").
|
|
108
|
-
total_incl_vat: zod.z.number().describe("Total amount including VAT").
|
|
109
|
-
payment_options: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("Available payment options").
|
|
85
|
+
id: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Unique identifier of the updated invoice").optional()),
|
|
86
|
+
vat: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().describe("Total VAT amount").optional()),
|
|
87
|
+
code: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Invoice code or reference").optional()),
|
|
88
|
+
buyer: zod.z.preprocess((value) => value === null ? void 0 : value, FinmeiUpdateInvoice_BuyerResponseSchema.optional()),
|
|
89
|
+
items: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.array(FinmeiUpdateInvoice_InvoiceItemResponseSchema).describe("Line items on the invoice").optional()),
|
|
90
|
+
notes: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Notes included on the invoice").optional()),
|
|
91
|
+
seller: zod.z.preprocess((value) => value === null ? void 0 : value, FinmeiUpdateInvoice_SellerResponseSchema.optional()),
|
|
92
|
+
series: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Invoice series/prefix").optional()),
|
|
93
|
+
status: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Status of the invoice").optional()),
|
|
94
|
+
currency: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Currency code of the invoice").optional()),
|
|
95
|
+
language: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Invoice language").optional()),
|
|
96
|
+
subtotal: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().describe("Subtotal amount before VAT").optional()),
|
|
97
|
+
amount_due: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().describe("Total amount due on the invoice").optional()),
|
|
98
|
+
created_at: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.union([zod.z.string(), zod.z.number().int()]).optional()),
|
|
99
|
+
share_link: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Public link to share the invoice").optional()),
|
|
100
|
+
updated_at: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.union([zod.z.string(), zod.z.number().int()]).optional()),
|
|
101
|
+
amount_paid: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().describe("Total amount paid on the invoice").optional()),
|
|
102
|
+
business_id: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Business identifier").optional()),
|
|
103
|
+
invoice_date: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Date the invoice was issued").optional()),
|
|
104
|
+
invoice_type: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Type of the invoice").optional()),
|
|
105
|
+
invoice_number: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Invoice number").optional()),
|
|
106
|
+
pay_until_date: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Payment due date").optional()),
|
|
107
|
+
payment_status: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Payment status of the invoice").optional()),
|
|
108
|
+
total_incl_vat: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().describe("Total amount including VAT").optional()),
|
|
109
|
+
payment_options: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("Available payment options").optional())
|
|
110
110
|
});
|
|
111
111
|
const finmeiUpdateInvoice = require_action.action("FINMEI_UPDATE_INVOICE", {
|
|
112
112
|
slug: "finmei-update-invoice",
|