@keystrokehq/finmei 0.1.0
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/README.md +17 -0
- package/dist/action.cjs +21 -0
- package/dist/action.cjs.map +1 -0
- package/dist/action.mjs +21 -0
- package/dist/action.mjs.map +1 -0
- package/dist/actions/create-expense.cjs +35 -0
- package/dist/actions/create-expense.cjs.map +1 -0
- package/dist/actions/create-expense.d.cts +9 -0
- package/dist/actions/create-expense.d.cts.map +1 -0
- package/dist/actions/create-expense.d.mts +9 -0
- package/dist/actions/create-expense.d.mts.map +1 -0
- package/dist/actions/create-expense.mjs +34 -0
- package/dist/actions/create-expense.mjs.map +1 -0
- package/dist/actions/create-invoice.cjs +139 -0
- package/dist/actions/create-invoice.cjs.map +1 -0
- package/dist/actions/create-invoice.d.cts +9 -0
- package/dist/actions/create-invoice.d.cts.map +1 -0
- package/dist/actions/create-invoice.d.mts +9 -0
- package/dist/actions/create-invoice.d.mts.map +1 -0
- package/dist/actions/create-invoice.mjs +138 -0
- package/dist/actions/create-invoice.mjs.map +1 -0
- package/dist/actions/delete-customer.cjs +16 -0
- package/dist/actions/delete-customer.cjs.map +1 -0
- package/dist/actions/delete-customer.d.cts +9 -0
- package/dist/actions/delete-customer.d.cts.map +1 -0
- package/dist/actions/delete-customer.d.mts +9 -0
- package/dist/actions/delete-customer.d.mts.map +1 -0
- package/dist/actions/delete-customer.mjs +13 -0
- package/dist/actions/delete-customer.mjs.map +1 -0
- package/dist/actions/delete-invoice.cjs +19 -0
- package/dist/actions/delete-invoice.cjs.map +1 -0
- package/dist/actions/delete-invoice.d.cts +9 -0
- package/dist/actions/delete-invoice.d.cts.map +1 -0
- package/dist/actions/delete-invoice.d.mts +9 -0
- package/dist/actions/delete-invoice.d.mts.map +1 -0
- package/dist/actions/delete-invoice.mjs +16 -0
- package/dist/actions/delete-invoice.mjs.map +1 -0
- package/dist/actions/delete-payment.cjs +16 -0
- package/dist/actions/delete-payment.cjs.map +1 -0
- package/dist/actions/delete-payment.d.cts +9 -0
- package/dist/actions/delete-payment.d.cts.map +1 -0
- package/dist/actions/delete-payment.d.mts +9 -0
- package/dist/actions/delete-payment.d.mts.map +1 -0
- package/dist/actions/delete-payment.mjs +13 -0
- package/dist/actions/delete-payment.mjs.map +1 -0
- package/dist/actions/delete-product.cjs +19 -0
- package/dist/actions/delete-product.cjs.map +1 -0
- package/dist/actions/delete-product.d.cts +9 -0
- package/dist/actions/delete-product.d.cts.map +1 -0
- package/dist/actions/delete-product.d.mts +9 -0
- package/dist/actions/delete-product.d.mts.map +1 -0
- package/dist/actions/delete-product.mjs +16 -0
- package/dist/actions/delete-product.mjs.map +1 -0
- package/dist/actions/download-expense-file.cjs +21 -0
- package/dist/actions/download-expense-file.cjs.map +1 -0
- package/dist/actions/download-expense-file.d.cts +9 -0
- package/dist/actions/download-expense-file.d.cts.map +1 -0
- package/dist/actions/download-expense-file.d.mts +9 -0
- package/dist/actions/download-expense-file.d.mts.map +1 -0
- package/dist/actions/download-expense-file.mjs +20 -0
- package/dist/actions/download-expense-file.mjs.map +1 -0
- package/dist/actions/download-invoice-pdf.cjs +21 -0
- package/dist/actions/download-invoice-pdf.cjs.map +1 -0
- package/dist/actions/download-invoice-pdf.d.cts +9 -0
- package/dist/actions/download-invoice-pdf.d.cts.map +1 -0
- package/dist/actions/download-invoice-pdf.d.mts +9 -0
- package/dist/actions/download-invoice-pdf.d.mts.map +1 -0
- package/dist/actions/download-invoice-pdf.mjs +20 -0
- package/dist/actions/download-invoice-pdf.mjs.map +1 -0
- package/dist/actions/get-expense.cjs +25 -0
- package/dist/actions/get-expense.cjs.map +1 -0
- package/dist/actions/get-expense.d.cts +9 -0
- package/dist/actions/get-expense.d.cts.map +1 -0
- package/dist/actions/get-expense.d.mts +9 -0
- package/dist/actions/get-expense.d.mts.map +1 -0
- package/dist/actions/get-expense.mjs +24 -0
- package/dist/actions/get-expense.mjs.map +1 -0
- package/dist/actions/get-invoice.cjs +70 -0
- package/dist/actions/get-invoice.cjs.map +1 -0
- package/dist/actions/get-invoice.d.cts +9 -0
- package/dist/actions/get-invoice.d.cts.map +1 -0
- package/dist/actions/get-invoice.d.mts +9 -0
- package/dist/actions/get-invoice.d.mts.map +1 -0
- package/dist/actions/get-invoice.mjs +69 -0
- package/dist/actions/get-invoice.mjs.map +1 -0
- package/dist/actions/get-payment.cjs +26 -0
- package/dist/actions/get-payment.cjs.map +1 -0
- package/dist/actions/get-payment.d.cts +9 -0
- package/dist/actions/get-payment.d.cts.map +1 -0
- package/dist/actions/get-payment.d.mts +9 -0
- package/dist/actions/get-payment.d.mts.map +1 -0
- package/dist/actions/get-payment.mjs +23 -0
- package/dist/actions/get-payment.mjs.map +1 -0
- package/dist/actions/get-product.cjs +24 -0
- package/dist/actions/get-product.cjs.map +1 -0
- package/dist/actions/get-product.d.cts +9 -0
- package/dist/actions/get-product.d.cts.map +1 -0
- package/dist/actions/get-product.d.mts +9 -0
- package/dist/actions/get-product.d.mts.map +1 -0
- package/dist/actions/get-product.mjs +21 -0
- package/dist/actions/get-product.mjs.map +1 -0
- package/dist/actions/get-profile.cjs +25 -0
- package/dist/actions/get-profile.cjs.map +1 -0
- package/dist/actions/get-profile.d.cts +9 -0
- package/dist/actions/get-profile.d.cts.map +1 -0
- package/dist/actions/get-profile.d.mts +9 -0
- package/dist/actions/get-profile.d.mts.map +1 -0
- package/dist/actions/get-profile.mjs +24 -0
- package/dist/actions/get-profile.mjs.map +1 -0
- package/dist/actions/index.cjs +49 -0
- package/dist/actions/index.d.cts +25 -0
- package/dist/actions/index.d.mts +25 -0
- package/dist/actions/index.mjs +25 -0
- package/dist/actions/list-currencies.cjs +21 -0
- package/dist/actions/list-currencies.cjs.map +1 -0
- package/dist/actions/list-currencies.d.cts +9 -0
- package/dist/actions/list-currencies.d.cts.map +1 -0
- package/dist/actions/list-currencies.d.mts +9 -0
- package/dist/actions/list-currencies.d.mts.map +1 -0
- package/dist/actions/list-currencies.mjs +20 -0
- package/dist/actions/list-currencies.mjs.map +1 -0
- package/dist/actions/list-customers.cjs +39 -0
- package/dist/actions/list-customers.cjs.map +1 -0
- package/dist/actions/list-customers.d.cts +9 -0
- package/dist/actions/list-customers.d.cts.map +1 -0
- package/dist/actions/list-customers.d.mts +9 -0
- package/dist/actions/list-customers.d.mts.map +1 -0
- package/dist/actions/list-customers.mjs +38 -0
- package/dist/actions/list-customers.mjs.map +1 -0
- package/dist/actions/list-expenses.cjs +40 -0
- package/dist/actions/list-expenses.cjs.map +1 -0
- package/dist/actions/list-expenses.d.cts +9 -0
- package/dist/actions/list-expenses.d.cts.map +1 -0
- package/dist/actions/list-expenses.d.mts +9 -0
- package/dist/actions/list-expenses.d.mts.map +1 -0
- package/dist/actions/list-expenses.mjs +39 -0
- package/dist/actions/list-expenses.mjs.map +1 -0
- package/dist/actions/list-invoices.cjs +86 -0
- package/dist/actions/list-invoices.cjs.map +1 -0
- package/dist/actions/list-invoices.d.cts +9 -0
- package/dist/actions/list-invoices.d.cts.map +1 -0
- package/dist/actions/list-invoices.d.mts +9 -0
- package/dist/actions/list-invoices.d.mts.map +1 -0
- package/dist/actions/list-invoices.mjs +85 -0
- package/dist/actions/list-invoices.mjs.map +1 -0
- package/dist/actions/list-payments.cjs +42 -0
- package/dist/actions/list-payments.cjs.map +1 -0
- package/dist/actions/list-payments.d.cts +9 -0
- package/dist/actions/list-payments.d.cts.map +1 -0
- package/dist/actions/list-payments.d.mts +9 -0
- package/dist/actions/list-payments.d.mts.map +1 -0
- package/dist/actions/list-payments.mjs +41 -0
- package/dist/actions/list-payments.mjs.map +1 -0
- package/dist/actions/list-products.cjs +39 -0
- package/dist/actions/list-products.cjs.map +1 -0
- package/dist/actions/list-products.d.cts +9 -0
- package/dist/actions/list-products.d.cts.map +1 -0
- package/dist/actions/list-products.d.mts +9 -0
- package/dist/actions/list-products.d.mts.map +1 -0
- package/dist/actions/list-products.mjs +38 -0
- package/dist/actions/list-products.mjs.map +1 -0
- package/dist/actions/update-customer.cjs +46 -0
- package/dist/actions/update-customer.cjs.map +1 -0
- package/dist/actions/update-customer.d.cts +9 -0
- package/dist/actions/update-customer.d.cts.map +1 -0
- package/dist/actions/update-customer.d.mts +9 -0
- package/dist/actions/update-customer.d.mts.map +1 -0
- package/dist/actions/update-customer.mjs +45 -0
- package/dist/actions/update-customer.mjs.map +1 -0
- package/dist/actions/update-expense-file.cjs +29 -0
- package/dist/actions/update-expense-file.cjs.map +1 -0
- package/dist/actions/update-expense-file.d.cts +9 -0
- package/dist/actions/update-expense-file.d.cts.map +1 -0
- package/dist/actions/update-expense-file.d.mts +9 -0
- package/dist/actions/update-expense-file.d.mts.map +1 -0
- package/dist/actions/update-expense-file.mjs +26 -0
- package/dist/actions/update-expense-file.mjs.map +1 -0
- package/dist/actions/update-expense.cjs +30 -0
- package/dist/actions/update-expense.cjs.map +1 -0
- package/dist/actions/update-expense.d.cts +9 -0
- package/dist/actions/update-expense.d.cts.map +1 -0
- package/dist/actions/update-expense.d.mts +9 -0
- package/dist/actions/update-expense.d.mts.map +1 -0
- package/dist/actions/update-expense.mjs +27 -0
- package/dist/actions/update-expense.mjs.map +1 -0
- package/dist/actions/update-invoice.cjs +121 -0
- package/dist/actions/update-invoice.cjs.map +1 -0
- package/dist/actions/update-invoice.d.cts +9 -0
- package/dist/actions/update-invoice.d.cts.map +1 -0
- package/dist/actions/update-invoice.d.mts +9 -0
- package/dist/actions/update-invoice.d.mts.map +1 -0
- package/dist/actions/update-invoice.mjs +120 -0
- package/dist/actions/update-invoice.mjs.map +1 -0
- package/dist/actions/update-product.cjs +30 -0
- package/dist/actions/update-product.cjs.map +1 -0
- package/dist/actions/update-product.d.cts +9 -0
- package/dist/actions/update-product.d.cts.map +1 -0
- package/dist/actions/update-product.d.mts +9 -0
- package/dist/actions/update-product.d.mts.map +1 -0
- package/dist/actions/update-product.mjs +27 -0
- package/dist/actions/update-product.mjs.map +1 -0
- package/dist/app.cjs +9 -0
- package/dist/app.cjs.map +1 -0
- package/dist/app.d.cts +5 -0
- package/dist/app.d.cts.map +1 -0
- package/dist/app.d.mts +5 -0
- package/dist/app.d.mts.map +1 -0
- package/dist/app.mjs +10 -0
- package/dist/app.mjs.map +1 -0
- package/dist/catalog.cjs +15 -0
- package/dist/catalog.cjs.map +1 -0
- package/dist/catalog.d.cts +14 -0
- package/dist/catalog.d.cts.map +1 -0
- package/dist/catalog.d.mts +14 -0
- package/dist/catalog.d.mts.map +1 -0
- package/dist/catalog.mjs +15 -0
- package/dist/catalog.mjs.map +1 -0
- package/dist/execute.cjs +18 -0
- package/dist/execute.cjs.map +1 -0
- package/dist/execute.mjs +18 -0
- package/dist/execute.mjs.map +1 -0
- package/dist/index.cjs +54 -0
- package/dist/index.d.cts +27 -0
- package/dist/index.d.mts +27 -0
- package/dist/index.mjs +28 -0
- package/package.json +49 -0
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/list-invoices.ts
|
|
4
|
+
const FinmeiListInvoicesInput = z.object({
|
|
5
|
+
page: z.number().int().default(1).describe("Page number to retrieve (must be >= 1)").optional(),
|
|
6
|
+
per_page: z.number().int().default(20).describe("Number of invoices per page (1-100)").optional()
|
|
7
|
+
}).describe("Optional pagination parameters for listing invoices.");
|
|
8
|
+
const FinmeiListInvoices_PaginationMetaSchema = z.object({
|
|
9
|
+
to: z.number().int().describe("Ending item number on current page").nullable().optional(),
|
|
10
|
+
from: z.number().int().describe("Starting item number on current page (1-indexed)").nullable().optional(),
|
|
11
|
+
path: z.string().describe("API endpoint path"),
|
|
12
|
+
total: z.number().int().describe("Total number of invoices across all pages"),
|
|
13
|
+
per_page: z.number().int().describe("Number of items per page"),
|
|
14
|
+
last_page: z.number().int().describe("Last page number"),
|
|
15
|
+
current_page: z.number().int().describe("Current page number")
|
|
16
|
+
}).describe("Pagination metadata from the API");
|
|
17
|
+
const FinmeiListInvoices_BuyerSchema = z.object({
|
|
18
|
+
type: z.string().describe("Type of buyer (company or individual)").nullable().optional(),
|
|
19
|
+
email: z.string().describe("Buyer email").nullable().optional(),
|
|
20
|
+
phone: z.string().describe("Buyer phone number").nullable().optional(),
|
|
21
|
+
address: z.string().describe("Buyer address").nullable().optional(),
|
|
22
|
+
vat_code: z.string().describe("VAT registration number").nullable().optional(),
|
|
23
|
+
last_name: z.string().describe("Last name (for individual buyers)").nullable().optional(),
|
|
24
|
+
first_name: z.string().describe("First name (for individual buyers)").nullable().optional(),
|
|
25
|
+
company_code: z.string().describe("Company registration code").nullable().optional(),
|
|
26
|
+
company_name: z.string().describe("Company name (for company buyers)").nullable().optional(),
|
|
27
|
+
individual_tax_id: z.string().describe("Individual tax ID").nullable().optional()
|
|
28
|
+
}).describe("Buyer/customer information on the invoice");
|
|
29
|
+
const FinmeiListInvoices_InvoiceItemSchema = z.object({
|
|
30
|
+
id: z.string().describe("Unique item identifier"),
|
|
31
|
+
name: z.string().describe("Item/product/service name"),
|
|
32
|
+
price: z.number().describe("Unit price"),
|
|
33
|
+
units: z.string().describe("Unit of measurement (hours, pcs, etc.)"),
|
|
34
|
+
quantity: z.number().describe("Quantity"),
|
|
35
|
+
vat_percentage: z.number().describe("VAT/tax percentage applied").nullable().optional()
|
|
36
|
+
}).describe("Line item on the invoice");
|
|
37
|
+
const FinmeiListInvoices_SellerSchema = z.object({
|
|
38
|
+
email: z.string().describe("Business email").nullable().optional(),
|
|
39
|
+
phone: z.string().describe("Business phone number").nullable().optional(),
|
|
40
|
+
address: z.string().describe("Business address").nullable().optional(),
|
|
41
|
+
vat_code: z.string().describe("VAT registration number").nullable().optional(),
|
|
42
|
+
last_name: z.string().describe("Last name (for individual sellers)").nullable().optional(),
|
|
43
|
+
first_name: z.string().describe("First name (for individual sellers)").nullable().optional(),
|
|
44
|
+
company_code: z.string().describe("Company registration code").nullable().optional(),
|
|
45
|
+
company_name: z.string().describe("Company name (for company sellers)").nullable().optional(),
|
|
46
|
+
business_type: z.string().describe("Type of business (company or individual)").nullable().optional(),
|
|
47
|
+
individual_tax_id: z.string().describe("Individual tax ID").nullable().optional()
|
|
48
|
+
}).describe("Seller/business information on the invoice");
|
|
49
|
+
const FinmeiListInvoices_InvoiceSchema = z.object({
|
|
50
|
+
id: z.string().describe("Unique invoice identifier"),
|
|
51
|
+
vat: z.number().describe("Total VAT/tax amount"),
|
|
52
|
+
buyer: FinmeiListInvoices_BuyerSchema.nullable(),
|
|
53
|
+
items: z.array(FinmeiListInvoices_InvoiceItemSchema).describe("List of line items on the invoice").nullable().optional(),
|
|
54
|
+
notes: z.string().describe("Additional notes on the invoice").nullable().optional(),
|
|
55
|
+
seller: FinmeiListInvoices_SellerSchema.nullable(),
|
|
56
|
+
series: z.string().describe("Invoice series/prefix"),
|
|
57
|
+
currency: z.string().describe("ISO 4217 currency code (USD, EUR, GBP, etc.)"),
|
|
58
|
+
language: z.string().describe("Invoice language code"),
|
|
59
|
+
subtotal: z.number().describe("Subtotal amount before VAT"),
|
|
60
|
+
created_at: z.number().int().describe("Unix timestamp when invoice was created"),
|
|
61
|
+
share_link: z.string().describe("Public URL to view/share the invoice"),
|
|
62
|
+
updated_at: z.number().int().describe("Unix timestamp when invoice was last updated"),
|
|
63
|
+
business_id: z.string().describe("Business account identifier"),
|
|
64
|
+
invoice_date: z.string().describe("Invoice date in YYYY-MM-DD format"),
|
|
65
|
+
invoice_type: z.string().describe("Type of invoice (regular_invoice, vat_invoice, preliminary_invoice, credit_invoice)"),
|
|
66
|
+
invoice_number: z.string().describe("Invoice number within the series"),
|
|
67
|
+
pay_until_date: z.string().describe("Payment due date in YYYY-MM-DD format").nullable().optional(),
|
|
68
|
+
payment_status: z.string().describe("Payment status (not_paid, paid, partially_paid, etc.)"),
|
|
69
|
+
total_incl_vat: z.number().describe("Total amount including VAT"),
|
|
70
|
+
payment_options: z.array(z.object({})).describe("Available payment options").nullable().optional()
|
|
71
|
+
}).describe("Single invoice object returned by the API");
|
|
72
|
+
const finmeiListInvoices = action("FINMEI_LIST_INVOICES", {
|
|
73
|
+
slug: "finmei-list-invoices",
|
|
74
|
+
name: "List Invoices",
|
|
75
|
+
description: "Tool to list invoices. Use when you need a paginated list of invoices with basic details.",
|
|
76
|
+
input: FinmeiListInvoicesInput,
|
|
77
|
+
output: z.object({
|
|
78
|
+
meta: FinmeiListInvoices_PaginationMetaSchema.nullable().optional(),
|
|
79
|
+
invoices: z.array(FinmeiListInvoices_InvoiceSchema).describe("List of invoice objects returned by the API").nullable().optional()
|
|
80
|
+
}).describe("Response model for listing invoices with pagination metadata.")
|
|
81
|
+
});
|
|
82
|
+
//#endregion
|
|
83
|
+
export { finmeiListInvoices };
|
|
84
|
+
|
|
85
|
+
//# sourceMappingURL=list-invoices.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-invoices.mjs","names":[],"sources":["../../src/actions/list-invoices.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiListInvoicesInput: z.ZodTypeAny = z.object({\n page: z.number().int().default(1).describe(\"Page number to retrieve (must be >= 1)\").optional(),\n per_page: z.number().int().default(20).describe(\"Number of invoices per page (1-100)\").optional(),\n}).describe(\"Optional pagination parameters for listing invoices.\");\nconst FinmeiListInvoices_PaginationMetaSchema: z.ZodTypeAny = z.object({\n to: z.number().int().describe(\"Ending item number on current page\").nullable().optional(),\n from: z.number().int().describe(\"Starting item number on current page (1-indexed)\").nullable().optional(),\n path: z.string().describe(\"API endpoint path\"),\n total: z.number().int().describe(\"Total number of invoices across all pages\"),\n per_page: z.number().int().describe(\"Number of items per page\"),\n last_page: z.number().int().describe(\"Last page number\"),\n current_page: z.number().int().describe(\"Current page number\"),\n}).describe(\"Pagination metadata from the API\");\nconst FinmeiListInvoices_BuyerSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Type of buyer (company or individual)\").nullable().optional(),\n email: z.string().describe(\"Buyer email\").nullable().optional(),\n phone: z.string().describe(\"Buyer phone number\").nullable().optional(),\n address: z.string().describe(\"Buyer address\").nullable().optional(),\n vat_code: z.string().describe(\"VAT registration number\").nullable().optional(),\n last_name: z.string().describe(\"Last name (for individual buyers)\").nullable().optional(),\n first_name: z.string().describe(\"First name (for individual buyers)\").nullable().optional(),\n company_code: z.string().describe(\"Company registration code\").nullable().optional(),\n company_name: z.string().describe(\"Company name (for company buyers)\").nullable().optional(),\n individual_tax_id: z.string().describe(\"Individual tax ID\").nullable().optional(),\n}).describe(\"Buyer/customer information on the invoice\");\nconst FinmeiListInvoices_InvoiceItemSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique item identifier\"),\n name: z.string().describe(\"Item/product/service name\"),\n price: z.number().describe(\"Unit price\"),\n units: z.string().describe(\"Unit of measurement (hours, pcs, etc.)\"),\n quantity: z.number().describe(\"Quantity\"),\n vat_percentage: z.number().describe(\"VAT/tax percentage applied\").nullable().optional(),\n}).describe(\"Line item on the invoice\");\nconst FinmeiListInvoices_SellerSchema: z.ZodTypeAny = z.object({\n email: z.string().describe(\"Business email\").nullable().optional(),\n phone: z.string().describe(\"Business phone number\").nullable().optional(),\n address: z.string().describe(\"Business address\").nullable().optional(),\n vat_code: z.string().describe(\"VAT registration number\").nullable().optional(),\n last_name: z.string().describe(\"Last name (for individual sellers)\").nullable().optional(),\n first_name: z.string().describe(\"First name (for individual sellers)\").nullable().optional(),\n company_code: z.string().describe(\"Company registration code\").nullable().optional(),\n company_name: z.string().describe(\"Company name (for company sellers)\").nullable().optional(),\n business_type: z.string().describe(\"Type of business (company or individual)\").nullable().optional(),\n individual_tax_id: z.string().describe(\"Individual tax ID\").nullable().optional(),\n}).describe(\"Seller/business information on the invoice\");\nconst FinmeiListInvoices_InvoiceSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique invoice identifier\"),\n vat: z.number().describe(\"Total VAT/tax amount\"),\n buyer: FinmeiListInvoices_BuyerSchema.nullable(),\n items: z.array(FinmeiListInvoices_InvoiceItemSchema).describe(\"List of line items on the invoice\").nullable().optional(),\n notes: z.string().describe(\"Additional notes on the invoice\").nullable().optional(),\n seller: FinmeiListInvoices_SellerSchema.nullable(),\n series: z.string().describe(\"Invoice series/prefix\"),\n currency: z.string().describe(\"ISO 4217 currency code (USD, EUR, GBP, etc.)\"),\n language: z.string().describe(\"Invoice language code\"),\n subtotal: z.number().describe(\"Subtotal amount before VAT\"),\n created_at: z.number().int().describe(\"Unix timestamp when invoice was created\"),\n share_link: z.string().describe(\"Public URL to view/share the invoice\"),\n updated_at: z.number().int().describe(\"Unix timestamp when invoice was last updated\"),\n business_id: z.string().describe(\"Business account identifier\"),\n invoice_date: z.string().describe(\"Invoice date in YYYY-MM-DD format\"),\n invoice_type: z.string().describe(\"Type of invoice (regular_invoice, vat_invoice, preliminary_invoice, credit_invoice)\"),\n invoice_number: z.string().describe(\"Invoice number within the series\"),\n pay_until_date: z.string().describe(\"Payment due date in YYYY-MM-DD format\").nullable().optional(),\n payment_status: z.string().describe(\"Payment status (not_paid, paid, partially_paid, etc.)\"),\n total_incl_vat: z.number().describe(\"Total amount including VAT\"),\n payment_options: z.array(z.object({})).describe(\"Available payment options\").nullable().optional(),\n}).describe(\"Single invoice object returned by the API\");\nexport const FinmeiListInvoicesOutput: z.ZodTypeAny = z.object({\n meta: FinmeiListInvoices_PaginationMetaSchema.nullable().optional(),\n invoices: z.array(FinmeiListInvoices_InvoiceSchema).describe(\"List of invoice objects returned by the API\").nullable().optional(),\n}).describe(\"Response model for listing invoices with pagination metadata.\");\n\nexport const finmeiListInvoices = action(\"FINMEI_LIST_INVOICES\", {\n slug: \"finmei-list-invoices\",\n name: \"List Invoices\",\n description: \"Tool to list invoices. Use when you need a paginated list of invoices with basic details.\",\n input: FinmeiListInvoicesInput,\n output: FinmeiListInvoicesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAAwC,EAAE,OAAO;CAC5D,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC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C,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC;CAC/E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CACtE,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C;CACpF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;CAC9D,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;CACrE,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF;CACvH,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;CACtE,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;CAC3F,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;CAChE,iBAAiB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnG,CAAC,CAAC,CAAC,SAAS,2CAA2C;AAMvD,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVoD,EAAE,OAAO;EAC7D,MAAM,wCAAwC,SAAS,CAAC,CAAC,SAAS;EAClE,UAAU,EAAE,MAAM,gCAAgC,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClI,CAAC,CAAC,CAAC,SAAS,+DAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/list-payments.ts
|
|
4
|
+
const FinmeiListPaymentsInput = zod.z.object({
|
|
5
|
+
limit: zod.z.number().int().default(20).describe("Number of payments to retrieve (default 20, max 100)").optional(),
|
|
6
|
+
offset: zod.z.number().int().default(0).describe("Number of payments to skip for pagination").optional(),
|
|
7
|
+
status: zod.z.enum([
|
|
8
|
+
"pending",
|
|
9
|
+
"completed",
|
|
10
|
+
"failed"
|
|
11
|
+
]).describe("Filter payments by status").optional(),
|
|
12
|
+
end_date: zod.z.string().describe("Filter payments created on or before this date (ISO 8601 format)").optional(),
|
|
13
|
+
start_date: zod.z.string().describe("Filter payments created on or after this date (ISO 8601 format)").optional()
|
|
14
|
+
}).describe("Request model for listing payments with optional filters and pagination.");
|
|
15
|
+
const FinmeiListPayments_PaymentItemSchema = zod.z.object({
|
|
16
|
+
id: zod.z.string().describe("Unique identifier of the payment"),
|
|
17
|
+
date: zod.z.string().describe("Date of the payment in ISO 8601 format"),
|
|
18
|
+
mode: zod.z.string().describe("Mode of the payment, e.g., bank_transfer, cash"),
|
|
19
|
+
notes: zod.z.string().describe("Notes attached to the payment").nullable().optional(),
|
|
20
|
+
amount: zod.z.number().describe("Amount of the payment"),
|
|
21
|
+
reference: zod.z.string().describe("Payment reference provided").nullable().optional(),
|
|
22
|
+
created_at: zod.z.string().describe("Timestamp when the payment was created"),
|
|
23
|
+
invoice_id: zod.z.string().describe("ID of the invoice associated with the payment").nullable().optional(),
|
|
24
|
+
updated_at: zod.z.string().describe("Timestamp when the payment was last updated")
|
|
25
|
+
}).describe("Single payment object as returned in the list");
|
|
26
|
+
const FinmeiListPaymentsOutput = zod.z.object({
|
|
27
|
+
limit: zod.z.number().int().describe("Number of payments requested per page").nullable().optional(),
|
|
28
|
+
total: zod.z.number().int().describe("Total number of payments available").nullable().optional(),
|
|
29
|
+
offset: zod.z.number().int().describe("Pagination offset used in the request").nullable().optional(),
|
|
30
|
+
payments: zod.z.array(FinmeiListPayments_PaymentItemSchema).describe("List of payment objects").nullable().optional()
|
|
31
|
+
}).describe("Response model for listing payments, including pagination metadata.");
|
|
32
|
+
const finmeiListPayments = require_action.action("FINMEI_LIST_PAYMENTS", {
|
|
33
|
+
slug: "finmei-list-payments",
|
|
34
|
+
name: "List Payments",
|
|
35
|
+
description: "Tool to retrieve a list of payments. Use when you need to view past payment records with optional filters and pagination.",
|
|
36
|
+
input: FinmeiListPaymentsInput,
|
|
37
|
+
output: FinmeiListPaymentsOutput
|
|
38
|
+
});
|
|
39
|
+
//#endregion
|
|
40
|
+
exports.finmeiListPayments = finmeiListPayments;
|
|
41
|
+
|
|
42
|
+
//# sourceMappingURL=list-payments.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-payments.cjs","names":["z","action"],"sources":["../../src/actions/list-payments.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiListPaymentsInput: z.ZodTypeAny = z.object({\n limit: z.number().int().default(20).describe(\"Number of payments to retrieve (default 20, max 100)\").optional(),\n offset: z.number().int().default(0).describe(\"Number of payments to skip for pagination\").optional(),\n status: z.enum([\"pending\", \"completed\", \"failed\"]).describe(\"Filter payments by status\").optional(),\n end_date: z.string().describe(\"Filter payments created on or before this date (ISO 8601 format)\").optional(),\n start_date: z.string().describe(\"Filter payments created on or after this date (ISO 8601 format)\").optional(),\n}).describe(\"Request model for listing payments with optional filters and pagination.\");\nconst FinmeiListPayments_PaymentItemSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the payment\"),\n date: z.string().describe(\"Date of the payment in ISO 8601 format\"),\n mode: z.string().describe(\"Mode of the payment, e.g., bank_transfer, cash\"),\n notes: z.string().describe(\"Notes attached to the payment\").nullable().optional(),\n amount: z.number().describe(\"Amount of the payment\"),\n reference: z.string().describe(\"Payment reference provided\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the payment was created\"),\n invoice_id: z.string().describe(\"ID of the invoice associated with the payment\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when the payment was last updated\"),\n}).describe(\"Single payment object as returned in the list\");\nexport const FinmeiListPaymentsOutput: z.ZodTypeAny = z.object({\n limit: z.number().int().describe(\"Number of payments requested per page\").nullable().optional(),\n total: z.number().int().describe(\"Total number of payments available\").nullable().optional(),\n offset: z.number().int().describe(\"Pagination offset used in the request\").nullable().optional(),\n payments: z.array(FinmeiListPayments_PaymentItemSchema).describe(\"List of payment objects\").nullable().optional(),\n}).describe(\"Response model for listing payments, including pagination metadata.\");\n\nexport const finmeiListPayments = action(\"FINMEI_LIST_PAYMENTS\", {\n slug: \"finmei-list-payments\",\n name: \"List Payments\",\n description: \"Tool to retrieve a list of payments. Use when you need to view past payment records with optional filters and pagination.\",\n input: FinmeiListPaymentsInput,\n output: FinmeiListPaymentsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAAwCA,IAAAA,EAAE,OAAO;CAC5D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAC9G,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACnG,QAAQA,IAAAA,EAAE,KAAK;EAAC;EAAW;EAAa;CAAQ,CAAC,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAClG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CAC3G,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;AAC9G,CAAC,CAAC,CAAC,SAAS,0EAA0E;AACtF,MAAM,uCAAqDA,IAAAA,EAAE,OAAO;CAClE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;CAC1D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;CAClE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;CAC1E,OAAOA,IAAAA,EAAE,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inmeiListPaymentsInput: z.ZodTypeAny;
|
|
5
|
+
declare const FinmeiListPaymentsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const finmeiListPayments: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { finmeiListPayments };
|
|
9
|
+
//# sourceMappingURL=list-payments.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-payments.d.cts","names":[],"sources":["../../src/actions/list-payments.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAM+C;AAAA,cAY1E,wBAAA,EAA0B,CAAA,CAAE,UAKyC;AAAA,cAErE,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/list-payments.d.ts
|
|
4
|
+
declare const FinmeiListPaymentsInput: z.ZodTypeAny;
|
|
5
|
+
declare const FinmeiListPaymentsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const finmeiListPayments: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { finmeiListPayments };
|
|
9
|
+
//# sourceMappingURL=list-payments.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-payments.d.mts","names":[],"sources":["../../src/actions/list-payments.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAM+C;AAAA,cAY1E,wBAAA,EAA0B,CAAA,CAAE,UAKyC;AAAA,cAErE,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/list-payments.ts
|
|
4
|
+
const FinmeiListPaymentsInput = z.object({
|
|
5
|
+
limit: z.number().int().default(20).describe("Number of payments to retrieve (default 20, max 100)").optional(),
|
|
6
|
+
offset: z.number().int().default(0).describe("Number of payments to skip for pagination").optional(),
|
|
7
|
+
status: z.enum([
|
|
8
|
+
"pending",
|
|
9
|
+
"completed",
|
|
10
|
+
"failed"
|
|
11
|
+
]).describe("Filter payments by status").optional(),
|
|
12
|
+
end_date: z.string().describe("Filter payments created on or before this date (ISO 8601 format)").optional(),
|
|
13
|
+
start_date: z.string().describe("Filter payments created on or after this date (ISO 8601 format)").optional()
|
|
14
|
+
}).describe("Request model for listing payments with optional filters and pagination.");
|
|
15
|
+
const FinmeiListPayments_PaymentItemSchema = z.object({
|
|
16
|
+
id: z.string().describe("Unique identifier of the payment"),
|
|
17
|
+
date: z.string().describe("Date of the payment in ISO 8601 format"),
|
|
18
|
+
mode: z.string().describe("Mode of the payment, e.g., bank_transfer, cash"),
|
|
19
|
+
notes: z.string().describe("Notes attached to the payment").nullable().optional(),
|
|
20
|
+
amount: z.number().describe("Amount of the payment"),
|
|
21
|
+
reference: z.string().describe("Payment reference provided").nullable().optional(),
|
|
22
|
+
created_at: z.string().describe("Timestamp when the payment was created"),
|
|
23
|
+
invoice_id: z.string().describe("ID of the invoice associated with the payment").nullable().optional(),
|
|
24
|
+
updated_at: z.string().describe("Timestamp when the payment was last updated")
|
|
25
|
+
}).describe("Single payment object as returned in the list");
|
|
26
|
+
const finmeiListPayments = action("FINMEI_LIST_PAYMENTS", {
|
|
27
|
+
slug: "finmei-list-payments",
|
|
28
|
+
name: "List Payments",
|
|
29
|
+
description: "Tool to retrieve a list of payments. Use when you need to view past payment records with optional filters and pagination.",
|
|
30
|
+
input: FinmeiListPaymentsInput,
|
|
31
|
+
output: z.object({
|
|
32
|
+
limit: z.number().int().describe("Number of payments requested per page").nullable().optional(),
|
|
33
|
+
total: z.number().int().describe("Total number of payments available").nullable().optional(),
|
|
34
|
+
offset: z.number().int().describe("Pagination offset used in the request").nullable().optional(),
|
|
35
|
+
payments: z.array(FinmeiListPayments_PaymentItemSchema).describe("List of payment objects").nullable().optional()
|
|
36
|
+
}).describe("Response model for listing payments, including pagination metadata.")
|
|
37
|
+
});
|
|
38
|
+
//#endregion
|
|
39
|
+
export { finmeiListPayments };
|
|
40
|
+
|
|
41
|
+
//# sourceMappingURL=list-payments.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-payments.mjs","names":[],"sources":["../../src/actions/list-payments.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiListPaymentsInput: z.ZodTypeAny = z.object({\n limit: z.number().int().default(20).describe(\"Number of payments to retrieve (default 20, max 100)\").optional(),\n offset: z.number().int().default(0).describe(\"Number of payments to skip for pagination\").optional(),\n status: z.enum([\"pending\", \"completed\", \"failed\"]).describe(\"Filter payments by status\").optional(),\n end_date: z.string().describe(\"Filter payments created on or before this date (ISO 8601 format)\").optional(),\n start_date: z.string().describe(\"Filter payments created on or after this date (ISO 8601 format)\").optional(),\n}).describe(\"Request model for listing payments with optional filters and pagination.\");\nconst FinmeiListPayments_PaymentItemSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the payment\"),\n date: z.string().describe(\"Date of the payment in ISO 8601 format\"),\n mode: z.string().describe(\"Mode of the payment, e.g., bank_transfer, cash\"),\n notes: z.string().describe(\"Notes attached to the payment\").nullable().optional(),\n amount: z.number().describe(\"Amount of the payment\"),\n reference: z.string().describe(\"Payment reference provided\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the payment was created\"),\n invoice_id: z.string().describe(\"ID of the invoice associated with the payment\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when the payment was last updated\"),\n}).describe(\"Single payment object as returned in the list\");\nexport const FinmeiListPaymentsOutput: z.ZodTypeAny = z.object({\n limit: z.number().int().describe(\"Number of payments requested per page\").nullable().optional(),\n total: z.number().int().describe(\"Total number of payments available\").nullable().optional(),\n offset: z.number().int().describe(\"Pagination offset used in the request\").nullable().optional(),\n payments: z.array(FinmeiListPayments_PaymentItemSchema).describe(\"List of payment objects\").nullable().optional(),\n}).describe(\"Response model for listing payments, including pagination metadata.\");\n\nexport const finmeiListPayments = action(\"FINMEI_LIST_PAYMENTS\", {\n slug: \"finmei-list-payments\",\n name: \"List Payments\",\n description: \"Tool to retrieve a list of payments. Use when you need to view past payment records with optional filters and pagination.\",\n input: FinmeiListPaymentsInput,\n output: FinmeiListPaymentsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAAwC,EAAE,OAAO;CAC5D,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAC9G,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACnG,QAAQ,EAAE,KAAK;EAAC;EAAW;EAAa;CAAQ,CAAC,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAClG,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CAC3G,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;AAC9G,CAAC,CAAC,CAAC,SAAS,0EAA0E;AACtF,MAAM,uCAAqD,EAAE,OAAO;CAClE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;CAC1D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;CAClE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;CAC1E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;CACnD,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;CACxE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;AAC/E,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAQ3D,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAZoD,EAAE,OAAO;EAC7D,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9F,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3F,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/F,UAAU,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClH,CAAC,CAAC,CAAC,SAAS,qEAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/list-products.ts
|
|
4
|
+
const FinmeiListProductsInput = zod.z.object({
|
|
5
|
+
name: zod.z.string().describe("Filter products by name substring.").optional(),
|
|
6
|
+
page: zod.z.number().int().default(1).describe("Page number for pagination (1-indexed).").optional(),
|
|
7
|
+
status: zod.z.enum(["active", "inactive"]).describe("Filter products by their status.").optional(),
|
|
8
|
+
per_page: zod.z.number().int().default(20).describe("Number of products per page.").optional()
|
|
9
|
+
}).describe("Optional filters and pagination for listing products.");
|
|
10
|
+
const FinmeiListProducts_ProductSchema = zod.z.object({
|
|
11
|
+
id: zod.z.string().describe("Unique identifier of the product"),
|
|
12
|
+
name: zod.z.string().describe("Name of the product"),
|
|
13
|
+
price: zod.z.number().describe("Price of the product in the account's currency"),
|
|
14
|
+
status: zod.z.enum(["active", "inactive"]).describe("Current status of the product"),
|
|
15
|
+
created_at: zod.z.string().describe("ISO 8601 timestamp when the product was created").nullable().optional(),
|
|
16
|
+
updated_at: zod.z.string().describe("ISO 8601 timestamp when the product was last updated").nullable().optional(),
|
|
17
|
+
description: zod.z.string().describe("Description of the product").nullable().optional()
|
|
18
|
+
}).describe("Schema for a product object returned by the API");
|
|
19
|
+
const FinmeiListProducts_PaginationSchema = zod.z.object({
|
|
20
|
+
page: zod.z.number().int().describe("Current page number"),
|
|
21
|
+
per_page: zod.z.number().int().describe("Number of items per page"),
|
|
22
|
+
total_items: zod.z.number().int().describe("Total number of items across all pages"),
|
|
23
|
+
total_pages: zod.z.number().int().describe("Total number of pages available")
|
|
24
|
+
}).describe("Pagination metadata for list endpoints");
|
|
25
|
+
const FinmeiListProductsOutput = zod.z.object({
|
|
26
|
+
products: zod.z.array(FinmeiListProducts_ProductSchema).describe("List of products matching the query"),
|
|
27
|
+
pagination: FinmeiListProducts_PaginationSchema.nullable()
|
|
28
|
+
}).describe("Response schema when listing products");
|
|
29
|
+
const finmeiListProducts = require_action.action("FINMEI_LIST_PRODUCTS", {
|
|
30
|
+
slug: "finmei-list-products",
|
|
31
|
+
name: "List Products",
|
|
32
|
+
description: "Tool to retrieve a list of products with optional filters and pagination. Use when you need to browse or filter the product catalog.",
|
|
33
|
+
input: FinmeiListProductsInput,
|
|
34
|
+
output: FinmeiListProductsOutput
|
|
35
|
+
});
|
|
36
|
+
//#endregion
|
|
37
|
+
exports.finmeiListProducts = finmeiListProducts;
|
|
38
|
+
|
|
39
|
+
//# sourceMappingURL=list-products.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-products.cjs","names":["z","action"],"sources":["../../src/actions/list-products.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiListProductsInput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Filter products by name substring.\").optional(),\n page: z.number().int().default(1).describe(\"Page number for pagination (1-indexed).\").optional(),\n status: z.enum([\"active\", \"inactive\"]).describe(\"Filter products by their status.\").optional(),\n per_page: z.number().int().default(20).describe(\"Number of products per page.\").optional(),\n}).describe(\"Optional filters and pagination for listing products.\");\nconst FinmeiListProducts_ProductSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the product\"),\n name: z.string().describe(\"Name of the product\"),\n price: z.number().describe(\"Price of the product in the account's currency\"),\n status: z.enum([\"active\", \"inactive\"]).describe(\"Current status of the product\"),\n created_at: z.string().describe(\"ISO 8601 timestamp when the product was created\").nullable().optional(),\n updated_at: z.string().describe(\"ISO 8601 timestamp when the product was last updated\").nullable().optional(),\n description: z.string().describe(\"Description of the product\").nullable().optional(),\n}).describe(\"Schema for a product object returned by the API\");\nconst FinmeiListProducts_PaginationSchema: z.ZodTypeAny = z.object({\n page: z.number().int().describe(\"Current page number\"),\n per_page: z.number().int().describe(\"Number of items per page\"),\n total_items: z.number().int().describe(\"Total number of items across all pages\"),\n total_pages: z.number().int().describe(\"Total number of pages available\"),\n}).describe(\"Pagination metadata for list endpoints\");\nexport const FinmeiListProductsOutput: z.ZodTypeAny = z.object({\n products: z.array(FinmeiListProducts_ProductSchema).describe(\"List of products matching the query\"),\n pagination: FinmeiListProducts_PaginationSchema.nullable(),\n}).describe(\"Response schema when listing products\");\n\nexport const finmeiListProducts = action(\"FINMEI_LIST_PRODUCTS\", {\n slug: \"finmei-list-products\",\n name: \"List Products\",\n description: \"Tool to retrieve a list of products with optional filters and pagination. Use when you need to browse or filter the product catalog.\",\n input: FinmeiListProductsInput,\n output: FinmeiListProductsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAAwCA,IAAAA,EAAE,OAAO;CAC5D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACzE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC/F,QAAQA,IAAAA,EAAE,KAAK,CAAC,UAAU,UAAU,CAAC,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAC7F,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;AAC3F,CAAC,CAAC,CAAC,SAAS,uDAAuD;AACnE,MAAM,mCAAiDA,IAAAA,EAAE,OAAO;CAC9D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;CAC1D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;CAC/C,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;CAC3E,QAAQA,IAAAA,EAAE,KAAK,CAAC,UAAU,UAAU,CAAC,CAAC,CAAC,SAAS,+BAA+B;CAC/E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrF,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAC7D,MAAM,sCAAoDA,IAAAA,EAAE,OAAO;CACjE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qBAAqB;CACrD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B;CAC9D,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC;CAC/E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC;AAC1E,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACpD,MAAa,2BAAyCA,IAAAA,EAAE,OAAO;CAC7D,UAAUA,IAAAA,EAAE,MAAM,gCAAgC,CAAC,CAAC,SAAS,qCAAqC;CAClG,YAAY,oCAAoC,SAAS;AAC3D,CAAC,CAAC,CAAC,SAAS,uCAAuC;AAEnD,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/list-products.d.ts
|
|
4
|
+
declare const FinmeiListProductsInput: z.ZodTypeAny;
|
|
5
|
+
declare const FinmeiListProductsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const finmeiListProducts: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { finmeiListProducts };
|
|
9
|
+
//# sourceMappingURL=list-products.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-products.d.cts","names":[],"sources":["../../src/actions/list-products.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAK4B;AAAA,cAgBvD,wBAAA,EAA0B,CAAA,CAAE,UAGW;AAAA,cAEvC,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/list-products.d.ts
|
|
4
|
+
declare const FinmeiListProductsInput: z.ZodTypeAny;
|
|
5
|
+
declare const FinmeiListProductsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const finmeiListProducts: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { finmeiListProducts };
|
|
9
|
+
//# sourceMappingURL=list-products.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-products.d.mts","names":[],"sources":["../../src/actions/list-products.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAK4B;AAAA,cAgBvD,wBAAA,EAA0B,CAAA,CAAE,UAGW;AAAA,cAEvC,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/list-products.ts
|
|
4
|
+
const FinmeiListProductsInput = z.object({
|
|
5
|
+
name: z.string().describe("Filter products by name substring.").optional(),
|
|
6
|
+
page: z.number().int().default(1).describe("Page number for pagination (1-indexed).").optional(),
|
|
7
|
+
status: z.enum(["active", "inactive"]).describe("Filter products by their status.").optional(),
|
|
8
|
+
per_page: z.number().int().default(20).describe("Number of products per page.").optional()
|
|
9
|
+
}).describe("Optional filters and pagination for listing products.");
|
|
10
|
+
const FinmeiListProducts_ProductSchema = z.object({
|
|
11
|
+
id: z.string().describe("Unique identifier of the product"),
|
|
12
|
+
name: z.string().describe("Name of the product"),
|
|
13
|
+
price: z.number().describe("Price of the product in the account's currency"),
|
|
14
|
+
status: z.enum(["active", "inactive"]).describe("Current status of the product"),
|
|
15
|
+
created_at: z.string().describe("ISO 8601 timestamp when the product was created").nullable().optional(),
|
|
16
|
+
updated_at: z.string().describe("ISO 8601 timestamp when the product was last updated").nullable().optional(),
|
|
17
|
+
description: z.string().describe("Description of the product").nullable().optional()
|
|
18
|
+
}).describe("Schema for a product object returned by the API");
|
|
19
|
+
const FinmeiListProducts_PaginationSchema = z.object({
|
|
20
|
+
page: z.number().int().describe("Current page number"),
|
|
21
|
+
per_page: z.number().int().describe("Number of items per page"),
|
|
22
|
+
total_items: z.number().int().describe("Total number of items across all pages"),
|
|
23
|
+
total_pages: z.number().int().describe("Total number of pages available")
|
|
24
|
+
}).describe("Pagination metadata for list endpoints");
|
|
25
|
+
const finmeiListProducts = action("FINMEI_LIST_PRODUCTS", {
|
|
26
|
+
slug: "finmei-list-products",
|
|
27
|
+
name: "List Products",
|
|
28
|
+
description: "Tool to retrieve a list of products with optional filters and pagination. Use when you need to browse or filter the product catalog.",
|
|
29
|
+
input: FinmeiListProductsInput,
|
|
30
|
+
output: z.object({
|
|
31
|
+
products: z.array(FinmeiListProducts_ProductSchema).describe("List of products matching the query"),
|
|
32
|
+
pagination: FinmeiListProducts_PaginationSchema.nullable()
|
|
33
|
+
}).describe("Response schema when listing products")
|
|
34
|
+
});
|
|
35
|
+
//#endregion
|
|
36
|
+
export { finmeiListProducts };
|
|
37
|
+
|
|
38
|
+
//# sourceMappingURL=list-products.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-products.mjs","names":[],"sources":["../../src/actions/list-products.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiListProductsInput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Filter products by name substring.\").optional(),\n page: z.number().int().default(1).describe(\"Page number for pagination (1-indexed).\").optional(),\n status: z.enum([\"active\", \"inactive\"]).describe(\"Filter products by their status.\").optional(),\n per_page: z.number().int().default(20).describe(\"Number of products per page.\").optional(),\n}).describe(\"Optional filters and pagination for listing products.\");\nconst FinmeiListProducts_ProductSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the product\"),\n name: z.string().describe(\"Name of the product\"),\n price: z.number().describe(\"Price of the product in the account's currency\"),\n status: z.enum([\"active\", \"inactive\"]).describe(\"Current status of the product\"),\n created_at: z.string().describe(\"ISO 8601 timestamp when the product was created\").nullable().optional(),\n updated_at: z.string().describe(\"ISO 8601 timestamp when the product was last updated\").nullable().optional(),\n description: z.string().describe(\"Description of the product\").nullable().optional(),\n}).describe(\"Schema for a product object returned by the API\");\nconst FinmeiListProducts_PaginationSchema: z.ZodTypeAny = z.object({\n page: z.number().int().describe(\"Current page number\"),\n per_page: z.number().int().describe(\"Number of items per page\"),\n total_items: z.number().int().describe(\"Total number of items across all pages\"),\n total_pages: z.number().int().describe(\"Total number of pages available\"),\n}).describe(\"Pagination metadata for list endpoints\");\nexport const FinmeiListProductsOutput: z.ZodTypeAny = z.object({\n products: z.array(FinmeiListProducts_ProductSchema).describe(\"List of products matching the query\"),\n pagination: FinmeiListProducts_PaginationSchema.nullable(),\n}).describe(\"Response schema when listing products\");\n\nexport const finmeiListProducts = action(\"FINMEI_LIST_PRODUCTS\", {\n slug: \"finmei-list-products\",\n name: \"List Products\",\n description: \"Tool to retrieve a list of products with optional filters and pagination. Use when you need to browse or filter the product catalog.\",\n input: FinmeiListProductsInput,\n output: FinmeiListProductsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAAwC,EAAE,OAAO;CAC5D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACzE,MAAM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CAAC,CAAC,CAAC,SAAS,wCAAwC;AAMpD,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVoD,EAAE,OAAO;EAC7D,UAAU,EAAE,MAAM,gCAAgC,CAAC,CAAC,SAAS,qCAAqC;EAClG,YAAY,oCAAoC,SAAS;CAC3D,CAAC,CAAC,CAAC,SAAS,uCAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/update-customer.ts
|
|
4
|
+
const FinmeiUpdateCustomerInput = zod.z.object({
|
|
5
|
+
name: zod.z.string().describe("Full name of the customer").optional(),
|
|
6
|
+
email: zod.z.string().describe("Email address of the customer").optional(),
|
|
7
|
+
phone: zod.z.string().describe("Phone number of the customer").optional(),
|
|
8
|
+
address: zod.z.object({
|
|
9
|
+
city: zod.z.string().describe("City of the customer's address").optional(),
|
|
10
|
+
state: zod.z.string().describe("State or province of the customer's address").optional(),
|
|
11
|
+
street: zod.z.string().describe("Street address of the customer").optional(),
|
|
12
|
+
country: zod.z.string().describe("Country code (ISO 3166-1 alpha-2)").optional(),
|
|
13
|
+
postal_code: zod.z.string().describe("Postal or ZIP code of the customer's address").optional()
|
|
14
|
+
}).describe("Mailing address details").optional(),
|
|
15
|
+
metadata: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Additional metadata for the customer as key-value pairs").optional(),
|
|
16
|
+
customer_id: zod.z.string().describe("Unique identifier of the customer to update")
|
|
17
|
+
}).describe("Request model for updating an existing customer");
|
|
18
|
+
const FinmeiUpdateCustomer_AddressSchema = zod.z.object({
|
|
19
|
+
city: zod.z.string().describe("City of the customer's address").nullable().optional(),
|
|
20
|
+
state: zod.z.string().describe("State or province of the customer's address").nullable().optional(),
|
|
21
|
+
street: zod.z.string().describe("Street address of the customer").nullable().optional(),
|
|
22
|
+
country: zod.z.string().describe("Country code (ISO 3166-1 alpha-2)").nullable().optional(),
|
|
23
|
+
postal_code: zod.z.string().describe("Postal or ZIP code of the customer's address").nullable().optional()
|
|
24
|
+
}).describe("Mailing address details");
|
|
25
|
+
const FinmeiUpdateCustomer_CustomerSchema = zod.z.object({
|
|
26
|
+
id: zod.z.string().describe("Unique identifier of the customer"),
|
|
27
|
+
name: zod.z.string().describe("Full name of the customer").nullable().optional(),
|
|
28
|
+
email: zod.z.string().describe("Email address of the customer").nullable().optional(),
|
|
29
|
+
phone: zod.z.string().describe("Phone number of the customer").nullable().optional(),
|
|
30
|
+
address: FinmeiUpdateCustomer_AddressSchema.nullable().optional(),
|
|
31
|
+
metadata: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Additional metadata associated with the customer").nullable().optional(),
|
|
32
|
+
created_at: zod.z.string().describe("Timestamp when the customer was created"),
|
|
33
|
+
updated_at: zod.z.string().describe("Timestamp when the customer was last updated")
|
|
34
|
+
});
|
|
35
|
+
const FinmeiUpdateCustomerOutput = zod.z.object({ customer: FinmeiUpdateCustomer_CustomerSchema.nullable() }).describe("Response model containing the updated customer record");
|
|
36
|
+
const finmeiUpdateCustomer = require_action.action("FINMEI_UPDATE_CUSTOMER", {
|
|
37
|
+
slug: "finmei-update-customer",
|
|
38
|
+
name: "Update Customer",
|
|
39
|
+
description: "Tool to update an existing customer's details. Use after confirming the customer ID to modify their information.",
|
|
40
|
+
input: FinmeiUpdateCustomerInput,
|
|
41
|
+
output: FinmeiUpdateCustomerOutput
|
|
42
|
+
});
|
|
43
|
+
//#endregion
|
|
44
|
+
exports.finmeiUpdateCustomer = finmeiUpdateCustomer;
|
|
45
|
+
|
|
46
|
+
//# sourceMappingURL=update-customer.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-customer.cjs","names":["z","action"],"sources":["../../src/actions/update-customer.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiUpdateCustomerInput: z.ZodTypeAny = 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.ZodTypeAny = z.object({\n city: z.string().describe(\"City of the customer's address\").nullable().optional(),\n state: z.string().describe(\"State or province of the customer's address\").nullable().optional(),\n street: z.string().describe(\"Street address of the customer\").nullable().optional(),\n country: z.string().describe(\"Country code (ISO 3166-1 alpha-2)\").nullable().optional(),\n postal_code: z.string().describe(\"Postal or ZIP code of the customer's address\").nullable().optional(),\n}).describe(\"Mailing address details\");\nconst FinmeiUpdateCustomer_CustomerSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the customer\"),\n name: z.string().describe(\"Full name of the customer\").nullable().optional(),\n email: z.string().describe(\"Email address of the customer\").nullable().optional(),\n phone: z.string().describe(\"Phone number of the customer\").nullable().optional(),\n address: FinmeiUpdateCustomer_AddressSchema.nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Additional metadata associated with the customer\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the customer was created\"),\n updated_at: z.string().describe(\"Timestamp when the customer was last updated\"),\n});\nexport const FinmeiUpdateCustomerOutput: z.ZodTypeAny = 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,4BAA0CA,IAAAA,EAAE,OAAO;CAC9D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAChE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACrE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACpE,SAASA,IAAAA,EAAE,OAAO;EAClB,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;EACrE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;EACnF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;EACvE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EAC3E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CAC5F,CAAC,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAC9C,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CACzH,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;AAChF,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAC7D,MAAM,qCAAmDA,IAAAA,EAAE,OAAO;CAChE,MAAMA,IAAAA,EAAE,OA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OAAO,EAC/D,UAAU,oCAAoC,SAAS,EACzD,CAAC,CAAC,CAAC,SAAS,uDAAuD;AAEnE,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/update-customer.d.ts
|
|
4
|
+
declare const FinmeiUpdateCustomerInput: z.ZodTypeAny;
|
|
5
|
+
declare const FinmeiUpdateCustomerOutput: z.ZodTypeAny;
|
|
6
|
+
declare const finmeiUpdateCustomer: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { finmeiUpdateCustomer };
|
|
9
|
+
//# sourceMappingURL=update-customer.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-customer.d.cts","names":[],"sources":["../../src/actions/update-customer.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAaoB;AAAA,cAkBjD,0BAAA,EAA4B,CAAA,CAAE,UAEyB;AAAA,cAEvD,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/update-customer.d.ts
|
|
4
|
+
declare const FinmeiUpdateCustomerInput: z.ZodTypeAny;
|
|
5
|
+
declare const FinmeiUpdateCustomerOutput: z.ZodTypeAny;
|
|
6
|
+
declare const finmeiUpdateCustomer: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { finmeiUpdateCustomer };
|
|
9
|
+
//# sourceMappingURL=update-customer.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-customer.d.mts","names":[],"sources":["../../src/actions/update-customer.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAaoB;AAAA,cAkBjD,0BAAA,EAA4B,CAAA,CAAE,UAEyB;AAAA,cAEvD,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/update-customer.ts
|
|
4
|
+
const FinmeiUpdateCustomerInput = z.object({
|
|
5
|
+
name: z.string().describe("Full name of the customer").optional(),
|
|
6
|
+
email: z.string().describe("Email address of the customer").optional(),
|
|
7
|
+
phone: z.string().describe("Phone number of the customer").optional(),
|
|
8
|
+
address: z.object({
|
|
9
|
+
city: z.string().describe("City of the customer's address").optional(),
|
|
10
|
+
state: z.string().describe("State or province of the customer's address").optional(),
|
|
11
|
+
street: z.string().describe("Street address of the customer").optional(),
|
|
12
|
+
country: z.string().describe("Country code (ISO 3166-1 alpha-2)").optional(),
|
|
13
|
+
postal_code: z.string().describe("Postal or ZIP code of the customer's address").optional()
|
|
14
|
+
}).describe("Mailing address details").optional(),
|
|
15
|
+
metadata: z.record(z.string(), z.unknown()).describe("Additional metadata for the customer as key-value pairs").optional(),
|
|
16
|
+
customer_id: z.string().describe("Unique identifier of the customer to update")
|
|
17
|
+
}).describe("Request model for updating an existing customer");
|
|
18
|
+
const FinmeiUpdateCustomer_AddressSchema = z.object({
|
|
19
|
+
city: z.string().describe("City of the customer's address").nullable().optional(),
|
|
20
|
+
state: z.string().describe("State or province of the customer's address").nullable().optional(),
|
|
21
|
+
street: z.string().describe("Street address of the customer").nullable().optional(),
|
|
22
|
+
country: z.string().describe("Country code (ISO 3166-1 alpha-2)").nullable().optional(),
|
|
23
|
+
postal_code: z.string().describe("Postal or ZIP code of the customer's address").nullable().optional()
|
|
24
|
+
}).describe("Mailing address details");
|
|
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").nullable().optional(),
|
|
28
|
+
email: z.string().describe("Email address of the customer").nullable().optional(),
|
|
29
|
+
phone: z.string().describe("Phone number of the customer").nullable().optional(),
|
|
30
|
+
address: FinmeiUpdateCustomer_AddressSchema.nullable().optional(),
|
|
31
|
+
metadata: z.record(z.string(), z.unknown()).describe("Additional metadata associated with the customer").nullable().optional(),
|
|
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")
|
|
34
|
+
});
|
|
35
|
+
const finmeiUpdateCustomer = action("FINMEI_UPDATE_CUSTOMER", {
|
|
36
|
+
slug: "finmei-update-customer",
|
|
37
|
+
name: "Update Customer",
|
|
38
|
+
description: "Tool to update an existing customer's details. Use after confirming the customer ID to modify their information.",
|
|
39
|
+
input: FinmeiUpdateCustomerInput,
|
|
40
|
+
output: z.object({ customer: FinmeiUpdateCustomer_CustomerSchema.nullable() }).describe("Response model containing the updated customer record")
|
|
41
|
+
});
|
|
42
|
+
//#endregion
|
|
43
|
+
export { finmeiUpdateCustomer };
|
|
44
|
+
|
|
45
|
+
//# sourceMappingURL=update-customer.mjs.map
|
|
@@ -0,0 +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: z.ZodTypeAny = 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.ZodTypeAny = z.object({\n city: z.string().describe(\"City of the customer's address\").nullable().optional(),\n state: z.string().describe(\"State or province of the customer's address\").nullable().optional(),\n street: z.string().describe(\"Street address of the customer\").nullable().optional(),\n country: z.string().describe(\"Country code (ISO 3166-1 alpha-2)\").nullable().optional(),\n postal_code: z.string().describe(\"Postal or ZIP code of the customer's address\").nullable().optional(),\n}).describe(\"Mailing address details\");\nconst FinmeiUpdateCustomer_CustomerSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the customer\"),\n name: z.string().describe(\"Full name of the customer\").nullable().optional(),\n email: z.string().describe(\"Email address of the customer\").nullable().optional(),\n phone: z.string().describe(\"Phone number of the customer\").nullable().optional(),\n address: FinmeiUpdateCustomer_AddressSchema.nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Additional metadata associated with the customer\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the customer was created\"),\n updated_at: z.string().describe(\"Timestamp when the customer was last updated\"),\n});\nexport const FinmeiUpdateCustomerOutput: z.ZodTypeAny = 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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AC,SAAS;CAClF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvG,CAAC,CAAC,CAAC,SAAS,yBAAyB;AACrC,MAAM,sCAAoD,EAAE,OAAO;CACjE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;CAC3D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,SAAS,mCAAmC,SAAS,CAAC,CAAC,SAAS;CAChE,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7H,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;CACzE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;AAChF,CAAC;AAKD,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATsD,EAAE,OAAO,EAC/D,UAAU,oCAAoC,SAAS,EACzD,CAAC,CAAC,CAAC,SAAS,uDAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/update-expense-file.ts
|
|
4
|
+
const FinmeiUpdateExpenseFileInput = zod.z.object({
|
|
5
|
+
id: zod.z.string().describe("Unique identifier of the expense to update the file for. Must be a valid existing expense ID."),
|
|
6
|
+
file: zod.z.object({
|
|
7
|
+
name: zod.z.string().describe("The filename that will be used when uploading the file to the destination service"),
|
|
8
|
+
s3key: zod.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."),
|
|
9
|
+
mimetype: zod.z.string().describe("The MIME type of the file")
|
|
10
|
+
}).describe("File to upload as the expense attachment (usually PDF or image file of the bill).")
|
|
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
|
+
const FinmeiUpdateExpenseFileOutput = zod.z.object({
|
|
13
|
+
id: zod.z.string().describe("Unique identifier of the expense").nullable().optional(),
|
|
14
|
+
message: zod.z.string().describe("Success message from the API").nullable().optional(),
|
|
15
|
+
file_url: zod.z.string().describe("URL of the uploaded file attachment").nullable().optional(),
|
|
16
|
+
file_name: zod.z.string().describe("Name of the uploaded file").nullable().optional(),
|
|
17
|
+
updated_at: zod.z.union([zod.z.string(), zod.z.number().int()]).nullable().optional()
|
|
18
|
+
}).describe("Response model containing the updated expense details after successful file upload.");
|
|
19
|
+
const finmeiUpdateExpenseFile = require_action.action("FINMEI_UPDATE_EXPENSE_FILE", {
|
|
20
|
+
slug: "finmei-update-expense-file",
|
|
21
|
+
name: "Update Expense File",
|
|
22
|
+
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.",
|
|
23
|
+
input: FinmeiUpdateExpenseFileInput,
|
|
24
|
+
output: FinmeiUpdateExpenseFileOutput
|
|
25
|
+
});
|
|
26
|
+
//#endregion
|
|
27
|
+
exports.finmeiUpdateExpenseFile = finmeiUpdateExpenseFile;
|
|
28
|
+
|
|
29
|
+
//# sourceMappingURL=update-expense-file.cjs.map
|
|
@@ -0,0 +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: z.ZodTypeAny = 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.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the expense\").nullable().optional(),\n message: z.string().describe(\"Success message from the API\").nullable().optional(),\n file_url: z.string().describe(\"URL of the uploaded file attachment\").nullable().optional(),\n file_name: z.string().describe(\"Name of the uploaded file\").nullable().optional(),\n updated_at: z.union([z.string(), z.number().int()]).nullable().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,+BAA6CA,IAAAA,EAAE,OAAO;CACjE,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,gCAA8CA,IAAAA,EAAE,OAAO;CAClE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,YAAYA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1E,CAAC,CAAC,CAAC,SAAS,qFAAqF;AAEjG,MAAa,0BAA0BC,eAAAA,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/update-expense-file.d.ts
|
|
4
|
+
declare const FinmeiUpdateExpenseFileInput: z.ZodTypeAny;
|
|
5
|
+
declare const FinmeiUpdateExpenseFileOutput: z.ZodTypeAny;
|
|
6
|
+
declare const finmeiUpdateExpenseFile: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { finmeiUpdateExpenseFile };
|
|
9
|
+
//# sourceMappingURL=update-expense-file.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-expense-file.d.cts","names":[],"sources":["../../src/actions/update-expense-file.ts"],"mappings":";;;cAIa,4BAAA,EAA8B,CAAA,CAAE,UAOmJ;AAAA,cACnL,6BAAA,EAA+B,CAAA,CAAE,UAMoD;AAAA,cAErF,uBAAA,gCAAuB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|