@keystrokehq/finmei 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/create-expense.cjs +7 -7
- package/dist/actions/create-expense.cjs.map +1 -1
- package/dist/actions/create-expense.d.cts +43 -3
- package/dist/actions/create-expense.d.cts.map +1 -1
- package/dist/actions/create-expense.d.mts +43 -3
- package/dist/actions/create-expense.d.mts.map +1 -1
- package/dist/actions/create-expense.mjs +7 -7
- package/dist/actions/create-expense.mjs.map +1 -1
- package/dist/actions/create-invoice.cjs +63 -63
- package/dist/actions/create-invoice.cjs.map +1 -1
- package/dist/actions/create-invoice.d.cts +235 -3
- package/dist/actions/create-invoice.d.cts.map +1 -1
- package/dist/actions/create-invoice.d.mts +235 -3
- package/dist/actions/create-invoice.d.mts.map +1 -1
- package/dist/actions/create-invoice.mjs +63 -63
- package/dist/actions/create-invoice.mjs.map +1 -1
- package/dist/actions/delete-customer.cjs.map +1 -1
- package/dist/actions/delete-customer.d.cts +7 -3
- package/dist/actions/delete-customer.d.cts.map +1 -1
- package/dist/actions/delete-customer.d.mts +7 -3
- package/dist/actions/delete-customer.d.mts.map +1 -1
- package/dist/actions/delete-customer.mjs.map +1 -1
- package/dist/actions/delete-invoice.cjs +2 -2
- package/dist/actions/delete-invoice.cjs.map +1 -1
- package/dist/actions/delete-invoice.d.cts +13 -3
- package/dist/actions/delete-invoice.d.cts.map +1 -1
- package/dist/actions/delete-invoice.d.mts +13 -3
- package/dist/actions/delete-invoice.d.mts.map +1 -1
- package/dist/actions/delete-invoice.mjs +2 -2
- package/dist/actions/delete-invoice.mjs.map +1 -1
- package/dist/actions/delete-payment.cjs +1 -1
- package/dist/actions/delete-payment.cjs.map +1 -1
- package/dist/actions/delete-payment.d.cts +11 -3
- package/dist/actions/delete-payment.d.cts.map +1 -1
- package/dist/actions/delete-payment.d.mts +11 -3
- package/dist/actions/delete-payment.d.mts.map +1 -1
- package/dist/actions/delete-payment.mjs +1 -1
- package/dist/actions/delete-payment.mjs.map +1 -1
- package/dist/actions/delete-product.cjs +2 -2
- package/dist/actions/delete-product.cjs.map +1 -1
- package/dist/actions/delete-product.d.cts +13 -3
- package/dist/actions/delete-product.d.cts.map +1 -1
- package/dist/actions/delete-product.d.mts +13 -3
- package/dist/actions/delete-product.d.mts.map +1 -1
- package/dist/actions/delete-product.mjs +2 -2
- package/dist/actions/delete-product.mjs.map +1 -1
- package/dist/actions/download-expense-file.cjs +3 -3
- package/dist/actions/download-expense-file.cjs.map +1 -1
- package/dist/actions/download-expense-file.d.cts +19 -3
- package/dist/actions/download-expense-file.d.cts.map +1 -1
- package/dist/actions/download-expense-file.d.mts +19 -3
- package/dist/actions/download-expense-file.d.mts.map +1 -1
- package/dist/actions/download-expense-file.mjs +3 -3
- package/dist/actions/download-expense-file.mjs.map +1 -1
- package/dist/actions/download-invoice-pdf.cjs +3 -3
- package/dist/actions/download-invoice-pdf.cjs.map +1 -1
- package/dist/actions/download-invoice-pdf.d.cts +19 -3
- package/dist/actions/download-invoice-pdf.d.cts.map +1 -1
- package/dist/actions/download-invoice-pdf.d.mts +19 -3
- package/dist/actions/download-invoice-pdf.d.mts.map +1 -1
- package/dist/actions/download-invoice-pdf.mjs +3 -3
- package/dist/actions/download-invoice-pdf.mjs.map +1 -1
- package/dist/actions/get-expense.cjs +7 -7
- package/dist/actions/get-expense.cjs.map +1 -1
- package/dist/actions/get-expense.d.cts +27 -3
- package/dist/actions/get-expense.d.cts.map +1 -1
- package/dist/actions/get-expense.d.mts +27 -3
- package/dist/actions/get-expense.d.mts.map +1 -1
- package/dist/actions/get-expense.mjs +7 -7
- package/dist/actions/get-expense.mjs.map +1 -1
- package/dist/actions/get-invoice.cjs +45 -45
- package/dist/actions/get-invoice.cjs.map +1 -1
- package/dist/actions/get-invoice.d.cts +109 -3
- package/dist/actions/get-invoice.d.cts.map +1 -1
- package/dist/actions/get-invoice.d.mts +109 -3
- package/dist/actions/get-invoice.d.mts.map +1 -1
- package/dist/actions/get-invoice.mjs +45 -45
- package/dist/actions/get-invoice.mjs.map +1 -1
- package/dist/actions/get-payment.cjs +9 -9
- package/dist/actions/get-payment.cjs.map +1 -1
- package/dist/actions/get-payment.d.cts +27 -3
- package/dist/actions/get-payment.d.cts.map +1 -1
- package/dist/actions/get-payment.d.mts +27 -3
- package/dist/actions/get-payment.d.mts.map +1 -1
- package/dist/actions/get-payment.mjs +9 -9
- package/dist/actions/get-payment.mjs.map +1 -1
- package/dist/actions/get-product.cjs +7 -7
- package/dist/actions/get-product.cjs.map +1 -1
- package/dist/actions/get-product.d.cts +23 -3
- package/dist/actions/get-product.d.cts.map +1 -1
- package/dist/actions/get-product.d.mts +23 -3
- package/dist/actions/get-product.d.mts.map +1 -1
- package/dist/actions/get-product.mjs +7 -7
- package/dist/actions/get-product.mjs.map +1 -1
- package/dist/actions/get-profile.cjs +7 -7
- package/dist/actions/get-profile.cjs.map +1 -1
- package/dist/actions/get-profile.d.cts +23 -3
- package/dist/actions/get-profile.d.cts.map +1 -1
- package/dist/actions/get-profile.d.mts +23 -3
- package/dist/actions/get-profile.d.mts.map +1 -1
- package/dist/actions/get-profile.mjs +7 -7
- package/dist/actions/get-profile.mjs.map +1 -1
- package/dist/actions/list-currencies.cjs +3 -3
- package/dist/actions/list-currencies.cjs.map +1 -1
- package/dist/actions/list-currencies.d.cts +15 -3
- package/dist/actions/list-currencies.d.cts.map +1 -1
- package/dist/actions/list-currencies.d.mts +15 -3
- package/dist/actions/list-currencies.d.mts.map +1 -1
- package/dist/actions/list-currencies.mjs +3 -3
- package/dist/actions/list-currencies.mjs.map +1 -1
- package/dist/actions/list-customers.cjs +13 -13
- package/dist/actions/list-customers.cjs.map +1 -1
- package/dist/actions/list-customers.d.cts +45 -3
- package/dist/actions/list-customers.d.cts.map +1 -1
- package/dist/actions/list-customers.d.mts +45 -3
- package/dist/actions/list-customers.d.mts.map +1 -1
- package/dist/actions/list-customers.mjs +13 -13
- package/dist/actions/list-customers.mjs.map +1 -1
- package/dist/actions/list-expenses.cjs +16 -16
- package/dist/actions/list-expenses.cjs.map +1 -1
- package/dist/actions/list-expenses.d.cts +47 -3
- package/dist/actions/list-expenses.d.cts.map +1 -1
- package/dist/actions/list-expenses.d.mts +47 -3
- package/dist/actions/list-expenses.d.mts.map +1 -1
- package/dist/actions/list-expenses.mjs +16 -16
- package/dist/actions/list-expenses.mjs.map +1 -1
- package/dist/actions/list-invoices.cjs +54 -54
- package/dist/actions/list-invoices.cjs.map +1 -1
- package/dist/actions/list-invoices.d.cts +133 -3
- package/dist/actions/list-invoices.d.cts.map +1 -1
- package/dist/actions/list-invoices.d.mts +133 -3
- package/dist/actions/list-invoices.d.mts.map +1 -1
- package/dist/actions/list-invoices.mjs +54 -54
- package/dist/actions/list-invoices.mjs.map +1 -1
- package/dist/actions/list-payments.cjs +13 -13
- package/dist/actions/list-payments.cjs.map +1 -1
- package/dist/actions/list-payments.d.cts +49 -3
- package/dist/actions/list-payments.d.cts.map +1 -1
- package/dist/actions/list-payments.d.mts +49 -3
- package/dist/actions/list-payments.d.mts.map +1 -1
- package/dist/actions/list-payments.mjs +13 -13
- package/dist/actions/list-payments.mjs.map +1 -1
- package/dist/actions/list-products.cjs +11 -11
- package/dist/actions/list-products.cjs.map +1 -1
- package/dist/actions/list-products.d.cts +51 -3
- package/dist/actions/list-products.d.cts.map +1 -1
- package/dist/actions/list-products.d.mts +51 -3
- package/dist/actions/list-products.d.mts.map +1 -1
- package/dist/actions/list-products.mjs +11 -11
- package/dist/actions/list-products.mjs.map +1 -1
- package/dist/actions/update-customer.cjs +13 -13
- package/dist/actions/update-customer.cjs.map +1 -1
- package/dist/actions/update-customer.d.cts +63 -3
- package/dist/actions/update-customer.d.cts.map +1 -1
- package/dist/actions/update-customer.d.mts +63 -3
- package/dist/actions/update-customer.d.mts.map +1 -1
- package/dist/actions/update-customer.mjs +13 -13
- package/dist/actions/update-customer.mjs.map +1 -1
- package/dist/actions/update-expense-file.cjs +5 -5
- package/dist/actions/update-expense-file.cjs.map +1 -1
- package/dist/actions/update-expense-file.d.cts +29 -3
- package/dist/actions/update-expense-file.d.cts.map +1 -1
- package/dist/actions/update-expense-file.d.mts +29 -3
- package/dist/actions/update-expense-file.d.mts.map +1 -1
- package/dist/actions/update-expense-file.mjs +5 -5
- package/dist/actions/update-expense-file.mjs.map +1 -1
- package/dist/actions/update-expense.cjs +7 -7
- package/dist/actions/update-expense.cjs.map +1 -1
- package/dist/actions/update-expense.d.cts +31 -3
- package/dist/actions/update-expense.d.cts.map +1 -1
- package/dist/actions/update-expense.d.mts +31 -3
- package/dist/actions/update-expense.d.mts.map +1 -1
- package/dist/actions/update-expense.mjs +7 -7
- package/dist/actions/update-expense.mjs.map +1 -1
- package/dist/actions/update-invoice.cjs +52 -52
- package/dist/actions/update-invoice.cjs.map +1 -1
- package/dist/actions/update-invoice.d.cts +203 -3
- package/dist/actions/update-invoice.d.cts.map +1 -1
- package/dist/actions/update-invoice.d.mts +203 -3
- package/dist/actions/update-invoice.d.mts.map +1 -1
- package/dist/actions/update-invoice.mjs +52 -52
- package/dist/actions/update-invoice.mjs.map +1 -1
- package/dist/actions/update-product.cjs +7 -7
- package/dist/actions/update-product.cjs.map +1 -1
- package/dist/actions/update-product.d.cts +31 -3
- package/dist/actions/update-product.d.cts.map +1 -1
- package/dist/actions/update-product.d.mts +31 -3
- package/dist/actions/update-product.d.mts.map +1 -1
- package/dist/actions/update-product.mjs +7 -7
- package/dist/actions/update-product.mjs.map +1 -1
- package/dist/catalog.cjs +7 -1
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +8 -0
- package/dist/catalog.d.mts +8 -0
- package/dist/catalog.mjs +7 -1
- package/dist/catalog.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1,9 +1,55 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-payments.d.ts
|
|
4
|
-
declare const FinmeiListPaymentsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const FinmeiListPaymentsInput: z.ZodObject<{
|
|
5
|
+
limit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
6
|
+
offset: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
7
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
8
|
+
pending: "pending";
|
|
9
|
+
completed: "completed";
|
|
10
|
+
failed: "failed";
|
|
11
|
+
}>>;
|
|
12
|
+
end_date: z.ZodOptional<z.ZodString>;
|
|
13
|
+
start_date: z.ZodOptional<z.ZodString>;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
declare const FinmeiListPaymentsOutput: z.ZodObject<{
|
|
16
|
+
limit: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
|
|
17
|
+
total: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
|
|
18
|
+
offset: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
|
|
19
|
+
payments: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
20
|
+
id: z.ZodNullable<z.ZodString>;
|
|
21
|
+
date: z.ZodNullable<z.ZodString>;
|
|
22
|
+
mode: z.ZodNullable<z.ZodString>;
|
|
23
|
+
notes: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
24
|
+
amount: z.ZodNullable<z.ZodNumber>;
|
|
25
|
+
reference: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
26
|
+
created_at: z.ZodNullable<z.ZodString>;
|
|
27
|
+
invoice_id: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
28
|
+
updated_at: z.ZodNullable<z.ZodString>;
|
|
29
|
+
}, z.core.$strip>>>>;
|
|
30
|
+
}, z.core.$strip>;
|
|
31
|
+
declare const finmeiListPayments: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
32
|
+
limit?: number | undefined;
|
|
33
|
+
offset?: number | undefined;
|
|
34
|
+
status?: "pending" | "completed" | "failed" | undefined;
|
|
35
|
+
end_date?: string | undefined;
|
|
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]>;
|
|
7
53
|
//#endregion
|
|
8
54
|
export { finmeiListPayments };
|
|
9
55
|
//# sourceMappingURL=list-payments.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-payments.d.mts","names":[],"sources":["../../src/actions/list-payments.ts"],"mappings":";;;cAIa,uBAAA,
|
|
1
|
+
{"version":3,"file":"list-payments.d.mts","names":[],"sources":["../../src/actions/list-payments.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;cAkBvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAOxB,kBAAA,gCAAkB,wBAAA"}
|
|
@@ -13,15 +13,15 @@ const FinmeiListPaymentsInput = z.object({
|
|
|
13
13
|
start_date: z.string().describe("Filter payments created on or after this date (ISO 8601 format)").optional()
|
|
14
14
|
}).describe("Request model for listing payments with optional filters and pagination.");
|
|
15
15
|
const FinmeiListPayments_PaymentItemSchema = z.object({
|
|
16
|
-
id: z.string().describe("Unique identifier of the payment"),
|
|
17
|
-
date: z.string().describe("Date of the payment in ISO 8601 format"),
|
|
18
|
-
mode: z.string().describe("Mode of the payment, e.g., bank_transfer, cash"),
|
|
19
|
-
notes: z.string().describe("Notes attached to the payment").
|
|
20
|
-
amount: z.number().describe("Amount of the payment"),
|
|
21
|
-
reference: z.string().describe("Payment reference provided").
|
|
22
|
-
created_at: z.string().describe("Timestamp when the payment was created"),
|
|
23
|
-
invoice_id: z.string().describe("ID of the invoice associated with the payment").
|
|
24
|
-
updated_at: z.string().describe("Timestamp when the payment was last updated")
|
|
16
|
+
id: z.string().describe("Unique identifier of the payment").nullable(),
|
|
17
|
+
date: z.string().describe("Date of the payment in ISO 8601 format").nullable(),
|
|
18
|
+
mode: z.string().describe("Mode of the payment, e.g., bank_transfer, cash").nullable(),
|
|
19
|
+
notes: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Notes attached to the payment").optional()),
|
|
20
|
+
amount: z.number().describe("Amount of the payment").nullable(),
|
|
21
|
+
reference: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Payment reference provided").optional()),
|
|
22
|
+
created_at: z.string().describe("Timestamp when the payment was created").nullable(),
|
|
23
|
+
invoice_id: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("ID of the invoice associated with the payment").optional()),
|
|
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", {
|
|
27
27
|
slug: "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.number().int().describe("Number of payments requested per page").
|
|
33
|
-
total: z.number().int().describe("Total number of payments available").
|
|
34
|
-
offset: z.number().int().describe("Pagination offset used in the request").
|
|
35
|
-
payments: z.array(FinmeiListPayments_PaymentItemSchema).describe("List of payment objects").
|
|
32
|
+
limit: z.preprocess((value) => value === null ? void 0 : value, z.number().int().describe("Number of payments requested per page").optional()),
|
|
33
|
+
total: z.preprocess((value) => value === null ? void 0 : value, z.number().int().describe("Total number of payments available").optional()),
|
|
34
|
+
offset: z.preprocess((value) => value === null ? void 0 : value, z.number().int().describe("Pagination offset used in the request").optional()),
|
|
35
|
+
payments: z.preprocess((value) => value === null ? void 0 : value, z.array(FinmeiListPayments_PaymentItemSchema).describe("List of payment objects").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
|
|
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.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Notes attached to the payment\").optional()),\n amount: z.number().describe(\"Amount of the payment\").nullable(),\n reference: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Payment reference provided\").optional()),\n created_at: z.string().describe(\"Timestamp when the payment was created\").nullable(),\n invoice_id: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"ID of the invoice associated with the payment\").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.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"Number of payments requested per page\").optional()),\n total: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"Total number of payments available\").optional()),\n offset: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"Pagination offset used in the request\").optional()),\n payments: z.preprocess((value) => (value === null ? undefined : value), z.array(FinmeiListPayments_PaymentItemSchema).describe(\"List of payment objects\").optional()),\n}).describe(\"Response model for listing payments, including pagination metadata.\");\n\nexport const finmeiListPayments = action(\"FINMEI_LIST_PAYMENTS\", {\n slug: \"finmei-list-payments\",\n name: \"List Payments\",\n description: \"Tool to retrieve a list of payments. Use when you need to view past payment records with optional filters and pagination.\",\n input: FinmeiListPaymentsInput,\n output: FinmeiListPaymentsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0B,EAAE,OAAO;CAC9C,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAC9G,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACnG,QAAQ,EAAE,KAAK;EAAC;EAAW;EAAa;CAAQ,CAAC,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAClG,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;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,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC;EAC/I,QAAQ,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC;EACnJ,UAAU,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC;CACtK,CAAC,CAAC,CAAC,SAAS,qEAOF;AACV,CAAC"}
|
|
@@ -8,19 +8,19 @@ const FinmeiListProductsInput = zod.z.object({
|
|
|
8
8
|
per_page: zod.z.number().int().default(20).describe("Number of products per page.").optional()
|
|
9
9
|
}).describe("Optional filters and pagination for listing products.");
|
|
10
10
|
const FinmeiListProducts_ProductSchema = zod.z.object({
|
|
11
|
-
id: zod.z.string().describe("Unique identifier of the product"),
|
|
12
|
-
name: zod.z.string().describe("Name of the product"),
|
|
13
|
-
price: zod.z.number().describe("Price of the product in the account's currency"),
|
|
14
|
-
status: zod.z.enum(["active", "inactive"]).describe("Current status of the product"),
|
|
15
|
-
created_at: zod.z.string().describe("ISO 8601 timestamp when the product was created").
|
|
16
|
-
updated_at: zod.z.string().describe("ISO 8601 timestamp when the product was last updated").
|
|
17
|
-
description: zod.z.string().describe("Description of the product").
|
|
11
|
+
id: zod.z.string().describe("Unique identifier of the product").nullable(),
|
|
12
|
+
name: zod.z.string().describe("Name of the product").nullable(),
|
|
13
|
+
price: zod.z.number().describe("Price of the product in the account's currency").nullable(),
|
|
14
|
+
status: zod.z.enum(["active", "inactive"]).describe("Current status of the product").nullable(),
|
|
15
|
+
created_at: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("ISO 8601 timestamp when the product was created").optional()),
|
|
16
|
+
updated_at: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("ISO 8601 timestamp when the product was last updated").optional()),
|
|
17
|
+
description: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Description of the product").optional())
|
|
18
18
|
}).describe("Schema for a product object returned by the API");
|
|
19
19
|
const FinmeiListProducts_PaginationSchema = zod.z.object({
|
|
20
|
-
page: zod.z.number().int().describe("Current page number"),
|
|
21
|
-
per_page: zod.z.number().int().describe("Number of items per page"),
|
|
22
|
-
total_items: zod.z.number().int().describe("Total number of items across all pages"),
|
|
23
|
-
total_pages: zod.z.number().int().describe("Total number of pages available")
|
|
20
|
+
page: zod.z.number().int().describe("Current page number").nullable(),
|
|
21
|
+
per_page: zod.z.number().int().describe("Number of items per page").nullable(),
|
|
22
|
+
total_items: zod.z.number().int().describe("Total number of items across all pages").nullable(),
|
|
23
|
+
total_pages: zod.z.number().int().describe("Total number of pages available").nullable()
|
|
24
24
|
}).describe("Pagination metadata for list endpoints");
|
|
25
25
|
const FinmeiListProductsOutput = zod.z.object({
|
|
26
26
|
products: zod.z.array(FinmeiListProducts_ProductSchema).describe("List of products matching the query"),
|
|
@@ -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
|
|
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.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"ISO 8601 timestamp when the product was created\").optional()),\n updated_at: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"ISO 8601 timestamp when the product was last updated\").optional()),\n description: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Description of the product\").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;CA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,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC1F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;AACrF,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACpD,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,UAAUA,IAAAA,EAAE,MAAM,gCAAgC,CAAC,CAAC,SAAS,qCAAqC;CAClG,YAAY,oCAAoC,SAAS;AAC3D,CAAC,CAAC,CAAC,SAAS,uCAAuC;AAEnD,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,57 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-products.d.ts
|
|
4
|
-
declare const FinmeiListProductsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const FinmeiListProductsInput: z.ZodObject<{
|
|
5
|
+
name: z.ZodOptional<z.ZodString>;
|
|
6
|
+
page: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
7
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
8
|
+
active: "active";
|
|
9
|
+
inactive: "inactive";
|
|
10
|
+
}>>;
|
|
11
|
+
per_page: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
declare const FinmeiListProductsOutput: z.ZodObject<{
|
|
14
|
+
products: z.ZodArray<z.ZodObject<{
|
|
15
|
+
id: z.ZodNullable<z.ZodString>;
|
|
16
|
+
name: z.ZodNullable<z.ZodString>;
|
|
17
|
+
price: z.ZodNullable<z.ZodNumber>;
|
|
18
|
+
status: z.ZodNullable<z.ZodEnum<{
|
|
19
|
+
active: "active";
|
|
20
|
+
inactive: "inactive";
|
|
21
|
+
}>>;
|
|
22
|
+
created_at: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
23
|
+
updated_at: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
24
|
+
description: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
25
|
+
}, z.core.$strip>>;
|
|
26
|
+
pagination: z.ZodNullable<z.ZodObject<{
|
|
27
|
+
page: z.ZodNullable<z.ZodNumber>;
|
|
28
|
+
per_page: z.ZodNullable<z.ZodNumber>;
|
|
29
|
+
total_items: z.ZodNullable<z.ZodNumber>;
|
|
30
|
+
total_pages: z.ZodNullable<z.ZodNumber>;
|
|
31
|
+
}, z.core.$strip>>;
|
|
32
|
+
}, z.core.$strip>;
|
|
33
|
+
declare const finmeiListProducts: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
34
|
+
name?: string | undefined;
|
|
35
|
+
page?: number | undefined;
|
|
36
|
+
status?: "active" | "inactive" | undefined;
|
|
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]>;
|
|
7
55
|
//#endregion
|
|
8
56
|
export { finmeiListProducts };
|
|
9
57
|
//# sourceMappingURL=list-products.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-products.d.cts","names":[],"sources":["../../src/actions/list-products.ts"],"mappings":";;;cAIa,uBAAA,
|
|
1
|
+
{"version":3,"file":"list-products.d.cts","names":[],"sources":["../../src/actions/list-products.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;cAqBvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAKxB,kBAAA,gCAAkB,wBAAA"}
|
|
@@ -1,9 +1,57 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-products.d.ts
|
|
4
|
-
declare const FinmeiListProductsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const FinmeiListProductsInput: z.ZodObject<{
|
|
5
|
+
name: z.ZodOptional<z.ZodString>;
|
|
6
|
+
page: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
7
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
8
|
+
active: "active";
|
|
9
|
+
inactive: "inactive";
|
|
10
|
+
}>>;
|
|
11
|
+
per_page: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
declare const FinmeiListProductsOutput: z.ZodObject<{
|
|
14
|
+
products: z.ZodArray<z.ZodObject<{
|
|
15
|
+
id: z.ZodNullable<z.ZodString>;
|
|
16
|
+
name: z.ZodNullable<z.ZodString>;
|
|
17
|
+
price: z.ZodNullable<z.ZodNumber>;
|
|
18
|
+
status: z.ZodNullable<z.ZodEnum<{
|
|
19
|
+
active: "active";
|
|
20
|
+
inactive: "inactive";
|
|
21
|
+
}>>;
|
|
22
|
+
created_at: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
23
|
+
updated_at: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
24
|
+
description: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
25
|
+
}, z.core.$strip>>;
|
|
26
|
+
pagination: z.ZodNullable<z.ZodObject<{
|
|
27
|
+
page: z.ZodNullable<z.ZodNumber>;
|
|
28
|
+
per_page: z.ZodNullable<z.ZodNumber>;
|
|
29
|
+
total_items: z.ZodNullable<z.ZodNumber>;
|
|
30
|
+
total_pages: z.ZodNullable<z.ZodNumber>;
|
|
31
|
+
}, z.core.$strip>>;
|
|
32
|
+
}, z.core.$strip>;
|
|
33
|
+
declare const finmeiListProducts: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
34
|
+
name?: string | undefined;
|
|
35
|
+
page?: number | undefined;
|
|
36
|
+
status?: "active" | "inactive" | undefined;
|
|
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]>;
|
|
7
55
|
//#endregion
|
|
8
56
|
export { finmeiListProducts };
|
|
9
57
|
//# sourceMappingURL=list-products.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-products.d.mts","names":[],"sources":["../../src/actions/list-products.ts"],"mappings":";;;cAIa,uBAAA,
|
|
1
|
+
{"version":3,"file":"list-products.d.mts","names":[],"sources":["../../src/actions/list-products.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;cAqBvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAKxB,kBAAA,gCAAkB,wBAAA"}
|
|
@@ -8,19 +8,19 @@ const FinmeiListProductsInput = z.object({
|
|
|
8
8
|
per_page: z.number().int().default(20).describe("Number of products per page.").optional()
|
|
9
9
|
}).describe("Optional filters and pagination for listing products.");
|
|
10
10
|
const FinmeiListProducts_ProductSchema = z.object({
|
|
11
|
-
id: z.string().describe("Unique identifier of the product"),
|
|
12
|
-
name: z.string().describe("Name of the product"),
|
|
13
|
-
price: z.number().describe("Price of the product in the account's currency"),
|
|
14
|
-
status: z.enum(["active", "inactive"]).describe("Current status of the product"),
|
|
15
|
-
created_at: z.string().describe("ISO 8601 timestamp when the product was created").
|
|
16
|
-
updated_at: z.string().describe("ISO 8601 timestamp when the product was last updated").
|
|
17
|
-
description: z.string().describe("Description of the product").
|
|
11
|
+
id: z.string().describe("Unique identifier of the product").nullable(),
|
|
12
|
+
name: z.string().describe("Name of the product").nullable(),
|
|
13
|
+
price: z.number().describe("Price of the product in the account's currency").nullable(),
|
|
14
|
+
status: z.enum(["active", "inactive"]).describe("Current status of the product").nullable(),
|
|
15
|
+
created_at: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("ISO 8601 timestamp when the product was created").optional()),
|
|
16
|
+
updated_at: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("ISO 8601 timestamp when the product was last updated").optional()),
|
|
17
|
+
description: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Description of the product").optional())
|
|
18
18
|
}).describe("Schema for a product object returned by the API");
|
|
19
19
|
const FinmeiListProducts_PaginationSchema = z.object({
|
|
20
|
-
page: z.number().int().describe("Current page number"),
|
|
21
|
-
per_page: z.number().int().describe("Number of items per page"),
|
|
22
|
-
total_items: z.number().int().describe("Total number of items across all pages"),
|
|
23
|
-
total_pages: z.number().int().describe("Total number of pages available")
|
|
20
|
+
page: z.number().int().describe("Current page number").nullable(),
|
|
21
|
+
per_page: z.number().int().describe("Number of items per page").nullable(),
|
|
22
|
+
total_items: z.number().int().describe("Total number of items across all pages").nullable(),
|
|
23
|
+
total_pages: z.number().int().describe("Total number of pages available").nullable()
|
|
24
24
|
}).describe("Pagination metadata for list endpoints");
|
|
25
25
|
const finmeiListProducts = action("FINMEI_LIST_PRODUCTS", {
|
|
26
26
|
slug: "finmei-list-products",
|
|
@@ -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
|
|
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.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"ISO 8601 timestamp when the product was created\").optional()),\n updated_at: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"ISO 8601 timestamp when the product was last updated\").optional()),\n description: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Description of the product\").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,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC/F,QAAQ,EAAE,KAAK,CAAC,UAAU,UAAU,CAAC,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAC7F,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;AAC3F,CAAC,CAAC,CAAC,SAAS,uDAAuD;AACnE,MAAM,mCAAmC,EAAE,OAAO;CAChD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CACrE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC1D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACtF,QAAQ,EAAE,KAAK,CAAC,UAAU,UAAU,CAAC,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAC1F,YAAY,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC;CAC3J,YAAY,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC;CAChK,aAAa,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC;AACzI,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAC7D,MAAM,sCAAsC,EAAE,OAAO;CACnD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAChE,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CACzE,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,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,21 +16,21 @@ 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.string().describe("City of the customer's address").
|
|
20
|
-
state: zod.z.string().describe("State or province of the customer's address").
|
|
21
|
-
street: zod.z.string().describe("Street address of the customer").
|
|
22
|
-
country: zod.z.string().describe("Country code (ISO 3166-1 alpha-2)").
|
|
23
|
-
postal_code: zod.z.string().describe("Postal or ZIP code of the customer's address").
|
|
19
|
+
city: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("City of the customer's address").optional()),
|
|
20
|
+
state: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("State or province of the customer's address").optional()),
|
|
21
|
+
street: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Street address of the customer").optional()),
|
|
22
|
+
country: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Country code (ISO 3166-1 alpha-2)").optional()),
|
|
23
|
+
postal_code: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Postal or ZIP code of the customer's address").optional())
|
|
24
24
|
}).describe("Mailing address details");
|
|
25
25
|
const FinmeiUpdateCustomer_CustomerSchema = zod.z.object({
|
|
26
|
-
id: zod.z.string().describe("Unique identifier of the customer"),
|
|
27
|
-
name: zod.z.string().describe("Full name of the customer").
|
|
28
|
-
email: zod.z.string().describe("Email address of the customer").
|
|
29
|
-
phone: zod.z.string().describe("Phone number of the customer").
|
|
30
|
-
address:
|
|
31
|
-
metadata: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Additional metadata associated with the customer").
|
|
32
|
-
created_at: zod.z.string().describe("Timestamp when the customer was created"),
|
|
33
|
-
updated_at: zod.z.string().describe("Timestamp when the customer was last updated")
|
|
26
|
+
id: zod.z.string().describe("Unique identifier of the customer").nullable(),
|
|
27
|
+
name: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Full name of the customer").optional()),
|
|
28
|
+
email: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Email address of the customer").optional()),
|
|
29
|
+
phone: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Phone number of the customer").optional()),
|
|
30
|
+
address: zod.z.preprocess((value) => value === null ? void 0 : value, FinmeiUpdateCustomer_AddressSchema.optional()),
|
|
31
|
+
metadata: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.record(zod.z.string(), zod.z.unknown()).describe("Additional metadata associated with the customer").optional()),
|
|
32
|
+
created_at: zod.z.string().describe("Timestamp when the customer was created").nullable(),
|
|
33
|
+
updated_at: zod.z.string().describe("Timestamp when the customer was last updated").nullable()
|
|
34
34
|
});
|
|
35
35
|
const FinmeiUpdateCustomerOutput = zod.z.object({ customer: FinmeiUpdateCustomer_CustomerSchema.nullable() }).describe("Response model containing the updated customer record");
|
|
36
36
|
const finmeiUpdateCustomer = require_action.action("FINMEI_UPDATE_CUSTOMER", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-customer.cjs","names":["z","action"],"sources":["../../src/actions/update-customer.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiUpdateCustomerInput
|
|
1
|
+
{"version":3,"file":"update-customer.cjs","names":["z","action"],"sources":["../../src/actions/update-customer.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiUpdateCustomerInput = z.object({\n name: z.string().describe(\"Full name of the customer\").optional(),\n email: z.string().describe(\"Email address of the customer\").optional(),\n phone: z.string().describe(\"Phone number of the customer\").optional(),\n address: z.object({\n city: z.string().describe(\"City of the customer's address\").optional(),\n state: z.string().describe(\"State or province of the customer's address\").optional(),\n street: z.string().describe(\"Street address of the customer\").optional(),\n country: z.string().describe(\"Country code (ISO 3166-1 alpha-2)\").optional(),\n postal_code: z.string().describe(\"Postal or ZIP code of the customer's address\").optional(),\n}).describe(\"Mailing address details\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Additional metadata for the customer as key-value pairs\").optional(),\n customer_id: z.string().describe(\"Unique identifier of the customer to update\"),\n}).describe(\"Request model for updating an existing customer\");\nconst FinmeiUpdateCustomer_AddressSchema = z.object({\n city: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"City of the customer's address\").optional()),\n state: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"State or province of the customer's address\").optional()),\n street: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Street address of the customer\").optional()),\n country: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Country code (ISO 3166-1 alpha-2)\").optional()),\n postal_code: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Postal or ZIP code of the customer's address\").optional()),\n}).describe(\"Mailing address details\");\nconst FinmeiUpdateCustomer_CustomerSchema = z.object({\n id: z.string().describe(\"Unique identifier of the customer\").nullable(),\n name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Full name of the customer\").optional()),\n email: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Email address of the customer\").optional()),\n phone: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Phone number of the customer\").optional()),\n address: z.preprocess((value) => (value === null ? undefined : value), FinmeiUpdateCustomer_AddressSchema.optional()),\n metadata: z.preprocess((value) => (value === null ? undefined : value), z.record(z.string(), z.unknown()).describe(\"Additional metadata associated with the customer\").optional()),\n created_at: z.string().describe(\"Timestamp when the customer was created\").nullable(),\n updated_at: z.string().describe(\"Timestamp when the customer was last updated\").nullable(),\n});\nexport const FinmeiUpdateCustomerOutput = z.object({\n customer: FinmeiUpdateCustomer_CustomerSchema.nullable(),\n}).describe(\"Response model containing the updated customer record\");\n\nexport const finmeiUpdateCustomer = action(\"FINMEI_UPDATE_CUSTOMER\", {\n slug: \"finmei-update-customer\",\n name: \"Update Customer\",\n description: \"Tool to update an existing customer's details. Use after confirming the customer ID to modify their information.\",\n input: FinmeiUpdateCustomerInput,\n output: FinmeiUpdateCustomerOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAChE,OAAOA,IAAAA,EAA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,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;AAC3F,CAAC;AACD,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,UAAU,oCAAoC,SAAS,EACzD,CAAC,CAAC,CAAC,SAAS,uDAAuD;AAEnE,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,69 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/update-customer.d.ts
|
|
4
|
-
declare const FinmeiUpdateCustomerInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const FinmeiUpdateCustomerInput: z.ZodObject<{
|
|
5
|
+
name: z.ZodOptional<z.ZodString>;
|
|
6
|
+
email: z.ZodOptional<z.ZodString>;
|
|
7
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
8
|
+
address: z.ZodOptional<z.ZodObject<{
|
|
9
|
+
city: z.ZodOptional<z.ZodString>;
|
|
10
|
+
state: z.ZodOptional<z.ZodString>;
|
|
11
|
+
street: z.ZodOptional<z.ZodString>;
|
|
12
|
+
country: z.ZodOptional<z.ZodString>;
|
|
13
|
+
postal_code: z.ZodOptional<z.ZodString>;
|
|
14
|
+
}, z.core.$strip>>;
|
|
15
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
16
|
+
customer_id: z.ZodString;
|
|
17
|
+
}, z.core.$strip>;
|
|
18
|
+
declare const FinmeiUpdateCustomerOutput: z.ZodObject<{
|
|
19
|
+
customer: z.ZodNullable<z.ZodObject<{
|
|
20
|
+
id: z.ZodNullable<z.ZodString>;
|
|
21
|
+
name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
22
|
+
email: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
23
|
+
phone: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
24
|
+
address: z.ZodPreprocess<z.ZodOptional<z.ZodObject<{
|
|
25
|
+
city: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
26
|
+
state: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
27
|
+
street: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
28
|
+
country: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
29
|
+
postal_code: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
30
|
+
}, z.core.$strip>>>;
|
|
31
|
+
metadata: z.ZodPreprocess<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
32
|
+
created_at: z.ZodNullable<z.ZodString>;
|
|
33
|
+
updated_at: z.ZodNullable<z.ZodString>;
|
|
34
|
+
}, z.core.$strip>>;
|
|
35
|
+
}, z.core.$strip>;
|
|
36
|
+
declare const finmeiUpdateCustomer: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
37
|
+
customer_id: string;
|
|
38
|
+
name?: string | undefined;
|
|
39
|
+
email?: string | undefined;
|
|
40
|
+
phone?: string | undefined;
|
|
41
|
+
address?: {
|
|
42
|
+
city?: string | undefined;
|
|
43
|
+
state?: string | undefined;
|
|
44
|
+
street?: string | undefined;
|
|
45
|
+
country?: string | undefined;
|
|
46
|
+
postal_code?: string | undefined;
|
|
47
|
+
} | undefined;
|
|
48
|
+
metadata?: Record<string, unknown> | undefined;
|
|
49
|
+
}, {
|
|
50
|
+
customer: {
|
|
51
|
+
id: string | null;
|
|
52
|
+
created_at: string | null;
|
|
53
|
+
updated_at: string | null;
|
|
54
|
+
name?: string | undefined;
|
|
55
|
+
email?: string | undefined;
|
|
56
|
+
phone?: string | undefined;
|
|
57
|
+
address?: {
|
|
58
|
+
city?: string | undefined;
|
|
59
|
+
state?: string | undefined;
|
|
60
|
+
street?: string | undefined;
|
|
61
|
+
country?: string | undefined;
|
|
62
|
+
postal_code?: string | undefined;
|
|
63
|
+
} | undefined;
|
|
64
|
+
metadata?: Record<string, unknown> | undefined;
|
|
65
|
+
} | null;
|
|
66
|
+
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
67
|
//#endregion
|
|
8
68
|
export { finmeiUpdateCustomer };
|
|
9
69
|
//# sourceMappingURL=update-customer.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-customer.d.cts","names":[],"sources":["../../src/actions/update-customer.ts"],"mappings":";;;cAIa,yBAAA,
|
|
1
|
+
{"version":3,"file":"update-customer.d.cts","names":[],"sources":["../../src/actions/update-customer.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cA+BzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAI1B,oBAAA,gCAAoB,wBAAA;;;;;;;;;;;;aAM/B,MAAA;AAAA;;;;;;;;;;;;;;;eAAA,MAAA;EAAA;AAAA"}
|
|
@@ -1,9 +1,69 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/update-customer.d.ts
|
|
4
|
-
declare const FinmeiUpdateCustomerInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const FinmeiUpdateCustomerInput: z.ZodObject<{
|
|
5
|
+
name: z.ZodOptional<z.ZodString>;
|
|
6
|
+
email: z.ZodOptional<z.ZodString>;
|
|
7
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
8
|
+
address: z.ZodOptional<z.ZodObject<{
|
|
9
|
+
city: z.ZodOptional<z.ZodString>;
|
|
10
|
+
state: z.ZodOptional<z.ZodString>;
|
|
11
|
+
street: z.ZodOptional<z.ZodString>;
|
|
12
|
+
country: z.ZodOptional<z.ZodString>;
|
|
13
|
+
postal_code: z.ZodOptional<z.ZodString>;
|
|
14
|
+
}, z.core.$strip>>;
|
|
15
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
16
|
+
customer_id: z.ZodString;
|
|
17
|
+
}, z.core.$strip>;
|
|
18
|
+
declare const FinmeiUpdateCustomerOutput: z.ZodObject<{
|
|
19
|
+
customer: z.ZodNullable<z.ZodObject<{
|
|
20
|
+
id: z.ZodNullable<z.ZodString>;
|
|
21
|
+
name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
22
|
+
email: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
23
|
+
phone: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
24
|
+
address: z.ZodPreprocess<z.ZodOptional<z.ZodObject<{
|
|
25
|
+
city: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
26
|
+
state: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
27
|
+
street: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
28
|
+
country: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
29
|
+
postal_code: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
30
|
+
}, z.core.$strip>>>;
|
|
31
|
+
metadata: z.ZodPreprocess<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
32
|
+
created_at: z.ZodNullable<z.ZodString>;
|
|
33
|
+
updated_at: z.ZodNullable<z.ZodString>;
|
|
34
|
+
}, z.core.$strip>>;
|
|
35
|
+
}, z.core.$strip>;
|
|
36
|
+
declare const finmeiUpdateCustomer: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
37
|
+
customer_id: string;
|
|
38
|
+
name?: string | undefined;
|
|
39
|
+
email?: string | undefined;
|
|
40
|
+
phone?: string | undefined;
|
|
41
|
+
address?: {
|
|
42
|
+
city?: string | undefined;
|
|
43
|
+
state?: string | undefined;
|
|
44
|
+
street?: string | undefined;
|
|
45
|
+
country?: string | undefined;
|
|
46
|
+
postal_code?: string | undefined;
|
|
47
|
+
} | undefined;
|
|
48
|
+
metadata?: Record<string, unknown> | undefined;
|
|
49
|
+
}, {
|
|
50
|
+
customer: {
|
|
51
|
+
id: string | null;
|
|
52
|
+
created_at: string | null;
|
|
53
|
+
updated_at: string | null;
|
|
54
|
+
name?: string | undefined;
|
|
55
|
+
email?: string | undefined;
|
|
56
|
+
phone?: string | undefined;
|
|
57
|
+
address?: {
|
|
58
|
+
city?: string | undefined;
|
|
59
|
+
state?: string | undefined;
|
|
60
|
+
street?: string | undefined;
|
|
61
|
+
country?: string | undefined;
|
|
62
|
+
postal_code?: string | undefined;
|
|
63
|
+
} | undefined;
|
|
64
|
+
metadata?: Record<string, unknown> | undefined;
|
|
65
|
+
} | null;
|
|
66
|
+
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
67
|
//#endregion
|
|
8
68
|
export { finmeiUpdateCustomer };
|
|
9
69
|
//# sourceMappingURL=update-customer.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-customer.d.mts","names":[],"sources":["../../src/actions/update-customer.ts"],"mappings":";;;cAIa,yBAAA,
|
|
1
|
+
{"version":3,"file":"update-customer.d.mts","names":[],"sources":["../../src/actions/update-customer.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cA+BzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAI1B,oBAAA,gCAAoB,wBAAA;;;;;;;;;;;;aAM/B,MAAA;AAAA;;;;;;;;;;;;;;;eAAA,MAAA;EAAA;AAAA"}
|