@keystrokehq/finmei 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/create-expense.d.cts +1 -11
- package/dist/actions/create-expense.d.mts +1 -11
- package/dist/actions/create-invoice.cjs +63 -63
- package/dist/actions/create-invoice.cjs.map +1 -1
- package/dist/actions/create-invoice.d.cts +64 -133
- package/dist/actions/create-invoice.d.cts.map +1 -1
- package/dist/actions/create-invoice.d.mts +64 -133
- 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.d.cts +1 -1
- package/dist/actions/delete-customer.d.cts.map +1 -1
- package/dist/actions/delete-customer.d.mts +1 -1
- package/dist/actions/delete-customer.d.mts.map +1 -1
- package/dist/actions/delete-invoice.cjs +1 -1
- package/dist/actions/delete-invoice.cjs.map +1 -1
- package/dist/actions/delete-invoice.d.cts +2 -5
- package/dist/actions/delete-invoice.d.mts +2 -5
- package/dist/actions/delete-invoice.mjs +1 -1
- package/dist/actions/delete-invoice.mjs.map +1 -1
- package/dist/actions/delete-payment.d.cts +1 -3
- package/dist/actions/delete-payment.d.mts +1 -3
- package/dist/actions/delete-product.cjs +1 -1
- package/dist/actions/delete-product.cjs.map +1 -1
- package/dist/actions/delete-product.d.cts +2 -5
- package/dist/actions/delete-product.d.mts +2 -5
- package/dist/actions/delete-product.mjs +1 -1
- package/dist/actions/delete-product.mjs.map +1 -1
- package/dist/actions/download-expense-file.d.cts +1 -7
- package/dist/actions/download-expense-file.d.mts +1 -7
- package/dist/actions/download-invoice-pdf.d.cts +1 -7
- package/dist/actions/download-invoice-pdf.d.mts +1 -7
- package/dist/actions/get-expense.d.cts +1 -11
- package/dist/actions/get-expense.d.mts +1 -11
- package/dist/actions/get-invoice.cjs +25 -25
- package/dist/actions/get-invoice.cjs.map +1 -1
- package/dist/actions/get-invoice.d.cts +26 -77
- package/dist/actions/get-invoice.d.cts.map +1 -1
- package/dist/actions/get-invoice.d.mts +26 -77
- package/dist/actions/get-invoice.d.mts.map +1 -1
- package/dist/actions/get-invoice.mjs +25 -25
- package/dist/actions/get-invoice.mjs.map +1 -1
- package/dist/actions/get-payment.cjs +2 -2
- package/dist/actions/get-payment.cjs.map +1 -1
- package/dist/actions/get-payment.d.cts +3 -13
- package/dist/actions/get-payment.d.mts +3 -13
- package/dist/actions/get-payment.mjs +2 -2
- package/dist/actions/get-payment.mjs.map +1 -1
- package/dist/actions/get-product.cjs +1 -1
- package/dist/actions/get-product.cjs.map +1 -1
- package/dist/actions/get-product.d.cts +2 -10
- package/dist/actions/get-product.d.mts +2 -10
- package/dist/actions/get-product.mjs +1 -1
- 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 +8 -18
- package/dist/actions/get-profile.d.cts.map +1 -1
- package/dist/actions/get-profile.d.mts +8 -18
- 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 +1 -1
- package/dist/actions/list-currencies.cjs.map +1 -1
- package/dist/actions/list-currencies.d.cts +2 -8
- package/dist/actions/list-currencies.d.cts.map +1 -1
- package/dist/actions/list-currencies.d.mts +2 -8
- package/dist/actions/list-currencies.d.mts.map +1 -1
- package/dist/actions/list-currencies.mjs +1 -1
- package/dist/actions/list-currencies.mjs.map +1 -1
- package/dist/actions/list-customers.cjs +8 -8
- package/dist/actions/list-customers.cjs.map +1 -1
- package/dist/actions/list-customers.d.cts +9 -25
- package/dist/actions/list-customers.d.mts +9 -25
- package/dist/actions/list-customers.mjs +8 -8
- package/dist/actions/list-customers.mjs.map +1 -1
- package/dist/actions/list-expenses.cjs +11 -11
- package/dist/actions/list-expenses.cjs.map +1 -1
- package/dist/actions/list-expenses.d.cts +12 -31
- package/dist/actions/list-expenses.d.mts +12 -31
- package/dist/actions/list-expenses.mjs +11 -11
- package/dist/actions/list-expenses.mjs.map +1 -1
- package/dist/actions/list-invoices.cjs +29 -29
- package/dist/actions/list-invoices.cjs.map +1 -1
- package/dist/actions/list-invoices.d.cts +30 -92
- package/dist/actions/list-invoices.d.cts.map +1 -1
- package/dist/actions/list-invoices.d.mts +30 -92
- package/dist/actions/list-invoices.d.mts.map +1 -1
- package/dist/actions/list-invoices.mjs +29 -29
- package/dist/actions/list-invoices.mjs.map +1 -1
- package/dist/actions/list-payments.cjs +7 -7
- package/dist/actions/list-payments.cjs.map +1 -1
- package/dist/actions/list-payments.d.cts +8 -23
- package/dist/actions/list-payments.d.mts +8 -23
- package/dist/actions/list-payments.mjs +7 -7
- package/dist/actions/list-payments.mjs.map +1 -1
- package/dist/actions/list-products.cjs +3 -3
- package/dist/actions/list-products.cjs.map +1 -1
- package/dist/actions/list-products.d.cts +4 -20
- package/dist/actions/list-products.d.mts +4 -20
- package/dist/actions/list-products.mjs +3 -3
- package/dist/actions/list-products.mjs.map +1 -1
- package/dist/actions/update-customer.cjs +10 -10
- package/dist/actions/update-customer.cjs.map +1 -1
- package/dist/actions/update-customer.d.cts +11 -28
- package/dist/actions/update-customer.d.cts.map +1 -1
- package/dist/actions/update-customer.d.mts +11 -28
- package/dist/actions/update-customer.d.mts.map +1 -1
- package/dist/actions/update-customer.mjs +10 -10
- 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 +6 -12
- package/dist/actions/update-expense-file.d.mts +6 -12
- 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 +2 -2
- package/dist/actions/update-expense.cjs.map +1 -1
- package/dist/actions/update-expense.d.cts +3 -11
- package/dist/actions/update-expense.d.mts +3 -11
- package/dist/actions/update-expense.mjs +2 -2
- 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 +53 -109
- package/dist/actions/update-invoice.d.cts.map +1 -1
- package/dist/actions/update-invoice.d.mts +53 -109
- 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 +1 -1
- package/dist/actions/update-product.cjs.map +1 -1
- package/dist/actions/update-product.d.cts +2 -10
- package/dist/actions/update-product.d.mts +2 -10
- package/dist/actions/update-product.mjs +1 -1
- package/dist/actions/update-product.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -6,8 +6,8 @@ const FinmeiListInvoicesInput = z.object({
|
|
|
6
6
|
per_page: z.number().int().default(20).describe("Number of invoices per page (1-100)").optional()
|
|
7
7
|
}).describe("Optional pagination parameters for listing invoices.");
|
|
8
8
|
const FinmeiListInvoices_PaginationMetaSchema = z.object({
|
|
9
|
-
to: z.
|
|
10
|
-
from: z.
|
|
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
11
|
path: z.string().describe("API endpoint path").nullable(),
|
|
12
12
|
total: z.number().int().describe("Total number of invoices across all pages").nullable(),
|
|
13
13
|
per_page: z.number().int().describe("Number of items per page").nullable(),
|
|
@@ -15,16 +15,16 @@ const FinmeiListInvoices_PaginationMetaSchema = z.object({
|
|
|
15
15
|
current_page: z.number().int().describe("Current page number").nullable()
|
|
16
16
|
}).describe("Pagination metadata from the API");
|
|
17
17
|
const FinmeiListInvoices_BuyerSchema = z.object({
|
|
18
|
-
type: z.
|
|
19
|
-
email: z.
|
|
20
|
-
phone: z.
|
|
21
|
-
address: z.
|
|
22
|
-
vat_code: z.
|
|
23
|
-
last_name: z.
|
|
24
|
-
first_name: z.
|
|
25
|
-
company_code: z.
|
|
26
|
-
company_name: z.
|
|
27
|
-
individual_tax_id: z.
|
|
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
28
|
}).describe("Buyer/customer information on the invoice");
|
|
29
29
|
const FinmeiListInvoices_InvoiceItemSchema = z.object({
|
|
30
30
|
id: z.string().describe("Unique item identifier").nullable(),
|
|
@@ -32,26 +32,26 @@ const FinmeiListInvoices_InvoiceItemSchema = z.object({
|
|
|
32
32
|
price: z.number().describe("Unit price").nullable(),
|
|
33
33
|
units: z.string().describe("Unit of measurement (hours, pcs, etc.)").nullable(),
|
|
34
34
|
quantity: z.number().describe("Quantity").nullable(),
|
|
35
|
-
vat_percentage: z.
|
|
35
|
+
vat_percentage: z.number().describe("VAT/tax percentage applied").nullable().optional()
|
|
36
36
|
}).describe("Line item on the invoice");
|
|
37
37
|
const FinmeiListInvoices_SellerSchema = z.object({
|
|
38
|
-
email: z.
|
|
39
|
-
phone: z.
|
|
40
|
-
address: z.
|
|
41
|
-
vat_code: z.
|
|
42
|
-
last_name: z.
|
|
43
|
-
first_name: z.
|
|
44
|
-
company_code: z.
|
|
45
|
-
company_name: z.
|
|
46
|
-
business_type: z.
|
|
47
|
-
individual_tax_id: z.
|
|
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
48
|
}).describe("Seller/business information on the invoice");
|
|
49
49
|
const FinmeiListInvoices_InvoiceSchema = z.object({
|
|
50
50
|
id: z.string().describe("Unique invoice identifier").nullable(),
|
|
51
51
|
vat: z.number().describe("Total VAT/tax amount").nullable(),
|
|
52
52
|
buyer: FinmeiListInvoices_BuyerSchema.nullable(),
|
|
53
|
-
items: z.
|
|
54
|
-
notes: z.
|
|
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
55
|
seller: FinmeiListInvoices_SellerSchema.nullable(),
|
|
56
56
|
series: z.string().describe("Invoice series/prefix").nullable(),
|
|
57
57
|
currency: z.string().describe("ISO 4217 currency code (USD, EUR, GBP, etc.)").nullable(),
|
|
@@ -64,10 +64,10 @@ const FinmeiListInvoices_InvoiceSchema = z.object({
|
|
|
64
64
|
invoice_date: z.string().describe("Invoice date in YYYY-MM-DD format").nullable(),
|
|
65
65
|
invoice_type: z.string().describe("Type of invoice (regular_invoice, vat_invoice, preliminary_invoice, credit_invoice)").nullable(),
|
|
66
66
|
invoice_number: z.string().describe("Invoice number within the series").nullable(),
|
|
67
|
-
pay_until_date: z.
|
|
67
|
+
pay_until_date: z.string().describe("Payment due date in YYYY-MM-DD format").nullable().optional(),
|
|
68
68
|
payment_status: z.string().describe("Payment status (not_paid, paid, partially_paid, etc.)").nullable(),
|
|
69
69
|
total_incl_vat: z.number().describe("Total amount including VAT").nullable(),
|
|
70
|
-
payment_options: z.
|
|
70
|
+
payment_options: z.array(z.object({})).describe("Available payment options").nullable().optional()
|
|
71
71
|
}).describe("Single invoice object returned by the API");
|
|
72
72
|
const finmeiListInvoices = action("FINMEI_LIST_INVOICES", {
|
|
73
73
|
slug: "finmei-list-invoices",
|
|
@@ -75,8 +75,8 @@ const finmeiListInvoices = action("FINMEI_LIST_INVOICES", {
|
|
|
75
75
|
description: "Tool to list invoices. Use when you need a paginated list of invoices with basic details.",
|
|
76
76
|
input: FinmeiListInvoicesInput,
|
|
77
77
|
output: z.object({
|
|
78
|
-
meta:
|
|
79
|
-
invoices: z.
|
|
78
|
+
meta: FinmeiListInvoices_PaginationMetaSchema.nullable().optional(),
|
|
79
|
+
invoices: z.array(FinmeiListInvoices_InvoiceSchema).describe("List of invoice objects returned by the API").nullable().optional()
|
|
80
80
|
}).describe("Response model for listing invoices with pagination metadata.")
|
|
81
81
|
});
|
|
82
82
|
//#endregion
|
|
@@ -1 +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.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.object({\n to: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"Ending item number on current page\").optional()),\n from: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"Starting item number on current page (1-indexed)\").optional()),\n path: z.string().describe(\"API endpoint path\").nullable(),\n total: z.number().int().describe(\"Total number of invoices across all pages\").nullable(),\n per_page: z.number().int().describe(\"Number of items per page\").nullable(),\n last_page: z.number().int().describe(\"Last page number\").nullable(),\n current_page: z.number().int().describe(\"Current page number\").nullable(),\n}).describe(\"Pagination metadata from the API\");\nconst FinmeiListInvoices_BuyerSchema = z.object({\n type: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Type of buyer (company or individual)\").optional()),\n email: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Buyer email\").optional()),\n phone: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Buyer phone number\").optional()),\n address: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Buyer address\").optional()),\n vat_code: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"VAT registration number\").optional()),\n last_name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Last name (for individual buyers)\").optional()),\n first_name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"First name (for individual buyers)\").optional()),\n company_code: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Company registration code\").optional()),\n company_name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Company name (for company buyers)\").optional()),\n individual_tax_id: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Individual tax ID\").optional()),\n}).describe(\"Buyer/customer information on the invoice\");\nconst FinmeiListInvoices_InvoiceItemSchema = z.object({\n id: z.string().describe(\"Unique item identifier\").nullable(),\n name: z.string().describe(\"Item/product/service name\").nullable(),\n price: z.number().describe(\"Unit price\").nullable(),\n units: z.string().describe(\"Unit of measurement (hours, pcs, etc.)\").nullable(),\n quantity: z.number().describe(\"Quantity\").nullable(),\n vat_percentage: z.preprocess((value) => (value === null ? undefined : value), z.number().describe(\"VAT/tax percentage applied\").optional()),\n}).describe(\"Line item on the invoice\");\nconst FinmeiListInvoices_SellerSchema = z.object({\n email: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Business email\").optional()),\n phone: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Business phone number\").optional()),\n address: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Business address\").optional()),\n vat_code: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"VAT registration number\").optional()),\n last_name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Last name (for individual sellers)\").optional()),\n first_name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"First name (for individual sellers)\").optional()),\n company_code: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Company registration code\").optional()),\n company_name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Company name (for company sellers)\").optional()),\n business_type: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Type of business (company or individual)\").optional()),\n individual_tax_id: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Individual tax ID\").optional()),\n}).describe(\"Seller/business information on the invoice\");\nconst FinmeiListInvoices_InvoiceSchema = z.object({\n id: z.string().describe(\"Unique invoice identifier\").nullable(),\n vat: z.number().describe(\"Total VAT/tax amount\").nullable(),\n buyer: FinmeiListInvoices_BuyerSchema.nullable(),\n items: z.preprocess((value) => (value === null ? undefined : value), z.array(FinmeiListInvoices_InvoiceItemSchema).describe(\"List of line items on the invoice\").optional()),\n notes: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Additional notes on the invoice\").optional()),\n seller: FinmeiListInvoices_SellerSchema.nullable(),\n series: z.string().describe(\"Invoice series/prefix\").nullable(),\n currency: z.string().describe(\"ISO 4217 currency code (USD, EUR, GBP, etc.)\").nullable(),\n language: z.string().describe(\"Invoice language code\").nullable(),\n subtotal: z.number().describe(\"Subtotal amount before VAT\").nullable(),\n created_at: z.number().int().describe(\"Unix timestamp when invoice was created\").nullable(),\n share_link: z.string().describe(\"Public URL to view/share the invoice\").nullable(),\n updated_at: z.number().int().describe(\"Unix timestamp when invoice was last updated\").nullable(),\n business_id: z.string().describe(\"Business account identifier\").nullable(),\n invoice_date: z.string().describe(\"Invoice date in YYYY-MM-DD format\").nullable(),\n invoice_type: z.string().describe(\"Type of invoice (regular_invoice, vat_invoice, preliminary_invoice, credit_invoice)\").nullable(),\n invoice_number: z.string().describe(\"Invoice number within the series\").nullable(),\n pay_until_date: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Payment due date in YYYY-MM-DD format\").optional()),\n payment_status: z.string().describe(\"Payment status (not_paid, paid, partially_paid, etc.)\").nullable(),\n total_incl_vat: z.number().describe(\"Total amount including VAT\").nullable(),\n payment_options: z.preprocess((value) => (value === null ? undefined : value), z.array(z.object({})).describe(\"Available payment options\").optional()),\n}).describe(\"Single invoice object returned by the API\");\nexport const FinmeiListInvoicesOutput = z.object({\n meta: z.preprocess((value) => (value === null ? undefined : value), FinmeiListInvoices_PaginationMetaSchema.optional()),\n invoices: z.preprocess((value) => (value === null ? undefined : value), z.array(FinmeiListInvoices_InvoiceSchema).describe(\"List of invoice objects returned by the API\").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,0BAA0B,EAAE,OAAO;CAC9C,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC9F,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;AAClG,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAM,0CAA0C,EAAE,OAAO;CACvD,IAAI,EAAE,YAAY,U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AqF,CAAC,CAAC,SAAS;CAClI,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CACjF,gBAAgB,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC;CACrJ,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CACtG,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CAC3E,iBAAiB,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC;AACvJ,CAAC,CAAC,CAAC,SAAS,2CAA2C;AAMvD,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVsC,EAAE,OAAO;EAC/C,MAAM,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,wCAAwC,SAAS,CAAC;EACtH,UAAU,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,MAAM,gCAAgC,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC;CACtL,CAAC,CAAC,CAAC,SAAS,+DAOF;AACV,CAAC"}
|
|
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.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.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\").nullable(),\n total: z.number().int().describe(\"Total number of invoices across all pages\").nullable(),\n per_page: z.number().int().describe(\"Number of items per page\").nullable(),\n last_page: z.number().int().describe(\"Last page number\").nullable(),\n current_page: z.number().int().describe(\"Current page number\").nullable(),\n}).describe(\"Pagination metadata from the API\");\nconst FinmeiListInvoices_BuyerSchema = 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.object({\n id: z.string().describe(\"Unique item identifier\").nullable(),\n name: z.string().describe(\"Item/product/service name\").nullable(),\n price: z.number().describe(\"Unit price\").nullable(),\n units: z.string().describe(\"Unit of measurement (hours, pcs, etc.)\").nullable(),\n quantity: z.number().describe(\"Quantity\").nullable(),\n vat_percentage: z.number().describe(\"VAT/tax percentage applied\").nullable().optional(),\n}).describe(\"Line item on the invoice\");\nconst FinmeiListInvoices_SellerSchema = 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.object({\n id: z.string().describe(\"Unique invoice identifier\").nullable(),\n vat: z.number().describe(\"Total VAT/tax amount\").nullable(),\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\").nullable(),\n currency: z.string().describe(\"ISO 4217 currency code (USD, EUR, GBP, etc.)\").nullable(),\n language: z.string().describe(\"Invoice language code\").nullable(),\n subtotal: z.number().describe(\"Subtotal amount before VAT\").nullable(),\n created_at: z.number().int().describe(\"Unix timestamp when invoice was created\").nullable(),\n share_link: z.string().describe(\"Public URL to view/share the invoice\").nullable(),\n updated_at: z.number().int().describe(\"Unix timestamp when invoice was last updated\").nullable(),\n business_id: z.string().describe(\"Business account identifier\").nullable(),\n invoice_date: z.string().describe(\"Invoice date in YYYY-MM-DD format\").nullable(),\n invoice_type: z.string().describe(\"Type of invoice (regular_invoice, vat_invoice, preliminary_invoice, credit_invoice)\").nullable(),\n invoice_number: z.string().describe(\"Invoice number within the series\").nullable(),\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.)\").nullable(),\n total_incl_vat: z.number().describe(\"Total amount including VAT\").nullable(),\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.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,0BAA0B,EAAE,OAAO;CAC9C,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC9F,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;AAClG,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAM,0CAA0C,EAAE,OAAO;CACvD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS;CACxD,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACvF,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CACzE,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CAClE,cAAc,EAAE,OAAO,C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ACjF,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CACtG,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CAC3E,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,QAVsC,EAAE,OAAO;EAC/C,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"}
|
|
@@ -16,18 +16,18 @@ const FinmeiListPayments_PaymentItemSchema = zod.z.object({
|
|
|
16
16
|
id: zod.z.string().describe("Unique identifier of the payment").nullable(),
|
|
17
17
|
date: zod.z.string().describe("Date of the payment in ISO 8601 format").nullable(),
|
|
18
18
|
mode: zod.z.string().describe("Mode of the payment, e.g., bank_transfer, cash").nullable(),
|
|
19
|
-
notes: zod.z.
|
|
19
|
+
notes: zod.z.string().describe("Notes attached to the payment").nullable().optional(),
|
|
20
20
|
amount: zod.z.number().describe("Amount of the payment").nullable(),
|
|
21
|
-
reference: zod.z.
|
|
21
|
+
reference: zod.z.string().describe("Payment reference provided").nullable().optional(),
|
|
22
22
|
created_at: zod.z.string().describe("Timestamp when the payment was created").nullable(),
|
|
23
|
-
invoice_id: zod.z.
|
|
23
|
+
invoice_id: zod.z.string().describe("ID of the invoice associated with the payment").nullable().optional(),
|
|
24
24
|
updated_at: zod.z.string().describe("Timestamp when the payment was last updated").nullable()
|
|
25
25
|
}).describe("Single payment object as returned in the list");
|
|
26
26
|
const FinmeiListPaymentsOutput = zod.z.object({
|
|
27
|
-
limit: zod.z.
|
|
28
|
-
total: zod.z.
|
|
29
|
-
offset: zod.z.
|
|
30
|
-
payments: zod.z.
|
|
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
31
|
}).describe("Response model for listing payments, including pagination metadata.");
|
|
32
32
|
const finmeiListPayments = require_action.action("FINMEI_LIST_PAYMENTS", {
|
|
33
33
|
slug: "finmei-list-payments",
|
|
@@ -1 +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.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.object({\n id: z.string().describe(\"Unique identifier of the payment\").nullable(),\n date: z.string().describe(\"Date of the payment in ISO 8601 format\").nullable(),\n mode: z.string().describe(\"Mode of the payment, e.g., bank_transfer, cash\").nullable(),\n notes: z.
|
|
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.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.object({\n id: z.string().describe(\"Unique identifier of the payment\").nullable(),\n date: z.string().describe(\"Date of the payment in ISO 8601 format\").nullable(),\n mode: z.string().describe(\"Mode of the payment, e.g., bank_transfer, cash\").nullable(),\n notes: z.string().describe(\"Notes attached to the payment\").nullable().optional(),\n amount: z.number().describe(\"Amount of the payment\").nullable(),\n reference: z.string().describe(\"Payment reference provided\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the payment was created\").nullable(),\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\").nullable(),\n}).describe(\"Single payment object as returned in the list\");\nexport const FinmeiListPaymentsOutput = 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: FinmeiListPayment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,CAAC,CAAC,SAAS;CACnF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;AAC1F,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAC3D,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,UAAUA,IAAAA,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClH,CAAC,CAAC,CAAC,SAAS,qEAAqE;AAEjF,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -13,18 +13,18 @@ declare const FinmeiListPaymentsInput: z.ZodObject<{
|
|
|
13
13
|
start_date: z.ZodOptional<z.ZodString>;
|
|
14
14
|
}, z.core.$strip>;
|
|
15
15
|
declare const FinmeiListPaymentsOutput: z.ZodObject<{
|
|
16
|
-
limit: z.
|
|
17
|
-
total: z.
|
|
18
|
-
offset: z.
|
|
19
|
-
payments: z.
|
|
16
|
+
limit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
17
|
+
total: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
18
|
+
offset: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
19
|
+
payments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
20
20
|
id: z.ZodNullable<z.ZodString>;
|
|
21
21
|
date: z.ZodNullable<z.ZodString>;
|
|
22
22
|
mode: z.ZodNullable<z.ZodString>;
|
|
23
|
-
notes: z.
|
|
23
|
+
notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
24
|
amount: z.ZodNullable<z.ZodNumber>;
|
|
25
|
-
reference: z.
|
|
25
|
+
reference: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
26
|
created_at: z.ZodNullable<z.ZodString>;
|
|
27
|
-
invoice_id: z.
|
|
27
|
+
invoice_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
28
|
updated_at: z.ZodNullable<z.ZodString>;
|
|
29
29
|
}, z.core.$strip>>>>;
|
|
30
30
|
}, z.core.$strip>;
|
|
@@ -34,22 +34,7 @@ declare const finmeiListPayments: import("@keystrokehq/action").WorkflowActionDe
|
|
|
34
34
|
status?: "pending" | "completed" | "failed" | undefined;
|
|
35
35
|
end_date?: string | undefined;
|
|
36
36
|
start_date?: string | undefined;
|
|
37
|
-
},
|
|
38
|
-
limit?: number | undefined;
|
|
39
|
-
total?: number | undefined;
|
|
40
|
-
offset?: number | undefined;
|
|
41
|
-
payments?: {
|
|
42
|
-
id: string | null;
|
|
43
|
-
date: string | null;
|
|
44
|
-
mode: string | null;
|
|
45
|
-
amount: number | null;
|
|
46
|
-
created_at: string | null;
|
|
47
|
-
updated_at: string | null;
|
|
48
|
-
notes?: string | undefined;
|
|
49
|
-
reference?: string | undefined;
|
|
50
|
-
invoice_id?: string | undefined;
|
|
51
|
-
}[] | undefined;
|
|
52
|
-
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
37
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
53
38
|
//#endregion
|
|
54
39
|
export { finmeiListPayments };
|
|
55
40
|
//# sourceMappingURL=list-payments.d.cts.map
|
|
@@ -13,18 +13,18 @@ declare const FinmeiListPaymentsInput: z.ZodObject<{
|
|
|
13
13
|
start_date: z.ZodOptional<z.ZodString>;
|
|
14
14
|
}, z.core.$strip>;
|
|
15
15
|
declare const FinmeiListPaymentsOutput: z.ZodObject<{
|
|
16
|
-
limit: z.
|
|
17
|
-
total: z.
|
|
18
|
-
offset: z.
|
|
19
|
-
payments: z.
|
|
16
|
+
limit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
17
|
+
total: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
18
|
+
offset: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
19
|
+
payments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
20
20
|
id: z.ZodNullable<z.ZodString>;
|
|
21
21
|
date: z.ZodNullable<z.ZodString>;
|
|
22
22
|
mode: z.ZodNullable<z.ZodString>;
|
|
23
|
-
notes: z.
|
|
23
|
+
notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
24
|
amount: z.ZodNullable<z.ZodNumber>;
|
|
25
|
-
reference: z.
|
|
25
|
+
reference: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
26
|
created_at: z.ZodNullable<z.ZodString>;
|
|
27
|
-
invoice_id: z.
|
|
27
|
+
invoice_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
28
|
updated_at: z.ZodNullable<z.ZodString>;
|
|
29
29
|
}, z.core.$strip>>>>;
|
|
30
30
|
}, z.core.$strip>;
|
|
@@ -34,22 +34,7 @@ declare const finmeiListPayments: import("@keystrokehq/action").WorkflowActionDe
|
|
|
34
34
|
status?: "pending" | "completed" | "failed" | undefined;
|
|
35
35
|
end_date?: string | undefined;
|
|
36
36
|
start_date?: string | undefined;
|
|
37
|
-
},
|
|
38
|
-
limit?: number | undefined;
|
|
39
|
-
total?: number | undefined;
|
|
40
|
-
offset?: number | undefined;
|
|
41
|
-
payments?: {
|
|
42
|
-
id: string | null;
|
|
43
|
-
date: string | null;
|
|
44
|
-
mode: string | null;
|
|
45
|
-
amount: number | null;
|
|
46
|
-
created_at: string | null;
|
|
47
|
-
updated_at: string | null;
|
|
48
|
-
notes?: string | undefined;
|
|
49
|
-
reference?: string | undefined;
|
|
50
|
-
invoice_id?: string | undefined;
|
|
51
|
-
}[] | undefined;
|
|
52
|
-
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
37
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
53
38
|
//#endregion
|
|
54
39
|
export { finmeiListPayments };
|
|
55
40
|
//# sourceMappingURL=list-payments.d.mts.map
|
|
@@ -16,11 +16,11 @@ const FinmeiListPayments_PaymentItemSchema = z.object({
|
|
|
16
16
|
id: z.string().describe("Unique identifier of the payment").nullable(),
|
|
17
17
|
date: z.string().describe("Date of the payment in ISO 8601 format").nullable(),
|
|
18
18
|
mode: z.string().describe("Mode of the payment, e.g., bank_transfer, cash").nullable(),
|
|
19
|
-
notes: z.
|
|
19
|
+
notes: z.string().describe("Notes attached to the payment").nullable().optional(),
|
|
20
20
|
amount: z.number().describe("Amount of the payment").nullable(),
|
|
21
|
-
reference: z.
|
|
21
|
+
reference: z.string().describe("Payment reference provided").nullable().optional(),
|
|
22
22
|
created_at: z.string().describe("Timestamp when the payment was created").nullable(),
|
|
23
|
-
invoice_id: z.
|
|
23
|
+
invoice_id: z.string().describe("ID of the invoice associated with the payment").nullable().optional(),
|
|
24
24
|
updated_at: z.string().describe("Timestamp when the payment was last updated").nullable()
|
|
25
25
|
}).describe("Single payment object as returned in the list");
|
|
26
26
|
const finmeiListPayments = action("FINMEI_LIST_PAYMENTS", {
|
|
@@ -29,10 +29,10 @@ const finmeiListPayments = action("FINMEI_LIST_PAYMENTS", {
|
|
|
29
29
|
description: "Tool to retrieve a list of payments. Use when you need to view past payment records with optional filters and pagination.",
|
|
30
30
|
input: FinmeiListPaymentsInput,
|
|
31
31
|
output: z.object({
|
|
32
|
-
limit: z.
|
|
33
|
-
total: z.
|
|
34
|
-
offset: z.
|
|
35
|
-
payments: z.
|
|
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
36
|
}).describe("Response model for listing payments, including pagination metadata.")
|
|
37
37
|
});
|
|
38
38
|
//#endregion
|
|
@@ -1 +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.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.object({\n id: z.string().describe(\"Unique identifier of the payment\").nullable(),\n date: z.string().describe(\"Date of the payment in ISO 8601 format\").nullable(),\n mode: z.string().describe(\"Mode of the payment, e.g., bank_transfer, cash\").nullable(),\n notes: z.
|
|
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.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.object({\n id: z.string().describe(\"Unique identifier of the payment\").nullable(),\n date: z.string().describe(\"Date of the payment in ISO 8601 format\").nullable(),\n mode: z.string().describe(\"Mode of the payment, e.g., bank_transfer, cash\").nullable(),\n notes: z.string().describe(\"Notes attached to the payment\").nullable().optional(),\n amount: z.number().describe(\"Amount of the payment\").nullable(),\n reference: z.string().describe(\"Payment reference provided\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the payment was created\").nullable(),\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\").nullable(),\n}).describe(\"Single payment object as returned in the list\");\nexport const FinmeiListPaymentsOutput = 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 pay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,SAAS,CAAC,CAAC,SAAS;CACrG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;AAC1F,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAQ3D,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAZsC,EAAE,OAAO;EAC/C,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"}
|
|
@@ -12,9 +12,9 @@ const FinmeiListProducts_ProductSchema = zod.z.object({
|
|
|
12
12
|
name: zod.z.string().describe("Name of the product").nullable(),
|
|
13
13
|
price: zod.z.number().describe("Price of the product in the account's currency").nullable(),
|
|
14
14
|
status: zod.z.enum(["active", "inactive"]).describe("Current status of the product").nullable(),
|
|
15
|
-
created_at: zod.z.
|
|
16
|
-
updated_at: zod.z.
|
|
17
|
-
description: zod.z.
|
|
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
18
|
}).describe("Schema for a product object returned by the API");
|
|
19
19
|
const FinmeiListProducts_PaginationSchema = zod.z.object({
|
|
20
20
|
page: zod.z.number().int().describe("Current page number").nullable(),
|
|
@@ -1 +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.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.object({\n id: z.string().describe(\"Unique identifier of the product\").nullable(),\n name: z.string().describe(\"Name of the product\").nullable(),\n price: z.number().describe(\"Price of the product in the account's currency\").nullable(),\n status: z.enum([\"active\", \"inactive\"]).describe(\"Current status of the product\").nullable(),\n created_at: z.
|
|
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.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.object({\n id: z.string().describe(\"Unique identifier of the product\").nullable(),\n name: z.string().describe(\"Name of the product\").nullable(),\n price: z.number().describe(\"Price of the product in the account's currency\").nullable(),\n status: z.enum([\"active\", \"inactive\"]).describe(\"Current status of the product\").nullable(),\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.object({\n page: z.number().int().describe(\"Current page number\").nullable(),\n per_page: z.number().int().describe(\"Number of items per page\").nullable(),\n total_items: z.number().int().describe(\"Total number of items across all pages\").nullable(),\n total_pages: z.number().int().describe(\"Total number of pages available\").nullable(),\n}).describe(\"Pagination metadata for list endpoints\");\nexport const FinmeiListProductsOutput = 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,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,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,mCAAmCA,IAAAA,EAAE,OAAO;CAChD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CACrE,MAAMA,IAAAA,EAAE,OAAO,C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AC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -19,9 +19,9 @@ declare const FinmeiListProductsOutput: z.ZodObject<{
|
|
|
19
19
|
active: "active";
|
|
20
20
|
inactive: "inactive";
|
|
21
21
|
}>>;
|
|
22
|
-
created_at: z.
|
|
23
|
-
updated_at: z.
|
|
24
|
-
description: z.
|
|
22
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
25
|
}, z.core.$strip>>;
|
|
26
26
|
pagination: z.ZodNullable<z.ZodObject<{
|
|
27
27
|
page: z.ZodNullable<z.ZodNumber>;
|
|
@@ -35,23 +35,7 @@ declare const finmeiListProducts: import("@keystrokehq/action").WorkflowActionDe
|
|
|
35
35
|
page?: number | undefined;
|
|
36
36
|
status?: "active" | "inactive" | undefined;
|
|
37
37
|
per_page?: number | undefined;
|
|
38
|
-
},
|
|
39
|
-
products: {
|
|
40
|
-
id: string | null;
|
|
41
|
-
name: string | null;
|
|
42
|
-
price: number | null;
|
|
43
|
-
status: "active" | "inactive" | null;
|
|
44
|
-
created_at?: string | undefined;
|
|
45
|
-
updated_at?: string | undefined;
|
|
46
|
-
description?: string | undefined;
|
|
47
|
-
}[];
|
|
48
|
-
pagination: {
|
|
49
|
-
page: number | null;
|
|
50
|
-
per_page: number | null;
|
|
51
|
-
total_items: number | null;
|
|
52
|
-
total_pages: number | null;
|
|
53
|
-
} | null;
|
|
54
|
-
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
38
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
55
39
|
//#endregion
|
|
56
40
|
export { finmeiListProducts };
|
|
57
41
|
//# sourceMappingURL=list-products.d.cts.map
|
|
@@ -19,9 +19,9 @@ declare const FinmeiListProductsOutput: z.ZodObject<{
|
|
|
19
19
|
active: "active";
|
|
20
20
|
inactive: "inactive";
|
|
21
21
|
}>>;
|
|
22
|
-
created_at: z.
|
|
23
|
-
updated_at: z.
|
|
24
|
-
description: z.
|
|
22
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
25
|
}, z.core.$strip>>;
|
|
26
26
|
pagination: z.ZodNullable<z.ZodObject<{
|
|
27
27
|
page: z.ZodNullable<z.ZodNumber>;
|
|
@@ -35,23 +35,7 @@ declare const finmeiListProducts: import("@keystrokehq/action").WorkflowActionDe
|
|
|
35
35
|
page?: number | undefined;
|
|
36
36
|
status?: "active" | "inactive" | undefined;
|
|
37
37
|
per_page?: number | undefined;
|
|
38
|
-
},
|
|
39
|
-
products: {
|
|
40
|
-
id: string | null;
|
|
41
|
-
name: string | null;
|
|
42
|
-
price: number | null;
|
|
43
|
-
status: "active" | "inactive" | null;
|
|
44
|
-
created_at?: string | undefined;
|
|
45
|
-
updated_at?: string | undefined;
|
|
46
|
-
description?: string | undefined;
|
|
47
|
-
}[];
|
|
48
|
-
pagination: {
|
|
49
|
-
page: number | null;
|
|
50
|
-
per_page: number | null;
|
|
51
|
-
total_items: number | null;
|
|
52
|
-
total_pages: number | null;
|
|
53
|
-
} | null;
|
|
54
|
-
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
38
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
55
39
|
//#endregion
|
|
56
40
|
export { finmeiListProducts };
|
|
57
41
|
//# sourceMappingURL=list-products.d.mts.map
|
|
@@ -12,9 +12,9 @@ const FinmeiListProducts_ProductSchema = z.object({
|
|
|
12
12
|
name: z.string().describe("Name of the product").nullable(),
|
|
13
13
|
price: z.number().describe("Price of the product in the account's currency").nullable(),
|
|
14
14
|
status: z.enum(["active", "inactive"]).describe("Current status of the product").nullable(),
|
|
15
|
-
created_at: z.
|
|
16
|
-
updated_at: z.
|
|
17
|
-
description: z.
|
|
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
18
|
}).describe("Schema for a product object returned by the API");
|
|
19
19
|
const FinmeiListProducts_PaginationSchema = z.object({
|
|
20
20
|
page: z.number().int().describe("Current page number").nullable(),
|
|
@@ -1 +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.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.object({\n id: z.string().describe(\"Unique identifier of the product\").nullable(),\n name: z.string().describe(\"Name of the product\").nullable(),\n price: z.number().describe(\"Price of the product in the account's currency\").nullable(),\n status: z.enum([\"active\", \"inactive\"]).describe(\"Current status of the product\").nullable(),\n created_at: z.
|
|
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.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.object({\n id: z.string().describe(\"Unique identifier of the product\").nullable(),\n name: z.string().describe(\"Name of the product\").nullable(),\n price: z.number().describe(\"Price of the product in the account's currency\").nullable(),\n status: z.enum([\"active\", \"inactive\"]).describe(\"Current status of the product\").nullable(),\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.object({\n page: z.number().int().describe(\"Current page number\").nullable(),\n per_page: z.number().int().describe(\"Number of items per page\").nullable(),\n total_items: z.number().int().describe(\"Total number of items across all pages\").nullable(),\n total_pages: z.number().int().describe(\"Total number of pages available\").nullable(),\n}).describe(\"Pagination metadata for list endpoints\");\nexport const FinmeiListProductsOutput = 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,0BAA0B,EAAE,OAAO;CAC9C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACzE,MAAM,EAAE,OAAO,CAAC,CAAC,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,CAAC,CAAC,SAAS;CAC1F,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;AACrF,CAAC,CAAC,CAAC,SAAS,wCAAwC;AAMpD,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVsC,EAAE,OAAO;EAC/C,UAAU,EAAE,MAAM,gCAAgC,CAAC,CAAC,SAAS,qCAAqC;EAClG,YAAY,oCAAoC,SAAS;CAC3D,CAAC,CAAC,CAAC,SAAS,uCAOF;AACV,CAAC"}
|
|
@@ -16,19 +16,19 @@ const FinmeiUpdateCustomerInput = zod.z.object({
|
|
|
16
16
|
customer_id: zod.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 = zod.z.object({
|
|
19
|
-
city: zod.z.
|
|
20
|
-
state: zod.z.
|
|
21
|
-
street: zod.z.
|
|
22
|
-
country: zod.z.
|
|
23
|
-
postal_code: zod.z.
|
|
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
24
|
}).describe("Mailing address details");
|
|
25
25
|
const FinmeiUpdateCustomer_CustomerSchema = zod.z.object({
|
|
26
26
|
id: zod.z.string().describe("Unique identifier of the customer").nullable(),
|
|
27
|
-
name: zod.z.
|
|
28
|
-
email: zod.z.
|
|
29
|
-
phone: zod.z.
|
|
30
|
-
address:
|
|
31
|
-
metadata: zod.z.
|
|
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
32
|
created_at: zod.z.string().describe("Timestamp when the customer was created").nullable(),
|
|
33
33
|
updated_at: zod.z.string().describe("Timestamp when the customer was last updated").nullable()
|
|
34
34
|
});
|