@keystrokehq/moneybird 0.1.0
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/README.md +17 -0
- package/dist/action.cjs +21 -0
- package/dist/action.cjs.map +1 -0
- package/dist/action.mjs +21 -0
- package/dist/action.mjs.map +1 -0
- package/dist/actions/add-note-to-contact.cjs +39 -0
- package/dist/actions/add-note-to-contact.cjs.map +1 -0
- package/dist/actions/add-note-to-contact.d.cts +9 -0
- package/dist/actions/add-note-to-contact.d.cts.map +1 -0
- package/dist/actions/add-note-to-contact.d.mts +9 -0
- package/dist/actions/add-note-to-contact.d.mts.map +1 -0
- package/dist/actions/add-note-to-contact.mjs +36 -0
- package/dist/actions/add-note-to-contact.mjs.map +1 -0
- package/dist/actions/archive-contact.cjs +19 -0
- package/dist/actions/archive-contact.cjs.map +1 -0
- package/dist/actions/archive-contact.d.cts +9 -0
- package/dist/actions/archive-contact.d.cts.map +1 -0
- package/dist/actions/archive-contact.d.mts +9 -0
- package/dist/actions/archive-contact.d.mts.map +1 -0
- package/dist/actions/archive-contact.mjs +16 -0
- package/dist/actions/archive-contact.mjs.map +1 -0
- package/dist/actions/create-contact-person.cjs +37 -0
- package/dist/actions/create-contact-person.cjs.map +1 -0
- package/dist/actions/create-contact-person.d.cts +9 -0
- package/dist/actions/create-contact-person.d.cts.map +1 -0
- package/dist/actions/create-contact-person.d.mts +9 -0
- package/dist/actions/create-contact-person.d.mts.map +1 -0
- package/dist/actions/create-contact-person.mjs +34 -0
- package/dist/actions/create-contact-person.mjs.map +1 -0
- package/dist/actions/create-contact.cjs +65 -0
- package/dist/actions/create-contact.cjs.map +1 -0
- package/dist/actions/create-contact.d.cts +9 -0
- package/dist/actions/create-contact.d.cts.map +1 -0
- package/dist/actions/create-contact.d.mts +9 -0
- package/dist/actions/create-contact.d.mts.map +1 -0
- package/dist/actions/create-contact.mjs +62 -0
- package/dist/actions/create-contact.mjs.map +1 -0
- package/dist/actions/create-sales-invoice.cjs +75 -0
- package/dist/actions/create-sales-invoice.cjs.map +1 -0
- package/dist/actions/create-sales-invoice.d.cts +9 -0
- package/dist/actions/create-sales-invoice.d.cts.map +1 -0
- package/dist/actions/create-sales-invoice.d.mts +9 -0
- package/dist/actions/create-sales-invoice.d.mts.map +1 -0
- package/dist/actions/create-sales-invoice.mjs +74 -0
- package/dist/actions/create-sales-invoice.mjs.map +1 -0
- package/dist/actions/delete-contact-note.cjs +20 -0
- package/dist/actions/delete-contact-note.cjs.map +1 -0
- package/dist/actions/delete-contact-note.d.cts +9 -0
- package/dist/actions/delete-contact-note.d.cts.map +1 -0
- package/dist/actions/delete-contact-note.d.mts +9 -0
- package/dist/actions/delete-contact-note.d.mts.map +1 -0
- package/dist/actions/delete-contact-note.mjs +17 -0
- package/dist/actions/delete-contact-note.mjs.map +1 -0
- package/dist/actions/delete-contact-person.cjs +20 -0
- package/dist/actions/delete-contact-person.cjs.map +1 -0
- package/dist/actions/delete-contact-person.d.cts +9 -0
- package/dist/actions/delete-contact-person.d.cts.map +1 -0
- package/dist/actions/delete-contact-person.d.mts +9 -0
- package/dist/actions/delete-contact-person.d.mts.map +1 -0
- package/dist/actions/delete-contact-person.mjs +17 -0
- package/dist/actions/delete-contact-person.mjs.map +1 -0
- package/dist/actions/delete-contact.cjs +19 -0
- package/dist/actions/delete-contact.cjs.map +1 -0
- package/dist/actions/delete-contact.d.cts +9 -0
- package/dist/actions/delete-contact.d.cts.map +1 -0
- package/dist/actions/delete-contact.d.mts +9 -0
- package/dist/actions/delete-contact.d.mts.map +1 -0
- package/dist/actions/delete-contact.mjs +16 -0
- package/dist/actions/delete-contact.mjs.map +1 -0
- package/dist/actions/filter-contacts.cjs +24 -0
- package/dist/actions/filter-contacts.cjs.map +1 -0
- package/dist/actions/filter-contacts.d.cts +9 -0
- package/dist/actions/filter-contacts.d.cts.map +1 -0
- package/dist/actions/filter-contacts.d.mts +9 -0
- package/dist/actions/filter-contacts.d.mts.map +1 -0
- package/dist/actions/filter-contacts.mjs +21 -0
- package/dist/actions/filter-contacts.mjs.map +1 -0
- package/dist/actions/get-additional-charges.cjs +20 -0
- package/dist/actions/get-additional-charges.cjs.map +1 -0
- package/dist/actions/get-additional-charges.d.cts +9 -0
- package/dist/actions/get-additional-charges.d.cts.map +1 -0
- package/dist/actions/get-additional-charges.d.mts +9 -0
- package/dist/actions/get-additional-charges.d.mts.map +1 -0
- package/dist/actions/get-additional-charges.mjs +17 -0
- package/dist/actions/get-additional-charges.mjs.map +1 -0
- package/dist/actions/get-contact-by-customer-id.cjs +115 -0
- package/dist/actions/get-contact-by-customer-id.cjs.map +1 -0
- package/dist/actions/get-contact-by-customer-id.d.cts +9 -0
- package/dist/actions/get-contact-by-customer-id.d.cts.map +1 -0
- package/dist/actions/get-contact-by-customer-id.d.mts +9 -0
- package/dist/actions/get-contact-by-customer-id.d.mts.map +1 -0
- package/dist/actions/get-contact-by-customer-id.mjs +114 -0
- package/dist/actions/get-contact-by-customer-id.mjs.map +1 -0
- package/dist/actions/get-contact-person.cjs +30 -0
- package/dist/actions/get-contact-person.cjs.map +1 -0
- package/dist/actions/get-contact-person.d.cts +9 -0
- package/dist/actions/get-contact-person.d.cts.map +1 -0
- package/dist/actions/get-contact-person.d.mts +9 -0
- package/dist/actions/get-contact-person.d.mts.map +1 -0
- package/dist/actions/get-contact-person.mjs +27 -0
- package/dist/actions/get-contact-person.mjs.map +1 -0
- package/dist/actions/get-contact.cjs +20 -0
- package/dist/actions/get-contact.cjs.map +1 -0
- package/dist/actions/get-contact.d.cts +9 -0
- package/dist/actions/get-contact.d.cts.map +1 -0
- package/dist/actions/get-contact.d.mts +9 -0
- package/dist/actions/get-contact.d.mts.map +1 -0
- package/dist/actions/get-contact.mjs +17 -0
- package/dist/actions/get-contact.mjs.map +1 -0
- package/dist/actions/get-sales-invoice.cjs +19 -0
- package/dist/actions/get-sales-invoice.cjs.map +1 -0
- package/dist/actions/get-sales-invoice.d.cts +9 -0
- package/dist/actions/get-sales-invoice.d.cts.map +1 -0
- package/dist/actions/get-sales-invoice.d.mts +9 -0
- package/dist/actions/get-sales-invoice.d.mts.map +1 -0
- package/dist/actions/get-sales-invoice.mjs +16 -0
- package/dist/actions/get-sales-invoice.mjs.map +1 -0
- package/dist/actions/index.cjs +43 -0
- package/dist/actions/index.d.cts +22 -0
- package/dist/actions/index.d.mts +22 -0
- package/dist/actions/index.mjs +22 -0
- package/dist/actions/list-administrations.cjs +16 -0
- package/dist/actions/list-administrations.cjs.map +1 -0
- package/dist/actions/list-administrations.d.cts +9 -0
- package/dist/actions/list-administrations.d.cts.map +1 -0
- package/dist/actions/list-administrations.d.mts +9 -0
- package/dist/actions/list-administrations.d.mts.map +1 -0
- package/dist/actions/list-administrations.mjs +13 -0
- package/dist/actions/list-administrations.mjs.map +1 -0
- package/dist/actions/list-contacts-synchronization.cjs +20 -0
- package/dist/actions/list-contacts-synchronization.cjs.map +1 -0
- package/dist/actions/list-contacts-synchronization.d.cts +9 -0
- package/dist/actions/list-contacts-synchronization.d.cts.map +1 -0
- package/dist/actions/list-contacts-synchronization.d.mts +9 -0
- package/dist/actions/list-contacts-synchronization.d.mts.map +1 -0
- package/dist/actions/list-contacts-synchronization.mjs +17 -0
- package/dist/actions/list-contacts-synchronization.mjs.map +1 -0
- package/dist/actions/list-sales-invoices.cjs +21 -0
- package/dist/actions/list-sales-invoices.cjs.map +1 -0
- package/dist/actions/list-sales-invoices.d.cts +9 -0
- package/dist/actions/list-sales-invoices.d.cts.map +1 -0
- package/dist/actions/list-sales-invoices.d.mts +9 -0
- package/dist/actions/list-sales-invoices.d.mts.map +1 -0
- package/dist/actions/list-sales-invoices.mjs +18 -0
- package/dist/actions/list-sales-invoices.mjs.map +1 -0
- package/dist/actions/request-contact-payments-mandate-url.cjs +20 -0
- package/dist/actions/request-contact-payments-mandate-url.cjs.map +1 -0
- package/dist/actions/request-contact-payments-mandate-url.d.cts +9 -0
- package/dist/actions/request-contact-payments-mandate-url.d.cts.map +1 -0
- package/dist/actions/request-contact-payments-mandate-url.d.mts +9 -0
- package/dist/actions/request-contact-payments-mandate-url.d.mts.map +1 -0
- package/dist/actions/request-contact-payments-mandate-url.mjs +17 -0
- package/dist/actions/request-contact-payments-mandate-url.mjs.map +1 -0
- package/dist/actions/update-contact-person.cjs +37 -0
- package/dist/actions/update-contact-person.cjs.map +1 -0
- package/dist/actions/update-contact-person.d.cts +9 -0
- package/dist/actions/update-contact-person.d.cts.map +1 -0
- package/dist/actions/update-contact-person.d.mts +9 -0
- package/dist/actions/update-contact-person.d.mts.map +1 -0
- package/dist/actions/update-contact-person.mjs +34 -0
- package/dist/actions/update-contact-person.mjs.map +1 -0
- package/dist/actions/update-contact.cjs +20 -0
- package/dist/actions/update-contact.cjs.map +1 -0
- package/dist/actions/update-contact.d.cts +9 -0
- package/dist/actions/update-contact.d.cts.map +1 -0
- package/dist/actions/update-contact.d.mts +9 -0
- package/dist/actions/update-contact.d.mts.map +1 -0
- package/dist/actions/update-contact.mjs +17 -0
- package/dist/actions/update-contact.mjs.map +1 -0
- package/dist/actions/update-sales-invoice.cjs +57 -0
- package/dist/actions/update-sales-invoice.cjs.map +1 -0
- package/dist/actions/update-sales-invoice.d.cts +9 -0
- package/dist/actions/update-sales-invoice.d.cts.map +1 -0
- package/dist/actions/update-sales-invoice.d.mts +9 -0
- package/dist/actions/update-sales-invoice.d.mts.map +1 -0
- package/dist/actions/update-sales-invoice.mjs +54 -0
- package/dist/actions/update-sales-invoice.mjs.map +1 -0
- package/dist/app.cjs +9 -0
- package/dist/app.cjs.map +1 -0
- package/dist/app.d.cts +5 -0
- package/dist/app.d.cts.map +1 -0
- package/dist/app.d.mts +5 -0
- package/dist/app.d.mts.map +1 -0
- package/dist/app.mjs +10 -0
- package/dist/app.mjs.map +1 -0
- package/dist/catalog.cjs +15 -0
- package/dist/catalog.cjs.map +1 -0
- package/dist/catalog.d.cts +14 -0
- package/dist/catalog.d.cts.map +1 -0
- package/dist/catalog.d.mts +14 -0
- package/dist/catalog.d.mts.map +1 -0
- package/dist/catalog.mjs +15 -0
- package/dist/catalog.mjs.map +1 -0
- package/dist/execute.cjs +18 -0
- package/dist/execute.cjs.map +1 -0
- package/dist/execute.mjs +18 -0
- package/dist/execute.mjs.map +1 -0
- package/dist/index.cjs +48 -0
- package/dist/index.d.cts +24 -0
- package/dist/index.d.mts +24 -0
- package/dist/index.mjs +25 -0
- package/package.json +49 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const moneybirdUpdateContactPerson = action("MONEYBIRD_UPDATE_CONTACT_PERSON", {
|
|
4
|
+
slug: "moneybird-update-contact-person",
|
|
5
|
+
name: "Update Contact Person",
|
|
6
|
+
description: "Tool to update a contact person. Use after selecting a specific contact person when you need to change their details.",
|
|
7
|
+
input: z.object({
|
|
8
|
+
email: z.string().describe("Email address of the contact person.").optional(),
|
|
9
|
+
phone: z.string().describe("Phone number of the contact person.").optional(),
|
|
10
|
+
lastname: z.string().describe("Last name of the contact person.").optional(),
|
|
11
|
+
firstname: z.string().describe("First name of the contact person.").optional(),
|
|
12
|
+
contact_id: z.string().describe("ID of the contact containing the person to update."),
|
|
13
|
+
department: z.string().describe("Department of the contact person.").optional(),
|
|
14
|
+
administration_id: z.number().int().describe("Numeric administration ID, part of the Moneybird URL path."),
|
|
15
|
+
contact_person_id: z.string().describe("ID of the contact person to update.")
|
|
16
|
+
}).describe("Request model for updating a contact person."),
|
|
17
|
+
output: z.object({
|
|
18
|
+
id: z.string().describe("Unique identifier of the contact person."),
|
|
19
|
+
email: z.string().describe("Email address of the contact person.").nullable().optional(),
|
|
20
|
+
phone: z.string().describe("Phone number of the contact person.").nullable().optional(),
|
|
21
|
+
version: z.number().int().describe("Version number of the contact person."),
|
|
22
|
+
lastname: z.string().describe("Last name of the contact person."),
|
|
23
|
+
firstname: z.string().describe("First name of the contact person."),
|
|
24
|
+
contact_id: z.string().describe("ID of the associated contact."),
|
|
25
|
+
created_at: z.string().describe("Timestamp when the contact person was created."),
|
|
26
|
+
department: z.string().describe("Department of the contact person.").nullable().optional(),
|
|
27
|
+
updated_at: z.string().describe("Timestamp when the contact person was last updated."),
|
|
28
|
+
administration_id: z.number().int().describe("Administration ID the contact person belongs to.")
|
|
29
|
+
}).describe("Response model for updated contact person details.")
|
|
30
|
+
});
|
|
31
|
+
//#endregion
|
|
32
|
+
export { moneybirdUpdateContactPerson };
|
|
33
|
+
|
|
34
|
+
//# sourceMappingURL=update-contact-person.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-contact-person.mjs","names":[],"sources":["../../src/actions/update-contact-person.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoneybirdUpdateContactPersonInput: z.ZodTypeAny = z.object({\n email: z.string().describe(\"Email address of the contact person.\").optional(),\n phone: z.string().describe(\"Phone number of the contact person.\").optional(),\n lastname: z.string().describe(\"Last name of the contact person.\").optional(),\n firstname: z.string().describe(\"First name of the contact person.\").optional(),\n contact_id: z.string().describe(\"ID of the contact containing the person to update.\"),\n department: z.string().describe(\"Department of the contact person.\").optional(),\n administration_id: z.number().int().describe(\"Numeric administration ID, part of the Moneybird URL path.\"),\n contact_person_id: z.string().describe(\"ID of the contact person to update.\"),\n}).describe(\"Request model for updating a contact person.\");\nexport const MoneybirdUpdateContactPersonOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the contact person.\"),\n email: z.string().describe(\"Email address of the contact person.\").nullable().optional(),\n phone: z.string().describe(\"Phone number of the contact person.\").nullable().optional(),\n version: z.number().int().describe(\"Version number of the contact person.\"),\n lastname: z.string().describe(\"Last name of the contact person.\"),\n firstname: z.string().describe(\"First name of the contact person.\"),\n contact_id: z.string().describe(\"ID of the associated contact.\"),\n created_at: z.string().describe(\"Timestamp when the contact person was created.\"),\n department: z.string().describe(\"Department of the contact person.\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when the contact person was last updated.\"),\n administration_id: z.number().int().describe(\"Administration ID the contact person belongs to.\"),\n}).describe(\"Response model for updated contact person details.\");\n\nexport const moneybirdUpdateContactPerson = action(\"MONEYBIRD_UPDATE_CONTACT_PERSON\", {\n slug: \"moneybird-update-contact-person\",\n name: \"Update Contact Person\",\n description: \"Tool to update a contact person. Use after selecting a specific contact person when you need to change their details.\",\n input: MoneybirdUpdateContactPersonInput,\n output: MoneybirdUpdateContactPersonOutput,\n});\n"],"mappings":";;AA4BA,MAAa,+BAA+B,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA5B6D,EAAE,OAAO;EACtE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;EAC5E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EAC3E,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;EAC3E,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EAC7E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD;EACpF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EAC9E,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4DAA4D;EACzG,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;CAC9E,CAAC,CAAC,CAAC,SAAS,8CAmBH;CACP,QAnB8D,EAAE,OAAO;EACvE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;EAClE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtF,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC;EAC1E,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;EAChE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;EAClE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;EAC/D,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;EAChF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD;EACrF,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD;CACjG,CAAC,CAAC,CAAC,SAAS,oDAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/update-contact.ts
|
|
4
|
+
const MoneybirdUpdateContactInput = zod.z.object({
|
|
5
|
+
contact: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Key-value map of contact fields to update"),
|
|
6
|
+
contact_id: zod.z.string().describe("ID of the contact to update"),
|
|
7
|
+
administration_id: zod.z.number().int().describe("Numeric administration ID, part of the Moneybird URL path")
|
|
8
|
+
}).describe("Request parameters for updating a contact.");
|
|
9
|
+
const MoneybirdUpdateContactOutput = zod.z.object({ contact: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Updated contact object returned by Moneybird") });
|
|
10
|
+
const moneybirdUpdateContact = require_action.action("MONEYBIRD_UPDATE_CONTACT", {
|
|
11
|
+
slug: "moneybird-update-contact",
|
|
12
|
+
name: "Update Contact",
|
|
13
|
+
description: "Tool to update a contact. Use when you need to modify existing contact details by ID. Only provided fields will be changed.",
|
|
14
|
+
input: MoneybirdUpdateContactInput,
|
|
15
|
+
output: MoneybirdUpdateContactOutput
|
|
16
|
+
});
|
|
17
|
+
//#endregion
|
|
18
|
+
exports.moneybirdUpdateContact = moneybirdUpdateContact;
|
|
19
|
+
|
|
20
|
+
//# sourceMappingURL=update-contact.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-contact.cjs","names":["z","action"],"sources":["../../src/actions/update-contact.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoneybirdUpdateContactInput: z.ZodTypeAny = z.object({\n contact: z.record(z.string(), z.unknown()).describe(\"Key-value map of contact fields to update\"),\n contact_id: z.string().describe(\"ID of the contact to update\"),\n administration_id: z.number().int().describe(\"Numeric administration ID, part of the Moneybird URL path\"),\n}).describe(\"Request parameters for updating a contact.\");\nexport const MoneybirdUpdateContactOutput: z.ZodTypeAny = z.object({\n contact: z.record(z.string(), z.unknown()).describe(\"Updated contact object returned by Moneybird\"),\n});\n\nexport const moneybirdUpdateContact = action(\"MONEYBIRD_UPDATE_CONTACT\", {\n slug: \"moneybird-update-contact\",\n name: \"Update Contact\",\n description: \"Tool to update a contact. Use when you need to modify existing contact details by ID. Only provided fields will be changed.\",\n input: MoneybirdUpdateContactInput,\n output: MoneybirdUpdateContactOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA4CA,IAAAA,EAAE,OAAO;CAChE,SAASA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,2CAA2C;CAC/F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;CAC7D,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2DAA2D;AAC1G,CAAC,CAAC,CAAC,SAAS,4CAA4C;AACxD,MAAa,+BAA6CA,IAAAA,EAAE,OAAO,EACjE,SAASA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8CAA8C,EACpG,CAAC;AAED,MAAa,yBAAyBC,eAAAA,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/update-contact.d.ts
|
|
4
|
+
declare const MoneybirdUpdateContactInput: z.ZodTypeAny;
|
|
5
|
+
declare const MoneybirdUpdateContactOutput: z.ZodTypeAny;
|
|
6
|
+
declare const moneybirdUpdateContact: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { moneybirdUpdateContact };
|
|
9
|
+
//# sourceMappingURL=update-contact.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-contact.d.cts","names":[],"sources":["../../src/actions/update-contact.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAIa;AAAA,cAC5C,4BAAA,EAA8B,CAAA,CAAE,UAE3C;AAAA,cAEW,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/update-contact.d.ts
|
|
4
|
+
declare const MoneybirdUpdateContactInput: z.ZodTypeAny;
|
|
5
|
+
declare const MoneybirdUpdateContactOutput: z.ZodTypeAny;
|
|
6
|
+
declare const moneybirdUpdateContact: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { moneybirdUpdateContact };
|
|
9
|
+
//# sourceMappingURL=update-contact.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-contact.d.mts","names":[],"sources":["../../src/actions/update-contact.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAIa;AAAA,cAC5C,4BAAA,EAA8B,CAAA,CAAE,UAE3C;AAAA,cAEW,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const moneybirdUpdateContact = action("MONEYBIRD_UPDATE_CONTACT", {
|
|
4
|
+
slug: "moneybird-update-contact",
|
|
5
|
+
name: "Update Contact",
|
|
6
|
+
description: "Tool to update a contact. Use when you need to modify existing contact details by ID. Only provided fields will be changed.",
|
|
7
|
+
input: z.object({
|
|
8
|
+
contact: z.record(z.string(), z.unknown()).describe("Key-value map of contact fields to update"),
|
|
9
|
+
contact_id: z.string().describe("ID of the contact to update"),
|
|
10
|
+
administration_id: z.number().int().describe("Numeric administration ID, part of the Moneybird URL path")
|
|
11
|
+
}).describe("Request parameters for updating a contact."),
|
|
12
|
+
output: z.object({ contact: z.record(z.string(), z.unknown()).describe("Updated contact object returned by Moneybird") })
|
|
13
|
+
});
|
|
14
|
+
//#endregion
|
|
15
|
+
export { moneybirdUpdateContact };
|
|
16
|
+
|
|
17
|
+
//# sourceMappingURL=update-contact.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-contact.mjs","names":[],"sources":["../../src/actions/update-contact.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoneybirdUpdateContactInput: z.ZodTypeAny = z.object({\n contact: z.record(z.string(), z.unknown()).describe(\"Key-value map of contact fields to update\"),\n contact_id: z.string().describe(\"ID of the contact to update\"),\n administration_id: z.number().int().describe(\"Numeric administration ID, part of the Moneybird URL path\"),\n}).describe(\"Request parameters for updating a contact.\");\nexport const MoneybirdUpdateContactOutput: z.ZodTypeAny = z.object({\n contact: z.record(z.string(), z.unknown()).describe(\"Updated contact object returned by Moneybird\"),\n});\n\nexport const moneybirdUpdateContact = action(\"MONEYBIRD_UPDATE_CONTACT\", {\n slug: \"moneybird-update-contact\",\n name: \"Update Contact\",\n description: \"Tool to update a contact. Use when you need to modify existing contact details by ID. Only provided fields will be changed.\",\n input: MoneybirdUpdateContactInput,\n output: MoneybirdUpdateContactOutput,\n});\n"],"mappings":";;AAaA,MAAa,yBAAyB,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAbuD,EAAE,OAAO;EAChE,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,2CAA2C;EAC/F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;EAC7D,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2DAA2D;CAC1G,CAAC,CAAC,CAAC,SAAS,4CASH;CACP,QATwD,EAAE,OAAO,EACjE,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8CAA8C,EACpG,CAOU;AACV,CAAC"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/update-sales-invoice.ts
|
|
4
|
+
const MoneybirdUpdateSalesInvoiceInput = zod.z.object({
|
|
5
|
+
sales_invoice: zod.z.object({
|
|
6
|
+
currency: zod.z.string().describe("ISO currency code, e.g., 'EUR'").optional(),
|
|
7
|
+
discount: zod.z.number().describe("Discount percent (>= 0)").optional(),
|
|
8
|
+
reference: zod.z.string().describe("Invoice reference string").optional(),
|
|
9
|
+
contact_id: zod.z.number().int().describe("Valid contact ID to set").optional(),
|
|
10
|
+
workflow_id: zod.z.number().int().describe("Workflow ID to apply").optional(),
|
|
11
|
+
invoice_date: zod.z.string().describe("Invoice date (YYYY-MM-DD)").optional(),
|
|
12
|
+
time_entry_ids: zod.z.array(zod.z.number().int()).describe("List of time entry IDs to attach").optional(),
|
|
13
|
+
update_contact: zod.z.boolean().describe("If true, sync contact fields from invoice").optional(),
|
|
14
|
+
contact_person_id: zod.z.number().int().describe("Valid contact person ID to set").optional(),
|
|
15
|
+
document_style_id: zod.z.number().int().describe("Document style ID to apply").optional(),
|
|
16
|
+
details_attributes: zod.z.array(zod.z.object({
|
|
17
|
+
id: zod.z.number().int().describe("Existing detail record ID").optional(),
|
|
18
|
+
price: zod.z.number().describe("Unit price (decimal)").optional(),
|
|
19
|
+
amount: zod.z.string().describe("Quantity string, e.g., '1 x'").optional(),
|
|
20
|
+
period: zod.z.string().describe("Date range for the line, e.g., '20250101..20250131' or presets.").optional(),
|
|
21
|
+
_destroy: zod.z.boolean().describe("Set true to delete this line item").optional(),
|
|
22
|
+
trip_ids: zod.z.array(zod.z.number().int()).describe("List of trip IDs").optional(),
|
|
23
|
+
row_order: zod.z.number().int().describe("Order index of this line item").optional(),
|
|
24
|
+
product_id: zod.z.number().int().describe("Valid product ID").optional(),
|
|
25
|
+
project_id: zod.z.number().int().describe("Valid project ID").optional(),
|
|
26
|
+
description: zod.z.string().describe("Line item description").optional(),
|
|
27
|
+
tax_rate_id: zod.z.number().int().describe("Valid tax rate ID").optional(),
|
|
28
|
+
time_entry_ids: zod.z.array(zod.z.number().int()).describe("List of time entry IDs").optional(),
|
|
29
|
+
ledger_account_id: zod.z.number().int().describe("Valid ledger account ID").optional(),
|
|
30
|
+
automated_tax_enabled: zod.z.boolean().describe("Enable automated tax calculation for this line").optional()
|
|
31
|
+
}).describe("Attributes to partially update a single line item on the invoice.\nProvide only fields to change. Use `destroy`=true to remove this line.")).describe("List of line items to update").optional(),
|
|
32
|
+
first_due_interval: zod.z.number().int().describe("Days until due date").optional(),
|
|
33
|
+
payment_conditions: zod.z.string().describe("Custom payment conditions text").optional(),
|
|
34
|
+
invoice_sequence_id: zod.z.string().describe("Invoice sequence ID to set").optional(),
|
|
35
|
+
prices_are_incl_tax: zod.z.boolean().describe("True if prices include tax").optional(),
|
|
36
|
+
original_estimate_id: zod.z.number().int().describe("Link to an existing estimate ID").optional(),
|
|
37
|
+
custom_fields_attributes: zod.z.array(zod.z.object({
|
|
38
|
+
id: zod.z.number().int().describe("Custom field ID"),
|
|
39
|
+
value: zod.z.string().describe("Value for the custom field")
|
|
40
|
+
}).describe("Pair of custom field ID and its new value.")).describe("List of custom fields to update").optional(),
|
|
41
|
+
remove_invoice_sequence_id: zod.z.boolean().describe("Unset the sequence ID when true").optional()
|
|
42
|
+
}).describe("Fields to update on the invoice"),
|
|
43
|
+
sales_invoice_id: zod.z.string().describe("ID of the sales invoice to update"),
|
|
44
|
+
administration_id: zod.z.number().int().describe("Administration ID in Moneybird URL path")
|
|
45
|
+
});
|
|
46
|
+
const MoneybirdUpdateSalesInvoiceOutput = zod.z.object({ sales_invoice: zod.z.record(zod.z.string(), zod.z.unknown()).describe("The updated invoice object returned by Moneybird") });
|
|
47
|
+
const moneybirdUpdateSalesInvoice = require_action.action("MONEYBIRD_UPDATE_SALES_INVOICE", {
|
|
48
|
+
slug: "moneybird-update-sales-invoice",
|
|
49
|
+
name: "Update Sales Invoice",
|
|
50
|
+
description: "Tool to update an existing sales invoice by ID. Use when modifying invoice header or line items.",
|
|
51
|
+
input: MoneybirdUpdateSalesInvoiceInput,
|
|
52
|
+
output: MoneybirdUpdateSalesInvoiceOutput
|
|
53
|
+
});
|
|
54
|
+
//#endregion
|
|
55
|
+
exports.moneybirdUpdateSalesInvoice = moneybirdUpdateSalesInvoice;
|
|
56
|
+
|
|
57
|
+
//# sourceMappingURL=update-sales-invoice.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-sales-invoice.cjs","names":["z","action"],"sources":["../../src/actions/update-sales-invoice.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoneybirdUpdateSalesInvoiceInput: z.ZodTypeAny = z.object({\n sales_invoice: z.object({\n currency: z.string().describe(\"ISO currency code, e.g., 'EUR'\").optional(),\n discount: z.number().describe(\"Discount percent (>= 0)\").optional(),\n reference: z.string().describe(\"Invoice reference string\").optional(),\n contact_id: z.number().int().describe(\"Valid contact ID to set\").optional(),\n workflow_id: z.number().int().describe(\"Workflow ID to apply\").optional(),\n invoice_date: z.string().describe(\"Invoice date (YYYY-MM-DD)\").optional(),\n time_entry_ids: z.array(z.number().int()).describe(\"List of time entry IDs to attach\").optional(),\n update_contact: z.boolean().describe(\"If true, sync contact fields from invoice\").optional(),\n contact_person_id: z.number().int().describe(\"Valid contact person ID to set\").optional(),\n document_style_id: z.number().int().describe(\"Document style ID to apply\").optional(),\n details_attributes: z.array(z.object({\n id: z.number().int().describe(\"Existing detail record ID\").optional(),\n price: z.number().describe(\"Unit price (decimal)\").optional(),\n amount: z.string().describe(\"Quantity string, e.g., '1 x'\").optional(),\n period: z.string().describe(\"Date range for the line, e.g., '20250101..20250131' or presets.\").optional(),\n _destroy: z.boolean().describe(\"Set true to delete this line item\").optional(),\n trip_ids: z.array(z.number().int()).describe(\"List of trip IDs\").optional(),\n row_order: z.number().int().describe(\"Order index of this line item\").optional(),\n product_id: z.number().int().describe(\"Valid product ID\").optional(),\n project_id: z.number().int().describe(\"Valid project ID\").optional(),\n description: z.string().describe(\"Line item description\").optional(),\n tax_rate_id: z.number().int().describe(\"Valid tax rate ID\").optional(),\n time_entry_ids: z.array(z.number().int()).describe(\"List of time entry IDs\").optional(),\n ledger_account_id: z.number().int().describe(\"Valid ledger account ID\").optional(),\n automated_tax_enabled: z.boolean().describe(\"Enable automated tax calculation for this line\").optional(),\n}).describe(\"Attributes to partially update a single line item on the invoice.\\nProvide only fields to change. Use `destroy`=true to remove this line.\")).describe(\"List of line items to update\").optional(),\n first_due_interval: z.number().int().describe(\"Days until due date\").optional(),\n payment_conditions: z.string().describe(\"Custom payment conditions text\").optional(),\n invoice_sequence_id: z.string().describe(\"Invoice sequence ID to set\").optional(),\n prices_are_incl_tax: z.boolean().describe(\"True if prices include tax\").optional(),\n original_estimate_id: z.number().int().describe(\"Link to an existing estimate ID\").optional(),\n custom_fields_attributes: z.array(z.object({\n id: z.number().int().describe(\"Custom field ID\"),\n value: z.string().describe(\"Value for the custom field\"),\n}).describe(\"Pair of custom field ID and its new value.\")).describe(\"List of custom fields to update\").optional(),\n remove_invoice_sequence_id: z.boolean().describe(\"Unset the sequence ID when true\").optional(),\n}).describe(\"Fields to update on the invoice\"),\n sales_invoice_id: z.string().describe(\"ID of the sales invoice to update\"),\n administration_id: z.number().int().describe(\"Administration ID in Moneybird URL path\"),\n});\nexport const MoneybirdUpdateSalesInvoiceOutput: z.ZodTypeAny = z.object({\n sales_invoice: z.record(z.string(), z.unknown()).describe(\"The updated invoice object returned by Moneybird\"),\n});\n\nexport const moneybirdUpdateSalesInvoice = action(\"MONEYBIRD_UPDATE_SALES_INVOICE\", {\n slug: \"moneybird-update-sales-invoice\",\n name: \"Update Sales Invoice\",\n description: \"Tool to update an existing sales invoice by ID. Use when modifying invoice header or line items.\",\n input: MoneybirdUpdateSalesInvoiceInput,\n output: MoneybirdUpdateSalesInvoiceOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAiDA,IAAAA,EAAE,OAAO;CACrE,eAAeA,IAAAA,EAAE,OAAO;EACxB,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;EACzE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;EAClE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;EACpE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,C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CAAC,CAAC,SAAS;EAC5F,0BAA0BA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;GAC3C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iBAAiB;GAC/C,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;EACzD,CAAC,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;EAC9G,4BAA4BA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC/F,CAAC,CAAC,CAAC,SAAS,iCAAiC;CAC3C,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;CACzE,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC;AACxF,CAAC;AACD,MAAa,oCAAkDA,IAAAA,EAAE,OAAO,EACtE,eAAeA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,kDAAkD,EAC9G,CAAC;AAED,MAAa,8BAA8BC,eAAAA,OAAO,kCAAkC;CAClF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/update-sales-invoice.d.ts
|
|
4
|
+
declare const MoneybirdUpdateSalesInvoiceInput: z.ZodTypeAny;
|
|
5
|
+
declare const MoneybirdUpdateSalesInvoiceOutput: z.ZodTypeAny;
|
|
6
|
+
declare const moneybirdUpdateSalesInvoice: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { moneybirdUpdateSalesInvoice };
|
|
9
|
+
//# sourceMappingURL=update-sales-invoice.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-sales-invoice.d.cts","names":[],"sources":["../../src/actions/update-sales-invoice.ts"],"mappings":";;;cAIa,gCAAA,EAAkC,CAAA,CAAE,UAyC/C;AAAA,cACW,iCAAA,EAAmC,CAAA,CAAE,UAEhD;AAAA,cAEW,2BAAA,gCAA2B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/update-sales-invoice.d.ts
|
|
4
|
+
declare const MoneybirdUpdateSalesInvoiceInput: z.ZodTypeAny;
|
|
5
|
+
declare const MoneybirdUpdateSalesInvoiceOutput: z.ZodTypeAny;
|
|
6
|
+
declare const moneybirdUpdateSalesInvoice: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { moneybirdUpdateSalesInvoice };
|
|
9
|
+
//# sourceMappingURL=update-sales-invoice.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-sales-invoice.d.mts","names":[],"sources":["../../src/actions/update-sales-invoice.ts"],"mappings":";;;cAIa,gCAAA,EAAkC,CAAA,CAAE,UAyC/C;AAAA,cACW,iCAAA,EAAmC,CAAA,CAAE,UAEhD;AAAA,cAEW,2BAAA,gCAA2B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const moneybirdUpdateSalesInvoice = action("MONEYBIRD_UPDATE_SALES_INVOICE", {
|
|
4
|
+
slug: "moneybird-update-sales-invoice",
|
|
5
|
+
name: "Update Sales Invoice",
|
|
6
|
+
description: "Tool to update an existing sales invoice by ID. Use when modifying invoice header or line items.",
|
|
7
|
+
input: z.object({
|
|
8
|
+
sales_invoice: z.object({
|
|
9
|
+
currency: z.string().describe("ISO currency code, e.g., 'EUR'").optional(),
|
|
10
|
+
discount: z.number().describe("Discount percent (>= 0)").optional(),
|
|
11
|
+
reference: z.string().describe("Invoice reference string").optional(),
|
|
12
|
+
contact_id: z.number().int().describe("Valid contact ID to set").optional(),
|
|
13
|
+
workflow_id: z.number().int().describe("Workflow ID to apply").optional(),
|
|
14
|
+
invoice_date: z.string().describe("Invoice date (YYYY-MM-DD)").optional(),
|
|
15
|
+
time_entry_ids: z.array(z.number().int()).describe("List of time entry IDs to attach").optional(),
|
|
16
|
+
update_contact: z.boolean().describe("If true, sync contact fields from invoice").optional(),
|
|
17
|
+
contact_person_id: z.number().int().describe("Valid contact person ID to set").optional(),
|
|
18
|
+
document_style_id: z.number().int().describe("Document style ID to apply").optional(),
|
|
19
|
+
details_attributes: z.array(z.object({
|
|
20
|
+
id: z.number().int().describe("Existing detail record ID").optional(),
|
|
21
|
+
price: z.number().describe("Unit price (decimal)").optional(),
|
|
22
|
+
amount: z.string().describe("Quantity string, e.g., '1 x'").optional(),
|
|
23
|
+
period: z.string().describe("Date range for the line, e.g., '20250101..20250131' or presets.").optional(),
|
|
24
|
+
_destroy: z.boolean().describe("Set true to delete this line item").optional(),
|
|
25
|
+
trip_ids: z.array(z.number().int()).describe("List of trip IDs").optional(),
|
|
26
|
+
row_order: z.number().int().describe("Order index of this line item").optional(),
|
|
27
|
+
product_id: z.number().int().describe("Valid product ID").optional(),
|
|
28
|
+
project_id: z.number().int().describe("Valid project ID").optional(),
|
|
29
|
+
description: z.string().describe("Line item description").optional(),
|
|
30
|
+
tax_rate_id: z.number().int().describe("Valid tax rate ID").optional(),
|
|
31
|
+
time_entry_ids: z.array(z.number().int()).describe("List of time entry IDs").optional(),
|
|
32
|
+
ledger_account_id: z.number().int().describe("Valid ledger account ID").optional(),
|
|
33
|
+
automated_tax_enabled: z.boolean().describe("Enable automated tax calculation for this line").optional()
|
|
34
|
+
}).describe("Attributes to partially update a single line item on the invoice.\nProvide only fields to change. Use `destroy`=true to remove this line.")).describe("List of line items to update").optional(),
|
|
35
|
+
first_due_interval: z.number().int().describe("Days until due date").optional(),
|
|
36
|
+
payment_conditions: z.string().describe("Custom payment conditions text").optional(),
|
|
37
|
+
invoice_sequence_id: z.string().describe("Invoice sequence ID to set").optional(),
|
|
38
|
+
prices_are_incl_tax: z.boolean().describe("True if prices include tax").optional(),
|
|
39
|
+
original_estimate_id: z.number().int().describe("Link to an existing estimate ID").optional(),
|
|
40
|
+
custom_fields_attributes: z.array(z.object({
|
|
41
|
+
id: z.number().int().describe("Custom field ID"),
|
|
42
|
+
value: z.string().describe("Value for the custom field")
|
|
43
|
+
}).describe("Pair of custom field ID and its new value.")).describe("List of custom fields to update").optional(),
|
|
44
|
+
remove_invoice_sequence_id: z.boolean().describe("Unset the sequence ID when true").optional()
|
|
45
|
+
}).describe("Fields to update on the invoice"),
|
|
46
|
+
sales_invoice_id: z.string().describe("ID of the sales invoice to update"),
|
|
47
|
+
administration_id: z.number().int().describe("Administration ID in Moneybird URL path")
|
|
48
|
+
}),
|
|
49
|
+
output: z.object({ sales_invoice: z.record(z.string(), z.unknown()).describe("The updated invoice object returned by Moneybird") })
|
|
50
|
+
});
|
|
51
|
+
//#endregion
|
|
52
|
+
export { moneybirdUpdateSalesInvoice };
|
|
53
|
+
|
|
54
|
+
//# sourceMappingURL=update-sales-invoice.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-sales-invoice.mjs","names":[],"sources":["../../src/actions/update-sales-invoice.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoneybirdUpdateSalesInvoiceInput: z.ZodTypeAny = z.object({\n sales_invoice: z.object({\n currency: z.string().describe(\"ISO currency code, e.g., 'EUR'\").optional(),\n discount: z.number().describe(\"Discount percent (>= 0)\").optional(),\n reference: z.string().describe(\"Invoice reference string\").optional(),\n contact_id: z.number().int().describe(\"Valid contact ID to set\").optional(),\n workflow_id: z.number().int().describe(\"Workflow ID to apply\").optional(),\n invoice_date: z.string().describe(\"Invoice date (YYYY-MM-DD)\").optional(),\n time_entry_ids: z.array(z.number().int()).describe(\"List of time entry IDs to attach\").optional(),\n update_contact: z.boolean().describe(\"If true, sync contact fields from invoice\").optional(),\n contact_person_id: z.number().int().describe(\"Valid contact person ID to set\").optional(),\n document_style_id: z.number().int().describe(\"Document style ID to apply\").optional(),\n details_attributes: z.array(z.object({\n id: z.number().int().describe(\"Existing detail record ID\").optional(),\n price: z.number().describe(\"Unit price (decimal)\").optional(),\n amount: z.string().describe(\"Quantity string, e.g., '1 x'\").optional(),\n period: z.string().describe(\"Date range for the line, e.g., '20250101..20250131' or presets.\").optional(),\n _destroy: z.boolean().describe(\"Set true to delete this line item\").optional(),\n trip_ids: z.array(z.number().int()).describe(\"List of trip IDs\").optional(),\n row_order: z.number().int().describe(\"Order index of this line item\").optional(),\n product_id: z.number().int().describe(\"Valid product ID\").optional(),\n project_id: z.number().int().describe(\"Valid project ID\").optional(),\n description: z.string().describe(\"Line item description\").optional(),\n tax_rate_id: z.number().int().describe(\"Valid tax rate ID\").optional(),\n time_entry_ids: z.array(z.number().int()).describe(\"List of time entry IDs\").optional(),\n ledger_account_id: z.number().int().describe(\"Valid ledger account ID\").optional(),\n automated_tax_enabled: z.boolean().describe(\"Enable automated tax calculation for this line\").optional(),\n}).describe(\"Attributes to partially update a single line item on the invoice.\\nProvide only fields to change. Use `destroy`=true to remove this line.\")).describe(\"List of line items to update\").optional(),\n first_due_interval: z.number().int().describe(\"Days until due date\").optional(),\n payment_conditions: z.string().describe(\"Custom payment conditions text\").optional(),\n invoice_sequence_id: z.string().describe(\"Invoice sequence ID to set\").optional(),\n prices_are_incl_tax: z.boolean().describe(\"True if prices include tax\").optional(),\n original_estimate_id: z.number().int().describe(\"Link to an existing estimate ID\").optional(),\n custom_fields_attributes: z.array(z.object({\n id: z.number().int().describe(\"Custom field ID\"),\n value: z.string().describe(\"Value for the custom field\"),\n}).describe(\"Pair of custom field ID and its new value.\")).describe(\"List of custom fields to update\").optional(),\n remove_invoice_sequence_id: z.boolean().describe(\"Unset the sequence ID when true\").optional(),\n}).describe(\"Fields to update on the invoice\"),\n sales_invoice_id: z.string().describe(\"ID of the sales invoice to update\"),\n administration_id: z.number().int().describe(\"Administration ID in Moneybird URL path\"),\n});\nexport const MoneybirdUpdateSalesInvoiceOutput: z.ZodTypeAny = z.object({\n sales_invoice: z.record(z.string(), z.unknown()).describe(\"The updated invoice object returned by Moneybird\"),\n});\n\nexport const moneybirdUpdateSalesInvoice = action(\"MONEYBIRD_UPDATE_SALES_INVOICE\", {\n slug: \"moneybird-update-sales-invoice\",\n name: \"Update Sales Invoice\",\n description: \"Tool to update an existing sales invoice by ID. Use when modifying invoice header or line items.\",\n input: MoneybirdUpdateSalesInvoiceInput,\n output: MoneybirdUpdateSalesInvoiceOutput,\n});\n"],"mappings":";;AAkDA,MAAa,8BAA8B,OAAO,kCAAkC;CAClF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAlD4D,EAAE,OAAO;EACrE,eAAe,EAAE,OAAO;GACxB,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;GACzE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;GAClE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;GACpE,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;GAC1E,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAA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F,CAAC,CAAC,CAAC,SAAS,iCAAiC;EAC3C,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;EACzE,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC;CACxF,CASS;CACP,QAT6D,EAAE,OAAO,EACtE,eAAe,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,kDAAkD,EAC9G,CAOU;AACV,CAAC"}
|
package/dist/app.cjs
ADDED
package/dist/app.cjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.cjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\n\nexport const moneybird = defineApp({\n slug: \"moneybird\",\n auth: \"keystroke\",\n});\n"],"mappings":";AAEA,MAAa,aAAA,uCAAA,CAAA,CAAA,UAAA,CAAsB;CACjC,MAAM;CACN,MAAM;AACR,CAAC"}
|
package/dist/app.d.cts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";cAEa,SAAA,6BAAS,GAAA,+BAAA,UAAA"}
|
package/dist/app.d.mts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";cAEa,SAAA,6BAAS,GAAA,+BAAA,UAAA"}
|
package/dist/app.mjs
ADDED
package/dist/app.mjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\n\nexport const moneybird = defineApp({\n slug: \"moneybird\",\n auth: \"keystroke\",\n});\n"],"mappings":";;AAEA,MAAa,YAAY,UAAU;CACjC,MAAM;CACN,MAAM;AACR,CAAC"}
|
package/dist/catalog.cjs
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
//#region src/catalog.ts
|
|
2
|
+
/** Generated — kept in sync with src/app.ts. */
|
|
3
|
+
const moneybirdCatalog = {
|
|
4
|
+
"slug": "moneybird",
|
|
5
|
+
"name": "Moneybird",
|
|
6
|
+
"description": "Moneybird is an online invoicing and accounting platform designed for small businesses and freelancers, offering features like invoicing, expense tracking, and financial reporting.",
|
|
7
|
+
"category": "Accounting",
|
|
8
|
+
"logo": "https://logos.composio.dev/api/moneybird",
|
|
9
|
+
"authKind": "keystroke",
|
|
10
|
+
"oauthScopes": []
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
exports.moneybirdCatalog = moneybirdCatalog;
|
|
14
|
+
|
|
15
|
+
//# sourceMappingURL=catalog.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog.cjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const moneybirdCatalog = {\n \"slug\": \"moneybird\",\n \"name\": \"Moneybird\",\n \"description\": \"Moneybird is an online invoicing and accounting platform designed for small businesses and freelancers, offering features like invoicing, expense tracking, and financial reporting.\",\n \"category\": \"Accounting\",\n \"logo\": \"https://logos.composio.dev/api/moneybird\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,mBAAmB;CAC9B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;AAClB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//#region src/catalog.d.ts
|
|
2
|
+
/** Generated — kept in sync with src/app.ts. */
|
|
3
|
+
declare const moneybirdCatalog: {
|
|
4
|
+
readonly slug: "moneybird";
|
|
5
|
+
readonly name: "Moneybird";
|
|
6
|
+
readonly description: "Moneybird is an online invoicing and accounting platform designed for small businesses and freelancers, offering features like invoicing, expense tracking, and financial reporting.";
|
|
7
|
+
readonly category: "Accounting";
|
|
8
|
+
readonly logo: "https://logos.composio.dev/api/moneybird";
|
|
9
|
+
readonly authKind: "keystroke";
|
|
10
|
+
readonly oauthScopes: readonly [];
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { moneybirdCatalog };
|
|
14
|
+
//# sourceMappingURL=catalog.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog.d.cts","names":[],"sources":["../src/catalog.ts"],"mappings":";;cACa,gBAAA;EAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//#region src/catalog.d.ts
|
|
2
|
+
/** Generated — kept in sync with src/app.ts. */
|
|
3
|
+
declare const moneybirdCatalog: {
|
|
4
|
+
readonly slug: "moneybird";
|
|
5
|
+
readonly name: "Moneybird";
|
|
6
|
+
readonly description: "Moneybird is an online invoicing and accounting platform designed for small businesses and freelancers, offering features like invoicing, expense tracking, and financial reporting.";
|
|
7
|
+
readonly category: "Accounting";
|
|
8
|
+
readonly logo: "https://logos.composio.dev/api/moneybird";
|
|
9
|
+
readonly authKind: "keystroke";
|
|
10
|
+
readonly oauthScopes: readonly [];
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { moneybirdCatalog };
|
|
14
|
+
//# sourceMappingURL=catalog.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog.d.mts","names":[],"sources":["../src/catalog.ts"],"mappings":";;cACa,gBAAA;EAAA"}
|
package/dist/catalog.mjs
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
//#region src/catalog.ts
|
|
2
|
+
/** Generated — kept in sync with src/app.ts. */
|
|
3
|
+
const moneybirdCatalog = {
|
|
4
|
+
"slug": "moneybird",
|
|
5
|
+
"name": "Moneybird",
|
|
6
|
+
"description": "Moneybird is an online invoicing and accounting platform designed for small businesses and freelancers, offering features like invoicing, expense tracking, and financial reporting.",
|
|
7
|
+
"category": "Accounting",
|
|
8
|
+
"logo": "https://logos.composio.dev/api/moneybird",
|
|
9
|
+
"authKind": "keystroke",
|
|
10
|
+
"oauthScopes": []
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { moneybirdCatalog };
|
|
14
|
+
|
|
15
|
+
//# sourceMappingURL=catalog.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog.mjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const moneybirdCatalog = {\n \"slug\": \"moneybird\",\n \"name\": \"Moneybird\",\n \"description\": \"Moneybird is an online invoicing and accounting platform designed for small businesses and freelancers, offering features like invoicing, expense tracking, and financial reporting.\",\n \"category\": \"Accounting\",\n \"logo\": \"https://logos.composio.dev/api/moneybird\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,mBAAmB;CAC9B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;AAClB"}
|
package/dist/execute.cjs
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
let _keystrokehq_keystroke_client = require("@keystrokehq/keystroke/client");
|
|
2
|
+
//#region src/execute.ts
|
|
3
|
+
const APP_SLUG = "moneybird";
|
|
4
|
+
/** Pinned app version — updated on regeneration. */
|
|
5
|
+
const APP_VERSION = "20260615_00";
|
|
6
|
+
async function executeMoneybirdTool(tool, args) {
|
|
7
|
+
const { result } = await (0, _keystrokehq_keystroke_client.createKeystrokeClient)().tools.execute({
|
|
8
|
+
app: APP_SLUG,
|
|
9
|
+
tool,
|
|
10
|
+
arguments: args,
|
|
11
|
+
version: APP_VERSION
|
|
12
|
+
});
|
|
13
|
+
return result;
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
exports.executeMoneybirdTool = executeMoneybirdTool;
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=execute.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"execute.cjs","names":[],"sources":["../src/execute.ts"],"sourcesContent":["import { createKeystrokeClient } from \"@keystrokehq/keystroke/client\";\n\nconst APP_SLUG = \"moneybird\";\n/** Pinned app version — updated on regeneration. */\nconst APP_VERSION = \"20260615_00\";\n\nexport async function executeMoneybirdTool(\n tool: string,\n args: Record<string, unknown>,\n): Promise<unknown> {\n const { result } = await createKeystrokeClient().tools.execute({\n app: APP_SLUG,\n tool,\n arguments: args,\n version: APP_VERSION,\n });\n return result;\n}\n"],"mappings":";;AAEA,MAAM,WAAW;;AAEjB,MAAM,cAAc;AAEpB,eAAsB,qBACpB,MACA,MACkB;CAClB,MAAM,EAAE,WAAW,OAAA,GAAA,8BAAA,sBAAA,CAA4B,CAAC,CAAC,MAAM,QAAQ;EAC7D,KAAK;EACL;EACA,WAAW;EACX,SAAS;CACX,CAAC;CACD,OAAO;AACT"}
|
package/dist/execute.mjs
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { createKeystrokeClient } from "@keystrokehq/keystroke/client";
|
|
2
|
+
//#region src/execute.ts
|
|
3
|
+
const APP_SLUG = "moneybird";
|
|
4
|
+
/** Pinned app version — updated on regeneration. */
|
|
5
|
+
const APP_VERSION = "20260615_00";
|
|
6
|
+
async function executeMoneybirdTool(tool, args) {
|
|
7
|
+
const { result } = await createKeystrokeClient().tools.execute({
|
|
8
|
+
app: APP_SLUG,
|
|
9
|
+
tool,
|
|
10
|
+
arguments: args,
|
|
11
|
+
version: APP_VERSION
|
|
12
|
+
});
|
|
13
|
+
return result;
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
export { executeMoneybirdTool };
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=execute.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"execute.mjs","names":[],"sources":["../src/execute.ts"],"sourcesContent":["import { createKeystrokeClient } from \"@keystrokehq/keystroke/client\";\n\nconst APP_SLUG = \"moneybird\";\n/** Pinned app version — updated on regeneration. */\nconst APP_VERSION = \"20260615_00\";\n\nexport async function executeMoneybirdTool(\n tool: string,\n args: Record<string, unknown>,\n): Promise<unknown> {\n const { result } = await createKeystrokeClient().tools.execute({\n app: APP_SLUG,\n tool,\n arguments: args,\n version: APP_VERSION,\n });\n return result;\n}\n"],"mappings":";;AAEA,MAAM,WAAW;;AAEjB,MAAM,cAAc;AAEpB,eAAsB,qBACpB,MACA,MACkB;CAClB,MAAM,EAAE,WAAW,MAAM,sBAAsB,CAAC,CAAC,MAAM,QAAQ;EAC7D,KAAK;EACL;EACA,WAAW;EACX,SAAS;CACX,CAAC;CACD,OAAO;AACT"}
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_app = require("./app.cjs");
|
|
3
|
+
const require_catalog = require("./catalog.cjs");
|
|
4
|
+
const require_add_note_to_contact = require("./actions/add-note-to-contact.cjs");
|
|
5
|
+
const require_archive_contact = require("./actions/archive-contact.cjs");
|
|
6
|
+
const require_create_contact = require("./actions/create-contact.cjs");
|
|
7
|
+
const require_create_contact_person = require("./actions/create-contact-person.cjs");
|
|
8
|
+
const require_create_sales_invoice = require("./actions/create-sales-invoice.cjs");
|
|
9
|
+
const require_delete_contact = require("./actions/delete-contact.cjs");
|
|
10
|
+
const require_delete_contact_note = require("./actions/delete-contact-note.cjs");
|
|
11
|
+
const require_delete_contact_person = require("./actions/delete-contact-person.cjs");
|
|
12
|
+
const require_filter_contacts = require("./actions/filter-contacts.cjs");
|
|
13
|
+
const require_get_additional_charges = require("./actions/get-additional-charges.cjs");
|
|
14
|
+
const require_get_contact = require("./actions/get-contact.cjs");
|
|
15
|
+
const require_get_contact_by_customer_id = require("./actions/get-contact-by-customer-id.cjs");
|
|
16
|
+
const require_get_contact_person = require("./actions/get-contact-person.cjs");
|
|
17
|
+
const require_get_sales_invoice = require("./actions/get-sales-invoice.cjs");
|
|
18
|
+
const require_list_administrations = require("./actions/list-administrations.cjs");
|
|
19
|
+
const require_list_contacts_synchronization = require("./actions/list-contacts-synchronization.cjs");
|
|
20
|
+
const require_list_sales_invoices = require("./actions/list-sales-invoices.cjs");
|
|
21
|
+
const require_request_contact_payments_mandate_url = require("./actions/request-contact-payments-mandate-url.cjs");
|
|
22
|
+
const require_update_contact = require("./actions/update-contact.cjs");
|
|
23
|
+
const require_update_contact_person = require("./actions/update-contact-person.cjs");
|
|
24
|
+
const require_update_sales_invoice = require("./actions/update-sales-invoice.cjs");
|
|
25
|
+
require("./actions/index.cjs");
|
|
26
|
+
exports.moneybird = require_app.moneybird;
|
|
27
|
+
exports.moneybirdAddNoteToContact = require_add_note_to_contact.moneybirdAddNoteToContact;
|
|
28
|
+
exports.moneybirdArchiveContact = require_archive_contact.moneybirdArchiveContact;
|
|
29
|
+
exports.moneybirdCatalog = require_catalog.moneybirdCatalog;
|
|
30
|
+
exports.moneybirdCreateContact = require_create_contact.moneybirdCreateContact;
|
|
31
|
+
exports.moneybirdCreateContactPerson = require_create_contact_person.moneybirdCreateContactPerson;
|
|
32
|
+
exports.moneybirdCreateSalesInvoice = require_create_sales_invoice.moneybirdCreateSalesInvoice;
|
|
33
|
+
exports.moneybirdDeleteContact = require_delete_contact.moneybirdDeleteContact;
|
|
34
|
+
exports.moneybirdDeleteContactNote = require_delete_contact_note.moneybirdDeleteContactNote;
|
|
35
|
+
exports.moneybirdDeleteContactPerson = require_delete_contact_person.moneybirdDeleteContactPerson;
|
|
36
|
+
exports.moneybirdFilterContacts = require_filter_contacts.moneybirdFilterContacts;
|
|
37
|
+
exports.moneybirdGetAdditionalCharges = require_get_additional_charges.moneybirdGetAdditionalCharges;
|
|
38
|
+
exports.moneybirdGetContact = require_get_contact.moneybirdGetContact;
|
|
39
|
+
exports.moneybirdGetContactByCustomerId = require_get_contact_by_customer_id.moneybirdGetContactByCustomerId;
|
|
40
|
+
exports.moneybirdGetContactPerson = require_get_contact_person.moneybirdGetContactPerson;
|
|
41
|
+
exports.moneybirdGetSalesInvoice = require_get_sales_invoice.moneybirdGetSalesInvoice;
|
|
42
|
+
exports.moneybirdListAdministrations = require_list_administrations.moneybirdListAdministrations;
|
|
43
|
+
exports.moneybirdListContactsSynchronization = require_list_contacts_synchronization.moneybirdListContactsSynchronization;
|
|
44
|
+
exports.moneybirdListSalesInvoices = require_list_sales_invoices.moneybirdListSalesInvoices;
|
|
45
|
+
exports.moneybirdRequestContactPaymentsMandateUrl = require_request_contact_payments_mandate_url.moneybirdRequestContactPaymentsMandateUrl;
|
|
46
|
+
exports.moneybirdUpdateContact = require_update_contact.moneybirdUpdateContact;
|
|
47
|
+
exports.moneybirdUpdateContactPerson = require_update_contact_person.moneybirdUpdateContactPerson;
|
|
48
|
+
exports.moneybirdUpdateSalesInvoice = require_update_sales_invoice.moneybirdUpdateSalesInvoice;
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { moneybirdAddNoteToContact } from "./actions/add-note-to-contact.cjs";
|
|
2
|
+
import { moneybirdArchiveContact } from "./actions/archive-contact.cjs";
|
|
3
|
+
import { moneybirdCreateContact } from "./actions/create-contact.cjs";
|
|
4
|
+
import { moneybirdCreateContactPerson } from "./actions/create-contact-person.cjs";
|
|
5
|
+
import { moneybirdCreateSalesInvoice } from "./actions/create-sales-invoice.cjs";
|
|
6
|
+
import { moneybirdDeleteContact } from "./actions/delete-contact.cjs";
|
|
7
|
+
import { moneybirdDeleteContactNote } from "./actions/delete-contact-note.cjs";
|
|
8
|
+
import { moneybirdDeleteContactPerson } from "./actions/delete-contact-person.cjs";
|
|
9
|
+
import { moneybirdFilterContacts } from "./actions/filter-contacts.cjs";
|
|
10
|
+
import { moneybirdGetAdditionalCharges } from "./actions/get-additional-charges.cjs";
|
|
11
|
+
import { moneybirdGetContact } from "./actions/get-contact.cjs";
|
|
12
|
+
import { moneybirdGetContactByCustomerId } from "./actions/get-contact-by-customer-id.cjs";
|
|
13
|
+
import { moneybirdGetContactPerson } from "./actions/get-contact-person.cjs";
|
|
14
|
+
import { moneybirdGetSalesInvoice } from "./actions/get-sales-invoice.cjs";
|
|
15
|
+
import { moneybirdListAdministrations } from "./actions/list-administrations.cjs";
|
|
16
|
+
import { moneybirdListContactsSynchronization } from "./actions/list-contacts-synchronization.cjs";
|
|
17
|
+
import { moneybirdListSalesInvoices } from "./actions/list-sales-invoices.cjs";
|
|
18
|
+
import { moneybirdRequestContactPaymentsMandateUrl } from "./actions/request-contact-payments-mandate-url.cjs";
|
|
19
|
+
import { moneybirdUpdateContact } from "./actions/update-contact.cjs";
|
|
20
|
+
import { moneybirdUpdateContactPerson } from "./actions/update-contact-person.cjs";
|
|
21
|
+
import { moneybirdUpdateSalesInvoice } from "./actions/update-sales-invoice.cjs";
|
|
22
|
+
import { moneybird } from "./app.cjs";
|
|
23
|
+
import { moneybirdCatalog } from "./catalog.cjs";
|
|
24
|
+
export { moneybird, moneybirdAddNoteToContact, moneybirdArchiveContact, moneybirdCatalog, moneybirdCreateContact, moneybirdCreateContactPerson, moneybirdCreateSalesInvoice, moneybirdDeleteContact, moneybirdDeleteContactNote, moneybirdDeleteContactPerson, moneybirdFilterContacts, moneybirdGetAdditionalCharges, moneybirdGetContact, moneybirdGetContactByCustomerId, moneybirdGetContactPerson, moneybirdGetSalesInvoice, moneybirdListAdministrations, moneybirdListContactsSynchronization, moneybirdListSalesInvoices, moneybirdRequestContactPaymentsMandateUrl, moneybirdUpdateContact, moneybirdUpdateContactPerson, moneybirdUpdateSalesInvoice };
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { moneybirdAddNoteToContact } from "./actions/add-note-to-contact.mjs";
|
|
2
|
+
import { moneybirdArchiveContact } from "./actions/archive-contact.mjs";
|
|
3
|
+
import { moneybirdCreateContact } from "./actions/create-contact.mjs";
|
|
4
|
+
import { moneybirdCreateContactPerson } from "./actions/create-contact-person.mjs";
|
|
5
|
+
import { moneybirdCreateSalesInvoice } from "./actions/create-sales-invoice.mjs";
|
|
6
|
+
import { moneybirdDeleteContact } from "./actions/delete-contact.mjs";
|
|
7
|
+
import { moneybirdDeleteContactNote } from "./actions/delete-contact-note.mjs";
|
|
8
|
+
import { moneybirdDeleteContactPerson } from "./actions/delete-contact-person.mjs";
|
|
9
|
+
import { moneybirdFilterContacts } from "./actions/filter-contacts.mjs";
|
|
10
|
+
import { moneybirdGetAdditionalCharges } from "./actions/get-additional-charges.mjs";
|
|
11
|
+
import { moneybirdGetContact } from "./actions/get-contact.mjs";
|
|
12
|
+
import { moneybirdGetContactByCustomerId } from "./actions/get-contact-by-customer-id.mjs";
|
|
13
|
+
import { moneybirdGetContactPerson } from "./actions/get-contact-person.mjs";
|
|
14
|
+
import { moneybirdGetSalesInvoice } from "./actions/get-sales-invoice.mjs";
|
|
15
|
+
import { moneybirdListAdministrations } from "./actions/list-administrations.mjs";
|
|
16
|
+
import { moneybirdListContactsSynchronization } from "./actions/list-contacts-synchronization.mjs";
|
|
17
|
+
import { moneybirdListSalesInvoices } from "./actions/list-sales-invoices.mjs";
|
|
18
|
+
import { moneybirdRequestContactPaymentsMandateUrl } from "./actions/request-contact-payments-mandate-url.mjs";
|
|
19
|
+
import { moneybirdUpdateContact } from "./actions/update-contact.mjs";
|
|
20
|
+
import { moneybirdUpdateContactPerson } from "./actions/update-contact-person.mjs";
|
|
21
|
+
import { moneybirdUpdateSalesInvoice } from "./actions/update-sales-invoice.mjs";
|
|
22
|
+
import { moneybird } from "./app.mjs";
|
|
23
|
+
import { moneybirdCatalog } from "./catalog.mjs";
|
|
24
|
+
export { moneybird, moneybirdAddNoteToContact, moneybirdArchiveContact, moneybirdCatalog, moneybirdCreateContact, moneybirdCreateContactPerson, moneybirdCreateSalesInvoice, moneybirdDeleteContact, moneybirdDeleteContactNote, moneybirdDeleteContactPerson, moneybirdFilterContacts, moneybirdGetAdditionalCharges, moneybirdGetContact, moneybirdGetContactByCustomerId, moneybirdGetContactPerson, moneybirdGetSalesInvoice, moneybirdListAdministrations, moneybirdListContactsSynchronization, moneybirdListSalesInvoices, moneybirdRequestContactPaymentsMandateUrl, moneybirdUpdateContact, moneybirdUpdateContactPerson, moneybirdUpdateSalesInvoice };
|