@keystrokehq/finmei 0.1.5 → 0.1.6
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 +1 -0
- package/dist/actions/create-expense.cjs.map +1 -1
- package/dist/actions/create-expense.d.cts +3 -23
- package/dist/actions/create-expense.d.cts.map +1 -1
- package/dist/actions/create-expense.d.mts +3 -23
- package/dist/actions/create-expense.d.mts.map +1 -1
- package/dist/actions/create-expense.mjs +1 -0
- package/dist/actions/create-expense.mjs.map +1 -1
- package/dist/actions/create-invoice.cjs +1 -0
- package/dist/actions/create-invoice.cjs.map +1 -1
- package/dist/actions/create-invoice.d.cts +3 -57
- package/dist/actions/create-invoice.d.cts.map +1 -1
- package/dist/actions/create-invoice.d.mts +3 -57
- package/dist/actions/create-invoice.d.mts.map +1 -1
- package/dist/actions/create-invoice.mjs +1 -0
- package/dist/actions/create-invoice.mjs.map +1 -1
- package/dist/actions/delete-customer.cjs +1 -0
- package/dist/actions/delete-customer.cjs.map +1 -1
- package/dist/actions/delete-customer.d.cts +3 -15
- package/dist/actions/delete-customer.d.cts.map +1 -1
- package/dist/actions/delete-customer.d.mts +3 -15
- package/dist/actions/delete-customer.d.mts.map +1 -1
- package/dist/actions/delete-customer.mjs +1 -0
- package/dist/actions/delete-customer.mjs.map +1 -1
- package/dist/actions/delete-invoice.cjs +1 -0
- package/dist/actions/delete-invoice.cjs.map +1 -1
- package/dist/actions/delete-invoice.d.cts +3 -15
- package/dist/actions/delete-invoice.d.cts.map +1 -1
- package/dist/actions/delete-invoice.d.mts +3 -15
- package/dist/actions/delete-invoice.d.mts.map +1 -1
- package/dist/actions/delete-invoice.mjs +1 -0
- package/dist/actions/delete-invoice.mjs.map +1 -1
- package/dist/actions/delete-payment.cjs +1 -0
- package/dist/actions/delete-payment.cjs.map +1 -1
- package/dist/actions/delete-payment.d.cts +3 -15
- package/dist/actions/delete-payment.d.cts.map +1 -1
- package/dist/actions/delete-payment.d.mts +3 -15
- package/dist/actions/delete-payment.d.mts.map +1 -1
- package/dist/actions/delete-payment.mjs +1 -0
- package/dist/actions/delete-payment.mjs.map +1 -1
- package/dist/actions/delete-product.cjs +1 -0
- package/dist/actions/delete-product.cjs.map +1 -1
- package/dist/actions/delete-product.d.cts +3 -15
- package/dist/actions/delete-product.d.cts.map +1 -1
- package/dist/actions/delete-product.d.mts +3 -15
- package/dist/actions/delete-product.d.mts.map +1 -1
- package/dist/actions/delete-product.mjs +1 -0
- package/dist/actions/delete-product.mjs.map +1 -1
- package/dist/actions/download-expense-file.cjs +1 -0
- package/dist/actions/download-expense-file.cjs.map +1 -1
- package/dist/actions/download-expense-file.d.cts +3 -15
- package/dist/actions/download-expense-file.d.cts.map +1 -1
- package/dist/actions/download-expense-file.d.mts +3 -15
- package/dist/actions/download-expense-file.d.mts.map +1 -1
- package/dist/actions/download-expense-file.mjs +1 -0
- package/dist/actions/download-expense-file.mjs.map +1 -1
- package/dist/actions/download-invoice-pdf.cjs +1 -0
- package/dist/actions/download-invoice-pdf.cjs.map +1 -1
- package/dist/actions/download-invoice-pdf.d.cts +3 -15
- package/dist/actions/download-invoice-pdf.d.cts.map +1 -1
- package/dist/actions/download-invoice-pdf.d.mts +3 -15
- package/dist/actions/download-invoice-pdf.d.mts.map +1 -1
- package/dist/actions/download-invoice-pdf.mjs +1 -0
- package/dist/actions/download-invoice-pdf.mjs.map +1 -1
- package/dist/actions/get-expense.cjs +1 -0
- package/dist/actions/get-expense.cjs.map +1 -1
- package/dist/actions/get-expense.d.cts +3 -15
- package/dist/actions/get-expense.d.cts.map +1 -1
- package/dist/actions/get-expense.d.mts +3 -15
- package/dist/actions/get-expense.d.mts.map +1 -1
- package/dist/actions/get-expense.mjs +1 -0
- package/dist/actions/get-expense.mjs.map +1 -1
- package/dist/actions/get-invoice.cjs +1 -0
- package/dist/actions/get-invoice.cjs.map +1 -1
- package/dist/actions/get-invoice.d.cts +3 -15
- package/dist/actions/get-invoice.d.cts.map +1 -1
- package/dist/actions/get-invoice.d.mts +3 -15
- package/dist/actions/get-invoice.d.mts.map +1 -1
- package/dist/actions/get-invoice.mjs +1 -0
- package/dist/actions/get-invoice.mjs.map +1 -1
- package/dist/actions/get-payment.cjs +1 -0
- package/dist/actions/get-payment.cjs.map +1 -1
- package/dist/actions/get-payment.d.cts +3 -15
- package/dist/actions/get-payment.d.cts.map +1 -1
- package/dist/actions/get-payment.d.mts +3 -15
- package/dist/actions/get-payment.d.mts.map +1 -1
- package/dist/actions/get-payment.mjs +1 -0
- package/dist/actions/get-payment.mjs.map +1 -1
- package/dist/actions/get-product.cjs +1 -0
- package/dist/actions/get-product.cjs.map +1 -1
- package/dist/actions/get-product.d.cts +3 -15
- package/dist/actions/get-product.d.cts.map +1 -1
- package/dist/actions/get-product.d.mts +3 -15
- package/dist/actions/get-product.d.mts.map +1 -1
- package/dist/actions/get-product.mjs +1 -0
- package/dist/actions/get-product.mjs.map +1 -1
- package/dist/actions/get-profile.cjs +1 -0
- package/dist/actions/get-profile.cjs.map +1 -1
- package/dist/actions/get-profile.d.cts +3 -13
- package/dist/actions/get-profile.d.cts.map +1 -1
- package/dist/actions/get-profile.d.mts +3 -13
- package/dist/actions/get-profile.d.mts.map +1 -1
- package/dist/actions/get-profile.mjs +1 -0
- package/dist/actions/get-profile.mjs.map +1 -1
- package/dist/actions/list-currencies.cjs +1 -0
- package/dist/actions/list-currencies.cjs.map +1 -1
- package/dist/actions/list-currencies.d.cts +3 -13
- package/dist/actions/list-currencies.d.cts.map +1 -1
- package/dist/actions/list-currencies.d.mts +3 -13
- package/dist/actions/list-currencies.d.mts.map +1 -1
- package/dist/actions/list-currencies.mjs +1 -0
- package/dist/actions/list-currencies.mjs.map +1 -1
- package/dist/actions/list-customers.cjs +1 -0
- package/dist/actions/list-customers.cjs.map +1 -1
- package/dist/actions/list-customers.d.cts +3 -18
- package/dist/actions/list-customers.d.cts.map +1 -1
- package/dist/actions/list-customers.d.mts +3 -18
- package/dist/actions/list-customers.d.mts.map +1 -1
- package/dist/actions/list-customers.mjs +1 -0
- package/dist/actions/list-customers.mjs.map +1 -1
- package/dist/actions/list-expenses.cjs +1 -0
- package/dist/actions/list-expenses.cjs.map +1 -1
- package/dist/actions/list-expenses.d.cts +3 -16
- package/dist/actions/list-expenses.d.cts.map +1 -1
- package/dist/actions/list-expenses.d.mts +3 -16
- package/dist/actions/list-expenses.d.mts.map +1 -1
- package/dist/actions/list-expenses.mjs +1 -0
- package/dist/actions/list-expenses.mjs.map +1 -1
- package/dist/actions/list-invoices.cjs +1 -0
- package/dist/actions/list-invoices.cjs.map +1 -1
- package/dist/actions/list-invoices.d.cts +3 -16
- package/dist/actions/list-invoices.d.cts.map +1 -1
- package/dist/actions/list-invoices.d.mts +3 -16
- package/dist/actions/list-invoices.d.mts.map +1 -1
- package/dist/actions/list-invoices.mjs +1 -0
- package/dist/actions/list-invoices.mjs.map +1 -1
- package/dist/actions/list-payments.cjs +1 -0
- package/dist/actions/list-payments.cjs.map +1 -1
- package/dist/actions/list-payments.d.cts +3 -19
- package/dist/actions/list-payments.d.cts.map +1 -1
- package/dist/actions/list-payments.d.mts +3 -19
- package/dist/actions/list-payments.d.mts.map +1 -1
- package/dist/actions/list-payments.mjs +1 -0
- package/dist/actions/list-payments.mjs.map +1 -1
- package/dist/actions/list-products.cjs +1 -0
- package/dist/actions/list-products.cjs.map +1 -1
- package/dist/actions/list-products.d.cts +3 -18
- package/dist/actions/list-products.d.cts.map +1 -1
- package/dist/actions/list-products.d.mts +3 -18
- package/dist/actions/list-products.d.mts.map +1 -1
- package/dist/actions/list-products.mjs +1 -0
- package/dist/actions/list-products.mjs.map +1 -1
- package/dist/actions/update-customer.cjs +1 -0
- package/dist/actions/update-customer.cjs.map +1 -1
- package/dist/actions/update-customer.d.cts +3 -26
- package/dist/actions/update-customer.d.cts.map +1 -1
- package/dist/actions/update-customer.d.mts +3 -26
- package/dist/actions/update-customer.d.mts.map +1 -1
- package/dist/actions/update-customer.mjs +1 -0
- package/dist/actions/update-customer.mjs.map +1 -1
- package/dist/actions/update-expense-file.cjs +1 -0
- package/dist/actions/update-expense-file.cjs.map +1 -1
- package/dist/actions/update-expense-file.d.cts +3 -20
- package/dist/actions/update-expense-file.d.cts.map +1 -1
- package/dist/actions/update-expense-file.d.mts +3 -20
- package/dist/actions/update-expense-file.d.mts.map +1 -1
- package/dist/actions/update-expense-file.mjs +1 -0
- package/dist/actions/update-expense-file.mjs.map +1 -1
- package/dist/actions/update-expense.cjs +1 -0
- package/dist/actions/update-expense.cjs.map +1 -1
- package/dist/actions/update-expense.d.cts +3 -19
- package/dist/actions/update-expense.d.cts.map +1 -1
- package/dist/actions/update-expense.d.mts +3 -19
- package/dist/actions/update-expense.d.mts.map +1 -1
- package/dist/actions/update-expense.mjs +1 -0
- package/dist/actions/update-expense.mjs.map +1 -1
- package/dist/actions/update-invoice.cjs +1 -0
- package/dist/actions/update-invoice.cjs.map +1 -1
- package/dist/actions/update-invoice.d.cts +3 -53
- package/dist/actions/update-invoice.d.cts.map +1 -1
- package/dist/actions/update-invoice.d.mts +3 -53
- package/dist/actions/update-invoice.d.mts.map +1 -1
- package/dist/actions/update-invoice.mjs +1 -0
- package/dist/actions/update-invoice.mjs.map +1 -1
- package/dist/actions/update-product.cjs +1 -0
- package/dist/actions/update-product.cjs.map +1 -1
- package/dist/actions/update-product.d.cts +3 -19
- package/dist/actions/update-product.d.cts.map +1 -1
- package/dist/actions/update-product.d.mts +3 -19
- package/dist/actions/update-product.d.mts.map +1 -1
- package/dist/actions/update-product.mjs +1 -0
- package/dist/actions/update-product.mjs.map +1 -1
- package/dist/app.cjs +2 -2
- package/dist/app.cjs.map +1 -1
- package/dist/app.d.cts +4 -6
- package/dist/app.d.cts.map +1 -1
- package/dist/app.d.mts +4 -6
- package/dist/app.d.mts.map +1 -1
- package/dist/app.mjs +0 -1
- package/dist/app.mjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/package.json +2 -2
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { finmei } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/list-payments.d.ts
|
|
@@ -28,25 +30,7 @@ declare const FinmeiListPaymentsOutput: z.ZodObject<{
|
|
|
28
30
|
updated_at: z.ZodNullable<z.ZodString>;
|
|
29
31
|
}, z.core.$loose>>>>;
|
|
30
32
|
}, z.core.$loose>;
|
|
31
|
-
declare const finmeiListPayments:
|
|
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
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"finmei", z.ZodObject<{
|
|
38
|
-
connectionId: z.ZodString;
|
|
39
|
-
entityId: z.ZodString;
|
|
40
|
-
instanceId: z.ZodString;
|
|
41
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
42
|
-
generic_api_key: z.ZodString;
|
|
43
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"finmei", z.ZodObject<{
|
|
44
|
-
connectionId: z.ZodString;
|
|
45
|
-
entityId: z.ZodString;
|
|
46
|
-
instanceId: z.ZodString;
|
|
47
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
48
|
-
generic_api_key: z.ZodString;
|
|
49
|
-
}, z.core.$strip>>]>;
|
|
33
|
+
declare const finmeiListPayments: AppAction<typeof FinmeiListPaymentsInput, typeof FinmeiListPaymentsOutput, typeof finmei.credential>;
|
|
50
34
|
//#endregion
|
|
51
35
|
export { finmeiListPayments };
|
|
52
36
|
//# sourceMappingURL=list-payments.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-payments.d.cts","names":[],"sources":["../../src/actions/list-payments.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-payments.d.cts","names":[],"sources":["../../src/actions/list-payments.ts"],"mappings":";;;;;cAMa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;cAkBvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAOxB,kBAAA,EAAoB,SAAA,QACxB,uBAAA,SACA,wBAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { finmei } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/list-payments.d.ts
|
|
@@ -28,25 +30,7 @@ declare const FinmeiListPaymentsOutput: z.ZodObject<{
|
|
|
28
30
|
updated_at: z.ZodNullable<z.ZodString>;
|
|
29
31
|
}, z.core.$loose>>>>;
|
|
30
32
|
}, z.core.$loose>;
|
|
31
|
-
declare const finmeiListPayments:
|
|
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
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"finmei", z.ZodObject<{
|
|
38
|
-
connectionId: z.ZodString;
|
|
39
|
-
entityId: z.ZodString;
|
|
40
|
-
instanceId: z.ZodString;
|
|
41
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
42
|
-
generic_api_key: z.ZodString;
|
|
43
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"finmei", z.ZodObject<{
|
|
44
|
-
connectionId: z.ZodString;
|
|
45
|
-
entityId: z.ZodString;
|
|
46
|
-
instanceId: z.ZodString;
|
|
47
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
48
|
-
generic_api_key: z.ZodString;
|
|
49
|
-
}, z.core.$strip>>]>;
|
|
33
|
+
declare const finmeiListPayments: AppAction<typeof FinmeiListPaymentsInput, typeof FinmeiListPaymentsOutput, typeof finmei.credential>;
|
|
50
34
|
//#endregion
|
|
51
35
|
export { finmeiListPayments };
|
|
52
36
|
//# sourceMappingURL=list-payments.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-payments.d.mts","names":[],"sources":["../../src/actions/list-payments.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-payments.d.mts","names":[],"sources":["../../src/actions/list-payments.ts"],"mappings":";;;;;cAMa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;cAkBvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAOxB,kBAAA,EAAoB,SAAA,QACxB,uBAAA,SACA,wBAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-payments.mjs","names":[],"sources":["../../src/actions/list-payments.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiListPaymentsInput = z.object({\n limit: z.number().int().default(20).describe(\"Number of payments to retrieve (default 20, max 100)\").optional(),\n offset: z.number().int().default(0).describe(\"Number of payments to skip for pagination\").optional(),\n status: z.enum([\"pending\", \"completed\", \"failed\"]).describe(\"Filter payments by status\").optional(),\n end_date: z.string().describe(\"Filter payments created on or before this date (ISO 8601 format)\").optional(),\n start_date: z.string().describe(\"Filter payments created on or after this date (ISO 8601 format)\").optional(),\n}).describe(\"Request model for listing payments with optional filters and pagination.\");\nconst FinmeiListPayments_PaymentItemSchema = z.object({\n id: z.string().describe(\"Unique identifier of the payment\").nullable(),\n date: z.string().describe(\"Date of the payment in ISO 8601 format\").nullable(),\n mode: z.string().describe(\"Mode of the payment, e.g., bank_transfer, cash\").nullable(),\n notes: z.string().describe(\"Notes attached to the payment\").nullable().optional(),\n amount: z.number().describe(\"Amount of the payment\").nullable(),\n reference: z.string().describe(\"Payment reference provided\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the payment was created\").nullable(),\n invoice_id: z.string().describe(\"ID of the invoice associated with the payment\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when the payment was last updated\").nullable(),\n}).passthrough().describe(\"Single payment object as returned in the list\");\nexport const FinmeiListPaymentsOutput = z.object({\n limit: z.number().int().describe(\"Number of payments requested per page\").nullable().optional(),\n total: z.number().int().describe(\"Total number of payments available\").nullable().optional(),\n offset: z.number().int().describe(\"Pagination offset used in the request\").nullable().optional(),\n payments: z.array(FinmeiListPayments_PaymentItemSchema).describe(\"List of payment objects\").nullable().optional(),\n}).passthrough().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":"
|
|
1
|
+
{"version":3,"file":"list-payments.mjs","names":[],"sources":["../../src/actions/list-payments.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { finmei } from \"../app\";\n\nexport const FinmeiListPaymentsInput = z.object({\n limit: z.number().int().default(20).describe(\"Number of payments to retrieve (default 20, max 100)\").optional(),\n offset: z.number().int().default(0).describe(\"Number of payments to skip for pagination\").optional(),\n status: z.enum([\"pending\", \"completed\", \"failed\"]).describe(\"Filter payments by status\").optional(),\n end_date: z.string().describe(\"Filter payments created on or before this date (ISO 8601 format)\").optional(),\n start_date: z.string().describe(\"Filter payments created on or after this date (ISO 8601 format)\").optional(),\n}).describe(\"Request model for listing payments with optional filters and pagination.\");\nconst FinmeiListPayments_PaymentItemSchema = z.object({\n id: z.string().describe(\"Unique identifier of the payment\").nullable(),\n date: z.string().describe(\"Date of the payment in ISO 8601 format\").nullable(),\n mode: z.string().describe(\"Mode of the payment, e.g., bank_transfer, cash\").nullable(),\n notes: z.string().describe(\"Notes attached to the payment\").nullable().optional(),\n amount: z.number().describe(\"Amount of the payment\").nullable(),\n reference: z.string().describe(\"Payment reference provided\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the payment was created\").nullable(),\n invoice_id: z.string().describe(\"ID of the invoice associated with the payment\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when the payment was last updated\").nullable(),\n}).passthrough().describe(\"Single payment object as returned in the list\");\nexport const FinmeiListPaymentsOutput = z.object({\n limit: z.number().int().describe(\"Number of payments requested per page\").nullable().optional(),\n total: z.number().int().describe(\"Total number of payments available\").nullable().optional(),\n offset: z.number().int().describe(\"Pagination offset used in the request\").nullable().optional(),\n payments: z.array(FinmeiListPayments_PaymentItemSchema).describe(\"List of payment objects\").nullable().optional(),\n}).passthrough().describe(\"Response model for listing payments, including pagination metadata.\");\n\nexport const finmeiListPayments: AppAction<\n typeof FinmeiListPaymentsInput,\n typeof FinmeiListPaymentsOutput,\n typeof finmei.credential\n> = 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":";;;;AAMA,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,KA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;EAC9F,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3F,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/F,UAAU,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qEAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-products.cjs","names":["z","action"],"sources":["../../src/actions/list-products.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiListProductsInput = z.object({\n name: z.string().describe(\"Filter products by name substring.\").optional(),\n page: z.number().int().default(1).describe(\"Page number for pagination (1-indexed).\").optional(),\n status: z.enum([\"active\", \"inactive\"]).describe(\"Filter products by their status.\").optional(),\n per_page: z.number().int().default(20).describe(\"Number of products per page.\").optional(),\n}).describe(\"Optional filters and pagination for listing products.\");\nconst FinmeiListProducts_ProductSchema = z.object({\n id: z.string().describe(\"Unique identifier of the product\").nullable(),\n name: z.string().describe(\"Name of the product\").nullable(),\n price: z.number().describe(\"Price of the product in the account's currency\").nullable(),\n status: z.enum([\"active\", \"inactive\"]).describe(\"Current status of the product\").nullable(),\n created_at: z.string().describe(\"ISO 8601 timestamp when the product was created\").nullable().optional(),\n updated_at: z.string().describe(\"ISO 8601 timestamp when the product was last updated\").nullable().optional(),\n description: z.string().describe(\"Description of the product\").nullable().optional(),\n}).passthrough().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}).passthrough().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}).passthrough().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":"
|
|
1
|
+
{"version":3,"file":"list-products.cjs","names":["z","action"],"sources":["../../src/actions/list-products.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { finmei } from \"../app\";\n\nexport const FinmeiListProductsInput = z.object({\n name: z.string().describe(\"Filter products by name substring.\").optional(),\n page: z.number().int().default(1).describe(\"Page number for pagination (1-indexed).\").optional(),\n status: z.enum([\"active\", \"inactive\"]).describe(\"Filter products by their status.\").optional(),\n per_page: z.number().int().default(20).describe(\"Number of products per page.\").optional(),\n}).describe(\"Optional filters and pagination for listing products.\");\nconst FinmeiListProducts_ProductSchema = z.object({\n id: z.string().describe(\"Unique identifier of the product\").nullable(),\n name: z.string().describe(\"Name of the product\").nullable(),\n price: z.number().describe(\"Price of the product in the account's currency\").nullable(),\n status: z.enum([\"active\", \"inactive\"]).describe(\"Current status of the product\").nullable(),\n created_at: z.string().describe(\"ISO 8601 timestamp when the product was created\").nullable().optional(),\n updated_at: z.string().describe(\"ISO 8601 timestamp when the product was last updated\").nullable().optional(),\n description: z.string().describe(\"Description of the product\").nullable().optional(),\n}).passthrough().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}).passthrough().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}).passthrough().describe(\"Response schema when listing products\");\n\nexport const finmeiListProducts: AppAction<\n typeof FinmeiListProductsInput,\n typeof FinmeiListProductsOutput,\n typeof finmei.credential\n> = 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":";;;;AAMA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACzE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC/F,QAAQA,IAAAA,EAAE,KAAK,CAAC,UAAU,UAAU,CAAC,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAC7F,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;AAC3F,CAAC,CAAC,CAAC,SAAS,uDAAuD;AACnE,MAAM,mCAAmCA,IAAAA,EAAE,OAAO;CAChD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CACrE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;C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AAwB;CACjC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { finmei } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/list-products.d.ts
|
|
@@ -30,24 +32,7 @@ declare const FinmeiListProductsOutput: z.ZodObject<{
|
|
|
30
32
|
total_pages: z.ZodNullable<z.ZodNumber>;
|
|
31
33
|
}, z.core.$loose>>;
|
|
32
34
|
}, z.core.$loose>;
|
|
33
|
-
declare const finmeiListProducts:
|
|
34
|
-
name?: string | undefined;
|
|
35
|
-
page?: number | undefined;
|
|
36
|
-
status?: "active" | "inactive" | undefined;
|
|
37
|
-
per_page?: number | undefined;
|
|
38
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"finmei", z.ZodObject<{
|
|
39
|
-
connectionId: z.ZodString;
|
|
40
|
-
entityId: z.ZodString;
|
|
41
|
-
instanceId: z.ZodString;
|
|
42
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
43
|
-
generic_api_key: z.ZodString;
|
|
44
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"finmei", z.ZodObject<{
|
|
45
|
-
connectionId: z.ZodString;
|
|
46
|
-
entityId: z.ZodString;
|
|
47
|
-
instanceId: z.ZodString;
|
|
48
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
49
|
-
generic_api_key: z.ZodString;
|
|
50
|
-
}, z.core.$strip>>]>;
|
|
35
|
+
declare const finmeiListProducts: AppAction<typeof FinmeiListProductsInput, typeof FinmeiListProductsOutput, typeof finmei.credential>;
|
|
51
36
|
//#endregion
|
|
52
37
|
export { finmeiListProducts };
|
|
53
38
|
//# sourceMappingURL=list-products.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-products.d.cts","names":[],"sources":["../../src/actions/list-products.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-products.d.cts","names":[],"sources":["../../src/actions/list-products.ts"],"mappings":";;;;;cAMa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;cAqBvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAKxB,kBAAA,EAAoB,SAAA,QACxB,uBAAA,SACA,wBAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { finmei } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/list-products.d.ts
|
|
@@ -30,24 +32,7 @@ declare const FinmeiListProductsOutput: z.ZodObject<{
|
|
|
30
32
|
total_pages: z.ZodNullable<z.ZodNumber>;
|
|
31
33
|
}, z.core.$loose>>;
|
|
32
34
|
}, z.core.$loose>;
|
|
33
|
-
declare const finmeiListProducts:
|
|
34
|
-
name?: string | undefined;
|
|
35
|
-
page?: number | undefined;
|
|
36
|
-
status?: "active" | "inactive" | undefined;
|
|
37
|
-
per_page?: number | undefined;
|
|
38
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"finmei", z.ZodObject<{
|
|
39
|
-
connectionId: z.ZodString;
|
|
40
|
-
entityId: z.ZodString;
|
|
41
|
-
instanceId: z.ZodString;
|
|
42
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
43
|
-
generic_api_key: z.ZodString;
|
|
44
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"finmei", z.ZodObject<{
|
|
45
|
-
connectionId: z.ZodString;
|
|
46
|
-
entityId: z.ZodString;
|
|
47
|
-
instanceId: z.ZodString;
|
|
48
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
49
|
-
generic_api_key: z.ZodString;
|
|
50
|
-
}, z.core.$strip>>]>;
|
|
35
|
+
declare const finmeiListProducts: AppAction<typeof FinmeiListProductsInput, typeof FinmeiListProductsOutput, typeof finmei.credential>;
|
|
51
36
|
//#endregion
|
|
52
37
|
export { finmeiListProducts };
|
|
53
38
|
//# sourceMappingURL=list-products.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-products.d.mts","names":[],"sources":["../../src/actions/list-products.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-products.d.mts","names":[],"sources":["../../src/actions/list-products.ts"],"mappings":";;;;;cAMa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;cAqBvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAKxB,kBAAA,EAAoB,SAAA,QACxB,uBAAA,SACA,wBAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-products.mjs","names":[],"sources":["../../src/actions/list-products.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiListProductsInput = z.object({\n name: z.string().describe(\"Filter products by name substring.\").optional(),\n page: z.number().int().default(1).describe(\"Page number for pagination (1-indexed).\").optional(),\n status: z.enum([\"active\", \"inactive\"]).describe(\"Filter products by their status.\").optional(),\n per_page: z.number().int().default(20).describe(\"Number of products per page.\").optional(),\n}).describe(\"Optional filters and pagination for listing products.\");\nconst FinmeiListProducts_ProductSchema = z.object({\n id: z.string().describe(\"Unique identifier of the product\").nullable(),\n name: z.string().describe(\"Name of the product\").nullable(),\n price: z.number().describe(\"Price of the product in the account's currency\").nullable(),\n status: z.enum([\"active\", \"inactive\"]).describe(\"Current status of the product\").nullable(),\n created_at: z.string().describe(\"ISO 8601 timestamp when the product was created\").nullable().optional(),\n updated_at: z.string().describe(\"ISO 8601 timestamp when the product was last updated\").nullable().optional(),\n description: z.string().describe(\"Description of the product\").nullable().optional(),\n}).passthrough().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}).passthrough().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}).passthrough().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":"
|
|
1
|
+
{"version":3,"file":"list-products.mjs","names":[],"sources":["../../src/actions/list-products.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { finmei } from \"../app\";\n\nexport const FinmeiListProductsInput = z.object({\n name: z.string().describe(\"Filter products by name substring.\").optional(),\n page: z.number().int().default(1).describe(\"Page number for pagination (1-indexed).\").optional(),\n status: z.enum([\"active\", \"inactive\"]).describe(\"Filter products by their status.\").optional(),\n per_page: z.number().int().default(20).describe(\"Number of products per page.\").optional(),\n}).describe(\"Optional filters and pagination for listing products.\");\nconst FinmeiListProducts_ProductSchema = z.object({\n id: z.string().describe(\"Unique identifier of the product\").nullable(),\n name: z.string().describe(\"Name of the product\").nullable(),\n price: z.number().describe(\"Price of the product in the account's currency\").nullable(),\n status: z.enum([\"active\", \"inactive\"]).describe(\"Current status of the product\").nullable(),\n created_at: z.string().describe(\"ISO 8601 timestamp when the product was created\").nullable().optional(),\n updated_at: z.string().describe(\"ISO 8601 timestamp when the product was last updated\").nullable().optional(),\n description: z.string().describe(\"Description of the product\").nullable().optional(),\n}).passthrough().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}).passthrough().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}).passthrough().describe(\"Response schema when listing products\");\n\nexport const finmeiListProducts: AppAction<\n typeof FinmeiListProductsInput,\n typeof FinmeiListProductsOutput,\n typeof finmei.credential\n> = 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":";;;;AAMA,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,CAA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,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAWhB;AACV,CAAC"}
|
|
@@ -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 = 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.string().describe(\"City of the customer's address\").nullable().optional(),\n state: z.string().describe(\"State or province of the customer's address\").nullable().optional(),\n street: z.string().describe(\"Street address of the customer\").nullable().optional(),\n country: z.string().describe(\"Country code (ISO 3166-1 alpha-2)\").nullable().optional(),\n postal_code: z.string().describe(\"Postal or ZIP code of the customer's address\").nullable().optional(),\n}).passthrough().describe(\"Mailing address details\");\nconst FinmeiUpdateCustomer_CustomerSchema = z.object({\n id: z.string().describe(\"Unique identifier of the customer\").nullable(),\n name: z.string().describe(\"Full name of the customer\").nullable().optional(),\n email: z.string().describe(\"Email address of the customer\").nullable().optional(),\n phone: z.string().describe(\"Phone number of the customer\").nullable().optional(),\n address: FinmeiUpdateCustomer_AddressSchema.nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Additional metadata associated with the customer\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the customer was created\").nullable(),\n updated_at: z.string().describe(\"Timestamp when the customer was last updated\").nullable(),\n}).passthrough();\nexport const FinmeiUpdateCustomerOutput = z.object({\n customer: FinmeiUpdateCustomer_CustomerSchema.nullable(),\n}).passthrough().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":"
|
|
1
|
+
{"version":3,"file":"update-customer.cjs","names":["z","action"],"sources":["../../src/actions/update-customer.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { finmei } from \"../app\";\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.string().describe(\"City of the customer's address\").nullable().optional(),\n state: z.string().describe(\"State or province of the customer's address\").nullable().optional(),\n street: z.string().describe(\"Street address of the customer\").nullable().optional(),\n country: z.string().describe(\"Country code (ISO 3166-1 alpha-2)\").nullable().optional(),\n postal_code: z.string().describe(\"Postal or ZIP code of the customer's address\").nullable().optional(),\n}).passthrough().describe(\"Mailing address details\");\nconst FinmeiUpdateCustomer_CustomerSchema = z.object({\n id: z.string().describe(\"Unique identifier of the customer\").nullable(),\n name: z.string().describe(\"Full name of the customer\").nullable().optional(),\n email: z.string().describe(\"Email address of the customer\").nullable().optional(),\n phone: z.string().describe(\"Phone number of the customer\").nullable().optional(),\n address: FinmeiUpdateCustomer_AddressSchema.nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Additional metadata associated with the customer\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the customer was created\").nullable(),\n updated_at: z.string().describe(\"Timestamp when the customer was last updated\").nullable(),\n}).passthrough();\nexport const FinmeiUpdateCustomerOutput = z.object({\n customer: FinmeiUpdateCustomer_CustomerSchema.nullable(),\n}).passthrough().describe(\"Response model containing the updated customer record\");\n\nexport const finmeiUpdateCustomer: AppAction<\n typeof FinmeiUpdateCustomerInput,\n typeof FinmeiUpdateCustomerOutput,\n typeof finmei.credential\n> = 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":";;;;AAMA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAChE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACrE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACpE,SAASA,IAAAA,EAAE,OAAO;EAClB,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;EACrE,OAAOA,IAAAA,E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,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACtE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,SAAS,mCAAmC,SAAS,CAAC,CAAC,SAAS;CAChE,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7H,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CACpF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;AAC3F,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,UAAU,oCAAoC,SAAS,EACzD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uDAAuD;AAEjF,MAAa,uBAITC,eAAAA,OAAO,0BAA0B;CACnC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { finmei } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/update-customer.d.ts
|
|
@@ -33,32 +35,7 @@ declare const FinmeiUpdateCustomerOutput: z.ZodObject<{
|
|
|
33
35
|
updated_at: z.ZodNullable<z.ZodString>;
|
|
34
36
|
}, z.core.$loose>>;
|
|
35
37
|
}, z.core.$loose>;
|
|
36
|
-
declare const finmeiUpdateCustomer:
|
|
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
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"finmei", z.ZodObject<{
|
|
50
|
-
connectionId: z.ZodString;
|
|
51
|
-
entityId: z.ZodString;
|
|
52
|
-
instanceId: z.ZodString;
|
|
53
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
54
|
-
generic_api_key: z.ZodString;
|
|
55
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"finmei", z.ZodObject<{
|
|
56
|
-
connectionId: z.ZodString;
|
|
57
|
-
entityId: z.ZodString;
|
|
58
|
-
instanceId: z.ZodString;
|
|
59
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
60
|
-
generic_api_key: z.ZodString;
|
|
61
|
-
}, z.core.$strip>>]>;
|
|
38
|
+
declare const finmeiUpdateCustomer: AppAction<typeof FinmeiUpdateCustomerInput, typeof FinmeiUpdateCustomerOutput, typeof finmei.credential>;
|
|
62
39
|
//#endregion
|
|
63
40
|
export { finmeiUpdateCustomer };
|
|
64
41
|
//# sourceMappingURL=update-customer.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-customer.d.cts","names":[],"sources":["../../src/actions/update-customer.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-customer.d.cts","names":[],"sources":["../../src/actions/update-customer.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cA+BzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAI1B,oBAAA,EAAsB,SAAA,QAC1B,yBAAA,SACA,0BAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { finmei } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/update-customer.d.ts
|
|
@@ -33,32 +35,7 @@ declare const FinmeiUpdateCustomerOutput: z.ZodObject<{
|
|
|
33
35
|
updated_at: z.ZodNullable<z.ZodString>;
|
|
34
36
|
}, z.core.$loose>>;
|
|
35
37
|
}, z.core.$loose>;
|
|
36
|
-
declare const finmeiUpdateCustomer:
|
|
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
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"finmei", z.ZodObject<{
|
|
50
|
-
connectionId: z.ZodString;
|
|
51
|
-
entityId: z.ZodString;
|
|
52
|
-
instanceId: z.ZodString;
|
|
53
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
54
|
-
generic_api_key: z.ZodString;
|
|
55
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"finmei", z.ZodObject<{
|
|
56
|
-
connectionId: z.ZodString;
|
|
57
|
-
entityId: z.ZodString;
|
|
58
|
-
instanceId: z.ZodString;
|
|
59
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
60
|
-
generic_api_key: z.ZodString;
|
|
61
|
-
}, z.core.$strip>>]>;
|
|
38
|
+
declare const finmeiUpdateCustomer: AppAction<typeof FinmeiUpdateCustomerInput, typeof FinmeiUpdateCustomerOutput, typeof finmei.credential>;
|
|
62
39
|
//#endregion
|
|
63
40
|
export { finmeiUpdateCustomer };
|
|
64
41
|
//# sourceMappingURL=update-customer.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-customer.d.mts","names":[],"sources":["../../src/actions/update-customer.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-customer.d.mts","names":[],"sources":["../../src/actions/update-customer.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cA+BzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAI1B,oBAAA,EAAsB,SAAA,QAC1B,yBAAA,SACA,0BAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-customer.mjs","names":[],"sources":["../../src/actions/update-customer.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiUpdateCustomerInput = 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.string().describe(\"City of the customer's address\").nullable().optional(),\n state: z.string().describe(\"State or province of the customer's address\").nullable().optional(),\n street: z.string().describe(\"Street address of the customer\").nullable().optional(),\n country: z.string().describe(\"Country code (ISO 3166-1 alpha-2)\").nullable().optional(),\n postal_code: z.string().describe(\"Postal or ZIP code of the customer's address\").nullable().optional(),\n}).passthrough().describe(\"Mailing address details\");\nconst FinmeiUpdateCustomer_CustomerSchema = z.object({\n id: z.string().describe(\"Unique identifier of the customer\").nullable(),\n name: z.string().describe(\"Full name of the customer\").nullable().optional(),\n email: z.string().describe(\"Email address of the customer\").nullable().optional(),\n phone: z.string().describe(\"Phone number of the customer\").nullable().optional(),\n address: FinmeiUpdateCustomer_AddressSchema.nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Additional metadata associated with the customer\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the customer was created\").nullable(),\n updated_at: z.string().describe(\"Timestamp when the customer was last updated\").nullable(),\n}).passthrough();\nexport const FinmeiUpdateCustomerOutput = z.object({\n customer: FinmeiUpdateCustomer_CustomerSchema.nullable(),\n}).passthrough().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":"
|
|
1
|
+
{"version":3,"file":"update-customer.mjs","names":[],"sources":["../../src/actions/update-customer.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { finmei } from \"../app\";\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.string().describe(\"City of the customer's address\").nullable().optional(),\n state: z.string().describe(\"State or province of the customer's address\").nullable().optional(),\n street: z.string().describe(\"Street address of the customer\").nullable().optional(),\n country: z.string().describe(\"Country code (ISO 3166-1 alpha-2)\").nullable().optional(),\n postal_code: z.string().describe(\"Postal or ZIP code of the customer's address\").nullable().optional(),\n}).passthrough().describe(\"Mailing address details\");\nconst FinmeiUpdateCustomer_CustomerSchema = z.object({\n id: z.string().describe(\"Unique identifier of the customer\").nullable(),\n name: z.string().describe(\"Full name of the customer\").nullable().optional(),\n email: z.string().describe(\"Email address of the customer\").nullable().optional(),\n phone: z.string().describe(\"Phone number of the customer\").nullable().optional(),\n address: FinmeiUpdateCustomer_AddressSchema.nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Additional metadata associated with the customer\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the customer was created\").nullable(),\n updated_at: z.string().describe(\"Timestamp when the customer was last updated\").nullable(),\n}).passthrough();\nexport const FinmeiUpdateCustomerOutput = z.object({\n customer: FinmeiUpdateCustomer_CustomerSchema.nullable(),\n}).passthrough().describe(\"Response model containing the updated customer record\");\n\nexport const finmeiUpdateCustomer: AppAction<\n typeof FinmeiUpdateCustomerInput,\n typeof FinmeiUpdateCustomerOutput,\n typeof finmei.credential\n> = 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":";;;;AAMA,MAAa,4BAA4B,EAAE,OAAO;CAChD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAChE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACrE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACpE,SAAS,EAAE,OAAO;EAClB,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;EACrE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;EACnF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;EACvE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EAC3E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CAC5F,CAAC,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAC9C,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CACzH,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;AAChF,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAC7D,MAAM,qCAAqC,EAAE,OAAO;CAClD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAA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@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-expense-file.cjs","names":["z","action"],"sources":["../../src/actions/update-expense-file.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiUpdateExpenseFileInput = z.object({\n id: z.string().describe(\"Unique identifier of the expense to update the file for. Must be a valid existing expense ID.\"),\n file: z.object({\n name: z.string().describe(\"The filename that will be used when uploading the file to the destination service\"),\n s3key: z.string().describe(\"The S3 key of a publicly accessible file, typically returned from a previous download action that stored the file in S3. This key references an existing file that can be uploaded to another service.\"),\n mimetype: z.string().describe(\"The MIME type of the file\"),\n}).describe(\"File to upload as the expense attachment (usually PDF or image file of the bill).\"),\n}).describe(\"Request model for updating the file attachment of an existing expense.\\nThis endpoint is used solely for updating the file. Use Update Expense endpoint for updating form fields.\");\nexport const FinmeiUpdateExpenseFileOutput = z.object({\n id: z.string().describe(\"Unique identifier of the expense\").nullable().optional(),\n message: z.string().describe(\"Success message from the API\").nullable().optional(),\n file_url: z.string().describe(\"URL of the uploaded file attachment\").nullable().optional(),\n file_name: z.string().describe(\"Name of the uploaded file\").nullable().optional(),\n updated_at: z.union([z.string(), z.number().int()]).nullable().optional(),\n}).passthrough().describe(\"Response model containing the updated expense details after successful file upload.\");\n\nexport const finmeiUpdateExpenseFile = action(\"FINMEI_UPDATE_EXPENSE_FILE\", {\n slug: \"finmei-update-expense-file\",\n name: \"Update Expense File\",\n description: \"Updates the file attachment of an existing expense in Finmei. Use this action when you need to attach or replace a receipt/invoice file for an expense. This endpoint is specifically for updating the file only - use the Update Expense action for updating other expense fields like amount, date, or description. The file is uploaded using multipart/form-data content type and typically should be a PDF or image file of the bill/receipt.\",\n input: FinmeiUpdateExpenseFileInput,\n output: FinmeiUpdateExpenseFileOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-expense-file.cjs","names":["z","action"],"sources":["../../src/actions/update-expense-file.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { finmei } from \"../app\";\n\nexport const FinmeiUpdateExpenseFileInput = z.object({\n id: z.string().describe(\"Unique identifier of the expense to update the file for. Must be a valid existing expense ID.\"),\n file: z.object({\n name: z.string().describe(\"The filename that will be used when uploading the file to the destination service\"),\n s3key: z.string().describe(\"The S3 key of a publicly accessible file, typically returned from a previous download action that stored the file in S3. This key references an existing file that can be uploaded to another service.\"),\n mimetype: z.string().describe(\"The MIME type of the file\"),\n}).describe(\"File to upload as the expense attachment (usually PDF or image file of the bill).\"),\n}).describe(\"Request model for updating the file attachment of an existing expense.\\nThis endpoint is used solely for updating the file. Use Update Expense endpoint for updating form fields.\");\nexport const FinmeiUpdateExpenseFileOutput = z.object({\n id: z.string().describe(\"Unique identifier of the expense\").nullable().optional(),\n message: z.string().describe(\"Success message from the API\").nullable().optional(),\n file_url: z.string().describe(\"URL of the uploaded file attachment\").nullable().optional(),\n file_name: z.string().describe(\"Name of the uploaded file\").nullable().optional(),\n updated_at: z.union([z.string(), z.number().int()]).nullable().optional(),\n}).passthrough().describe(\"Response model containing the updated expense details after successful file upload.\");\n\nexport const finmeiUpdateExpenseFile: AppAction<\n typeof FinmeiUpdateExpenseFileInput,\n typeof FinmeiUpdateExpenseFileOutput,\n typeof finmei.credential\n> = action(\"FINMEI_UPDATE_EXPENSE_FILE\", {\n slug: \"finmei-update-expense-file\",\n name: \"Update Expense File\",\n description: \"Updates the file attachment of an existing expense in Finmei. Use this action when you need to attach or replace a receipt/invoice file for an expense. This endpoint is specifically for updating the file only - use the Update Expense action for updating other expense fields like amount, date, or description. The file is uploaded using multipart/form-data content type and typically should be a PDF or image file of the bill/receipt.\",\n input: FinmeiUpdateExpenseFileInput,\n output: FinmeiUpdateExpenseFileOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+FAA+F;CACvH,MAAMA,IAAAA,EAAE,OAAO;EACf,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF;EAC7G,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wMAAwM;EACnO,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CAC3D,CAAC,CAAC,CAAC,SAAS,mFAAmF;AAC/F,CAAC,CAAC,CAAC,SAAS,mLAAmL;AAC/L,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,YAAYA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qFAAqF;AAE/G,MAAa,0BAITC,eAAAA,OAAO,8BAA8B;CACvC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { finmei } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/update-expense-file.d.ts
|
|
@@ -16,26 +18,7 @@ declare const FinmeiUpdateExpenseFileOutput: z.ZodObject<{
|
|
|
16
18
|
file_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
19
|
updated_at: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
|
|
18
20
|
}, z.core.$loose>;
|
|
19
|
-
declare const finmeiUpdateExpenseFile:
|
|
20
|
-
id: string;
|
|
21
|
-
file: {
|
|
22
|
-
name: string;
|
|
23
|
-
s3key: string;
|
|
24
|
-
mimetype: string;
|
|
25
|
-
};
|
|
26
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"finmei", z.ZodObject<{
|
|
27
|
-
connectionId: z.ZodString;
|
|
28
|
-
entityId: z.ZodString;
|
|
29
|
-
instanceId: z.ZodString;
|
|
30
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
31
|
-
generic_api_key: z.ZodString;
|
|
32
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"finmei", z.ZodObject<{
|
|
33
|
-
connectionId: z.ZodString;
|
|
34
|
-
entityId: z.ZodString;
|
|
35
|
-
instanceId: z.ZodString;
|
|
36
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
37
|
-
generic_api_key: z.ZodString;
|
|
38
|
-
}, z.core.$strip>>]>;
|
|
21
|
+
declare const finmeiUpdateExpenseFile: AppAction<typeof FinmeiUpdateExpenseFileInput, typeof FinmeiUpdateExpenseFileOutput, typeof finmei.credential>;
|
|
39
22
|
//#endregion
|
|
40
23
|
export { finmeiUpdateExpenseFile };
|
|
41
24
|
//# sourceMappingURL=update-expense-file.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-expense-file.d.cts","names":[],"sources":["../../src/actions/update-expense-file.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-expense-file.d.cts","names":[],"sources":["../../src/actions/update-expense-file.ts"],"mappings":";;;;;cAMa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;cAQ5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;cAQ7B,uBAAA,EAAyB,SAAA,QAC7B,4BAAA,SACA,6BAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { finmei } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/update-expense-file.d.ts
|
|
@@ -16,26 +18,7 @@ declare const FinmeiUpdateExpenseFileOutput: z.ZodObject<{
|
|
|
16
18
|
file_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
19
|
updated_at: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
|
|
18
20
|
}, z.core.$loose>;
|
|
19
|
-
declare const finmeiUpdateExpenseFile:
|
|
20
|
-
id: string;
|
|
21
|
-
file: {
|
|
22
|
-
name: string;
|
|
23
|
-
s3key: string;
|
|
24
|
-
mimetype: string;
|
|
25
|
-
};
|
|
26
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"finmei", z.ZodObject<{
|
|
27
|
-
connectionId: z.ZodString;
|
|
28
|
-
entityId: z.ZodString;
|
|
29
|
-
instanceId: z.ZodString;
|
|
30
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
31
|
-
generic_api_key: z.ZodString;
|
|
32
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"finmei", z.ZodObject<{
|
|
33
|
-
connectionId: z.ZodString;
|
|
34
|
-
entityId: z.ZodString;
|
|
35
|
-
instanceId: z.ZodString;
|
|
36
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
37
|
-
generic_api_key: z.ZodString;
|
|
38
|
-
}, z.core.$strip>>]>;
|
|
21
|
+
declare const finmeiUpdateExpenseFile: AppAction<typeof FinmeiUpdateExpenseFileInput, typeof FinmeiUpdateExpenseFileOutput, typeof finmei.credential>;
|
|
39
22
|
//#endregion
|
|
40
23
|
export { finmeiUpdateExpenseFile };
|
|
41
24
|
//# sourceMappingURL=update-expense-file.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-expense-file.d.mts","names":[],"sources":["../../src/actions/update-expense-file.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-expense-file.d.mts","names":[],"sources":["../../src/actions/update-expense-file.ts"],"mappings":";;;;;cAMa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;cAQ5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;cAQ7B,uBAAA,EAAyB,SAAA,QAC7B,4BAAA,SACA,6BAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-expense-file.mjs","names":[],"sources":["../../src/actions/update-expense-file.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiUpdateExpenseFileInput = z.object({\n id: z.string().describe(\"Unique identifier of the expense to update the file for. Must be a valid existing expense ID.\"),\n file: z.object({\n name: z.string().describe(\"The filename that will be used when uploading the file to the destination service\"),\n s3key: z.string().describe(\"The S3 key of a publicly accessible file, typically returned from a previous download action that stored the file in S3. This key references an existing file that can be uploaded to another service.\"),\n mimetype: z.string().describe(\"The MIME type of the file\"),\n}).describe(\"File to upload as the expense attachment (usually PDF or image file of the bill).\"),\n}).describe(\"Request model for updating the file attachment of an existing expense.\\nThis endpoint is used solely for updating the file. Use Update Expense endpoint for updating form fields.\");\nexport const FinmeiUpdateExpenseFileOutput = z.object({\n id: z.string().describe(\"Unique identifier of the expense\").nullable().optional(),\n message: z.string().describe(\"Success message from the API\").nullable().optional(),\n file_url: z.string().describe(\"URL of the uploaded file attachment\").nullable().optional(),\n file_name: z.string().describe(\"Name of the uploaded file\").nullable().optional(),\n updated_at: z.union([z.string(), z.number().int()]).nullable().optional(),\n}).passthrough().describe(\"Response model containing the updated expense details after successful file upload.\");\n\nexport const finmeiUpdateExpenseFile = action(\"FINMEI_UPDATE_EXPENSE_FILE\", {\n slug: \"finmei-update-expense-file\",\n name: \"Update Expense File\",\n description: \"Updates the file attachment of an existing expense in Finmei. Use this action when you need to attach or replace a receipt/invoice file for an expense. This endpoint is specifically for updating the file only - use the Update Expense action for updating other expense fields like amount, date, or description. The file is uploaded using multipart/form-data content type and typically should be a PDF or image file of the bill/receipt.\",\n input: FinmeiUpdateExpenseFileInput,\n output: FinmeiUpdateExpenseFileOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-expense-file.mjs","names":[],"sources":["../../src/actions/update-expense-file.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { finmei } from \"../app\";\n\nexport const FinmeiUpdateExpenseFileInput = z.object({\n id: z.string().describe(\"Unique identifier of the expense to update the file for. Must be a valid existing expense ID.\"),\n file: z.object({\n name: z.string().describe(\"The filename that will be used when uploading the file to the destination service\"),\n s3key: z.string().describe(\"The S3 key of a publicly accessible file, typically returned from a previous download action that stored the file in S3. This key references an existing file that can be uploaded to another service.\"),\n mimetype: z.string().describe(\"The MIME type of the file\"),\n}).describe(\"File to upload as the expense attachment (usually PDF or image file of the bill).\"),\n}).describe(\"Request model for updating the file attachment of an existing expense.\\nThis endpoint is used solely for updating the file. Use Update Expense endpoint for updating form fields.\");\nexport const FinmeiUpdateExpenseFileOutput = z.object({\n id: z.string().describe(\"Unique identifier of the expense\").nullable().optional(),\n message: z.string().describe(\"Success message from the API\").nullable().optional(),\n file_url: z.string().describe(\"URL of the uploaded file attachment\").nullable().optional(),\n file_name: z.string().describe(\"Name of the uploaded file\").nullable().optional(),\n updated_at: z.union([z.string(), z.number().int()]).nullable().optional(),\n}).passthrough().describe(\"Response model containing the updated expense details after successful file upload.\");\n\nexport const finmeiUpdateExpenseFile: AppAction<\n typeof FinmeiUpdateExpenseFileInput,\n typeof FinmeiUpdateExpenseFileOutput,\n typeof finmei.credential\n> = action(\"FINMEI_UPDATE_EXPENSE_FILE\", {\n slug: \"finmei-update-expense-file\",\n name: \"Update Expense File\",\n description: \"Updates the file attachment of an existing expense in Finmei. Use this action when you need to attach or replace a receipt/invoice file for an expense. This endpoint is specifically for updating the file only - use the Update Expense action for updating other expense fields like amount, date, or description. The file is uploaded using multipart/form-data content type and typically should be a PDF or image file of the bill/receipt.\",\n input: FinmeiUpdateExpenseFileInput,\n output: FinmeiUpdateExpenseFileOutput,\n});\n"],"mappings":";;;AAsBA,MAAa,0BAIT,OAAO,8BAA8B;CACvC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAxB0C,EAAE,OAAO;EACnD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,+FAA+F;EACvH,MAAM,EAAE,OAAO;GACf,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF;GAC7G,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wMAAwM;GACnO,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;EAC3D,CAAC,CAAC,CAAC,SAAS,mFAAmF;CAC/F,CAAC,CAAC,CAAC,SAAS,mLAiBH;CACP,QAjB2C,EAAE,OAAO;EACpD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChF,YAAY,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qFAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-expense.cjs","names":["z","action"],"sources":["../../src/actions/update-expense.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiUpdateExpenseInput = z.object({\n id: z.string().describe(\"Unique identifier of the expense to update. Must be a valid existing expense ID.\"),\n date: z.string().describe(\"Date of the expense in YYYY-MM-DD format. This field is required.\"),\n total: z.number().describe(\"Total amount of the expense. Must be non-negative. This field is required.\"),\n seller: z.string().describe(\"Name of the seller from invoice. This field is required.\"),\n currency: z.string().describe(\"Uppercase three letter currency code (ISO 4217 format). Example: USD, EUR, GBP. This field is required.\"),\n}).describe(\"Request model for updating an existing expense's fields\");\nexport const FinmeiUpdateExpenseOutput = z.object({\n id: z.string().describe(\"Unique identifier of the expense\").nullable(),\n date: z.string().describe(\"Date of the expense after the update\").nullable(),\n total: z.number().describe(\"Total amount of the expense after the update\").nullable(),\n seller: z.string().describe(\"Seller name after the update\").nullable(),\n currency: z.string().describe(\"Currency code of the expense after the update\").nullable(),\n created_at: z.string().describe(\"ISO8601 timestamp when the expense was originally created\").nullable().optional(),\n updated_at: z.string().describe(\"ISO8601 timestamp when the expense was last updated\").nullable().optional(),\n}).passthrough().describe(\"Response model containing the updated expense details after a successful update\");\n\nexport const finmeiUpdateExpense = action(\"FINMEI_UPDATE_EXPENSE\", {\n slug: \"finmei-update-expense\",\n name: \"Update Expense\",\n description: \"Tool to update an existing expense's fields including date, total, currency, and seller. Use when you need to modify expense details. To update the invoice/bill file, use the Update Expense File endpoint instead.\",\n input: FinmeiUpdateExpenseInput,\n output: FinmeiUpdateExpenseOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-expense.cjs","names":["z","action"],"sources":["../../src/actions/update-expense.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { finmei } from \"../app\";\n\nexport const FinmeiUpdateExpenseInput = z.object({\n id: z.string().describe(\"Unique identifier of the expense to update. Must be a valid existing expense ID.\"),\n date: z.string().describe(\"Date of the expense in YYYY-MM-DD format. This field is required.\"),\n total: z.number().describe(\"Total amount of the expense. Must be non-negative. This field is required.\"),\n seller: z.string().describe(\"Name of the seller from invoice. This field is required.\"),\n currency: z.string().describe(\"Uppercase three letter currency code (ISO 4217 format). Example: USD, EUR, GBP. This field is required.\"),\n}).describe(\"Request model for updating an existing expense's fields\");\nexport const FinmeiUpdateExpenseOutput = z.object({\n id: z.string().describe(\"Unique identifier of the expense\").nullable(),\n date: z.string().describe(\"Date of the expense after the update\").nullable(),\n total: z.number().describe(\"Total amount of the expense after the update\").nullable(),\n seller: z.string().describe(\"Seller name after the update\").nullable(),\n currency: z.string().describe(\"Currency code of the expense after the update\").nullable(),\n created_at: z.string().describe(\"ISO8601 timestamp when the expense was originally created\").nullable().optional(),\n updated_at: z.string().describe(\"ISO8601 timestamp when the expense was last updated\").nullable().optional(),\n}).passthrough().describe(\"Response model containing the updated expense details after a successful update\");\n\nexport const finmeiUpdateExpense: AppAction<\n typeof FinmeiUpdateExpenseInput,\n typeof FinmeiUpdateExpenseOutput,\n typeof finmei.credential\n> = action(\"FINMEI_UPDATE_EXPENSE\", {\n slug: \"finmei-update-expense\",\n name: \"Update Expense\",\n description: \"Tool to update an existing expense's fields including date, total, currency, and seller. Use when you need to modify expense details. To update the invoice/bill file, use the Update Expense File endpoint instead.\",\n input: FinmeiUpdateExpenseInput,\n output: FinmeiUpdateExpenseOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kFAAkF;CAC1G,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE;CAC7F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E;CACvG,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D;CACtF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yGAAyG;AACzI,CAAC,CAAC,CAAC,SAAS,yDAAyD;AACrE,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CACrE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC3E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACpF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACrE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACxF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjH,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iFAAiF;AAE3G,MAAa,sBAITC,eAAAA,OAAO,yBAAyB;CAClC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { finmei } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/update-expense.d.ts
|
|
@@ -17,25 +19,7 @@ declare const FinmeiUpdateExpenseOutput: z.ZodObject<{
|
|
|
17
19
|
created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
20
|
updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
21
|
}, z.core.$loose>;
|
|
20
|
-
declare const finmeiUpdateExpense:
|
|
21
|
-
id: string;
|
|
22
|
-
date: string;
|
|
23
|
-
total: number;
|
|
24
|
-
seller: string;
|
|
25
|
-
currency: string;
|
|
26
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"finmei", z.ZodObject<{
|
|
27
|
-
connectionId: z.ZodString;
|
|
28
|
-
entityId: z.ZodString;
|
|
29
|
-
instanceId: z.ZodString;
|
|
30
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
31
|
-
generic_api_key: z.ZodString;
|
|
32
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"finmei", z.ZodObject<{
|
|
33
|
-
connectionId: z.ZodString;
|
|
34
|
-
entityId: z.ZodString;
|
|
35
|
-
instanceId: z.ZodString;
|
|
36
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
37
|
-
generic_api_key: z.ZodString;
|
|
38
|
-
}, z.core.$strip>>]>;
|
|
22
|
+
declare const finmeiUpdateExpense: AppAction<typeof FinmeiUpdateExpenseInput, typeof FinmeiUpdateExpenseOutput, typeof finmei.credential>;
|
|
39
23
|
//#endregion
|
|
40
24
|
export { finmeiUpdateExpense };
|
|
41
25
|
//# sourceMappingURL=update-expense.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-expense.d.cts","names":[],"sources":["../../src/actions/update-expense.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-expense.d.cts","names":[],"sources":["../../src/actions/update-expense.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;cAOxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;cAUzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,MAAA,CAAO,UAAA"}
|