@keystrokehq/finmei 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/create-expense.d.cts +1 -11
- package/dist/actions/create-expense.d.mts +1 -11
- package/dist/actions/create-invoice.cjs +63 -63
- package/dist/actions/create-invoice.cjs.map +1 -1
- package/dist/actions/create-invoice.d.cts +64 -133
- package/dist/actions/create-invoice.d.cts.map +1 -1
- package/dist/actions/create-invoice.d.mts +64 -133
- package/dist/actions/create-invoice.d.mts.map +1 -1
- package/dist/actions/create-invoice.mjs +63 -63
- package/dist/actions/create-invoice.mjs.map +1 -1
- package/dist/actions/delete-customer.d.cts +1 -1
- package/dist/actions/delete-customer.d.cts.map +1 -1
- package/dist/actions/delete-customer.d.mts +1 -1
- package/dist/actions/delete-customer.d.mts.map +1 -1
- package/dist/actions/delete-invoice.cjs +1 -1
- package/dist/actions/delete-invoice.cjs.map +1 -1
- package/dist/actions/delete-invoice.d.cts +2 -5
- package/dist/actions/delete-invoice.d.mts +2 -5
- package/dist/actions/delete-invoice.mjs +1 -1
- package/dist/actions/delete-invoice.mjs.map +1 -1
- package/dist/actions/delete-payment.d.cts +1 -3
- package/dist/actions/delete-payment.d.mts +1 -3
- package/dist/actions/delete-product.cjs +1 -1
- package/dist/actions/delete-product.cjs.map +1 -1
- package/dist/actions/delete-product.d.cts +2 -5
- package/dist/actions/delete-product.d.mts +2 -5
- package/dist/actions/delete-product.mjs +1 -1
- package/dist/actions/delete-product.mjs.map +1 -1
- package/dist/actions/download-expense-file.d.cts +1 -7
- package/dist/actions/download-expense-file.d.mts +1 -7
- package/dist/actions/download-invoice-pdf.d.cts +1 -7
- package/dist/actions/download-invoice-pdf.d.mts +1 -7
- package/dist/actions/get-expense.d.cts +1 -11
- package/dist/actions/get-expense.d.mts +1 -11
- package/dist/actions/get-invoice.cjs +25 -25
- package/dist/actions/get-invoice.cjs.map +1 -1
- package/dist/actions/get-invoice.d.cts +26 -77
- package/dist/actions/get-invoice.d.cts.map +1 -1
- package/dist/actions/get-invoice.d.mts +26 -77
- package/dist/actions/get-invoice.d.mts.map +1 -1
- package/dist/actions/get-invoice.mjs +25 -25
- package/dist/actions/get-invoice.mjs.map +1 -1
- package/dist/actions/get-payment.cjs +2 -2
- package/dist/actions/get-payment.cjs.map +1 -1
- package/dist/actions/get-payment.d.cts +3 -13
- package/dist/actions/get-payment.d.mts +3 -13
- package/dist/actions/get-payment.mjs +2 -2
- package/dist/actions/get-payment.mjs.map +1 -1
- package/dist/actions/get-product.cjs +1 -1
- package/dist/actions/get-product.cjs.map +1 -1
- package/dist/actions/get-product.d.cts +2 -10
- package/dist/actions/get-product.d.mts +2 -10
- package/dist/actions/get-product.mjs +1 -1
- package/dist/actions/get-product.mjs.map +1 -1
- package/dist/actions/get-profile.cjs +7 -7
- package/dist/actions/get-profile.cjs.map +1 -1
- package/dist/actions/get-profile.d.cts +8 -18
- package/dist/actions/get-profile.d.cts.map +1 -1
- package/dist/actions/get-profile.d.mts +8 -18
- package/dist/actions/get-profile.d.mts.map +1 -1
- package/dist/actions/get-profile.mjs +7 -7
- package/dist/actions/get-profile.mjs.map +1 -1
- package/dist/actions/list-currencies.cjs +1 -1
- package/dist/actions/list-currencies.cjs.map +1 -1
- package/dist/actions/list-currencies.d.cts +2 -8
- package/dist/actions/list-currencies.d.cts.map +1 -1
- package/dist/actions/list-currencies.d.mts +2 -8
- package/dist/actions/list-currencies.d.mts.map +1 -1
- package/dist/actions/list-currencies.mjs +1 -1
- package/dist/actions/list-currencies.mjs.map +1 -1
- package/dist/actions/list-customers.cjs +8 -8
- package/dist/actions/list-customers.cjs.map +1 -1
- package/dist/actions/list-customers.d.cts +9 -25
- package/dist/actions/list-customers.d.mts +9 -25
- package/dist/actions/list-customers.mjs +8 -8
- package/dist/actions/list-customers.mjs.map +1 -1
- package/dist/actions/list-expenses.cjs +11 -11
- package/dist/actions/list-expenses.cjs.map +1 -1
- package/dist/actions/list-expenses.d.cts +12 -31
- package/dist/actions/list-expenses.d.mts +12 -31
- package/dist/actions/list-expenses.mjs +11 -11
- package/dist/actions/list-expenses.mjs.map +1 -1
- package/dist/actions/list-invoices.cjs +29 -29
- package/dist/actions/list-invoices.cjs.map +1 -1
- package/dist/actions/list-invoices.d.cts +30 -92
- package/dist/actions/list-invoices.d.cts.map +1 -1
- package/dist/actions/list-invoices.d.mts +30 -92
- package/dist/actions/list-invoices.d.mts.map +1 -1
- package/dist/actions/list-invoices.mjs +29 -29
- package/dist/actions/list-invoices.mjs.map +1 -1
- package/dist/actions/list-payments.cjs +7 -7
- package/dist/actions/list-payments.cjs.map +1 -1
- package/dist/actions/list-payments.d.cts +8 -23
- package/dist/actions/list-payments.d.mts +8 -23
- package/dist/actions/list-payments.mjs +7 -7
- package/dist/actions/list-payments.mjs.map +1 -1
- package/dist/actions/list-products.cjs +3 -3
- package/dist/actions/list-products.cjs.map +1 -1
- package/dist/actions/list-products.d.cts +4 -20
- package/dist/actions/list-products.d.mts +4 -20
- package/dist/actions/list-products.mjs +3 -3
- package/dist/actions/list-products.mjs.map +1 -1
- package/dist/actions/update-customer.cjs +10 -10
- package/dist/actions/update-customer.cjs.map +1 -1
- package/dist/actions/update-customer.d.cts +11 -28
- package/dist/actions/update-customer.d.cts.map +1 -1
- package/dist/actions/update-customer.d.mts +11 -28
- package/dist/actions/update-customer.d.mts.map +1 -1
- package/dist/actions/update-customer.mjs +10 -10
- package/dist/actions/update-customer.mjs.map +1 -1
- package/dist/actions/update-expense-file.cjs +5 -5
- package/dist/actions/update-expense-file.cjs.map +1 -1
- package/dist/actions/update-expense-file.d.cts +6 -12
- package/dist/actions/update-expense-file.d.mts +6 -12
- package/dist/actions/update-expense-file.mjs +5 -5
- package/dist/actions/update-expense-file.mjs.map +1 -1
- package/dist/actions/update-expense.cjs +2 -2
- package/dist/actions/update-expense.cjs.map +1 -1
- package/dist/actions/update-expense.d.cts +3 -11
- package/dist/actions/update-expense.d.mts +3 -11
- package/dist/actions/update-expense.mjs +2 -2
- package/dist/actions/update-expense.mjs.map +1 -1
- package/dist/actions/update-invoice.cjs +52 -52
- package/dist/actions/update-invoice.cjs.map +1 -1
- package/dist/actions/update-invoice.d.cts +53 -109
- package/dist/actions/update-invoice.d.cts.map +1 -1
- package/dist/actions/update-invoice.d.mts +53 -109
- package/dist/actions/update-invoice.d.mts.map +1 -1
- package/dist/actions/update-invoice.mjs +52 -52
- package/dist/actions/update-invoice.mjs.map +1 -1
- package/dist/actions/update-product.cjs +1 -1
- package/dist/actions/update-product.cjs.map +1 -1
- package/dist/actions/update-product.d.cts +2 -10
- package/dist/actions/update-product.d.mts +2 -10
- package/dist/actions/update-product.mjs +1 -1
- package/dist/actions/update-product.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -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.
|
|
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}).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});\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,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACrE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACpE,SAASA,IAAAA,EAAE,OAAO;EAClB,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;EACrE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;EACnF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;EACvE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EAC3E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CAC5F,CAAC,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAC9C,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CACzH,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;AAChF,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAC7D,MAAM,qCAAqCA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvG,CAAC,CAAC,CAAC,SAAS,yBAAyB;AACrC,MAAM,sCAAsCA,IAAAA,EAAE,OAAO;CACnD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,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;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"}
|
|
@@ -18,17 +18,17 @@ declare const FinmeiUpdateCustomerInput: z.ZodObject<{
|
|
|
18
18
|
declare const FinmeiUpdateCustomerOutput: z.ZodObject<{
|
|
19
19
|
customer: z.ZodNullable<z.ZodObject<{
|
|
20
20
|
id: z.ZodNullable<z.ZodString>;
|
|
21
|
-
name: z.
|
|
22
|
-
email: z.
|
|
23
|
-
phone: z.
|
|
24
|
-
address: z.
|
|
25
|
-
city: z.
|
|
26
|
-
state: z.
|
|
27
|
-
street: z.
|
|
28
|
-
country: z.
|
|
29
|
-
postal_code: z.
|
|
21
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
|
+
phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
+
address: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
25
|
+
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
+
state: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
|
+
street: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29
|
+
postal_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
30
30
|
}, z.core.$strip>>>;
|
|
31
|
-
metadata: z.
|
|
31
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
32
32
|
created_at: z.ZodNullable<z.ZodString>;
|
|
33
33
|
updated_at: z.ZodNullable<z.ZodString>;
|
|
34
34
|
}, z.core.$strip>>;
|
|
@@ -46,24 +46,7 @@ declare const finmeiUpdateCustomer: import("@keystrokehq/action").WorkflowAction
|
|
|
46
46
|
postal_code?: string | undefined;
|
|
47
47
|
} | undefined;
|
|
48
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]>;
|
|
49
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
67
50
|
//#endregion
|
|
68
51
|
export { finmeiUpdateCustomer };
|
|
69
52
|
//# 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,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cA+BzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAI1B,oBAAA,gCAAoB,wBAAA;;;;;;;;;;;;aAM/B,MAAA;AAAA
|
|
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"}
|
|
@@ -18,17 +18,17 @@ declare const FinmeiUpdateCustomerInput: z.ZodObject<{
|
|
|
18
18
|
declare const FinmeiUpdateCustomerOutput: z.ZodObject<{
|
|
19
19
|
customer: z.ZodNullable<z.ZodObject<{
|
|
20
20
|
id: z.ZodNullable<z.ZodString>;
|
|
21
|
-
name: z.
|
|
22
|
-
email: z.
|
|
23
|
-
phone: z.
|
|
24
|
-
address: z.
|
|
25
|
-
city: z.
|
|
26
|
-
state: z.
|
|
27
|
-
street: z.
|
|
28
|
-
country: z.
|
|
29
|
-
postal_code: z.
|
|
21
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
|
+
phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
+
address: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
25
|
+
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
+
state: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
|
+
street: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29
|
+
postal_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
30
30
|
}, z.core.$strip>>>;
|
|
31
|
-
metadata: z.
|
|
31
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
32
32
|
created_at: z.ZodNullable<z.ZodString>;
|
|
33
33
|
updated_at: z.ZodNullable<z.ZodString>;
|
|
34
34
|
}, z.core.$strip>>;
|
|
@@ -46,24 +46,7 @@ declare const finmeiUpdateCustomer: import("@keystrokehq/action").WorkflowAction
|
|
|
46
46
|
postal_code?: string | undefined;
|
|
47
47
|
} | undefined;
|
|
48
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]>;
|
|
49
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
67
50
|
//#endregion
|
|
68
51
|
export { finmeiUpdateCustomer };
|
|
69
52
|
//# 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,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cA+BzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAI1B,oBAAA,gCAAoB,wBAAA;;;;;;;;;;;;aAM/B,MAAA;AAAA
|
|
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"}
|
|
@@ -16,19 +16,19 @@ const FinmeiUpdateCustomerInput = z.object({
|
|
|
16
16
|
customer_id: 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 = z.object({
|
|
19
|
-
city: z.
|
|
20
|
-
state: z.
|
|
21
|
-
street: z.
|
|
22
|
-
country: z.
|
|
23
|
-
postal_code: z.
|
|
19
|
+
city: z.string().describe("City of the customer's address").nullable().optional(),
|
|
20
|
+
state: z.string().describe("State or province of the customer's address").nullable().optional(),
|
|
21
|
+
street: z.string().describe("Street address of the customer").nullable().optional(),
|
|
22
|
+
country: z.string().describe("Country code (ISO 3166-1 alpha-2)").nullable().optional(),
|
|
23
|
+
postal_code: z.string().describe("Postal or ZIP code of the customer's address").nullable().optional()
|
|
24
24
|
}).describe("Mailing address details");
|
|
25
25
|
const FinmeiUpdateCustomer_CustomerSchema = z.object({
|
|
26
26
|
id: z.string().describe("Unique identifier of the customer").nullable(),
|
|
27
|
-
name: z.
|
|
28
|
-
email: z.
|
|
29
|
-
phone: z.
|
|
30
|
-
address:
|
|
31
|
-
metadata: z.
|
|
27
|
+
name: z.string().describe("Full name of the customer").nullable().optional(),
|
|
28
|
+
email: z.string().describe("Email address of the customer").nullable().optional(),
|
|
29
|
+
phone: z.string().describe("Phone number of the customer").nullable().optional(),
|
|
30
|
+
address: FinmeiUpdateCustomer_AddressSchema.nullable().optional(),
|
|
31
|
+
metadata: z.record(z.string(), z.unknown()).describe("Additional metadata associated with the customer").nullable().optional(),
|
|
32
32
|
created_at: z.string().describe("Timestamp when the customer was created").nullable(),
|
|
33
33
|
updated_at: z.string().describe("Timestamp when the customer was last updated").nullable()
|
|
34
34
|
});
|
|
@@ -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.
|
|
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}).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});\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,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,CAAC,SAAS;CAC9F,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvG,CAAC,CAAC,CAAC,SAAS,yBAAyB;AACrC,MAAM,sCAAsC,EAAE,OAAO;CACnD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACtE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,SAAS,mCAAmC,SAAS,CAAC,CAAC,SAAS;CAChE,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7H,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CACpF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;AAC3F,CAAC;AAKD,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATwC,EAAE,OAAO,EACjD,UAAU,oCAAoC,SAAS,EACzD,CAAC,CAAC,CAAC,SAAS,uDAOF;AACV,CAAC"}
|
|
@@ -10,11 +10,11 @@ const FinmeiUpdateExpenseFileInput = zod.z.object({
|
|
|
10
10
|
}).describe("File to upload as the expense attachment (usually PDF or image file of the bill).")
|
|
11
11
|
}).describe("Request model for updating the file attachment of an existing expense.\nThis endpoint is used solely for updating the file. Use Update Expense endpoint for updating form fields.");
|
|
12
12
|
const FinmeiUpdateExpenseFileOutput = zod.z.object({
|
|
13
|
-
id: zod.z.
|
|
14
|
-
message: zod.z.
|
|
15
|
-
file_url: zod.z.
|
|
16
|
-
file_name: zod.z.
|
|
17
|
-
updated_at: zod.z.
|
|
13
|
+
id: zod.z.string().describe("Unique identifier of the expense").nullable().optional(),
|
|
14
|
+
message: zod.z.string().describe("Success message from the API").nullable().optional(),
|
|
15
|
+
file_url: zod.z.string().describe("URL of the uploaded file attachment").nullable().optional(),
|
|
16
|
+
file_name: zod.z.string().describe("Name of the uploaded file").nullable().optional(),
|
|
17
|
+
updated_at: zod.z.union([zod.z.string(), zod.z.number().int()]).nullable().optional()
|
|
18
18
|
}).describe("Response model containing the updated expense details after successful file upload.");
|
|
19
19
|
const finmeiUpdateExpenseFile = require_action.action("FINMEI_UPDATE_EXPENSE_FILE", {
|
|
20
20
|
slug: "finmei-update-expense-file",
|
|
@@ -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.
|
|
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}).describe(\"Response model containing the updated expense details after successful file upload.\");\n\nexport const finmeiUpdateExpenseFile = action(\"FINMEI_UPDATE_EXPENSE_FILE\", {\n slug: \"finmei-update-expense-file\",\n name: \"Update Expense File\",\n description: \"Updates the file attachment of an existing expense in Finmei. Use this action when you need to attach or replace a receipt/invoice file for an expense. This endpoint is specifically for updating the file only - use the Update Expense action for updating other expense fields like amount, date, or description. The file is uploaded using multipart/form-data content type and typically should be a PDF or image file of the bill/receipt.\",\n input: FinmeiUpdateExpenseFileInput,\n output: FinmeiUpdateExpenseFileOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+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,SAAS,qFAAqF;AAEjG,MAAa,0BAA0BC,eAAAA,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -10,11 +10,11 @@ declare const FinmeiUpdateExpenseFileInput: z.ZodObject<{
|
|
|
10
10
|
}, z.core.$strip>;
|
|
11
11
|
}, z.core.$strip>;
|
|
12
12
|
declare const FinmeiUpdateExpenseFileOutput: z.ZodObject<{
|
|
13
|
-
id: z.
|
|
14
|
-
message: z.
|
|
15
|
-
file_url: z.
|
|
16
|
-
file_name: z.
|
|
17
|
-
updated_at: z.
|
|
13
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
file_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
file_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
|
|
18
18
|
}, z.core.$strip>;
|
|
19
19
|
declare const finmeiUpdateExpenseFile: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
20
20
|
id: string;
|
|
@@ -23,13 +23,7 @@ declare const finmeiUpdateExpenseFile: import("@keystrokehq/action").WorkflowAct
|
|
|
23
23
|
s3key: string;
|
|
24
24
|
mimetype: string;
|
|
25
25
|
};
|
|
26
|
-
},
|
|
27
|
-
id?: string | undefined;
|
|
28
|
-
message?: string | undefined;
|
|
29
|
-
file_url?: string | undefined;
|
|
30
|
-
file_name?: string | undefined;
|
|
31
|
-
updated_at?: string | number | undefined;
|
|
32
|
-
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
26
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
33
27
|
//#endregion
|
|
34
28
|
export { finmeiUpdateExpenseFile };
|
|
35
29
|
//# sourceMappingURL=update-expense-file.d.cts.map
|
|
@@ -10,11 +10,11 @@ declare const FinmeiUpdateExpenseFileInput: z.ZodObject<{
|
|
|
10
10
|
}, z.core.$strip>;
|
|
11
11
|
}, z.core.$strip>;
|
|
12
12
|
declare const FinmeiUpdateExpenseFileOutput: z.ZodObject<{
|
|
13
|
-
id: z.
|
|
14
|
-
message: z.
|
|
15
|
-
file_url: z.
|
|
16
|
-
file_name: z.
|
|
17
|
-
updated_at: z.
|
|
13
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
file_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
file_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
|
|
18
18
|
}, z.core.$strip>;
|
|
19
19
|
declare const finmeiUpdateExpenseFile: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
20
20
|
id: string;
|
|
@@ -23,13 +23,7 @@ declare const finmeiUpdateExpenseFile: import("@keystrokehq/action").WorkflowAct
|
|
|
23
23
|
s3key: string;
|
|
24
24
|
mimetype: string;
|
|
25
25
|
};
|
|
26
|
-
},
|
|
27
|
-
id?: string | undefined;
|
|
28
|
-
message?: string | undefined;
|
|
29
|
-
file_url?: string | undefined;
|
|
30
|
-
file_name?: string | undefined;
|
|
31
|
-
updated_at?: string | number | undefined;
|
|
32
|
-
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
26
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
33
27
|
//#endregion
|
|
34
28
|
export { finmeiUpdateExpenseFile };
|
|
35
29
|
//# sourceMappingURL=update-expense-file.d.mts.map
|
|
@@ -13,11 +13,11 @@ const finmeiUpdateExpenseFile = action("FINMEI_UPDATE_EXPENSE_FILE", {
|
|
|
13
13
|
}).describe("File to upload as the expense attachment (usually PDF or image file of the bill).")
|
|
14
14
|
}).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."),
|
|
15
15
|
output: z.object({
|
|
16
|
-
id: z.
|
|
17
|
-
message: z.
|
|
18
|
-
file_url: z.
|
|
19
|
-
file_name: z.
|
|
20
|
-
updated_at: z.
|
|
16
|
+
id: z.string().describe("Unique identifier of the expense").nullable().optional(),
|
|
17
|
+
message: z.string().describe("Success message from the API").nullable().optional(),
|
|
18
|
+
file_url: z.string().describe("URL of the uploaded file attachment").nullable().optional(),
|
|
19
|
+
file_name: z.string().describe("Name of the uploaded file").nullable().optional(),
|
|
20
|
+
updated_at: z.union([z.string(), z.number().int()]).nullable().optional()
|
|
21
21
|
}).describe("Response model containing the updated expense details after successful file upload.")
|
|
22
22
|
});
|
|
23
23
|
//#endregion
|
|
@@ -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.
|
|
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}).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":";;AAoBA,MAAa,0BAA0B,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OApB0C,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,mLAaH;CACP,QAb2C,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,SAAS,qFAOF;AACV,CAAC"}
|
|
@@ -14,8 +14,8 @@ const FinmeiUpdateExpenseOutput = zod.z.object({
|
|
|
14
14
|
total: zod.z.number().describe("Total amount of the expense after the update").nullable(),
|
|
15
15
|
seller: zod.z.string().describe("Seller name after the update").nullable(),
|
|
16
16
|
currency: zod.z.string().describe("Currency code of the expense after the update").nullable(),
|
|
17
|
-
created_at: zod.z.
|
|
18
|
-
updated_at: zod.z.
|
|
17
|
+
created_at: zod.z.string().describe("ISO8601 timestamp when the expense was originally created").nullable().optional(),
|
|
18
|
+
updated_at: zod.z.string().describe("ISO8601 timestamp when the expense was last updated").nullable().optional()
|
|
19
19
|
}).describe("Response model containing the updated expense details after a successful update");
|
|
20
20
|
const finmeiUpdateExpense = require_action.action("FINMEI_UPDATE_EXPENSE", {
|
|
21
21
|
slug: "finmei-update-expense",
|
|
@@ -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.
|
|
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}).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":";;;AAIA,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,SAAS,iFAAiF;AAE7F,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -14,8 +14,8 @@ declare const FinmeiUpdateExpenseOutput: z.ZodObject<{
|
|
|
14
14
|
total: z.ZodNullable<z.ZodNumber>;
|
|
15
15
|
seller: z.ZodNullable<z.ZodString>;
|
|
16
16
|
currency: z.ZodNullable<z.ZodString>;
|
|
17
|
-
created_at: z.
|
|
18
|
-
updated_at: z.
|
|
17
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
19
|
}, z.core.$strip>;
|
|
20
20
|
declare const finmeiUpdateExpense: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
21
21
|
id: string;
|
|
@@ -23,15 +23,7 @@ declare const finmeiUpdateExpense: import("@keystrokehq/action").WorkflowActionD
|
|
|
23
23
|
total: number;
|
|
24
24
|
seller: string;
|
|
25
25
|
currency: string;
|
|
26
|
-
},
|
|
27
|
-
id: string | null;
|
|
28
|
-
date: string | null;
|
|
29
|
-
total: number | null;
|
|
30
|
-
seller: string | null;
|
|
31
|
-
currency: string | null;
|
|
32
|
-
created_at?: string | undefined;
|
|
33
|
-
updated_at?: string | undefined;
|
|
34
|
-
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
26
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
35
27
|
//#endregion
|
|
36
28
|
export { finmeiUpdateExpense };
|
|
37
29
|
//# sourceMappingURL=update-expense.d.cts.map
|
|
@@ -14,8 +14,8 @@ declare const FinmeiUpdateExpenseOutput: z.ZodObject<{
|
|
|
14
14
|
total: z.ZodNullable<z.ZodNumber>;
|
|
15
15
|
seller: z.ZodNullable<z.ZodString>;
|
|
16
16
|
currency: z.ZodNullable<z.ZodString>;
|
|
17
|
-
created_at: z.
|
|
18
|
-
updated_at: z.
|
|
17
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
19
|
}, z.core.$strip>;
|
|
20
20
|
declare const finmeiUpdateExpense: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
21
21
|
id: string;
|
|
@@ -23,15 +23,7 @@ declare const finmeiUpdateExpense: import("@keystrokehq/action").WorkflowActionD
|
|
|
23
23
|
total: number;
|
|
24
24
|
seller: string;
|
|
25
25
|
currency: string;
|
|
26
|
-
},
|
|
27
|
-
id: string | null;
|
|
28
|
-
date: string | null;
|
|
29
|
-
total: number | null;
|
|
30
|
-
seller: string | null;
|
|
31
|
-
currency: string | null;
|
|
32
|
-
created_at?: string | undefined;
|
|
33
|
-
updated_at?: string | undefined;
|
|
34
|
-
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
26
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
35
27
|
//#endregion
|
|
36
28
|
export { finmeiUpdateExpense };
|
|
37
29
|
//# sourceMappingURL=update-expense.d.mts.map
|
|
@@ -17,8 +17,8 @@ const finmeiUpdateExpense = action("FINMEI_UPDATE_EXPENSE", {
|
|
|
17
17
|
total: z.number().describe("Total amount of the expense after the update").nullable(),
|
|
18
18
|
seller: z.string().describe("Seller name after the update").nullable(),
|
|
19
19
|
currency: z.string().describe("Currency code of the expense after the update").nullable(),
|
|
20
|
-
created_at: z.
|
|
21
|
-
updated_at: z.
|
|
20
|
+
created_at: z.string().describe("ISO8601 timestamp when the expense was originally created").nullable().optional(),
|
|
21
|
+
updated_at: z.string().describe("ISO8601 timestamp when the expense was last updated").nullable().optional()
|
|
22
22
|
}).describe("Response model containing the updated expense details after a successful update")
|
|
23
23
|
});
|
|
24
24
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-expense.mjs","names":[],"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.
|
|
1
|
+
{"version":3,"file":"update-expense.mjs","names":[],"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}).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":";;AAqBA,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OArBsC,EAAE,OAAO;EAC/C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,kFAAkF;EAC1G,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE;EAC7F,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E;EACvG,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D;EACtF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,yGAAyG;CACzI,CAAC,CAAC,CAAC,SAAS,yDAeH;CACP,QAfuC,EAAE,OAAO;EAChD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;EACrE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;EAC3E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;EACpF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;EACrE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;EACxF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjH,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,CAAC,CAAC,CAAC,SAAS,iFAOF;AACV,CAAC"}
|