@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.
Files changed (181) 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 +1 -0
  4. package/dist/actions/add-note-to-contact.cjs.map +1 -1
  5. package/dist/actions/add-note-to-contact.d.cts +3 -21
  6. package/dist/actions/add-note-to-contact.d.cts.map +1 -1
  7. package/dist/actions/add-note-to-contact.d.mts +3 -21
  8. package/dist/actions/add-note-to-contact.d.mts.map +1 -1
  9. package/dist/actions/add-note-to-contact.mjs +1 -0
  10. package/dist/actions/add-note-to-contact.mjs.map +1 -1
  11. package/dist/actions/archive-contact.cjs +1 -0
  12. package/dist/actions/archive-contact.cjs.map +1 -1
  13. package/dist/actions/archive-contact.d.cts +3 -16
  14. package/dist/actions/archive-contact.d.cts.map +1 -1
  15. package/dist/actions/archive-contact.d.mts +3 -16
  16. package/dist/actions/archive-contact.d.mts.map +1 -1
  17. package/dist/actions/archive-contact.mjs +1 -0
  18. package/dist/actions/archive-contact.mjs.map +1 -1
  19. package/dist/actions/create-contact-person.cjs +1 -0
  20. package/dist/actions/create-contact-person.cjs.map +1 -1
  21. package/dist/actions/create-contact-person.d.cts +3 -23
  22. package/dist/actions/create-contact-person.d.cts.map +1 -1
  23. package/dist/actions/create-contact-person.d.mts +3 -23
  24. package/dist/actions/create-contact-person.d.mts.map +1 -1
  25. package/dist/actions/create-contact-person.mjs +1 -0
  26. package/dist/actions/create-contact-person.mjs.map +1 -1
  27. package/dist/actions/create-contact.cjs +1 -0
  28. package/dist/actions/create-contact.cjs.map +1 -1
  29. package/dist/actions/create-contact.d.cts +3 -43
  30. package/dist/actions/create-contact.d.cts.map +1 -1
  31. package/dist/actions/create-contact.d.mts +3 -43
  32. package/dist/actions/create-contact.d.mts.map +1 -1
  33. package/dist/actions/create-contact.mjs +1 -0
  34. package/dist/actions/create-contact.mjs.map +1 -1
  35. package/dist/actions/create-sales-invoice.cjs +1 -0
  36. package/dist/actions/create-sales-invoice.cjs.map +1 -1
  37. package/dist/actions/create-sales-invoice.d.cts +3 -49
  38. package/dist/actions/create-sales-invoice.d.cts.map +1 -1
  39. package/dist/actions/create-sales-invoice.d.mts +3 -49
  40. package/dist/actions/create-sales-invoice.d.mts.map +1 -1
  41. package/dist/actions/create-sales-invoice.mjs +1 -0
  42. package/dist/actions/create-sales-invoice.mjs.map +1 -1
  43. package/dist/actions/delete-contact-note.cjs +1 -0
  44. package/dist/actions/delete-contact-note.cjs.map +1 -1
  45. package/dist/actions/delete-contact-note.d.cts +3 -17
  46. package/dist/actions/delete-contact-note.d.cts.map +1 -1
  47. package/dist/actions/delete-contact-note.d.mts +3 -17
  48. package/dist/actions/delete-contact-note.d.mts.map +1 -1
  49. package/dist/actions/delete-contact-note.mjs +1 -0
  50. package/dist/actions/delete-contact-note.mjs.map +1 -1
  51. package/dist/actions/delete-contact-person.cjs +1 -0
  52. package/dist/actions/delete-contact-person.cjs.map +1 -1
  53. package/dist/actions/delete-contact-person.d.cts +3 -17
  54. package/dist/actions/delete-contact-person.d.cts.map +1 -1
  55. package/dist/actions/delete-contact-person.d.mts +3 -17
  56. package/dist/actions/delete-contact-person.d.mts.map +1 -1
  57. package/dist/actions/delete-contact-person.mjs +1 -0
  58. package/dist/actions/delete-contact-person.mjs.map +1 -1
  59. package/dist/actions/delete-contact.cjs +1 -0
  60. package/dist/actions/delete-contact.cjs.map +1 -1
  61. package/dist/actions/delete-contact.d.cts +3 -16
  62. package/dist/actions/delete-contact.d.cts.map +1 -1
  63. package/dist/actions/delete-contact.d.mts +3 -16
  64. package/dist/actions/delete-contact.d.mts.map +1 -1
  65. package/dist/actions/delete-contact.mjs +1 -0
  66. package/dist/actions/delete-contact.mjs.map +1 -1
  67. package/dist/actions/filter-contacts.cjs +1 -0
  68. package/dist/actions/filter-contacts.cjs.map +1 -1
  69. package/dist/actions/filter-contacts.d.cts +3 -21
  70. package/dist/actions/filter-contacts.d.cts.map +1 -1
  71. package/dist/actions/filter-contacts.d.mts +3 -21
  72. package/dist/actions/filter-contacts.d.mts.map +1 -1
  73. package/dist/actions/filter-contacts.mjs +1 -0
  74. package/dist/actions/filter-contacts.mjs.map +1 -1
  75. package/dist/actions/get-additional-charges.cjs +1 -0
  76. package/dist/actions/get-additional-charges.cjs.map +1 -1
  77. package/dist/actions/get-additional-charges.d.cts +3 -17
  78. package/dist/actions/get-additional-charges.d.cts.map +1 -1
  79. package/dist/actions/get-additional-charges.d.mts +3 -17
  80. package/dist/actions/get-additional-charges.d.mts.map +1 -1
  81. package/dist/actions/get-additional-charges.mjs +1 -0
  82. package/dist/actions/get-additional-charges.mjs.map +1 -1
  83. package/dist/actions/get-contact-by-customer-id.cjs +1 -0
  84. package/dist/actions/get-contact-by-customer-id.cjs.map +1 -1
  85. package/dist/actions/get-contact-by-customer-id.d.cts +3 -16
  86. package/dist/actions/get-contact-by-customer-id.d.cts.map +1 -1
  87. package/dist/actions/get-contact-by-customer-id.d.mts +3 -16
  88. package/dist/actions/get-contact-by-customer-id.d.mts.map +1 -1
  89. package/dist/actions/get-contact-by-customer-id.mjs +1 -0
  90. package/dist/actions/get-contact-by-customer-id.mjs.map +1 -1
  91. package/dist/actions/get-contact-person.cjs +1 -0
  92. package/dist/actions/get-contact-person.cjs.map +1 -1
  93. package/dist/actions/get-contact-person.d.cts +3 -17
  94. package/dist/actions/get-contact-person.d.cts.map +1 -1
  95. package/dist/actions/get-contact-person.d.mts +3 -17
  96. package/dist/actions/get-contact-person.d.mts.map +1 -1
  97. package/dist/actions/get-contact-person.mjs +1 -0
  98. package/dist/actions/get-contact-person.mjs.map +1 -1
  99. package/dist/actions/get-contact.cjs +1 -0
  100. package/dist/actions/get-contact.cjs.map +1 -1
  101. package/dist/actions/get-contact.d.cts +3 -17
  102. package/dist/actions/get-contact.d.cts.map +1 -1
  103. package/dist/actions/get-contact.d.mts +3 -17
  104. package/dist/actions/get-contact.d.mts.map +1 -1
  105. package/dist/actions/get-contact.mjs +1 -0
  106. package/dist/actions/get-contact.mjs.map +1 -1
  107. package/dist/actions/get-sales-invoice.cjs +1 -0
  108. package/dist/actions/get-sales-invoice.cjs.map +1 -1
  109. package/dist/actions/get-sales-invoice.d.cts +3 -16
  110. package/dist/actions/get-sales-invoice.d.cts.map +1 -1
  111. package/dist/actions/get-sales-invoice.d.mts +3 -16
  112. package/dist/actions/get-sales-invoice.d.mts.map +1 -1
  113. package/dist/actions/get-sales-invoice.mjs +1 -0
  114. package/dist/actions/get-sales-invoice.mjs.map +1 -1
  115. package/dist/actions/list-administrations.cjs +1 -0
  116. package/dist/actions/list-administrations.cjs.map +1 -1
  117. package/dist/actions/list-administrations.d.cts +3 -13
  118. package/dist/actions/list-administrations.d.cts.map +1 -1
  119. package/dist/actions/list-administrations.d.mts +3 -13
  120. package/dist/actions/list-administrations.d.mts.map +1 -1
  121. package/dist/actions/list-administrations.mjs +1 -0
  122. package/dist/actions/list-administrations.mjs.map +1 -1
  123. package/dist/actions/list-contacts-synchronization.cjs +1 -0
  124. package/dist/actions/list-contacts-synchronization.cjs.map +1 -1
  125. package/dist/actions/list-contacts-synchronization.d.cts +3 -17
  126. package/dist/actions/list-contacts-synchronization.d.cts.map +1 -1
  127. package/dist/actions/list-contacts-synchronization.d.mts +3 -17
  128. package/dist/actions/list-contacts-synchronization.d.mts.map +1 -1
  129. package/dist/actions/list-contacts-synchronization.mjs +1 -0
  130. package/dist/actions/list-contacts-synchronization.mjs.map +1 -1
  131. package/dist/actions/list-sales-invoices.cjs +1 -0
  132. package/dist/actions/list-sales-invoices.cjs.map +1 -1
  133. package/dist/actions/list-sales-invoices.d.cts +3 -18
  134. package/dist/actions/list-sales-invoices.d.cts.map +1 -1
  135. package/dist/actions/list-sales-invoices.d.mts +3 -18
  136. package/dist/actions/list-sales-invoices.d.mts.map +1 -1
  137. package/dist/actions/list-sales-invoices.mjs +1 -0
  138. package/dist/actions/list-sales-invoices.mjs.map +1 -1
  139. package/dist/actions/request-contact-payments-mandate-url.cjs +1 -0
  140. package/dist/actions/request-contact-payments-mandate-url.cjs.map +1 -1
  141. package/dist/actions/request-contact-payments-mandate-url.d.cts +3 -17
  142. package/dist/actions/request-contact-payments-mandate-url.d.cts.map +1 -1
  143. package/dist/actions/request-contact-payments-mandate-url.d.mts +3 -17
  144. package/dist/actions/request-contact-payments-mandate-url.d.mts.map +1 -1
  145. package/dist/actions/request-contact-payments-mandate-url.mjs +1 -0
  146. package/dist/actions/request-contact-payments-mandate-url.mjs.map +1 -1
  147. package/dist/actions/update-contact-person.cjs +1 -0
  148. package/dist/actions/update-contact-person.cjs.map +1 -1
  149. package/dist/actions/update-contact-person.d.cts +3 -22
  150. package/dist/actions/update-contact-person.d.cts.map +1 -1
  151. package/dist/actions/update-contact-person.d.mts +3 -22
  152. package/dist/actions/update-contact-person.d.mts.map +1 -1
  153. package/dist/actions/update-contact-person.mjs +1 -0
  154. package/dist/actions/update-contact-person.mjs.map +1 -1
  155. package/dist/actions/update-contact.cjs +1 -0
  156. package/dist/actions/update-contact.cjs.map +1 -1
  157. package/dist/actions/update-contact.d.cts +3 -17
  158. package/dist/actions/update-contact.d.cts.map +1 -1
  159. package/dist/actions/update-contact.d.mts +3 -17
  160. package/dist/actions/update-contact.d.mts.map +1 -1
  161. package/dist/actions/update-contact.mjs +1 -0
  162. package/dist/actions/update-contact.mjs.map +1 -1
  163. package/dist/actions/update-sales-invoice.cjs +1 -0
  164. package/dist/actions/update-sales-invoice.cjs.map +1 -1
  165. package/dist/actions/update-sales-invoice.d.cts +3 -56
  166. package/dist/actions/update-sales-invoice.d.cts.map +1 -1
  167. package/dist/actions/update-sales-invoice.d.mts +3 -56
  168. package/dist/actions/update-sales-invoice.d.mts.map +1 -1
  169. package/dist/actions/update-sales-invoice.mjs +1 -0
  170. package/dist/actions/update-sales-invoice.mjs.map +1 -1
  171. package/dist/app.cjs +2 -2
  172. package/dist/app.cjs.map +1 -1
  173. package/dist/app.d.cts +4 -6
  174. package/dist/app.d.cts.map +1 -1
  175. package/dist/app.d.mts +4 -6
  176. package/dist/app.d.mts.map +1 -1
  177. package/dist/app.mjs +0 -1
  178. package/dist/app.mjs.map +1 -1
  179. package/dist/index.d.cts +1 -1
  180. package/dist/index.d.mts +1 -1
  181. package/package.json +2 -2
@@ -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/request-contact-payments-mandate-url.d.ts
@@ -9,23 +11,7 @@ declare const MoneybirdRequestContactPaymentsMandateUrlInput: z.ZodObject<{
9
11
  declare const MoneybirdRequestContactPaymentsMandateUrlOutput: z.ZodObject<{
10
12
  url: z.ZodNullable<z.ZodString>;
11
13
  }, z.core.$loose>;
12
- declare const moneybirdRequestContactPaymentsMandateUrl: import("@keystrokehq/action").WorkflowActionDefinition<{
13
- contact_id: number;
14
- administration_id: number;
15
- identity_id?: number | undefined;
16
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"moneybird", z.ZodObject<{
17
- connectionId: z.ZodString;
18
- entityId: z.ZodString;
19
- instanceId: z.ZodString;
20
- }, z.core.$strip>, z.ZodObject<{
21
- accessToken: z.ZodString;
22
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"moneybird", z.ZodObject<{
23
- connectionId: z.ZodString;
24
- entityId: z.ZodString;
25
- instanceId: z.ZodString;
26
- }, z.core.$strip>, z.ZodObject<{
27
- accessToken: z.ZodString;
28
- }, z.core.$strip>>]>;
14
+ declare const moneybirdRequestContactPaymentsMandateUrl: AppAction<typeof MoneybirdRequestContactPaymentsMandateUrlInput, typeof MoneybirdRequestContactPaymentsMandateUrlOutput, typeof moneybird.credential>;
29
15
  //#endregion
30
16
  export { moneybirdRequestContactPaymentsMandateUrl };
31
17
  //# sourceMappingURL=request-contact-payments-mandate-url.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"request-contact-payments-mandate-url.d.cts","names":[],"sources":["../../src/actions/request-contact-payments-mandate-url.ts"],"mappings":";;;cAIa,8CAAA,EAA8C,CAAA,CAAA,SAAA;;;;;cAK9C,+CAAA,EAA+C,CAAA,CAAA,SAAA;;;cAI/C,yCAAA,gCAAyC,wBAAA"}
1
+ {"version":3,"file":"request-contact-payments-mandate-url.d.cts","names":[],"sources":["../../src/actions/request-contact-payments-mandate-url.ts"],"mappings":";;;;;cAMa,8CAAA,EAA8C,CAAA,CAAA,SAAA;;;;;cAK9C,+CAAA,EAA+C,CAAA,CAAA,SAAA;;;cAI/C,yCAAA,EAA2C,SAAA,QAC/C,8CAAA,SACA,+CAAA,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/request-contact-payments-mandate-url.d.ts
@@ -9,23 +11,7 @@ declare const MoneybirdRequestContactPaymentsMandateUrlInput: z.ZodObject<{
9
11
  declare const MoneybirdRequestContactPaymentsMandateUrlOutput: z.ZodObject<{
10
12
  url: z.ZodNullable<z.ZodString>;
11
13
  }, z.core.$loose>;
12
- declare const moneybirdRequestContactPaymentsMandateUrl: import("@keystrokehq/action").WorkflowActionDefinition<{
13
- contact_id: number;
14
- administration_id: number;
15
- identity_id?: number | undefined;
16
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"moneybird", z.ZodObject<{
17
- connectionId: z.ZodString;
18
- entityId: z.ZodString;
19
- instanceId: z.ZodString;
20
- }, z.core.$strip>, z.ZodObject<{
21
- accessToken: z.ZodString;
22
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"moneybird", z.ZodObject<{
23
- connectionId: z.ZodString;
24
- entityId: z.ZodString;
25
- instanceId: z.ZodString;
26
- }, z.core.$strip>, z.ZodObject<{
27
- accessToken: z.ZodString;
28
- }, z.core.$strip>>]>;
14
+ declare const moneybirdRequestContactPaymentsMandateUrl: AppAction<typeof MoneybirdRequestContactPaymentsMandateUrlInput, typeof MoneybirdRequestContactPaymentsMandateUrlOutput, typeof moneybird.credential>;
29
15
  //#endregion
30
16
  export { moneybirdRequestContactPaymentsMandateUrl };
31
17
  //# sourceMappingURL=request-contact-payments-mandate-url.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"request-contact-payments-mandate-url.d.mts","names":[],"sources":["../../src/actions/request-contact-payments-mandate-url.ts"],"mappings":";;;cAIa,8CAAA,EAA8C,CAAA,CAAA,SAAA;;;;;cAK9C,+CAAA,EAA+C,CAAA,CAAA,SAAA;;;cAI/C,yCAAA,gCAAyC,wBAAA"}
1
+ {"version":3,"file":"request-contact-payments-mandate-url.d.mts","names":[],"sources":["../../src/actions/request-contact-payments-mandate-url.ts"],"mappings":";;;;;cAMa,8CAAA,EAA8C,CAAA,CAAA,SAAA;;;;;cAK9C,+CAAA,EAA+C,CAAA,CAAA,SAAA;;;cAI/C,yCAAA,EAA2C,SAAA,QAC/C,8CAAA,SACA,+CAAA,SACA,SAAA,CAAU,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const moneybirdRequestContactPaymentsMandateUrl = action("MONEYBIRD_REQUEST_CONTACT_PAYMENTS_MANDATE_URL", {
@@ -1 +1 @@
1
- {"version":3,"file":"request-contact-payments-mandate-url.mjs","names":[],"sources":["../../src/actions/request-contact-payments-mandate-url.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoneybirdRequestContactPaymentsMandateUrlInput = z.object({\n contact_id: z.number().int().describe(\"ID of the contact for which to generate a payments mandate URL\"),\n identity_id: z.number().int().describe(\"Optional identity ID when multiple identities exist; must be a valid identity.\").optional(),\n administration_id: z.number().int().describe(\"Numeric administration ID, as part of the Moneybird URL path.\"),\n});\nexport const MoneybirdRequestContactPaymentsMandateUrlOutput = z.object({\n url: z.string().describe(\"One-time URL to set up a Moneybird Payments mandate. Valid for 14 days.\").nullable(),\n}).passthrough();\n\nexport const moneybirdRequestContactPaymentsMandateUrl = action(\"MONEYBIRD_REQUEST_CONTACT_PAYMENTS_MANDATE_URL\", {\n slug: \"moneybird-request-contact-payments-mandate-url\",\n name: \"Request Payments Mandate URL\",\n description: \"Tool to request a URL for setting up a Payments mandate. Use when you need to generate a direct-debit authorization link for a contact (valid for 14 days).\",\n input: MoneybirdRequestContactPaymentsMandateUrlInput,\n output: MoneybirdRequestContactPaymentsMandateUrlOutput,\n});\n"],"mappings":";;AAaA,MAAa,4CAA4C,OAAO,kDAAkD;CAChH,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAb4D,EAAE,OAAO;EACrE,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gEAAgE;EACtG,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS;EAClI,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+DAA+D;CAC9G,CASS;CACP,QAT6D,EAAE,OAAO,EACtE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS,EAC/G,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
1
+ {"version":3,"file":"request-contact-payments-mandate-url.mjs","names":[],"sources":["../../src/actions/request-contact-payments-mandate-url.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 MoneybirdRequestContactPaymentsMandateUrlInput = z.object({\n contact_id: z.number().int().describe(\"ID of the contact for which to generate a payments mandate URL\"),\n identity_id: z.number().int().describe(\"Optional identity ID when multiple identities exist; must be a valid identity.\").optional(),\n administration_id: z.number().int().describe(\"Numeric administration ID, as part of the Moneybird URL path.\"),\n});\nexport const MoneybirdRequestContactPaymentsMandateUrlOutput = z.object({\n url: z.string().describe(\"One-time URL to set up a Moneybird Payments mandate. Valid for 14 days.\").nullable(),\n}).passthrough();\n\nexport const moneybirdRequestContactPaymentsMandateUrl: AppAction<\n typeof MoneybirdRequestContactPaymentsMandateUrlInput,\n typeof MoneybirdRequestContactPaymentsMandateUrlOutput,\n typeof moneybird.credential\n> = action(\"MONEYBIRD_REQUEST_CONTACT_PAYMENTS_MANDATE_URL\", {\n slug: \"moneybird-request-contact-payments-mandate-url\",\n name: \"Request Payments Mandate URL\",\n description: \"Tool to request a URL for setting up a Payments mandate. Use when you need to generate a direct-debit authorization link for a contact (valid for 14 days).\",\n input: MoneybirdRequestContactPaymentsMandateUrlInput,\n output: MoneybirdRequestContactPaymentsMandateUrlOutput,\n});\n"],"mappings":";;;AAeA,MAAa,4CAIT,OAAO,kDAAkD;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAjB4D,EAAE,OAAO;EACrE,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gEAAgE;EACtG,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS;EAClI,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+DAA+D;CAC9G,CAaS;CACP,QAb6D,EAAE,OAAO,EACtE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS,EAC/G,CAAC,CAAC,CAAC,YAWO;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/update-contact-person.ts
@@ -1 +1 @@
1
- {"version":3,"file":"update-contact-person.cjs","names":["z","action"],"sources":["../../src/actions/update-contact-person.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoneybirdUpdateContactPersonInput = z.object({\n email: z.string().describe(\"Email address of the contact person.\").optional(),\n phone: z.string().describe(\"Phone number of the contact person.\").optional(),\n lastname: z.string().describe(\"Last name of the contact person.\").optional(),\n firstname: z.string().describe(\"First name of the contact person.\").optional(),\n contact_id: z.string().describe(\"ID of the contact containing the person to update.\"),\n department: z.string().describe(\"Department of the contact person.\").optional(),\n administration_id: z.number().int().describe(\"Numeric administration ID, part of the Moneybird URL path.\"),\n contact_person_id: z.string().describe(\"ID of the contact person to update.\"),\n}).describe(\"Request model for updating a contact person.\");\nexport const MoneybirdUpdateContactPersonOutput = z.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.\").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 contact_id: z.string().describe(\"ID of the associated contact.\").nullable(),\n created_at: z.string().describe(\"Timestamp when the contact person was created.\").nullable(),\n department: z.string().describe(\"Department of the contact person.\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when the contact person was last updated.\").nullable(),\n administration_id: z.number().int().describe(\"Administration ID the contact person belongs to.\").nullable(),\n}).passthrough().describe(\"Response model for updated contact person details.\");\n\nexport const moneybirdUpdateContactPerson = action(\"MONEYBIRD_UPDATE_CONTACT_PERSON\", {\n slug: \"moneybird-update-contact-person\",\n name: \"Update Contact Person\",\n description: \"Tool to update a contact person. Use after selecting a specific contact person when you need to change their details.\",\n input: MoneybirdUpdateContactPersonInput,\n output: MoneybirdUpdateContactPersonOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAoCA,IAAAA,EAAE,OAAO;CACxD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC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YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CAC3F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CAChG,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;AAC5G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAAoD;AAE9E,MAAa,+BAA+BC,eAAAA,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"update-contact-person.cjs","names":["z","action"],"sources":["../../src/actions/update-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 MoneybirdUpdateContactPersonInput = z.object({\n email: z.string().describe(\"Email address of the contact person.\").optional(),\n phone: z.string().describe(\"Phone number of the contact person.\").optional(),\n lastname: z.string().describe(\"Last name of the contact person.\").optional(),\n firstname: z.string().describe(\"First name of the contact person.\").optional(),\n contact_id: z.string().describe(\"ID of the contact containing the person to update.\"),\n department: z.string().describe(\"Department of the contact person.\").optional(),\n administration_id: z.number().int().describe(\"Numeric administration ID, part of the Moneybird URL path.\"),\n contact_person_id: z.string().describe(\"ID of the contact person to update.\"),\n}).describe(\"Request model for updating a contact person.\");\nexport const MoneybirdUpdateContactPersonOutput = z.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.\").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 contact_id: z.string().describe(\"ID of the associated contact.\").nullable(),\n created_at: z.string().describe(\"Timestamp when the contact person was created.\").nullable(),\n department: z.string().describe(\"Department of the contact person.\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when the contact person was last updated.\").nullable(),\n administration_id: z.number().int().describe(\"Administration ID the contact person belongs to.\").nullable(),\n}).passthrough().describe(\"Response model for updated contact person details.\");\n\nexport const moneybirdUpdateContactPerson: AppAction<\n typeof MoneybirdUpdateContactPersonInput,\n typeof MoneybirdUpdateContactPersonOutput,\n typeof moneybird.credential\n> = action(\"MONEYBIRD_UPDATE_CONTACT_PERSON\", {\n slug: \"moneybird-update-contact-person\",\n name: \"Update Contact Person\",\n description: \"Tool to update a contact person. Use after selecting a specific contact person when you need to change their details.\",\n input: MoneybirdUpdateContactPersonInput,\n output: MoneybirdUpdateContactPersonOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,oCAAoCA,IAAAA,EAAE,OAAO;CACxD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC5E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC3E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAC3E,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAC7E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD;CACpF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAC9E,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4DAA4D;CACzG,mBAAmBA,IAAAA,EAAE,OAAO,CAA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,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/update-contact-person.d.ts
@@ -24,28 +26,7 @@ declare const MoneybirdUpdateContactPersonOutput: z.ZodObject<{
24
26
  updated_at: z.ZodNullable<z.ZodString>;
25
27
  administration_id: z.ZodNullable<z.ZodNumber>;
26
28
  }, z.core.$loose>;
27
- declare const moneybirdUpdateContactPerson: import("@keystrokehq/action").WorkflowActionDefinition<{
28
- contact_id: string;
29
- administration_id: number;
30
- contact_person_id: string;
31
- email?: string | undefined;
32
- phone?: string | undefined;
33
- lastname?: string | undefined;
34
- firstname?: string | undefined;
35
- department?: string | undefined;
36
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"moneybird", z.ZodObject<{
37
- connectionId: z.ZodString;
38
- entityId: z.ZodString;
39
- instanceId: z.ZodString;
40
- }, z.core.$strip>, z.ZodObject<{
41
- accessToken: z.ZodString;
42
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"moneybird", z.ZodObject<{
43
- connectionId: z.ZodString;
44
- entityId: z.ZodString;
45
- instanceId: z.ZodString;
46
- }, z.core.$strip>, z.ZodObject<{
47
- accessToken: z.ZodString;
48
- }, z.core.$strip>>]>;
29
+ declare const moneybirdUpdateContactPerson: AppAction<typeof MoneybirdUpdateContactPersonInput, typeof MoneybirdUpdateContactPersonOutput, typeof moneybird.credential>;
49
30
  //#endregion
50
31
  export { moneybirdUpdateContactPerson };
51
32
  //# sourceMappingURL=update-contact-person.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"update-contact-person.d.cts","names":[],"sources":["../../src/actions/update-contact-person.ts"],"mappings":";;;cAIa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;cAUjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAclC,4BAAA,gCAA4B,wBAAA"}
1
+ {"version":3,"file":"update-contact-person.d.cts","names":[],"sources":["../../src/actions/update-contact-person.ts"],"mappings":";;;;;cAMa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;cAUjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAclC,4BAAA,EAA8B,SAAA,QAClC,iCAAA,SACA,kCAAA,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/update-contact-person.d.ts
@@ -24,28 +26,7 @@ declare const MoneybirdUpdateContactPersonOutput: z.ZodObject<{
24
26
  updated_at: z.ZodNullable<z.ZodString>;
25
27
  administration_id: z.ZodNullable<z.ZodNumber>;
26
28
  }, z.core.$loose>;
27
- declare const moneybirdUpdateContactPerson: import("@keystrokehq/action").WorkflowActionDefinition<{
28
- contact_id: string;
29
- administration_id: number;
30
- contact_person_id: string;
31
- email?: string | undefined;
32
- phone?: string | undefined;
33
- lastname?: string | undefined;
34
- firstname?: string | undefined;
35
- department?: string | undefined;
36
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"moneybird", z.ZodObject<{
37
- connectionId: z.ZodString;
38
- entityId: z.ZodString;
39
- instanceId: z.ZodString;
40
- }, z.core.$strip>, z.ZodObject<{
41
- accessToken: z.ZodString;
42
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"moneybird", z.ZodObject<{
43
- connectionId: z.ZodString;
44
- entityId: z.ZodString;
45
- instanceId: z.ZodString;
46
- }, z.core.$strip>, z.ZodObject<{
47
- accessToken: z.ZodString;
48
- }, z.core.$strip>>]>;
29
+ declare const moneybirdUpdateContactPerson: AppAction<typeof MoneybirdUpdateContactPersonInput, typeof MoneybirdUpdateContactPersonOutput, typeof moneybird.credential>;
49
30
  //#endregion
50
31
  export { moneybirdUpdateContactPerson };
51
32
  //# sourceMappingURL=update-contact-person.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"update-contact-person.d.mts","names":[],"sources":["../../src/actions/update-contact-person.ts"],"mappings":";;;cAIa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;cAUjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAclC,4BAAA,gCAA4B,wBAAA"}
1
+ {"version":3,"file":"update-contact-person.d.mts","names":[],"sources":["../../src/actions/update-contact-person.ts"],"mappings":";;;;;cAMa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;cAUjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAclC,4BAAA,EAA8B,SAAA,QAClC,iCAAA,SACA,kCAAA,SACA,SAAA,CAAU,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const moneybirdUpdateContactPerson = action("MONEYBIRD_UPDATE_CONTACT_PERSON", {
@@ -1 +1 @@
1
- {"version":3,"file":"update-contact-person.mjs","names":[],"sources":["../../src/actions/update-contact-person.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoneybirdUpdateContactPersonInput = z.object({\n email: z.string().describe(\"Email address of the contact person.\").optional(),\n phone: z.string().describe(\"Phone number of the contact person.\").optional(),\n lastname: z.string().describe(\"Last name of the contact person.\").optional(),\n firstname: z.string().describe(\"First name of the contact person.\").optional(),\n contact_id: z.string().describe(\"ID of the contact containing the person to update.\"),\n department: z.string().describe(\"Department of the contact person.\").optional(),\n administration_id: z.number().int().describe(\"Numeric administration ID, part of the Moneybird URL path.\"),\n contact_person_id: z.string().describe(\"ID of the contact person to update.\"),\n}).describe(\"Request model for updating a contact person.\");\nexport const MoneybirdUpdateContactPersonOutput = z.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.\").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 contact_id: z.string().describe(\"ID of the associated contact.\").nullable(),\n created_at: z.string().describe(\"Timestamp when the contact person was created.\").nullable(),\n department: z.string().describe(\"Department of the contact person.\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when the contact person was last updated.\").nullable(),\n administration_id: z.number().int().describe(\"Administration ID the contact person belongs to.\").nullable(),\n}).passthrough().describe(\"Response model for updated contact person details.\");\n\nexport const moneybirdUpdateContactPerson = action(\"MONEYBIRD_UPDATE_CONTACT_PERSON\", {\n slug: \"moneybird-update-contact-person\",\n name: \"Update Contact Person\",\n description: \"Tool to update a contact person. Use after selecting a specific contact person when you need to change their details.\",\n input: MoneybirdUpdateContactPersonInput,\n output: MoneybirdUpdateContactPersonOutput,\n});\n"],"mappings":";;AA4BA,MAAa,+BAA+B,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA5B+C,EAAE,OAAO;EACxD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;EAC5E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EAC3E,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;EAC3E,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EAC7E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD;EACpF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EAC9E,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4DAA4D;EACzG,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;CAC9E,CAAC,CAAC,CAAC,SAAS,8CAmBH;CACP,QAnBgD,EAAE,OAAO;EACzD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;EAC7E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtF,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;EACrF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;EAC3E,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EAC7E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;EAC1E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;EAC3F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;EAChG,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CAC5G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"update-contact-person.mjs","names":[],"sources":["../../src/actions/update-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 MoneybirdUpdateContactPersonInput = z.object({\n email: z.string().describe(\"Email address of the contact person.\").optional(),\n phone: z.string().describe(\"Phone number of the contact person.\").optional(),\n lastname: z.string().describe(\"Last name of the contact person.\").optional(),\n firstname: z.string().describe(\"First name of the contact person.\").optional(),\n contact_id: z.string().describe(\"ID of the contact containing the person to update.\"),\n department: z.string().describe(\"Department of the contact person.\").optional(),\n administration_id: z.number().int().describe(\"Numeric administration ID, part of the Moneybird URL path.\"),\n contact_person_id: z.string().describe(\"ID of the contact person to update.\"),\n}).describe(\"Request model for updating a contact person.\");\nexport const MoneybirdUpdateContactPersonOutput = z.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.\").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 contact_id: z.string().describe(\"ID of the associated contact.\").nullable(),\n created_at: z.string().describe(\"Timestamp when the contact person was created.\").nullable(),\n department: z.string().describe(\"Department of the contact person.\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when the contact person was last updated.\").nullable(),\n administration_id: z.number().int().describe(\"Administration ID the contact person belongs to.\").nullable(),\n}).passthrough().describe(\"Response model for updated contact person details.\");\n\nexport const moneybirdUpdateContactPerson: AppAction<\n typeof MoneybirdUpdateContactPersonInput,\n typeof MoneybirdUpdateContactPersonOutput,\n typeof moneybird.credential\n> = action(\"MONEYBIRD_UPDATE_CONTACT_PERSON\", {\n slug: \"moneybird-update-contact-person\",\n name: \"Update Contact Person\",\n description: \"Tool to update a contact person. Use after selecting a specific contact person when you need to change their details.\",\n input: MoneybirdUpdateContactPersonInput,\n output: MoneybirdUpdateContactPersonOutput,\n});\n"],"mappings":";;;AA8BA,MAAa,+BAIT,OAAO,mCAAmC;CAC5C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhC+C,EAAE,OAAO;EACxD,OAAO,EAAE,OA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,CAAC,SAAS,CAAC,CAAC,SAAS;EACzF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;EAChG,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CAC5G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/update-contact.ts
@@ -1 +1 @@
1
- {"version":3,"file":"update-contact.cjs","names":["z","action"],"sources":["../../src/actions/update-contact.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoneybirdUpdateContactInput = z.object({\n contact: z.record(z.string(), z.unknown()).describe(\"Key-value map of contact fields to update\"),\n contact_id: z.string().describe(\"ID of the contact to update\"),\n administration_id: z.number().int().describe(\"Numeric administration ID, part of the Moneybird URL path\"),\n}).describe(\"Request parameters for updating a contact.\");\nexport const MoneybirdUpdateContactOutput = z.object({\n contact: z.record(z.string(), z.unknown()).describe(\"Updated contact object returned by Moneybird\"),\n}).passthrough();\n\nexport const moneybirdUpdateContact = action(\"MONEYBIRD_UPDATE_CONTACT\", {\n slug: \"moneybird-update-contact\",\n name: \"Update Contact\",\n description: \"Tool to update a contact. Use when you need to modify existing contact details by ID. Only provided fields will be changed.\",\n input: MoneybirdUpdateContactInput,\n output: MoneybirdUpdateContactOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,SAASA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,2CAA2C;CAC/F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;CAC7D,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2DAA2D;AAC1G,CAAC,CAAC,CAAC,SAAS,4CAA4C;AACxD,MAAa,+BAA+BA,IAAAA,EAAE,OAAO,EACnD,SAASA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8CAA8C,EACpG,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,yBAAyBC,eAAAA,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"update-contact.cjs","names":["z","action"],"sources":["../../src/actions/update-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 MoneybirdUpdateContactInput = z.object({\n contact: z.record(z.string(), z.unknown()).describe(\"Key-value map of contact fields to update\"),\n contact_id: z.string().describe(\"ID of the contact to update\"),\n administration_id: z.number().int().describe(\"Numeric administration ID, part of the Moneybird URL path\"),\n}).describe(\"Request parameters for updating a contact.\");\nexport const MoneybirdUpdateContactOutput = z.object({\n contact: z.record(z.string(), z.unknown()).describe(\"Updated contact object returned by Moneybird\"),\n}).passthrough();\n\nexport const moneybirdUpdateContact: AppAction<\n typeof MoneybirdUpdateContactInput,\n typeof MoneybirdUpdateContactOutput,\n typeof moneybird.credential\n> = action(\"MONEYBIRD_UPDATE_CONTACT\", {\n slug: \"moneybird-update-contact\",\n name: \"Update Contact\",\n description: \"Tool to update a contact. Use when you need to modify existing contact details by ID. Only provided fields will be changed.\",\n input: MoneybirdUpdateContactInput,\n output: MoneybirdUpdateContactOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,SAASA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,2CAA2C;CAC/F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;CAC7D,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2DAA2D;AAC1G,CAAC,CAAC,CAAC,SAAS,4CAA4C;AACxD,MAAa,+BAA+BA,IAAAA,EAAE,OAAO,EACnD,SAASA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8CAA8C,EACpG,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,yBAITC,eAAAA,OAAO,4BAA4B;CACrC,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/update-contact.d.ts
@@ -9,23 +11,7 @@ declare const MoneybirdUpdateContactInput: z.ZodObject<{
9
11
  declare const MoneybirdUpdateContactOutput: z.ZodObject<{
10
12
  contact: z.ZodRecord<z.ZodString, z.ZodUnknown>;
11
13
  }, z.core.$loose>;
12
- declare const moneybirdUpdateContact: import("@keystrokehq/action").WorkflowActionDefinition<{
13
- contact: Record<string, unknown>;
14
- contact_id: string;
15
- administration_id: number;
16
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"moneybird", z.ZodObject<{
17
- connectionId: z.ZodString;
18
- entityId: z.ZodString;
19
- instanceId: z.ZodString;
20
- }, z.core.$strip>, z.ZodObject<{
21
- accessToken: z.ZodString;
22
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"moneybird", z.ZodObject<{
23
- connectionId: z.ZodString;
24
- entityId: z.ZodString;
25
- instanceId: z.ZodString;
26
- }, z.core.$strip>, z.ZodObject<{
27
- accessToken: z.ZodString;
28
- }, z.core.$strip>>]>;
14
+ declare const moneybirdUpdateContact: AppAction<typeof MoneybirdUpdateContactInput, typeof MoneybirdUpdateContactOutput, typeof moneybird.credential>;
29
15
  //#endregion
30
16
  export { moneybirdUpdateContact };
31
17
  //# sourceMappingURL=update-contact.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"update-contact.d.cts","names":[],"sources":["../../src/actions/update-contact.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;cAK3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAI5B,sBAAA,gCAAsB,wBAAA"}
1
+ {"version":3,"file":"update-contact.d.cts","names":[],"sources":["../../src/actions/update-contact.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;cAK3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAI5B,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,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/update-contact.d.ts
@@ -9,23 +11,7 @@ declare const MoneybirdUpdateContactInput: z.ZodObject<{
9
11
  declare const MoneybirdUpdateContactOutput: z.ZodObject<{
10
12
  contact: z.ZodRecord<z.ZodString, z.ZodUnknown>;
11
13
  }, z.core.$loose>;
12
- declare const moneybirdUpdateContact: import("@keystrokehq/action").WorkflowActionDefinition<{
13
- contact: Record<string, unknown>;
14
- contact_id: string;
15
- administration_id: number;
16
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"moneybird", z.ZodObject<{
17
- connectionId: z.ZodString;
18
- entityId: z.ZodString;
19
- instanceId: z.ZodString;
20
- }, z.core.$strip>, z.ZodObject<{
21
- accessToken: z.ZodString;
22
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"moneybird", z.ZodObject<{
23
- connectionId: z.ZodString;
24
- entityId: z.ZodString;
25
- instanceId: z.ZodString;
26
- }, z.core.$strip>, z.ZodObject<{
27
- accessToken: z.ZodString;
28
- }, z.core.$strip>>]>;
14
+ declare const moneybirdUpdateContact: AppAction<typeof MoneybirdUpdateContactInput, typeof MoneybirdUpdateContactOutput, typeof moneybird.credential>;
29
15
  //#endregion
30
16
  export { moneybirdUpdateContact };
31
17
  //# sourceMappingURL=update-contact.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"update-contact.d.mts","names":[],"sources":["../../src/actions/update-contact.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;cAK3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAI5B,sBAAA,gCAAsB,wBAAA"}
1
+ {"version":3,"file":"update-contact.d.mts","names":[],"sources":["../../src/actions/update-contact.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;cAK3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAI5B,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,SACA,SAAA,CAAU,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const moneybirdUpdateContact = action("MONEYBIRD_UPDATE_CONTACT", {
@@ -1 +1 @@
1
- {"version":3,"file":"update-contact.mjs","names":[],"sources":["../../src/actions/update-contact.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoneybirdUpdateContactInput = z.object({\n contact: z.record(z.string(), z.unknown()).describe(\"Key-value map of contact fields to update\"),\n contact_id: z.string().describe(\"ID of the contact to update\"),\n administration_id: z.number().int().describe(\"Numeric administration ID, part of the Moneybird URL path\"),\n}).describe(\"Request parameters for updating a contact.\");\nexport const MoneybirdUpdateContactOutput = z.object({\n contact: z.record(z.string(), z.unknown()).describe(\"Updated contact object returned by Moneybird\"),\n}).passthrough();\n\nexport const moneybirdUpdateContact = action(\"MONEYBIRD_UPDATE_CONTACT\", {\n slug: \"moneybird-update-contact\",\n name: \"Update Contact\",\n description: \"Tool to update a contact. Use when you need to modify existing contact details by ID. Only provided fields will be changed.\",\n input: MoneybirdUpdateContactInput,\n output: MoneybirdUpdateContactOutput,\n});\n"],"mappings":";;AAaA,MAAa,yBAAyB,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAbyC,EAAE,OAAO;EAClD,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,2CAA2C;EAC/F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;EAC7D,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2DAA2D;CAC1G,CAAC,CAAC,CAAC,SAAS,4CASH;CACP,QAT0C,EAAE,OAAO,EACnD,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8CAA8C,EACpG,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
1
+ {"version":3,"file":"update-contact.mjs","names":[],"sources":["../../src/actions/update-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 MoneybirdUpdateContactInput = z.object({\n contact: z.record(z.string(), z.unknown()).describe(\"Key-value map of contact fields to update\"),\n contact_id: z.string().describe(\"ID of the contact to update\"),\n administration_id: z.number().int().describe(\"Numeric administration ID, part of the Moneybird URL path\"),\n}).describe(\"Request parameters for updating a contact.\");\nexport const MoneybirdUpdateContactOutput = z.object({\n contact: z.record(z.string(), z.unknown()).describe(\"Updated contact object returned by Moneybird\"),\n}).passthrough();\n\nexport const moneybirdUpdateContact: AppAction<\n typeof MoneybirdUpdateContactInput,\n typeof MoneybirdUpdateContactOutput,\n typeof moneybird.credential\n> = action(\"MONEYBIRD_UPDATE_CONTACT\", {\n slug: \"moneybird-update-contact\",\n name: \"Update Contact\",\n description: \"Tool to update a contact. Use when you need to modify existing contact details by ID. Only provided fields will be changed.\",\n input: MoneybirdUpdateContactInput,\n output: MoneybirdUpdateContactOutput,\n});\n"],"mappings":";;;AAeA,MAAa,yBAIT,OAAO,4BAA4B;CACrC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAjByC,EAAE,OAAO;EAClD,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,2CAA2C;EAC/F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;EAC7D,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2DAA2D;CAC1G,CAAC,CAAC,CAAC,SAAS,4CAaH;CACP,QAb0C,EAAE,OAAO,EACnD,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8CAA8C,EACpG,CAAC,CAAC,CAAC,YAWO;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/update-sales-invoice.ts
@@ -1 +1 @@
1
- {"version":3,"file":"update-sales-invoice.cjs","names":["z","action"],"sources":["../../src/actions/update-sales-invoice.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoneybirdUpdateSalesInvoiceInput = z.object({\n sales_invoice: z.object({\n currency: z.string().describe(\"ISO currency code, e.g., 'EUR'\").optional(),\n discount: z.number().describe(\"Discount percent (>= 0)\").optional(),\n reference: z.string().describe(\"Invoice reference string\").optional(),\n contact_id: z.number().int().describe(\"Valid contact ID to set\").optional(),\n workflow_id: z.number().int().describe(\"Workflow ID to apply\").optional(),\n invoice_date: z.string().describe(\"Invoice date (YYYY-MM-DD)\").optional(),\n time_entry_ids: z.array(z.number().int()).describe(\"List of time entry IDs to attach\").optional(),\n update_contact: z.boolean().describe(\"If true, sync contact fields from invoice\").optional(),\n contact_person_id: z.number().int().describe(\"Valid contact person ID to set\").optional(),\n document_style_id: z.number().int().describe(\"Document style ID to apply\").optional(),\n details_attributes: z.array(z.object({\n id: z.number().int().describe(\"Existing detail record ID\").optional(),\n price: z.number().describe(\"Unit price (decimal)\").optional(),\n amount: z.string().describe(\"Quantity string, e.g., '1 x'\").optional(),\n period: z.string().describe(\"Date range for the line, e.g., '20250101..20250131' or presets.\").optional(),\n _destroy: z.boolean().describe(\"Set true to delete this line item\").optional(),\n trip_ids: z.array(z.number().int()).describe(\"List of trip IDs\").optional(),\n row_order: z.number().int().describe(\"Order index of this line item\").optional(),\n product_id: z.number().int().describe(\"Valid product ID\").optional(),\n project_id: z.number().int().describe(\"Valid project ID\").optional(),\n description: z.string().describe(\"Line item description\").optional(),\n tax_rate_id: z.number().int().describe(\"Valid tax rate ID\").optional(),\n time_entry_ids: z.array(z.number().int()).describe(\"List of time entry IDs\").optional(),\n ledger_account_id: z.number().int().describe(\"Valid ledger account ID\").optional(),\n automated_tax_enabled: z.boolean().describe(\"Enable automated tax calculation for this line\").optional(),\n}).passthrough().describe(\"Attributes to partially update a single line item on the invoice.\\nProvide only fields to change. Use `destroy`=true to remove this line.\")).describe(\"List of line items to update\").optional(),\n first_due_interval: z.number().int().describe(\"Days until due date\").optional(),\n payment_conditions: z.string().describe(\"Custom payment conditions text\").optional(),\n invoice_sequence_id: z.string().describe(\"Invoice sequence ID to set\").optional(),\n prices_are_incl_tax: z.boolean().describe(\"True if prices include tax\").optional(),\n original_estimate_id: z.number().int().describe(\"Link to an existing estimate ID\").optional(),\n custom_fields_attributes: z.array(z.object({\n id: z.number().int().describe(\"Custom field ID\"),\n value: z.string().describe(\"Value for the custom field\"),\n}).passthrough().describe(\"Pair of custom field ID and its new value.\")).describe(\"List of custom fields to update\").optional(),\n remove_invoice_sequence_id: z.boolean().describe(\"Unset the sequence ID when true\").optional(),\n}).describe(\"Fields to update on the invoice\"),\n sales_invoice_id: z.string().describe(\"ID of the sales invoice to update\"),\n administration_id: z.number().int().describe(\"Administration ID in Moneybird URL path\"),\n});\nexport const MoneybirdUpdateSalesInvoiceOutput = z.object({\n sales_invoice: z.record(z.string(), z.unknown()).describe(\"The updated invoice object returned by Moneybird\"),\n}).passthrough();\n\nexport const moneybirdUpdateSalesInvoice = action(\"MONEYBIRD_UPDATE_SALES_INVOICE\", {\n slug: \"moneybird-update-sales-invoice\",\n name: \"Update Sales Invoice\",\n description: \"Tool to update an existing sales invoice by ID. Use when modifying invoice header or line items.\",\n input: MoneybirdUpdateSalesInvoiceInput,\n output: MoneybirdUpdateSalesInvoiceOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,eAAeA,IAAAA,EAAE,OAAO;EACxB,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;EACzE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;EAClE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;EACpE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;EAC1E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;EACxE,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;EACxE,gBAAgBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,kCAAkC,C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,CAAC,CAAC,SAAS;EAC5H,4BAA4BA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC/F,CAAC,CAAC,CAAC,SAAS,iCAAiC;CAC3C,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;CACzE,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC;AACxF,CAAC;AACD,MAAa,oCAAoCA,IAAAA,EAAE,OAAO,EACxD,eAAeA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,kDAAkD,EAC9G,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,8BAA8BC,eAAAA,OAAO,kCAAkC;CAClF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"update-sales-invoice.cjs","names":["z","action"],"sources":["../../src/actions/update-sales-invoice.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 MoneybirdUpdateSalesInvoiceInput = z.object({\n sales_invoice: z.object({\n currency: z.string().describe(\"ISO currency code, e.g., 'EUR'\").optional(),\n discount: z.number().describe(\"Discount percent (>= 0)\").optional(),\n reference: z.string().describe(\"Invoice reference string\").optional(),\n contact_id: z.number().int().describe(\"Valid contact ID to set\").optional(),\n workflow_id: z.number().int().describe(\"Workflow ID to apply\").optional(),\n invoice_date: z.string().describe(\"Invoice date (YYYY-MM-DD)\").optional(),\n time_entry_ids: z.array(z.number().int()).describe(\"List of time entry IDs to attach\").optional(),\n update_contact: z.boolean().describe(\"If true, sync contact fields from invoice\").optional(),\n contact_person_id: z.number().int().describe(\"Valid contact person ID to set\").optional(),\n document_style_id: z.number().int().describe(\"Document style ID to apply\").optional(),\n details_attributes: z.array(z.object({\n id: z.number().int().describe(\"Existing detail record ID\").optional(),\n price: z.number().describe(\"Unit price (decimal)\").optional(),\n amount: z.string().describe(\"Quantity string, e.g., '1 x'\").optional(),\n period: z.string().describe(\"Date range for the line, e.g., '20250101..20250131' or presets.\").optional(),\n _destroy: z.boolean().describe(\"Set true to delete this line item\").optional(),\n trip_ids: z.array(z.number().int()).describe(\"List of trip IDs\").optional(),\n row_order: z.number().int().describe(\"Order index of this line item\").optional(),\n product_id: z.number().int().describe(\"Valid product ID\").optional(),\n project_id: z.number().int().describe(\"Valid project ID\").optional(),\n description: z.string().describe(\"Line item description\").optional(),\n tax_rate_id: z.number().int().describe(\"Valid tax rate ID\").optional(),\n time_entry_ids: z.array(z.number().int()).describe(\"List of time entry IDs\").optional(),\n ledger_account_id: z.number().int().describe(\"Valid ledger account ID\").optional(),\n automated_tax_enabled: z.boolean().describe(\"Enable automated tax calculation for this line\").optional(),\n}).passthrough().describe(\"Attributes to partially update a single line item on the invoice.\\nProvide only fields to change. Use `destroy`=true to remove this line.\")).describe(\"List of line items to update\").optional(),\n first_due_interval: z.number().int().describe(\"Days until due date\").optional(),\n payment_conditions: z.string().describe(\"Custom payment conditions text\").optional(),\n invoice_sequence_id: z.string().describe(\"Invoice sequence ID to set\").optional(),\n prices_are_incl_tax: z.boolean().describe(\"True if prices include tax\").optional(),\n original_estimate_id: z.number().int().describe(\"Link to an existing estimate ID\").optional(),\n custom_fields_attributes: z.array(z.object({\n id: z.number().int().describe(\"Custom field ID\"),\n value: z.string().describe(\"Value for the custom field\"),\n}).passthrough().describe(\"Pair of custom field ID and its new value.\")).describe(\"List of custom fields to update\").optional(),\n remove_invoice_sequence_id: z.boolean().describe(\"Unset the sequence ID when true\").optional(),\n}).describe(\"Fields to update on the invoice\"),\n sales_invoice_id: z.string().describe(\"ID of the sales invoice to update\"),\n administration_id: z.number().int().describe(\"Administration ID in Moneybird URL path\"),\n});\nexport const MoneybirdUpdateSalesInvoiceOutput = z.object({\n sales_invoice: z.record(z.string(), z.unknown()).describe(\"The updated invoice object returned by Moneybird\"),\n}).passthrough();\n\nexport const moneybirdUpdateSalesInvoice: AppAction<\n typeof MoneybirdUpdateSalesInvoiceInput,\n typeof MoneybirdUpdateSalesInvoiceOutput,\n typeof moneybird.credential\n> = action(\"MONEYBIRD_UPDATE_SALES_INVOICE\", {\n slug: \"moneybird-update-sales-invoice\",\n name: \"Update Sales Invoice\",\n description: \"Tool to update an existing sales invoice by ID. Use when modifying invoice header or line items.\",\n input: MoneybirdUpdateSalesInvoiceInput,\n output: MoneybirdUpdateSalesInvoiceOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,eAAeA,IAAAA,EAAE,OAAO;EACxB,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;EACzE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;EAClE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;EACpE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;EAC1E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;EACxE,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;EACxE,gBAAgBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;EAChG,gBAAgBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;EAC3F,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CA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AC3C,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;CACzE,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC;AACxF,CAAC;AACD,MAAa,oCAAoCA,IAAAA,EAAE,OAAO,EACxD,eAAeA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,kDAAkD,EAC9G,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,8BAITC,eAAAA,OAAO,kCAAkC;CAC3C,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/update-sales-invoice.d.ts
@@ -46,62 +48,7 @@ declare const MoneybirdUpdateSalesInvoiceInput: z.ZodObject<{
46
48
  declare const MoneybirdUpdateSalesInvoiceOutput: z.ZodObject<{
47
49
  sales_invoice: z.ZodRecord<z.ZodString, z.ZodUnknown>;
48
50
  }, z.core.$loose>;
49
- declare const moneybirdUpdateSalesInvoice: import("@keystrokehq/action").WorkflowActionDefinition<{
50
- sales_invoice: {
51
- currency?: string | undefined;
52
- discount?: number | undefined;
53
- reference?: string | undefined;
54
- contact_id?: number | undefined;
55
- workflow_id?: number | undefined;
56
- invoice_date?: string | undefined;
57
- time_entry_ids?: number[] | undefined;
58
- update_contact?: boolean | undefined;
59
- contact_person_id?: number | undefined;
60
- document_style_id?: number | undefined;
61
- details_attributes?: {
62
- [x: string]: unknown;
63
- id?: number | undefined;
64
- price?: number | undefined;
65
- amount?: string | undefined;
66
- period?: string | undefined;
67
- _destroy?: boolean | undefined;
68
- trip_ids?: number[] | undefined;
69
- row_order?: number | undefined;
70
- product_id?: number | undefined;
71
- project_id?: number | undefined;
72
- description?: string | undefined;
73
- tax_rate_id?: number | undefined;
74
- time_entry_ids?: number[] | undefined;
75
- ledger_account_id?: number | undefined;
76
- automated_tax_enabled?: boolean | undefined;
77
- }[] | undefined;
78
- first_due_interval?: number | undefined;
79
- payment_conditions?: string | undefined;
80
- invoice_sequence_id?: string | undefined;
81
- prices_are_incl_tax?: boolean | undefined;
82
- original_estimate_id?: number | undefined;
83
- custom_fields_attributes?: {
84
- [x: string]: unknown;
85
- id: number;
86
- value: string;
87
- }[] | undefined;
88
- remove_invoice_sequence_id?: boolean | undefined;
89
- };
90
- sales_invoice_id: string;
91
- administration_id: number;
92
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"moneybird", z.ZodObject<{
93
- connectionId: z.ZodString;
94
- entityId: z.ZodString;
95
- instanceId: z.ZodString;
96
- }, z.core.$strip>, z.ZodObject<{
97
- accessToken: z.ZodString;
98
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"moneybird", z.ZodObject<{
99
- connectionId: z.ZodString;
100
- entityId: z.ZodString;
101
- instanceId: z.ZodString;
102
- }, z.core.$strip>, z.ZodObject<{
103
- accessToken: z.ZodString;
104
- }, z.core.$strip>>]>;
51
+ declare const moneybirdUpdateSalesInvoice: AppAction<typeof MoneybirdUpdateSalesInvoiceInput, typeof MoneybirdUpdateSalesInvoiceOutput, typeof moneybird.credential>;
105
52
  //#endregion
106
53
  export { moneybirdUpdateSalesInvoice };
107
54
  //# sourceMappingURL=update-sales-invoice.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"update-sales-invoice.d.cts","names":[],"sources":["../../src/actions/update-sales-invoice.ts"],"mappings":";;;cAIa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA0ChC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;cAIjC,2BAAA,gCAA2B,wBAAA"}
1
+ {"version":3,"file":"update-sales-invoice.d.cts","names":[],"sources":["../../src/actions/update-sales-invoice.ts"],"mappings":";;;;;cAMa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA0ChC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;cAIjC,2BAAA,EAA6B,SAAA,QACjC,gCAAA,SACA,iCAAA,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/update-sales-invoice.d.ts
@@ -46,62 +48,7 @@ declare const MoneybirdUpdateSalesInvoiceInput: z.ZodObject<{
46
48
  declare const MoneybirdUpdateSalesInvoiceOutput: z.ZodObject<{
47
49
  sales_invoice: z.ZodRecord<z.ZodString, z.ZodUnknown>;
48
50
  }, z.core.$loose>;
49
- declare const moneybirdUpdateSalesInvoice: import("@keystrokehq/action").WorkflowActionDefinition<{
50
- sales_invoice: {
51
- currency?: string | undefined;
52
- discount?: number | undefined;
53
- reference?: string | undefined;
54
- contact_id?: number | undefined;
55
- workflow_id?: number | undefined;
56
- invoice_date?: string | undefined;
57
- time_entry_ids?: number[] | undefined;
58
- update_contact?: boolean | undefined;
59
- contact_person_id?: number | undefined;
60
- document_style_id?: number | undefined;
61
- details_attributes?: {
62
- [x: string]: unknown;
63
- id?: number | undefined;
64
- price?: number | undefined;
65
- amount?: string | undefined;
66
- period?: string | undefined;
67
- _destroy?: boolean | undefined;
68
- trip_ids?: number[] | undefined;
69
- row_order?: number | undefined;
70
- product_id?: number | undefined;
71
- project_id?: number | undefined;
72
- description?: string | undefined;
73
- tax_rate_id?: number | undefined;
74
- time_entry_ids?: number[] | undefined;
75
- ledger_account_id?: number | undefined;
76
- automated_tax_enabled?: boolean | undefined;
77
- }[] | undefined;
78
- first_due_interval?: number | undefined;
79
- payment_conditions?: string | undefined;
80
- invoice_sequence_id?: string | undefined;
81
- prices_are_incl_tax?: boolean | undefined;
82
- original_estimate_id?: number | undefined;
83
- custom_fields_attributes?: {
84
- [x: string]: unknown;
85
- id: number;
86
- value: string;
87
- }[] | undefined;
88
- remove_invoice_sequence_id?: boolean | undefined;
89
- };
90
- sales_invoice_id: string;
91
- administration_id: number;
92
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"moneybird", z.ZodObject<{
93
- connectionId: z.ZodString;
94
- entityId: z.ZodString;
95
- instanceId: z.ZodString;
96
- }, z.core.$strip>, z.ZodObject<{
97
- accessToken: z.ZodString;
98
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"moneybird", z.ZodObject<{
99
- connectionId: z.ZodString;
100
- entityId: z.ZodString;
101
- instanceId: z.ZodString;
102
- }, z.core.$strip>, z.ZodObject<{
103
- accessToken: z.ZodString;
104
- }, z.core.$strip>>]>;
51
+ declare const moneybirdUpdateSalesInvoice: AppAction<typeof MoneybirdUpdateSalesInvoiceInput, typeof MoneybirdUpdateSalesInvoiceOutput, typeof moneybird.credential>;
105
52
  //#endregion
106
53
  export { moneybirdUpdateSalesInvoice };
107
54
  //# sourceMappingURL=update-sales-invoice.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"update-sales-invoice.d.mts","names":[],"sources":["../../src/actions/update-sales-invoice.ts"],"mappings":";;;cAIa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA0ChC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;cAIjC,2BAAA,gCAA2B,wBAAA"}
1
+ {"version":3,"file":"update-sales-invoice.d.mts","names":[],"sources":["../../src/actions/update-sales-invoice.ts"],"mappings":";;;;;cAMa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA0ChC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;cAIjC,2BAAA,EAA6B,SAAA,QACjC,gCAAA,SACA,iCAAA,SACA,SAAA,CAAU,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const moneybirdUpdateSalesInvoice = action("MONEYBIRD_UPDATE_SALES_INVOICE", {
@@ -1 +1 @@
1
- {"version":3,"file":"update-sales-invoice.mjs","names":[],"sources":["../../src/actions/update-sales-invoice.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoneybirdUpdateSalesInvoiceInput = z.object({\n sales_invoice: z.object({\n currency: z.string().describe(\"ISO currency code, e.g., 'EUR'\").optional(),\n discount: z.number().describe(\"Discount percent (>= 0)\").optional(),\n reference: z.string().describe(\"Invoice reference string\").optional(),\n contact_id: z.number().int().describe(\"Valid contact ID to set\").optional(),\n workflow_id: z.number().int().describe(\"Workflow ID to apply\").optional(),\n invoice_date: z.string().describe(\"Invoice date (YYYY-MM-DD)\").optional(),\n time_entry_ids: z.array(z.number().int()).describe(\"List of time entry IDs to attach\").optional(),\n update_contact: z.boolean().describe(\"If true, sync contact fields from invoice\").optional(),\n contact_person_id: z.number().int().describe(\"Valid contact person ID to set\").optional(),\n document_style_id: z.number().int().describe(\"Document style ID to apply\").optional(),\n details_attributes: z.array(z.object({\n id: z.number().int().describe(\"Existing detail record ID\").optional(),\n price: z.number().describe(\"Unit price (decimal)\").optional(),\n amount: z.string().describe(\"Quantity string, e.g., '1 x'\").optional(),\n period: z.string().describe(\"Date range for the line, e.g., '20250101..20250131' or presets.\").optional(),\n _destroy: z.boolean().describe(\"Set true to delete this line item\").optional(),\n trip_ids: z.array(z.number().int()).describe(\"List of trip IDs\").optional(),\n row_order: z.number().int().describe(\"Order index of this line item\").optional(),\n product_id: z.number().int().describe(\"Valid product ID\").optional(),\n project_id: z.number().int().describe(\"Valid project ID\").optional(),\n description: z.string().describe(\"Line item description\").optional(),\n tax_rate_id: z.number().int().describe(\"Valid tax rate ID\").optional(),\n time_entry_ids: z.array(z.number().int()).describe(\"List of time entry IDs\").optional(),\n ledger_account_id: z.number().int().describe(\"Valid ledger account ID\").optional(),\n automated_tax_enabled: z.boolean().describe(\"Enable automated tax calculation for this line\").optional(),\n}).passthrough().describe(\"Attributes to partially update a single line item on the invoice.\\nProvide only fields to change. Use `destroy`=true to remove this line.\")).describe(\"List of line items to update\").optional(),\n first_due_interval: z.number().int().describe(\"Days until due date\").optional(),\n payment_conditions: z.string().describe(\"Custom payment conditions text\").optional(),\n invoice_sequence_id: z.string().describe(\"Invoice sequence ID to set\").optional(),\n prices_are_incl_tax: z.boolean().describe(\"True if prices include tax\").optional(),\n original_estimate_id: z.number().int().describe(\"Link to an existing estimate ID\").optional(),\n custom_fields_attributes: z.array(z.object({\n id: z.number().int().describe(\"Custom field ID\"),\n value: z.string().describe(\"Value for the custom field\"),\n}).passthrough().describe(\"Pair of custom field ID and its new value.\")).describe(\"List of custom fields to update\").optional(),\n remove_invoice_sequence_id: z.boolean().describe(\"Unset the sequence ID when true\").optional(),\n}).describe(\"Fields to update on the invoice\"),\n sales_invoice_id: z.string().describe(\"ID of the sales invoice to update\"),\n administration_id: z.number().int().describe(\"Administration ID in Moneybird URL path\"),\n});\nexport const MoneybirdUpdateSalesInvoiceOutput = z.object({\n sales_invoice: z.record(z.string(), z.unknown()).describe(\"The updated invoice object returned by Moneybird\"),\n}).passthrough();\n\nexport const moneybirdUpdateSalesInvoice = action(\"MONEYBIRD_UPDATE_SALES_INVOICE\", {\n slug: \"moneybird-update-sales-invoice\",\n name: \"Update Sales Invoice\",\n description: \"Tool to update an existing sales invoice by ID. Use when modifying invoice header or line items.\",\n input: MoneybirdUpdateSalesInvoiceInput,\n output: MoneybirdUpdateSalesInvoiceOutput,\n});\n"],"mappings":";;AAkDA,MAAa,8BAA8B,OAAO,kCAAkC;CAClF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAlD8C,EAAE,OAAO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O,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;GAC5F,0BAA0B,EAAE,MAAM,EAAE,OAAO;IAC3C,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iBAAiB;IAC/C,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;GACzD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;GAC5H,4BAA4B,EAAE,QAAQ,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;EAC/F,CAAC,CAAC,CAAC,SAAS,iCAAiC;EAC3C,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;EACzE,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC;CACxF,CASS;CACP,QAT+C,EAAE,OAAO,EACxD,eAAe,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,kDAAkD,EAC9G,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
1
+ {"version":3,"file":"update-sales-invoice.mjs","names":[],"sources":["../../src/actions/update-sales-invoice.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 MoneybirdUpdateSalesInvoiceInput = z.object({\n sales_invoice: z.object({\n currency: z.string().describe(\"ISO currency code, e.g., 'EUR'\").optional(),\n discount: z.number().describe(\"Discount percent (>= 0)\").optional(),\n reference: z.string().describe(\"Invoice reference string\").optional(),\n contact_id: z.number().int().describe(\"Valid contact ID to set\").optional(),\n workflow_id: z.number().int().describe(\"Workflow ID to apply\").optional(),\n invoice_date: z.string().describe(\"Invoice date (YYYY-MM-DD)\").optional(),\n time_entry_ids: z.array(z.number().int()).describe(\"List of time entry IDs to attach\").optional(),\n update_contact: z.boolean().describe(\"If true, sync contact fields from invoice\").optional(),\n contact_person_id: z.number().int().describe(\"Valid contact person ID to set\").optional(),\n document_style_id: z.number().int().describe(\"Document style ID to apply\").optional(),\n details_attributes: z.array(z.object({\n id: z.number().int().describe(\"Existing detail record ID\").optional(),\n price: z.number().describe(\"Unit price (decimal)\").optional(),\n amount: z.string().describe(\"Quantity string, e.g., '1 x'\").optional(),\n period: z.string().describe(\"Date range for the line, e.g., '20250101..20250131' or presets.\").optional(),\n _destroy: z.boolean().describe(\"Set true to delete this line item\").optional(),\n trip_ids: z.array(z.number().int()).describe(\"List of trip IDs\").optional(),\n row_order: z.number().int().describe(\"Order index of this line item\").optional(),\n product_id: z.number().int().describe(\"Valid product ID\").optional(),\n project_id: z.number().int().describe(\"Valid project ID\").optional(),\n description: z.string().describe(\"Line item description\").optional(),\n tax_rate_id: z.number().int().describe(\"Valid tax rate ID\").optional(),\n time_entry_ids: z.array(z.number().int()).describe(\"List of time entry IDs\").optional(),\n ledger_account_id: z.number().int().describe(\"Valid ledger account ID\").optional(),\n automated_tax_enabled: z.boolean().describe(\"Enable automated tax calculation for this line\").optional(),\n}).passthrough().describe(\"Attributes to partially update a single line item on the invoice.\\nProvide only fields to change. Use `destroy`=true to remove this line.\")).describe(\"List of line items to update\").optional(),\n first_due_interval: z.number().int().describe(\"Days until due date\").optional(),\n payment_conditions: z.string().describe(\"Custom payment conditions text\").optional(),\n invoice_sequence_id: z.string().describe(\"Invoice sequence ID to set\").optional(),\n prices_are_incl_tax: z.boolean().describe(\"True if prices include tax\").optional(),\n original_estimate_id: z.number().int().describe(\"Link to an existing estimate ID\").optional(),\n custom_fields_attributes: z.array(z.object({\n id: z.number().int().describe(\"Custom field ID\"),\n value: z.string().describe(\"Value for the custom field\"),\n}).passthrough().describe(\"Pair of custom field ID and its new value.\")).describe(\"List of custom fields to update\").optional(),\n remove_invoice_sequence_id: z.boolean().describe(\"Unset the sequence ID when true\").optional(),\n}).describe(\"Fields to update on the invoice\"),\n sales_invoice_id: z.string().describe(\"ID of the sales invoice to update\"),\n administration_id: z.number().int().describe(\"Administration ID in Moneybird URL path\"),\n});\nexport const MoneybirdUpdateSalesInvoiceOutput = z.object({\n sales_invoice: z.record(z.string(), z.unknown()).describe(\"The updated invoice object returned by Moneybird\"),\n}).passthrough();\n\nexport const moneybirdUpdateSalesInvoice: AppAction<\n typeof MoneybirdUpdateSalesInvoiceInput,\n typeof MoneybirdUpdateSalesInvoiceOutput,\n typeof moneybird.credential\n> = action(\"MONEYBIRD_UPDATE_SALES_INVOICE\", {\n slug: \"moneybird-update-sales-invoice\",\n name: \"Update Sales Invoice\",\n description: \"Tool to update an existing sales invoice by ID. Use when modifying invoice header or line items.\",\n input: MoneybirdUpdateSalesInvoiceInput,\n output: MoneybirdUpdateSalesInvoiceOutput,\n});\n"],"mappings":";;;AAoDA,MAAa,8BAIT,OAAO,kCAAkC;CAC3C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAtD8C,EAAE,OAAO;EACvD,eAAe,EAAE,OAAO;GACxB,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;GACzE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;GAClE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;GACpE,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;GAC1E,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;GACxE,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;GACxE,gBAAgB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;GAChG,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,QAb+C,EAAE,OAAO,EACxD,eAAe,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,kDAAkD,EAC9G,CAAC,CAAC,CAAC,YAWO;AACV,CAAC"}
package/dist/app.cjs CHANGED
@@ -1,10 +1,10 @@
1
1
  let _keystrokehq_keystroke_app = require("@keystrokehq/keystroke/app");
2
- let zod = require("zod");
3
2
  //#region src/app.ts
3
+ const credential = { accessToken: require("zod").z.string() };
4
4
  const moneybird = (0, _keystrokehq_keystroke_app.defineApp)({
5
5
  slug: "moneybird",
6
6
  auth: "keystroke",
7
- credential: { accessToken: zod.z.string() }
7
+ credential
8
8
  });
9
9
  //#endregion
10
10
  exports.moneybird = moneybird;
package/dist/app.cjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"app.cjs","names":["z"],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nexport const moneybird = defineApp({\n slug: \"moneybird\",\n auth: \"keystroke\",\n credential: {\n accessToken: z.string(),\n },\n});\n"],"mappings":";;;AAGA,MAAa,aAAA,GAAA,2BAAA,UAAA,CAAsB;CACjC,MAAM;CACN,MAAM;CACN,YAAY,EACV,aAAaA,IAAAA,EAAE,OAAO,EACxB;AACF,CAAC"}
1
+ {"version":3,"file":"app.cjs","names":["z"],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp, type KeystrokeApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nconst credential = {\n accessToken: z.string(),\n};\n\nexport const moneybird: KeystrokeApp<\"moneybird\", typeof credential> = defineApp({\n slug: \"moneybird\",\n auth: \"keystroke\",\n credential,\n});\n"],"mappings":";;AAGA,MAAM,aAAa,EACjB,0BAAaA,CAAAA,CAAAA,EAAE,OAAO,EACxB;AAEA,MAAa,aAAA,GAAA,2BAAA,UAAA,CAAoE;CAC/E,MAAM;CACN,MAAM;CACN;AACF,CAAC"}