@keystrokehq/servicem8 0.1.3 → 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 (237) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/create-job-note.cjs +1 -0
  4. package/dist/actions/create-job-note.cjs.map +1 -1
  5. package/dist/actions/create-job-note.d.cts +3 -10
  6. package/dist/actions/create-job-note.d.cts.map +1 -1
  7. package/dist/actions/create-job-note.d.mts +3 -10
  8. package/dist/actions/create-job-note.d.mts.map +1 -1
  9. package/dist/actions/create-job-note.mjs +1 -0
  10. package/dist/actions/create-job-note.mjs.map +1 -1
  11. package/dist/actions/create-job-payment.cjs +1 -0
  12. package/dist/actions/create-job-payment.cjs.map +1 -1
  13. package/dist/actions/create-job-payment.d.cts +3 -13
  14. package/dist/actions/create-job-payment.d.cts.map +1 -1
  15. package/dist/actions/create-job-payment.d.mts +3 -13
  16. package/dist/actions/create-job-payment.d.mts.map +1 -1
  17. package/dist/actions/create-job-payment.mjs +1 -0
  18. package/dist/actions/create-job-payment.mjs.map +1 -1
  19. package/dist/actions/create-jobs.cjs +1 -0
  20. package/dist/actions/create-jobs.cjs.map +1 -1
  21. package/dist/actions/create-jobs.d.cts +3 -13
  22. package/dist/actions/create-jobs.d.cts.map +1 -1
  23. package/dist/actions/create-jobs.d.mts +3 -13
  24. package/dist/actions/create-jobs.d.mts.map +1 -1
  25. package/dist/actions/create-jobs.mjs +1 -0
  26. package/dist/actions/create-jobs.mjs.map +1 -1
  27. package/dist/actions/delete-custom-field.cjs +1 -0
  28. package/dist/actions/delete-custom-field.cjs.map +1 -1
  29. package/dist/actions/delete-custom-field.d.cts +3 -3
  30. package/dist/actions/delete-custom-field.d.cts.map +1 -1
  31. package/dist/actions/delete-custom-field.d.mts +3 -3
  32. package/dist/actions/delete-custom-field.d.mts.map +1 -1
  33. package/dist/actions/delete-custom-field.mjs +1 -0
  34. package/dist/actions/delete-custom-field.mjs.map +1 -1
  35. package/dist/actions/delete-job-note.cjs +1 -0
  36. package/dist/actions/delete-job-note.cjs.map +1 -1
  37. package/dist/actions/delete-job-note.d.cts +3 -3
  38. package/dist/actions/delete-job-note.d.cts.map +1 -1
  39. package/dist/actions/delete-job-note.d.mts +3 -3
  40. package/dist/actions/delete-job-note.d.mts.map +1 -1
  41. package/dist/actions/delete-job-note.mjs +1 -0
  42. package/dist/actions/delete-job-note.mjs.map +1 -1
  43. package/dist/actions/delete-job-payment.cjs +1 -0
  44. package/dist/actions/delete-job-payment.cjs.map +1 -1
  45. package/dist/actions/delete-job-payment.d.cts +3 -3
  46. package/dist/actions/delete-job-payment.d.cts.map +1 -1
  47. package/dist/actions/delete-job-payment.d.mts +3 -3
  48. package/dist/actions/delete-job-payment.d.mts.map +1 -1
  49. package/dist/actions/delete-job-payment.mjs +1 -0
  50. package/dist/actions/delete-job-payment.mjs.map +1 -1
  51. package/dist/actions/list-all-assets.cjs +1 -0
  52. package/dist/actions/list-all-assets.cjs.map +1 -1
  53. package/dist/actions/list-all-assets.d.cts +3 -3
  54. package/dist/actions/list-all-assets.d.cts.map +1 -1
  55. package/dist/actions/list-all-assets.d.mts +3 -3
  56. package/dist/actions/list-all-assets.d.mts.map +1 -1
  57. package/dist/actions/list-all-assets.mjs +1 -0
  58. package/dist/actions/list-all-assets.mjs.map +1 -1
  59. package/dist/actions/list-all-clients.cjs +1 -0
  60. package/dist/actions/list-all-clients.cjs.map +1 -1
  61. package/dist/actions/list-all-clients.d.cts +3 -3
  62. package/dist/actions/list-all-clients.d.cts.map +1 -1
  63. package/dist/actions/list-all-clients.d.mts +3 -3
  64. package/dist/actions/list-all-clients.d.mts.map +1 -1
  65. package/dist/actions/list-all-clients.mjs +1 -0
  66. package/dist/actions/list-all-clients.mjs.map +1 -1
  67. package/dist/actions/list-all-document-templates.cjs +1 -0
  68. package/dist/actions/list-all-document-templates.cjs.map +1 -1
  69. package/dist/actions/list-all-document-templates.d.cts +3 -4
  70. package/dist/actions/list-all-document-templates.d.cts.map +1 -1
  71. package/dist/actions/list-all-document-templates.d.mts +3 -4
  72. package/dist/actions/list-all-document-templates.d.mts.map +1 -1
  73. package/dist/actions/list-all-document-templates.mjs +1 -0
  74. package/dist/actions/list-all-document-templates.mjs.map +1 -1
  75. package/dist/actions/list-all-forms.cjs +1 -0
  76. package/dist/actions/list-all-forms.cjs.map +1 -1
  77. package/dist/actions/list-all-forms.d.cts +3 -3
  78. package/dist/actions/list-all-forms.d.cts.map +1 -1
  79. package/dist/actions/list-all-forms.d.mts +3 -3
  80. package/dist/actions/list-all-forms.d.mts.map +1 -1
  81. package/dist/actions/list-all-forms.mjs +1 -0
  82. package/dist/actions/list-all-forms.mjs.map +1 -1
  83. package/dist/actions/list-all-job-notes.cjs +1 -0
  84. package/dist/actions/list-all-job-notes.cjs.map +1 -1
  85. package/dist/actions/list-all-job-notes.d.cts +3 -4
  86. package/dist/actions/list-all-job-notes.d.cts.map +1 -1
  87. package/dist/actions/list-all-job-notes.d.mts +3 -4
  88. package/dist/actions/list-all-job-notes.d.mts.map +1 -1
  89. package/dist/actions/list-all-job-notes.mjs +1 -0
  90. package/dist/actions/list-all-job-notes.mjs.map +1 -1
  91. package/dist/actions/list-all-job-queues.cjs +1 -0
  92. package/dist/actions/list-all-job-queues.cjs.map +1 -1
  93. package/dist/actions/list-all-job-queues.d.cts +3 -1
  94. package/dist/actions/list-all-job-queues.d.cts.map +1 -1
  95. package/dist/actions/list-all-job-queues.d.mts +3 -1
  96. package/dist/actions/list-all-job-queues.d.mts.map +1 -1
  97. package/dist/actions/list-all-job-queues.mjs +1 -0
  98. package/dist/actions/list-all-job-queues.mjs.map +1 -1
  99. package/dist/actions/list-all-jobs.cjs +1 -0
  100. package/dist/actions/list-all-jobs.cjs.map +1 -1
  101. package/dist/actions/list-all-jobs.d.cts +3 -3
  102. package/dist/actions/list-all-jobs.d.cts.map +1 -1
  103. package/dist/actions/list-all-jobs.d.mts +3 -3
  104. package/dist/actions/list-all-jobs.d.mts.map +1 -1
  105. package/dist/actions/list-all-jobs.mjs +1 -0
  106. package/dist/actions/list-all-jobs.mjs.map +1 -1
  107. package/dist/actions/list-all-locations.cjs +1 -0
  108. package/dist/actions/list-all-locations.cjs.map +1 -1
  109. package/dist/actions/list-all-locations.d.cts +3 -3
  110. package/dist/actions/list-all-locations.d.cts.map +1 -1
  111. package/dist/actions/list-all-locations.d.mts +3 -3
  112. package/dist/actions/list-all-locations.d.mts.map +1 -1
  113. package/dist/actions/list-all-locations.mjs +1 -0
  114. package/dist/actions/list-all-locations.mjs.map +1 -1
  115. package/dist/actions/list-all-materials.cjs +1 -0
  116. package/dist/actions/list-all-materials.cjs.map +1 -1
  117. package/dist/actions/list-all-materials.d.cts +3 -3
  118. package/dist/actions/list-all-materials.d.cts.map +1 -1
  119. package/dist/actions/list-all-materials.d.mts +3 -3
  120. package/dist/actions/list-all-materials.d.mts.map +1 -1
  121. package/dist/actions/list-all-materials.mjs +1 -0
  122. package/dist/actions/list-all-materials.mjs.map +1 -1
  123. package/dist/actions/list-all-tasks.cjs +1 -0
  124. package/dist/actions/list-all-tasks.cjs.map +1 -1
  125. package/dist/actions/list-all-tasks.d.cts +3 -4
  126. package/dist/actions/list-all-tasks.d.cts.map +1 -1
  127. package/dist/actions/list-all-tasks.d.mts +3 -4
  128. package/dist/actions/list-all-tasks.d.mts.map +1 -1
  129. package/dist/actions/list-all-tasks.mjs +1 -0
  130. package/dist/actions/list-all-tasks.mjs.map +1 -1
  131. package/dist/actions/retrieve-client.cjs +1 -0
  132. package/dist/actions/retrieve-client.cjs.map +1 -1
  133. package/dist/actions/retrieve-client.d.cts +3 -3
  134. package/dist/actions/retrieve-client.d.cts.map +1 -1
  135. package/dist/actions/retrieve-client.d.mts +3 -3
  136. package/dist/actions/retrieve-client.d.mts.map +1 -1
  137. package/dist/actions/retrieve-client.mjs +1 -0
  138. package/dist/actions/retrieve-client.mjs.map +1 -1
  139. package/dist/actions/retrieve-form.cjs +1 -0
  140. package/dist/actions/retrieve-form.cjs.map +1 -1
  141. package/dist/actions/retrieve-form.d.cts +3 -3
  142. package/dist/actions/retrieve-form.d.cts.map +1 -1
  143. package/dist/actions/retrieve-form.d.mts +3 -3
  144. package/dist/actions/retrieve-form.d.mts.map +1 -1
  145. package/dist/actions/retrieve-form.mjs +1 -0
  146. package/dist/actions/retrieve-form.mjs.map +1 -1
  147. package/dist/actions/retrieve-job-activity.cjs +1 -0
  148. package/dist/actions/retrieve-job-activity.cjs.map +1 -1
  149. package/dist/actions/retrieve-job-activity.d.cts +3 -3
  150. package/dist/actions/retrieve-job-activity.d.cts.map +1 -1
  151. package/dist/actions/retrieve-job-activity.d.mts +3 -3
  152. package/dist/actions/retrieve-job-activity.d.mts.map +1 -1
  153. package/dist/actions/retrieve-job-activity.mjs +1 -0
  154. package/dist/actions/retrieve-job-activity.mjs.map +1 -1
  155. package/dist/actions/retrieve-job-note.cjs +1 -0
  156. package/dist/actions/retrieve-job-note.cjs.map +1 -1
  157. package/dist/actions/retrieve-job-note.d.cts +3 -3
  158. package/dist/actions/retrieve-job-note.d.cts.map +1 -1
  159. package/dist/actions/retrieve-job-note.d.mts +3 -3
  160. package/dist/actions/retrieve-job-note.d.mts.map +1 -1
  161. package/dist/actions/retrieve-job-note.mjs +1 -0
  162. package/dist/actions/retrieve-job-note.mjs.map +1 -1
  163. package/dist/actions/retrieve-job-payment.cjs +1 -0
  164. package/dist/actions/retrieve-job-payment.cjs.map +1 -1
  165. package/dist/actions/retrieve-job-payment.d.cts +3 -3
  166. package/dist/actions/retrieve-job-payment.d.cts.map +1 -1
  167. package/dist/actions/retrieve-job-payment.d.mts +3 -3
  168. package/dist/actions/retrieve-job-payment.d.mts.map +1 -1
  169. package/dist/actions/retrieve-job-payment.mjs +1 -0
  170. package/dist/actions/retrieve-job-payment.mjs.map +1 -1
  171. package/dist/actions/retrieve-job-queue.cjs +1 -0
  172. package/dist/actions/retrieve-job-queue.cjs.map +1 -1
  173. package/dist/actions/retrieve-job-queue.d.cts +3 -3
  174. package/dist/actions/retrieve-job-queue.d.cts.map +1 -1
  175. package/dist/actions/retrieve-job-queue.d.mts +3 -3
  176. package/dist/actions/retrieve-job-queue.d.mts.map +1 -1
  177. package/dist/actions/retrieve-job-queue.mjs +1 -0
  178. package/dist/actions/retrieve-job-queue.mjs.map +1 -1
  179. package/dist/actions/retrieve-job.cjs +1 -0
  180. package/dist/actions/retrieve-job.cjs.map +1 -1
  181. package/dist/actions/retrieve-job.d.cts +3 -3
  182. package/dist/actions/retrieve-job.d.cts.map +1 -1
  183. package/dist/actions/retrieve-job.d.mts +3 -3
  184. package/dist/actions/retrieve-job.d.mts.map +1 -1
  185. package/dist/actions/retrieve-job.mjs +1 -0
  186. package/dist/actions/retrieve-job.mjs.map +1 -1
  187. package/dist/actions/retrieve-location.cjs +1 -0
  188. package/dist/actions/retrieve-location.cjs.map +1 -1
  189. package/dist/actions/retrieve-location.d.cts +3 -3
  190. package/dist/actions/retrieve-location.d.cts.map +1 -1
  191. package/dist/actions/retrieve-location.d.mts +3 -3
  192. package/dist/actions/retrieve-location.d.mts.map +1 -1
  193. package/dist/actions/retrieve-location.mjs +1 -0
  194. package/dist/actions/retrieve-location.mjs.map +1 -1
  195. package/dist/actions/retrieve-material.cjs +1 -0
  196. package/dist/actions/retrieve-material.cjs.map +1 -1
  197. package/dist/actions/retrieve-material.d.cts +3 -3
  198. package/dist/actions/retrieve-material.d.cts.map +1 -1
  199. package/dist/actions/retrieve-material.d.mts +3 -3
  200. package/dist/actions/retrieve-material.d.mts.map +1 -1
  201. package/dist/actions/retrieve-material.mjs +1 -0
  202. package/dist/actions/retrieve-material.mjs.map +1 -1
  203. package/dist/actions/retrieve-staff-member.cjs +1 -0
  204. package/dist/actions/retrieve-staff-member.cjs.map +1 -1
  205. package/dist/actions/retrieve-staff-member.d.cts +3 -3
  206. package/dist/actions/retrieve-staff-member.d.cts.map +1 -1
  207. package/dist/actions/retrieve-staff-member.d.mts +3 -3
  208. package/dist/actions/retrieve-staff-member.d.mts.map +1 -1
  209. package/dist/actions/retrieve-staff-member.mjs +1 -0
  210. package/dist/actions/retrieve-staff-member.mjs.map +1 -1
  211. package/dist/actions/update-job-note.cjs +1 -0
  212. package/dist/actions/update-job-note.cjs.map +1 -1
  213. package/dist/actions/update-job-note.d.cts +3 -6
  214. package/dist/actions/update-job-note.d.cts.map +1 -1
  215. package/dist/actions/update-job-note.d.mts +3 -6
  216. package/dist/actions/update-job-note.d.mts.map +1 -1
  217. package/dist/actions/update-job-note.mjs +1 -0
  218. package/dist/actions/update-job-note.mjs.map +1 -1
  219. package/dist/actions/update-job-payment.cjs +1 -0
  220. package/dist/actions/update-job-payment.cjs.map +1 -1
  221. package/dist/actions/update-job-payment.d.cts +3 -11
  222. package/dist/actions/update-job-payment.d.cts.map +1 -1
  223. package/dist/actions/update-job-payment.d.mts +3 -11
  224. package/dist/actions/update-job-payment.d.mts.map +1 -1
  225. package/dist/actions/update-job-payment.mjs +1 -0
  226. package/dist/actions/update-job-payment.mjs.map +1 -1
  227. package/dist/app.cjs +5 -2
  228. package/dist/app.cjs.map +1 -1
  229. package/dist/app.d.cts +7 -1
  230. package/dist/app.d.cts.map +1 -1
  231. package/dist/app.d.mts +7 -1
  232. package/dist/app.d.mts.map +1 -1
  233. package/dist/app.mjs +3 -2
  234. package/dist/app.mjs.map +1 -1
  235. package/dist/index.d.cts +1 -1
  236. package/dist/index.d.mts +1 -1
  237. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"delete-job-payment.cjs","names":["z","action"],"sources":["../../src/actions/delete-job-payment.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8DeleteJobPaymentInput = z.object({\n uuid: z.string().describe(\"The UUID of the job payment to delete (archive). In ServiceM8, deletion is a soft delete that sets the record's active field to 0, hiding it from the UI but keeping it accessible via API.\"),\n}).describe(\"Request model for deleting (archiving) a ServiceM8 Job Payment by UUID.\");\nexport const Servicem8DeleteJobPaymentOutput = z.object({\n uuid: z.string().describe(\"UUID of the job payment that was archived.\").nullable(),\n message: z.string().describe(\"Human-readable message describing the result of the operation.\").nullable(),\n success: z.boolean().describe(\"True if the job payment was successfully archived.\").nullable(),\n}).passthrough().describe(\"Response model confirming the job payment was successfully archived.\");\n\nexport const servicem8DeleteJobPayment = action(\"SERVICEM8_DELETE_JOB_PAYMENT\", {\n slug: \"servicem8-delete-job-payment\",\n name: \"Delete Job Payment\",\n description: \"Archives (soft-deletes) a job payment record in ServiceM8 by its UUID. In ServiceM8, records are never permanently deleted. Instead, deletion sets the record's 'active' field to 0, which hides it from the UI but keeps it accessible via the API. Archived records can be restored by setting their 'active' field back to 1. Use this tool when you need to remove a payment record from active use, such as when a payment was recorded in error or needs to be voided. Requires the 'manage_job_payments' OAuth scope.\",\n input: Servicem8DeleteJobPaymentInput,\n output: Servicem8DeleteJobPaymentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO,EACrD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6LAA6L,EACzN,CAAC,CAAC,CAAC,SAAS,yEAAyE;AACrF,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACjF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CACxG,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sEAAsE;AAEhG,MAAa,4BAA4BC,eAAAA,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"delete-job-payment.cjs","names":["z","action"],"sources":["../../src/actions/delete-job-payment.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { servicem8 } from \"../app\";\n\nexport const Servicem8DeleteJobPaymentInput = z.object({\n uuid: z.string().describe(\"The UUID of the job payment to delete (archive). In ServiceM8, deletion is a soft delete that sets the record's active field to 0, hiding it from the UI but keeping it accessible via API.\"),\n}).describe(\"Request model for deleting (archiving) a ServiceM8 Job Payment by UUID.\");\nexport const Servicem8DeleteJobPaymentOutput = z.object({\n uuid: z.string().describe(\"UUID of the job payment that was archived.\").nullable(),\n message: z.string().describe(\"Human-readable message describing the result of the operation.\").nullable(),\n success: z.boolean().describe(\"True if the job payment was successfully archived.\").nullable(),\n}).passthrough().describe(\"Response model confirming the job payment was successfully archived.\");\n\nexport const servicem8DeleteJobPayment: AppAction<\n typeof Servicem8DeleteJobPaymentInput,\n typeof Servicem8DeleteJobPaymentOutput,\n typeof servicem8.credential\n> = action(\"SERVICEM8_DELETE_JOB_PAYMENT\", {\n slug: \"servicem8-delete-job-payment\",\n name: \"Delete Job Payment\",\n description: \"Archives (soft-deletes) a job payment record in ServiceM8 by its UUID. In ServiceM8, records are never permanently deleted. Instead, deletion sets the record's 'active' field to 0, which hides it from the UI but keeps it accessible via the API. Archived records can be restored by setting their 'active' field back to 1. Use this tool when you need to remove a payment record from active use, such as when a payment was recorded in error or needs to be voided. Requires the 'manage_job_payments' OAuth scope.\",\n input: Servicem8DeleteJobPaymentInput,\n output: Servicem8DeleteJobPaymentOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO,EACrD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6LAA6L,EACzN,CAAC,CAAC,CAAC,SAAS,yEAAyE;AACrF,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACjF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CACxG,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sEAAsE;AAEhG,MAAa,4BAITC,eAAAA,OAAO,gCAAgC;CACzC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { servicem8 } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/delete-job-payment.d.ts
@@ -9,9 +11,7 @@ declare const Servicem8DeleteJobPaymentOutput: z.ZodObject<{
9
11
  message: z.ZodNullable<z.ZodString>;
10
12
  success: z.ZodNullable<z.ZodBoolean>;
11
13
  }, z.core.$loose>;
12
- declare const servicem8DeleteJobPayment: import("@keystrokehq/action").WorkflowActionDefinition<{
13
- uuid: string;
14
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
14
+ declare const servicem8DeleteJobPayment: AppAction<typeof Servicem8DeleteJobPaymentInput, typeof Servicem8DeleteJobPaymentOutput, typeof servicem8.credential>;
15
15
  //#endregion
16
16
  export { servicem8DeleteJobPayment };
17
17
  //# sourceMappingURL=delete-job-payment.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"delete-job-payment.d.cts","names":[],"sources":["../../src/actions/delete-job-payment.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;cAG9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;cAM/B,yBAAA,gCAAyB,wBAAA"}
1
+ {"version":3,"file":"delete-job-payment.d.cts","names":[],"sources":["../../src/actions/delete-job-payment.ts"],"mappings":";;;;;cAMa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;cAG9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;cAM/B,yBAAA,EAA2B,SAAA,QAC/B,8BAAA,SACA,+BAAA,SACA,SAAA,CAAU,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { servicem8 } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/delete-job-payment.d.ts
@@ -9,9 +11,7 @@ declare const Servicem8DeleteJobPaymentOutput: z.ZodObject<{
9
11
  message: z.ZodNullable<z.ZodString>;
10
12
  success: z.ZodNullable<z.ZodBoolean>;
11
13
  }, z.core.$loose>;
12
- declare const servicem8DeleteJobPayment: import("@keystrokehq/action").WorkflowActionDefinition<{
13
- uuid: string;
14
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
14
+ declare const servicem8DeleteJobPayment: AppAction<typeof Servicem8DeleteJobPaymentInput, typeof Servicem8DeleteJobPaymentOutput, typeof servicem8.credential>;
15
15
  //#endregion
16
16
  export { servicem8DeleteJobPayment };
17
17
  //# sourceMappingURL=delete-job-payment.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"delete-job-payment.d.mts","names":[],"sources":["../../src/actions/delete-job-payment.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;cAG9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;cAM/B,yBAAA,gCAAyB,wBAAA"}
1
+ {"version":3,"file":"delete-job-payment.d.mts","names":[],"sources":["../../src/actions/delete-job-payment.ts"],"mappings":";;;;;cAMa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;cAG9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;cAM/B,yBAAA,EAA2B,SAAA,QAC/B,8BAAA,SACA,+BAAA,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 servicem8DeleteJobPayment = action("SERVICEM8_DELETE_JOB_PAYMENT", {
@@ -1 +1 @@
1
- {"version":3,"file":"delete-job-payment.mjs","names":[],"sources":["../../src/actions/delete-job-payment.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8DeleteJobPaymentInput = z.object({\n uuid: z.string().describe(\"The UUID of the job payment to delete (archive). In ServiceM8, deletion is a soft delete that sets the record's active field to 0, hiding it from the UI but keeping it accessible via API.\"),\n}).describe(\"Request model for deleting (archiving) a ServiceM8 Job Payment by UUID.\");\nexport const Servicem8DeleteJobPaymentOutput = z.object({\n uuid: z.string().describe(\"UUID of the job payment that was archived.\").nullable(),\n message: z.string().describe(\"Human-readable message describing the result of the operation.\").nullable(),\n success: z.boolean().describe(\"True if the job payment was successfully archived.\").nullable(),\n}).passthrough().describe(\"Response model confirming the job payment was successfully archived.\");\n\nexport const servicem8DeleteJobPayment = action(\"SERVICEM8_DELETE_JOB_PAYMENT\", {\n slug: \"servicem8-delete-job-payment\",\n name: \"Delete Job Payment\",\n description: \"Archives (soft-deletes) a job payment record in ServiceM8 by its UUID. In ServiceM8, records are never permanently deleted. Instead, deletion sets the record's 'active' field to 0, which hides it from the UI but keeps it accessible via the API. Archived records can be restored by setting their 'active' field back to 1. Use this tool when you need to remove a payment record from active use, such as when a payment was recorded in error or needs to be voided. Requires the 'manage_job_payments' OAuth scope.\",\n input: Servicem8DeleteJobPaymentInput,\n output: Servicem8DeleteJobPaymentOutput,\n});\n"],"mappings":";;AAaA,MAAa,4BAA4B,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAb4C,EAAE,OAAO,EACrD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6LAA6L,EACzN,CAAC,CAAC,CAAC,SAAS,yEAWH;CACP,QAX6C,EAAE,OAAO;EACtD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;EACjF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;EACxG,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sEAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"delete-job-payment.mjs","names":[],"sources":["../../src/actions/delete-job-payment.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { servicem8 } from \"../app\";\n\nexport const Servicem8DeleteJobPaymentInput = z.object({\n uuid: z.string().describe(\"The UUID of the job payment to delete (archive). In ServiceM8, deletion is a soft delete that sets the record's active field to 0, hiding it from the UI but keeping it accessible via API.\"),\n}).describe(\"Request model for deleting (archiving) a ServiceM8 Job Payment by UUID.\");\nexport const Servicem8DeleteJobPaymentOutput = z.object({\n uuid: z.string().describe(\"UUID of the job payment that was archived.\").nullable(),\n message: z.string().describe(\"Human-readable message describing the result of the operation.\").nullable(),\n success: z.boolean().describe(\"True if the job payment was successfully archived.\").nullable(),\n}).passthrough().describe(\"Response model confirming the job payment was successfully archived.\");\n\nexport const servicem8DeleteJobPayment: AppAction<\n typeof Servicem8DeleteJobPaymentInput,\n typeof Servicem8DeleteJobPaymentOutput,\n typeof servicem8.credential\n> = action(\"SERVICEM8_DELETE_JOB_PAYMENT\", {\n slug: \"servicem8-delete-job-payment\",\n name: \"Delete Job Payment\",\n description: \"Archives (soft-deletes) a job payment record in ServiceM8 by its UUID. In ServiceM8, records are never permanently deleted. Instead, deletion sets the record's 'active' field to 0, which hides it from the UI but keeps it accessible via the API. Archived records can be restored by setting their 'active' field back to 1. Use this tool when you need to remove a payment record from active use, such as when a payment was recorded in error or needs to be voided. Requires the 'manage_job_payments' OAuth scope.\",\n input: Servicem8DeleteJobPaymentInput,\n output: Servicem8DeleteJobPaymentOutput,\n});\n"],"mappings":";;;AAeA,MAAa,4BAIT,OAAO,gCAAgC;CACzC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAjB4C,EAAE,OAAO,EACrD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6LAA6L,EACzN,CAAC,CAAC,CAAC,SAAS,yEAeH;CACP,QAf6C,EAAE,OAAO;EACtD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;EACjF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;EACxG,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sEAWhB;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/list-all-assets.ts
@@ -1 +1 @@
1
- {"version":3,"file":"list-all-assets.cjs","names":["z","action"],"sources":["../../src/actions/list-all-assets.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8ListAllAssetsInput = z.object({\n filter: z.string().describe(\"OData-style filter expression to narrow down assets. Supported operators: eq (equal), ne (not equal), gt (greater than), lt (less than). Multiple conditions can be combined with 'and'. Examples: 'active eq 1', 'name eq \\\\'Pump Model X\\\\''. String values must be wrapped in single quotes.\").optional(),\n}).describe(\"Request model for listing all ServiceM8 assets. Supports optional filtering.\");\nexport const Servicem8ListAllAssetsOutput = z.unknown();\n\nexport const servicem8ListAllAssets = action(\"SERVICEM8_LIST_ALL_ASSETS\", {\n slug: \"servicem8-list-all-assets\",\n name: \"List All Assets\",\n description: \"Tool to list all ServiceM8 assets. Use when you need a comprehensive asset registry, including custom fields, for inventory or reporting.\",\n input: Servicem8ListAllAssetsInput,\n output: Servicem8ListAllAssetsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,EAClD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iSAAiS,CAAC,CAAC,SAAS,EAC1U,CAAC,CAAC,CAAC,SAAS,8EAA8E;AAC1F,MAAa,+BAA+BA,IAAAA,EAAE,QAAQ;AAEtD,MAAa,yBAAyBC,eAAAA,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"list-all-assets.cjs","names":["z","action"],"sources":["../../src/actions/list-all-assets.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { servicem8 } from \"../app\";\n\nexport const Servicem8ListAllAssetsInput = z.object({\n filter: z.string().describe(\"OData-style filter expression to narrow down assets. Supported operators: eq (equal), ne (not equal), gt (greater than), lt (less than). Multiple conditions can be combined with 'and'. Examples: 'active eq 1', 'name eq \\\\'Pump Model X\\\\''. String values must be wrapped in single quotes.\").optional(),\n}).describe(\"Request model for listing all ServiceM8 assets. Supports optional filtering.\");\nexport const Servicem8ListAllAssetsOutput = z.unknown();\n\nexport const servicem8ListAllAssets: AppAction<\n typeof Servicem8ListAllAssetsInput,\n typeof Servicem8ListAllAssetsOutput,\n typeof servicem8.credential\n> = action(\"SERVICEM8_LIST_ALL_ASSETS\", {\n slug: \"servicem8-list-all-assets\",\n name: \"List All Assets\",\n description: \"Tool to list all ServiceM8 assets. Use when you need a comprehensive asset registry, including custom fields, for inventory or reporting.\",\n input: Servicem8ListAllAssetsInput,\n output: Servicem8ListAllAssetsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,EAClD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iSAAiS,CAAC,CAAC,SAAS,EAC1U,CAAC,CAAC,CAAC,SAAS,8EAA8E;AAC1F,MAAa,+BAA+BA,IAAAA,EAAE,QAAQ;AAEtD,MAAa,yBAITC,eAAAA,OAAO,6BAA6B;CACtC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { servicem8 } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/list-all-assets.d.ts
@@ -5,9 +7,7 @@ declare const Servicem8ListAllAssetsInput: z.ZodObject<{
5
7
  filter: z.ZodOptional<z.ZodString>;
6
8
  }, z.core.$strip>;
7
9
  declare const Servicem8ListAllAssetsOutput: z.ZodUnknown;
8
- declare const servicem8ListAllAssets: import("@keystrokehq/action").WorkflowActionDefinition<{
9
- filter?: string | undefined;
10
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
10
+ declare const servicem8ListAllAssets: AppAction<typeof Servicem8ListAllAssetsInput, typeof Servicem8ListAllAssetsOutput, typeof servicem8.credential>;
11
11
  //#endregion
12
12
  export { servicem8ListAllAssets };
13
13
  //# sourceMappingURL=list-all-assets.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-all-assets.d.cts","names":[],"sources":["../../src/actions/list-all-assets.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAG3B,4BAAA,EAA4B,CAAA,CAAA,UAAc;AAAA,cAE1C,sBAAA,gCAAsB,wBAAA"}
1
+ {"version":3,"file":"list-all-assets.d.cts","names":[],"sources":["../../src/actions/list-all-assets.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAG3B,4BAAA,EAA4B,CAAA,CAAA,UAAc;AAAA,cAE1C,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,SACA,SAAA,CAAU,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { servicem8 } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/list-all-assets.d.ts
@@ -5,9 +7,7 @@ declare const Servicem8ListAllAssetsInput: z.ZodObject<{
5
7
  filter: z.ZodOptional<z.ZodString>;
6
8
  }, z.core.$strip>;
7
9
  declare const Servicem8ListAllAssetsOutput: z.ZodUnknown;
8
- declare const servicem8ListAllAssets: import("@keystrokehq/action").WorkflowActionDefinition<{
9
- filter?: string | undefined;
10
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
10
+ declare const servicem8ListAllAssets: AppAction<typeof Servicem8ListAllAssetsInput, typeof Servicem8ListAllAssetsOutput, typeof servicem8.credential>;
11
11
  //#endregion
12
12
  export { servicem8ListAllAssets };
13
13
  //# sourceMappingURL=list-all-assets.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-all-assets.d.mts","names":[],"sources":["../../src/actions/list-all-assets.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAG3B,4BAAA,EAA4B,CAAA,CAAA,UAAc;AAAA,cAE1C,sBAAA,gCAAsB,wBAAA"}
1
+ {"version":3,"file":"list-all-assets.d.mts","names":[],"sources":["../../src/actions/list-all-assets.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAG3B,4BAAA,EAA4B,CAAA,CAAA,UAAc;AAAA,cAE1C,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 servicem8ListAllAssets = action("SERVICEM8_LIST_ALL_ASSETS", {
@@ -1 +1 @@
1
- {"version":3,"file":"list-all-assets.mjs","names":[],"sources":["../../src/actions/list-all-assets.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8ListAllAssetsInput = z.object({\n filter: z.string().describe(\"OData-style filter expression to narrow down assets. Supported operators: eq (equal), ne (not equal), gt (greater than), lt (less than). Multiple conditions can be combined with 'and'. Examples: 'active eq 1', 'name eq \\\\'Pump Model X\\\\''. String values must be wrapped in single quotes.\").optional(),\n}).describe(\"Request model for listing all ServiceM8 assets. Supports optional filtering.\");\nexport const Servicem8ListAllAssetsOutput = z.unknown();\n\nexport const servicem8ListAllAssets = action(\"SERVICEM8_LIST_ALL_ASSETS\", {\n slug: \"servicem8-list-all-assets\",\n name: \"List All Assets\",\n description: \"Tool to list all ServiceM8 assets. Use when you need a comprehensive asset registry, including custom fields, for inventory or reporting.\",\n input: Servicem8ListAllAssetsInput,\n output: Servicem8ListAllAssetsOutput,\n});\n"],"mappings":";;AASA,MAAa,yBAAyB,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OATyC,EAAE,OAAO,EAClD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,iSAAiS,CAAC,CAAC,SAAS,EAC1U,CAAC,CAAC,CAAC,SAAS,8EAOH;CACP,QAP0C,EAAE,QAOpC;AACV,CAAC"}
1
+ {"version":3,"file":"list-all-assets.mjs","names":[],"sources":["../../src/actions/list-all-assets.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { servicem8 } from \"../app\";\n\nexport const Servicem8ListAllAssetsInput = z.object({\n filter: z.string().describe(\"OData-style filter expression to narrow down assets. Supported operators: eq (equal), ne (not equal), gt (greater than), lt (less than). Multiple conditions can be combined with 'and'. Examples: 'active eq 1', 'name eq \\\\'Pump Model X\\\\''. String values must be wrapped in single quotes.\").optional(),\n}).describe(\"Request model for listing all ServiceM8 assets. Supports optional filtering.\");\nexport const Servicem8ListAllAssetsOutput = z.unknown();\n\nexport const servicem8ListAllAssets: AppAction<\n typeof Servicem8ListAllAssetsInput,\n typeof Servicem8ListAllAssetsOutput,\n typeof servicem8.credential\n> = action(\"SERVICEM8_LIST_ALL_ASSETS\", {\n slug: \"servicem8-list-all-assets\",\n name: \"List All Assets\",\n description: \"Tool to list all ServiceM8 assets. Use when you need a comprehensive asset registry, including custom fields, for inventory or reporting.\",\n input: Servicem8ListAllAssetsInput,\n output: Servicem8ListAllAssetsOutput,\n});\n"],"mappings":";;;AAWA,MAAa,yBAIT,OAAO,6BAA6B;CACtC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAbyC,EAAE,OAAO,EAClD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,iSAAiS,CAAC,CAAC,SAAS,EAC1U,CAAC,CAAC,CAAC,SAAS,8EAWH;CACP,QAX0C,EAAE,QAWpC;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/list-all-clients.ts
@@ -1 +1 @@
1
- {"version":3,"file":"list-all-clients.cjs","names":["z","action"],"sources":["../../src/actions/list-all-clients.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8ListAllClientsInput = z.object({\n filter: z.string().describe(\"OData-style filter expression using $filter syntax. Supported operators: eq (equal), ne (not equal), gt (greater than), lt (less than). Combine conditions with 'and' (max 10 conditions). Examples: \\\"active eq 1\\\", \\\"name eq 'Acme Corp'\\\", \\\"create_date gt '2024-01-01'\\\". Note: ge/le operators are not supported.\").optional(),\n}).describe(\"Request model for listing all ServiceM8 clients. Supports optional OData-style filtering.\");\nexport const Servicem8ListAllClientsOutput = z.unknown();\n\nexport const servicem8ListAllClients = action(\"SERVICEM8_LIST_ALL_CLIENTS\", {\n slug: \"servicem8-list-all-clients\",\n name: \"List All Clients\",\n description: \"Tool to list all ServiceM8 clients. Use when you need a complete set of customer records for integrations or reporting.\",\n input: Servicem8ListAllClientsInput,\n output: Servicem8ListAllClientsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO,EACnD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0TAA0T,CAAC,CAAC,SAAS,EACnW,CAAC,CAAC,CAAC,SAAS,2FAA2F;AACvG,MAAa,gCAAgCA,IAAAA,EAAE,QAAQ;AAEvD,MAAa,0BAA0BC,eAAAA,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"list-all-clients.cjs","names":["z","action"],"sources":["../../src/actions/list-all-clients.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { servicem8 } from \"../app\";\n\nexport const Servicem8ListAllClientsInput = z.object({\n filter: z.string().describe(\"OData-style filter expression using $filter syntax. Supported operators: eq (equal), ne (not equal), gt (greater than), lt (less than). Combine conditions with 'and' (max 10 conditions). Examples: \\\"active eq 1\\\", \\\"name eq 'Acme Corp'\\\", \\\"create_date gt '2024-01-01'\\\". Note: ge/le operators are not supported.\").optional(),\n}).describe(\"Request model for listing all ServiceM8 clients. Supports optional OData-style filtering.\");\nexport const Servicem8ListAllClientsOutput = z.unknown();\n\nexport const servicem8ListAllClients: AppAction<\n typeof Servicem8ListAllClientsInput,\n typeof Servicem8ListAllClientsOutput,\n typeof servicem8.credential\n> = action(\"SERVICEM8_LIST_ALL_CLIENTS\", {\n slug: \"servicem8-list-all-clients\",\n name: \"List All Clients\",\n description: \"Tool to list all ServiceM8 clients. Use when you need a complete set of customer records for integrations or reporting.\",\n input: Servicem8ListAllClientsInput,\n output: Servicem8ListAllClientsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO,EACnD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0TAA0T,CAAC,CAAC,SAAS,EACnW,CAAC,CAAC,CAAC,SAAS,2FAA2F;AACvG,MAAa,gCAAgCA,IAAAA,EAAE,QAAQ;AAEvD,MAAa,0BAITC,eAAAA,OAAO,8BAA8B;CACvC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { servicem8 } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/list-all-clients.d.ts
@@ -5,9 +7,7 @@ declare const Servicem8ListAllClientsInput: z.ZodObject<{
5
7
  filter: z.ZodOptional<z.ZodString>;
6
8
  }, z.core.$strip>;
7
9
  declare const Servicem8ListAllClientsOutput: z.ZodUnknown;
8
- declare const servicem8ListAllClients: import("@keystrokehq/action").WorkflowActionDefinition<{
9
- filter?: string | undefined;
10
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
10
+ declare const servicem8ListAllClients: AppAction<typeof Servicem8ListAllClientsInput, typeof Servicem8ListAllClientsOutput, typeof servicem8.credential>;
11
11
  //#endregion
12
12
  export { servicem8ListAllClients };
13
13
  //# sourceMappingURL=list-all-clients.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-all-clients.d.cts","names":[],"sources":["../../src/actions/list-all-clients.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAG5B,6BAAA,EAA6B,CAAA,CAAA,UAAc;AAAA,cAE3C,uBAAA,gCAAuB,wBAAA"}
1
+ {"version":3,"file":"list-all-clients.d.cts","names":[],"sources":["../../src/actions/list-all-clients.ts"],"mappings":";;;;;cAMa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAG5B,6BAAA,EAA6B,CAAA,CAAA,UAAc;AAAA,cAE3C,uBAAA,EAAyB,SAAA,QAC7B,4BAAA,SACA,6BAAA,SACA,SAAA,CAAU,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { servicem8 } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/list-all-clients.d.ts
@@ -5,9 +7,7 @@ declare const Servicem8ListAllClientsInput: z.ZodObject<{
5
7
  filter: z.ZodOptional<z.ZodString>;
6
8
  }, z.core.$strip>;
7
9
  declare const Servicem8ListAllClientsOutput: z.ZodUnknown;
8
- declare const servicem8ListAllClients: import("@keystrokehq/action").WorkflowActionDefinition<{
9
- filter?: string | undefined;
10
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
10
+ declare const servicem8ListAllClients: AppAction<typeof Servicem8ListAllClientsInput, typeof Servicem8ListAllClientsOutput, typeof servicem8.credential>;
11
11
  //#endregion
12
12
  export { servicem8ListAllClients };
13
13
  //# sourceMappingURL=list-all-clients.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-all-clients.d.mts","names":[],"sources":["../../src/actions/list-all-clients.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAG5B,6BAAA,EAA6B,CAAA,CAAA,UAAc;AAAA,cAE3C,uBAAA,gCAAuB,wBAAA"}
1
+ {"version":3,"file":"list-all-clients.d.mts","names":[],"sources":["../../src/actions/list-all-clients.ts"],"mappings":";;;;;cAMa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAG5B,6BAAA,EAA6B,CAAA,CAAA,UAAc;AAAA,cAE3C,uBAAA,EAAyB,SAAA,QAC7B,4BAAA,SACA,6BAAA,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 servicem8ListAllClients = action("SERVICEM8_LIST_ALL_CLIENTS", {
@@ -1 +1 @@
1
- {"version":3,"file":"list-all-clients.mjs","names":[],"sources":["../../src/actions/list-all-clients.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8ListAllClientsInput = z.object({\n filter: z.string().describe(\"OData-style filter expression using $filter syntax. Supported operators: eq (equal), ne (not equal), gt (greater than), lt (less than). Combine conditions with 'and' (max 10 conditions). Examples: \\\"active eq 1\\\", \\\"name eq 'Acme Corp'\\\", \\\"create_date gt '2024-01-01'\\\". Note: ge/le operators are not supported.\").optional(),\n}).describe(\"Request model for listing all ServiceM8 clients. Supports optional OData-style filtering.\");\nexport const Servicem8ListAllClientsOutput = z.unknown();\n\nexport const servicem8ListAllClients = action(\"SERVICEM8_LIST_ALL_CLIENTS\", {\n slug: \"servicem8-list-all-clients\",\n name: \"List All Clients\",\n description: \"Tool to list all ServiceM8 clients. Use when you need a complete set of customer records for integrations or reporting.\",\n input: Servicem8ListAllClientsInput,\n output: Servicem8ListAllClientsOutput,\n});\n"],"mappings":";;AASA,MAAa,0BAA0B,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAT0C,EAAE,OAAO,EACnD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0TAA0T,CAAC,CAAC,SAAS,EACnW,CAAC,CAAC,CAAC,SAAS,2FAOH;CACP,QAP2C,EAAE,QAOrC;AACV,CAAC"}
1
+ {"version":3,"file":"list-all-clients.mjs","names":[],"sources":["../../src/actions/list-all-clients.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { servicem8 } from \"../app\";\n\nexport const Servicem8ListAllClientsInput = z.object({\n filter: z.string().describe(\"OData-style filter expression using $filter syntax. Supported operators: eq (equal), ne (not equal), gt (greater than), lt (less than). Combine conditions with 'and' (max 10 conditions). Examples: \\\"active eq 1\\\", \\\"name eq 'Acme Corp'\\\", \\\"create_date gt '2024-01-01'\\\". Note: ge/le operators are not supported.\").optional(),\n}).describe(\"Request model for listing all ServiceM8 clients. Supports optional OData-style filtering.\");\nexport const Servicem8ListAllClientsOutput = z.unknown();\n\nexport const servicem8ListAllClients: AppAction<\n typeof Servicem8ListAllClientsInput,\n typeof Servicem8ListAllClientsOutput,\n typeof servicem8.credential\n> = action(\"SERVICEM8_LIST_ALL_CLIENTS\", {\n slug: \"servicem8-list-all-clients\",\n name: \"List All Clients\",\n description: \"Tool to list all ServiceM8 clients. Use when you need a complete set of customer records for integrations or reporting.\",\n input: Servicem8ListAllClientsInput,\n output: Servicem8ListAllClientsOutput,\n});\n"],"mappings":";;;AAWA,MAAa,0BAIT,OAAO,8BAA8B;CACvC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAb0C,EAAE,OAAO,EACnD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0TAA0T,CAAC,CAAC,SAAS,EACnW,CAAC,CAAC,CAAC,SAAS,2FAWH;CACP,QAX2C,EAAE,QAWrC;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/list-all-document-templates.ts
@@ -1 +1 @@
1
- {"version":3,"file":"list-all-document-templates.cjs","names":["z","action"],"sources":["../../src/actions/list-all-document-templates.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8ListAllDocumentTemplatesInput = z.object({\n cursor: z.string().describe(\"Pagination cursor. Use '-1' for the first page. For subsequent pages, use the value from the 'x-next-cursor' response header. If omitted, returns all templates.\").optional(),\n filter: z.string().describe(\"OData-style filter expression to narrow document templates. Examples: 'name eq \\\"Invoice\\\"', 'active eq 1', 'template_type eq \\\"Quote\\\"'.\").optional(),\n}).describe(\"Request model for listing document templates. Supports optional filtering and cursor-based pagination.\");\nexport const Servicem8ListAllDocumentTemplatesOutput = z.unknown();\n\nexport const servicem8ListAllDocumentTemplates = action(\"SERVICEM8_LIST_ALL_DOCUMENT_TEMPLATES\", {\n slug: \"servicem8-list-all-document-templates\",\n name: \"List All Document Templates\",\n description: \"Tool to list document templates. Use when you need to retrieve available template UUIDs and names before generating job documents.\",\n input: Servicem8ListAllDocumentTemplatesInput,\n output: Servicem8ListAllDocumentTemplatesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yCAAyCA,IAAAA,EAAE,OAAO;CAC7D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kKAAkK,CAAC,CAAC,SAAS;CACzM,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2IAA2I,CAAC,CAAC,SAAS;AACpL,CAAC,CAAC,CAAC,SAAS,wGAAwG;AACpH,MAAa,0CAA0CA,IAAAA,EAAE,QAAQ;AAEjE,MAAa,oCAAoCC,eAAAA,OAAO,yCAAyC;CAC/F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"list-all-document-templates.cjs","names":["z","action"],"sources":["../../src/actions/list-all-document-templates.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { servicem8 } from \"../app\";\n\nexport const Servicem8ListAllDocumentTemplatesInput = z.object({\n cursor: z.string().describe(\"Pagination cursor. Use '-1' for the first page. For subsequent pages, use the value from the 'x-next-cursor' response header. If omitted, returns all templates.\").optional(),\n filter: z.string().describe(\"OData-style filter expression to narrow document templates. Examples: 'name eq \\\"Invoice\\\"', 'active eq 1', 'template_type eq \\\"Quote\\\"'.\").optional(),\n}).describe(\"Request model for listing document templates. Supports optional filtering and cursor-based pagination.\");\nexport const Servicem8ListAllDocumentTemplatesOutput = z.unknown();\n\nexport const servicem8ListAllDocumentTemplates: AppAction<\n typeof Servicem8ListAllDocumentTemplatesInput,\n typeof Servicem8ListAllDocumentTemplatesOutput,\n typeof servicem8.credential\n> = action(\"SERVICEM8_LIST_ALL_DOCUMENT_TEMPLATES\", {\n slug: \"servicem8-list-all-document-templates\",\n name: \"List All Document Templates\",\n description: \"Tool to list document templates. Use when you need to retrieve available template UUIDs and names before generating job documents.\",\n input: Servicem8ListAllDocumentTemplatesInput,\n output: Servicem8ListAllDocumentTemplatesOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,yCAAyCA,IAAAA,EAAE,OAAO;CAC7D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kKAAkK,CAAC,CAAC,SAAS;CACzM,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2IAA2I,CAAC,CAAC,SAAS;AACpL,CAAC,CAAC,CAAC,SAAS,wGAAwG;AACpH,MAAa,0CAA0CA,IAAAA,EAAE,QAAQ;AAEjE,MAAa,oCAITC,eAAAA,OAAO,yCAAyC;CAClD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { servicem8 } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/list-all-document-templates.d.ts
@@ -6,10 +8,7 @@ declare const Servicem8ListAllDocumentTemplatesInput: z.ZodObject<{
6
8
  filter: z.ZodOptional<z.ZodString>;
7
9
  }, z.core.$strip>;
8
10
  declare const Servicem8ListAllDocumentTemplatesOutput: z.ZodUnknown;
9
- declare const servicem8ListAllDocumentTemplates: import("@keystrokehq/action").WorkflowActionDefinition<{
10
- cursor?: string | undefined;
11
- filter?: string | undefined;
12
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
11
+ declare const servicem8ListAllDocumentTemplates: AppAction<typeof Servicem8ListAllDocumentTemplatesInput, typeof Servicem8ListAllDocumentTemplatesOutput, typeof servicem8.credential>;
13
12
  //#endregion
14
13
  export { servicem8ListAllDocumentTemplates };
15
14
  //# sourceMappingURL=list-all-document-templates.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-all-document-templates.d.cts","names":[],"sources":["../../src/actions/list-all-document-templates.ts"],"mappings":";;;cAIa,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;;cAItC,uCAAA,EAAuC,CAAA,CAAA,UAAc;AAAA,cAErD,iCAAA,gCAAiC,wBAAA"}
1
+ {"version":3,"file":"list-all-document-templates.d.cts","names":[],"sources":["../../src/actions/list-all-document-templates.ts"],"mappings":";;;;;cAMa,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;;cAItC,uCAAA,EAAuC,CAAA,CAAA,UAAc;AAAA,cAErD,iCAAA,EAAmC,SAAA,QACvC,sCAAA,SACA,uCAAA,SACA,SAAA,CAAU,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { servicem8 } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/list-all-document-templates.d.ts
@@ -6,10 +8,7 @@ declare const Servicem8ListAllDocumentTemplatesInput: z.ZodObject<{
6
8
  filter: z.ZodOptional<z.ZodString>;
7
9
  }, z.core.$strip>;
8
10
  declare const Servicem8ListAllDocumentTemplatesOutput: z.ZodUnknown;
9
- declare const servicem8ListAllDocumentTemplates: import("@keystrokehq/action").WorkflowActionDefinition<{
10
- cursor?: string | undefined;
11
- filter?: string | undefined;
12
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
11
+ declare const servicem8ListAllDocumentTemplates: AppAction<typeof Servicem8ListAllDocumentTemplatesInput, typeof Servicem8ListAllDocumentTemplatesOutput, typeof servicem8.credential>;
13
12
  //#endregion
14
13
  export { servicem8ListAllDocumentTemplates };
15
14
  //# sourceMappingURL=list-all-document-templates.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-all-document-templates.d.mts","names":[],"sources":["../../src/actions/list-all-document-templates.ts"],"mappings":";;;cAIa,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;;cAItC,uCAAA,EAAuC,CAAA,CAAA,UAAc;AAAA,cAErD,iCAAA,gCAAiC,wBAAA"}
1
+ {"version":3,"file":"list-all-document-templates.d.mts","names":[],"sources":["../../src/actions/list-all-document-templates.ts"],"mappings":";;;;;cAMa,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;;cAItC,uCAAA,EAAuC,CAAA,CAAA,UAAc;AAAA,cAErD,iCAAA,EAAmC,SAAA,QACvC,sCAAA,SACA,uCAAA,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 servicem8ListAllDocumentTemplates = action("SERVICEM8_LIST_ALL_DOCUMENT_TEMPLATES", {
@@ -1 +1 @@
1
- {"version":3,"file":"list-all-document-templates.mjs","names":[],"sources":["../../src/actions/list-all-document-templates.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8ListAllDocumentTemplatesInput = z.object({\n cursor: z.string().describe(\"Pagination cursor. Use '-1' for the first page. For subsequent pages, use the value from the 'x-next-cursor' response header. If omitted, returns all templates.\").optional(),\n filter: z.string().describe(\"OData-style filter expression to narrow document templates. Examples: 'name eq \\\"Invoice\\\"', 'active eq 1', 'template_type eq \\\"Quote\\\"'.\").optional(),\n}).describe(\"Request model for listing document templates. Supports optional filtering and cursor-based pagination.\");\nexport const Servicem8ListAllDocumentTemplatesOutput = z.unknown();\n\nexport const servicem8ListAllDocumentTemplates = action(\"SERVICEM8_LIST_ALL_DOCUMENT_TEMPLATES\", {\n slug: \"servicem8-list-all-document-templates\",\n name: \"List All Document Templates\",\n description: \"Tool to list document templates. Use when you need to retrieve available template UUIDs and names before generating job documents.\",\n input: Servicem8ListAllDocumentTemplatesInput,\n output: Servicem8ListAllDocumentTemplatesOutput,\n});\n"],"mappings":";;AAUA,MAAa,oCAAoC,OAAO,yCAAyC;CAC/F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAVoD,EAAE,OAAO;EAC7D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,kKAAkK,CAAC,CAAC,SAAS;EACzM,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,2IAA2I,CAAC,CAAC,SAAS;CACpL,CAAC,CAAC,CAAC,SAAS,wGAOH;CACP,QAPqD,EAAE,QAO/C;AACV,CAAC"}
1
+ {"version":3,"file":"list-all-document-templates.mjs","names":[],"sources":["../../src/actions/list-all-document-templates.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { servicem8 } from \"../app\";\n\nexport const Servicem8ListAllDocumentTemplatesInput = z.object({\n cursor: z.string().describe(\"Pagination cursor. Use '-1' for the first page. For subsequent pages, use the value from the 'x-next-cursor' response header. If omitted, returns all templates.\").optional(),\n filter: z.string().describe(\"OData-style filter expression to narrow document templates. Examples: 'name eq \\\"Invoice\\\"', 'active eq 1', 'template_type eq \\\"Quote\\\"'.\").optional(),\n}).describe(\"Request model for listing document templates. Supports optional filtering and cursor-based pagination.\");\nexport const Servicem8ListAllDocumentTemplatesOutput = z.unknown();\n\nexport const servicem8ListAllDocumentTemplates: AppAction<\n typeof Servicem8ListAllDocumentTemplatesInput,\n typeof Servicem8ListAllDocumentTemplatesOutput,\n typeof servicem8.credential\n> = action(\"SERVICEM8_LIST_ALL_DOCUMENT_TEMPLATES\", {\n slug: \"servicem8-list-all-document-templates\",\n name: \"List All Document Templates\",\n description: \"Tool to list document templates. Use when you need to retrieve available template UUIDs and names before generating job documents.\",\n input: Servicem8ListAllDocumentTemplatesInput,\n output: Servicem8ListAllDocumentTemplatesOutput,\n});\n"],"mappings":";;;AAYA,MAAa,oCAIT,OAAO,yCAAyC;CAClD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAdoD,EAAE,OAAO;EAC7D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,kKAAkK,CAAC,CAAC,SAAS;EACzM,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,2IAA2I,CAAC,CAAC,SAAS;CACpL,CAAC,CAAC,CAAC,SAAS,wGAWH;CACP,QAXqD,EAAE,QAW/C;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/list-all-forms.ts
@@ -1 +1 @@
1
- {"version":3,"file":"list-all-forms.cjs","names":["z","action"],"sources":["../../src/actions/list-all-forms.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8ListAllFormsInput = z.object({\n filter: z.string().describe(\"OData-style filter expression to narrow down forms. Supported operators: eq (equals), ne (not equals), gt (greater than), lt (less than). Combine up to 10 conditions with 'and'. String values must use single quotes. Examples: \\\"active eq 1\\\", \\\"name eq 'Safety Checklist'\\\".\").optional(),\n}).describe(\"Request model for listing all ServiceM8 forms. Supports optional filtering.\");\nexport const Servicem8ListAllFormsOutput = z.unknown();\n\nexport const servicem8ListAllForms = action(\"SERVICEM8_LIST_ALL_FORMS\", {\n slug: \"servicem8-list-all-forms\",\n name: \"List All Forms\",\n description: \"Tool to list all ServiceM8 forms. Use when you need to fetch available form templates with optional filters.\",\n input: Servicem8ListAllFormsInput,\n output: Servicem8ListAllFormsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oRAAoR,CAAC,CAAC,SAAS,EAC7T,CAAC,CAAC,CAAC,SAAS,6EAA6E;AACzF,MAAa,8BAA8BA,IAAAA,EAAE,QAAQ;AAErD,MAAa,wBAAwBC,eAAAA,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"list-all-forms.cjs","names":["z","action"],"sources":["../../src/actions/list-all-forms.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { servicem8 } from \"../app\";\n\nexport const Servicem8ListAllFormsInput = z.object({\n filter: z.string().describe(\"OData-style filter expression to narrow down forms. Supported operators: eq (equals), ne (not equals), gt (greater than), lt (less than). Combine up to 10 conditions with 'and'. String values must use single quotes. Examples: \\\"active eq 1\\\", \\\"name eq 'Safety Checklist'\\\".\").optional(),\n}).describe(\"Request model for listing all ServiceM8 forms. Supports optional filtering.\");\nexport const Servicem8ListAllFormsOutput = z.unknown();\n\nexport const servicem8ListAllForms: AppAction<\n typeof Servicem8ListAllFormsInput,\n typeof Servicem8ListAllFormsOutput,\n typeof servicem8.credential\n> = action(\"SERVICEM8_LIST_ALL_FORMS\", {\n slug: \"servicem8-list-all-forms\",\n name: \"List All Forms\",\n description: \"Tool to list all ServiceM8 forms. Use when you need to fetch available form templates with optional filters.\",\n input: Servicem8ListAllFormsInput,\n output: Servicem8ListAllFormsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oRAAoR,CAAC,CAAC,SAAS,EAC7T,CAAC,CAAC,CAAC,SAAS,6EAA6E;AACzF,MAAa,8BAA8BA,IAAAA,EAAE,QAAQ;AAErD,MAAa,wBAITC,eAAAA,OAAO,4BAA4B;CACrC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { servicem8 } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/list-all-forms.d.ts
@@ -5,9 +7,7 @@ declare const Servicem8ListAllFormsInput: z.ZodObject<{
5
7
  filter: z.ZodOptional<z.ZodString>;
6
8
  }, z.core.$strip>;
7
9
  declare const Servicem8ListAllFormsOutput: z.ZodUnknown;
8
- declare const servicem8ListAllForms: import("@keystrokehq/action").WorkflowActionDefinition<{
9
- filter?: string | undefined;
10
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
10
+ declare const servicem8ListAllForms: AppAction<typeof Servicem8ListAllFormsInput, typeof Servicem8ListAllFormsOutput, typeof servicem8.credential>;
11
11
  //#endregion
12
12
  export { servicem8ListAllForms };
13
13
  //# sourceMappingURL=list-all-forms.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-all-forms.d.cts","names":[],"sources":["../../src/actions/list-all-forms.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;cAG1B,2BAAA,EAA2B,CAAA,CAAA,UAAc;AAAA,cAEzC,qBAAA,gCAAqB,wBAAA"}
1
+ {"version":3,"file":"list-all-forms.d.cts","names":[],"sources":["../../src/actions/list-all-forms.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;cAG1B,2BAAA,EAA2B,CAAA,CAAA,UAAc;AAAA,cAEzC,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,SACA,SAAA,CAAU,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { servicem8 } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/list-all-forms.d.ts
@@ -5,9 +7,7 @@ declare const Servicem8ListAllFormsInput: z.ZodObject<{
5
7
  filter: z.ZodOptional<z.ZodString>;
6
8
  }, z.core.$strip>;
7
9
  declare const Servicem8ListAllFormsOutput: z.ZodUnknown;
8
- declare const servicem8ListAllForms: import("@keystrokehq/action").WorkflowActionDefinition<{
9
- filter?: string | undefined;
10
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
10
+ declare const servicem8ListAllForms: AppAction<typeof Servicem8ListAllFormsInput, typeof Servicem8ListAllFormsOutput, typeof servicem8.credential>;
11
11
  //#endregion
12
12
  export { servicem8ListAllForms };
13
13
  //# sourceMappingURL=list-all-forms.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-all-forms.d.mts","names":[],"sources":["../../src/actions/list-all-forms.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;cAG1B,2BAAA,EAA2B,CAAA,CAAA,UAAc;AAAA,cAEzC,qBAAA,gCAAqB,wBAAA"}
1
+ {"version":3,"file":"list-all-forms.d.mts","names":[],"sources":["../../src/actions/list-all-forms.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;cAG1B,2BAAA,EAA2B,CAAA,CAAA,UAAc;AAAA,cAEzC,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,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 servicem8ListAllForms = action("SERVICEM8_LIST_ALL_FORMS", {
@@ -1 +1 @@
1
- {"version":3,"file":"list-all-forms.mjs","names":[],"sources":["../../src/actions/list-all-forms.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8ListAllFormsInput = z.object({\n filter: z.string().describe(\"OData-style filter expression to narrow down forms. Supported operators: eq (equals), ne (not equals), gt (greater than), lt (less than). Combine up to 10 conditions with 'and'. String values must use single quotes. Examples: \\\"active eq 1\\\", \\\"name eq 'Safety Checklist'\\\".\").optional(),\n}).describe(\"Request model for listing all ServiceM8 forms. Supports optional filtering.\");\nexport const Servicem8ListAllFormsOutput = z.unknown();\n\nexport const servicem8ListAllForms = action(\"SERVICEM8_LIST_ALL_FORMS\", {\n slug: \"servicem8-list-all-forms\",\n name: \"List All Forms\",\n description: \"Tool to list all ServiceM8 forms. Use when you need to fetch available form templates with optional filters.\",\n input: Servicem8ListAllFormsInput,\n output: Servicem8ListAllFormsOutput,\n});\n"],"mappings":";;AASA,MAAa,wBAAwB,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OATwC,EAAE,OAAO,EACjD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,oRAAoR,CAAC,CAAC,SAAS,EAC7T,CAAC,CAAC,CAAC,SAAS,6EAOH;CACP,QAPyC,EAAE,QAOnC;AACV,CAAC"}
1
+ {"version":3,"file":"list-all-forms.mjs","names":[],"sources":["../../src/actions/list-all-forms.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { servicem8 } from \"../app\";\n\nexport const Servicem8ListAllFormsInput = z.object({\n filter: z.string().describe(\"OData-style filter expression to narrow down forms. Supported operators: eq (equals), ne (not equals), gt (greater than), lt (less than). Combine up to 10 conditions with 'and'. String values must use single quotes. Examples: \\\"active eq 1\\\", \\\"name eq 'Safety Checklist'\\\".\").optional(),\n}).describe(\"Request model for listing all ServiceM8 forms. Supports optional filtering.\");\nexport const Servicem8ListAllFormsOutput = z.unknown();\n\nexport const servicem8ListAllForms: AppAction<\n typeof Servicem8ListAllFormsInput,\n typeof Servicem8ListAllFormsOutput,\n typeof servicem8.credential\n> = action(\"SERVICEM8_LIST_ALL_FORMS\", {\n slug: \"servicem8-list-all-forms\",\n name: \"List All Forms\",\n description: \"Tool to list all ServiceM8 forms. Use when you need to fetch available form templates with optional filters.\",\n input: Servicem8ListAllFormsInput,\n output: Servicem8ListAllFormsOutput,\n});\n"],"mappings":";;;AAWA,MAAa,wBAIT,OAAO,4BAA4B;CACrC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAbwC,EAAE,OAAO,EACjD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,oRAAoR,CAAC,CAAC,SAAS,EAC7T,CAAC,CAAC,CAAC,SAAS,6EAWH;CACP,QAXyC,EAAE,QAWnC;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/list-all-job-notes.ts
@@ -1 +1 @@
1
- {"version":3,"file":"list-all-job-notes.cjs","names":["z","action"],"sources":["../../src/actions/list-all-job-notes.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8ListAllJobNotesInput = z.object({\n cursor: z.string().describe(\"Cursor for pagination. Use '-1' for the first page. For subsequent pages, use the 'next_cursor' value from the previous response. Each page returns up to 5,000 records.\").optional(),\n filter: z.string().describe(\"OData filter expression to filter notes. Common filters include: 'related_object_uuid eq <job_uuid>' to get notes for a specific job, 'active eq 1' for active notes only. Use actual API field names (e.g., related_object_uuid, not job_uuid).\").optional(),\n}).describe(\"Request model for listing all job notes. Supports optional filtering and cursor-based pagination.\");\nconst Servicem8ListAllJobNotes_NoteSchema = z.object({\n note: z.string().describe(\"Text content of the note.\").nullable(),\n uuid: z.string().describe(\"Unique identifier for this note.\").nullable(),\n active: z.number().int().describe(\"Active status flag: 1 = active, 0 = deleted/archived.\").nullable(),\n job_uuid: z.string().describe(\"UUID of the job this note is attached to (mapped from related_object_uuid).\").nullable(),\n edit_date: z.string().describe(\"Timestamp when the note was last modified (YYYY-MM-DD HH:MM:SS format).\").nullable().optional(),\n timestamp: z.string().describe(\"Timestamp when the note was created (YYYY-MM-DD HH:MM:SS format, mapped from create_date).\").nullable(),\n related_object: z.string().describe(\"Type of object this note is related to (typically 'job' for job notes).\").nullable().optional(),\n created_by_staff_uuid: z.string().describe(\"UUID of the staff member who created or last edited the note (mapped from edit_by_staff_uuid).\").nullable().optional(),\n}).passthrough().describe(\"A ServiceM8 job note record.\");\nexport const Servicem8ListAllJobNotesOutput = z.object({\n notes: z.array(Servicem8ListAllJobNotes_NoteSchema).describe(\"List of job note records.\"),\n next_cursor: z.string().describe(\"Cursor for fetching the next page of results. If None/null, there are no more pages. Pass this value as the 'cursor' parameter in the next request.\").nullable().optional(),\n}).passthrough().describe(\"Response model for listing all job notes.\");\n\nexport const servicem8ListAllJobNotes = action(\"SERVICEM8_LIST_ALL_JOB_NOTES\", {\n slug: \"servicem8-list-all-job-notes\",\n name: \"List All Job Notes\",\n description: \"List all job notes from ServiceM8. Use this tool to: - Retrieve all notes across all jobs (no filter) - Get notes for a specific job using filter: \\\"related_object_uuid eq '<job_uuid>'\\\" - Filter by active status: \\\"active eq 1\\\" for active notes only The response contains a list of note records with their content, timestamps, and associated job UUIDs. For large result sets, use cursor-based pagination: pass cursor='-1' for the first page, then use the 'next_cursor' value from each response to fetch subsequent pages. Each page returns up to 5,000 records.\",\n input: Servicem8ListAllJobNotesInput,\n output: Servicem8ListAllJobNotesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0KAA0K,CAAC,CAAC,SAAS;CACjN,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kPAAkP,CAAC,CAAC,SAAS;AAC3R,CAAC,CAAC,CAAC,SAAS,mGAAmG;AAC/G,MAAM,sCAAsCA,IAAAA,EAAE,OAAO;CACnD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAChE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CACvE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CACpG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CACtH,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9H,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4FAA4F,CAAC,CAAC,SAAS;CACtI,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnI,uBAAuBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gGAAgG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnK,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8BAA8B;AACxD,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,OAAOA,IAAAA,EAAE,MAAM,mCAAmC,CAAC,CAAC,SAAS,2BAA2B;CACxF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qJAAqJ,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9M,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C;AAErE,MAAa,2BAA2BC,eAAAA,OAAO,gCAAgC;CAC7E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"list-all-job-notes.cjs","names":["z","action"],"sources":["../../src/actions/list-all-job-notes.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { servicem8 } from \"../app\";\n\nexport const Servicem8ListAllJobNotesInput = z.object({\n cursor: z.string().describe(\"Cursor for pagination. Use '-1' for the first page. For subsequent pages, use the 'next_cursor' value from the previous response. Each page returns up to 5,000 records.\").optional(),\n filter: z.string().describe(\"OData filter expression to filter notes. Common filters include: 'related_object_uuid eq <job_uuid>' to get notes for a specific job, 'active eq 1' for active notes only. Use actual API field names (e.g., related_object_uuid, not job_uuid).\").optional(),\n}).describe(\"Request model for listing all job notes. Supports optional filtering and cursor-based pagination.\");\nconst Servicem8ListAllJobNotes_NoteSchema = z.object({\n note: z.string().describe(\"Text content of the note.\").nullable(),\n uuid: z.string().describe(\"Unique identifier for this note.\").nullable(),\n active: z.number().int().describe(\"Active status flag: 1 = active, 0 = deleted/archived.\").nullable(),\n job_uuid: z.string().describe(\"UUID of the job this note is attached to (mapped from related_object_uuid).\").nullable(),\n edit_date: z.string().describe(\"Timestamp when the note was last modified (YYYY-MM-DD HH:MM:SS format).\").nullable().optional(),\n timestamp: z.string().describe(\"Timestamp when the note was created (YYYY-MM-DD HH:MM:SS format, mapped from create_date).\").nullable(),\n related_object: z.string().describe(\"Type of object this note is related to (typically 'job' for job notes).\").nullable().optional(),\n created_by_staff_uuid: z.string().describe(\"UUID of the staff member who created or last edited the note (mapped from edit_by_staff_uuid).\").nullable().optional(),\n}).passthrough().describe(\"A ServiceM8 job note record.\");\nexport const Servicem8ListAllJobNotesOutput = z.object({\n notes: z.array(Servicem8ListAllJobNotes_NoteSchema).describe(\"List of job note records.\"),\n next_cursor: z.string().describe(\"Cursor for fetching the next page of results. If None/null, there are no more pages. Pass this value as the 'cursor' parameter in the next request.\").nullable().optional(),\n}).passthrough().describe(\"Response model for listing all job notes.\");\n\nexport const servicem8ListAllJobNotes: AppAction<\n typeof Servicem8ListAllJobNotesInput,\n typeof Servicem8ListAllJobNotesOutput,\n typeof servicem8.credential\n> = action(\"SERVICEM8_LIST_ALL_JOB_NOTES\", {\n slug: \"servicem8-list-all-job-notes\",\n name: \"List All Job Notes\",\n description: \"List all job notes from ServiceM8. Use this tool to: - Retrieve all notes across all jobs (no filter) - Get notes for a specific job using filter: \\\"related_object_uuid eq '<job_uuid>'\\\" - Filter by active status: \\\"active eq 1\\\" for active notes only The response contains a list of note records with their content, timestamps, and associated job UUIDs. For large result sets, use cursor-based pagination: pass cursor='-1' for the first page, then use the 'next_cursor' value from each response to fetch subsequent pages. Each page returns up to 5,000 records.\",\n input: Servicem8ListAllJobNotesInput,\n output: Servicem8ListAllJobNotesOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0KAA0K,CAAC,CAAC,SAAS;CACjN,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kPAAkP,CAAC,CAAC,SAAS;AAC3R,CAAC,CAAC,CAAC,SAAS,mGAAmG;AAC/G,MAAM,sCAAsCA,IAAAA,EAAE,OAAO;CACnD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAChE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CACvE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CACpG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CACtH,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9H,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4FAA4F,CAAC,CAAC,SAAS;CACtI,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnI,uBAAuBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gGAAgG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnK,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8BAA8B;AACxD,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,OAAOA,IAAAA,EAAE,MAAM,mCAAmC,CAAC,CAAC,SAAS,2BAA2B;CACxF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qJAAqJ,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9M,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C;AAErE,MAAa,2BAITC,eAAAA,OAAO,gCAAgC;CACzC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { servicem8 } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/list-all-job-notes.d.ts
@@ -18,10 +20,7 @@ declare const Servicem8ListAllJobNotesOutput: z.ZodObject<{
18
20
  }, z.core.$loose>>;
19
21
  next_cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
22
  }, z.core.$loose>;
21
- declare const servicem8ListAllJobNotes: import("@keystrokehq/action").WorkflowActionDefinition<{
22
- cursor?: string | undefined;
23
- filter?: string | undefined;
24
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
23
+ declare const servicem8ListAllJobNotes: AppAction<typeof Servicem8ListAllJobNotesInput, typeof Servicem8ListAllJobNotesOutput, typeof servicem8.credential>;
25
24
  //#endregion
26
25
  export { servicem8ListAllJobNotes };
27
26
  //# sourceMappingURL=list-all-job-notes.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-all-job-notes.d.cts","names":[],"sources":["../../src/actions/list-all-job-notes.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;cAc7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAK9B,wBAAA,gCAAwB,wBAAA"}
1
+ {"version":3,"file":"list-all-job-notes.d.cts","names":[],"sources":["../../src/actions/list-all-job-notes.ts"],"mappings":";;;;;cAMa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;cAc7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAK9B,wBAAA,EAA0B,SAAA,QAC9B,6BAAA,SACA,8BAAA,SACA,SAAA,CAAU,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { servicem8 } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/list-all-job-notes.d.ts
@@ -18,10 +20,7 @@ declare const Servicem8ListAllJobNotesOutput: z.ZodObject<{
18
20
  }, z.core.$loose>>;
19
21
  next_cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
22
  }, z.core.$loose>;
21
- declare const servicem8ListAllJobNotes: import("@keystrokehq/action").WorkflowActionDefinition<{
22
- cursor?: string | undefined;
23
- filter?: string | undefined;
24
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
23
+ declare const servicem8ListAllJobNotes: AppAction<typeof Servicem8ListAllJobNotesInput, typeof Servicem8ListAllJobNotesOutput, typeof servicem8.credential>;
25
24
  //#endregion
26
25
  export { servicem8ListAllJobNotes };
27
26
  //# sourceMappingURL=list-all-job-notes.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-all-job-notes.d.mts","names":[],"sources":["../../src/actions/list-all-job-notes.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;cAc7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAK9B,wBAAA,gCAAwB,wBAAA"}
1
+ {"version":3,"file":"list-all-job-notes.d.mts","names":[],"sources":["../../src/actions/list-all-job-notes.ts"],"mappings":";;;;;cAMa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;cAc7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAK9B,wBAAA,EAA0B,SAAA,QAC9B,6BAAA,SACA,8BAAA,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
  //#region src/actions/list-all-job-notes.ts
@@ -1 +1 @@
1
- {"version":3,"file":"list-all-job-notes.mjs","names":[],"sources":["../../src/actions/list-all-job-notes.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8ListAllJobNotesInput = z.object({\n cursor: z.string().describe(\"Cursor for pagination. Use '-1' for the first page. For subsequent pages, use the 'next_cursor' value from the previous response. Each page returns up to 5,000 records.\").optional(),\n filter: z.string().describe(\"OData filter expression to filter notes. Common filters include: 'related_object_uuid eq <job_uuid>' to get notes for a specific job, 'active eq 1' for active notes only. Use actual API field names (e.g., related_object_uuid, not job_uuid).\").optional(),\n}).describe(\"Request model for listing all job notes. Supports optional filtering and cursor-based pagination.\");\nconst Servicem8ListAllJobNotes_NoteSchema = z.object({\n note: z.string().describe(\"Text content of the note.\").nullable(),\n uuid: z.string().describe(\"Unique identifier for this note.\").nullable(),\n active: z.number().int().describe(\"Active status flag: 1 = active, 0 = deleted/archived.\").nullable(),\n job_uuid: z.string().describe(\"UUID of the job this note is attached to (mapped from related_object_uuid).\").nullable(),\n edit_date: z.string().describe(\"Timestamp when the note was last modified (YYYY-MM-DD HH:MM:SS format).\").nullable().optional(),\n timestamp: z.string().describe(\"Timestamp when the note was created (YYYY-MM-DD HH:MM:SS format, mapped from create_date).\").nullable(),\n related_object: z.string().describe(\"Type of object this note is related to (typically 'job' for job notes).\").nullable().optional(),\n created_by_staff_uuid: z.string().describe(\"UUID of the staff member who created or last edited the note (mapped from edit_by_staff_uuid).\").nullable().optional(),\n}).passthrough().describe(\"A ServiceM8 job note record.\");\nexport const Servicem8ListAllJobNotesOutput = z.object({\n notes: z.array(Servicem8ListAllJobNotes_NoteSchema).describe(\"List of job note records.\"),\n next_cursor: z.string().describe(\"Cursor for fetching the next page of results. If None/null, there are no more pages. Pass this value as the 'cursor' parameter in the next request.\").nullable().optional(),\n}).passthrough().describe(\"Response model for listing all job notes.\");\n\nexport const servicem8ListAllJobNotes = action(\"SERVICEM8_LIST_ALL_JOB_NOTES\", {\n slug: \"servicem8-list-all-job-notes\",\n name: \"List All Job Notes\",\n description: \"List all job notes from ServiceM8. Use this tool to: - Retrieve all notes across all jobs (no filter) - Get notes for a specific job using filter: \\\"related_object_uuid eq '<job_uuid>'\\\" - Filter by active status: \\\"active eq 1\\\" for active notes only The response contains a list of note records with their content, timestamps, and associated job UUIDs. For large result sets, use cursor-based pagination: pass cursor='-1' for the first page, then use the 'next_cursor' value from each response to fetch subsequent pages. Each page returns up to 5,000 records.\",\n input: Servicem8ListAllJobNotesInput,\n output: Servicem8ListAllJobNotesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgC,EAAE,OAAO;CACpD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0KAA0K,CAAC,CAAC,SAAS;CACjN,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,kPAAkP,CAAC,CAAC,SAAS;AAC3R,CAAC,CAAC,CAAC,SAAS,mGAAmG;AAC/G,MAAM,sCAAsC,EAAE,OAAO;CACnD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAChE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CACvE,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CACpG,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CACtH,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9H,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,4FAA4F,CAAC,CAAC,SAAS;CACtI,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnI,uBAAuB,EAAE,OAAO,CAAC,CAAC,SAAS,gGAAgG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnK,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8BAA8B;AAMxD,MAAa,2BAA2B,OAAO,gCAAgC;CAC7E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAV4C,EAAE,OAAO;EACrD,OAAO,EAAE,MAAM,mCAAmC,CAAC,CAAC,SAAS,2BAA2B;EACxF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qJAAqJ,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9M,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"list-all-job-notes.mjs","names":[],"sources":["../../src/actions/list-all-job-notes.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { servicem8 } from \"../app\";\n\nexport const Servicem8ListAllJobNotesInput = z.object({\n cursor: z.string().describe(\"Cursor for pagination. Use '-1' for the first page. For subsequent pages, use the 'next_cursor' value from the previous response. Each page returns up to 5,000 records.\").optional(),\n filter: z.string().describe(\"OData filter expression to filter notes. Common filters include: 'related_object_uuid eq <job_uuid>' to get notes for a specific job, 'active eq 1' for active notes only. Use actual API field names (e.g., related_object_uuid, not job_uuid).\").optional(),\n}).describe(\"Request model for listing all job notes. Supports optional filtering and cursor-based pagination.\");\nconst Servicem8ListAllJobNotes_NoteSchema = z.object({\n note: z.string().describe(\"Text content of the note.\").nullable(),\n uuid: z.string().describe(\"Unique identifier for this note.\").nullable(),\n active: z.number().int().describe(\"Active status flag: 1 = active, 0 = deleted/archived.\").nullable(),\n job_uuid: z.string().describe(\"UUID of the job this note is attached to (mapped from related_object_uuid).\").nullable(),\n edit_date: z.string().describe(\"Timestamp when the note was last modified (YYYY-MM-DD HH:MM:SS format).\").nullable().optional(),\n timestamp: z.string().describe(\"Timestamp when the note was created (YYYY-MM-DD HH:MM:SS format, mapped from create_date).\").nullable(),\n related_object: z.string().describe(\"Type of object this note is related to (typically 'job' for job notes).\").nullable().optional(),\n created_by_staff_uuid: z.string().describe(\"UUID of the staff member who created or last edited the note (mapped from edit_by_staff_uuid).\").nullable().optional(),\n}).passthrough().describe(\"A ServiceM8 job note record.\");\nexport const Servicem8ListAllJobNotesOutput = z.object({\n notes: z.array(Servicem8ListAllJobNotes_NoteSchema).describe(\"List of job note records.\"),\n next_cursor: z.string().describe(\"Cursor for fetching the next page of results. If None/null, there are no more pages. Pass this value as the 'cursor' parameter in the next request.\").nullable().optional(),\n}).passthrough().describe(\"Response model for listing all job notes.\");\n\nexport const servicem8ListAllJobNotes: AppAction<\n typeof Servicem8ListAllJobNotesInput,\n typeof Servicem8ListAllJobNotesOutput,\n typeof servicem8.credential\n> = action(\"SERVICEM8_LIST_ALL_JOB_NOTES\", {\n slug: \"servicem8-list-all-job-notes\",\n name: \"List All Job Notes\",\n description: \"List all job notes from ServiceM8. Use this tool to: - Retrieve all notes across all jobs (no filter) - Get notes for a specific job using filter: \\\"related_object_uuid eq '<job_uuid>'\\\" - Filter by active status: \\\"active eq 1\\\" for active notes only The response contains a list of note records with their content, timestamps, and associated job UUIDs. For large result sets, use cursor-based pagination: pass cursor='-1' for the first page, then use the 'next_cursor' value from each response to fetch subsequent pages. Each page returns up to 5,000 records.\",\n input: Servicem8ListAllJobNotesInput,\n output: Servicem8ListAllJobNotesOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,gCAAgC,EAAE,OAAO;CACpD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0KAA0K,CAAC,CAAC,SAAS;CACjN,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,kPAAkP,CAAC,CAAC,SAAS;AAC3R,CAAC,CAAC,CAAC,SAAS,mGAAmG;AAC/G,MAAM,sCAAsC,EAAE,OAAO;CACnD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAChE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CACvE,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CACpG,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CACtH,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9H,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,4FAA4F,CAAC,CAAC,SAAS;CACtI,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnI,uBAAuB,EAAE,OAAO,CAAC,CAAC,SAAS,gGAAgG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnK,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8BAA8B;AAMxD,MAAa,2BAIT,OAAO,gCAAgC;CACzC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAd4C,EAAE,OAAO;EACrD,OAAO,EAAE,MAAM,mCAAmC,CAAC,CAAC,SAAS,2BAA2B;EACxF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qJAAqJ,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9M,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAWhB;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/list-all-job-queues.ts
@@ -1 +1 @@
1
- {"version":3,"file":"list-all-job-queues.cjs","names":["z","action"],"sources":["../../src/actions/list-all-job-queues.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8ListAllJobQueuesInput = z.object({}).describe(\"Request model for listing all ServiceM8 job queues.\");\nexport const Servicem8ListAllJobQueuesOutput = z.unknown();\n\nexport const servicem8ListAllJobQueues = action(\"SERVICEM8_LIST_ALL_JOB_QUEUES\", {\n slug: \"servicem8-list-all-job-queues\",\n name: \"List All Job Queues\",\n description: \"List all job queues in ServiceM8. Job queues are virtual folders for organizing jobs on hold. Use this to fetch available queues before assigning jobs to a queue, or to check queue configurations. Returns both regular queues (for jobs waiting on external actions) and assignable queues (for staff assignments).\",\n input: Servicem8ListAllJobQueuesInput,\n output: Servicem8ListAllJobQueuesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,qDAAqD;AACzH,MAAa,kCAAkCA,IAAAA,EAAE,QAAQ;AAEzD,MAAa,4BAA4BC,eAAAA,OAAO,iCAAiC;CAC/E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"list-all-job-queues.cjs","names":["z","action"],"sources":["../../src/actions/list-all-job-queues.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { servicem8 } from \"../app\";\n\nexport const Servicem8ListAllJobQueuesInput = z.object({}).describe(\"Request model for listing all ServiceM8 job queues.\");\nexport const Servicem8ListAllJobQueuesOutput = z.unknown();\n\nexport const servicem8ListAllJobQueues: AppAction<\n typeof Servicem8ListAllJobQueuesInput,\n typeof Servicem8ListAllJobQueuesOutput,\n typeof servicem8.credential\n> = action(\"SERVICEM8_LIST_ALL_JOB_QUEUES\", {\n slug: \"servicem8-list-all-job-queues\",\n name: \"List All Job Queues\",\n description: \"List all job queues in ServiceM8. Job queues are virtual folders for organizing jobs on hold. Use this to fetch available queues before assigning jobs to a queue, or to check queue configurations. Returns both regular queues (for jobs waiting on external actions) and assignable queues (for staff assignments).\",\n input: Servicem8ListAllJobQueuesInput,\n output: Servicem8ListAllJobQueuesOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,qDAAqD;AACzH,MAAa,kCAAkCA,IAAAA,EAAE,QAAQ;AAEzD,MAAa,4BAITC,eAAAA,OAAO,iCAAiC;CAC1C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,11 @@
1
+ import { servicem8 } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/list-all-job-queues.d.ts
4
6
  declare const Servicem8ListAllJobQueuesInput: z.ZodObject<{}, z.core.$strip>;
5
7
  declare const Servicem8ListAllJobQueuesOutput: z.ZodUnknown;
6
- declare const servicem8ListAllJobQueues: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
8
+ declare const servicem8ListAllJobQueues: AppAction<typeof Servicem8ListAllJobQueuesInput, typeof Servicem8ListAllJobQueuesOutput, typeof servicem8.credential>;
7
9
  //#endregion
8
10
  export { servicem8ListAllJobQueues };
9
11
  //# sourceMappingURL=list-all-job-queues.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-all-job-queues.d.cts","names":[],"sources":["../../src/actions/list-all-job-queues.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAC9B,+BAAA,EAA+B,CAAA,CAAA,UAAc;AAAA,cAE7C,yBAAA,gCAAyB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"list-all-job-queues.d.cts","names":[],"sources":["../../src/actions/list-all-job-queues.ts"],"mappings":";;;;;cAMa,8BAAA,EAA8B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAC9B,+BAAA,EAA+B,CAAA,CAAA,UAAc;AAAA,cAE7C,yBAAA,EAA2B,SAAA,QAC/B,8BAAA,SACA,+BAAA,SACA,SAAA,CAAU,UAAA"}
@@ -1,9 +1,11 @@
1
+ import { servicem8 } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/list-all-job-queues.d.ts
4
6
  declare const Servicem8ListAllJobQueuesInput: z.ZodObject<{}, z.core.$strip>;
5
7
  declare const Servicem8ListAllJobQueuesOutput: z.ZodUnknown;
6
- declare const servicem8ListAllJobQueues: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
8
+ declare const servicem8ListAllJobQueues: AppAction<typeof Servicem8ListAllJobQueuesInput, typeof Servicem8ListAllJobQueuesOutput, typeof servicem8.credential>;
7
9
  //#endregion
8
10
  export { servicem8ListAllJobQueues };
9
11
  //# sourceMappingURL=list-all-job-queues.d.mts.map