@keystrokehq/moneybird 0.1.4 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/add-note-to-contact.cjs +1 -0
- package/dist/actions/add-note-to-contact.cjs.map +1 -1
- package/dist/actions/add-note-to-contact.d.cts +3 -21
- package/dist/actions/add-note-to-contact.d.cts.map +1 -1
- package/dist/actions/add-note-to-contact.d.mts +3 -21
- package/dist/actions/add-note-to-contact.d.mts.map +1 -1
- package/dist/actions/add-note-to-contact.mjs +1 -0
- package/dist/actions/add-note-to-contact.mjs.map +1 -1
- package/dist/actions/archive-contact.cjs +1 -0
- package/dist/actions/archive-contact.cjs.map +1 -1
- package/dist/actions/archive-contact.d.cts +3 -16
- package/dist/actions/archive-contact.d.cts.map +1 -1
- package/dist/actions/archive-contact.d.mts +3 -16
- package/dist/actions/archive-contact.d.mts.map +1 -1
- package/dist/actions/archive-contact.mjs +1 -0
- package/dist/actions/archive-contact.mjs.map +1 -1
- package/dist/actions/create-contact-person.cjs +1 -0
- package/dist/actions/create-contact-person.cjs.map +1 -1
- package/dist/actions/create-contact-person.d.cts +3 -23
- package/dist/actions/create-contact-person.d.cts.map +1 -1
- package/dist/actions/create-contact-person.d.mts +3 -23
- package/dist/actions/create-contact-person.d.mts.map +1 -1
- package/dist/actions/create-contact-person.mjs +1 -0
- package/dist/actions/create-contact-person.mjs.map +1 -1
- package/dist/actions/create-contact.cjs +1 -0
- package/dist/actions/create-contact.cjs.map +1 -1
- package/dist/actions/create-contact.d.cts +3 -43
- package/dist/actions/create-contact.d.cts.map +1 -1
- package/dist/actions/create-contact.d.mts +3 -43
- package/dist/actions/create-contact.d.mts.map +1 -1
- package/dist/actions/create-contact.mjs +1 -0
- package/dist/actions/create-contact.mjs.map +1 -1
- package/dist/actions/create-sales-invoice.cjs +1 -0
- package/dist/actions/create-sales-invoice.cjs.map +1 -1
- package/dist/actions/create-sales-invoice.d.cts +3 -49
- package/dist/actions/create-sales-invoice.d.cts.map +1 -1
- package/dist/actions/create-sales-invoice.d.mts +3 -49
- package/dist/actions/create-sales-invoice.d.mts.map +1 -1
- package/dist/actions/create-sales-invoice.mjs +1 -0
- package/dist/actions/create-sales-invoice.mjs.map +1 -1
- package/dist/actions/delete-contact-note.cjs +1 -0
- package/dist/actions/delete-contact-note.cjs.map +1 -1
- package/dist/actions/delete-contact-note.d.cts +3 -17
- package/dist/actions/delete-contact-note.d.cts.map +1 -1
- package/dist/actions/delete-contact-note.d.mts +3 -17
- package/dist/actions/delete-contact-note.d.mts.map +1 -1
- package/dist/actions/delete-contact-note.mjs +1 -0
- package/dist/actions/delete-contact-note.mjs.map +1 -1
- package/dist/actions/delete-contact-person.cjs +1 -0
- package/dist/actions/delete-contact-person.cjs.map +1 -1
- package/dist/actions/delete-contact-person.d.cts +3 -17
- package/dist/actions/delete-contact-person.d.cts.map +1 -1
- package/dist/actions/delete-contact-person.d.mts +3 -17
- package/dist/actions/delete-contact-person.d.mts.map +1 -1
- package/dist/actions/delete-contact-person.mjs +1 -0
- package/dist/actions/delete-contact-person.mjs.map +1 -1
- package/dist/actions/delete-contact.cjs +1 -0
- package/dist/actions/delete-contact.cjs.map +1 -1
- package/dist/actions/delete-contact.d.cts +3 -16
- package/dist/actions/delete-contact.d.cts.map +1 -1
- package/dist/actions/delete-contact.d.mts +3 -16
- package/dist/actions/delete-contact.d.mts.map +1 -1
- package/dist/actions/delete-contact.mjs +1 -0
- package/dist/actions/delete-contact.mjs.map +1 -1
- package/dist/actions/filter-contacts.cjs +1 -0
- package/dist/actions/filter-contacts.cjs.map +1 -1
- package/dist/actions/filter-contacts.d.cts +3 -21
- package/dist/actions/filter-contacts.d.cts.map +1 -1
- package/dist/actions/filter-contacts.d.mts +3 -21
- package/dist/actions/filter-contacts.d.mts.map +1 -1
- package/dist/actions/filter-contacts.mjs +1 -0
- package/dist/actions/filter-contacts.mjs.map +1 -1
- package/dist/actions/get-additional-charges.cjs +1 -0
- package/dist/actions/get-additional-charges.cjs.map +1 -1
- package/dist/actions/get-additional-charges.d.cts +3 -17
- package/dist/actions/get-additional-charges.d.cts.map +1 -1
- package/dist/actions/get-additional-charges.d.mts +3 -17
- package/dist/actions/get-additional-charges.d.mts.map +1 -1
- package/dist/actions/get-additional-charges.mjs +1 -0
- package/dist/actions/get-additional-charges.mjs.map +1 -1
- package/dist/actions/get-contact-by-customer-id.cjs +1 -0
- package/dist/actions/get-contact-by-customer-id.cjs.map +1 -1
- package/dist/actions/get-contact-by-customer-id.d.cts +3 -16
- package/dist/actions/get-contact-by-customer-id.d.cts.map +1 -1
- package/dist/actions/get-contact-by-customer-id.d.mts +3 -16
- package/dist/actions/get-contact-by-customer-id.d.mts.map +1 -1
- package/dist/actions/get-contact-by-customer-id.mjs +1 -0
- package/dist/actions/get-contact-by-customer-id.mjs.map +1 -1
- package/dist/actions/get-contact-person.cjs +1 -0
- package/dist/actions/get-contact-person.cjs.map +1 -1
- package/dist/actions/get-contact-person.d.cts +3 -17
- package/dist/actions/get-contact-person.d.cts.map +1 -1
- package/dist/actions/get-contact-person.d.mts +3 -17
- package/dist/actions/get-contact-person.d.mts.map +1 -1
- package/dist/actions/get-contact-person.mjs +1 -0
- package/dist/actions/get-contact-person.mjs.map +1 -1
- package/dist/actions/get-contact.cjs +1 -0
- package/dist/actions/get-contact.cjs.map +1 -1
- package/dist/actions/get-contact.d.cts +3 -17
- package/dist/actions/get-contact.d.cts.map +1 -1
- package/dist/actions/get-contact.d.mts +3 -17
- package/dist/actions/get-contact.d.mts.map +1 -1
- package/dist/actions/get-contact.mjs +1 -0
- package/dist/actions/get-contact.mjs.map +1 -1
- package/dist/actions/get-sales-invoice.cjs +1 -0
- package/dist/actions/get-sales-invoice.cjs.map +1 -1
- package/dist/actions/get-sales-invoice.d.cts +3 -16
- package/dist/actions/get-sales-invoice.d.cts.map +1 -1
- package/dist/actions/get-sales-invoice.d.mts +3 -16
- package/dist/actions/get-sales-invoice.d.mts.map +1 -1
- package/dist/actions/get-sales-invoice.mjs +1 -0
- package/dist/actions/get-sales-invoice.mjs.map +1 -1
- package/dist/actions/list-administrations.cjs +1 -0
- package/dist/actions/list-administrations.cjs.map +1 -1
- package/dist/actions/list-administrations.d.cts +3 -13
- package/dist/actions/list-administrations.d.cts.map +1 -1
- package/dist/actions/list-administrations.d.mts +3 -13
- package/dist/actions/list-administrations.d.mts.map +1 -1
- package/dist/actions/list-administrations.mjs +1 -0
- package/dist/actions/list-administrations.mjs.map +1 -1
- package/dist/actions/list-contacts-synchronization.cjs +1 -0
- package/dist/actions/list-contacts-synchronization.cjs.map +1 -1
- package/dist/actions/list-contacts-synchronization.d.cts +3 -17
- package/dist/actions/list-contacts-synchronization.d.cts.map +1 -1
- package/dist/actions/list-contacts-synchronization.d.mts +3 -17
- package/dist/actions/list-contacts-synchronization.d.mts.map +1 -1
- package/dist/actions/list-contacts-synchronization.mjs +1 -0
- package/dist/actions/list-contacts-synchronization.mjs.map +1 -1
- package/dist/actions/list-sales-invoices.cjs +1 -0
- package/dist/actions/list-sales-invoices.cjs.map +1 -1
- package/dist/actions/list-sales-invoices.d.cts +3 -18
- package/dist/actions/list-sales-invoices.d.cts.map +1 -1
- package/dist/actions/list-sales-invoices.d.mts +3 -18
- package/dist/actions/list-sales-invoices.d.mts.map +1 -1
- package/dist/actions/list-sales-invoices.mjs +1 -0
- package/dist/actions/list-sales-invoices.mjs.map +1 -1
- package/dist/actions/request-contact-payments-mandate-url.cjs +1 -0
- package/dist/actions/request-contact-payments-mandate-url.cjs.map +1 -1
- package/dist/actions/request-contact-payments-mandate-url.d.cts +3 -17
- package/dist/actions/request-contact-payments-mandate-url.d.cts.map +1 -1
- package/dist/actions/request-contact-payments-mandate-url.d.mts +3 -17
- package/dist/actions/request-contact-payments-mandate-url.d.mts.map +1 -1
- package/dist/actions/request-contact-payments-mandate-url.mjs +1 -0
- package/dist/actions/request-contact-payments-mandate-url.mjs.map +1 -1
- package/dist/actions/update-contact-person.cjs +1 -0
- package/dist/actions/update-contact-person.cjs.map +1 -1
- package/dist/actions/update-contact-person.d.cts +3 -22
- package/dist/actions/update-contact-person.d.cts.map +1 -1
- package/dist/actions/update-contact-person.d.mts +3 -22
- package/dist/actions/update-contact-person.d.mts.map +1 -1
- package/dist/actions/update-contact-person.mjs +1 -0
- package/dist/actions/update-contact-person.mjs.map +1 -1
- package/dist/actions/update-contact.cjs +1 -0
- package/dist/actions/update-contact.cjs.map +1 -1
- package/dist/actions/update-contact.d.cts +3 -17
- package/dist/actions/update-contact.d.cts.map +1 -1
- package/dist/actions/update-contact.d.mts +3 -17
- package/dist/actions/update-contact.d.mts.map +1 -1
- package/dist/actions/update-contact.mjs +1 -0
- package/dist/actions/update-contact.mjs.map +1 -1
- package/dist/actions/update-sales-invoice.cjs +1 -0
- package/dist/actions/update-sales-invoice.cjs.map +1 -1
- package/dist/actions/update-sales-invoice.d.cts +3 -56
- package/dist/actions/update-sales-invoice.d.cts.map +1 -1
- package/dist/actions/update-sales-invoice.d.mts +3 -56
- package/dist/actions/update-sales-invoice.d.mts.map +1 -1
- package/dist/actions/update-sales-invoice.mjs +1 -0
- package/dist/actions/update-sales-invoice.mjs.map +1 -1
- package/dist/app.cjs +2 -2
- package/dist/app.cjs.map +1 -1
- package/dist/app.d.cts +4 -6
- package/dist/app.d.cts.map +1 -1
- package/dist/app.d.mts +4 -6
- package/dist/app.d.mts.map +1 -1
- package/dist/app.mjs +0 -1
- package/dist/app.mjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-contact.mjs","names":[],"sources":["../../src/actions/delete-contact.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoneybirdDeleteContactInput = z.object({\n contact_id: z.number().int().describe(\"ID of the contact to delete\"),\n administration_id: z.number().int().describe(\"ID of the administration\"),\n}).describe(\"Request parameters for deleting a contact.\");\nexport const MoneybirdDeleteContactOutput = z.record(z.string(), z.unknown()).describe(\"Response schema for deleting a contact. Empty because the API returns no content.\");\n\nexport const moneybirdDeleteContact = action(\"MONEYBIRD_DELETE_CONTACT\", {\n slug: \"moneybird-delete-contact\",\n name: \"Delete Contact\",\n description: \"Tool to delete a contact. Use after confirming that contact should be removed.\",\n input: MoneybirdDeleteContactInput,\n output: MoneybirdDeleteContactOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"delete-contact.mjs","names":[],"sources":["../../src/actions/delete-contact.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { moneybird } from \"../app\";\n\nexport const MoneybirdDeleteContactInput = z.object({\n contact_id: z.number().int().describe(\"ID of the contact to delete\"),\n administration_id: z.number().int().describe(\"ID of the administration\"),\n}).describe(\"Request parameters for deleting a contact.\");\nexport const MoneybirdDeleteContactOutput = z.record(z.string(), z.unknown()).describe(\"Response schema for deleting a contact. Empty because the API returns no content.\");\n\nexport const moneybirdDeleteContact: AppAction<\n typeof MoneybirdDeleteContactInput,\n typeof MoneybirdDeleteContactOutput,\n typeof moneybird.credential\n> = action(\"MONEYBIRD_DELETE_CONTACT\", {\n slug: \"moneybird-delete-contact\",\n name: \"Delete Contact\",\n description: \"Tool to delete a contact. Use after confirming that contact should be removed.\",\n input: MoneybirdDeleteContactInput,\n output: MoneybirdDeleteContactOutput,\n});\n"],"mappings":";;;AAYA,MAAa,yBAIT,OAAO,4BAA4B;CACrC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAdyC,EAAE,OAAO;EAClD,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6BAA6B;EACnE,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B;CACzE,CAAC,CAAC,CAAC,SAAS,4CAWH;CACP,QAX0C,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mFAW7E;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filter-contacts.cjs","names":["z","action"],"sources":["../../src/actions/filter-contacts.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoneybirdFilterContactsInput = z.object({\n per_page: z.number().int().describe(\"Number of contacts to return per page (1-100)\").optional(),\n last_name: z.string().describe(\"Filter contacts by last name (case-insensitive)\").optional(),\n first_name: z.string().describe(\"Filter contacts by first name (case-insensitive)\").optional(),\n created_after: z.string().describe(\"Select contacts created after this ISO 8601 UTC datetime (exclusive), e.g., '2025-05-06T07:27:49Z'\").optional(),\n updated_after: z.string().describe(\"Select contacts updated after this ISO 8601 UTC datetime (exclusive), e.g., '2025-05-07T07:27:54Z'\").optional(),\n include_archived: z.boolean().default(false).describe(\"Include archived contacts in the results\").optional(),\n administration_id: z.number().int().describe(\"Numeric administration ID for the Moneybird URL path.\"),\n});\nexport const MoneybirdFilterContactsOutput = z.unknown();\n\nexport const moneybirdFilterContacts = action(\"MONEYBIRD_FILTER_CONTACTS\", {\n slug: \"moneybird-filter-contacts\",\n name: \"Filter Contacts\",\n description: \"Tool to filter contacts. Use when you need to retrieve contacts matching specific criteria like created_after or first_name.\",\n input: MoneybirdFilterContactsInput,\n output: MoneybirdFilterContactsOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"filter-contacts.cjs","names":["z","action"],"sources":["../../src/actions/filter-contacts.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { moneybird } from \"../app\";\n\nexport const MoneybirdFilterContactsInput = z.object({\n per_page: z.number().int().describe(\"Number of contacts to return per page (1-100)\").optional(),\n last_name: z.string().describe(\"Filter contacts by last name (case-insensitive)\").optional(),\n first_name: z.string().describe(\"Filter contacts by first name (case-insensitive)\").optional(),\n created_after: z.string().describe(\"Select contacts created after this ISO 8601 UTC datetime (exclusive), e.g., '2025-05-06T07:27:49Z'\").optional(),\n updated_after: z.string().describe(\"Select contacts updated after this ISO 8601 UTC datetime (exclusive), e.g., '2025-05-07T07:27:54Z'\").optional(),\n include_archived: z.boolean().default(false).describe(\"Include archived contacts in the results\").optional(),\n administration_id: z.number().int().describe(\"Numeric administration ID for the Moneybird URL path.\"),\n});\nexport const MoneybirdFilterContactsOutput = z.unknown();\n\nexport const moneybirdFilterContacts: AppAction<\n typeof MoneybirdFilterContactsInput,\n typeof MoneybirdFilterContactsOutput,\n typeof moneybird.credential\n> = action(\"MONEYBIRD_FILTER_CONTACTS\", {\n slug: \"moneybird-filter-contacts\",\n name: \"Filter Contacts\",\n description: \"Tool to filter contacts. Use when you need to retrieve contacts matching specific criteria like created_after or first_name.\",\n input: MoneybirdFilterContactsInput,\n output: MoneybirdFilterContactsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CAC9F,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC3F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CAC7F,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;CAClJ,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;CAClJ,kBAAkBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAC3G,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uDAAuD;AACtG,CAAC;AACD,MAAa,gCAAgCA,IAAAA,EAAE,QAAQ;AAEvD,MAAa,0BAITC,eAAAA,OAAO,6BAA6B;CACtC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { moneybird } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/filter-contacts.d.ts
|
|
@@ -11,27 +13,7 @@ declare const MoneybirdFilterContactsInput: z.ZodObject<{
|
|
|
11
13
|
administration_id: z.ZodNumber;
|
|
12
14
|
}, z.core.$strip>;
|
|
13
15
|
declare const MoneybirdFilterContactsOutput: z.ZodUnknown;
|
|
14
|
-
declare const moneybirdFilterContacts:
|
|
15
|
-
administration_id: number;
|
|
16
|
-
per_page?: number | undefined;
|
|
17
|
-
last_name?: string | undefined;
|
|
18
|
-
first_name?: string | undefined;
|
|
19
|
-
created_after?: string | undefined;
|
|
20
|
-
updated_after?: string | undefined;
|
|
21
|
-
include_archived?: boolean | undefined;
|
|
22
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<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>>]>, readonly [import("@keystrokehq/shared").Credential<"moneybird", z.ZodObject<{
|
|
29
|
-
connectionId: z.ZodString;
|
|
30
|
-
entityId: z.ZodString;
|
|
31
|
-
instanceId: z.ZodString;
|
|
32
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
33
|
-
accessToken: z.ZodString;
|
|
34
|
-
}, z.core.$strip>>]>;
|
|
16
|
+
declare const moneybirdFilterContacts: AppAction<typeof MoneybirdFilterContactsInput, typeof MoneybirdFilterContactsOutput, typeof moneybird.credential>;
|
|
35
17
|
//#endregion
|
|
36
18
|
export { moneybirdFilterContacts };
|
|
37
19
|
//# sourceMappingURL=filter-contacts.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filter-contacts.d.cts","names":[],"sources":["../../src/actions/filter-contacts.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"filter-contacts.d.cts","names":[],"sources":["../../src/actions/filter-contacts.ts"],"mappings":";;;;;cAMa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;cAS5B,6BAAA,EAA6B,CAAA,CAAA,UAAc;AAAA,cAE3C,uBAAA,EAAyB,SAAA,QAC7B,4BAAA,SACA,6BAAA,SACA,SAAA,CAAU,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { moneybird } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/filter-contacts.d.ts
|
|
@@ -11,27 +13,7 @@ declare const MoneybirdFilterContactsInput: z.ZodObject<{
|
|
|
11
13
|
administration_id: z.ZodNumber;
|
|
12
14
|
}, z.core.$strip>;
|
|
13
15
|
declare const MoneybirdFilterContactsOutput: z.ZodUnknown;
|
|
14
|
-
declare const moneybirdFilterContacts:
|
|
15
|
-
administration_id: number;
|
|
16
|
-
per_page?: number | undefined;
|
|
17
|
-
last_name?: string | undefined;
|
|
18
|
-
first_name?: string | undefined;
|
|
19
|
-
created_after?: string | undefined;
|
|
20
|
-
updated_after?: string | undefined;
|
|
21
|
-
include_archived?: boolean | undefined;
|
|
22
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<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>>]>, readonly [import("@keystrokehq/shared").Credential<"moneybird", z.ZodObject<{
|
|
29
|
-
connectionId: z.ZodString;
|
|
30
|
-
entityId: z.ZodString;
|
|
31
|
-
instanceId: z.ZodString;
|
|
32
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
33
|
-
accessToken: z.ZodString;
|
|
34
|
-
}, z.core.$strip>>]>;
|
|
16
|
+
declare const moneybirdFilterContacts: AppAction<typeof MoneybirdFilterContactsInput, typeof MoneybirdFilterContactsOutput, typeof moneybird.credential>;
|
|
35
17
|
//#endregion
|
|
36
18
|
export { moneybirdFilterContacts };
|
|
37
19
|
//# sourceMappingURL=filter-contacts.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filter-contacts.d.mts","names":[],"sources":["../../src/actions/filter-contacts.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"filter-contacts.d.mts","names":[],"sources":["../../src/actions/filter-contacts.ts"],"mappings":";;;;;cAMa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;cAS5B,6BAAA,EAA6B,CAAA,CAAA,UAAc;AAAA,cAE3C,uBAAA,EAAyB,SAAA,QAC7B,4BAAA,SACA,6BAAA,SACA,SAAA,CAAU,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filter-contacts.mjs","names":[],"sources":["../../src/actions/filter-contacts.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoneybirdFilterContactsInput = z.object({\n per_page: z.number().int().describe(\"Number of contacts to return per page (1-100)\").optional(),\n last_name: z.string().describe(\"Filter contacts by last name (case-insensitive)\").optional(),\n first_name: z.string().describe(\"Filter contacts by first name (case-insensitive)\").optional(),\n created_after: z.string().describe(\"Select contacts created after this ISO 8601 UTC datetime (exclusive), e.g., '2025-05-06T07:27:49Z'\").optional(),\n updated_after: z.string().describe(\"Select contacts updated after this ISO 8601 UTC datetime (exclusive), e.g., '2025-05-07T07:27:54Z'\").optional(),\n include_archived: z.boolean().default(false).describe(\"Include archived contacts in the results\").optional(),\n administration_id: z.number().int().describe(\"Numeric administration ID for the Moneybird URL path.\"),\n});\nexport const MoneybirdFilterContactsOutput = z.unknown();\n\nexport const moneybirdFilterContacts = action(\"MONEYBIRD_FILTER_CONTACTS\", {\n slug: \"moneybird-filter-contacts\",\n name: \"Filter Contacts\",\n description: \"Tool to filter contacts. Use when you need to retrieve contacts matching specific criteria like created_after or first_name.\",\n input: MoneybirdFilterContactsInput,\n output: MoneybirdFilterContactsOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"filter-contacts.mjs","names":[],"sources":["../../src/actions/filter-contacts.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { moneybird } from \"../app\";\n\nexport const MoneybirdFilterContactsInput = z.object({\n per_page: z.number().int().describe(\"Number of contacts to return per page (1-100)\").optional(),\n last_name: z.string().describe(\"Filter contacts by last name (case-insensitive)\").optional(),\n first_name: z.string().describe(\"Filter contacts by first name (case-insensitive)\").optional(),\n created_after: z.string().describe(\"Select contacts created after this ISO 8601 UTC datetime (exclusive), e.g., '2025-05-06T07:27:49Z'\").optional(),\n updated_after: z.string().describe(\"Select contacts updated after this ISO 8601 UTC datetime (exclusive), e.g., '2025-05-07T07:27:54Z'\").optional(),\n include_archived: z.boolean().default(false).describe(\"Include archived contacts in the results\").optional(),\n administration_id: z.number().int().describe(\"Numeric administration ID for the Moneybird URL path.\"),\n});\nexport const MoneybirdFilterContactsOutput = z.unknown();\n\nexport const moneybirdFilterContacts: AppAction<\n typeof MoneybirdFilterContactsInput,\n typeof MoneybirdFilterContactsOutput,\n typeof moneybird.credential\n> = action(\"MONEYBIRD_FILTER_CONTACTS\", {\n slug: \"moneybird-filter-contacts\",\n name: \"Filter Contacts\",\n description: \"Tool to filter contacts. Use when you need to retrieve contacts matching specific criteria like created_after or first_name.\",\n input: MoneybirdFilterContactsInput,\n output: MoneybirdFilterContactsOutput,\n});\n"],"mappings":";;;AAiBA,MAAa,0BAIT,OAAO,6BAA6B;CACtC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAnB0C,EAAE,OAAO;EACnD,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;EAC9F,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;EAC3F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;EAC7F,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;EAClJ,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;EAClJ,kBAAkB,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;EAC3G,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uDAAuD;CACtG,CAWS;CACP,QAX2C,EAAE,QAWrC;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-additional-charges.cjs","names":["z","action"],"sources":["../../src/actions/get-additional-charges.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoneybirdGetAdditionalChargesInput = z.object({\n contact_id: z.string().describe(\"ID of the contact to retrieve additional charges for\"),\n include_billed: z.boolean().default(false).describe(\"If true, includes additional charges that have already been billed. Default is false.\").optional(),\n administration_id: z.number().int().describe(\"Numeric administration ID, as part of the Moneybird URL path.\"),\n});\nexport const MoneybirdGetAdditionalChargesOutput = z.unknown();\n\nexport const moneybirdGetAdditionalCharges = action(\"MONEYBIRD_GET_ADDITIONAL_CHARGES\", {\n slug: \"moneybird-get-additional-charges\",\n name: \"Get Additional Charges\",\n description: \"Tool to get additional charges for a contact. Use when you need to view pending (or optionally billed) usage or recurring charges.\",\n input: MoneybirdGetAdditionalChargesInput,\n output: MoneybirdGetAdditionalChargesOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-additional-charges.cjs","names":["z","action"],"sources":["../../src/actions/get-additional-charges.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { moneybird } from \"../app\";\n\nexport const MoneybirdGetAdditionalChargesInput = z.object({\n contact_id: z.string().describe(\"ID of the contact to retrieve additional charges for\"),\n include_billed: z.boolean().default(false).describe(\"If true, includes additional charges that have already been billed. Default is false.\").optional(),\n administration_id: z.number().int().describe(\"Numeric administration ID, as part of the Moneybird URL path.\"),\n});\nexport const MoneybirdGetAdditionalChargesOutput = z.unknown();\n\nexport const moneybirdGetAdditionalCharges: AppAction<\n typeof MoneybirdGetAdditionalChargesInput,\n typeof MoneybirdGetAdditionalChargesOutput,\n typeof moneybird.credential\n> = action(\"MONEYBIRD_GET_ADDITIONAL_CHARGES\", {\n slug: \"moneybird-get-additional-charges\",\n name: \"Get Additional Charges\",\n description: \"Tool to get additional charges for a contact. Use when you need to view pending (or optionally billed) usage or recurring charges.\",\n input: MoneybirdGetAdditionalChargesInput,\n output: MoneybirdGetAdditionalChargesOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,qCAAqCA,IAAAA,EAAE,OAAO;CACzD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;CACtF,gBAAgBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,uFAAuF,CAAC,CAAC,SAAS;CACtJ,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+DAA+D;AAC9G,CAAC;AACD,MAAa,sCAAsCA,IAAAA,EAAE,QAAQ;AAE7D,MAAa,gCAITC,eAAAA,OAAO,oCAAoC;CAC7C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { moneybird } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-additional-charges.d.ts
|
|
@@ -7,23 +9,7 @@ declare const MoneybirdGetAdditionalChargesInput: z.ZodObject<{
|
|
|
7
9
|
administration_id: z.ZodNumber;
|
|
8
10
|
}, z.core.$strip>;
|
|
9
11
|
declare const MoneybirdGetAdditionalChargesOutput: z.ZodUnknown;
|
|
10
|
-
declare const moneybirdGetAdditionalCharges:
|
|
11
|
-
contact_id: string;
|
|
12
|
-
administration_id: number;
|
|
13
|
-
include_billed?: boolean | undefined;
|
|
14
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"moneybird", z.ZodObject<{
|
|
15
|
-
connectionId: z.ZodString;
|
|
16
|
-
entityId: z.ZodString;
|
|
17
|
-
instanceId: z.ZodString;
|
|
18
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
19
|
-
accessToken: z.ZodString;
|
|
20
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"moneybird", z.ZodObject<{
|
|
21
|
-
connectionId: z.ZodString;
|
|
22
|
-
entityId: z.ZodString;
|
|
23
|
-
instanceId: z.ZodString;
|
|
24
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
25
|
-
accessToken: z.ZodString;
|
|
26
|
-
}, z.core.$strip>>]>;
|
|
12
|
+
declare const moneybirdGetAdditionalCharges: AppAction<typeof MoneybirdGetAdditionalChargesInput, typeof MoneybirdGetAdditionalChargesOutput, typeof moneybird.credential>;
|
|
27
13
|
//#endregion
|
|
28
14
|
export { moneybirdGetAdditionalCharges };
|
|
29
15
|
//# sourceMappingURL=get-additional-charges.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-additional-charges.d.cts","names":[],"sources":["../../src/actions/get-additional-charges.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-additional-charges.d.cts","names":[],"sources":["../../src/actions/get-additional-charges.ts"],"mappings":";;;;;cAMa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;cAKlC,mCAAA,EAAmC,CAAA,CAAA,UAAc;AAAA,cAEjD,6BAAA,EAA+B,SAAA,QACnC,kCAAA,SACA,mCAAA,SACA,SAAA,CAAU,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { moneybird } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-additional-charges.d.ts
|
|
@@ -7,23 +9,7 @@ declare const MoneybirdGetAdditionalChargesInput: z.ZodObject<{
|
|
|
7
9
|
administration_id: z.ZodNumber;
|
|
8
10
|
}, z.core.$strip>;
|
|
9
11
|
declare const MoneybirdGetAdditionalChargesOutput: z.ZodUnknown;
|
|
10
|
-
declare const moneybirdGetAdditionalCharges:
|
|
11
|
-
contact_id: string;
|
|
12
|
-
administration_id: number;
|
|
13
|
-
include_billed?: boolean | undefined;
|
|
14
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"moneybird", z.ZodObject<{
|
|
15
|
-
connectionId: z.ZodString;
|
|
16
|
-
entityId: z.ZodString;
|
|
17
|
-
instanceId: z.ZodString;
|
|
18
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
19
|
-
accessToken: z.ZodString;
|
|
20
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"moneybird", z.ZodObject<{
|
|
21
|
-
connectionId: z.ZodString;
|
|
22
|
-
entityId: z.ZodString;
|
|
23
|
-
instanceId: z.ZodString;
|
|
24
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
25
|
-
accessToken: z.ZodString;
|
|
26
|
-
}, z.core.$strip>>]>;
|
|
12
|
+
declare const moneybirdGetAdditionalCharges: AppAction<typeof MoneybirdGetAdditionalChargesInput, typeof MoneybirdGetAdditionalChargesOutput, typeof moneybird.credential>;
|
|
27
13
|
//#endregion
|
|
28
14
|
export { moneybirdGetAdditionalCharges };
|
|
29
15
|
//# sourceMappingURL=get-additional-charges.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-additional-charges.d.mts","names":[],"sources":["../../src/actions/get-additional-charges.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-additional-charges.d.mts","names":[],"sources":["../../src/actions/get-additional-charges.ts"],"mappings":";;;;;cAMa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;cAKlC,mCAAA,EAAmC,CAAA,CAAA,UAAc;AAAA,cAEjD,6BAAA,EAA+B,SAAA,QACnC,kCAAA,SACA,mCAAA,SACA,SAAA,CAAU,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-additional-charges.mjs","names":[],"sources":["../../src/actions/get-additional-charges.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoneybirdGetAdditionalChargesInput = z.object({\n contact_id: z.string().describe(\"ID of the contact to retrieve additional charges for\"),\n include_billed: z.boolean().default(false).describe(\"If true, includes additional charges that have already been billed. Default is false.\").optional(),\n administration_id: z.number().int().describe(\"Numeric administration ID, as part of the Moneybird URL path.\"),\n});\nexport const MoneybirdGetAdditionalChargesOutput = z.unknown();\n\nexport const moneybirdGetAdditionalCharges = action(\"MONEYBIRD_GET_ADDITIONAL_CHARGES\", {\n slug: \"moneybird-get-additional-charges\",\n name: \"Get Additional Charges\",\n description: \"Tool to get additional charges for a contact. Use when you need to view pending (or optionally billed) usage or recurring charges.\",\n input: MoneybirdGetAdditionalChargesInput,\n output: MoneybirdGetAdditionalChargesOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-additional-charges.mjs","names":[],"sources":["../../src/actions/get-additional-charges.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { moneybird } from \"../app\";\n\nexport const MoneybirdGetAdditionalChargesInput = z.object({\n contact_id: z.string().describe(\"ID of the contact to retrieve additional charges for\"),\n include_billed: z.boolean().default(false).describe(\"If true, includes additional charges that have already been billed. Default is false.\").optional(),\n administration_id: z.number().int().describe(\"Numeric administration ID, as part of the Moneybird URL path.\"),\n});\nexport const MoneybirdGetAdditionalChargesOutput = z.unknown();\n\nexport const moneybirdGetAdditionalCharges: AppAction<\n typeof MoneybirdGetAdditionalChargesInput,\n typeof MoneybirdGetAdditionalChargesOutput,\n typeof moneybird.credential\n> = action(\"MONEYBIRD_GET_ADDITIONAL_CHARGES\", {\n slug: \"moneybird-get-additional-charges\",\n name: \"Get Additional Charges\",\n description: \"Tool to get additional charges for a contact. Use when you need to view pending (or optionally billed) usage or recurring charges.\",\n input: MoneybirdGetAdditionalChargesInput,\n output: MoneybirdGetAdditionalChargesOutput,\n});\n"],"mappings":";;;AAaA,MAAa,gCAIT,OAAO,oCAAoC;CAC7C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAfgD,EAAE,OAAO;EACzD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;EACtF,gBAAgB,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,uFAAuF,CAAC,CAAC,SAAS;EACtJ,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+DAA+D;CAC9G,CAWS;CACP,QAXiD,EAAE,QAW3C;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-contact-by-customer-id.cjs","names":["z","action"],"sources":["../../src/actions/get-contact-by-customer-id.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoneybirdGetContactByCustomerIdInput = z.object({\n customer_id: z.string().describe(\"Unique customer identifier for the contact.\"),\n administration_id: z.number().int().describe(\"Numeric administration ID, used in the URL path.\"),\n}).describe(\"Request parameters for fetching a contact by its customer_id.\");\nconst MoneybirdGetContactByCustomerId_NoteSchema = z.object({\n id: z.string().describe(\"ID of the note\").nullable(),\n data: z.record(z.string(), z.unknown()).describe(\"Additional data for the note\"),\n note: z.string().describe(\"Text content of the note\").nullable(),\n todo: z.boolean().describe(\"Whether this note is a to-do item\").nullable(),\n user_id: z.number().int().describe(\"User ID who created the note\").nullable(),\n entity_id: z.string().describe(\"ID of the related entity (contact)\").nullable(),\n todo_type: z.string().describe(\"Type of to-do\").nullable().optional(),\n created_at: z.string().describe(\"Creation timestamp of the note\").nullable(),\n updated_at: z.string().describe(\"Last update timestamp of the note\").nullable(),\n assignee_id: z.string().describe(\"Assigned user ID if to-do\").nullable().optional(),\n entity_type: z.string().describe(\"Type of the related entity\").nullable(),\n completed_at: z.string().describe(\"Timestamp when to-do was completed\").nullable().optional(),\n completed_by_id: z.string().describe(\"User ID who completed the to-do\").nullable().optional(),\n administration_id: z.number().int().describe(\"Administration ID\").nullable(),\n}).passthrough();\nconst MoneybirdGetContactByCustomerId_EventSchema = z.object({\n data: z.record(z.string(), z.unknown()).describe(\"Additional data for the event\"),\n action: z.string().describe(\"Action type of the event\").nullable(),\n user_id: z.number().int().describe(\"User ID who triggered the event\").nullable(),\n created_at: z.string().describe(\"Event creation timestamp\").nullable(),\n updated_at: z.string().describe(\"Event update timestamp\").nullable(),\n link_entity_id: z.string().describe(\"Linked entity ID if any\").nullable().optional(),\n link_entity_type: z.string().describe(\"Linked entity type if any\").nullable().optional(),\n administration_id: z.number().int().describe(\"Administration ID\").nullable(),\n}).passthrough();\nconst MoneybirdGetContactByCustomerId_CustomFieldSchema = z.object({\n id: z.string().describe(\"Custom field ID\").nullable(),\n name: z.string().describe(\"Name of the custom field\").nullable().optional(),\n value: z.string().describe(\"Value of the custom field\").nullable().optional(),\n}).passthrough();\nconst MoneybirdGetContactByCustomerId_ContactPersonSchema = z.object({\n id: z.string().describe(\"Contact person ID\").nullable(),\n email: z.string().describe(\"Email of contact person\").nullable().optional(),\n phone: z.string().describe(\"Phone number of contact person\").nullable().optional(),\n version: z.number().int().describe(\"Version of contact person record\").nullable(),\n lastname: z.string().describe(\"Last name of contact person\").nullable().optional(),\n firstname: z.string().describe(\"First name of contact person\").nullable().optional(),\n contact_id: z.string().describe(\"Parent contact ID\").nullable(),\n created_at: z.string().describe(\"Creation timestamp of contact person\").nullable(),\n department: z.string().describe(\"Department of contact person\").nullable().optional(),\n updated_at: z.string().describe(\"Last update timestamp of contact person\").nullable(),\n administration_id: z.number().int().describe(\"Administration ID\").nullable(),\n}).passthrough();\nexport const MoneybirdGetContactByCustomerIdOutput = z.object({\n id: z.string().describe(\"Contact ID\").nullable(),\n city: z.string().describe(\"City name\").nullable().optional(),\n email: z.string().describe(\"Primary email address\").nullable().optional(),\n notes: z.array(MoneybirdGetContactByCustomerId_NoteSchema).describe(\"List of notes associated with the contact\"),\n phone: z.string().describe(\"Phone number\").nullable().optional(),\n events: z.array(MoneybirdGetContactByCustomerId_EventSchema).describe(\"List of events related to the contact\"),\n country: z.string().describe(\"Country code (ISO 3166-1 alpha-2)\").nullable().optional(),\n version: z.number().int().describe(\"Version number of contact record\").nullable(),\n zipcode: z.string().describe(\"Postal code\").nullable().optional(),\n address1: z.string().describe(\"Address line 1\").nullable().optional(),\n address2: z.string().describe(\"Address line 2\").nullable().optional(),\n archived: z.boolean().describe(\"Whether the contact is archived\").nullable(),\n lastname: z.string().describe(\"Last name of the contact\").nullable().optional(),\n sepa_bic: z.string().describe(\"SEPA BIC code\").nullable().optional(),\n attention: z.string().describe(\"Billing attention line\").nullable().optional(),\n email_ubl: z.boolean().describe(\"Whether to send UBL invoices\").nullable(),\n firstname: z.string().describe(\"First name of the contact\").nullable().optional(),\n sepa_iban: z.string().describe(\"SEPA IBAN number\").nullable().optional(),\n created_at: z.string().describe(\"Creation timestamp of contact\").nullable(),\n is_trusted: z.boolean().describe(\"Whether the contact is trusted\").nullable(),\n tax_number: z.string().describe(\"Tax or VAT number\").nullable().optional(),\n updated_at: z.string().describe(\"Last update timestamp of contact\").nullable(),\n customer_id: z.string().describe(\"Customer identifier of the contact\").nullable(),\n sepa_active: z.boolean().describe(\"SEPA direct debit active\").nullable(),\n bank_account: z.string().describe(\"Bank account number of contact\").nullable().optional(),\n company_name: z.string().describe(\"Company name of the contact\").nullable().optional(),\n custom_fields: z.array(MoneybirdGetContactByCustomerId_CustomFieldSchema).describe(\"List of custom fields and values\"),\n si_identifier: z.string().describe(\"SEPA identifier\").nullable().optional(),\n contact_people: z.array(MoneybirdGetContactByCustomerId_ContactPersonSchema).describe(\"List of contact person records\"),\n delivery_method: z.string().describe(\"Delivery method for invoices\").nullable().optional(),\n sepa_mandate_id: z.string().describe(\"SEPA mandate ID\").nullable().optional(),\n credit_card_type: z.string().describe(\"Type of credit card\").nullable().optional(),\n tax_number_valid: z.boolean().describe(\"Whether tax number is valid\").nullable().optional(),\n administration_id: z.number().int().describe(\"Administration ID\").nullable(),\n sepa_mandate_date: z.string().describe(\"SEPA mandate date\").nullable().optional(),\n credit_card_number: z.string().describe(\"Credit card number token\").nullable().optional(),\n sales_invoices_url: z.string().describe(\"URL for contact's sales invoices\").nullable().optional(),\n sepa_sequence_type: z.string().describe(\"SEPA sequence type\").nullable(),\n si_identifier_type: z.string().describe(\"SEPA identifier type\").nullable().optional(),\n chamber_of_commerce: z.string().describe(\"Chamber of Commerce number\").nullable().optional(),\n invoice_workflow_id: z.number().int().describe(\"Invoice workflow ID\").nullable().optional(),\n max_transfer_amount: z.string().describe(\"Maximum transfer amount allowed\").nullable().optional(),\n estimate_workflow_id: z.number().int().describe(\"Estimate workflow ID\").nullable().optional(),\n credit_card_reference: z.string().describe(\"Credit card reference\").nullable().optional(),\n send_invoices_to_email: z.string().describe(\"Email addresses for sending invoices\").nullable().optional(),\n sepa_iban_account_name: z.string().describe(\"SEPA IBAN account name\").nullable().optional(),\n send_estimates_to_email: z.string().describe(\"Email addresses for sending estimates\").nullable().optional(),\n tax_number_validated_at: z.string().describe(\"Timestamp when tax number was validated\").nullable().optional(),\n moneybird_payments_mandate: z.boolean().describe(\"Moneybird Payments mandate active\").nullable(),\n send_invoices_to_attention: z.string().describe(\"Attention line for sending invoices\").nullable().optional(),\n send_estimates_to_attention: z.string().describe(\"Attention line for sending estimates\").nullable().optional(),\n}).passthrough();\n\nexport const moneybirdGetContactByCustomerId = action(\"MONEYBIRD_GET_CONTACT_BY_CUSTOMER_ID\", {\n slug: \"moneybird-get-contact-by-customer-id\",\n name: \"Get Contact by Customer ID\",\n description: \"Tool to retrieve full contact details by customer ID. Use when you need all fields of a contact given its customer_id.\",\n input: MoneybirdGetContactByCustomerIdInput,\n output: MoneybirdGetContactByCustomerIdOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uCAAuCA,IAAAA,EAAE,OAAO;CAC3D,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;CAC9E,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD;AACjG,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAM,6CAA6CA,IAAAA,EAAE,OAAO;CAC1D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;CACnD,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8BAA8B;CAC/E,MAAMA,IAAAA,EAAE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AAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,yBAAyBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,yBAAyBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,4BAA4BA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAC/F,4BAA4BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3G,6BAA6BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/G,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,kCAAkCC,eAAAA,OAAO,wCAAwC;CAC5F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"get-contact-by-customer-id.cjs","names":["z","action"],"sources":["../../src/actions/get-contact-by-customer-id.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { moneybird } from \"../app\";\n\nexport const MoneybirdGetContactByCustomerIdInput = z.object({\n customer_id: z.string().describe(\"Unique customer identifier for the contact.\"),\n administration_id: z.number().int().describe(\"Numeric administration ID, used in the URL path.\"),\n}).describe(\"Request parameters for fetching a contact by its customer_id.\");\nconst MoneybirdGetContactByCustomerId_NoteSchema = z.object({\n id: z.string().describe(\"ID of the note\").nullable(),\n data: z.record(z.string(), z.unknown()).describe(\"Additional data for the note\"),\n note: z.string().describe(\"Text content of the note\").nullable(),\n todo: z.boolean().describe(\"Whether this note is a to-do item\").nullable(),\n user_id: z.number().int().describe(\"User ID who created the note\").nullable(),\n entity_id: z.string().describe(\"ID of the related entity (contact)\").nullable(),\n todo_type: z.string().describe(\"Type of to-do\").nullable().optional(),\n created_at: z.string().describe(\"Creation timestamp of the note\").nullable(),\n updated_at: z.string().describe(\"Last update timestamp of the note\").nullable(),\n assignee_id: z.string().describe(\"Assigned user ID if to-do\").nullable().optional(),\n entity_type: z.string().describe(\"Type of the related entity\").nullable(),\n completed_at: z.string().describe(\"Timestamp when to-do was completed\").nullable().optional(),\n completed_by_id: z.string().describe(\"User ID who completed the to-do\").nullable().optional(),\n administration_id: z.number().int().describe(\"Administration ID\").nullable(),\n}).passthrough();\nconst MoneybirdGetContactByCustomerId_EventSchema = z.object({\n data: z.record(z.string(), z.unknown()).describe(\"Additional data for the event\"),\n action: z.string().describe(\"Action type of the event\").nullable(),\n user_id: z.number().int().describe(\"User ID who triggered the event\").nullable(),\n created_at: z.string().describe(\"Event creation timestamp\").nullable(),\n updated_at: z.string().describe(\"Event update timestamp\").nullable(),\n link_entity_id: z.string().describe(\"Linked entity ID if any\").nullable().optional(),\n link_entity_type: z.string().describe(\"Linked entity type if any\").nullable().optional(),\n administration_id: z.number().int().describe(\"Administration ID\").nullable(),\n}).passthrough();\nconst MoneybirdGetContactByCustomerId_CustomFieldSchema = z.object({\n id: z.string().describe(\"Custom field ID\").nullable(),\n name: z.string().describe(\"Name of the custom field\").nullable().optional(),\n value: z.string().describe(\"Value of the custom field\").nullable().optional(),\n}).passthrough();\nconst MoneybirdGetContactByCustomerId_ContactPersonSchema = z.object({\n id: z.string().describe(\"Contact person ID\").nullable(),\n email: z.string().describe(\"Email of contact person\").nullable().optional(),\n phone: z.string().describe(\"Phone number of contact person\").nullable().optional(),\n version: z.number().int().describe(\"Version of contact person record\").nullable(),\n lastname: z.string().describe(\"Last name of contact person\").nullable().optional(),\n firstname: z.string().describe(\"First name of contact person\").nullable().optional(),\n contact_id: z.string().describe(\"Parent contact ID\").nullable(),\n created_at: z.string().describe(\"Creation timestamp of contact person\").nullable(),\n department: z.string().describe(\"Department of contact person\").nullable().optional(),\n updated_at: z.string().describe(\"Last update timestamp of contact person\").nullable(),\n administration_id: z.number().int().describe(\"Administration ID\").nullable(),\n}).passthrough();\nexport const MoneybirdGetContactByCustomerIdOutput = z.object({\n id: z.string().describe(\"Contact ID\").nullable(),\n city: z.string().describe(\"City name\").nullable().optional(),\n email: z.string().describe(\"Primary email address\").nullable().optional(),\n notes: z.array(MoneybirdGetContactByCustomerId_NoteSchema).describe(\"List of notes associated with the contact\"),\n phone: z.string().describe(\"Phone number\").nullable().optional(),\n events: z.array(MoneybirdGetContactByCustomerId_EventSchema).describe(\"List of events related to the contact\"),\n country: z.string().describe(\"Country code (ISO 3166-1 alpha-2)\").nullable().optional(),\n version: z.number().int().describe(\"Version number of contact record\").nullable(),\n zipcode: z.string().describe(\"Postal code\").nullable().optional(),\n address1: z.string().describe(\"Address line 1\").nullable().optional(),\n address2: z.string().describe(\"Address line 2\").nullable().optional(),\n archived: z.boolean().describe(\"Whether the contact is archived\").nullable(),\n lastname: z.string().describe(\"Last name of the contact\").nullable().optional(),\n sepa_bic: z.string().describe(\"SEPA BIC code\").nullable().optional(),\n attention: z.string().describe(\"Billing attention line\").nullable().optional(),\n email_ubl: z.boolean().describe(\"Whether to send UBL invoices\").nullable(),\n firstname: z.string().describe(\"First name of the contact\").nullable().optional(),\n sepa_iban: z.string().describe(\"SEPA IBAN number\").nullable().optional(),\n created_at: z.string().describe(\"Creation timestamp of contact\").nullable(),\n is_trusted: z.boolean().describe(\"Whether the contact is trusted\").nullable(),\n tax_number: z.string().describe(\"Tax or VAT number\").nullable().optional(),\n updated_at: z.string().describe(\"Last update timestamp of contact\").nullable(),\n customer_id: z.string().describe(\"Customer identifier of the contact\").nullable(),\n sepa_active: z.boolean().describe(\"SEPA direct debit active\").nullable(),\n bank_account: z.string().describe(\"Bank account number of contact\").nullable().optional(),\n company_name: z.string().describe(\"Company name of the contact\").nullable().optional(),\n custom_fields: z.array(MoneybirdGetContactByCustomerId_CustomFieldSchema).describe(\"List of custom fields and values\"),\n si_identifier: z.string().describe(\"SEPA identifier\").nullable().optional(),\n contact_people: z.array(MoneybirdGetContactByCustomerId_ContactPersonSchema).describe(\"List of contact person records\"),\n delivery_method: z.string().describe(\"Delivery method for invoices\").nullable().optional(),\n sepa_mandate_id: z.string().describe(\"SEPA mandate ID\").nullable().optional(),\n credit_card_type: z.string().describe(\"Type of credit card\").nullable().optional(),\n tax_number_valid: z.boolean().describe(\"Whether tax number is valid\").nullable().optional(),\n administration_id: z.number().int().describe(\"Administration ID\").nullable(),\n sepa_mandate_date: z.string().describe(\"SEPA mandate date\").nullable().optional(),\n credit_card_number: z.string().describe(\"Credit card number token\").nullable().optional(),\n sales_invoices_url: z.string().describe(\"URL for contact's sales invoices\").nullable().optional(),\n sepa_sequence_type: z.string().describe(\"SEPA sequence type\").nullable(),\n si_identifier_type: z.string().describe(\"SEPA identifier type\").nullable().optional(),\n chamber_of_commerce: z.string().describe(\"Chamber of Commerce number\").nullable().optional(),\n invoice_workflow_id: z.number().int().describe(\"Invoice workflow ID\").nullable().optional(),\n max_transfer_amount: z.string().describe(\"Maximum transfer amount allowed\").nullable().optional(),\n estimate_workflow_id: z.number().int().describe(\"Estimate workflow ID\").nullable().optional(),\n credit_card_reference: z.string().describe(\"Credit card reference\").nullable().optional(),\n send_invoices_to_email: z.string().describe(\"Email addresses for sending invoices\").nullable().optional(),\n sepa_iban_account_name: z.string().describe(\"SEPA IBAN account name\").nullable().optional(),\n send_estimates_to_email: z.string().describe(\"Email addresses for sending estimates\").nullable().optional(),\n tax_number_validated_at: z.string().describe(\"Timestamp when tax number was validated\").nullable().optional(),\n moneybird_payments_mandate: z.boolean().describe(\"Moneybird Payments mandate active\").nullable(),\n send_invoices_to_attention: z.string().describe(\"Attention line for sending invoices\").nullable().optional(),\n send_estimates_to_attention: z.string().describe(\"Attention line for sending estimates\").nullable().optional(),\n}).passthrough();\n\nexport const moneybirdGetContactByCustomerId: AppAction<\n typeof MoneybirdGetContactByCustomerIdInput,\n typeof MoneybirdGetContactByCustomerIdOutput,\n typeof moneybird.credential\n> = action(\"MONEYBIRD_GET_CONTACT_BY_CUSTOMER_ID\", {\n slug: \"moneybird-get-contact-by-customer-id\",\n name: \"Get Contact by Customer ID\",\n description: \"Tool to retrieve full contact details by customer ID. Use when you need all fields of a contact given its customer_id.\",\n input: MoneybirdGetContactByCustomerIdInput,\n output: MoneybirdGetContactByCustomerIdOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,uCAAuCA,IAAAA,EAAE,OAAO;CAC3D,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;CAC9E,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD;AACjG,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAM,6CAA6CA,IAAAA,EAAE,OAAO;CAC1D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;CACnD,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8BAA8B;CAC/E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CAC/D,MAAMA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACzE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CAC5E,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAC9E,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpE,YAAYA,IAAAA,EAA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CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3G,6BAA6BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/G,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,kCAITC,eAAAA,OAAO,wCAAwC;CACjD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { moneybird } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-contact-by-customer-id.d.ts
|
|
@@ -98,22 +100,7 @@ declare const MoneybirdGetContactByCustomerIdOutput: z.ZodObject<{
|
|
|
98
100
|
send_invoices_to_attention: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
99
101
|
send_estimates_to_attention: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
100
102
|
}, z.core.$loose>;
|
|
101
|
-
declare const moneybirdGetContactByCustomerId:
|
|
102
|
-
customer_id: string;
|
|
103
|
-
administration_id: number;
|
|
104
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"moneybird", z.ZodObject<{
|
|
105
|
-
connectionId: z.ZodString;
|
|
106
|
-
entityId: z.ZodString;
|
|
107
|
-
instanceId: z.ZodString;
|
|
108
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
109
|
-
accessToken: z.ZodString;
|
|
110
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"moneybird", z.ZodObject<{
|
|
111
|
-
connectionId: z.ZodString;
|
|
112
|
-
entityId: z.ZodString;
|
|
113
|
-
instanceId: z.ZodString;
|
|
114
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
115
|
-
accessToken: z.ZodString;
|
|
116
|
-
}, z.core.$strip>>]>;
|
|
103
|
+
declare const moneybirdGetContactByCustomerId: AppAction<typeof MoneybirdGetContactByCustomerIdInput, typeof MoneybirdGetContactByCustomerIdOutput, typeof moneybird.credential>;
|
|
117
104
|
//#endregion
|
|
118
105
|
export { moneybirdGetContactByCustomerId };
|
|
119
106
|
//# sourceMappingURL=get-contact-by-customer-id.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-contact-by-customer-id.d.cts","names":[],"sources":["../../src/actions/get-contact-by-customer-id.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-contact-by-customer-id.d.cts","names":[],"sources":["../../src/actions/get-contact-by-customer-id.ts"],"mappings":";;;;;cAMa,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;cAgDpC,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAsDrC,+BAAA,EAAiC,SAAA,QACrC,oCAAA,SACA,qCAAA,SACA,SAAA,CAAU,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { moneybird } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-contact-by-customer-id.d.ts
|
|
@@ -98,22 +100,7 @@ declare const MoneybirdGetContactByCustomerIdOutput: z.ZodObject<{
|
|
|
98
100
|
send_invoices_to_attention: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
99
101
|
send_estimates_to_attention: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
100
102
|
}, z.core.$loose>;
|
|
101
|
-
declare const moneybirdGetContactByCustomerId:
|
|
102
|
-
customer_id: string;
|
|
103
|
-
administration_id: number;
|
|
104
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"moneybird", z.ZodObject<{
|
|
105
|
-
connectionId: z.ZodString;
|
|
106
|
-
entityId: z.ZodString;
|
|
107
|
-
instanceId: z.ZodString;
|
|
108
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
109
|
-
accessToken: z.ZodString;
|
|
110
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"moneybird", z.ZodObject<{
|
|
111
|
-
connectionId: z.ZodString;
|
|
112
|
-
entityId: z.ZodString;
|
|
113
|
-
instanceId: z.ZodString;
|
|
114
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
115
|
-
accessToken: z.ZodString;
|
|
116
|
-
}, z.core.$strip>>]>;
|
|
103
|
+
declare const moneybirdGetContactByCustomerId: AppAction<typeof MoneybirdGetContactByCustomerIdInput, typeof MoneybirdGetContactByCustomerIdOutput, typeof moneybird.credential>;
|
|
117
104
|
//#endregion
|
|
118
105
|
export { moneybirdGetContactByCustomerId };
|
|
119
106
|
//# sourceMappingURL=get-contact-by-customer-id.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-contact-by-customer-id.d.mts","names":[],"sources":["../../src/actions/get-contact-by-customer-id.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-contact-by-customer-id.d.mts","names":[],"sources":["../../src/actions/get-contact-by-customer-id.ts"],"mappings":";;;;;cAMa,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;cAgDpC,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAsDrC,+BAAA,EAAiC,SAAA,QACrC,oCAAA,SACA,qCAAA,SACA,SAAA,CAAU,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-contact-by-customer-id.mjs","names":[],"sources":["../../src/actions/get-contact-by-customer-id.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoneybirdGetContactByCustomerIdInput = z.object({\n customer_id: z.string().describe(\"Unique customer identifier for the contact.\"),\n administration_id: z.number().int().describe(\"Numeric administration ID, used in the URL path.\"),\n}).describe(\"Request parameters for fetching a contact by its customer_id.\");\nconst MoneybirdGetContactByCustomerId_NoteSchema = z.object({\n id: z.string().describe(\"ID of the note\").nullable(),\n data: z.record(z.string(), z.unknown()).describe(\"Additional data for the note\"),\n note: z.string().describe(\"Text content of the note\").nullable(),\n todo: z.boolean().describe(\"Whether this note is a to-do item\").nullable(),\n user_id: z.number().int().describe(\"User ID who created the note\").nullable(),\n entity_id: z.string().describe(\"ID of the related entity (contact)\").nullable(),\n todo_type: z.string().describe(\"Type of to-do\").nullable().optional(),\n created_at: z.string().describe(\"Creation timestamp of the note\").nullable(),\n updated_at: z.string().describe(\"Last update timestamp of the note\").nullable(),\n assignee_id: z.string().describe(\"Assigned user ID if to-do\").nullable().optional(),\n entity_type: z.string().describe(\"Type of the related entity\").nullable(),\n completed_at: z.string().describe(\"Timestamp when to-do was completed\").nullable().optional(),\n completed_by_id: z.string().describe(\"User ID who completed the to-do\").nullable().optional(),\n administration_id: z.number().int().describe(\"Administration ID\").nullable(),\n}).passthrough();\nconst MoneybirdGetContactByCustomerId_EventSchema = z.object({\n data: z.record(z.string(), z.unknown()).describe(\"Additional data for the event\"),\n action: z.string().describe(\"Action type of the event\").nullable(),\n user_id: z.number().int().describe(\"User ID who triggered the event\").nullable(),\n created_at: z.string().describe(\"Event creation timestamp\").nullable(),\n updated_at: z.string().describe(\"Event update timestamp\").nullable(),\n link_entity_id: z.string().describe(\"Linked entity ID if any\").nullable().optional(),\n link_entity_type: z.string().describe(\"Linked entity type if any\").nullable().optional(),\n administration_id: z.number().int().describe(\"Administration ID\").nullable(),\n}).passthrough();\nconst MoneybirdGetContactByCustomerId_CustomFieldSchema = z.object({\n id: z.string().describe(\"Custom field ID\").nullable(),\n name: z.string().describe(\"Name of the custom field\").nullable().optional(),\n value: z.string().describe(\"Value of the custom field\").nullable().optional(),\n}).passthrough();\nconst MoneybirdGetContactByCustomerId_ContactPersonSchema = z.object({\n id: z.string().describe(\"Contact person ID\").nullable(),\n email: z.string().describe(\"Email of contact person\").nullable().optional(),\n phone: z.string().describe(\"Phone number of contact person\").nullable().optional(),\n version: z.number().int().describe(\"Version of contact person record\").nullable(),\n lastname: z.string().describe(\"Last name of contact person\").nullable().optional(),\n firstname: z.string().describe(\"First name of contact person\").nullable().optional(),\n contact_id: z.string().describe(\"Parent contact ID\").nullable(),\n created_at: z.string().describe(\"Creation timestamp of contact person\").nullable(),\n department: z.string().describe(\"Department of contact person\").nullable().optional(),\n updated_at: z.string().describe(\"Last update timestamp of contact person\").nullable(),\n administration_id: z.number().int().describe(\"Administration ID\").nullable(),\n}).passthrough();\nexport const MoneybirdGetContactByCustomerIdOutput = z.object({\n id: z.string().describe(\"Contact ID\").nullable(),\n city: z.string().describe(\"City name\").nullable().optional(),\n email: z.string().describe(\"Primary email address\").nullable().optional(),\n notes: z.array(MoneybirdGetContactByCustomerId_NoteSchema).describe(\"List of notes associated with the contact\"),\n phone: z.string().describe(\"Phone number\").nullable().optional(),\n events: z.array(MoneybirdGetContactByCustomerId_EventSchema).describe(\"List of events related to the contact\"),\n country: z.string().describe(\"Country code (ISO 3166-1 alpha-2)\").nullable().optional(),\n version: z.number().int().describe(\"Version number of contact record\").nullable(),\n zipcode: z.string().describe(\"Postal code\").nullable().optional(),\n address1: z.string().describe(\"Address line 1\").nullable().optional(),\n address2: z.string().describe(\"Address line 2\").nullable().optional(),\n archived: z.boolean().describe(\"Whether the contact is archived\").nullable(),\n lastname: z.string().describe(\"Last name of the contact\").nullable().optional(),\n sepa_bic: z.string().describe(\"SEPA BIC code\").nullable().optional(),\n attention: z.string().describe(\"Billing attention line\").nullable().optional(),\n email_ubl: z.boolean().describe(\"Whether to send UBL invoices\").nullable(),\n firstname: z.string().describe(\"First name of the contact\").nullable().optional(),\n sepa_iban: z.string().describe(\"SEPA IBAN number\").nullable().optional(),\n created_at: z.string().describe(\"Creation timestamp of contact\").nullable(),\n is_trusted: z.boolean().describe(\"Whether the contact is trusted\").nullable(),\n tax_number: z.string().describe(\"Tax or VAT number\").nullable().optional(),\n updated_at: z.string().describe(\"Last update timestamp of contact\").nullable(),\n customer_id: z.string().describe(\"Customer identifier of the contact\").nullable(),\n sepa_active: z.boolean().describe(\"SEPA direct debit active\").nullable(),\n bank_account: z.string().describe(\"Bank account number of contact\").nullable().optional(),\n company_name: z.string().describe(\"Company name of the contact\").nullable().optional(),\n custom_fields: z.array(MoneybirdGetContactByCustomerId_CustomFieldSchema).describe(\"List of custom fields and values\"),\n si_identifier: z.string().describe(\"SEPA identifier\").nullable().optional(),\n contact_people: z.array(MoneybirdGetContactByCustomerId_ContactPersonSchema).describe(\"List of contact person records\"),\n delivery_method: z.string().describe(\"Delivery method for invoices\").nullable().optional(),\n sepa_mandate_id: z.string().describe(\"SEPA mandate ID\").nullable().optional(),\n credit_card_type: z.string().describe(\"Type of credit card\").nullable().optional(),\n tax_number_valid: z.boolean().describe(\"Whether tax number is valid\").nullable().optional(),\n administration_id: z.number().int().describe(\"Administration ID\").nullable(),\n sepa_mandate_date: z.string().describe(\"SEPA mandate date\").nullable().optional(),\n credit_card_number: z.string().describe(\"Credit card number token\").nullable().optional(),\n sales_invoices_url: z.string().describe(\"URL for contact's sales invoices\").nullable().optional(),\n sepa_sequence_type: z.string().describe(\"SEPA sequence type\").nullable(),\n si_identifier_type: z.string().describe(\"SEPA identifier type\").nullable().optional(),\n chamber_of_commerce: z.string().describe(\"Chamber of Commerce number\").nullable().optional(),\n invoice_workflow_id: z.number().int().describe(\"Invoice workflow ID\").nullable().optional(),\n max_transfer_amount: z.string().describe(\"Maximum transfer amount allowed\").nullable().optional(),\n estimate_workflow_id: z.number().int().describe(\"Estimate workflow ID\").nullable().optional(),\n credit_card_reference: z.string().describe(\"Credit card reference\").nullable().optional(),\n send_invoices_to_email: z.string().describe(\"Email addresses for sending invoices\").nullable().optional(),\n sepa_iban_account_name: z.string().describe(\"SEPA IBAN account name\").nullable().optional(),\n send_estimates_to_email: z.string().describe(\"Email addresses for sending estimates\").nullable().optional(),\n tax_number_validated_at: z.string().describe(\"Timestamp when tax number was validated\").nullable().optional(),\n moneybird_payments_mandate: z.boolean().describe(\"Moneybird Payments mandate active\").nullable(),\n send_invoices_to_attention: z.string().describe(\"Attention line for sending invoices\").nullable().optional(),\n send_estimates_to_attention: z.string().describe(\"Attention line for sending estimates\").nullable().optional(),\n}).passthrough();\n\nexport const moneybirdGetContactByCustomerId = action(\"MONEYBIRD_GET_CONTACT_BY_CUSTOMER_ID\", {\n slug: \"moneybird-get-contact-by-customer-id\",\n name: \"Get Contact by Customer ID\",\n description: \"Tool to retrieve full contact details by customer ID. Use when you need all fields of a contact given its customer_id.\",\n input: MoneybirdGetContactByCustomerIdInput,\n output: MoneybirdGetContactByCustomerIdOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uCAAuC,EAAE,OAAO;CAC3D,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;CAC9E,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD;AACjG,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAM,6CAA6C,EAAE,OAAO;CAC1D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;CACnD,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8BAA8B;CAC/E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CAC/D,MAAM,EAAE,QAAQ,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACzE,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC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,CAAC,SAAS;EAC1F,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChG,sBAAsB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5F,uBAAuB,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxF,wBAAwB,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxG,wBAAwB,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1F,yBAAyB,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1G,yBAAyB,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5G,4BAA4B,EAAE,QAAQ,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EAC/F,4BAA4B,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3G,6BAA6B,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/G,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"get-contact-by-customer-id.mjs","names":[],"sources":["../../src/actions/get-contact-by-customer-id.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { moneybird } from \"../app\";\n\nexport const MoneybirdGetContactByCustomerIdInput = z.object({\n customer_id: z.string().describe(\"Unique customer identifier for the contact.\"),\n administration_id: z.number().int().describe(\"Numeric administration ID, used in the URL path.\"),\n}).describe(\"Request parameters for fetching a contact by its customer_id.\");\nconst MoneybirdGetContactByCustomerId_NoteSchema = z.object({\n id: z.string().describe(\"ID of the note\").nullable(),\n data: z.record(z.string(), z.unknown()).describe(\"Additional data for the note\"),\n note: z.string().describe(\"Text content of the note\").nullable(),\n todo: z.boolean().describe(\"Whether this note is a to-do item\").nullable(),\n user_id: z.number().int().describe(\"User ID who created the note\").nullable(),\n entity_id: z.string().describe(\"ID of the related entity (contact)\").nullable(),\n todo_type: z.string().describe(\"Type of to-do\").nullable().optional(),\n created_at: z.string().describe(\"Creation timestamp of the note\").nullable(),\n updated_at: z.string().describe(\"Last update timestamp of the note\").nullable(),\n assignee_id: z.string().describe(\"Assigned user ID if to-do\").nullable().optional(),\n entity_type: z.string().describe(\"Type of the related entity\").nullable(),\n completed_at: z.string().describe(\"Timestamp when to-do was completed\").nullable().optional(),\n completed_by_id: z.string().describe(\"User ID who completed the to-do\").nullable().optional(),\n administration_id: z.number().int().describe(\"Administration ID\").nullable(),\n}).passthrough();\nconst MoneybirdGetContactByCustomerId_EventSchema = z.object({\n data: z.record(z.string(), z.unknown()).describe(\"Additional data for the event\"),\n action: z.string().describe(\"Action type of the event\").nullable(),\n user_id: z.number().int().describe(\"User ID who triggered the event\").nullable(),\n created_at: z.string().describe(\"Event creation timestamp\").nullable(),\n updated_at: z.string().describe(\"Event update timestamp\").nullable(),\n link_entity_id: z.string().describe(\"Linked entity ID if any\").nullable().optional(),\n link_entity_type: z.string().describe(\"Linked entity type if any\").nullable().optional(),\n administration_id: z.number().int().describe(\"Administration ID\").nullable(),\n}).passthrough();\nconst MoneybirdGetContactByCustomerId_CustomFieldSchema = z.object({\n id: z.string().describe(\"Custom field ID\").nullable(),\n name: z.string().describe(\"Name of the custom field\").nullable().optional(),\n value: z.string().describe(\"Value of the custom field\").nullable().optional(),\n}).passthrough();\nconst MoneybirdGetContactByCustomerId_ContactPersonSchema = z.object({\n id: z.string().describe(\"Contact person ID\").nullable(),\n email: z.string().describe(\"Email of contact person\").nullable().optional(),\n phone: z.string().describe(\"Phone number of contact person\").nullable().optional(),\n version: z.number().int().describe(\"Version of contact person record\").nullable(),\n lastname: z.string().describe(\"Last name of contact person\").nullable().optional(),\n firstname: z.string().describe(\"First name of contact person\").nullable().optional(),\n contact_id: z.string().describe(\"Parent contact ID\").nullable(),\n created_at: z.string().describe(\"Creation timestamp of contact person\").nullable(),\n department: z.string().describe(\"Department of contact person\").nullable().optional(),\n updated_at: z.string().describe(\"Last update timestamp of contact person\").nullable(),\n administration_id: z.number().int().describe(\"Administration ID\").nullable(),\n}).passthrough();\nexport const MoneybirdGetContactByCustomerIdOutput = z.object({\n id: z.string().describe(\"Contact ID\").nullable(),\n city: z.string().describe(\"City name\").nullable().optional(),\n email: z.string().describe(\"Primary email address\").nullable().optional(),\n notes: z.array(MoneybirdGetContactByCustomerId_NoteSchema).describe(\"List of notes associated with the contact\"),\n phone: z.string().describe(\"Phone number\").nullable().optional(),\n events: z.array(MoneybirdGetContactByCustomerId_EventSchema).describe(\"List of events related to the contact\"),\n country: z.string().describe(\"Country code (ISO 3166-1 alpha-2)\").nullable().optional(),\n version: z.number().int().describe(\"Version number of contact record\").nullable(),\n zipcode: z.string().describe(\"Postal code\").nullable().optional(),\n address1: z.string().describe(\"Address line 1\").nullable().optional(),\n address2: z.string().describe(\"Address line 2\").nullable().optional(),\n archived: z.boolean().describe(\"Whether the contact is archived\").nullable(),\n lastname: z.string().describe(\"Last name of the contact\").nullable().optional(),\n sepa_bic: z.string().describe(\"SEPA BIC code\").nullable().optional(),\n attention: z.string().describe(\"Billing attention line\").nullable().optional(),\n email_ubl: z.boolean().describe(\"Whether to send UBL invoices\").nullable(),\n firstname: z.string().describe(\"First name of the contact\").nullable().optional(),\n sepa_iban: z.string().describe(\"SEPA IBAN number\").nullable().optional(),\n created_at: z.string().describe(\"Creation timestamp of contact\").nullable(),\n is_trusted: z.boolean().describe(\"Whether the contact is trusted\").nullable(),\n tax_number: z.string().describe(\"Tax or VAT number\").nullable().optional(),\n updated_at: z.string().describe(\"Last update timestamp of contact\").nullable(),\n customer_id: z.string().describe(\"Customer identifier of the contact\").nullable(),\n sepa_active: z.boolean().describe(\"SEPA direct debit active\").nullable(),\n bank_account: z.string().describe(\"Bank account number of contact\").nullable().optional(),\n company_name: z.string().describe(\"Company name of the contact\").nullable().optional(),\n custom_fields: z.array(MoneybirdGetContactByCustomerId_CustomFieldSchema).describe(\"List of custom fields and values\"),\n si_identifier: z.string().describe(\"SEPA identifier\").nullable().optional(),\n contact_people: z.array(MoneybirdGetContactByCustomerId_ContactPersonSchema).describe(\"List of contact person records\"),\n delivery_method: z.string().describe(\"Delivery method for invoices\").nullable().optional(),\n sepa_mandate_id: z.string().describe(\"SEPA mandate ID\").nullable().optional(),\n credit_card_type: z.string().describe(\"Type of credit card\").nullable().optional(),\n tax_number_valid: z.boolean().describe(\"Whether tax number is valid\").nullable().optional(),\n administration_id: z.number().int().describe(\"Administration ID\").nullable(),\n sepa_mandate_date: z.string().describe(\"SEPA mandate date\").nullable().optional(),\n credit_card_number: z.string().describe(\"Credit card number token\").nullable().optional(),\n sales_invoices_url: z.string().describe(\"URL for contact's sales invoices\").nullable().optional(),\n sepa_sequence_type: z.string().describe(\"SEPA sequence type\").nullable(),\n si_identifier_type: z.string().describe(\"SEPA identifier type\").nullable().optional(),\n chamber_of_commerce: z.string().describe(\"Chamber of Commerce number\").nullable().optional(),\n invoice_workflow_id: z.number().int().describe(\"Invoice workflow ID\").nullable().optional(),\n max_transfer_amount: z.string().describe(\"Maximum transfer amount allowed\").nullable().optional(),\n estimate_workflow_id: z.number().int().describe(\"Estimate workflow ID\").nullable().optional(),\n credit_card_reference: z.string().describe(\"Credit card reference\").nullable().optional(),\n send_invoices_to_email: z.string().describe(\"Email addresses for sending invoices\").nullable().optional(),\n sepa_iban_account_name: z.string().describe(\"SEPA IBAN account name\").nullable().optional(),\n send_estimates_to_email: z.string().describe(\"Email addresses for sending estimates\").nullable().optional(),\n tax_number_validated_at: z.string().describe(\"Timestamp when tax number was validated\").nullable().optional(),\n moneybird_payments_mandate: z.boolean().describe(\"Moneybird Payments mandate active\").nullable(),\n send_invoices_to_attention: z.string().describe(\"Attention line for sending invoices\").nullable().optional(),\n send_estimates_to_attention: z.string().describe(\"Attention line for sending estimates\").nullable().optional(),\n}).passthrough();\n\nexport const moneybirdGetContactByCustomerId: AppAction<\n typeof MoneybirdGetContactByCustomerIdInput,\n typeof MoneybirdGetContactByCustomerIdOutput,\n typeof moneybird.credential\n> = action(\"MONEYBIRD_GET_CONTACT_BY_CUSTOMER_ID\", {\n slug: \"moneybird-get-contact-by-customer-id\",\n name: \"Get Contact by Customer ID\",\n description: \"Tool to retrieve full contact details by customer ID. Use when you need all fields of a contact given its customer_id.\",\n input: MoneybirdGetContactByCustomerIdInput,\n output: MoneybirdGetContactByCustomerIdOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,uCAAuC,EAAE,OAAO;CAC3D,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;CAC9E,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD;AACjG,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAM,6CAA6C,EAAE,OAAO;CAC1D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;CACnD,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8BAA8B;CAC/E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CAC/D,MAAM,EAAE,QAAQ,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACzE,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CAC5E,WAAW,EAAE,OAAO,CAAC,CAAC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,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChG,sBAAsB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5F,uBAAuB,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxF,wBAAwB,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxG,wBAAwB,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1F,yBAAyB,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1G,yBAAyB,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5G,4BAA4B,EAAE,QAAQ,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EAC/F,4BAA4B,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3G,6BAA6B,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/G,CAAC,CAAC,CAAC,YAWO;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-contact-person.cjs","names":["z","action"],"sources":["../../src/actions/get-contact-person.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoneybirdGetContactPersonInput = z.object({\n contact_id: z.number().int().describe(\"The ID of the contact to which the person belongs.\"),\n administration_id: z.number().int().describe(\"Numeric administration ID, used in the URL path.\"),\n contact_person_id: z.number().int().describe(\"The ID of the contact person to retrieve.\"),\n}).describe(\"Path parameters for retrieving a contact person from a contact.\");\nexport const MoneybirdGetContactPersonOutput = z.object({\n id: z.string().describe(\"Unique identifier of the contact person\").nullable(),\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 record\").nullable(),\n lastname: z.string().describe(\"Last name of the contact person\").nullable(),\n firstname: z.string().describe(\"First name of the contact person\").nullable(),\n created_at: z.string().describe(\"Timestamp when the contact person was created\").nullable(),\n updated_at: z.string().describe(\"Timestamp when the contact person was last updated\").nullable(),\n administration_id: z.number().int().describe(\"ID of the administration the contact person belongs to\").nullable(),\n}).passthrough().describe(\"The retrieved contact person record.\");\n\nexport const moneybirdGetContactPerson = action(\"MONEYBIRD_GET_CONTACT_PERSON\", {\n slug: \"moneybird-get-contact-person\",\n name: \"Get Contact Person\",\n description: \"Tool to get all information about a contact person. Use when you have the administration, contact, and contact person IDs and need full details before updating.\",\n input: MoneybirdGetContactPersonInput,\n output: MoneybirdGetContactPersonOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-contact-person.cjs","names":["z","action"],"sources":["../../src/actions/get-contact-person.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { moneybird } from \"../app\";\n\nexport const MoneybirdGetContactPersonInput = z.object({\n contact_id: z.number().int().describe(\"The ID of the contact to which the person belongs.\"),\n administration_id: z.number().int().describe(\"Numeric administration ID, used in the URL path.\"),\n contact_person_id: z.number().int().describe(\"The ID of the contact person to retrieve.\"),\n}).describe(\"Path parameters for retrieving a contact person from a contact.\");\nexport const MoneybirdGetContactPersonOutput = z.object({\n id: z.string().describe(\"Unique identifier of the contact person\").nullable(),\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 record\").nullable(),\n lastname: z.string().describe(\"Last name of the contact person\").nullable(),\n firstname: z.string().describe(\"First name of the contact person\").nullable(),\n created_at: z.string().describe(\"Timestamp when the contact person was created\").nullable(),\n updated_at: z.string().describe(\"Timestamp when the contact person was last updated\").nullable(),\n administration_id: z.number().int().describe(\"ID of the administration the contact person belongs to\").nullable(),\n}).passthrough().describe(\"The retrieved contact person record.\");\n\nexport const moneybirdGetContactPerson: AppAction<\n typeof MoneybirdGetContactPersonInput,\n typeof MoneybirdGetContactPersonOutput,\n typeof moneybird.credential\n> = action(\"MONEYBIRD_GET_CONTACT_PERSON\", {\n slug: \"moneybird-get-contact-person\",\n name: \"Get Contact Person\",\n description: \"Tool to get all information about a contact person. Use when you have the administration, contact, and contact person IDs and need full details before updating.\",\n input: MoneybirdGetContactPersonInput,\n output: MoneybirdGetContactPersonOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD;CAC1F,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD;CAC/F,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C;AAC1F,CAAC,CAAC,CAAC,SAAS,iEAAiE;AAC7E,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC5E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAC3F,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC1E,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAC5E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CAC1F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAC/F,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;AAClH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sCAAsC;AAEhE,MAAa,4BAITC,eAAAA,OAAO,gCAAgC;CACzC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { moneybird } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-contact-person.d.ts
|
|
@@ -17,23 +19,7 @@ declare const MoneybirdGetContactPersonOutput: z.ZodObject<{
|
|
|
17
19
|
updated_at: z.ZodNullable<z.ZodString>;
|
|
18
20
|
administration_id: z.ZodNullable<z.ZodNumber>;
|
|
19
21
|
}, z.core.$loose>;
|
|
20
|
-
declare const moneybirdGetContactPerson:
|
|
21
|
-
contact_id: number;
|
|
22
|
-
administration_id: number;
|
|
23
|
-
contact_person_id: number;
|
|
24
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"moneybird", z.ZodObject<{
|
|
25
|
-
connectionId: z.ZodString;
|
|
26
|
-
entityId: z.ZodString;
|
|
27
|
-
instanceId: z.ZodString;
|
|
28
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
29
|
-
accessToken: z.ZodString;
|
|
30
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"moneybird", z.ZodObject<{
|
|
31
|
-
connectionId: z.ZodString;
|
|
32
|
-
entityId: z.ZodString;
|
|
33
|
-
instanceId: z.ZodString;
|
|
34
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
35
|
-
accessToken: z.ZodString;
|
|
36
|
-
}, z.core.$strip>>]>;
|
|
22
|
+
declare const moneybirdGetContactPerson: AppAction<typeof MoneybirdGetContactPersonInput, typeof MoneybirdGetContactPersonOutput, typeof moneybird.credential>;
|
|
37
23
|
//#endregion
|
|
38
24
|
export { moneybirdGetContactPerson };
|
|
39
25
|
//# sourceMappingURL=get-contact-person.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-contact-person.d.cts","names":[],"sources":["../../src/actions/get-contact-person.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-contact-person.d.cts","names":[],"sources":["../../src/actions/get-contact-person.ts"],"mappings":";;;;;cAMa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;cAK9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;cAY/B,yBAAA,EAA2B,SAAA,QAC/B,8BAAA,SACA,+BAAA,SACA,SAAA,CAAU,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { moneybird } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-contact-person.d.ts
|
|
@@ -17,23 +19,7 @@ declare const MoneybirdGetContactPersonOutput: z.ZodObject<{
|
|
|
17
19
|
updated_at: z.ZodNullable<z.ZodString>;
|
|
18
20
|
administration_id: z.ZodNullable<z.ZodNumber>;
|
|
19
21
|
}, z.core.$loose>;
|
|
20
|
-
declare const moneybirdGetContactPerson:
|
|
21
|
-
contact_id: number;
|
|
22
|
-
administration_id: number;
|
|
23
|
-
contact_person_id: number;
|
|
24
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"moneybird", z.ZodObject<{
|
|
25
|
-
connectionId: z.ZodString;
|
|
26
|
-
entityId: z.ZodString;
|
|
27
|
-
instanceId: z.ZodString;
|
|
28
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
29
|
-
accessToken: z.ZodString;
|
|
30
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"moneybird", z.ZodObject<{
|
|
31
|
-
connectionId: z.ZodString;
|
|
32
|
-
entityId: z.ZodString;
|
|
33
|
-
instanceId: z.ZodString;
|
|
34
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
35
|
-
accessToken: z.ZodString;
|
|
36
|
-
}, z.core.$strip>>]>;
|
|
22
|
+
declare const moneybirdGetContactPerson: AppAction<typeof MoneybirdGetContactPersonInput, typeof MoneybirdGetContactPersonOutput, typeof moneybird.credential>;
|
|
37
23
|
//#endregion
|
|
38
24
|
export { moneybirdGetContactPerson };
|
|
39
25
|
//# sourceMappingURL=get-contact-person.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-contact-person.d.mts","names":[],"sources":["../../src/actions/get-contact-person.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-contact-person.d.mts","names":[],"sources":["../../src/actions/get-contact-person.ts"],"mappings":";;;;;cAMa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;cAK9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;cAY/B,yBAAA,EAA2B,SAAA,QAC/B,8BAAA,SACA,+BAAA,SACA,SAAA,CAAU,UAAA"}
|