@keystrokehq/nusii_proposals 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (266) hide show
  1. package/README.md +17 -0
  2. package/dist/action.cjs +21 -0
  3. package/dist/action.cjs.map +1 -0
  4. package/dist/action.mjs +21 -0
  5. package/dist/action.mjs.map +1 -0
  6. package/dist/actions/archive-proposal.cjs +32 -0
  7. package/dist/actions/archive-proposal.cjs.map +1 -0
  8. package/dist/actions/archive-proposal.d.cts +9 -0
  9. package/dist/actions/archive-proposal.d.cts.map +1 -0
  10. package/dist/actions/archive-proposal.d.mts +9 -0
  11. package/dist/actions/archive-proposal.d.mts.map +1 -0
  12. package/dist/actions/archive-proposal.mjs +31 -0
  13. package/dist/actions/archive-proposal.mjs.map +1 -0
  14. package/dist/actions/create-client.cjs +49 -0
  15. package/dist/actions/create-client.cjs.map +1 -0
  16. package/dist/actions/create-client.d.cts +9 -0
  17. package/dist/actions/create-client.d.cts.map +1 -0
  18. package/dist/actions/create-client.d.mts +9 -0
  19. package/dist/actions/create-client.d.mts.map +1 -0
  20. package/dist/actions/create-client.mjs +46 -0
  21. package/dist/actions/create-client.mjs.map +1 -0
  22. package/dist/actions/create-line-item.cjs +40 -0
  23. package/dist/actions/create-line-item.cjs.map +1 -0
  24. package/dist/actions/create-line-item.d.cts +9 -0
  25. package/dist/actions/create-line-item.d.cts.map +1 -0
  26. package/dist/actions/create-line-item.d.mts +9 -0
  27. package/dist/actions/create-line-item.d.mts.map +1 -0
  28. package/dist/actions/create-line-item.mjs +39 -0
  29. package/dist/actions/create-line-item.mjs.map +1 -0
  30. package/dist/actions/create-proposal.cjs +41 -0
  31. package/dist/actions/create-proposal.cjs.map +1 -0
  32. package/dist/actions/create-proposal.d.cts +9 -0
  33. package/dist/actions/create-proposal.d.cts.map +1 -0
  34. package/dist/actions/create-proposal.d.mts +9 -0
  35. package/dist/actions/create-proposal.d.mts.map +1 -0
  36. package/dist/actions/create-proposal.mjs +38 -0
  37. package/dist/actions/create-proposal.mjs.map +1 -0
  38. package/dist/actions/create-section.cjs +46 -0
  39. package/dist/actions/create-section.cjs.map +1 -0
  40. package/dist/actions/create-section.d.cts +9 -0
  41. package/dist/actions/create-section.d.cts.map +1 -0
  42. package/dist/actions/create-section.d.mts +9 -0
  43. package/dist/actions/create-section.d.mts.map +1 -0
  44. package/dist/actions/create-section.mjs +45 -0
  45. package/dist/actions/create-section.mjs.map +1 -0
  46. package/dist/actions/create-webhook-endpoint.cjs +28 -0
  47. package/dist/actions/create-webhook-endpoint.cjs.map +1 -0
  48. package/dist/actions/create-webhook-endpoint.d.cts +9 -0
  49. package/dist/actions/create-webhook-endpoint.d.cts.map +1 -0
  50. package/dist/actions/create-webhook-endpoint.d.mts +9 -0
  51. package/dist/actions/create-webhook-endpoint.d.mts.map +1 -0
  52. package/dist/actions/create-webhook-endpoint.mjs +27 -0
  53. package/dist/actions/create-webhook-endpoint.mjs.map +1 -0
  54. package/dist/actions/delete-client.cjs +38 -0
  55. package/dist/actions/delete-client.cjs.map +1 -0
  56. package/dist/actions/delete-client.d.cts +9 -0
  57. package/dist/actions/delete-client.d.cts.map +1 -0
  58. package/dist/actions/delete-client.d.mts +9 -0
  59. package/dist/actions/delete-client.d.mts.map +1 -0
  60. package/dist/actions/delete-client.mjs +37 -0
  61. package/dist/actions/delete-client.mjs.map +1 -0
  62. package/dist/actions/delete-line-item.cjs +37 -0
  63. package/dist/actions/delete-line-item.cjs.map +1 -0
  64. package/dist/actions/delete-line-item.d.cts +9 -0
  65. package/dist/actions/delete-line-item.d.cts.map +1 -0
  66. package/dist/actions/delete-line-item.d.mts +9 -0
  67. package/dist/actions/delete-line-item.d.mts.map +1 -0
  68. package/dist/actions/delete-line-item.mjs +36 -0
  69. package/dist/actions/delete-line-item.mjs.map +1 -0
  70. package/dist/actions/delete-proposal.cjs +31 -0
  71. package/dist/actions/delete-proposal.cjs.map +1 -0
  72. package/dist/actions/delete-proposal.d.cts +9 -0
  73. package/dist/actions/delete-proposal.d.cts.map +1 -0
  74. package/dist/actions/delete-proposal.d.mts +9 -0
  75. package/dist/actions/delete-proposal.d.mts.map +1 -0
  76. package/dist/actions/delete-proposal.mjs +30 -0
  77. package/dist/actions/delete-proposal.mjs.map +1 -0
  78. package/dist/actions/delete-section.cjs +41 -0
  79. package/dist/actions/delete-section.cjs.map +1 -0
  80. package/dist/actions/delete-section.d.cts +9 -0
  81. package/dist/actions/delete-section.d.cts.map +1 -0
  82. package/dist/actions/delete-section.d.mts +9 -0
  83. package/dist/actions/delete-section.d.mts.map +1 -0
  84. package/dist/actions/delete-section.mjs +40 -0
  85. package/dist/actions/delete-section.mjs.map +1 -0
  86. package/dist/actions/delete-webhook-endpoint.cjs +25 -0
  87. package/dist/actions/delete-webhook-endpoint.cjs.map +1 -0
  88. package/dist/actions/delete-webhook-endpoint.d.cts +9 -0
  89. package/dist/actions/delete-webhook-endpoint.d.cts.map +1 -0
  90. package/dist/actions/delete-webhook-endpoint.d.mts +9 -0
  91. package/dist/actions/delete-webhook-endpoint.d.mts.map +1 -0
  92. package/dist/actions/delete-webhook-endpoint.mjs +24 -0
  93. package/dist/actions/delete-webhook-endpoint.mjs.map +1 -0
  94. package/dist/actions/get-account-me.cjs +36 -0
  95. package/dist/actions/get-account-me.cjs.map +1 -0
  96. package/dist/actions/get-account-me.d.cts +9 -0
  97. package/dist/actions/get-account-me.d.cts.map +1 -0
  98. package/dist/actions/get-account-me.d.mts +9 -0
  99. package/dist/actions/get-account-me.d.mts.map +1 -0
  100. package/dist/actions/get-account-me.mjs +35 -0
  101. package/dist/actions/get-account-me.mjs.map +1 -0
  102. package/dist/actions/get-client.cjs +38 -0
  103. package/dist/actions/get-client.cjs.map +1 -0
  104. package/dist/actions/get-client.d.cts +9 -0
  105. package/dist/actions/get-client.d.cts.map +1 -0
  106. package/dist/actions/get-client.d.mts +9 -0
  107. package/dist/actions/get-client.d.mts.map +1 -0
  108. package/dist/actions/get-client.mjs +37 -0
  109. package/dist/actions/get-client.mjs.map +1 -0
  110. package/dist/actions/get-proposal.cjs +33 -0
  111. package/dist/actions/get-proposal.cjs.map +1 -0
  112. package/dist/actions/get-proposal.d.cts +9 -0
  113. package/dist/actions/get-proposal.d.cts.map +1 -0
  114. package/dist/actions/get-proposal.d.mts +9 -0
  115. package/dist/actions/get-proposal.d.mts.map +1 -0
  116. package/dist/actions/get-proposal.mjs +32 -0
  117. package/dist/actions/get-proposal.mjs.map +1 -0
  118. package/dist/actions/get-section.cjs +41 -0
  119. package/dist/actions/get-section.cjs.map +1 -0
  120. package/dist/actions/get-section.d.cts +9 -0
  121. package/dist/actions/get-section.d.cts.map +1 -0
  122. package/dist/actions/get-section.d.mts +9 -0
  123. package/dist/actions/get-section.d.mts.map +1 -0
  124. package/dist/actions/get-section.mjs +40 -0
  125. package/dist/actions/get-section.mjs.map +1 -0
  126. package/dist/actions/get-webhook-endpoint.cjs +25 -0
  127. package/dist/actions/get-webhook-endpoint.cjs.map +1 -0
  128. package/dist/actions/get-webhook-endpoint.d.cts +9 -0
  129. package/dist/actions/get-webhook-endpoint.d.cts.map +1 -0
  130. package/dist/actions/get-webhook-endpoint.d.mts +9 -0
  131. package/dist/actions/get-webhook-endpoint.d.mts.map +1 -0
  132. package/dist/actions/get-webhook-endpoint.mjs +24 -0
  133. package/dist/actions/get-webhook-endpoint.mjs.map +1 -0
  134. package/dist/actions/index.cjs +59 -0
  135. package/dist/actions/index.d.cts +30 -0
  136. package/dist/actions/index.d.mts +30 -0
  137. package/dist/actions/index.mjs +30 -0
  138. package/dist/actions/list-clients.cjs +51 -0
  139. package/dist/actions/list-clients.cjs.map +1 -0
  140. package/dist/actions/list-clients.d.cts +9 -0
  141. package/dist/actions/list-clients.d.cts.map +1 -0
  142. package/dist/actions/list-clients.d.mts +9 -0
  143. package/dist/actions/list-clients.d.mts.map +1 -0
  144. package/dist/actions/list-clients.mjs +50 -0
  145. package/dist/actions/list-clients.mjs.map +1 -0
  146. package/dist/actions/list-line-items.cjs +50 -0
  147. package/dist/actions/list-line-items.cjs.map +1 -0
  148. package/dist/actions/list-line-items.d.cts +9 -0
  149. package/dist/actions/list-line-items.d.cts.map +1 -0
  150. package/dist/actions/list-line-items.d.mts +9 -0
  151. package/dist/actions/list-line-items.d.mts.map +1 -0
  152. package/dist/actions/list-line-items.mjs +49 -0
  153. package/dist/actions/list-line-items.mjs.map +1 -0
  154. package/dist/actions/list-proposal-activities.cjs +53 -0
  155. package/dist/actions/list-proposal-activities.cjs.map +1 -0
  156. package/dist/actions/list-proposal-activities.d.cts +9 -0
  157. package/dist/actions/list-proposal-activities.d.cts.map +1 -0
  158. package/dist/actions/list-proposal-activities.d.mts +9 -0
  159. package/dist/actions/list-proposal-activities.d.mts.map +1 -0
  160. package/dist/actions/list-proposal-activities.mjs +52 -0
  161. package/dist/actions/list-proposal-activities.mjs.map +1 -0
  162. package/dist/actions/list-proposals.cjs +59 -0
  163. package/dist/actions/list-proposals.cjs.map +1 -0
  164. package/dist/actions/list-proposals.d.cts +9 -0
  165. package/dist/actions/list-proposals.d.cts.map +1 -0
  166. package/dist/actions/list-proposals.d.mts +9 -0
  167. package/dist/actions/list-proposals.d.mts.map +1 -0
  168. package/dist/actions/list-proposals.mjs +58 -0
  169. package/dist/actions/list-proposals.mjs.map +1 -0
  170. package/dist/actions/list-section-line-items.cjs +37 -0
  171. package/dist/actions/list-section-line-items.cjs.map +1 -0
  172. package/dist/actions/list-section-line-items.d.cts +9 -0
  173. package/dist/actions/list-section-line-items.d.cts.map +1 -0
  174. package/dist/actions/list-section-line-items.d.mts +9 -0
  175. package/dist/actions/list-section-line-items.d.mts.map +1 -0
  176. package/dist/actions/list-section-line-items.mjs +36 -0
  177. package/dist/actions/list-section-line-items.mjs.map +1 -0
  178. package/dist/actions/list-sections.cjs +64 -0
  179. package/dist/actions/list-sections.cjs.map +1 -0
  180. package/dist/actions/list-sections.d.cts +9 -0
  181. package/dist/actions/list-sections.d.cts.map +1 -0
  182. package/dist/actions/list-sections.d.mts +9 -0
  183. package/dist/actions/list-sections.d.mts.map +1 -0
  184. package/dist/actions/list-sections.mjs +63 -0
  185. package/dist/actions/list-sections.mjs.map +1 -0
  186. package/dist/actions/list-themes.cjs +20 -0
  187. package/dist/actions/list-themes.cjs.map +1 -0
  188. package/dist/actions/list-themes.d.cts +9 -0
  189. package/dist/actions/list-themes.d.cts.map +1 -0
  190. package/dist/actions/list-themes.d.mts +9 -0
  191. package/dist/actions/list-themes.d.mts.map +1 -0
  192. package/dist/actions/list-themes.mjs +19 -0
  193. package/dist/actions/list-themes.mjs.map +1 -0
  194. package/dist/actions/list-users.cjs +38 -0
  195. package/dist/actions/list-users.cjs.map +1 -0
  196. package/dist/actions/list-users.d.cts +9 -0
  197. package/dist/actions/list-users.d.cts.map +1 -0
  198. package/dist/actions/list-users.d.mts +9 -0
  199. package/dist/actions/list-users.d.mts.map +1 -0
  200. package/dist/actions/list-users.mjs +37 -0
  201. package/dist/actions/list-users.mjs.map +1 -0
  202. package/dist/actions/list-webhook-endpoints.cjs +38 -0
  203. package/dist/actions/list-webhook-endpoints.cjs.map +1 -0
  204. package/dist/actions/list-webhook-endpoints.d.cts +9 -0
  205. package/dist/actions/list-webhook-endpoints.d.cts.map +1 -0
  206. package/dist/actions/list-webhook-endpoints.d.mts +9 -0
  207. package/dist/actions/list-webhook-endpoints.d.mts.map +1 -0
  208. package/dist/actions/list-webhook-endpoints.mjs +37 -0
  209. package/dist/actions/list-webhook-endpoints.mjs.map +1 -0
  210. package/dist/actions/update-client.cjs +58 -0
  211. package/dist/actions/update-client.cjs.map +1 -0
  212. package/dist/actions/update-client.d.cts +9 -0
  213. package/dist/actions/update-client.d.cts.map +1 -0
  214. package/dist/actions/update-client.d.mts +9 -0
  215. package/dist/actions/update-client.d.mts.map +1 -0
  216. package/dist/actions/update-client.mjs +57 -0
  217. package/dist/actions/update-client.mjs.map +1 -0
  218. package/dist/actions/update-line-item.cjs +59 -0
  219. package/dist/actions/update-line-item.cjs.map +1 -0
  220. package/dist/actions/update-line-item.d.cts +9 -0
  221. package/dist/actions/update-line-item.d.cts.map +1 -0
  222. package/dist/actions/update-line-item.d.mts +9 -0
  223. package/dist/actions/update-line-item.d.mts.map +1 -0
  224. package/dist/actions/update-line-item.mjs +56 -0
  225. package/dist/actions/update-line-item.mjs.map +1 -0
  226. package/dist/actions/update-proposal.cjs +55 -0
  227. package/dist/actions/update-proposal.cjs.map +1 -0
  228. package/dist/actions/update-proposal.d.cts +9 -0
  229. package/dist/actions/update-proposal.d.cts.map +1 -0
  230. package/dist/actions/update-proposal.d.mts +9 -0
  231. package/dist/actions/update-proposal.d.mts.map +1 -0
  232. package/dist/actions/update-proposal.mjs +54 -0
  233. package/dist/actions/update-proposal.mjs.map +1 -0
  234. package/dist/actions/update-section.cjs +49 -0
  235. package/dist/actions/update-section.cjs.map +1 -0
  236. package/dist/actions/update-section.d.cts +9 -0
  237. package/dist/actions/update-section.d.cts.map +1 -0
  238. package/dist/actions/update-section.d.mts +9 -0
  239. package/dist/actions/update-section.d.mts.map +1 -0
  240. package/dist/actions/update-section.mjs +46 -0
  241. package/dist/actions/update-section.mjs.map +1 -0
  242. package/dist/app.cjs +9 -0
  243. package/dist/app.cjs.map +1 -0
  244. package/dist/app.d.cts +5 -0
  245. package/dist/app.d.cts.map +1 -0
  246. package/dist/app.d.mts +5 -0
  247. package/dist/app.d.mts.map +1 -0
  248. package/dist/app.mjs +10 -0
  249. package/dist/app.mjs.map +1 -0
  250. package/dist/catalog.cjs +15 -0
  251. package/dist/catalog.cjs.map +1 -0
  252. package/dist/catalog.d.cts +14 -0
  253. package/dist/catalog.d.cts.map +1 -0
  254. package/dist/catalog.d.mts +14 -0
  255. package/dist/catalog.d.mts.map +1 -0
  256. package/dist/catalog.mjs +15 -0
  257. package/dist/catalog.mjs.map +1 -0
  258. package/dist/execute.cjs +18 -0
  259. package/dist/execute.cjs.map +1 -0
  260. package/dist/execute.mjs +18 -0
  261. package/dist/execute.mjs.map +1 -0
  262. package/dist/index.cjs +64 -0
  263. package/dist/index.d.cts +32 -0
  264. package/dist/index.d.mts +32 -0
  265. package/dist/index.mjs +33 -0
  266. package/package.json +49 -0
@@ -0,0 +1,37 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/list-users.ts
4
+ const NusiiProposalsListUsersInput = z.object({
5
+ per: z.number().int().describe("Number of results per page (default: 25). Must be >= 1.").optional(),
6
+ page: z.number().int().describe("Page number for pagination (default: 1). Must be >= 1.").optional()
7
+ }).describe("Request model for listing users with pagination options.");
8
+ const NusiiProposalsListUsers_UserAttributesSchema = z.object({
9
+ name: z.string().describe("User's name.").nullable().optional(),
10
+ email: z.string().describe("User's email address.")
11
+ }).describe("User attributes model.");
12
+ const NusiiProposalsListUsers_UserDataSchema = z.object({
13
+ id: z.string().describe("Unique user identifier."),
14
+ type: z.string().describe("Resource type (always 'users')."),
15
+ attributes: NusiiProposalsListUsers_UserAttributesSchema.nullable()
16
+ }).describe("User data model.");
17
+ const NusiiProposalsListUsers_MetaDataSchema = z.object({
18
+ "next-page": z.number().int().describe("Next page number (null if on last page).").nullable().optional(),
19
+ "prev-page": z.number().int().describe("Previous page number (null if on first page).").nullable().optional(),
20
+ "total-count": z.number().int().describe("Total count of users across all pages.").nullable().optional(),
21
+ "total-pages": z.number().int().describe("Total number of pages available.").nullable().optional(),
22
+ "current-page": z.number().int().describe("Current page number.").nullable().optional()
23
+ }).describe("Pagination metadata model.");
24
+ const nusiiProposalsListUsers = action("NUSII_PROPOSALS_LIST_USERS", {
25
+ slug: "nusii_proposals-list-users",
26
+ name: "List Users",
27
+ description: "Tool to retrieve all users in paginated format. Use when you need to list users in the Nusii system. Supports pagination via page and per parameters.",
28
+ input: NusiiProposalsListUsersInput,
29
+ output: z.object({
30
+ data: z.array(NusiiProposalsListUsers_UserDataSchema).describe("List of users."),
31
+ meta: NusiiProposalsListUsers_MetaDataSchema.nullable()
32
+ }).describe("Response model for listing users.")
33
+ });
34
+ //#endregion
35
+ export { nusiiProposalsListUsers };
36
+
37
+ //# sourceMappingURL=list-users.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-users.mjs","names":[],"sources":["../../src/actions/list-users.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NusiiProposalsListUsersInput: z.ZodTypeAny = z.object({\n per: z.number().int().describe(\"Number of results per page (default: 25). Must be >= 1.\").optional(),\n page: z.number().int().describe(\"Page number for pagination (default: 1). Must be >= 1.\").optional(),\n}).describe(\"Request model for listing users with pagination options.\");\nconst NusiiProposalsListUsers_UserAttributesSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"User's name.\").nullable().optional(),\n email: z.string().describe(\"User's email address.\"),\n}).describe(\"User attributes model.\");\nconst NusiiProposalsListUsers_UserDataSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique user identifier.\"),\n type: z.string().describe(\"Resource type (always 'users').\"),\n attributes: NusiiProposalsListUsers_UserAttributesSchema.nullable(),\n}).describe(\"User data model.\");\nconst NusiiProposalsListUsers_MetaDataSchema: z.ZodTypeAny = z.object({\n \"next-page\": z.number().int().describe(\"Next page number (null if on last page).\").nullable().optional(),\n \"prev-page\": z.number().int().describe(\"Previous page number (null if on first page).\").nullable().optional(),\n \"total-count\": z.number().int().describe(\"Total count of users across all pages.\").nullable().optional(),\n \"total-pages\": z.number().int().describe(\"Total number of pages available.\").nullable().optional(),\n \"current-page\": z.number().int().describe(\"Current page number.\").nullable().optional(),\n}).describe(\"Pagination metadata model.\");\nexport const NusiiProposalsListUsersOutput: z.ZodTypeAny = z.object({\n data: z.array(NusiiProposalsListUsers_UserDataSchema).describe(\"List of users.\"),\n meta: NusiiProposalsListUsers_MetaDataSchema.nullable(),\n}).describe(\"Response model for listing users.\");\n\nexport const nusiiProposalsListUsers = action(\"NUSII_PROPOSALS_LIST_USERS\", {\n slug: \"nusii_proposals-list-users\",\n name: \"List Users\",\n description: \"Tool to retrieve all users in paginated format. Use when you need to list users in the Nusii system. Supports pagination via page and per parameters.\",\n input: NusiiProposalsListUsersInput,\n output: NusiiProposalsListUsersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA6C,EAAE,OAAO;CACjE,KAAK,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CACnG,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;AACrG,CAAC,CAAC,CAAC,SAAS,0DAA0D;AACtE,MAAM,+CAA6D,EAAE,OAAO;CAC1E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;AACpD,CAAC,CAAC,CAAC,SAAS,wBAAwB;AACpC,MAAM,yCAAuD,EAAE,OAAO;CACpE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;CACjD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;CAC3D,YAAY,6CAA6C,SAAS;AACpE,CAAC,CAAC,CAAC,SAAS,kBAAkB;AAC9B,MAAM,yCAAuD,EAAE,OAAO;CACpE,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,gBAAgB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxF,CAAC,CAAC,CAAC,SAAS,4BAA4B;AAMxC,MAAa,0BAA0B,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVyD,EAAE,OAAO;EAClE,MAAM,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,gBAAgB;EAC/E,MAAM,uCAAuC,SAAS;CACxD,CAAC,CAAC,CAAC,SAAS,mCAOF;AACV,CAAC"}
@@ -0,0 +1,38 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/list-webhook-endpoints.ts
4
+ const NusiiProposalsListWebhookEndpointsInput = zod.z.object({
5
+ per: zod.z.number().int().describe("Number of results per page, must be >=1. Default is 25.").optional(),
6
+ page: zod.z.number().int().describe("Page number for pagination, must be >=1. Default is 1.").optional()
7
+ }).describe("Request model for listing webhook endpoints with optional pagination.");
8
+ const NusiiProposalsListWebhookEndpoints_WebhookEndpointAttributesSchema = zod.z.object({
9
+ events: zod.z.array(zod.z.string()).describe("Array of subscribed event names that trigger this webhook."),
10
+ target_url: zod.z.string().describe("Destination URL where webhook POST requests are sent.")
11
+ }).describe("Attributes of a webhook endpoint.");
12
+ const NusiiProposalsListWebhookEndpoints_WebhookEndpointItemSchema = zod.z.object({
13
+ id: zod.z.string().describe("Webhook endpoint identifier."),
14
+ type: zod.z.string().describe("Resource type, always 'webhook_endpoints'."),
15
+ attributes: NusiiProposalsListWebhookEndpoints_WebhookEndpointAttributesSchema.nullable()
16
+ }).describe("Schema for a single webhook endpoint item.");
17
+ const NusiiProposalsListWebhookEndpoints_PaginationMetaSchema = zod.z.object({
18
+ "next-page": zod.z.number().int().describe("Next page number or null if last page.").nullable().optional(),
19
+ "prev-page": zod.z.number().int().describe("Previous page number or null if first page.").nullable().optional(),
20
+ "total-count": zod.z.number().int().describe("Total number of webhook endpoints.").nullable().optional(),
21
+ "total-pages": zod.z.number().int().describe("Total number of pages available.").nullable().optional(),
22
+ "current-page": zod.z.number().int().describe("Current page number.").nullable().optional()
23
+ }).describe("Pagination metadata for the response.");
24
+ const NusiiProposalsListWebhookEndpointsOutput = zod.z.object({
25
+ data: zod.z.array(NusiiProposalsListWebhookEndpoints_WebhookEndpointItemSchema).describe("Array of webhook endpoint objects."),
26
+ meta: NusiiProposalsListWebhookEndpoints_PaginationMetaSchema.nullable().optional()
27
+ }).describe("Response schema for listing webhook endpoints.");
28
+ const nusiiProposalsListWebhookEndpoints = require_action.action("NUSII_PROPOSALS_LIST_WEBHOOK_ENDPOINTS", {
29
+ slug: "nusii_proposals-list-webhook-endpoints",
30
+ name: "List Webhook Endpoints",
31
+ description: "Tool to retrieve all webhook endpoints configured for your Nusii account. Use when you need to view all configured webhook subscriptions. Supports pagination via page and per parameters.",
32
+ input: NusiiProposalsListWebhookEndpointsInput,
33
+ output: NusiiProposalsListWebhookEndpointsOutput
34
+ });
35
+ //#endregion
36
+ exports.nusiiProposalsListWebhookEndpoints = nusiiProposalsListWebhookEndpoints;
37
+
38
+ //# sourceMappingURL=list-webhook-endpoints.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-webhook-endpoints.cjs","names":["z","action"],"sources":["../../src/actions/list-webhook-endpoints.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NusiiProposalsListWebhookEndpointsInput: z.ZodTypeAny = z.object({\n per: z.number().int().describe(\"Number of results per page, must be >=1. Default is 25.\").optional(),\n page: z.number().int().describe(\"Page number for pagination, must be >=1. Default is 1.\").optional(),\n}).describe(\"Request model for listing webhook endpoints with optional pagination.\");\nconst NusiiProposalsListWebhookEndpoints_WebhookEndpointAttributesSchema: z.ZodTypeAny = z.object({\n events: z.array(z.string()).describe(\"Array of subscribed event names that trigger this webhook.\"),\n target_url: z.string().describe(\"Destination URL where webhook POST requests are sent.\"),\n}).describe(\"Attributes of a webhook endpoint.\");\nconst NusiiProposalsListWebhookEndpoints_WebhookEndpointItemSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Webhook endpoint identifier.\"),\n type: z.string().describe(\"Resource type, always 'webhook_endpoints'.\"),\n attributes: NusiiProposalsListWebhookEndpoints_WebhookEndpointAttributesSchema.nullable(),\n}).describe(\"Schema for a single webhook endpoint item.\");\nconst NusiiProposalsListWebhookEndpoints_PaginationMetaSchema: z.ZodTypeAny = z.object({\n \"next-page\": z.number().int().describe(\"Next page number or null if last page.\").nullable().optional(),\n \"prev-page\": z.number().int().describe(\"Previous page number or null if first page.\").nullable().optional(),\n \"total-count\": z.number().int().describe(\"Total number of webhook endpoints.\").nullable().optional(),\n \"total-pages\": z.number().int().describe(\"Total number of pages available.\").nullable().optional(),\n \"current-page\": z.number().int().describe(\"Current page number.\").nullable().optional(),\n}).describe(\"Pagination metadata for the response.\");\nexport const NusiiProposalsListWebhookEndpointsOutput: z.ZodTypeAny = z.object({\n data: z.array(NusiiProposalsListWebhookEndpoints_WebhookEndpointItemSchema).describe(\"Array of webhook endpoint objects.\"),\n meta: NusiiProposalsListWebhookEndpoints_PaginationMetaSchema.nullable().optional(),\n}).describe(\"Response schema for listing webhook endpoints.\");\n\nexport const nusiiProposalsListWebhookEndpoints = action(\"NUSII_PROPOSALS_LIST_WEBHOOK_ENDPOINTS\", {\n slug: \"nusii_proposals-list-webhook-endpoints\",\n name: \"List Webhook Endpoints\",\n description: \"Tool to retrieve all webhook endpoints configured for your Nusii account. Use when you need to view all configured webhook subscriptions. Supports pagination via page and per parameters.\",\n input: NusiiProposalsListWebhookEndpointsInput,\n output: NusiiProposalsListWebhookEndpointsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0CAAwDA,IAAAA,EAAE,OAAO;CAC5E,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CACnG,MAAMA,I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CAAyDA,IAAAA,EAAE,OAAO;CAC7E,MAAMA,IAAAA,EAAE,MAAM,4DAA4D,CAAC,CAAC,SAAS,oCAAoC;CACzH,MAAM,wDAAwD,SAAS,CAAC,CAAC,SAAS;AACpF,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAE5D,MAAa,qCAAqCC,eAAAA,OAAO,0CAA0C;CACjG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/list-webhook-endpoints.d.ts
4
+ declare const NusiiProposalsListWebhookEndpointsInput: z.ZodTypeAny;
5
+ declare const NusiiProposalsListWebhookEndpointsOutput: z.ZodTypeAny;
6
+ declare const nusiiProposalsListWebhookEndpoints: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { nusiiProposalsListWebhookEndpoints };
9
+ //# sourceMappingURL=list-webhook-endpoints.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-webhook-endpoints.d.cts","names":[],"sources":["../../src/actions/list-webhook-endpoints.ts"],"mappings":";;;cAIa,uCAAA,EAAyC,CAAA,CAAE,UAG4B;AAAA,cAiBvE,wCAAA,EAA0C,CAAA,CAAE,UAGI;AAAA,cAEhD,kCAAA,gCAAkC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/list-webhook-endpoints.d.ts
4
+ declare const NusiiProposalsListWebhookEndpointsInput: z.ZodTypeAny;
5
+ declare const NusiiProposalsListWebhookEndpointsOutput: z.ZodTypeAny;
6
+ declare const nusiiProposalsListWebhookEndpoints: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { nusiiProposalsListWebhookEndpoints };
9
+ //# sourceMappingURL=list-webhook-endpoints.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-webhook-endpoints.d.mts","names":[],"sources":["../../src/actions/list-webhook-endpoints.ts"],"mappings":";;;cAIa,uCAAA,EAAyC,CAAA,CAAE,UAG4B;AAAA,cAiBvE,wCAAA,EAA0C,CAAA,CAAE,UAGI;AAAA,cAEhD,kCAAA,gCAAkC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,37 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/list-webhook-endpoints.ts
4
+ const NusiiProposalsListWebhookEndpointsInput = z.object({
5
+ per: z.number().int().describe("Number of results per page, must be >=1. Default is 25.").optional(),
6
+ page: z.number().int().describe("Page number for pagination, must be >=1. Default is 1.").optional()
7
+ }).describe("Request model for listing webhook endpoints with optional pagination.");
8
+ const NusiiProposalsListWebhookEndpoints_WebhookEndpointAttributesSchema = z.object({
9
+ events: z.array(z.string()).describe("Array of subscribed event names that trigger this webhook."),
10
+ target_url: z.string().describe("Destination URL where webhook POST requests are sent.")
11
+ }).describe("Attributes of a webhook endpoint.");
12
+ const NusiiProposalsListWebhookEndpoints_WebhookEndpointItemSchema = z.object({
13
+ id: z.string().describe("Webhook endpoint identifier."),
14
+ type: z.string().describe("Resource type, always 'webhook_endpoints'."),
15
+ attributes: NusiiProposalsListWebhookEndpoints_WebhookEndpointAttributesSchema.nullable()
16
+ }).describe("Schema for a single webhook endpoint item.");
17
+ const NusiiProposalsListWebhookEndpoints_PaginationMetaSchema = z.object({
18
+ "next-page": z.number().int().describe("Next page number or null if last page.").nullable().optional(),
19
+ "prev-page": z.number().int().describe("Previous page number or null if first page.").nullable().optional(),
20
+ "total-count": z.number().int().describe("Total number of webhook endpoints.").nullable().optional(),
21
+ "total-pages": z.number().int().describe("Total number of pages available.").nullable().optional(),
22
+ "current-page": z.number().int().describe("Current page number.").nullable().optional()
23
+ }).describe("Pagination metadata for the response.");
24
+ const nusiiProposalsListWebhookEndpoints = action("NUSII_PROPOSALS_LIST_WEBHOOK_ENDPOINTS", {
25
+ slug: "nusii_proposals-list-webhook-endpoints",
26
+ name: "List Webhook Endpoints",
27
+ description: "Tool to retrieve all webhook endpoints configured for your Nusii account. Use when you need to view all configured webhook subscriptions. Supports pagination via page and per parameters.",
28
+ input: NusiiProposalsListWebhookEndpointsInput,
29
+ output: z.object({
30
+ data: z.array(NusiiProposalsListWebhookEndpoints_WebhookEndpointItemSchema).describe("Array of webhook endpoint objects."),
31
+ meta: NusiiProposalsListWebhookEndpoints_PaginationMetaSchema.nullable().optional()
32
+ }).describe("Response schema for listing webhook endpoints.")
33
+ });
34
+ //#endregion
35
+ export { nusiiProposalsListWebhookEndpoints };
36
+
37
+ //# sourceMappingURL=list-webhook-endpoints.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-webhook-endpoints.mjs","names":[],"sources":["../../src/actions/list-webhook-endpoints.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NusiiProposalsListWebhookEndpointsInput: z.ZodTypeAny = z.object({\n per: z.number().int().describe(\"Number of results per page, must be >=1. Default is 25.\").optional(),\n page: z.number().int().describe(\"Page number for pagination, must be >=1. Default is 1.\").optional(),\n}).describe(\"Request model for listing webhook endpoints with optional pagination.\");\nconst NusiiProposalsListWebhookEndpoints_WebhookEndpointAttributesSchema: z.ZodTypeAny = z.object({\n events: z.array(z.string()).describe(\"Array of subscribed event names that trigger this webhook.\"),\n target_url: z.string().describe(\"Destination URL where webhook POST requests are sent.\"),\n}).describe(\"Attributes of a webhook endpoint.\");\nconst NusiiProposalsListWebhookEndpoints_WebhookEndpointItemSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Webhook endpoint identifier.\"),\n type: z.string().describe(\"Resource type, always 'webhook_endpoints'.\"),\n attributes: NusiiProposalsListWebhookEndpoints_WebhookEndpointAttributesSchema.nullable(),\n}).describe(\"Schema for a single webhook endpoint item.\");\nconst NusiiProposalsListWebhookEndpoints_PaginationMetaSchema: z.ZodTypeAny = z.object({\n \"next-page\": z.number().int().describe(\"Next page number or null if last page.\").nullable().optional(),\n \"prev-page\": z.number().int().describe(\"Previous page number or null if first page.\").nullable().optional(),\n \"total-count\": z.number().int().describe(\"Total number of webhook endpoints.\").nullable().optional(),\n \"total-pages\": z.number().int().describe(\"Total number of pages available.\").nullable().optional(),\n \"current-page\": z.number().int().describe(\"Current page number.\").nullable().optional(),\n}).describe(\"Pagination metadata for the response.\");\nexport const NusiiProposalsListWebhookEndpointsOutput: z.ZodTypeAny = z.object({\n data: z.array(NusiiProposalsListWebhookEndpoints_WebhookEndpointItemSchema).describe(\"Array of webhook endpoint objects.\"),\n meta: NusiiProposalsListWebhookEndpoints_PaginationMetaSchema.nullable().optional(),\n}).describe(\"Response schema for listing webhook endpoints.\");\n\nexport const nusiiProposalsListWebhookEndpoints = action(\"NUSII_PROPOSALS_LIST_WEBHOOK_ENDPOINTS\", {\n slug: \"nusii_proposals-list-webhook-endpoints\",\n name: \"List Webhook Endpoints\",\n description: \"Tool to retrieve all webhook endpoints configured for your Nusii account. Use when you need to view all configured webhook subscriptions. Supports pagination via page and per parameters.\",\n input: NusiiProposalsListWebhookEndpointsInput,\n output: NusiiProposalsListWebhookEndpointsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0CAAwD,EAAE,OAAO;CAC5E,KAAK,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CACnG,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;AACrG,CAAC,CAAC,CAAC,SAAS,uEAAuE;AACnF,MAAM,qEAAmF,EAAE,OAAO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,58 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/update-client.ts
4
+ const NusiiProposalsUpdateClientInput = zod.z.object({
5
+ id: zod.z.string().describe("The unique identifier of the client to update"),
6
+ client: zod.z.object({
7
+ web: zod.z.string().describe("Client's website URL").optional(),
8
+ city: zod.z.string().describe("Client's city").optional(),
9
+ name: zod.z.string().describe("Client's first name (required)"),
10
+ email: zod.z.string().describe("Client's email address (required)"),
11
+ state: zod.z.string().describe("Client's state or region name").optional(),
12
+ locale: zod.z.string().describe("Client's language preference for proposals").optional(),
13
+ address: zod.z.string().describe("Client's street address").optional(),
14
+ country: zod.z.string().describe("Client's country name").optional(),
15
+ surname: zod.z.string().describe("Client's last name").optional(),
16
+ business: zod.z.string().describe("Client's company name").optional(),
17
+ currency: zod.z.string().describe("Client's currency (defaults to account's default currency or USD)").optional(),
18
+ postcode: zod.z.string().describe("Client's postal code").optional(),
19
+ telephone: zod.z.string().describe("Client's phone number").optional(),
20
+ pdf_page_size: zod.z.string().describe("PDF page size for client's proposals (default: A4)").optional()
21
+ }).describe("Client data to update")
22
+ }).describe("Request model for updating a client.");
23
+ const NusiiProposalsUpdateClient_ClientAttributesSchema = zod.z.object({
24
+ web: zod.z.string().describe("Client's website URL").nullable().optional(),
25
+ city: zod.z.string().describe("Client's city").nullable().optional(),
26
+ name: zod.z.string().describe("Client's first name").nullable().optional(),
27
+ email: zod.z.string().describe("Client's email address").nullable().optional(),
28
+ state: zod.z.string().describe("Client's state or region").nullable().optional(),
29
+ locale: zod.z.string().describe("Client's language preference").nullable().optional(),
30
+ address: zod.z.string().describe("Client's street address").nullable().optional(),
31
+ country: zod.z.string().describe("Client's country name").nullable().optional(),
32
+ surname: zod.z.string().describe("Client's last name").nullable().optional(),
33
+ business: zod.z.string().describe("Client's company name").nullable().optional(),
34
+ currency: zod.z.string().describe("Client's currency").nullable().optional(),
35
+ postcode: zod.z.string().describe("Client's postal code").nullable().optional(),
36
+ full_name: zod.z.string().describe("Combined first and last name").nullable().optional(),
37
+ telephone: zod.z.string().describe("Client's phone number").nullable().optional(),
38
+ created_at: zod.z.string().describe("When the client was created").nullable().optional(),
39
+ updated_at: zod.z.string().describe("When the client was last updated").nullable().optional(),
40
+ pdf_page_size: zod.z.string().describe("PDF page size setting").nullable().optional()
41
+ }).describe("Client attributes containing detailed client information.");
42
+ const NusiiProposalsUpdateClient_ClientDataResponseSchema = zod.z.object({
43
+ id: zod.z.string().describe("Unique client identifier"),
44
+ type: zod.z.string().describe("Resource type, always 'clients'"),
45
+ attributes: NusiiProposalsUpdateClient_ClientAttributesSchema.nullable()
46
+ }).describe("Client data object in response.");
47
+ const NusiiProposalsUpdateClientOutput = zod.z.object({ data: NusiiProposalsUpdateClient_ClientDataResponseSchema.nullable() }).describe("Response model containing the updated client information.");
48
+ const nusiiProposalsUpdateClient = require_action.action("NUSII_PROPOSALS_UPDATE_CLIENT", {
49
+ slug: "nusii_proposals-update-client",
50
+ name: "Update Client",
51
+ description: "Tool to update an existing client's information in Nusii. Use when you need to modify client details such as contact information, business details, or preferences.",
52
+ input: NusiiProposalsUpdateClientInput,
53
+ output: NusiiProposalsUpdateClientOutput
54
+ });
55
+ //#endregion
56
+ exports.nusiiProposalsUpdateClient = nusiiProposalsUpdateClient;
57
+
58
+ //# sourceMappingURL=update-client.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-client.cjs","names":["z","action"],"sources":["../../src/actions/update-client.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NusiiProposalsUpdateClientInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier of the client to update\"),\n client: z.object({\n web: z.string().describe(\"Client's website URL\").optional(),\n city: z.string().describe(\"Client's city\").optional(),\n name: z.string().describe(\"Client's first name (required)\"),\n email: z.string().describe(\"Client's email address (required)\"),\n state: z.string().describe(\"Client's state or region name\").optional(),\n locale: z.string().describe(\"Client's language preference for proposals\").optional(),\n address: z.string().describe(\"Client's street address\").optional(),\n country: z.string().describe(\"Client's country name\").optional(),\n surname: z.string().describe(\"Client's last name\").optional(),\n business: z.string().describe(\"Client's company name\").optional(),\n currency: z.string().describe(\"Client's currency (defaults to account's default currency or USD)\").optional(),\n postcode: z.string().describe(\"Client's postal code\").optional(),\n telephone: z.string().describe(\"Client's phone number\").optional(),\n pdf_page_size: z.string().describe(\"PDF page size for client's proposals (default: A4)\").optional(),\n}).describe(\"Client data to update\"),\n}).describe(\"Request model for updating a client.\");\nconst NusiiProposalsUpdateClient_ClientAttributesSchema: z.ZodTypeAny = z.object({\n web: z.string().describe(\"Client's website URL\").nullable().optional(),\n city: z.string().describe(\"Client's city\").nullable().optional(),\n name: z.string().describe(\"Client's first name\").nullable().optional(),\n email: z.string().describe(\"Client's email address\").nullable().optional(),\n state: z.string().describe(\"Client's state or region\").nullable().optional(),\n locale: z.string().describe(\"Client's language preference\").nullable().optional(),\n address: z.string().describe(\"Client's street address\").nullable().optional(),\n country: z.string().describe(\"Client's country name\").nullable().optional(),\n surname: z.string().describe(\"Client's last name\").nullable().optional(),\n business: z.string().describe(\"Client's company name\").nullable().optional(),\n currency: z.string().describe(\"Client's currency\").nullable().optional(),\n postcode: z.string().describe(\"Client's postal code\").nullable().optional(),\n full_name: z.string().describe(\"Combined first and last name\").nullable().optional(),\n telephone: z.string().describe(\"Client's phone number\").nullable().optional(),\n created_at: z.string().describe(\"When the client was created\").nullable().optional(),\n updated_at: z.string().describe(\"When the client was last updated\").nullable().optional(),\n pdf_page_size: z.string().describe(\"PDF page size setting\").nullable().optional(),\n}).describe(\"Client attributes containing detailed client information.\");\nconst NusiiProposalsUpdateClient_ClientDataResponseSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique client identifier\"),\n type: z.string().describe(\"Resource type, always 'clients'\"),\n attributes: NusiiProposalsUpdateClient_ClientAttributesSchema.nullable(),\n}).describe(\"Client data object in response.\");\nexport const NusiiProposalsUpdateClientOutput: z.ZodTypeAny = z.object({\n data: NusiiProposalsUpdateClient_ClientDataResponseSchema.nullable(),\n}).describe(\"Response model containing the updated client information.\");\n\nexport const nusiiProposalsUpdateClient = action(\"NUSII_PROPOSALS_UPDATE_CLIENT\", {\n slug: \"nusii_proposals-update-client\",\n name: \"Update Client\",\n description: \"Tool to update an existing client's information in Nusii. Use when you need to modify client details such as contact information, business details, or preferences.\",\n input: NusiiProposalsUpdateClientInput,\n output: NusiiProposalsUpdateClientOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAgDA,IAAAA,EAAE,OAAO;CACpE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;CACvE,QAAQA,IAAAA,EAAE,OAAO;EACjB,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;EAC1D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS;EACpD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;EAC1D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;EAC9D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;EACrE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;EACnF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;EACjE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;EAC/D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;EAC5D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;EAChE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAA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AC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/update-client.d.ts
4
+ declare const NusiiProposalsUpdateClientInput: z.ZodTypeAny;
5
+ declare const NusiiProposalsUpdateClientOutput: z.ZodTypeAny;
6
+ declare const nusiiProposalsUpdateClient: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { nusiiProposalsUpdateClient };
9
+ //# sourceMappingURL=update-client.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-client.d.cts","names":[],"sources":["../../src/actions/update-client.ts"],"mappings":";;;cAIa,+BAAA,EAAiC,CAAA,CAAE,UAkBG;AAAA,cAyBtC,gCAAA,EAAkC,CAAA,CAAE,UAEuB;AAAA,cAE3D,0BAAA,gCAA0B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/update-client.d.ts
4
+ declare const NusiiProposalsUpdateClientInput: z.ZodTypeAny;
5
+ declare const NusiiProposalsUpdateClientOutput: z.ZodTypeAny;
6
+ declare const nusiiProposalsUpdateClient: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { nusiiProposalsUpdateClient };
9
+ //# sourceMappingURL=update-client.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-client.d.mts","names":[],"sources":["../../src/actions/update-client.ts"],"mappings":";;;cAIa,+BAAA,EAAiC,CAAA,CAAE,UAkBG;AAAA,cAyBtC,gCAAA,EAAkC,CAAA,CAAE,UAEuB;AAAA,cAE3D,0BAAA,gCAA0B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,57 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/update-client.ts
4
+ const NusiiProposalsUpdateClientInput = z.object({
5
+ id: z.string().describe("The unique identifier of the client to update"),
6
+ client: z.object({
7
+ web: z.string().describe("Client's website URL").optional(),
8
+ city: z.string().describe("Client's city").optional(),
9
+ name: z.string().describe("Client's first name (required)"),
10
+ email: z.string().describe("Client's email address (required)"),
11
+ state: z.string().describe("Client's state or region name").optional(),
12
+ locale: z.string().describe("Client's language preference for proposals").optional(),
13
+ address: z.string().describe("Client's street address").optional(),
14
+ country: z.string().describe("Client's country name").optional(),
15
+ surname: z.string().describe("Client's last name").optional(),
16
+ business: z.string().describe("Client's company name").optional(),
17
+ currency: z.string().describe("Client's currency (defaults to account's default currency or USD)").optional(),
18
+ postcode: z.string().describe("Client's postal code").optional(),
19
+ telephone: z.string().describe("Client's phone number").optional(),
20
+ pdf_page_size: z.string().describe("PDF page size for client's proposals (default: A4)").optional()
21
+ }).describe("Client data to update")
22
+ }).describe("Request model for updating a client.");
23
+ const NusiiProposalsUpdateClient_ClientAttributesSchema = z.object({
24
+ web: z.string().describe("Client's website URL").nullable().optional(),
25
+ city: z.string().describe("Client's city").nullable().optional(),
26
+ name: z.string().describe("Client's first name").nullable().optional(),
27
+ email: z.string().describe("Client's email address").nullable().optional(),
28
+ state: z.string().describe("Client's state or region").nullable().optional(),
29
+ locale: z.string().describe("Client's language preference").nullable().optional(),
30
+ address: z.string().describe("Client's street address").nullable().optional(),
31
+ country: z.string().describe("Client's country name").nullable().optional(),
32
+ surname: z.string().describe("Client's last name").nullable().optional(),
33
+ business: z.string().describe("Client's company name").nullable().optional(),
34
+ currency: z.string().describe("Client's currency").nullable().optional(),
35
+ postcode: z.string().describe("Client's postal code").nullable().optional(),
36
+ full_name: z.string().describe("Combined first and last name").nullable().optional(),
37
+ telephone: z.string().describe("Client's phone number").nullable().optional(),
38
+ created_at: z.string().describe("When the client was created").nullable().optional(),
39
+ updated_at: z.string().describe("When the client was last updated").nullable().optional(),
40
+ pdf_page_size: z.string().describe("PDF page size setting").nullable().optional()
41
+ }).describe("Client attributes containing detailed client information.");
42
+ const NusiiProposalsUpdateClient_ClientDataResponseSchema = z.object({
43
+ id: z.string().describe("Unique client identifier"),
44
+ type: z.string().describe("Resource type, always 'clients'"),
45
+ attributes: NusiiProposalsUpdateClient_ClientAttributesSchema.nullable()
46
+ }).describe("Client data object in response.");
47
+ const nusiiProposalsUpdateClient = action("NUSII_PROPOSALS_UPDATE_CLIENT", {
48
+ slug: "nusii_proposals-update-client",
49
+ name: "Update Client",
50
+ description: "Tool to update an existing client's information in Nusii. Use when you need to modify client details such as contact information, business details, or preferences.",
51
+ input: NusiiProposalsUpdateClientInput,
52
+ output: z.object({ data: NusiiProposalsUpdateClient_ClientDataResponseSchema.nullable() }).describe("Response model containing the updated client information.")
53
+ });
54
+ //#endregion
55
+ export { nusiiProposalsUpdateClient };
56
+
57
+ //# sourceMappingURL=update-client.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-client.mjs","names":[],"sources":["../../src/actions/update-client.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NusiiProposalsUpdateClientInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier of the client to update\"),\n client: z.object({\n web: z.string().describe(\"Client's website URL\").optional(),\n city: z.string().describe(\"Client's city\").optional(),\n name: z.string().describe(\"Client's first name (required)\"),\n email: z.string().describe(\"Client's email address (required)\"),\n state: z.string().describe(\"Client's state or region name\").optional(),\n locale: z.string().describe(\"Client's language preference for proposals\").optional(),\n address: z.string().describe(\"Client's street address\").optional(),\n country: z.string().describe(\"Client's country name\").optional(),\n surname: z.string().describe(\"Client's last name\").optional(),\n business: z.string().describe(\"Client's company name\").optional(),\n currency: z.string().describe(\"Client's currency (defaults to account's default currency or USD)\").optional(),\n postcode: z.string().describe(\"Client's postal code\").optional(),\n telephone: z.string().describe(\"Client's phone number\").optional(),\n pdf_page_size: z.string().describe(\"PDF page size for client's proposals (default: A4)\").optional(),\n}).describe(\"Client data to update\"),\n}).describe(\"Request model for updating a client.\");\nconst NusiiProposalsUpdateClient_ClientAttributesSchema: z.ZodTypeAny = z.object({\n web: z.string().describe(\"Client's website URL\").nullable().optional(),\n city: z.string().describe(\"Client's city\").nullable().optional(),\n name: z.string().describe(\"Client's first name\").nullable().optional(),\n email: z.string().describe(\"Client's email address\").nullable().optional(),\n state: z.string().describe(\"Client's state or region\").nullable().optional(),\n locale: z.string().describe(\"Client's language preference\").nullable().optional(),\n address: z.string().describe(\"Client's street address\").nullable().optional(),\n country: z.string().describe(\"Client's country name\").nullable().optional(),\n surname: z.string().describe(\"Client's last name\").nullable().optional(),\n business: z.string().describe(\"Client's company name\").nullable().optional(),\n currency: z.string().describe(\"Client's currency\").nullable().optional(),\n postcode: z.string().describe(\"Client's postal code\").nullable().optional(),\n full_name: z.string().describe(\"Combined first and last name\").nullable().optional(),\n telephone: z.string().describe(\"Client's phone number\").nullable().optional(),\n created_at: z.string().describe(\"When the client was created\").nullable().optional(),\n updated_at: z.string().describe(\"When the client was last updated\").nullable().optional(),\n pdf_page_size: z.string().describe(\"PDF page size setting\").nullable().optional(),\n}).describe(\"Client attributes containing detailed client information.\");\nconst NusiiProposalsUpdateClient_ClientDataResponseSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique client identifier\"),\n type: z.string().describe(\"Resource type, always 'clients'\"),\n attributes: NusiiProposalsUpdateClient_ClientAttributesSchema.nullable(),\n}).describe(\"Client data object in response.\");\nexport const NusiiProposalsUpdateClientOutput: z.ZodTypeAny = z.object({\n data: NusiiProposalsUpdateClient_ClientDataResponseSchema.nullable(),\n}).describe(\"Response model containing the updated client information.\");\n\nexport const nusiiProposalsUpdateClient = action(\"NUSII_PROPOSALS_UPDATE_CLIENT\", {\n slug: \"nusii_proposals-update-client\",\n name: \"Update Client\",\n description: \"Tool to update an existing client's information in Nusii. Use when you need to modify client details such as contact information, business details, or preferences.\",\n input: NusiiProposalsUpdateClientInput,\n output: NusiiProposalsUpdateClientOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAgD,EAAE,OAAO;CACpE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;CACvE,QAAQ,EAAE,OAAO;EACjB,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;EAC1D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS;EACpD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;EAC1D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;EAC9D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;EACrE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;EACnF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;EACjE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;EAC/D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;EAC5D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;EAChE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;EAC5G,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;EAC/D,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;EACjE,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CACpG,CAAC,CAAC,CAAC,SAAS,uBAAuB;AACnC,CAAC,CAAC,CAAC,SAAS,sCAAsC;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S,CAAC,CAAC,SAAS;CAC5E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClF,CAAC,CAAC,CAAC,SAAS,2DAA2D;AACvE,MAAM,sDAAoE,EAAE,OAAO;CACjF,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;CAClD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;CAC3D,YAAY,kDAAkD,SAAS;AACzE,CAAC,CAAC,CAAC,SAAS,iCAAiC;AAK7C,MAAa,6BAA6B,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT4D,EAAE,OAAO,EACrE,MAAM,oDAAoD,SAAS,EACrE,CAAC,CAAC,CAAC,SAAS,2DAOF;AACV,CAAC"}
@@ -0,0 +1,59 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/update-line-item.ts
4
+ const NusiiProposalsUpdateLineItemInput = zod.z.object({
5
+ id: zod.z.string().describe("The line item ID to update"),
6
+ name: zod.z.string().describe("Body/description of the line item").optional(),
7
+ amount: zod.z.number().int().describe("Price in cents (e.g., 10000 for $100.00)").optional(),
8
+ per_type: zod.z.enum([
9
+ "year",
10
+ "month",
11
+ "week",
12
+ "day",
13
+ "hour",
14
+ "item",
15
+ "unit"
16
+ ]).describe("For per-unit costs - specifies the unit type. Only valid when cost_type is 'per'").optional(),
17
+ position: zod.z.number().int().describe("Order within the section, must be non-negative").optional(),
18
+ quantity: zod.z.number().int().describe("Multiplier for per-type costs (total = quantity × amount), must be at least 1").optional(),
19
+ cost_type: zod.z.enum([
20
+ "fixed",
21
+ "recurring",
22
+ "per"
23
+ ]).describe("Cost structure - valid values: 'fixed' (one-time), 'recurring' (repeating), or 'per' (per-unit)").optional(),
24
+ recurring_type: zod.z.enum([
25
+ "yearly",
26
+ "semiannually",
27
+ "trimester",
28
+ "monthly",
29
+ "weekly",
30
+ "daily",
31
+ "hourly"
32
+ ]).describe("For recurring costs - specifies the recurrence frequency. Only valid when cost_type is 'recurring'").optional()
33
+ }).describe("Request model for updating a line item in Nusii proposals.");
34
+ const NusiiProposalsUpdateLineItemOutput = zod.z.object({
35
+ id: zod.z.string().describe("Unique line item identifier").nullable().optional(),
36
+ name: zod.z.string().describe("Line item description").nullable().optional(),
37
+ type: zod.z.string().describe("Resource type (typically 'line_items')").nullable().optional(),
38
+ currency: zod.z.string().describe("Three-letter currency code (e.g., 'USD')").nullable().optional(),
39
+ position: zod.z.number().int().describe("Display order in section").nullable().optional(),
40
+ cost_type: zod.z.string().describe("Pricing model type ('fixed', 'recurring', or 'per')").nullable().optional(),
41
+ created_at: zod.z.string().describe("Creation timestamp").nullable().optional(),
42
+ section_id: zod.z.number().int().describe("Associated section ID").nullable().optional(),
43
+ updated_at: zod.z.string().describe("Last modification timestamp").nullable().optional(),
44
+ total_in_cents: zod.z.number().int().describe("Final amount (quantity × amount)").nullable().optional(),
45
+ amount_in_cents: zod.z.number().int().describe("Unit price in cents").nullable().optional(),
46
+ total_formatted: zod.z.string().describe("Formatted total with currency").nullable().optional(),
47
+ amount_formatted: zod.z.string().describe("Localized currency display").nullable().optional()
48
+ }).describe("Response model for updated line item details.");
49
+ const nusiiProposalsUpdateLineItem = require_action.action("NUSII_PROPOSALS_UPDATE_LINE_ITEM", {
50
+ slug: "nusii_proposals-update-line-item",
51
+ name: "Update Line Item",
52
+ description: "Tool to update an existing line item in Nusii proposals. Use when modifying line item details such as name, amount, cost type, or position. All update parameters are optional - only include the fields you want to change.",
53
+ input: NusiiProposalsUpdateLineItemInput,
54
+ output: NusiiProposalsUpdateLineItemOutput
55
+ });
56
+ //#endregion
57
+ exports.nusiiProposalsUpdateLineItem = nusiiProposalsUpdateLineItem;
58
+
59
+ //# sourceMappingURL=update-line-item.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-line-item.cjs","names":["z","action"],"sources":["../../src/actions/update-line-item.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NusiiProposalsUpdateLineItemInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The line item ID to update\"),\n name: z.string().describe(\"Body/description of the line item\").optional(),\n amount: z.number().int().describe(\"Price in cents (e.g., 10000 for $100.00)\").optional(),\n per_type: z.enum([\"year\", \"month\", \"week\", \"day\", \"hour\", \"item\", \"unit\"]).describe(\"For per-unit costs - specifies the unit type. Only valid when cost_type is 'per'\").optional(),\n position: z.number().int().describe(\"Order within the section, must be non-negative\").optional(),\n quantity: z.number().int().describe(\"Multiplier for per-type costs (total = quantity × amount), must be at least 1\").optional(),\n cost_type: z.enum([\"fixed\", \"recurring\", \"per\"]).describe(\"Cost structure - valid values: 'fixed' (one-time), 'recurring' (repeating), or 'per' (per-unit)\").optional(),\n recurring_type: z.enum([\"yearly\", \"semiannually\", \"trimester\", \"monthly\", \"weekly\", \"daily\", \"hourly\"]).describe(\"For recurring costs - specifies the recurrence frequency. Only valid when cost_type is 'recurring'\").optional(),\n}).describe(\"Request model for updating a line item in Nusii proposals.\");\nexport const NusiiProposalsUpdateLineItemOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique line item identifier\").nullable().optional(),\n name: z.string().describe(\"Line item description\").nullable().optional(),\n type: z.string().describe(\"Resource type (typically 'line_items')\").nullable().optional(),\n currency: z.string().describe(\"Three-letter currency code (e.g., 'USD')\").nullable().optional(),\n position: z.number().int().describe(\"Display order in section\").nullable().optional(),\n cost_type: z.string().describe(\"Pricing model type ('fixed', 'recurring', or 'per')\").nullable().optional(),\n created_at: z.string().describe(\"Creation timestamp\").nullable().optional(),\n section_id: z.number().int().describe(\"Associated section ID\").nullable().optional(),\n updated_at: z.string().describe(\"Last modification timestamp\").nullable().optional(),\n total_in_cents: z.number().int().describe(\"Final amount (quantity × amount)\").nullable().optional(),\n amount_in_cents: z.number().int().describe(\"Unit price in cents\").nullable().optional(),\n total_formatted: z.string().describe(\"Formatted total with currency\").nullable().optional(),\n amount_formatted: z.string().describe(\"Localized currency display\").nullable().optional(),\n}).describe(\"Response model for updated line item details.\");\n\nexport const nusiiProposalsUpdateLineItem = action(\"NUSII_PROPOSALS_UPDATE_LINE_ITEM\", {\n slug: \"nusii_proposals-update-line-item\",\n name: \"Update Line Item\",\n description: \"Tool to update an existing line item in Nusii proposals. Use when modifying line item details such as name, amount, cost type, or position. All update parameters are optional - only include the fields you want to change.\",\n input: NusiiProposalsUpdateLineItemInput,\n output: NusiiProposalsUpdateLineItemOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAkDA,IAAAA,EAAE,OAAO;CACtE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;CACpD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACxE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACvF,UAAUA,IAAAA,EAAE,KAAK;EAAC;EAAQ;EAAS;EAAQ;EAAO;EAAQ;EAAQ;CAAM,CAAC,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;CACjL,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CAC/F,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;CAC9H,WAAWA,IAAAA,EAAE,KAAK;EAAC;EAAS;EAAa;CAAK,CAAC,CAAC,CAAC,SAAS,iGAAiG,CAAC,C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SAAS;CAClG,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1F,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAE3D,MAAa,+BAA+BC,eAAAA,OAAO,oCAAoC;CACrF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/update-line-item.d.ts
4
+ declare const NusiiProposalsUpdateLineItemInput: z.ZodTypeAny;
5
+ declare const NusiiProposalsUpdateLineItemOutput: z.ZodTypeAny;
6
+ declare const nusiiProposalsUpdateLineItem: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { nusiiProposalsUpdateLineItem };
9
+ //# sourceMappingURL=update-line-item.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-line-item.d.cts","names":[],"sources":["../../src/actions/update-line-item.ts"],"mappings":";;;cAIa,iCAAA,EAAmC,CAAA,CAAE,UASuB;AAAA,cAC5D,kCAAA,EAAoC,CAAA,CAAE,UAcS;AAAA,cAE/C,4BAAA,gCAA4B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/update-line-item.d.ts
4
+ declare const NusiiProposalsUpdateLineItemInput: z.ZodTypeAny;
5
+ declare const NusiiProposalsUpdateLineItemOutput: z.ZodTypeAny;
6
+ declare const nusiiProposalsUpdateLineItem: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { nusiiProposalsUpdateLineItem };
9
+ //# sourceMappingURL=update-line-item.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-line-item.d.mts","names":[],"sources":["../../src/actions/update-line-item.ts"],"mappings":";;;cAIa,iCAAA,EAAmC,CAAA,CAAE,UASuB;AAAA,cAC5D,kCAAA,EAAoC,CAAA,CAAE,UAcS;AAAA,cAE/C,4BAAA,gCAA4B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,56 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ const nusiiProposalsUpdateLineItem = action("NUSII_PROPOSALS_UPDATE_LINE_ITEM", {
4
+ slug: "nusii_proposals-update-line-item",
5
+ name: "Update Line Item",
6
+ description: "Tool to update an existing line item in Nusii proposals. Use when modifying line item details such as name, amount, cost type, or position. All update parameters are optional - only include the fields you want to change.",
7
+ input: z.object({
8
+ id: z.string().describe("The line item ID to update"),
9
+ name: z.string().describe("Body/description of the line item").optional(),
10
+ amount: z.number().int().describe("Price in cents (e.g., 10000 for $100.00)").optional(),
11
+ per_type: z.enum([
12
+ "year",
13
+ "month",
14
+ "week",
15
+ "day",
16
+ "hour",
17
+ "item",
18
+ "unit"
19
+ ]).describe("For per-unit costs - specifies the unit type. Only valid when cost_type is 'per'").optional(),
20
+ position: z.number().int().describe("Order within the section, must be non-negative").optional(),
21
+ quantity: z.number().int().describe("Multiplier for per-type costs (total = quantity × amount), must be at least 1").optional(),
22
+ cost_type: z.enum([
23
+ "fixed",
24
+ "recurring",
25
+ "per"
26
+ ]).describe("Cost structure - valid values: 'fixed' (one-time), 'recurring' (repeating), or 'per' (per-unit)").optional(),
27
+ recurring_type: z.enum([
28
+ "yearly",
29
+ "semiannually",
30
+ "trimester",
31
+ "monthly",
32
+ "weekly",
33
+ "daily",
34
+ "hourly"
35
+ ]).describe("For recurring costs - specifies the recurrence frequency. Only valid when cost_type is 'recurring'").optional()
36
+ }).describe("Request model for updating a line item in Nusii proposals."),
37
+ output: z.object({
38
+ id: z.string().describe("Unique line item identifier").nullable().optional(),
39
+ name: z.string().describe("Line item description").nullable().optional(),
40
+ type: z.string().describe("Resource type (typically 'line_items')").nullable().optional(),
41
+ currency: z.string().describe("Three-letter currency code (e.g., 'USD')").nullable().optional(),
42
+ position: z.number().int().describe("Display order in section").nullable().optional(),
43
+ cost_type: z.string().describe("Pricing model type ('fixed', 'recurring', or 'per')").nullable().optional(),
44
+ created_at: z.string().describe("Creation timestamp").nullable().optional(),
45
+ section_id: z.number().int().describe("Associated section ID").nullable().optional(),
46
+ updated_at: z.string().describe("Last modification timestamp").nullable().optional(),
47
+ total_in_cents: z.number().int().describe("Final amount (quantity × amount)").nullable().optional(),
48
+ amount_in_cents: z.number().int().describe("Unit price in cents").nullable().optional(),
49
+ total_formatted: z.string().describe("Formatted total with currency").nullable().optional(),
50
+ amount_formatted: z.string().describe("Localized currency display").nullable().optional()
51
+ }).describe("Response model for updated line item details.")
52
+ });
53
+ //#endregion
54
+ export { nusiiProposalsUpdateLineItem };
55
+
56
+ //# sourceMappingURL=update-line-item.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-line-item.mjs","names":[],"sources":["../../src/actions/update-line-item.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NusiiProposalsUpdateLineItemInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The line item ID to update\"),\n name: z.string().describe(\"Body/description of the line item\").optional(),\n amount: z.number().int().describe(\"Price in cents (e.g., 10000 for $100.00)\").optional(),\n per_type: z.enum([\"year\", \"month\", \"week\", \"day\", \"hour\", \"item\", \"unit\"]).describe(\"For per-unit costs - specifies the unit type. Only valid when cost_type is 'per'\").optional(),\n position: z.number().int().describe(\"Order within the section, must be non-negative\").optional(),\n quantity: z.number().int().describe(\"Multiplier for per-type costs (total = quantity × amount), must be at least 1\").optional(),\n cost_type: z.enum([\"fixed\", \"recurring\", \"per\"]).describe(\"Cost structure - valid values: 'fixed' (one-time), 'recurring' (repeating), or 'per' (per-unit)\").optional(),\n recurring_type: z.enum([\"yearly\", \"semiannually\", \"trimester\", \"monthly\", \"weekly\", \"daily\", \"hourly\"]).describe(\"For recurring costs - specifies the recurrence frequency. Only valid when cost_type is 'recurring'\").optional(),\n}).describe(\"Request model for updating a line item in Nusii proposals.\");\nexport const NusiiProposalsUpdateLineItemOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique line item identifier\").nullable().optional(),\n name: z.string().describe(\"Line item description\").nullable().optional(),\n type: z.string().describe(\"Resource type (typically 'line_items')\").nullable().optional(),\n currency: z.string().describe(\"Three-letter currency code (e.g., 'USD')\").nullable().optional(),\n position: z.number().int().describe(\"Display order in section\").nullable().optional(),\n cost_type: z.string().describe(\"Pricing model type ('fixed', 'recurring', or 'per')\").nullable().optional(),\n created_at: z.string().describe(\"Creation timestamp\").nullable().optional(),\n section_id: z.number().int().describe(\"Associated section ID\").nullable().optional(),\n updated_at: z.string().describe(\"Last modification timestamp\").nullable().optional(),\n total_in_cents: z.number().int().describe(\"Final amount (quantity × amount)\").nullable().optional(),\n amount_in_cents: z.number().int().describe(\"Unit price in cents\").nullable().optional(),\n total_formatted: z.string().describe(\"Formatted total with currency\").nullable().optional(),\n amount_formatted: z.string().describe(\"Localized currency display\").nullable().optional(),\n}).describe(\"Response model for updated line item details.\");\n\nexport const nusiiProposalsUpdateLineItem = action(\"NUSII_PROPOSALS_UPDATE_LINE_ITEM\", {\n slug: \"nusii_proposals-update-line-item\",\n name: \"Update Line Item\",\n description: \"Tool to update an existing line item in Nusii proposals. Use when modifying line item details such as name, amount, cost type, or position. All update parameters are optional - only include the fields you want to change.\",\n input: NusiiProposalsUpdateLineItemInput,\n output: NusiiProposalsUpdateLineItemOutput,\n});\n"],"mappings":";;AA8BA,MAAa,+BAA+B,OAAO,oCAAoC;CACrF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA9B6D,EAAE,OAAO;EACtE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;EACpD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EACxE,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;EACvF,UAAU,EAAE,KAAK;GAAC;GAAQ;GAAS;GAAQ;GAAO;GAAQ;GAAQ;EAAM,CAAC,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;EACjL,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;EAC/F,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;EAC9H,WAAW,EAAE,KAAK;GAAC;GAAS;GAAa;EAAK,CAAC,CAAC,CAAC,SAAS,iGAAiG,CAAC,CAAC,SAAS;EACtK,gBAAgB,EAAE,KAAK;GAAC;GAAU;GAAgB;GAAa;GAAW;GAAU;GAAS;EAAQ,CAAC,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;CAClO,CAAC,CAAC,CAAC,SAAS,4DAqBH;CACP,QArB8D,EAAE,OAAO;EACvE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9F,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1G,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1E,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnF,gBAAgB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClG,iBAAiB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtF,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1F,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,CAAC,CAAC,CAAC,SAAS,+CAOF;AACV,CAAC"}
@@ -0,0 +1,55 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/update-proposal.ts
4
+ const NusiiProposalsUpdateProposalInput = zod.z.object({
5
+ id: zod.z.string().describe("The unique identifier of the proposal to update"),
6
+ theme: zod.z.string().describe("Visual design template for the proposal").optional(),
7
+ title: zod.z.string().describe("Heading text for the proposal").optional(),
8
+ report: zod.z.boolean().describe("Converts the proposal into a report format; defaults to false").optional(),
9
+ client_id: zod.z.string().describe("Identifier linking to the client record").optional(),
10
+ expires_at: zod.z.string().describe("Expiration date/time for the proposal in ISO 8601 format").optional(),
11
+ client_email: zod.z.string().describe("Fetches the client associated with that email. It creates a new client if there is no client with that email. This is ignored when client_id is set.").optional(),
12
+ display_date: zod.z.string().describe("By default the date displayed on the proposal is the sent date. This can be overwritten with the display_date in ISO 8601 format").optional(),
13
+ exclude_total: zod.z.boolean().describe("Removes the total from display; defaults to false").optional(),
14
+ prepared_by_id: zod.z.string().describe("User identifier for who created the proposal").optional(),
15
+ exclude_total_in_pdf: zod.z.boolean().describe("Removes the total from the PDF output; defaults to false").optional(),
16
+ document_section_title: zod.z.string().describe("Heading for the documents section").optional()
17
+ });
18
+ const NusiiProposalsUpdateProposal_ProposalAttributesSchema = zod.z.object({
19
+ theme: zod.z.string().describe("Visual design template").nullable().optional(),
20
+ title: zod.z.string().describe("Heading text for the proposal").nullable().optional(),
21
+ report: zod.z.boolean().describe("Whether the proposal is in report format").nullable().optional(),
22
+ status: zod.z.string().describe("Current status of the proposal").nullable().optional(),
23
+ currency: zod.z.string().describe("Currency used in the proposal").nullable().optional(),
24
+ client_id: zod.z.unknown().describe("Client identifier").nullable().optional(),
25
+ public_id: zod.z.string().describe("Public identifier for the proposal").nullable().optional(),
26
+ sender_id: zod.z.unknown().describe("Sender identifier").nullable().optional(),
27
+ account_id: zod.z.unknown().describe("Account identifier").nullable().optional(),
28
+ created_at: zod.z.string().describe("Creation timestamp").nullable().optional(),
29
+ expires_at: zod.z.string().describe("Expiration timestamp").nullable().optional(),
30
+ updated_at: zod.z.string().describe("Last update timestamp").nullable().optional(),
31
+ display_date: zod.z.string().describe("Display date for proposal").nullable().optional(),
32
+ exclude_total: zod.z.boolean().describe("Whether total is excluded from display").nullable().optional(),
33
+ prepared_by_id: zod.z.unknown().describe("User identifier for who created the proposal").nullable().optional(),
34
+ exclude_total_in_pdf: zod.z.boolean().describe("Whether total is excluded from PDF").nullable().optional(),
35
+ document_section_title: zod.z.string().describe("Heading for the documents section").nullable().optional()
36
+ });
37
+ const NusiiProposalsUpdateProposal_ProposalRelationshipsSchema = zod.z.object({ sections: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Associated sections of the proposal").nullable().optional() });
38
+ const NusiiProposalsUpdateProposal_ProposalDataSchema = zod.z.object({
39
+ id: zod.z.string().describe("Unique identifier for the proposal"),
40
+ type: zod.z.string().describe("Resource type (proposals)"),
41
+ attributes: NusiiProposalsUpdateProposal_ProposalAttributesSchema.nullable().optional(),
42
+ relationships: NusiiProposalsUpdateProposal_ProposalRelationshipsSchema.nullable().optional()
43
+ });
44
+ const NusiiProposalsUpdateProposalOutput = zod.z.object({ data: NusiiProposalsUpdateProposal_ProposalDataSchema.nullable() });
45
+ const nusiiProposalsUpdateProposal = require_action.action("NUSII_PROPOSALS_UPDATE_PROPOSAL", {
46
+ slug: "nusii_proposals-update-proposal",
47
+ name: "Update Proposal",
48
+ description: "Tool to update an existing proposal in Nusii. Use when you need to modify proposal details like title, client, expiration date, or display settings.",
49
+ input: NusiiProposalsUpdateProposalInput,
50
+ output: NusiiProposalsUpdateProposalOutput
51
+ });
52
+ //#endregion
53
+ exports.nusiiProposalsUpdateProposal = nusiiProposalsUpdateProposal;
54
+
55
+ //# sourceMappingURL=update-proposal.cjs.map