@keystrokehq/moneybird 0.1.0 → 0.1.3

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.
Files changed (161) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/add-note-to-contact.cjs +4 -4
  4. package/dist/actions/add-note-to-contact.cjs.map +1 -1
  5. package/dist/actions/add-note-to-contact.d.cts +34 -3
  6. package/dist/actions/add-note-to-contact.d.cts.map +1 -1
  7. package/dist/actions/add-note-to-contact.d.mts +34 -3
  8. package/dist/actions/add-note-to-contact.d.mts.map +1 -1
  9. package/dist/actions/add-note-to-contact.mjs +4 -4
  10. package/dist/actions/add-note-to-contact.mjs.map +1 -1
  11. package/dist/actions/archive-contact.cjs +1 -1
  12. package/dist/actions/archive-contact.cjs.map +1 -1
  13. package/dist/actions/archive-contact.d.cts +9 -3
  14. package/dist/actions/archive-contact.d.cts.map +1 -1
  15. package/dist/actions/archive-contact.d.mts +9 -3
  16. package/dist/actions/archive-contact.d.mts.map +1 -1
  17. package/dist/actions/archive-contact.mjs +1 -1
  18. package/dist/actions/archive-contact.mjs.map +1 -1
  19. package/dist/actions/create-contact-person.cjs +8 -8
  20. package/dist/actions/create-contact-person.cjs.map +1 -1
  21. package/dist/actions/create-contact-person.d.cts +34 -3
  22. package/dist/actions/create-contact-person.d.cts.map +1 -1
  23. package/dist/actions/create-contact-person.d.mts +34 -3
  24. package/dist/actions/create-contact-person.d.mts.map +1 -1
  25. package/dist/actions/create-contact-person.mjs +8 -8
  26. package/dist/actions/create-contact-person.mjs.map +1 -1
  27. package/dist/actions/create-contact.cjs +6 -6
  28. package/dist/actions/create-contact.cjs.map +1 -1
  29. package/dist/actions/create-contact.d.cts +82 -3
  30. package/dist/actions/create-contact.d.cts.map +1 -1
  31. package/dist/actions/create-contact.d.mts +82 -3
  32. package/dist/actions/create-contact.d.mts.map +1 -1
  33. package/dist/actions/create-contact.mjs +6 -6
  34. package/dist/actions/create-contact.mjs.map +1 -1
  35. package/dist/actions/create-sales-invoice.cjs +14 -14
  36. package/dist/actions/create-sales-invoice.cjs.map +1 -1
  37. package/dist/actions/create-sales-invoice.d.cts +97 -3
  38. package/dist/actions/create-sales-invoice.d.cts.map +1 -1
  39. package/dist/actions/create-sales-invoice.d.mts +97 -3
  40. package/dist/actions/create-sales-invoice.d.mts.map +1 -1
  41. package/dist/actions/create-sales-invoice.mjs +14 -14
  42. package/dist/actions/create-sales-invoice.mjs.map +1 -1
  43. package/dist/actions/delete-contact-note.cjs +1 -1
  44. package/dist/actions/delete-contact-note.cjs.map +1 -1
  45. package/dist/actions/delete-contact-note.d.cts +11 -3
  46. package/dist/actions/delete-contact-note.d.cts.map +1 -1
  47. package/dist/actions/delete-contact-note.d.mts +11 -3
  48. package/dist/actions/delete-contact-note.d.mts.map +1 -1
  49. package/dist/actions/delete-contact-note.mjs +1 -1
  50. package/dist/actions/delete-contact-note.mjs.map +1 -1
  51. package/dist/actions/delete-contact-person.cjs +1 -1
  52. package/dist/actions/delete-contact-person.cjs.map +1 -1
  53. package/dist/actions/delete-contact-person.d.cts +11 -3
  54. package/dist/actions/delete-contact-person.d.cts.map +1 -1
  55. package/dist/actions/delete-contact-person.d.mts +11 -3
  56. package/dist/actions/delete-contact-person.d.mts.map +1 -1
  57. package/dist/actions/delete-contact-person.mjs +1 -1
  58. package/dist/actions/delete-contact-person.mjs.map +1 -1
  59. package/dist/actions/delete-contact.cjs +1 -1
  60. package/dist/actions/delete-contact.cjs.map +1 -1
  61. package/dist/actions/delete-contact.d.cts +9 -3
  62. package/dist/actions/delete-contact.d.cts.map +1 -1
  63. package/dist/actions/delete-contact.d.mts +9 -3
  64. package/dist/actions/delete-contact.d.mts.map +1 -1
  65. package/dist/actions/delete-contact.mjs +1 -1
  66. package/dist/actions/delete-contact.mjs.map +1 -1
  67. package/dist/actions/filter-contacts.cjs.map +1 -1
  68. package/dist/actions/filter-contacts.d.cts +19 -3
  69. package/dist/actions/filter-contacts.d.cts.map +1 -1
  70. package/dist/actions/filter-contacts.d.mts +19 -3
  71. package/dist/actions/filter-contacts.d.mts.map +1 -1
  72. package/dist/actions/filter-contacts.mjs.map +1 -1
  73. package/dist/actions/get-additional-charges.cjs.map +1 -1
  74. package/dist/actions/get-additional-charges.d.cts +11 -3
  75. package/dist/actions/get-additional-charges.d.cts.map +1 -1
  76. package/dist/actions/get-additional-charges.d.mts +11 -3
  77. package/dist/actions/get-additional-charges.d.mts.map +1 -1
  78. package/dist/actions/get-additional-charges.mjs.map +1 -1
  79. package/dist/actions/get-contact-by-customer-id.cjs +38 -38
  80. package/dist/actions/get-contact-by-customer-id.cjs.map +1 -1
  81. package/dist/actions/get-contact-by-customer-id.d.cts +101 -3
  82. package/dist/actions/get-contact-by-customer-id.d.cts.map +1 -1
  83. package/dist/actions/get-contact-by-customer-id.d.mts +101 -3
  84. package/dist/actions/get-contact-by-customer-id.d.mts.map +1 -1
  85. package/dist/actions/get-contact-by-customer-id.mjs +38 -38
  86. package/dist/actions/get-contact-by-customer-id.mjs.map +1 -1
  87. package/dist/actions/get-contact-person.cjs +8 -8
  88. package/dist/actions/get-contact-person.cjs.map +1 -1
  89. package/dist/actions/get-contact-person.d.cts +21 -3
  90. package/dist/actions/get-contact-person.d.cts.map +1 -1
  91. package/dist/actions/get-contact-person.d.mts +21 -3
  92. package/dist/actions/get-contact-person.d.mts.map +1 -1
  93. package/dist/actions/get-contact-person.mjs +8 -8
  94. package/dist/actions/get-contact-person.mjs.map +1 -1
  95. package/dist/actions/get-contact.cjs +1 -1
  96. package/dist/actions/get-contact.cjs.map +1 -1
  97. package/dist/actions/get-contact.d.cts +13 -3
  98. package/dist/actions/get-contact.d.cts.map +1 -1
  99. package/dist/actions/get-contact.d.mts +13 -3
  100. package/dist/actions/get-contact.d.mts.map +1 -1
  101. package/dist/actions/get-contact.mjs +1 -1
  102. package/dist/actions/get-contact.mjs.map +1 -1
  103. package/dist/actions/get-sales-invoice.cjs +1 -1
  104. package/dist/actions/get-sales-invoice.cjs.map +1 -1
  105. package/dist/actions/get-sales-invoice.d.cts +11 -3
  106. package/dist/actions/get-sales-invoice.d.cts.map +1 -1
  107. package/dist/actions/get-sales-invoice.d.mts +11 -3
  108. package/dist/actions/get-sales-invoice.d.mts.map +1 -1
  109. package/dist/actions/get-sales-invoice.mjs +1 -1
  110. package/dist/actions/get-sales-invoice.mjs.map +1 -1
  111. package/dist/actions/list-administrations.cjs.map +1 -1
  112. package/dist/actions/list-administrations.d.cts +3 -3
  113. package/dist/actions/list-administrations.d.cts.map +1 -1
  114. package/dist/actions/list-administrations.d.mts +3 -3
  115. package/dist/actions/list-administrations.d.mts.map +1 -1
  116. package/dist/actions/list-administrations.mjs.map +1 -1
  117. package/dist/actions/list-contacts-synchronization.cjs.map +1 -1
  118. package/dist/actions/list-contacts-synchronization.d.cts +11 -3
  119. package/dist/actions/list-contacts-synchronization.d.cts.map +1 -1
  120. package/dist/actions/list-contacts-synchronization.d.mts +11 -3
  121. package/dist/actions/list-contacts-synchronization.d.mts.map +1 -1
  122. package/dist/actions/list-contacts-synchronization.mjs.map +1 -1
  123. package/dist/actions/list-sales-invoices.cjs.map +1 -1
  124. package/dist/actions/list-sales-invoices.d.cts +13 -3
  125. package/dist/actions/list-sales-invoices.d.cts.map +1 -1
  126. package/dist/actions/list-sales-invoices.d.mts +13 -3
  127. package/dist/actions/list-sales-invoices.d.mts.map +1 -1
  128. package/dist/actions/list-sales-invoices.mjs.map +1 -1
  129. package/dist/actions/request-contact-payments-mandate-url.cjs +1 -1
  130. package/dist/actions/request-contact-payments-mandate-url.cjs.map +1 -1
  131. package/dist/actions/request-contact-payments-mandate-url.d.cts +13 -3
  132. package/dist/actions/request-contact-payments-mandate-url.d.cts.map +1 -1
  133. package/dist/actions/request-contact-payments-mandate-url.d.mts +13 -3
  134. package/dist/actions/request-contact-payments-mandate-url.d.mts.map +1 -1
  135. package/dist/actions/request-contact-payments-mandate-url.mjs +1 -1
  136. package/dist/actions/request-contact-payments-mandate-url.mjs.map +1 -1
  137. package/dist/actions/update-contact-person.cjs +9 -9
  138. package/dist/actions/update-contact-person.cjs.map +1 -1
  139. package/dist/actions/update-contact-person.d.cts +33 -3
  140. package/dist/actions/update-contact-person.d.cts.map +1 -1
  141. package/dist/actions/update-contact-person.d.mts +33 -3
  142. package/dist/actions/update-contact-person.d.mts.map +1 -1
  143. package/dist/actions/update-contact-person.mjs +9 -9
  144. package/dist/actions/update-contact-person.mjs.map +1 -1
  145. package/dist/actions/update-contact.cjs +1 -1
  146. package/dist/actions/update-contact.cjs.map +1 -1
  147. package/dist/actions/update-contact.d.cts +13 -3
  148. package/dist/actions/update-contact.d.cts.map +1 -1
  149. package/dist/actions/update-contact.d.mts +13 -3
  150. package/dist/actions/update-contact.d.mts.map +1 -1
  151. package/dist/actions/update-contact.mjs +1 -1
  152. package/dist/actions/update-contact.mjs.map +1 -1
  153. package/dist/actions/update-sales-invoice.cjs +3 -3
  154. package/dist/actions/update-sales-invoice.cjs.map +1 -1
  155. package/dist/actions/update-sales-invoice.d.cts +89 -3
  156. package/dist/actions/update-sales-invoice.d.cts.map +1 -1
  157. package/dist/actions/update-sales-invoice.d.mts +89 -3
  158. package/dist/actions/update-sales-invoice.d.mts.map +1 -1
  159. package/dist/actions/update-sales-invoice.mjs +3 -3
  160. package/dist/actions/update-sales-invoice.mjs.map +1 -1
  161. package/package.json +2 -2
@@ -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.ZodTypeAny = 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.ZodTypeAny = 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":";;AAWA,MAAa,gCAAgC,OAAO,oCAAoC;CACtF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAX8D,EAAE,OAAO;EACvE,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,CAOS;CACP,QAP+D,EAAE,QAOzD;AACV,CAAC"}
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":";;AAWA,MAAa,gCAAgC,OAAO,oCAAoC;CACtF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAXgD,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,CAOS;CACP,QAPiD,EAAE,QAO3C;AACV,CAAC"}
@@ -6,74 +6,74 @@ const MoneybirdGetContactByCustomerIdInput = zod.z.object({
6
6
  administration_id: zod.z.number().int().describe("Numeric administration ID, used in the URL path.")
7
7
  }).describe("Request parameters for fetching a contact by its customer_id.");
8
8
  const MoneybirdGetContactByCustomerId_NoteSchema = zod.z.object({
9
- id: zod.z.string().describe("ID of the note"),
9
+ id: zod.z.string().describe("ID of the note").nullable(),
10
10
  data: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Additional data for the note"),
11
- note: zod.z.string().describe("Text content of the note"),
12
- todo: zod.z.boolean().describe("Whether this note is a to-do item"),
13
- user_id: zod.z.number().int().describe("User ID who created the note"),
14
- entity_id: zod.z.string().describe("ID of the related entity (contact)"),
11
+ note: zod.z.string().describe("Text content of the note").nullable(),
12
+ todo: zod.z.boolean().describe("Whether this note is a to-do item").nullable(),
13
+ user_id: zod.z.number().int().describe("User ID who created the note").nullable(),
14
+ entity_id: zod.z.string().describe("ID of the related entity (contact)").nullable(),
15
15
  todo_type: zod.z.string().describe("Type of to-do").nullable().optional(),
16
- created_at: zod.z.string().describe("Creation timestamp of the note"),
17
- updated_at: zod.z.string().describe("Last update timestamp of the note"),
16
+ created_at: zod.z.string().describe("Creation timestamp of the note").nullable(),
17
+ updated_at: zod.z.string().describe("Last update timestamp of the note").nullable(),
18
18
  assignee_id: zod.z.string().describe("Assigned user ID if to-do").nullable().optional(),
19
- entity_type: zod.z.string().describe("Type of the related entity"),
19
+ entity_type: zod.z.string().describe("Type of the related entity").nullable(),
20
20
  completed_at: zod.z.string().describe("Timestamp when to-do was completed").nullable().optional(),
21
21
  completed_by_id: zod.z.string().describe("User ID who completed the to-do").nullable().optional(),
22
- administration_id: zod.z.number().int().describe("Administration ID")
23
- });
22
+ administration_id: zod.z.number().int().describe("Administration ID").nullable()
23
+ }).passthrough();
24
24
  const MoneybirdGetContactByCustomerId_EventSchema = zod.z.object({
25
25
  data: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Additional data for the event"),
26
- action: zod.z.string().describe("Action type of the event"),
27
- user_id: zod.z.number().int().describe("User ID who triggered the event"),
28
- created_at: zod.z.string().describe("Event creation timestamp"),
29
- updated_at: zod.z.string().describe("Event update timestamp"),
26
+ action: zod.z.string().describe("Action type of the event").nullable(),
27
+ user_id: zod.z.number().int().describe("User ID who triggered the event").nullable(),
28
+ created_at: zod.z.string().describe("Event creation timestamp").nullable(),
29
+ updated_at: zod.z.string().describe("Event update timestamp").nullable(),
30
30
  link_entity_id: zod.z.string().describe("Linked entity ID if any").nullable().optional(),
31
31
  link_entity_type: zod.z.string().describe("Linked entity type if any").nullable().optional(),
32
- administration_id: zod.z.number().int().describe("Administration ID")
33
- });
32
+ administration_id: zod.z.number().int().describe("Administration ID").nullable()
33
+ }).passthrough();
34
34
  const MoneybirdGetContactByCustomerId_CustomFieldSchema = zod.z.object({
35
- id: zod.z.string().describe("Custom field ID"),
35
+ id: zod.z.string().describe("Custom field ID").nullable(),
36
36
  name: zod.z.string().describe("Name of the custom field").nullable().optional(),
37
37
  value: zod.z.string().describe("Value of the custom field").nullable().optional()
38
- });
38
+ }).passthrough();
39
39
  const MoneybirdGetContactByCustomerId_ContactPersonSchema = zod.z.object({
40
- id: zod.z.string().describe("Contact person ID"),
40
+ id: zod.z.string().describe("Contact person ID").nullable(),
41
41
  email: zod.z.string().describe("Email of contact person").nullable().optional(),
42
42
  phone: zod.z.string().describe("Phone number of contact person").nullable().optional(),
43
- version: zod.z.number().int().describe("Version of contact person record"),
43
+ version: zod.z.number().int().describe("Version of contact person record").nullable(),
44
44
  lastname: zod.z.string().describe("Last name of contact person").nullable().optional(),
45
45
  firstname: zod.z.string().describe("First name of contact person").nullable().optional(),
46
- contact_id: zod.z.string().describe("Parent contact ID"),
47
- created_at: zod.z.string().describe("Creation timestamp of contact person"),
46
+ contact_id: zod.z.string().describe("Parent contact ID").nullable(),
47
+ created_at: zod.z.string().describe("Creation timestamp of contact person").nullable(),
48
48
  department: zod.z.string().describe("Department of contact person").nullable().optional(),
49
- updated_at: zod.z.string().describe("Last update timestamp of contact person"),
50
- administration_id: zod.z.number().int().describe("Administration ID")
51
- });
49
+ updated_at: zod.z.string().describe("Last update timestamp of contact person").nullable(),
50
+ administration_id: zod.z.number().int().describe("Administration ID").nullable()
51
+ }).passthrough();
52
52
  const MoneybirdGetContactByCustomerIdOutput = zod.z.object({
53
- id: zod.z.string().describe("Contact ID"),
53
+ id: zod.z.string().describe("Contact ID").nullable(),
54
54
  city: zod.z.string().describe("City name").nullable().optional(),
55
55
  email: zod.z.string().describe("Primary email address").nullable().optional(),
56
56
  notes: zod.z.array(MoneybirdGetContactByCustomerId_NoteSchema).describe("List of notes associated with the contact"),
57
57
  phone: zod.z.string().describe("Phone number").nullable().optional(),
58
58
  events: zod.z.array(MoneybirdGetContactByCustomerId_EventSchema).describe("List of events related to the contact"),
59
59
  country: zod.z.string().describe("Country code (ISO 3166-1 alpha-2)").nullable().optional(),
60
- version: zod.z.number().int().describe("Version number of contact record"),
60
+ version: zod.z.number().int().describe("Version number of contact record").nullable(),
61
61
  zipcode: zod.z.string().describe("Postal code").nullable().optional(),
62
62
  address1: zod.z.string().describe("Address line 1").nullable().optional(),
63
63
  address2: zod.z.string().describe("Address line 2").nullable().optional(),
64
- archived: zod.z.boolean().describe("Whether the contact is archived"),
64
+ archived: zod.z.boolean().describe("Whether the contact is archived").nullable(),
65
65
  lastname: zod.z.string().describe("Last name of the contact").nullable().optional(),
66
66
  sepa_bic: zod.z.string().describe("SEPA BIC code").nullable().optional(),
67
67
  attention: zod.z.string().describe("Billing attention line").nullable().optional(),
68
- email_ubl: zod.z.boolean().describe("Whether to send UBL invoices"),
68
+ email_ubl: zod.z.boolean().describe("Whether to send UBL invoices").nullable(),
69
69
  firstname: zod.z.string().describe("First name of the contact").nullable().optional(),
70
70
  sepa_iban: zod.z.string().describe("SEPA IBAN number").nullable().optional(),
71
- created_at: zod.z.string().describe("Creation timestamp of contact"),
72
- is_trusted: zod.z.boolean().describe("Whether the contact is trusted"),
71
+ created_at: zod.z.string().describe("Creation timestamp of contact").nullable(),
72
+ is_trusted: zod.z.boolean().describe("Whether the contact is trusted").nullable(),
73
73
  tax_number: zod.z.string().describe("Tax or VAT number").nullable().optional(),
74
- updated_at: zod.z.string().describe("Last update timestamp of contact"),
75
- customer_id: zod.z.string().describe("Customer identifier of the contact"),
76
- sepa_active: zod.z.boolean().describe("SEPA direct debit active"),
74
+ updated_at: zod.z.string().describe("Last update timestamp of contact").nullable(),
75
+ customer_id: zod.z.string().describe("Customer identifier of the contact").nullable(),
76
+ sepa_active: zod.z.boolean().describe("SEPA direct debit active").nullable(),
77
77
  bank_account: zod.z.string().describe("Bank account number of contact").nullable().optional(),
78
78
  company_name: zod.z.string().describe("Company name of the contact").nullable().optional(),
79
79
  custom_fields: zod.z.array(MoneybirdGetContactByCustomerId_CustomFieldSchema).describe("List of custom fields and values"),
@@ -83,11 +83,11 @@ const MoneybirdGetContactByCustomerIdOutput = zod.z.object({
83
83
  sepa_mandate_id: zod.z.string().describe("SEPA mandate ID").nullable().optional(),
84
84
  credit_card_type: zod.z.string().describe("Type of credit card").nullable().optional(),
85
85
  tax_number_valid: zod.z.boolean().describe("Whether tax number is valid").nullable().optional(),
86
- administration_id: zod.z.number().int().describe("Administration ID"),
86
+ administration_id: zod.z.number().int().describe("Administration ID").nullable(),
87
87
  sepa_mandate_date: zod.z.string().describe("SEPA mandate date").nullable().optional(),
88
88
  credit_card_number: zod.z.string().describe("Credit card number token").nullable().optional(),
89
89
  sales_invoices_url: zod.z.string().describe("URL for contact's sales invoices").nullable().optional(),
90
- sepa_sequence_type: zod.z.string().describe("SEPA sequence type"),
90
+ sepa_sequence_type: zod.z.string().describe("SEPA sequence type").nullable(),
91
91
  si_identifier_type: zod.z.string().describe("SEPA identifier type").nullable().optional(),
92
92
  chamber_of_commerce: zod.z.string().describe("Chamber of Commerce number").nullable().optional(),
93
93
  invoice_workflow_id: zod.z.number().int().describe("Invoice workflow ID").nullable().optional(),
@@ -98,10 +98,10 @@ const MoneybirdGetContactByCustomerIdOutput = zod.z.object({
98
98
  sepa_iban_account_name: zod.z.string().describe("SEPA IBAN account name").nullable().optional(),
99
99
  send_estimates_to_email: zod.z.string().describe("Email addresses for sending estimates").nullable().optional(),
100
100
  tax_number_validated_at: zod.z.string().describe("Timestamp when tax number was validated").nullable().optional(),
101
- moneybird_payments_mandate: zod.z.boolean().describe("Moneybird Payments mandate active"),
101
+ moneybird_payments_mandate: zod.z.boolean().describe("Moneybird Payments mandate active").nullable(),
102
102
  send_invoices_to_attention: zod.z.string().describe("Attention line for sending invoices").nullable().optional(),
103
103
  send_estimates_to_attention: zod.z.string().describe("Attention line for sending estimates").nullable().optional()
104
- });
104
+ }).passthrough();
105
105
  const moneybirdGetContactByCustomerId = require_action.action("MONEYBIRD_GET_CONTACT_BY_CUSTOMER_ID", {
106
106
  slug: "moneybird-get-contact-by-customer-id",
107
107
  name: "Get Contact by Customer ID",
@@ -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.ZodTypeAny = 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.ZodTypeAny = z.object({\n id: z.string().describe(\"ID of the note\"),\n data: z.record(z.string(), z.unknown()).describe(\"Additional data for the note\"),\n note: z.string().describe(\"Text content of the note\"),\n todo: z.boolean().describe(\"Whether this note is a to-do item\"),\n user_id: z.number().int().describe(\"User ID who created the note\"),\n entity_id: z.string().describe(\"ID of the related entity (contact)\"),\n todo_type: z.string().describe(\"Type of to-do\").nullable().optional(),\n created_at: z.string().describe(\"Creation timestamp of the note\"),\n updated_at: z.string().describe(\"Last update timestamp of the note\"),\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\"),\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\"),\n});\nconst MoneybirdGetContactByCustomerId_EventSchema: z.ZodTypeAny = 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\"),\n user_id: z.number().int().describe(\"User ID who triggered the event\"),\n created_at: z.string().describe(\"Event creation timestamp\"),\n updated_at: z.string().describe(\"Event update timestamp\"),\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\"),\n});\nconst MoneybirdGetContactByCustomerId_CustomFieldSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Custom field ID\"),\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});\nconst MoneybirdGetContactByCustomerId_ContactPersonSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Contact person ID\"),\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\"),\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\"),\n created_at: z.string().describe(\"Creation timestamp of contact person\"),\n department: z.string().describe(\"Department of contact person\").nullable().optional(),\n updated_at: z.string().describe(\"Last update timestamp of contact person\"),\n administration_id: z.number().int().describe(\"Administration ID\"),\n});\nexport const MoneybirdGetContactByCustomerIdOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Contact ID\"),\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\"),\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\"),\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\"),\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\"),\n is_trusted: z.boolean().describe(\"Whether the contact is trusted\"),\n tax_number: z.string().describe(\"Tax or VAT number\").nullable().optional(),\n updated_at: z.string().describe(\"Last update timestamp of contact\"),\n customer_id: z.string().describe(\"Customer identifier of the contact\"),\n sepa_active: z.boolean().describe(\"SEPA direct debit active\"),\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\"),\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\"),\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\"),\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});\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,uCAAqDA,IAAAA,EAAE,OAAO;CACzE,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,6CAA2DA,IAAAA,EAAE,OAAO;CACxE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB;CACxC,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;CACpD,MAAMA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,mCAAmC;CAC9D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8BAA8B;CACjE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;CACnE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;CAChE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;CACnE,aAAaA,IAAAA,EAAE,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C,SAAS;CACxF,wBAAwBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,wBAAwBA,IAAAA,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;CACpF,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;AAED,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 { 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,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,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CAC3E,YAAYA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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,9 +1,107 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-contact-by-customer-id.d.ts
4
- declare const MoneybirdGetContactByCustomerIdInput: z.ZodTypeAny;
5
- declare const MoneybirdGetContactByCustomerIdOutput: z.ZodTypeAny;
6
- declare const moneybirdGetContactByCustomerId: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const MoneybirdGetContactByCustomerIdInput: z.ZodObject<{
5
+ customer_id: z.ZodString;
6
+ administration_id: z.ZodNumber;
7
+ }, z.core.$strip>;
8
+ declare const MoneybirdGetContactByCustomerIdOutput: z.ZodObject<{
9
+ id: z.ZodNullable<z.ZodString>;
10
+ city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
+ notes: z.ZodArray<z.ZodObject<{
13
+ id: z.ZodNullable<z.ZodString>;
14
+ data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
15
+ note: z.ZodNullable<z.ZodString>;
16
+ todo: z.ZodNullable<z.ZodBoolean>;
17
+ user_id: z.ZodNullable<z.ZodNumber>;
18
+ entity_id: z.ZodNullable<z.ZodString>;
19
+ todo_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
+ created_at: z.ZodNullable<z.ZodString>;
21
+ updated_at: z.ZodNullable<z.ZodString>;
22
+ assignee_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
+ entity_type: z.ZodNullable<z.ZodString>;
24
+ completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
+ completed_by_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
+ administration_id: z.ZodNullable<z.ZodNumber>;
27
+ }, z.core.$loose>>;
28
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29
+ events: z.ZodArray<z.ZodObject<{
30
+ data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
31
+ action: z.ZodNullable<z.ZodString>;
32
+ user_id: z.ZodNullable<z.ZodNumber>;
33
+ created_at: z.ZodNullable<z.ZodString>;
34
+ updated_at: z.ZodNullable<z.ZodString>;
35
+ link_entity_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36
+ link_entity_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
37
+ administration_id: z.ZodNullable<z.ZodNumber>;
38
+ }, z.core.$loose>>;
39
+ country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40
+ version: z.ZodNullable<z.ZodNumber>;
41
+ zipcode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
42
+ address1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
43
+ address2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
44
+ archived: z.ZodNullable<z.ZodBoolean>;
45
+ lastname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
46
+ sepa_bic: z.ZodOptional<z.ZodNullable<z.ZodString>>;
47
+ attention: z.ZodOptional<z.ZodNullable<z.ZodString>>;
48
+ email_ubl: z.ZodNullable<z.ZodBoolean>;
49
+ firstname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
50
+ sepa_iban: z.ZodOptional<z.ZodNullable<z.ZodString>>;
51
+ created_at: z.ZodNullable<z.ZodString>;
52
+ is_trusted: z.ZodNullable<z.ZodBoolean>;
53
+ tax_number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
54
+ updated_at: z.ZodNullable<z.ZodString>;
55
+ customer_id: z.ZodNullable<z.ZodString>;
56
+ sepa_active: z.ZodNullable<z.ZodBoolean>;
57
+ bank_account: z.ZodOptional<z.ZodNullable<z.ZodString>>;
58
+ company_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
59
+ custom_fields: z.ZodArray<z.ZodObject<{
60
+ id: z.ZodNullable<z.ZodString>;
61
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
62
+ value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
63
+ }, z.core.$loose>>;
64
+ si_identifier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
65
+ contact_people: z.ZodArray<z.ZodObject<{
66
+ id: z.ZodNullable<z.ZodString>;
67
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
68
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
69
+ version: z.ZodNullable<z.ZodNumber>;
70
+ lastname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
71
+ firstname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
72
+ contact_id: z.ZodNullable<z.ZodString>;
73
+ created_at: z.ZodNullable<z.ZodString>;
74
+ department: z.ZodOptional<z.ZodNullable<z.ZodString>>;
75
+ updated_at: z.ZodNullable<z.ZodString>;
76
+ administration_id: z.ZodNullable<z.ZodNumber>;
77
+ }, z.core.$loose>>;
78
+ delivery_method: z.ZodOptional<z.ZodNullable<z.ZodString>>;
79
+ sepa_mandate_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
80
+ credit_card_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
81
+ tax_number_valid: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
82
+ administration_id: z.ZodNullable<z.ZodNumber>;
83
+ sepa_mandate_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
84
+ credit_card_number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
85
+ sales_invoices_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
86
+ sepa_sequence_type: z.ZodNullable<z.ZodString>;
87
+ si_identifier_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
88
+ chamber_of_commerce: z.ZodOptional<z.ZodNullable<z.ZodString>>;
89
+ invoice_workflow_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
90
+ max_transfer_amount: z.ZodOptional<z.ZodNullable<z.ZodString>>;
91
+ estimate_workflow_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
92
+ credit_card_reference: z.ZodOptional<z.ZodNullable<z.ZodString>>;
93
+ send_invoices_to_email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
94
+ sepa_iban_account_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
95
+ send_estimates_to_email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
96
+ tax_number_validated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
97
+ moneybird_payments_mandate: z.ZodNullable<z.ZodBoolean>;
98
+ send_invoices_to_attention: z.ZodOptional<z.ZodNullable<z.ZodString>>;
99
+ send_estimates_to_attention: z.ZodOptional<z.ZodNullable<z.ZodString>>;
100
+ }, z.core.$loose>;
101
+ declare const moneybirdGetContactByCustomerId: import("@keystrokehq/action").WorkflowActionDefinition<{
102
+ customer_id: string;
103
+ administration_id: number;
104
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
105
  //#endregion
8
106
  export { moneybirdGetContactByCustomerId };
9
107
  //# 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":";;;cAIa,oCAAA,EAAsC,CAAA,CAAE,UAGuB;AAAA,cA6C/D,qCAAA,EAAuC,CAAA,CAAE,UAoDpD;AAAA,cAEW,+BAAA,gCAA+B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-contact-by-customer-id.d.cts","names":[],"sources":["../../src/actions/get-contact-by-customer-id.ts"],"mappings":";;;cAIa,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;cAgDpC,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAsDrC,+BAAA,gCAA+B,wBAAA"}
@@ -1,9 +1,107 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-contact-by-customer-id.d.ts
4
- declare const MoneybirdGetContactByCustomerIdInput: z.ZodTypeAny;
5
- declare const MoneybirdGetContactByCustomerIdOutput: z.ZodTypeAny;
6
- declare const moneybirdGetContactByCustomerId: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const MoneybirdGetContactByCustomerIdInput: z.ZodObject<{
5
+ customer_id: z.ZodString;
6
+ administration_id: z.ZodNumber;
7
+ }, z.core.$strip>;
8
+ declare const MoneybirdGetContactByCustomerIdOutput: z.ZodObject<{
9
+ id: z.ZodNullable<z.ZodString>;
10
+ city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
+ notes: z.ZodArray<z.ZodObject<{
13
+ id: z.ZodNullable<z.ZodString>;
14
+ data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
15
+ note: z.ZodNullable<z.ZodString>;
16
+ todo: z.ZodNullable<z.ZodBoolean>;
17
+ user_id: z.ZodNullable<z.ZodNumber>;
18
+ entity_id: z.ZodNullable<z.ZodString>;
19
+ todo_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
+ created_at: z.ZodNullable<z.ZodString>;
21
+ updated_at: z.ZodNullable<z.ZodString>;
22
+ assignee_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
+ entity_type: z.ZodNullable<z.ZodString>;
24
+ completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
+ completed_by_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
+ administration_id: z.ZodNullable<z.ZodNumber>;
27
+ }, z.core.$loose>>;
28
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29
+ events: z.ZodArray<z.ZodObject<{
30
+ data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
31
+ action: z.ZodNullable<z.ZodString>;
32
+ user_id: z.ZodNullable<z.ZodNumber>;
33
+ created_at: z.ZodNullable<z.ZodString>;
34
+ updated_at: z.ZodNullable<z.ZodString>;
35
+ link_entity_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36
+ link_entity_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
37
+ administration_id: z.ZodNullable<z.ZodNumber>;
38
+ }, z.core.$loose>>;
39
+ country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40
+ version: z.ZodNullable<z.ZodNumber>;
41
+ zipcode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
42
+ address1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
43
+ address2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
44
+ archived: z.ZodNullable<z.ZodBoolean>;
45
+ lastname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
46
+ sepa_bic: z.ZodOptional<z.ZodNullable<z.ZodString>>;
47
+ attention: z.ZodOptional<z.ZodNullable<z.ZodString>>;
48
+ email_ubl: z.ZodNullable<z.ZodBoolean>;
49
+ firstname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
50
+ sepa_iban: z.ZodOptional<z.ZodNullable<z.ZodString>>;
51
+ created_at: z.ZodNullable<z.ZodString>;
52
+ is_trusted: z.ZodNullable<z.ZodBoolean>;
53
+ tax_number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
54
+ updated_at: z.ZodNullable<z.ZodString>;
55
+ customer_id: z.ZodNullable<z.ZodString>;
56
+ sepa_active: z.ZodNullable<z.ZodBoolean>;
57
+ bank_account: z.ZodOptional<z.ZodNullable<z.ZodString>>;
58
+ company_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
59
+ custom_fields: z.ZodArray<z.ZodObject<{
60
+ id: z.ZodNullable<z.ZodString>;
61
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
62
+ value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
63
+ }, z.core.$loose>>;
64
+ si_identifier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
65
+ contact_people: z.ZodArray<z.ZodObject<{
66
+ id: z.ZodNullable<z.ZodString>;
67
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
68
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
69
+ version: z.ZodNullable<z.ZodNumber>;
70
+ lastname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
71
+ firstname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
72
+ contact_id: z.ZodNullable<z.ZodString>;
73
+ created_at: z.ZodNullable<z.ZodString>;
74
+ department: z.ZodOptional<z.ZodNullable<z.ZodString>>;
75
+ updated_at: z.ZodNullable<z.ZodString>;
76
+ administration_id: z.ZodNullable<z.ZodNumber>;
77
+ }, z.core.$loose>>;
78
+ delivery_method: z.ZodOptional<z.ZodNullable<z.ZodString>>;
79
+ sepa_mandate_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
80
+ credit_card_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
81
+ tax_number_valid: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
82
+ administration_id: z.ZodNullable<z.ZodNumber>;
83
+ sepa_mandate_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
84
+ credit_card_number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
85
+ sales_invoices_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
86
+ sepa_sequence_type: z.ZodNullable<z.ZodString>;
87
+ si_identifier_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
88
+ chamber_of_commerce: z.ZodOptional<z.ZodNullable<z.ZodString>>;
89
+ invoice_workflow_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
90
+ max_transfer_amount: z.ZodOptional<z.ZodNullable<z.ZodString>>;
91
+ estimate_workflow_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
92
+ credit_card_reference: z.ZodOptional<z.ZodNullable<z.ZodString>>;
93
+ send_invoices_to_email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
94
+ sepa_iban_account_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
95
+ send_estimates_to_email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
96
+ tax_number_validated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
97
+ moneybird_payments_mandate: z.ZodNullable<z.ZodBoolean>;
98
+ send_invoices_to_attention: z.ZodOptional<z.ZodNullable<z.ZodString>>;
99
+ send_estimates_to_attention: z.ZodOptional<z.ZodNullable<z.ZodString>>;
100
+ }, z.core.$loose>;
101
+ declare const moneybirdGetContactByCustomerId: import("@keystrokehq/action").WorkflowActionDefinition<{
102
+ customer_id: string;
103
+ administration_id: number;
104
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
105
  //#endregion
8
106
  export { moneybirdGetContactByCustomerId };
9
107
  //# 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":";;;cAIa,oCAAA,EAAsC,CAAA,CAAE,UAGuB;AAAA,cA6C/D,qCAAA,EAAuC,CAAA,CAAE,UAoDpD;AAAA,cAEW,+BAAA,gCAA+B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-contact-by-customer-id.d.mts","names":[],"sources":["../../src/actions/get-contact-by-customer-id.ts"],"mappings":";;;cAIa,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;cAgDpC,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAsDrC,+BAAA,gCAA+B,wBAAA"}
@@ -6,79 +6,79 @@ const MoneybirdGetContactByCustomerIdInput = z.object({
6
6
  administration_id: z.number().int().describe("Numeric administration ID, used in the URL path.")
7
7
  }).describe("Request parameters for fetching a contact by its customer_id.");
8
8
  const MoneybirdGetContactByCustomerId_NoteSchema = z.object({
9
- id: z.string().describe("ID of the note"),
9
+ id: z.string().describe("ID of the note").nullable(),
10
10
  data: z.record(z.string(), z.unknown()).describe("Additional data for the note"),
11
- note: z.string().describe("Text content of the note"),
12
- todo: z.boolean().describe("Whether this note is a to-do item"),
13
- user_id: z.number().int().describe("User ID who created the note"),
14
- entity_id: z.string().describe("ID of the related entity (contact)"),
11
+ note: z.string().describe("Text content of the note").nullable(),
12
+ todo: z.boolean().describe("Whether this note is a to-do item").nullable(),
13
+ user_id: z.number().int().describe("User ID who created the note").nullable(),
14
+ entity_id: z.string().describe("ID of the related entity (contact)").nullable(),
15
15
  todo_type: z.string().describe("Type of to-do").nullable().optional(),
16
- created_at: z.string().describe("Creation timestamp of the note"),
17
- updated_at: z.string().describe("Last update timestamp of the note"),
16
+ created_at: z.string().describe("Creation timestamp of the note").nullable(),
17
+ updated_at: z.string().describe("Last update timestamp of the note").nullable(),
18
18
  assignee_id: z.string().describe("Assigned user ID if to-do").nullable().optional(),
19
- entity_type: z.string().describe("Type of the related entity"),
19
+ entity_type: z.string().describe("Type of the related entity").nullable(),
20
20
  completed_at: z.string().describe("Timestamp when to-do was completed").nullable().optional(),
21
21
  completed_by_id: z.string().describe("User ID who completed the to-do").nullable().optional(),
22
- administration_id: z.number().int().describe("Administration ID")
23
- });
22
+ administration_id: z.number().int().describe("Administration ID").nullable()
23
+ }).passthrough();
24
24
  const MoneybirdGetContactByCustomerId_EventSchema = z.object({
25
25
  data: z.record(z.string(), z.unknown()).describe("Additional data for the event"),
26
- action: z.string().describe("Action type of the event"),
27
- user_id: z.number().int().describe("User ID who triggered the event"),
28
- created_at: z.string().describe("Event creation timestamp"),
29
- updated_at: z.string().describe("Event update timestamp"),
26
+ action: z.string().describe("Action type of the event").nullable(),
27
+ user_id: z.number().int().describe("User ID who triggered the event").nullable(),
28
+ created_at: z.string().describe("Event creation timestamp").nullable(),
29
+ updated_at: z.string().describe("Event update timestamp").nullable(),
30
30
  link_entity_id: z.string().describe("Linked entity ID if any").nullable().optional(),
31
31
  link_entity_type: z.string().describe("Linked entity type if any").nullable().optional(),
32
- administration_id: z.number().int().describe("Administration ID")
33
- });
32
+ administration_id: z.number().int().describe("Administration ID").nullable()
33
+ }).passthrough();
34
34
  const MoneybirdGetContactByCustomerId_CustomFieldSchema = z.object({
35
- id: z.string().describe("Custom field ID"),
35
+ id: z.string().describe("Custom field ID").nullable(),
36
36
  name: z.string().describe("Name of the custom field").nullable().optional(),
37
37
  value: z.string().describe("Value of the custom field").nullable().optional()
38
- });
38
+ }).passthrough();
39
39
  const MoneybirdGetContactByCustomerId_ContactPersonSchema = z.object({
40
- id: z.string().describe("Contact person ID"),
40
+ id: z.string().describe("Contact person ID").nullable(),
41
41
  email: z.string().describe("Email of contact person").nullable().optional(),
42
42
  phone: z.string().describe("Phone number of contact person").nullable().optional(),
43
- version: z.number().int().describe("Version of contact person record"),
43
+ version: z.number().int().describe("Version of contact person record").nullable(),
44
44
  lastname: z.string().describe("Last name of contact person").nullable().optional(),
45
45
  firstname: z.string().describe("First name of contact person").nullable().optional(),
46
- contact_id: z.string().describe("Parent contact ID"),
47
- created_at: z.string().describe("Creation timestamp of contact person"),
46
+ contact_id: z.string().describe("Parent contact ID").nullable(),
47
+ created_at: z.string().describe("Creation timestamp of contact person").nullable(),
48
48
  department: z.string().describe("Department of contact person").nullable().optional(),
49
- updated_at: z.string().describe("Last update timestamp of contact person"),
50
- administration_id: z.number().int().describe("Administration ID")
51
- });
49
+ updated_at: z.string().describe("Last update timestamp of contact person").nullable(),
50
+ administration_id: z.number().int().describe("Administration ID").nullable()
51
+ }).passthrough();
52
52
  const moneybirdGetContactByCustomerId = action("MONEYBIRD_GET_CONTACT_BY_CUSTOMER_ID", {
53
53
  slug: "moneybird-get-contact-by-customer-id",
54
54
  name: "Get Contact by Customer ID",
55
55
  description: "Tool to retrieve full contact details by customer ID. Use when you need all fields of a contact given its customer_id.",
56
56
  input: MoneybirdGetContactByCustomerIdInput,
57
57
  output: z.object({
58
- id: z.string().describe("Contact ID"),
58
+ id: z.string().describe("Contact ID").nullable(),
59
59
  city: z.string().describe("City name").nullable().optional(),
60
60
  email: z.string().describe("Primary email address").nullable().optional(),
61
61
  notes: z.array(MoneybirdGetContactByCustomerId_NoteSchema).describe("List of notes associated with the contact"),
62
62
  phone: z.string().describe("Phone number").nullable().optional(),
63
63
  events: z.array(MoneybirdGetContactByCustomerId_EventSchema).describe("List of events related to the contact"),
64
64
  country: z.string().describe("Country code (ISO 3166-1 alpha-2)").nullable().optional(),
65
- version: z.number().int().describe("Version number of contact record"),
65
+ version: z.number().int().describe("Version number of contact record").nullable(),
66
66
  zipcode: z.string().describe("Postal code").nullable().optional(),
67
67
  address1: z.string().describe("Address line 1").nullable().optional(),
68
68
  address2: z.string().describe("Address line 2").nullable().optional(),
69
- archived: z.boolean().describe("Whether the contact is archived"),
69
+ archived: z.boolean().describe("Whether the contact is archived").nullable(),
70
70
  lastname: z.string().describe("Last name of the contact").nullable().optional(),
71
71
  sepa_bic: z.string().describe("SEPA BIC code").nullable().optional(),
72
72
  attention: z.string().describe("Billing attention line").nullable().optional(),
73
- email_ubl: z.boolean().describe("Whether to send UBL invoices"),
73
+ email_ubl: z.boolean().describe("Whether to send UBL invoices").nullable(),
74
74
  firstname: z.string().describe("First name of the contact").nullable().optional(),
75
75
  sepa_iban: z.string().describe("SEPA IBAN number").nullable().optional(),
76
- created_at: z.string().describe("Creation timestamp of contact"),
77
- is_trusted: z.boolean().describe("Whether the contact is trusted"),
76
+ created_at: z.string().describe("Creation timestamp of contact").nullable(),
77
+ is_trusted: z.boolean().describe("Whether the contact is trusted").nullable(),
78
78
  tax_number: z.string().describe("Tax or VAT number").nullable().optional(),
79
- updated_at: z.string().describe("Last update timestamp of contact"),
80
- customer_id: z.string().describe("Customer identifier of the contact"),
81
- sepa_active: z.boolean().describe("SEPA direct debit active"),
79
+ updated_at: z.string().describe("Last update timestamp of contact").nullable(),
80
+ customer_id: z.string().describe("Customer identifier of the contact").nullable(),
81
+ sepa_active: z.boolean().describe("SEPA direct debit active").nullable(),
82
82
  bank_account: z.string().describe("Bank account number of contact").nullable().optional(),
83
83
  company_name: z.string().describe("Company name of the contact").nullable().optional(),
84
84
  custom_fields: z.array(MoneybirdGetContactByCustomerId_CustomFieldSchema).describe("List of custom fields and values"),
@@ -88,11 +88,11 @@ const moneybirdGetContactByCustomerId = action("MONEYBIRD_GET_CONTACT_BY_CUSTOME
88
88
  sepa_mandate_id: z.string().describe("SEPA mandate ID").nullable().optional(),
89
89
  credit_card_type: z.string().describe("Type of credit card").nullable().optional(),
90
90
  tax_number_valid: z.boolean().describe("Whether tax number is valid").nullable().optional(),
91
- administration_id: z.number().int().describe("Administration ID"),
91
+ administration_id: z.number().int().describe("Administration ID").nullable(),
92
92
  sepa_mandate_date: z.string().describe("SEPA mandate date").nullable().optional(),
93
93
  credit_card_number: z.string().describe("Credit card number token").nullable().optional(),
94
94
  sales_invoices_url: z.string().describe("URL for contact's sales invoices").nullable().optional(),
95
- sepa_sequence_type: z.string().describe("SEPA sequence type"),
95
+ sepa_sequence_type: z.string().describe("SEPA sequence type").nullable(),
96
96
  si_identifier_type: z.string().describe("SEPA identifier type").nullable().optional(),
97
97
  chamber_of_commerce: z.string().describe("Chamber of Commerce number").nullable().optional(),
98
98
  invoice_workflow_id: z.number().int().describe("Invoice workflow ID").nullable().optional(),
@@ -103,10 +103,10 @@ const moneybirdGetContactByCustomerId = action("MONEYBIRD_GET_CONTACT_BY_CUSTOME
103
103
  sepa_iban_account_name: z.string().describe("SEPA IBAN account name").nullable().optional(),
104
104
  send_estimates_to_email: z.string().describe("Email addresses for sending estimates").nullable().optional(),
105
105
  tax_number_validated_at: z.string().describe("Timestamp when tax number was validated").nullable().optional(),
106
- moneybird_payments_mandate: z.boolean().describe("Moneybird Payments mandate active"),
106
+ moneybird_payments_mandate: z.boolean().describe("Moneybird Payments mandate active").nullable(),
107
107
  send_invoices_to_attention: z.string().describe("Attention line for sending invoices").nullable().optional(),
108
108
  send_estimates_to_attention: z.string().describe("Attention line for sending estimates").nullable().optional()
109
- })
109
+ }).passthrough()
110
110
  });
111
111
  //#endregion
112
112
  export { moneybirdGetContactByCustomerId };