@keystrokehq/moneybird 0.1.2 → 0.1.4
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/actions/add-note-to-contact.cjs +1 -1
- package/dist/actions/add-note-to-contact.cjs.map +1 -1
- package/dist/actions/add-note-to-contact.d.cts +14 -2
- package/dist/actions/add-note-to-contact.d.mts +14 -2
- package/dist/actions/add-note-to-contact.mjs +1 -1
- package/dist/actions/add-note-to-contact.mjs.map +1 -1
- package/dist/actions/archive-contact.cjs +1 -1
- package/dist/actions/archive-contact.cjs.map +1 -1
- package/dist/actions/archive-contact.d.cts +14 -2
- package/dist/actions/archive-contact.d.cts.map +1 -1
- package/dist/actions/archive-contact.d.mts +14 -2
- package/dist/actions/archive-contact.d.mts.map +1 -1
- package/dist/actions/archive-contact.mjs +1 -1
- package/dist/actions/archive-contact.mjs.map +1 -1
- package/dist/actions/create-contact-person.cjs +1 -1
- package/dist/actions/create-contact-person.cjs.map +1 -1
- package/dist/actions/create-contact-person.d.cts +14 -2
- package/dist/actions/create-contact-person.d.mts +14 -2
- package/dist/actions/create-contact-person.mjs +1 -1
- package/dist/actions/create-contact-person.mjs.map +1 -1
- package/dist/actions/create-contact.cjs +2 -2
- package/dist/actions/create-contact.cjs.map +1 -1
- package/dist/actions/create-contact.d.cts +16 -4
- package/dist/actions/create-contact.d.cts.map +1 -1
- package/dist/actions/create-contact.d.mts +16 -4
- package/dist/actions/create-contact.d.mts.map +1 -1
- package/dist/actions/create-contact.mjs +2 -2
- package/dist/actions/create-contact.mjs.map +1 -1
- package/dist/actions/create-sales-invoice.cjs +4 -4
- package/dist/actions/create-sales-invoice.cjs.map +1 -1
- package/dist/actions/create-sales-invoice.d.cts +19 -5
- package/dist/actions/create-sales-invoice.d.mts +19 -5
- package/dist/actions/create-sales-invoice.mjs +4 -4
- package/dist/actions/create-sales-invoice.mjs.map +1 -1
- package/dist/actions/delete-contact-note.cjs +1 -1
- package/dist/actions/delete-contact-note.cjs.map +1 -1
- package/dist/actions/delete-contact-note.d.cts +14 -2
- package/dist/actions/delete-contact-note.d.cts.map +1 -1
- package/dist/actions/delete-contact-note.d.mts +14 -2
- package/dist/actions/delete-contact-note.d.mts.map +1 -1
- package/dist/actions/delete-contact-note.mjs +1 -1
- package/dist/actions/delete-contact-note.mjs.map +1 -1
- package/dist/actions/delete-contact-person.cjs +1 -1
- package/dist/actions/delete-contact-person.cjs.map +1 -1
- package/dist/actions/delete-contact-person.d.cts +14 -2
- package/dist/actions/delete-contact-person.d.cts.map +1 -1
- package/dist/actions/delete-contact-person.d.mts +14 -2
- package/dist/actions/delete-contact-person.d.mts.map +1 -1
- package/dist/actions/delete-contact-person.mjs +1 -1
- package/dist/actions/delete-contact-person.mjs.map +1 -1
- package/dist/actions/delete-contact.cjs +1 -1
- package/dist/actions/delete-contact.cjs.map +1 -1
- package/dist/actions/delete-contact.d.cts +14 -2
- package/dist/actions/delete-contact.d.cts.map +1 -1
- package/dist/actions/delete-contact.d.mts +14 -2
- package/dist/actions/delete-contact.d.mts.map +1 -1
- package/dist/actions/delete-contact.mjs +1 -1
- package/dist/actions/delete-contact.mjs.map +1 -1
- package/dist/actions/filter-contacts.d.cts +13 -1
- package/dist/actions/filter-contacts.d.mts +13 -1
- package/dist/actions/get-additional-charges.d.cts +13 -1
- package/dist/actions/get-additional-charges.d.mts +13 -1
- package/dist/actions/get-contact-by-customer-id.cjs +5 -5
- package/dist/actions/get-contact-by-customer-id.cjs.map +1 -1
- package/dist/actions/get-contact-by-customer-id.d.cts +18 -6
- package/dist/actions/get-contact-by-customer-id.d.mts +18 -6
- package/dist/actions/get-contact-by-customer-id.mjs +5 -5
- package/dist/actions/get-contact-by-customer-id.mjs.map +1 -1
- package/dist/actions/get-contact-person.cjs +1 -1
- package/dist/actions/get-contact-person.cjs.map +1 -1
- package/dist/actions/get-contact-person.d.cts +14 -2
- package/dist/actions/get-contact-person.d.mts +14 -2
- package/dist/actions/get-contact-person.mjs +1 -1
- package/dist/actions/get-contact-person.mjs.map +1 -1
- package/dist/actions/get-contact.cjs +1 -1
- package/dist/actions/get-contact.cjs.map +1 -1
- package/dist/actions/get-contact.d.cts +14 -2
- package/dist/actions/get-contact.d.mts +14 -2
- package/dist/actions/get-contact.mjs +1 -1
- package/dist/actions/get-contact.mjs.map +1 -1
- package/dist/actions/get-sales-invoice.cjs +1 -1
- package/dist/actions/get-sales-invoice.cjs.map +1 -1
- package/dist/actions/get-sales-invoice.d.cts +14 -2
- package/dist/actions/get-sales-invoice.d.mts +14 -2
- package/dist/actions/get-sales-invoice.mjs +1 -1
- package/dist/actions/get-sales-invoice.mjs.map +1 -1
- package/dist/actions/list-administrations.d.cts +13 -1
- package/dist/actions/list-administrations.d.cts.map +1 -1
- package/dist/actions/list-administrations.d.mts +13 -1
- package/dist/actions/list-administrations.d.mts.map +1 -1
- package/dist/actions/list-contacts-synchronization.d.cts +13 -1
- package/dist/actions/list-contacts-synchronization.d.mts +13 -1
- package/dist/actions/list-sales-invoices.d.cts +13 -1
- package/dist/actions/list-sales-invoices.d.mts +13 -1
- package/dist/actions/request-contact-payments-mandate-url.cjs +1 -1
- package/dist/actions/request-contact-payments-mandate-url.cjs.map +1 -1
- package/dist/actions/request-contact-payments-mandate-url.d.cts +14 -2
- package/dist/actions/request-contact-payments-mandate-url.d.mts +14 -2
- package/dist/actions/request-contact-payments-mandate-url.mjs +1 -1
- package/dist/actions/request-contact-payments-mandate-url.mjs.map +1 -1
- package/dist/actions/update-contact-person.cjs +1 -1
- package/dist/actions/update-contact-person.cjs.map +1 -1
- package/dist/actions/update-contact-person.d.cts +14 -2
- package/dist/actions/update-contact-person.d.mts +14 -2
- package/dist/actions/update-contact-person.mjs +1 -1
- package/dist/actions/update-contact-person.mjs.map +1 -1
- package/dist/actions/update-contact.cjs +1 -1
- package/dist/actions/update-contact.cjs.map +1 -1
- package/dist/actions/update-contact.d.cts +14 -2
- package/dist/actions/update-contact.d.cts.map +1 -1
- package/dist/actions/update-contact.d.mts +14 -2
- package/dist/actions/update-contact.d.mts.map +1 -1
- package/dist/actions/update-contact.mjs +1 -1
- package/dist/actions/update-contact.mjs.map +1 -1
- package/dist/actions/update-sales-invoice.cjs +3 -3
- package/dist/actions/update-sales-invoice.cjs.map +1 -1
- package/dist/actions/update-sales-invoice.d.cts +18 -4
- package/dist/actions/update-sales-invoice.d.mts +18 -4
- package/dist/actions/update-sales-invoice.mjs +3 -3
- package/dist/actions/update-sales-invoice.mjs.map +1 -1
- package/dist/app.cjs +5 -2
- package/dist/app.cjs.map +1 -1
- package/dist/app.d.cts +9 -1
- package/dist/app.d.cts.map +1 -1
- package/dist/app.d.mts +9 -1
- package/dist/app.d.mts.map +1 -1
- package/dist/app.mjs +3 -1
- package/dist/app.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1 +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.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.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,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,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,+BAA+BA,IAAAA,EAAE,OAAO,EACnD,SAASA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8CAA8C,EACpG,CAAC;
|
|
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.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.object({\n contact: z.record(z.string(), z.unknown()).describe(\"Updated contact object returned by Moneybird\"),\n}).passthrough();\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,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,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,+BAA+BA,IAAAA,EAAE,OAAO,EACnD,SAASA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8CAA8C,EACpG,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,yBAAyBC,eAAAA,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -8,12 +8,24 @@ declare const MoneybirdUpdateContactInput: z.ZodObject<{
|
|
|
8
8
|
}, z.core.$strip>;
|
|
9
9
|
declare const MoneybirdUpdateContactOutput: z.ZodObject<{
|
|
10
10
|
contact: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
11
|
-
}, z.core.$
|
|
11
|
+
}, z.core.$loose>;
|
|
12
12
|
declare const moneybirdUpdateContact: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
13
13
|
contact: Record<string, unknown>;
|
|
14
14
|
contact_id: string;
|
|
15
15
|
administration_id: number;
|
|
16
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential
|
|
16
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"moneybird", z.ZodObject<{
|
|
17
|
+
connectionId: z.ZodString;
|
|
18
|
+
entityId: z.ZodString;
|
|
19
|
+
instanceId: z.ZodString;
|
|
20
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
21
|
+
accessToken: z.ZodString;
|
|
22
|
+
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"moneybird", z.ZodObject<{
|
|
23
|
+
connectionId: z.ZodString;
|
|
24
|
+
entityId: z.ZodString;
|
|
25
|
+
instanceId: z.ZodString;
|
|
26
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
27
|
+
accessToken: z.ZodString;
|
|
28
|
+
}, z.core.$strip>>]>;
|
|
17
29
|
//#endregion
|
|
18
30
|
export { moneybirdUpdateContact };
|
|
19
31
|
//# sourceMappingURL=update-contact.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-contact.d.cts","names":[],"sources":["../../src/actions/update-contact.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;cAK3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAI5B,sBAAA,gCAAsB,wBAAA
|
|
1
|
+
{"version":3,"file":"update-contact.d.cts","names":[],"sources":["../../src/actions/update-contact.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;cAK3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAI5B,sBAAA,gCAAsB,wBAAA"}
|
|
@@ -8,12 +8,24 @@ declare const MoneybirdUpdateContactInput: z.ZodObject<{
|
|
|
8
8
|
}, z.core.$strip>;
|
|
9
9
|
declare const MoneybirdUpdateContactOutput: z.ZodObject<{
|
|
10
10
|
contact: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
11
|
-
}, z.core.$
|
|
11
|
+
}, z.core.$loose>;
|
|
12
12
|
declare const moneybirdUpdateContact: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
13
13
|
contact: Record<string, unknown>;
|
|
14
14
|
contact_id: string;
|
|
15
15
|
administration_id: number;
|
|
16
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential
|
|
16
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"moneybird", z.ZodObject<{
|
|
17
|
+
connectionId: z.ZodString;
|
|
18
|
+
entityId: z.ZodString;
|
|
19
|
+
instanceId: z.ZodString;
|
|
20
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
21
|
+
accessToken: z.ZodString;
|
|
22
|
+
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"moneybird", z.ZodObject<{
|
|
23
|
+
connectionId: z.ZodString;
|
|
24
|
+
entityId: z.ZodString;
|
|
25
|
+
instanceId: z.ZodString;
|
|
26
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
27
|
+
accessToken: z.ZodString;
|
|
28
|
+
}, z.core.$strip>>]>;
|
|
17
29
|
//#endregion
|
|
18
30
|
export { moneybirdUpdateContact };
|
|
19
31
|
//# sourceMappingURL=update-contact.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-contact.d.mts","names":[],"sources":["../../src/actions/update-contact.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;cAK3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAI5B,sBAAA,gCAAsB,wBAAA
|
|
1
|
+
{"version":3,"file":"update-contact.d.mts","names":[],"sources":["../../src/actions/update-contact.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;cAK3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAI5B,sBAAA,gCAAsB,wBAAA"}
|
|
@@ -9,7 +9,7 @@ const moneybirdUpdateContact = action("MONEYBIRD_UPDATE_CONTACT", {
|
|
|
9
9
|
contact_id: z.string().describe("ID of the contact to update"),
|
|
10
10
|
administration_id: z.number().int().describe("Numeric administration ID, part of the Moneybird URL path")
|
|
11
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") })
|
|
12
|
+
output: z.object({ contact: z.record(z.string(), z.unknown()).describe("Updated contact object returned by Moneybird") }).passthrough()
|
|
13
13
|
});
|
|
14
14
|
//#endregion
|
|
15
15
|
export { moneybirdUpdateContact };
|
|
@@ -1 +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.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.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,OAbyC,EAAE,OAAO;EAClD,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,QAT0C,EAAE,OAAO,EACnD,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8CAA8C,EACpG,
|
|
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.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.object({\n contact: z.record(z.string(), z.unknown()).describe(\"Updated contact object returned by Moneybird\"),\n}).passthrough();\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,OAbyC,EAAE,OAAO;EAClD,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,QAT0C,EAAE,OAAO,EACnD,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8CAA8C,EACpG,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
|
|
@@ -28,7 +28,7 @@ const MoneybirdUpdateSalesInvoiceInput = zod.z.object({
|
|
|
28
28
|
time_entry_ids: zod.z.array(zod.z.number().int()).describe("List of time entry IDs").optional(),
|
|
29
29
|
ledger_account_id: zod.z.number().int().describe("Valid ledger account ID").optional(),
|
|
30
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(),
|
|
31
|
+
}).passthrough().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
32
|
first_due_interval: zod.z.number().int().describe("Days until due date").optional(),
|
|
33
33
|
payment_conditions: zod.z.string().describe("Custom payment conditions text").optional(),
|
|
34
34
|
invoice_sequence_id: zod.z.string().describe("Invoice sequence ID to set").optional(),
|
|
@@ -37,13 +37,13 @@ const MoneybirdUpdateSalesInvoiceInput = zod.z.object({
|
|
|
37
37
|
custom_fields_attributes: zod.z.array(zod.z.object({
|
|
38
38
|
id: zod.z.number().int().describe("Custom field ID"),
|
|
39
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(),
|
|
40
|
+
}).passthrough().describe("Pair of custom field ID and its new value.")).describe("List of custom fields to update").optional(),
|
|
41
41
|
remove_invoice_sequence_id: zod.z.boolean().describe("Unset the sequence ID when true").optional()
|
|
42
42
|
}).describe("Fields to update on the invoice"),
|
|
43
43
|
sales_invoice_id: zod.z.string().describe("ID of the sales invoice to update"),
|
|
44
44
|
administration_id: zod.z.number().int().describe("Administration ID in Moneybird URL path")
|
|
45
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") });
|
|
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") }).passthrough();
|
|
47
47
|
const moneybirdUpdateSalesInvoice = require_action.action("MONEYBIRD_UPDATE_SALES_INVOICE", {
|
|
48
48
|
slug: "moneybird-update-sales-invoice",
|
|
49
49
|
name: "Update Sales Invoice",
|
|
@@ -1 +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.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.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,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,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,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;EAC1E,aAAaA,IAAAA,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GAC/E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;GACnE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;GACnE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;GACnE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS;GACrE,gBAAgBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;GACtF,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;GACjF,uBAAuBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;EACzG,CAAC,CAAC,CAAC,SAAS,2IAA2I,CAAC,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;
|
|
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.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}).passthrough().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}).passthrough().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.object({\n sales_invoice: z.record(z.string(), z.unknown()).describe(\"The updated invoice object returned by Moneybird\"),\n}).passthrough();\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,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,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,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;EAC1E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;EACxE,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;EACxE,gBAAgBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;EAChG,gBAAgBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;EAC3F,mBAAmBA,IAA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C,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,oCAAoCA,IAAAA,EAAE,OAAO,EACxD,eAAeA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,kDAAkD,EAC9G,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,8BAA8BC,eAAAA,OAAO,kCAAkC;CAClF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -28,7 +28,7 @@ declare const MoneybirdUpdateSalesInvoiceInput: z.ZodObject<{
|
|
|
28
28
|
time_entry_ids: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
29
29
|
ledger_account_id: z.ZodOptional<z.ZodNumber>;
|
|
30
30
|
automated_tax_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
31
|
-
}, z.core.$
|
|
31
|
+
}, z.core.$loose>>>;
|
|
32
32
|
first_due_interval: z.ZodOptional<z.ZodNumber>;
|
|
33
33
|
payment_conditions: z.ZodOptional<z.ZodString>;
|
|
34
34
|
invoice_sequence_id: z.ZodOptional<z.ZodString>;
|
|
@@ -37,7 +37,7 @@ declare const MoneybirdUpdateSalesInvoiceInput: z.ZodObject<{
|
|
|
37
37
|
custom_fields_attributes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
38
38
|
id: z.ZodNumber;
|
|
39
39
|
value: z.ZodString;
|
|
40
|
-
}, z.core.$
|
|
40
|
+
}, z.core.$loose>>>;
|
|
41
41
|
remove_invoice_sequence_id: z.ZodOptional<z.ZodBoolean>;
|
|
42
42
|
}, z.core.$strip>;
|
|
43
43
|
sales_invoice_id: z.ZodString;
|
|
@@ -45,7 +45,7 @@ declare const MoneybirdUpdateSalesInvoiceInput: z.ZodObject<{
|
|
|
45
45
|
}, z.core.$strip>;
|
|
46
46
|
declare const MoneybirdUpdateSalesInvoiceOutput: z.ZodObject<{
|
|
47
47
|
sales_invoice: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
48
|
-
}, z.core.$
|
|
48
|
+
}, z.core.$loose>;
|
|
49
49
|
declare const moneybirdUpdateSalesInvoice: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
50
50
|
sales_invoice: {
|
|
51
51
|
currency?: string | undefined;
|
|
@@ -59,6 +59,7 @@ declare const moneybirdUpdateSalesInvoice: import("@keystrokehq/action").Workflo
|
|
|
59
59
|
contact_person_id?: number | undefined;
|
|
60
60
|
document_style_id?: number | undefined;
|
|
61
61
|
details_attributes?: {
|
|
62
|
+
[x: string]: unknown;
|
|
62
63
|
id?: number | undefined;
|
|
63
64
|
price?: number | undefined;
|
|
64
65
|
amount?: string | undefined;
|
|
@@ -80,6 +81,7 @@ declare const moneybirdUpdateSalesInvoice: import("@keystrokehq/action").Workflo
|
|
|
80
81
|
prices_are_incl_tax?: boolean | undefined;
|
|
81
82
|
original_estimate_id?: number | undefined;
|
|
82
83
|
custom_fields_attributes?: {
|
|
84
|
+
[x: string]: unknown;
|
|
83
85
|
id: number;
|
|
84
86
|
value: string;
|
|
85
87
|
}[] | undefined;
|
|
@@ -87,7 +89,19 @@ declare const moneybirdUpdateSalesInvoice: import("@keystrokehq/action").Workflo
|
|
|
87
89
|
};
|
|
88
90
|
sales_invoice_id: string;
|
|
89
91
|
administration_id: number;
|
|
90
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential
|
|
92
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"moneybird", z.ZodObject<{
|
|
93
|
+
connectionId: z.ZodString;
|
|
94
|
+
entityId: z.ZodString;
|
|
95
|
+
instanceId: z.ZodString;
|
|
96
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
97
|
+
accessToken: z.ZodString;
|
|
98
|
+
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"moneybird", z.ZodObject<{
|
|
99
|
+
connectionId: z.ZodString;
|
|
100
|
+
entityId: z.ZodString;
|
|
101
|
+
instanceId: z.ZodString;
|
|
102
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
103
|
+
accessToken: z.ZodString;
|
|
104
|
+
}, z.core.$strip>>]>;
|
|
91
105
|
//#endregion
|
|
92
106
|
export { moneybirdUpdateSalesInvoice };
|
|
93
107
|
//# sourceMappingURL=update-sales-invoice.d.cts.map
|
|
@@ -28,7 +28,7 @@ declare const MoneybirdUpdateSalesInvoiceInput: z.ZodObject<{
|
|
|
28
28
|
time_entry_ids: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
29
29
|
ledger_account_id: z.ZodOptional<z.ZodNumber>;
|
|
30
30
|
automated_tax_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
31
|
-
}, z.core.$
|
|
31
|
+
}, z.core.$loose>>>;
|
|
32
32
|
first_due_interval: z.ZodOptional<z.ZodNumber>;
|
|
33
33
|
payment_conditions: z.ZodOptional<z.ZodString>;
|
|
34
34
|
invoice_sequence_id: z.ZodOptional<z.ZodString>;
|
|
@@ -37,7 +37,7 @@ declare const MoneybirdUpdateSalesInvoiceInput: z.ZodObject<{
|
|
|
37
37
|
custom_fields_attributes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
38
38
|
id: z.ZodNumber;
|
|
39
39
|
value: z.ZodString;
|
|
40
|
-
}, z.core.$
|
|
40
|
+
}, z.core.$loose>>>;
|
|
41
41
|
remove_invoice_sequence_id: z.ZodOptional<z.ZodBoolean>;
|
|
42
42
|
}, z.core.$strip>;
|
|
43
43
|
sales_invoice_id: z.ZodString;
|
|
@@ -45,7 +45,7 @@ declare const MoneybirdUpdateSalesInvoiceInput: z.ZodObject<{
|
|
|
45
45
|
}, z.core.$strip>;
|
|
46
46
|
declare const MoneybirdUpdateSalesInvoiceOutput: z.ZodObject<{
|
|
47
47
|
sales_invoice: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
48
|
-
}, z.core.$
|
|
48
|
+
}, z.core.$loose>;
|
|
49
49
|
declare const moneybirdUpdateSalesInvoice: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
50
50
|
sales_invoice: {
|
|
51
51
|
currency?: string | undefined;
|
|
@@ -59,6 +59,7 @@ declare const moneybirdUpdateSalesInvoice: import("@keystrokehq/action").Workflo
|
|
|
59
59
|
contact_person_id?: number | undefined;
|
|
60
60
|
document_style_id?: number | undefined;
|
|
61
61
|
details_attributes?: {
|
|
62
|
+
[x: string]: unknown;
|
|
62
63
|
id?: number | undefined;
|
|
63
64
|
price?: number | undefined;
|
|
64
65
|
amount?: string | undefined;
|
|
@@ -80,6 +81,7 @@ declare const moneybirdUpdateSalesInvoice: import("@keystrokehq/action").Workflo
|
|
|
80
81
|
prices_are_incl_tax?: boolean | undefined;
|
|
81
82
|
original_estimate_id?: number | undefined;
|
|
82
83
|
custom_fields_attributes?: {
|
|
84
|
+
[x: string]: unknown;
|
|
83
85
|
id: number;
|
|
84
86
|
value: string;
|
|
85
87
|
}[] | undefined;
|
|
@@ -87,7 +89,19 @@ declare const moneybirdUpdateSalesInvoice: import("@keystrokehq/action").Workflo
|
|
|
87
89
|
};
|
|
88
90
|
sales_invoice_id: string;
|
|
89
91
|
administration_id: number;
|
|
90
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential
|
|
92
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"moneybird", z.ZodObject<{
|
|
93
|
+
connectionId: z.ZodString;
|
|
94
|
+
entityId: z.ZodString;
|
|
95
|
+
instanceId: z.ZodString;
|
|
96
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
97
|
+
accessToken: z.ZodString;
|
|
98
|
+
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"moneybird", z.ZodObject<{
|
|
99
|
+
connectionId: z.ZodString;
|
|
100
|
+
entityId: z.ZodString;
|
|
101
|
+
instanceId: z.ZodString;
|
|
102
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
103
|
+
accessToken: z.ZodString;
|
|
104
|
+
}, z.core.$strip>>]>;
|
|
91
105
|
//#endregion
|
|
92
106
|
export { moneybirdUpdateSalesInvoice };
|
|
93
107
|
//# sourceMappingURL=update-sales-invoice.d.mts.map
|
|
@@ -31,7 +31,7 @@ const moneybirdUpdateSalesInvoice = action("MONEYBIRD_UPDATE_SALES_INVOICE", {
|
|
|
31
31
|
time_entry_ids: z.array(z.number().int()).describe("List of time entry IDs").optional(),
|
|
32
32
|
ledger_account_id: z.number().int().describe("Valid ledger account ID").optional(),
|
|
33
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(),
|
|
34
|
+
}).passthrough().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
35
|
first_due_interval: z.number().int().describe("Days until due date").optional(),
|
|
36
36
|
payment_conditions: z.string().describe("Custom payment conditions text").optional(),
|
|
37
37
|
invoice_sequence_id: z.string().describe("Invoice sequence ID to set").optional(),
|
|
@@ -40,13 +40,13 @@ const moneybirdUpdateSalesInvoice = action("MONEYBIRD_UPDATE_SALES_INVOICE", {
|
|
|
40
40
|
custom_fields_attributes: z.array(z.object({
|
|
41
41
|
id: z.number().int().describe("Custom field ID"),
|
|
42
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(),
|
|
43
|
+
}).passthrough().describe("Pair of custom field ID and its new value.")).describe("List of custom fields to update").optional(),
|
|
44
44
|
remove_invoice_sequence_id: z.boolean().describe("Unset the sequence ID when true").optional()
|
|
45
45
|
}).describe("Fields to update on the invoice"),
|
|
46
46
|
sales_invoice_id: z.string().describe("ID of the sales invoice to update"),
|
|
47
47
|
administration_id: z.number().int().describe("Administration ID in Moneybird URL path")
|
|
48
48
|
}),
|
|
49
|
-
output: z.object({ sales_invoice: z.record(z.string(), z.unknown()).describe("The updated invoice object returned by Moneybird") })
|
|
49
|
+
output: z.object({ sales_invoice: z.record(z.string(), z.unknown()).describe("The updated invoice object returned by Moneybird") }).passthrough()
|
|
50
50
|
});
|
|
51
51
|
//#endregion
|
|
52
52
|
export { moneybirdUpdateSalesInvoice };
|
|
@@ -1 +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.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.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,OAlD8C,EAAE,OAAO;EACvD,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,SAAS,sBAAsB,CAAC,CAAC,SAAS;GACxE,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;GACxE,gBAAgB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;GAChG,gBAAgB,EAAE,QAAQ,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;GAC3F,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;GACxF,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;GACpF,oBAAoB,EAAE,MAAM,EAAE,OAAO;IACrC,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;IACpE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;IAC5D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;IACrE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;IACxG,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;IAC7E,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;IAC1E,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;IAC/E,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;IACnE,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;IACnE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;IACnE,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS;IACrE,gBAAgB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;IACtF,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;IACjF,uBAAuB,EAAE,QAAQ,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;GACzG,CAAC,CAAC,CAAC,SAAS,2IAA2I,CAAC,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;
|
|
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.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}).passthrough().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}).passthrough().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.object({\n sales_invoice: z.record(z.string(), z.unknown()).describe(\"The updated invoice object returned by Moneybird\"),\n}).passthrough();\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,OAlD8C,EAAE,OAAO;EACvD,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,SAAS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S,iCAAiC,CAAC,CAAC,SAAS;EAC/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,QAT+C,EAAE,OAAO,EACxD,eAAe,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,kDAAkD,EAC9G,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
|
package/dist/app.cjs
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
|
+
let _keystrokehq_keystroke_app = require("@keystrokehq/keystroke/app");
|
|
2
|
+
let zod = require("zod");
|
|
1
3
|
//#region src/app.ts
|
|
2
|
-
const moneybird = (0,
|
|
4
|
+
const moneybird = (0, _keystrokehq_keystroke_app.defineApp)({
|
|
3
5
|
slug: "moneybird",
|
|
4
|
-
auth: "keystroke"
|
|
6
|
+
auth: "keystroke",
|
|
7
|
+
credential: { accessToken: zod.z.string() }
|
|
5
8
|
});
|
|
6
9
|
//#endregion
|
|
7
10
|
exports.moneybird = moneybird;
|
package/dist/app.cjs.map
CHANGED
|
@@ -1 +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":"
|
|
1
|
+
{"version":3,"file":"app.cjs","names":["z"],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nexport const moneybird = defineApp({\n slug: \"moneybird\",\n auth: \"keystroke\",\n credential: {\n accessToken: z.string(),\n },\n});\n"],"mappings":";;;AAGA,MAAa,aAAA,GAAA,2BAAA,UAAA,CAAsB;CACjC,MAAM;CACN,MAAM;CACN,YAAY,EACV,aAAaA,IAAAA,EAAE,OAAO,EACxB;AACF,CAAC"}
|
package/dist/app.d.cts
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
1
3
|
//#region src/app.d.ts
|
|
2
|
-
declare const moneybird: import("@keystrokehq/app").App<import("@keystrokehq/shared").Credential
|
|
4
|
+
declare const moneybird: import("@keystrokehq/app").App<import("@keystrokehq/shared").Credential<"moneybird", z.ZodObject<{
|
|
5
|
+
connectionId: z.ZodString;
|
|
6
|
+
entityId: z.ZodString;
|
|
7
|
+
instanceId: z.ZodString;
|
|
8
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
9
|
+
accessToken: z.ZodString;
|
|
10
|
+
}, z.core.$strip>>>;
|
|
3
11
|
//#endregion
|
|
4
12
|
export { moneybird };
|
|
5
13
|
//# sourceMappingURL=app.d.cts.map
|
package/dist/app.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";;;cAGa,SAAA,6BAAS,GAAA,+BAAA,UAAA,cAAA,CAAA,CAAA,SAAA"}
|
package/dist/app.d.mts
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
1
3
|
//#region src/app.d.ts
|
|
2
|
-
declare const moneybird: import("@keystrokehq/app").App<import("@keystrokehq/shared").Credential
|
|
4
|
+
declare const moneybird: import("@keystrokehq/app").App<import("@keystrokehq/shared").Credential<"moneybird", z.ZodObject<{
|
|
5
|
+
connectionId: z.ZodString;
|
|
6
|
+
entityId: z.ZodString;
|
|
7
|
+
instanceId: z.ZodString;
|
|
8
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
9
|
+
accessToken: z.ZodString;
|
|
10
|
+
}, z.core.$strip>>>;
|
|
3
11
|
//#endregion
|
|
4
12
|
export { moneybird };
|
|
5
13
|
//# sourceMappingURL=app.d.mts.map
|
package/dist/app.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";;;cAGa,SAAA,6BAAS,GAAA,+BAAA,UAAA,cAAA,CAAA,CAAA,SAAA"}
|
package/dist/app.mjs
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { defineApp } from "@keystrokehq/keystroke/app";
|
|
2
|
+
import { z } from "zod";
|
|
2
3
|
//#region src/app.ts
|
|
3
4
|
const moneybird = defineApp({
|
|
4
5
|
slug: "moneybird",
|
|
5
|
-
auth: "keystroke"
|
|
6
|
+
auth: "keystroke",
|
|
7
|
+
credential: { accessToken: z.string() }
|
|
6
8
|
});
|
|
7
9
|
//#endregion
|
|
8
10
|
export { moneybird };
|
package/dist/app.mjs.map
CHANGED
|
@@ -1 +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":"
|
|
1
|
+
{"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nexport const moneybird = defineApp({\n slug: \"moneybird\",\n auth: \"keystroke\",\n credential: {\n accessToken: z.string(),\n },\n});\n"],"mappings":";;;AAGA,MAAa,YAAY,UAAU;CACjC,MAAM;CACN,MAAM;CACN,YAAY,EACV,aAAa,EAAE,OAAO,EACxB;AACF,CAAC"}
|