@keystrokehq/finmei 0.1.1 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/create-expense.cjs +2 -2
- package/dist/actions/create-expense.cjs.map +1 -1
- package/dist/actions/create-expense.d.cts +3 -13
- package/dist/actions/create-expense.d.mts +3 -13
- package/dist/actions/create-expense.mjs +2 -2
- package/dist/actions/create-expense.mjs.map +1 -1
- package/dist/actions/create-invoice.cjs +71 -71
- package/dist/actions/create-invoice.cjs.map +1 -1
- package/dist/actions/create-invoice.d.cts +74 -141
- package/dist/actions/create-invoice.d.cts.map +1 -1
- package/dist/actions/create-invoice.d.mts +74 -141
- package/dist/actions/create-invoice.d.mts.map +1 -1
- package/dist/actions/create-invoice.mjs +71 -71
- package/dist/actions/create-invoice.mjs.map +1 -1
- package/dist/actions/delete-customer.cjs +1 -1
- package/dist/actions/delete-customer.cjs.map +1 -1
- package/dist/actions/delete-customer.d.cts +2 -2
- package/dist/actions/delete-customer.d.cts.map +1 -1
- package/dist/actions/delete-customer.d.mts +2 -2
- package/dist/actions/delete-customer.d.mts.map +1 -1
- package/dist/actions/delete-customer.mjs +1 -1
- package/dist/actions/delete-customer.mjs.map +1 -1
- package/dist/actions/delete-invoice.cjs +2 -2
- package/dist/actions/delete-invoice.cjs.map +1 -1
- package/dist/actions/delete-invoice.d.cts +3 -6
- package/dist/actions/delete-invoice.d.mts +3 -6
- package/dist/actions/delete-invoice.mjs +2 -2
- package/dist/actions/delete-invoice.mjs.map +1 -1
- package/dist/actions/delete-payment.cjs +1 -1
- package/dist/actions/delete-payment.cjs.map +1 -1
- package/dist/actions/delete-payment.d.cts +2 -4
- package/dist/actions/delete-payment.d.mts +2 -4
- package/dist/actions/delete-payment.mjs +1 -1
- package/dist/actions/delete-payment.mjs.map +1 -1
- package/dist/actions/delete-product.cjs +2 -2
- package/dist/actions/delete-product.cjs.map +1 -1
- package/dist/actions/delete-product.d.cts +3 -6
- package/dist/actions/delete-product.d.mts +3 -6
- package/dist/actions/delete-product.mjs +2 -2
- package/dist/actions/delete-product.mjs.map +1 -1
- package/dist/actions/download-expense-file.cjs +2 -2
- package/dist/actions/download-expense-file.cjs.map +1 -1
- package/dist/actions/download-expense-file.d.cts +3 -9
- package/dist/actions/download-expense-file.d.mts +3 -9
- package/dist/actions/download-expense-file.mjs +2 -2
- package/dist/actions/download-expense-file.mjs.map +1 -1
- package/dist/actions/download-invoice-pdf.cjs +2 -2
- package/dist/actions/download-invoice-pdf.cjs.map +1 -1
- package/dist/actions/download-invoice-pdf.d.cts +3 -9
- package/dist/actions/download-invoice-pdf.d.mts +3 -9
- package/dist/actions/download-invoice-pdf.mjs +2 -2
- package/dist/actions/download-invoice-pdf.mjs.map +1 -1
- package/dist/actions/get-expense.cjs +2 -2
- package/dist/actions/get-expense.cjs.map +1 -1
- package/dist/actions/get-expense.d.cts +3 -13
- package/dist/actions/get-expense.d.mts +3 -13
- package/dist/actions/get-expense.mjs +2 -2
- package/dist/actions/get-expense.mjs.map +1 -1
- package/dist/actions/get-invoice.cjs +29 -29
- package/dist/actions/get-invoice.cjs.map +1 -1
- package/dist/actions/get-invoice.d.cts +30 -81
- package/dist/actions/get-invoice.d.cts.map +1 -1
- package/dist/actions/get-invoice.d.mts +30 -81
- package/dist/actions/get-invoice.d.mts.map +1 -1
- package/dist/actions/get-invoice.mjs +29 -29
- package/dist/actions/get-invoice.mjs.map +1 -1
- package/dist/actions/get-payment.cjs +3 -3
- package/dist/actions/get-payment.cjs.map +1 -1
- package/dist/actions/get-payment.d.cts +4 -14
- package/dist/actions/get-payment.d.mts +4 -14
- package/dist/actions/get-payment.mjs +3 -3
- package/dist/actions/get-payment.mjs.map +1 -1
- package/dist/actions/get-product.cjs +2 -2
- package/dist/actions/get-product.cjs.map +1 -1
- package/dist/actions/get-product.d.cts +3 -11
- package/dist/actions/get-product.d.mts +3 -11
- package/dist/actions/get-product.mjs +2 -2
- package/dist/actions/get-product.mjs.map +1 -1
- package/dist/actions/get-profile.cjs +9 -9
- package/dist/actions/get-profile.cjs.map +1 -1
- package/dist/actions/get-profile.d.cts +10 -20
- package/dist/actions/get-profile.d.cts.map +1 -1
- package/dist/actions/get-profile.d.mts +10 -20
- package/dist/actions/get-profile.d.mts.map +1 -1
- package/dist/actions/get-profile.mjs +9 -9
- package/dist/actions/get-profile.mjs.map +1 -1
- package/dist/actions/list-currencies.cjs +3 -3
- package/dist/actions/list-currencies.cjs.map +1 -1
- package/dist/actions/list-currencies.d.cts +4 -10
- package/dist/actions/list-currencies.d.cts.map +1 -1
- package/dist/actions/list-currencies.d.mts +4 -10
- package/dist/actions/list-currencies.d.mts.map +1 -1
- package/dist/actions/list-currencies.mjs +3 -3
- package/dist/actions/list-currencies.mjs.map +1 -1
- package/dist/actions/list-customers.cjs +11 -11
- package/dist/actions/list-customers.cjs.map +1 -1
- package/dist/actions/list-customers.d.cts +12 -28
- package/dist/actions/list-customers.d.mts +12 -28
- package/dist/actions/list-customers.mjs +11 -11
- package/dist/actions/list-customers.mjs.map +1 -1
- package/dist/actions/list-expenses.cjs +14 -14
- package/dist/actions/list-expenses.cjs.map +1 -1
- package/dist/actions/list-expenses.d.cts +15 -34
- package/dist/actions/list-expenses.d.mts +15 -34
- package/dist/actions/list-expenses.mjs +14 -14
- package/dist/actions/list-expenses.mjs.map +1 -1
- package/dist/actions/list-invoices.cjs +35 -35
- package/dist/actions/list-invoices.cjs.map +1 -1
- package/dist/actions/list-invoices.d.cts +36 -98
- package/dist/actions/list-invoices.d.cts.map +1 -1
- package/dist/actions/list-invoices.d.mts +36 -98
- package/dist/actions/list-invoices.d.mts.map +1 -1
- package/dist/actions/list-invoices.mjs +35 -35
- package/dist/actions/list-invoices.mjs.map +1 -1
- package/dist/actions/list-payments.cjs +9 -9
- package/dist/actions/list-payments.cjs.map +1 -1
- package/dist/actions/list-payments.d.cts +10 -25
- package/dist/actions/list-payments.d.mts +10 -25
- package/dist/actions/list-payments.mjs +9 -9
- package/dist/actions/list-payments.mjs.map +1 -1
- package/dist/actions/list-products.cjs +6 -6
- package/dist/actions/list-products.cjs.map +1 -1
- package/dist/actions/list-products.d.cts +7 -23
- package/dist/actions/list-products.d.mts +7 -23
- package/dist/actions/list-products.mjs +6 -6
- package/dist/actions/list-products.mjs.map +1 -1
- package/dist/actions/update-customer.cjs +13 -13
- package/dist/actions/update-customer.cjs.map +1 -1
- package/dist/actions/update-customer.d.cts +14 -31
- package/dist/actions/update-customer.d.cts.map +1 -1
- package/dist/actions/update-customer.d.mts +14 -31
- package/dist/actions/update-customer.d.mts.map +1 -1
- package/dist/actions/update-customer.mjs +13 -13
- package/dist/actions/update-customer.mjs.map +1 -1
- package/dist/actions/update-expense-file.cjs +6 -6
- package/dist/actions/update-expense-file.cjs.map +1 -1
- package/dist/actions/update-expense-file.d.cts +7 -13
- package/dist/actions/update-expense-file.d.mts +7 -13
- package/dist/actions/update-expense-file.mjs +6 -6
- package/dist/actions/update-expense-file.mjs.map +1 -1
- package/dist/actions/update-expense.cjs +3 -3
- package/dist/actions/update-expense.cjs.map +1 -1
- package/dist/actions/update-expense.d.cts +4 -12
- package/dist/actions/update-expense.d.mts +4 -12
- package/dist/actions/update-expense.mjs +3 -3
- package/dist/actions/update-expense.mjs.map +1 -1
- package/dist/actions/update-invoice.cjs +57 -57
- package/dist/actions/update-invoice.cjs.map +1 -1
- package/dist/actions/update-invoice.d.cts +59 -114
- package/dist/actions/update-invoice.d.cts.map +1 -1
- package/dist/actions/update-invoice.d.mts +59 -114
- package/dist/actions/update-invoice.d.mts.map +1 -1
- package/dist/actions/update-invoice.mjs +57 -57
- package/dist/actions/update-invoice.mjs.map +1 -1
- package/dist/actions/update-product.cjs +2 -2
- package/dist/actions/update-product.cjs.map +1 -1
- package/dist/actions/update-product.d.cts +3 -11
- package/dist/actions/update-product.d.mts +3 -11
- package/dist/actions/update-product.mjs +2 -2
- package/dist/actions/update-product.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-customers.mjs","names":[],"sources":["../../src/actions/list-customers.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiListCustomersInput = z.object({\n page: z.number().int().default(1).describe(\"Page number to retrieve (must be >= 1)\").optional(),\n sort: z.string().describe(\"Sort order, e.g., 'name_asc' or 'created_at_desc'\").optional(),\n search: z.string().describe(\"Search term to filter customers by name or email\").optional(),\n per_page: z.number().int().default(20).describe(\"Number of customers per page (1-100)\").optional(),\n}).describe(\"Parameters for retrieving a paginated list of customers with optional filtering and sorting.\");\nconst FinmeiListCustomers_AddressSchema = z.object({\n city: z.
|
|
1
|
+
{"version":3,"file":"list-customers.mjs","names":[],"sources":["../../src/actions/list-customers.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiListCustomersInput = z.object({\n page: z.number().int().default(1).describe(\"Page number to retrieve (must be >= 1)\").optional(),\n sort: z.string().describe(\"Sort order, e.g., 'name_asc' or 'created_at_desc'\").optional(),\n search: z.string().describe(\"Search term to filter customers by name or email\").optional(),\n per_page: z.number().int().default(20).describe(\"Number of customers per page (1-100)\").optional(),\n}).describe(\"Parameters for retrieving a paginated list of customers with optional filtering and sorting.\");\nconst FinmeiListCustomers_AddressSchema = z.object({\n city: z.string().describe(\"City of the customer\").nullable().optional(),\n street: z.string().describe(\"Street address of the customer\").nullable().optional(),\n country: z.string().describe(\"Country code of the customer\").nullable().optional(),\n postal_code: z.string().describe(\"Postal code of the customer\").nullable().optional(),\n}).passthrough().describe(\"Physical address details of a customer\");\nconst FinmeiListCustomers_CustomerSchema = z.object({\n id: z.string().describe(\"Unique identifier of the customer\").nullable(),\n name: z.string().describe(\"Name of the customer\").nullable().optional(),\n email: z.string().describe(\"Email address of the customer\").nullable().optional(),\n address: FinmeiListCustomers_AddressSchema.nullable().optional(),\n}).passthrough().describe(\"Customer details\");\nexport const FinmeiListCustomersOutput = z.object({\n page: z.number().int().describe(\"Current page number\").nullable(),\n total: z.number().int().describe(\"Total number of customers matching the filter\").nullable(),\n per_page: z.number().int().describe(\"Number of customers returned per page\").nullable(),\n customers: z.array(FinmeiListCustomers_CustomerSchema).describe(\"List of customer records matching the query\").nullable().optional(),\n total_pages: z.number().int().describe(\"Total number of pages available\").nullable(),\n}).passthrough().describe(\"Paginated list of customers along with paging metadata.\");\n\nexport const finmeiListCustomers = action(\"FINMEI_LIST_CUSTOMERS\", {\n slug: \"finmei-list-customers\",\n name: \"List Customers\",\n description: \"Tool to list all customers with optional filters and pagination. Use when needing to browse or search customer records.\",\n input: FinmeiListCustomersInput,\n output: FinmeiListCustomersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2B,EAAE,OAAO;CAC/C,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC9F,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CACxF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CACzF,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;AACnG,CAAC,CAAC,CAAC,SAAS,8FAA8F;AAC1G,MAAM,oCAAoC,EAAE,OAAO;CACjD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAAwC;AAClE,MAAM,qCAAqC,EAAE,OAAO;CAClD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACtE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,SAAS,kCAAkC,SAAS,CAAC,CAAC,SAAS;AACjE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kBAAkB;AAS5C,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAbuC,EAAE,OAAO;EAChD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;EAChE,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;EAC3F,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;EACtF,WAAW,EAAE,MAAM,kCAAkC,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnI,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CACrF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yDAOhB;AACV,CAAC"}
|
|
@@ -6,27 +6,27 @@ const FinmeiListExpensesInput = zod.z.object({
|
|
|
6
6
|
per_page: zod.z.number().int().default(20).describe("Number of expenses per page (1-100)").optional()
|
|
7
7
|
}).describe("Optional pagination parameters for listing expenses.");
|
|
8
8
|
const FinmeiListExpenses_PaginationMetaSchema = zod.z.object({
|
|
9
|
-
to: zod.z.
|
|
10
|
-
from: zod.z.
|
|
11
|
-
path: zod.z.
|
|
9
|
+
to: zod.z.number().int().describe("Ending item number on current page").nullable().optional(),
|
|
10
|
+
from: zod.z.number().int().describe("Starting item number on current page (1-indexed)").nullable().optional(),
|
|
11
|
+
path: zod.z.string().describe("API endpoint path").nullable().optional(),
|
|
12
12
|
total: zod.z.number().int().describe("Total number of expenses across all pages").nullable(),
|
|
13
13
|
per_page: zod.z.number().int().describe("Number of items per page").nullable(),
|
|
14
14
|
last_page: zod.z.number().int().describe("Last page number").nullable(),
|
|
15
15
|
current_page: zod.z.number().int().describe("Current page number").nullable()
|
|
16
|
-
}).describe("Pagination metadata from the API");
|
|
16
|
+
}).passthrough().describe("Pagination metadata from the API");
|
|
17
17
|
const FinmeiListExpenses_ExpenseSchema = zod.z.object({
|
|
18
18
|
id: zod.z.string().describe("Unique identifier of the expense").nullable(),
|
|
19
|
-
date: zod.z.
|
|
20
|
-
total: zod.z.
|
|
21
|
-
seller: zod.z.
|
|
22
|
-
currency: zod.z.
|
|
23
|
-
created_at: zod.z.
|
|
24
|
-
updated_at: zod.z.
|
|
25
|
-
}).describe("Single expense object returned by the API");
|
|
19
|
+
date: zod.z.string().describe("Date of the expense in YYYY-MM-DD format").nullable().optional(),
|
|
20
|
+
total: zod.z.number().describe("Total amount of the expense").nullable().optional(),
|
|
21
|
+
seller: zod.z.string().describe("Name of the seller/vendor").nullable().optional(),
|
|
22
|
+
currency: zod.z.string().describe("ISO 4217 currency code (USD, EUR, GBP, etc.)").nullable().optional(),
|
|
23
|
+
created_at: zod.z.number().int().describe("Unix timestamp when expense was created").nullable().optional(),
|
|
24
|
+
updated_at: zod.z.number().int().describe("Unix timestamp when expense was last updated").nullable().optional()
|
|
25
|
+
}).passthrough().describe("Single expense object returned by the API");
|
|
26
26
|
const FinmeiListExpensesOutput = zod.z.object({
|
|
27
|
-
meta:
|
|
28
|
-
expenses: zod.z.
|
|
29
|
-
}).describe("Response model for listing expenses with pagination metadata.");
|
|
27
|
+
meta: FinmeiListExpenses_PaginationMetaSchema.nullable().optional(),
|
|
28
|
+
expenses: zod.z.array(FinmeiListExpenses_ExpenseSchema).describe("List of expense objects returned by the API").nullable().optional()
|
|
29
|
+
}).passthrough().describe("Response model for listing expenses with pagination metadata.");
|
|
30
30
|
const finmeiListExpenses = require_action.action("FINMEI_LIST_EXPENSES", {
|
|
31
31
|
slug: "finmei-list-expenses",
|
|
32
32
|
name: "List Expenses",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-expenses.cjs","names":["z","action"],"sources":["../../src/actions/list-expenses.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiListExpensesInput = 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 expenses per page (1-100)\").optional(),\n}).describe(\"Optional pagination parameters for listing expenses.\");\nconst FinmeiListExpenses_PaginationMetaSchema = z.object({\n to: z.
|
|
1
|
+
{"version":3,"file":"list-expenses.cjs","names":["z","action"],"sources":["../../src/actions/list-expenses.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiListExpensesInput = 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 expenses per page (1-100)\").optional(),\n}).describe(\"Optional pagination parameters for listing expenses.\");\nconst FinmeiListExpenses_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().optional(),\n total: z.number().int().describe(\"Total number of expenses 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}).passthrough().describe(\"Pagination metadata from the API\");\nconst FinmeiListExpenses_ExpenseSchema = z.object({\n id: z.string().describe(\"Unique identifier of the expense\").nullable(),\n date: z.string().describe(\"Date of the expense in YYYY-MM-DD format\").nullable().optional(),\n total: z.number().describe(\"Total amount of the expense\").nullable().optional(),\n seller: z.string().describe(\"Name of the seller/vendor\").nullable().optional(),\n currency: z.string().describe(\"ISO 4217 currency code (USD, EUR, GBP, etc.)\").nullable().optional(),\n created_at: z.number().int().describe(\"Unix timestamp when expense was created\").nullable().optional(),\n updated_at: z.number().int().describe(\"Unix timestamp when expense was last updated\").nullable().optional(),\n}).passthrough().describe(\"Single expense object returned by the API\");\nexport const FinmeiListExpensesOutput = z.object({\n meta: FinmeiListExpenses_PaginationMetaSchema.nullable().optional(),\n expenses: z.array(FinmeiListExpenses_ExpenseSchema).describe(\"List of expense objects returned by the API\").nullable().optional(),\n}).passthrough().describe(\"Response model for listing expenses with pagination metadata.\");\n\nexport const finmeiListExpenses = action(\"FINMEI_LIST_EXPENSES\", {\n slug: \"finmei-list-expenses\",\n name: \"List Expenses\",\n description: \"Tool to list all expenses for the business. Use when you need a paginated list of expenses with metadata.\",\n input: FinmeiListExpensesInput,\n output: FinmeiListExpensesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC9F,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;AAClG,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAM,0CAA0CA,IAAAA,EAAE,OAAO;CAC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AC,SAAS,CAAC,CAAC,SAAS;CAClG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C;AACrE,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,MAAM,wCAAwC,SAAS,CAAC,CAAC,SAAS;CAClE,UAAUA,IAAAA,EAAE,MAAM,gCAAgC,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+DAA+D;AAEzF,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -6,48 +6,29 @@ declare const FinmeiListExpensesInput: z.ZodObject<{
|
|
|
6
6
|
per_page: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
7
7
|
}, z.core.$strip>;
|
|
8
8
|
declare const FinmeiListExpensesOutput: z.ZodObject<{
|
|
9
|
-
meta: z.
|
|
10
|
-
to: z.
|
|
11
|
-
from: z.
|
|
12
|
-
path: z.
|
|
9
|
+
meta: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
10
|
+
to: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
11
|
+
from: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
12
|
+
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
13
|
total: z.ZodNullable<z.ZodNumber>;
|
|
14
14
|
per_page: z.ZodNullable<z.ZodNumber>;
|
|
15
15
|
last_page: z.ZodNullable<z.ZodNumber>;
|
|
16
16
|
current_page: z.ZodNullable<z.ZodNumber>;
|
|
17
|
-
}, z.core.$
|
|
18
|
-
expenses: z.
|
|
17
|
+
}, z.core.$loose>>>;
|
|
18
|
+
expenses: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
19
19
|
id: z.ZodNullable<z.ZodString>;
|
|
20
|
-
date: z.
|
|
21
|
-
total: z.
|
|
22
|
-
seller: z.
|
|
23
|
-
currency: z.
|
|
24
|
-
created_at: z.
|
|
25
|
-
updated_at: z.
|
|
26
|
-
}, z.core.$
|
|
27
|
-
}, z.core.$
|
|
20
|
+
date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
total: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
22
|
+
seller: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
|
+
currency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
25
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
26
|
+
}, z.core.$loose>>>>;
|
|
27
|
+
}, z.core.$loose>;
|
|
28
28
|
declare const finmeiListExpenses: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
29
29
|
page?: number | undefined;
|
|
30
30
|
per_page?: number | undefined;
|
|
31
|
-
},
|
|
32
|
-
meta?: {
|
|
33
|
-
total: number | null;
|
|
34
|
-
per_page: number | null;
|
|
35
|
-
last_page: number | null;
|
|
36
|
-
current_page: number | null;
|
|
37
|
-
to?: number | undefined;
|
|
38
|
-
from?: number | undefined;
|
|
39
|
-
path?: string | undefined;
|
|
40
|
-
} | undefined;
|
|
41
|
-
expenses?: {
|
|
42
|
-
id: string | null;
|
|
43
|
-
date?: string | undefined;
|
|
44
|
-
total?: number | undefined;
|
|
45
|
-
seller?: string | undefined;
|
|
46
|
-
currency?: string | undefined;
|
|
47
|
-
created_at?: number | undefined;
|
|
48
|
-
updated_at?: number | undefined;
|
|
49
|
-
}[] | undefined;
|
|
50
|
-
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
31
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
51
32
|
//#endregion
|
|
52
33
|
export { finmeiListExpenses };
|
|
53
34
|
//# sourceMappingURL=list-expenses.d.cts.map
|
|
@@ -6,48 +6,29 @@ declare const FinmeiListExpensesInput: z.ZodObject<{
|
|
|
6
6
|
per_page: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
7
7
|
}, z.core.$strip>;
|
|
8
8
|
declare const FinmeiListExpensesOutput: z.ZodObject<{
|
|
9
|
-
meta: z.
|
|
10
|
-
to: z.
|
|
11
|
-
from: z.
|
|
12
|
-
path: z.
|
|
9
|
+
meta: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
10
|
+
to: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
11
|
+
from: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
12
|
+
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
13
|
total: z.ZodNullable<z.ZodNumber>;
|
|
14
14
|
per_page: z.ZodNullable<z.ZodNumber>;
|
|
15
15
|
last_page: z.ZodNullable<z.ZodNumber>;
|
|
16
16
|
current_page: z.ZodNullable<z.ZodNumber>;
|
|
17
|
-
}, z.core.$
|
|
18
|
-
expenses: z.
|
|
17
|
+
}, z.core.$loose>>>;
|
|
18
|
+
expenses: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
19
19
|
id: z.ZodNullable<z.ZodString>;
|
|
20
|
-
date: z.
|
|
21
|
-
total: z.
|
|
22
|
-
seller: z.
|
|
23
|
-
currency: z.
|
|
24
|
-
created_at: z.
|
|
25
|
-
updated_at: z.
|
|
26
|
-
}, z.core.$
|
|
27
|
-
}, z.core.$
|
|
20
|
+
date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
total: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
22
|
+
seller: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
|
+
currency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
25
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
26
|
+
}, z.core.$loose>>>>;
|
|
27
|
+
}, z.core.$loose>;
|
|
28
28
|
declare const finmeiListExpenses: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
29
29
|
page?: number | undefined;
|
|
30
30
|
per_page?: number | undefined;
|
|
31
|
-
},
|
|
32
|
-
meta?: {
|
|
33
|
-
total: number | null;
|
|
34
|
-
per_page: number | null;
|
|
35
|
-
last_page: number | null;
|
|
36
|
-
current_page: number | null;
|
|
37
|
-
to?: number | undefined;
|
|
38
|
-
from?: number | undefined;
|
|
39
|
-
path?: string | undefined;
|
|
40
|
-
} | undefined;
|
|
41
|
-
expenses?: {
|
|
42
|
-
id: string | null;
|
|
43
|
-
date?: string | undefined;
|
|
44
|
-
total?: number | undefined;
|
|
45
|
-
seller?: string | undefined;
|
|
46
|
-
currency?: string | undefined;
|
|
47
|
-
created_at?: number | undefined;
|
|
48
|
-
updated_at?: number | undefined;
|
|
49
|
-
}[] | undefined;
|
|
50
|
-
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
31
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
51
32
|
//#endregion
|
|
52
33
|
export { finmeiListExpenses };
|
|
53
34
|
//# sourceMappingURL=list-expenses.d.mts.map
|
|
@@ -6,32 +6,32 @@ const FinmeiListExpensesInput = z.object({
|
|
|
6
6
|
per_page: z.number().int().default(20).describe("Number of expenses per page (1-100)").optional()
|
|
7
7
|
}).describe("Optional pagination parameters for listing expenses.");
|
|
8
8
|
const FinmeiListExpenses_PaginationMetaSchema = z.object({
|
|
9
|
-
to: z.
|
|
10
|
-
from: z.
|
|
11
|
-
path: 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
|
+
path: z.string().describe("API endpoint path").nullable().optional(),
|
|
12
12
|
total: z.number().int().describe("Total number of expenses across all pages").nullable(),
|
|
13
13
|
per_page: z.number().int().describe("Number of items per page").nullable(),
|
|
14
14
|
last_page: z.number().int().describe("Last page number").nullable(),
|
|
15
15
|
current_page: z.number().int().describe("Current page number").nullable()
|
|
16
|
-
}).describe("Pagination metadata from the API");
|
|
16
|
+
}).passthrough().describe("Pagination metadata from the API");
|
|
17
17
|
const FinmeiListExpenses_ExpenseSchema = z.object({
|
|
18
18
|
id: z.string().describe("Unique identifier of the expense").nullable(),
|
|
19
|
-
date: z.
|
|
20
|
-
total: z.
|
|
21
|
-
seller: z.
|
|
22
|
-
currency: z.
|
|
23
|
-
created_at: z.
|
|
24
|
-
updated_at: z.
|
|
25
|
-
}).describe("Single expense object returned by the API");
|
|
19
|
+
date: z.string().describe("Date of the expense in YYYY-MM-DD format").nullable().optional(),
|
|
20
|
+
total: z.number().describe("Total amount of the expense").nullable().optional(),
|
|
21
|
+
seller: z.string().describe("Name of the seller/vendor").nullable().optional(),
|
|
22
|
+
currency: z.string().describe("ISO 4217 currency code (USD, EUR, GBP, etc.)").nullable().optional(),
|
|
23
|
+
created_at: z.number().int().describe("Unix timestamp when expense was created").nullable().optional(),
|
|
24
|
+
updated_at: z.number().int().describe("Unix timestamp when expense was last updated").nullable().optional()
|
|
25
|
+
}).passthrough().describe("Single expense object returned by the API");
|
|
26
26
|
const finmeiListExpenses = action("FINMEI_LIST_EXPENSES", {
|
|
27
27
|
slug: "finmei-list-expenses",
|
|
28
28
|
name: "List Expenses",
|
|
29
29
|
description: "Tool to list all expenses for the business. Use when you need a paginated list of expenses with metadata.",
|
|
30
30
|
input: FinmeiListExpensesInput,
|
|
31
31
|
output: z.object({
|
|
32
|
-
meta:
|
|
33
|
-
expenses: z.
|
|
34
|
-
}).describe("Response model for listing expenses with pagination metadata.")
|
|
32
|
+
meta: FinmeiListExpenses_PaginationMetaSchema.nullable().optional(),
|
|
33
|
+
expenses: z.array(FinmeiListExpenses_ExpenseSchema).describe("List of expense objects returned by the API").nullable().optional()
|
|
34
|
+
}).passthrough().describe("Response model for listing expenses with pagination metadata.")
|
|
35
35
|
});
|
|
36
36
|
//#endregion
|
|
37
37
|
export { finmeiListExpenses };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-expenses.mjs","names":[],"sources":["../../src/actions/list-expenses.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiListExpensesInput = 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 expenses per page (1-100)\").optional(),\n}).describe(\"Optional pagination parameters for listing expenses.\");\nconst FinmeiListExpenses_PaginationMetaSchema = z.object({\n to: z.
|
|
1
|
+
{"version":3,"file":"list-expenses.mjs","names":[],"sources":["../../src/actions/list-expenses.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiListExpensesInput = 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 expenses per page (1-100)\").optional(),\n}).describe(\"Optional pagination parameters for listing expenses.\");\nconst FinmeiListExpenses_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().optional(),\n total: z.number().int().describe(\"Total number of expenses 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}).passthrough().describe(\"Pagination metadata from the API\");\nconst FinmeiListExpenses_ExpenseSchema = z.object({\n id: z.string().describe(\"Unique identifier of the expense\").nullable(),\n date: z.string().describe(\"Date of the expense in YYYY-MM-DD format\").nullable().optional(),\n total: z.number().describe(\"Total amount of the expense\").nullable().optional(),\n seller: z.string().describe(\"Name of the seller/vendor\").nullable().optional(),\n currency: z.string().describe(\"ISO 4217 currency code (USD, EUR, GBP, etc.)\").nullable().optional(),\n created_at: z.number().int().describe(\"Unix timestamp when expense was created\").nullable().optional(),\n updated_at: z.number().int().describe(\"Unix timestamp when expense was last updated\").nullable().optional(),\n}).passthrough().describe(\"Single expense object returned by the API\");\nexport const FinmeiListExpensesOutput = z.object({\n meta: FinmeiListExpenses_PaginationMetaSchema.nullable().optional(),\n expenses: z.array(FinmeiListExpenses_ExpenseSchema).describe(\"List of expense objects returned by the API\").nullable().optional(),\n}).passthrough().describe(\"Response model for listing expenses with pagination metadata.\");\n\nexport const finmeiListExpenses = action(\"FINMEI_LIST_EXPENSES\", {\n slug: \"finmei-list-expenses\",\n name: \"List Expenses\",\n description: \"Tool to list all expenses for the business. Use when you need a paginated list of expenses with metadata.\",\n input: FinmeiListExpensesInput,\n output: FinmeiListExpensesOutput,\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,SAA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AS,CAAC,CAAC,SAAS;CAClG,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C;AAMrE,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,YAAY,CAAC,CAAC,SAAS,+DAOhB;AACV,CAAC"}
|
|
@@ -6,52 +6,52 @@ const FinmeiListInvoicesInput = zod.z.object({
|
|
|
6
6
|
per_page: zod.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 = zod.z.object({
|
|
9
|
-
to: zod.z.
|
|
10
|
-
from: zod.z.
|
|
9
|
+
to: zod.z.number().int().describe("Ending item number on current page").nullable().optional(),
|
|
10
|
+
from: zod.z.number().int().describe("Starting item number on current page (1-indexed)").nullable().optional(),
|
|
11
11
|
path: zod.z.string().describe("API endpoint path").nullable(),
|
|
12
12
|
total: zod.z.number().int().describe("Total number of invoices across all pages").nullable(),
|
|
13
13
|
per_page: zod.z.number().int().describe("Number of items per page").nullable(),
|
|
14
14
|
last_page: zod.z.number().int().describe("Last page number").nullable(),
|
|
15
15
|
current_page: zod.z.number().int().describe("Current page number").nullable()
|
|
16
|
-
}).describe("Pagination metadata from the API");
|
|
16
|
+
}).passthrough().describe("Pagination metadata from the API");
|
|
17
17
|
const FinmeiListInvoices_BuyerSchema = zod.z.object({
|
|
18
|
-
type: zod.z.
|
|
19
|
-
email: zod.z.
|
|
20
|
-
phone: zod.z.
|
|
21
|
-
address: zod.z.
|
|
22
|
-
vat_code: zod.z.
|
|
23
|
-
last_name: zod.z.
|
|
24
|
-
first_name: zod.z.
|
|
25
|
-
company_code: zod.z.
|
|
26
|
-
company_name: zod.z.
|
|
27
|
-
individual_tax_id: zod.z.
|
|
28
|
-
}).describe("Buyer/customer information on the invoice");
|
|
18
|
+
type: zod.z.string().describe("Type of buyer (company or individual)").nullable().optional(),
|
|
19
|
+
email: zod.z.string().describe("Buyer email").nullable().optional(),
|
|
20
|
+
phone: zod.z.string().describe("Buyer phone number").nullable().optional(),
|
|
21
|
+
address: zod.z.string().describe("Buyer address").nullable().optional(),
|
|
22
|
+
vat_code: zod.z.string().describe("VAT registration number").nullable().optional(),
|
|
23
|
+
last_name: zod.z.string().describe("Last name (for individual buyers)").nullable().optional(),
|
|
24
|
+
first_name: zod.z.string().describe("First name (for individual buyers)").nullable().optional(),
|
|
25
|
+
company_code: zod.z.string().describe("Company registration code").nullable().optional(),
|
|
26
|
+
company_name: zod.z.string().describe("Company name (for company buyers)").nullable().optional(),
|
|
27
|
+
individual_tax_id: zod.z.string().describe("Individual tax ID").nullable().optional()
|
|
28
|
+
}).passthrough().describe("Buyer/customer information on the invoice");
|
|
29
29
|
const FinmeiListInvoices_InvoiceItemSchema = zod.z.object({
|
|
30
30
|
id: zod.z.string().describe("Unique item identifier").nullable(),
|
|
31
31
|
name: zod.z.string().describe("Item/product/service name").nullable(),
|
|
32
32
|
price: zod.z.number().describe("Unit price").nullable(),
|
|
33
33
|
units: zod.z.string().describe("Unit of measurement (hours, pcs, etc.)").nullable(),
|
|
34
34
|
quantity: zod.z.number().describe("Quantity").nullable(),
|
|
35
|
-
vat_percentage: zod.z.
|
|
36
|
-
}).describe("Line item on the invoice");
|
|
35
|
+
vat_percentage: zod.z.number().describe("VAT/tax percentage applied").nullable().optional()
|
|
36
|
+
}).passthrough().describe("Line item on the invoice");
|
|
37
37
|
const FinmeiListInvoices_SellerSchema = zod.z.object({
|
|
38
|
-
email: zod.z.
|
|
39
|
-
phone: zod.z.
|
|
40
|
-
address: zod.z.
|
|
41
|
-
vat_code: zod.z.
|
|
42
|
-
last_name: zod.z.
|
|
43
|
-
first_name: zod.z.
|
|
44
|
-
company_code: zod.z.
|
|
45
|
-
company_name: zod.z.
|
|
46
|
-
business_type: zod.z.
|
|
47
|
-
individual_tax_id: zod.z.
|
|
48
|
-
}).describe("Seller/business information on the invoice");
|
|
38
|
+
email: zod.z.string().describe("Business email").nullable().optional(),
|
|
39
|
+
phone: zod.z.string().describe("Business phone number").nullable().optional(),
|
|
40
|
+
address: zod.z.string().describe("Business address").nullable().optional(),
|
|
41
|
+
vat_code: zod.z.string().describe("VAT registration number").nullable().optional(),
|
|
42
|
+
last_name: zod.z.string().describe("Last name (for individual sellers)").nullable().optional(),
|
|
43
|
+
first_name: zod.z.string().describe("First name (for individual sellers)").nullable().optional(),
|
|
44
|
+
company_code: zod.z.string().describe("Company registration code").nullable().optional(),
|
|
45
|
+
company_name: zod.z.string().describe("Company name (for company sellers)").nullable().optional(),
|
|
46
|
+
business_type: zod.z.string().describe("Type of business (company or individual)").nullable().optional(),
|
|
47
|
+
individual_tax_id: zod.z.string().describe("Individual tax ID").nullable().optional()
|
|
48
|
+
}).passthrough().describe("Seller/business information on the invoice");
|
|
49
49
|
const FinmeiListInvoices_InvoiceSchema = zod.z.object({
|
|
50
50
|
id: zod.z.string().describe("Unique invoice identifier").nullable(),
|
|
51
51
|
vat: zod.z.number().describe("Total VAT/tax amount").nullable(),
|
|
52
52
|
buyer: FinmeiListInvoices_BuyerSchema.nullable(),
|
|
53
|
-
items: zod.z.
|
|
54
|
-
notes: zod.z.
|
|
53
|
+
items: zod.z.array(FinmeiListInvoices_InvoiceItemSchema).describe("List of line items on the invoice").nullable().optional(),
|
|
54
|
+
notes: zod.z.string().describe("Additional notes on the invoice").nullable().optional(),
|
|
55
55
|
seller: FinmeiListInvoices_SellerSchema.nullable(),
|
|
56
56
|
series: zod.z.string().describe("Invoice series/prefix").nullable(),
|
|
57
57
|
currency: zod.z.string().describe("ISO 4217 currency code (USD, EUR, GBP, etc.)").nullable(),
|
|
@@ -64,15 +64,15 @@ const FinmeiListInvoices_InvoiceSchema = zod.z.object({
|
|
|
64
64
|
invoice_date: zod.z.string().describe("Invoice date in YYYY-MM-DD format").nullable(),
|
|
65
65
|
invoice_type: zod.z.string().describe("Type of invoice (regular_invoice, vat_invoice, preliminary_invoice, credit_invoice)").nullable(),
|
|
66
66
|
invoice_number: zod.z.string().describe("Invoice number within the series").nullable(),
|
|
67
|
-
pay_until_date: zod.z.
|
|
67
|
+
pay_until_date: zod.z.string().describe("Payment due date in YYYY-MM-DD format").nullable().optional(),
|
|
68
68
|
payment_status: zod.z.string().describe("Payment status (not_paid, paid, partially_paid, etc.)").nullable(),
|
|
69
69
|
total_incl_vat: zod.z.number().describe("Total amount including VAT").nullable(),
|
|
70
|
-
payment_options: zod.z.
|
|
71
|
-
}).describe("Single invoice object returned by the API");
|
|
70
|
+
payment_options: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("Available payment options").nullable().optional()
|
|
71
|
+
}).passthrough().describe("Single invoice object returned by the API");
|
|
72
72
|
const FinmeiListInvoicesOutput = zod.z.object({
|
|
73
|
-
meta:
|
|
74
|
-
invoices: zod.z.
|
|
75
|
-
}).describe("Response model for listing invoices with pagination metadata.");
|
|
73
|
+
meta: FinmeiListInvoices_PaginationMetaSchema.nullable().optional(),
|
|
74
|
+
invoices: zod.z.array(FinmeiListInvoices_InvoiceSchema).describe("List of invoice objects returned by the API").nullable().optional()
|
|
75
|
+
}).passthrough().describe("Response model for listing invoices with pagination metadata.");
|
|
76
76
|
const finmeiListInvoices = require_action.action("FINMEI_LIST_INVOICES", {
|
|
77
77
|
slug: "finmei-list-invoices",
|
|
78
78
|
name: "List Invoices",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-invoices.cjs","names":["z","action"],"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,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC9F,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;AAClG,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAM,0CAA0CA,IAAAA,EAAE,OAAO;CACvD,IAAIA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC;CAC5I,MAAMA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC;CAC5J,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS;CACxD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACvF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CACzE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CAClE,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qBAAqB,CAA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,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC;CACrJ,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CACtG,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CAC3E,iBAAiBA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC;AACvJ,CAAC,CAAC,CAAC,SAAS,2CAA2C;AACvD,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,MAAMA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,wCAAwC,SAAS,CAAC;CACtH,UAAUA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,MAAM,gCAAgC,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC;AACtL,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAE3E,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"list-invoices.cjs","names":["z","action"],"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}).passthrough().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}).passthrough().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}).passthrough().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}).passthrough().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.record(z.string(), z.unknown())).describe(\"Available payment options\").nullable().optional(),\n}).passthrough().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}).passthrough().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,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC9F,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;AAClG,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAM,0CAA0CA,IAAAA,EAAE,OAAO;CACvD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS;CACxD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACvF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS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