@keystrokehq/servicem8 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (258) hide show
  1. package/README.md +17 -0
  2. package/dist/action.cjs +21 -0
  3. package/dist/action.cjs.map +1 -0
  4. package/dist/action.mjs +21 -0
  5. package/dist/action.mjs.map +1 -0
  6. package/dist/actions/create-job-note.cjs +29 -0
  7. package/dist/actions/create-job-note.cjs.map +1 -0
  8. package/dist/actions/create-job-note.d.cts +9 -0
  9. package/dist/actions/create-job-note.d.cts.map +1 -0
  10. package/dist/actions/create-job-note.d.mts +9 -0
  11. package/dist/actions/create-job-note.d.mts.map +1 -0
  12. package/dist/actions/create-job-note.mjs +26 -0
  13. package/dist/actions/create-job-note.mjs.map +1 -0
  14. package/dist/actions/create-job-payment.cjs +32 -0
  15. package/dist/actions/create-job-payment.cjs.map +1 -0
  16. package/dist/actions/create-job-payment.d.cts +9 -0
  17. package/dist/actions/create-job-payment.d.cts.map +1 -0
  18. package/dist/actions/create-job-payment.d.mts +9 -0
  19. package/dist/actions/create-job-payment.d.mts.map +1 -0
  20. package/dist/actions/create-job-payment.mjs +29 -0
  21. package/dist/actions/create-job-payment.mjs.map +1 -0
  22. package/dist/actions/create-jobs.cjs +51 -0
  23. package/dist/actions/create-jobs.cjs.map +1 -0
  24. package/dist/actions/create-jobs.d.cts +9 -0
  25. package/dist/actions/create-jobs.d.cts.map +1 -0
  26. package/dist/actions/create-jobs.d.mts +9 -0
  27. package/dist/actions/create-jobs.d.mts.map +1 -0
  28. package/dist/actions/create-jobs.mjs +50 -0
  29. package/dist/actions/create-jobs.mjs.map +1 -0
  30. package/dist/actions/delete-custom-field.cjs +19 -0
  31. package/dist/actions/delete-custom-field.cjs.map +1 -0
  32. package/dist/actions/delete-custom-field.d.cts +9 -0
  33. package/dist/actions/delete-custom-field.d.cts.map +1 -0
  34. package/dist/actions/delete-custom-field.d.mts +9 -0
  35. package/dist/actions/delete-custom-field.d.mts.map +1 -0
  36. package/dist/actions/delete-custom-field.mjs +16 -0
  37. package/dist/actions/delete-custom-field.mjs.map +1 -0
  38. package/dist/actions/delete-job-note.cjs +24 -0
  39. package/dist/actions/delete-job-note.cjs.map +1 -0
  40. package/dist/actions/delete-job-note.d.cts +9 -0
  41. package/dist/actions/delete-job-note.d.cts.map +1 -0
  42. package/dist/actions/delete-job-note.d.mts +9 -0
  43. package/dist/actions/delete-job-note.d.mts.map +1 -0
  44. package/dist/actions/delete-job-note.mjs +21 -0
  45. package/dist/actions/delete-job-note.mjs.map +1 -0
  46. package/dist/actions/delete-job-payment.cjs +20 -0
  47. package/dist/actions/delete-job-payment.cjs.map +1 -0
  48. package/dist/actions/delete-job-payment.d.cts +9 -0
  49. package/dist/actions/delete-job-payment.d.cts.map +1 -0
  50. package/dist/actions/delete-job-payment.d.mts +9 -0
  51. package/dist/actions/delete-job-payment.d.mts.map +1 -0
  52. package/dist/actions/delete-job-payment.mjs +17 -0
  53. package/dist/actions/delete-job-payment.mjs.map +1 -0
  54. package/dist/actions/index.cjs +57 -0
  55. package/dist/actions/index.d.cts +29 -0
  56. package/dist/actions/index.d.mts +29 -0
  57. package/dist/actions/index.mjs +29 -0
  58. package/dist/actions/list-all-assets.cjs +16 -0
  59. package/dist/actions/list-all-assets.cjs.map +1 -0
  60. package/dist/actions/list-all-assets.d.cts +9 -0
  61. package/dist/actions/list-all-assets.d.cts.map +1 -0
  62. package/dist/actions/list-all-assets.d.mts +9 -0
  63. package/dist/actions/list-all-assets.d.mts.map +1 -0
  64. package/dist/actions/list-all-assets.mjs +13 -0
  65. package/dist/actions/list-all-assets.mjs.map +1 -0
  66. package/dist/actions/list-all-clients.cjs +16 -0
  67. package/dist/actions/list-all-clients.cjs.map +1 -0
  68. package/dist/actions/list-all-clients.d.cts +9 -0
  69. package/dist/actions/list-all-clients.d.cts.map +1 -0
  70. package/dist/actions/list-all-clients.d.mts +9 -0
  71. package/dist/actions/list-all-clients.d.mts.map +1 -0
  72. package/dist/actions/list-all-clients.mjs +13 -0
  73. package/dist/actions/list-all-clients.mjs.map +1 -0
  74. package/dist/actions/list-all-document-templates.cjs +19 -0
  75. package/dist/actions/list-all-document-templates.cjs.map +1 -0
  76. package/dist/actions/list-all-document-templates.d.cts +9 -0
  77. package/dist/actions/list-all-document-templates.d.cts.map +1 -0
  78. package/dist/actions/list-all-document-templates.d.mts +9 -0
  79. package/dist/actions/list-all-document-templates.d.mts.map +1 -0
  80. package/dist/actions/list-all-document-templates.mjs +16 -0
  81. package/dist/actions/list-all-document-templates.mjs.map +1 -0
  82. package/dist/actions/list-all-forms.cjs +16 -0
  83. package/dist/actions/list-all-forms.cjs.map +1 -0
  84. package/dist/actions/list-all-forms.d.cts +9 -0
  85. package/dist/actions/list-all-forms.d.cts.map +1 -0
  86. package/dist/actions/list-all-forms.d.mts +9 -0
  87. package/dist/actions/list-all-forms.d.mts.map +1 -0
  88. package/dist/actions/list-all-forms.mjs +13 -0
  89. package/dist/actions/list-all-forms.mjs.map +1 -0
  90. package/dist/actions/list-all-job-notes.cjs +32 -0
  91. package/dist/actions/list-all-job-notes.cjs.map +1 -0
  92. package/dist/actions/list-all-job-notes.d.cts +9 -0
  93. package/dist/actions/list-all-job-notes.d.cts.map +1 -0
  94. package/dist/actions/list-all-job-notes.d.mts +9 -0
  95. package/dist/actions/list-all-job-notes.d.mts.map +1 -0
  96. package/dist/actions/list-all-job-notes.mjs +31 -0
  97. package/dist/actions/list-all-job-notes.mjs.map +1 -0
  98. package/dist/actions/list-all-job-queues.cjs +16 -0
  99. package/dist/actions/list-all-job-queues.cjs.map +1 -0
  100. package/dist/actions/list-all-job-queues.d.cts +9 -0
  101. package/dist/actions/list-all-job-queues.d.cts.map +1 -0
  102. package/dist/actions/list-all-job-queues.d.mts +9 -0
  103. package/dist/actions/list-all-job-queues.d.mts.map +1 -0
  104. package/dist/actions/list-all-job-queues.mjs +13 -0
  105. package/dist/actions/list-all-job-queues.mjs.map +1 -0
  106. package/dist/actions/list-all-jobs.cjs +69 -0
  107. package/dist/actions/list-all-jobs.cjs.map +1 -0
  108. package/dist/actions/list-all-jobs.d.cts +9 -0
  109. package/dist/actions/list-all-jobs.d.cts.map +1 -0
  110. package/dist/actions/list-all-jobs.d.mts +9 -0
  111. package/dist/actions/list-all-jobs.d.mts.map +1 -0
  112. package/dist/actions/list-all-jobs.mjs +68 -0
  113. package/dist/actions/list-all-jobs.mjs.map +1 -0
  114. package/dist/actions/list-all-locations.cjs +16 -0
  115. package/dist/actions/list-all-locations.cjs.map +1 -0
  116. package/dist/actions/list-all-locations.d.cts +9 -0
  117. package/dist/actions/list-all-locations.d.cts.map +1 -0
  118. package/dist/actions/list-all-locations.d.mts +9 -0
  119. package/dist/actions/list-all-locations.d.mts.map +1 -0
  120. package/dist/actions/list-all-locations.mjs +13 -0
  121. package/dist/actions/list-all-locations.mjs.map +1 -0
  122. package/dist/actions/list-all-materials.cjs +16 -0
  123. package/dist/actions/list-all-materials.cjs.map +1 -0
  124. package/dist/actions/list-all-materials.d.cts +9 -0
  125. package/dist/actions/list-all-materials.d.cts.map +1 -0
  126. package/dist/actions/list-all-materials.d.mts +9 -0
  127. package/dist/actions/list-all-materials.d.mts.map +1 -0
  128. package/dist/actions/list-all-materials.mjs +13 -0
  129. package/dist/actions/list-all-materials.mjs.map +1 -0
  130. package/dist/actions/list-all-tasks.cjs +34 -0
  131. package/dist/actions/list-all-tasks.cjs.map +1 -0
  132. package/dist/actions/list-all-tasks.d.cts +9 -0
  133. package/dist/actions/list-all-tasks.d.cts.map +1 -0
  134. package/dist/actions/list-all-tasks.d.mts +9 -0
  135. package/dist/actions/list-all-tasks.d.mts.map +1 -0
  136. package/dist/actions/list-all-tasks.mjs +33 -0
  137. package/dist/actions/list-all-tasks.mjs.map +1 -0
  138. package/dist/actions/retrieve-client.cjs +41 -0
  139. package/dist/actions/retrieve-client.cjs.map +1 -0
  140. package/dist/actions/retrieve-client.d.cts +9 -0
  141. package/dist/actions/retrieve-client.d.cts.map +1 -0
  142. package/dist/actions/retrieve-client.d.mts +9 -0
  143. package/dist/actions/retrieve-client.d.mts.map +1 -0
  144. package/dist/actions/retrieve-client.mjs +38 -0
  145. package/dist/actions/retrieve-client.mjs.map +1 -0
  146. package/dist/actions/retrieve-form.cjs +22 -0
  147. package/dist/actions/retrieve-form.cjs.map +1 -0
  148. package/dist/actions/retrieve-form.d.cts +9 -0
  149. package/dist/actions/retrieve-form.d.cts.map +1 -0
  150. package/dist/actions/retrieve-form.d.mts +9 -0
  151. package/dist/actions/retrieve-form.d.mts.map +1 -0
  152. package/dist/actions/retrieve-form.mjs +19 -0
  153. package/dist/actions/retrieve-form.mjs.map +1 -0
  154. package/dist/actions/retrieve-job-activity.cjs +35 -0
  155. package/dist/actions/retrieve-job-activity.cjs.map +1 -0
  156. package/dist/actions/retrieve-job-activity.d.cts +9 -0
  157. package/dist/actions/retrieve-job-activity.d.cts.map +1 -0
  158. package/dist/actions/retrieve-job-activity.d.mts +9 -0
  159. package/dist/actions/retrieve-job-activity.d.mts.map +1 -0
  160. package/dist/actions/retrieve-job-activity.mjs +32 -0
  161. package/dist/actions/retrieve-job-activity.mjs.map +1 -0
  162. package/dist/actions/retrieve-job-note.cjs +25 -0
  163. package/dist/actions/retrieve-job-note.cjs.map +1 -0
  164. package/dist/actions/retrieve-job-note.d.cts +9 -0
  165. package/dist/actions/retrieve-job-note.d.cts.map +1 -0
  166. package/dist/actions/retrieve-job-note.d.mts +9 -0
  167. package/dist/actions/retrieve-job-note.d.mts.map +1 -0
  168. package/dist/actions/retrieve-job-note.mjs +22 -0
  169. package/dist/actions/retrieve-job-note.mjs.map +1 -0
  170. package/dist/actions/retrieve-job-payment.cjs +28 -0
  171. package/dist/actions/retrieve-job-payment.cjs.map +1 -0
  172. package/dist/actions/retrieve-job-payment.d.cts +9 -0
  173. package/dist/actions/retrieve-job-payment.d.cts.map +1 -0
  174. package/dist/actions/retrieve-job-payment.d.mts +9 -0
  175. package/dist/actions/retrieve-job-payment.d.mts.map +1 -0
  176. package/dist/actions/retrieve-job-payment.mjs +25 -0
  177. package/dist/actions/retrieve-job-payment.mjs.map +1 -0
  178. package/dist/actions/retrieve-job-queue.cjs +24 -0
  179. package/dist/actions/retrieve-job-queue.cjs.map +1 -0
  180. package/dist/actions/retrieve-job-queue.d.cts +9 -0
  181. package/dist/actions/retrieve-job-queue.d.cts.map +1 -0
  182. package/dist/actions/retrieve-job-queue.d.mts +9 -0
  183. package/dist/actions/retrieve-job-queue.d.mts.map +1 -0
  184. package/dist/actions/retrieve-job-queue.mjs +21 -0
  185. package/dist/actions/retrieve-job-queue.mjs.map +1 -0
  186. package/dist/actions/retrieve-job.cjs +68 -0
  187. package/dist/actions/retrieve-job.cjs.map +1 -0
  188. package/dist/actions/retrieve-job.d.cts +9 -0
  189. package/dist/actions/retrieve-job.d.cts.map +1 -0
  190. package/dist/actions/retrieve-job.d.mts +9 -0
  191. package/dist/actions/retrieve-job.d.mts.map +1 -0
  192. package/dist/actions/retrieve-job.mjs +65 -0
  193. package/dist/actions/retrieve-job.mjs.map +1 -0
  194. package/dist/actions/retrieve-location.cjs +31 -0
  195. package/dist/actions/retrieve-location.cjs.map +1 -0
  196. package/dist/actions/retrieve-location.d.cts +9 -0
  197. package/dist/actions/retrieve-location.d.cts.map +1 -0
  198. package/dist/actions/retrieve-location.d.mts +9 -0
  199. package/dist/actions/retrieve-location.d.mts.map +1 -0
  200. package/dist/actions/retrieve-location.mjs +28 -0
  201. package/dist/actions/retrieve-location.mjs.map +1 -0
  202. package/dist/actions/retrieve-material.cjs +31 -0
  203. package/dist/actions/retrieve-material.cjs.map +1 -0
  204. package/dist/actions/retrieve-material.d.cts +9 -0
  205. package/dist/actions/retrieve-material.d.cts.map +1 -0
  206. package/dist/actions/retrieve-material.d.mts +9 -0
  207. package/dist/actions/retrieve-material.d.mts.map +1 -0
  208. package/dist/actions/retrieve-material.mjs +28 -0
  209. package/dist/actions/retrieve-material.mjs.map +1 -0
  210. package/dist/actions/retrieve-staff-member.cjs +38 -0
  211. package/dist/actions/retrieve-staff-member.cjs.map +1 -0
  212. package/dist/actions/retrieve-staff-member.d.cts +9 -0
  213. package/dist/actions/retrieve-staff-member.d.cts.map +1 -0
  214. package/dist/actions/retrieve-staff-member.d.mts +9 -0
  215. package/dist/actions/retrieve-staff-member.d.mts.map +1 -0
  216. package/dist/actions/retrieve-staff-member.mjs +35 -0
  217. package/dist/actions/retrieve-staff-member.mjs.map +1 -0
  218. package/dist/actions/update-job-note.cjs +29 -0
  219. package/dist/actions/update-job-note.cjs.map +1 -0
  220. package/dist/actions/update-job-note.d.cts +9 -0
  221. package/dist/actions/update-job-note.d.cts.map +1 -0
  222. package/dist/actions/update-job-note.d.mts +9 -0
  223. package/dist/actions/update-job-note.d.mts.map +1 -0
  224. package/dist/actions/update-job-note.mjs +26 -0
  225. package/dist/actions/update-job-note.mjs.map +1 -0
  226. package/dist/actions/update-job-payment.cjs +36 -0
  227. package/dist/actions/update-job-payment.cjs.map +1 -0
  228. package/dist/actions/update-job-payment.d.cts +9 -0
  229. package/dist/actions/update-job-payment.d.cts.map +1 -0
  230. package/dist/actions/update-job-payment.d.mts +9 -0
  231. package/dist/actions/update-job-payment.d.mts.map +1 -0
  232. package/dist/actions/update-job-payment.mjs +33 -0
  233. package/dist/actions/update-job-payment.mjs.map +1 -0
  234. package/dist/app.cjs +9 -0
  235. package/dist/app.cjs.map +1 -0
  236. package/dist/app.d.cts +5 -0
  237. package/dist/app.d.cts.map +1 -0
  238. package/dist/app.d.mts +5 -0
  239. package/dist/app.d.mts.map +1 -0
  240. package/dist/app.mjs +10 -0
  241. package/dist/app.mjs.map +1 -0
  242. package/dist/catalog.cjs +15 -0
  243. package/dist/catalog.cjs.map +1 -0
  244. package/dist/catalog.d.cts +14 -0
  245. package/dist/catalog.d.cts.map +1 -0
  246. package/dist/catalog.d.mts +14 -0
  247. package/dist/catalog.d.mts.map +1 -0
  248. package/dist/catalog.mjs +15 -0
  249. package/dist/catalog.mjs.map +1 -0
  250. package/dist/execute.cjs +18 -0
  251. package/dist/execute.cjs.map +1 -0
  252. package/dist/execute.mjs +18 -0
  253. package/dist/execute.mjs.map +1 -0
  254. package/dist/index.cjs +62 -0
  255. package/dist/index.d.cts +31 -0
  256. package/dist/index.d.mts +31 -0
  257. package/dist/index.mjs +32 -0
  258. package/package.json +49 -0
@@ -0,0 +1,34 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/list-all-tasks.ts
4
+ const Servicem8ListAllTasksInput = zod.z.object({
5
+ cursor: zod.z.string().describe("Cursor for pagination. Use '-1' to start from the beginning. For subsequent pages, use the 'next_cursor' value from the previous response. Each page returns up to 5000 records.").optional(),
6
+ filter: zod.z.string().describe("OData-style filter expression to narrow results. Supported operators: eq (equal), ne (not equal), gt (greater than), lt (less than). String values must use single quotes. Combine up to 10 conditions with 'and'. Example: \"active eq 1 and job_uuid eq 'abc-123'\"").optional()
7
+ }).describe("Request model for listing all tasks. Supports optional filtering and cursor-based pagination.");
8
+ const Servicem8ListAllTasks_TaskSchema = zod.z.object({
9
+ uuid: zod.z.string().describe("Unique identifier for this task.").nullable().optional(),
10
+ active: zod.z.number().int().describe("Active flag (1 = active, 0 = deleted/inactive).").nullable().optional(),
11
+ due_date: zod.z.string().describe("Date when the task is due (YYYY-MM-DD format).").nullable().optional(),
12
+ job_uuid: zod.z.string().describe("UUID of the job associated with this task.").nullable().optional(),
13
+ completed: zod.z.number().int().describe("Whether the task is completed (1 = completed, 0 = not completed).").nullable().optional(),
14
+ edit_date: zod.z.string().describe("Timestamp when the record was last modified (YYYY-MM-DD HH:MM:SS).").nullable().optional(),
15
+ staff_uuid: zod.z.string().describe("UUID of the staff member assigned to the task.").nullable().optional(),
16
+ completed_date: zod.z.string().describe("Timestamp when the task was completed (YYYY-MM-DD HH:MM:SS).").nullable().optional(),
17
+ task_description: zod.z.string().describe("Description or details of the task.").nullable().optional(),
18
+ completed_by_staff_uuid: zod.z.string().describe("UUID of the staff member who completed the task.").nullable().optional()
19
+ }).passthrough().describe("Represents a ServiceM8 task record.");
20
+ const Servicem8ListAllTasksOutput = zod.z.object({
21
+ tasks: zod.z.array(Servicem8ListAllTasks_TaskSchema).describe("List of task records."),
22
+ next_cursor: zod.z.string().describe("Cursor for the next page of results. Use this value in the 'cursor' parameter of the next request. Null/absent when no more pages exist.").nullable().optional()
23
+ }).describe("Response model for listing all tasks: returns a list of Task objects\nwith optional pagination cursor.");
24
+ const servicem8ListAllTasks = require_action.action("SERVICEM8_LIST_ALL_TASKS", {
25
+ slug: "servicem8-list-all-tasks",
26
+ name: "List All Tasks",
27
+ description: "Retrieves all tasks from a ServiceM8 account with optional filtering and cursor-based pagination. Use this to fetch task records, track task assignments, monitor completion status, or sync task data. Requires 'read_tasks' OAuth scope.",
28
+ input: Servicem8ListAllTasksInput,
29
+ output: Servicem8ListAllTasksOutput
30
+ });
31
+ //#endregion
32
+ exports.servicem8ListAllTasks = servicem8ListAllTasks;
33
+
34
+ //# sourceMappingURL=list-all-tasks.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-all-tasks.cjs","names":["z","action"],"sources":["../../src/actions/list-all-tasks.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8ListAllTasksInput: z.ZodTypeAny = z.object({\n cursor: z.string().describe(\"Cursor for pagination. Use '-1' to start from the beginning. For subsequent pages, use the 'next_cursor' value from the previous response. Each page returns up to 5000 records.\").optional(),\n filter: z.string().describe(\"OData-style filter expression to narrow results. Supported operators: eq (equal), ne (not equal), gt (greater than), lt (less than). String values must use single quotes. Combine up to 10 conditions with 'and'. Example: \\\"active eq 1 and job_uuid eq 'abc-123'\\\"\").optional(),\n}).describe(\"Request model for listing all tasks. Supports optional filtering and cursor-based pagination.\");\nconst Servicem8ListAllTasks_TaskSchema: z.ZodTypeAny = z.object({\n uuid: z.string().describe(\"Unique identifier for this task.\").nullable().optional(),\n active: z.number().int().describe(\"Active flag (1 = active, 0 = deleted/inactive).\").nullable().optional(),\n due_date: z.string().describe(\"Date when the task is due (YYYY-MM-DD format).\").nullable().optional(),\n job_uuid: z.string().describe(\"UUID of the job associated with this task.\").nullable().optional(),\n completed: z.number().int().describe(\"Whether the task is completed (1 = completed, 0 = not completed).\").nullable().optional(),\n edit_date: z.string().describe(\"Timestamp when the record was last modified (YYYY-MM-DD HH:MM:SS).\").nullable().optional(),\n staff_uuid: z.string().describe(\"UUID of the staff member assigned to the task.\").nullable().optional(),\n completed_date: z.string().describe(\"Timestamp when the task was completed (YYYY-MM-DD HH:MM:SS).\").nullable().optional(),\n task_description: z.string().describe(\"Description or details of the task.\").nullable().optional(),\n completed_by_staff_uuid: z.string().describe(\"UUID of the staff member who completed the task.\").nullable().optional(),\n}).passthrough().describe(\"Represents a ServiceM8 task record.\");\nexport const Servicem8ListAllTasksOutput: z.ZodTypeAny = z.object({\n tasks: z.array(Servicem8ListAllTasks_TaskSchema).describe(\"List of task records.\"),\n next_cursor: z.string().describe(\"Cursor for the next page of results. Use this value in the 'cursor' parameter of the next request. Null/absent when no more pages exist.\").nullable().optional(),\n}).describe(\"Response model for listing all tasks: returns a list of Task objects\\nwith optional pagination cursor.\");\n\nexport const servicem8ListAllTasks = action(\"SERVICEM8_LIST_ALL_TASKS\", {\n slug: \"servicem8-list-all-tasks\",\n name: \"List All Tasks\",\n description: \"Retrieves all tasks from a ServiceM8 account with optional filtering and cursor-based pagination. Use this to fetch task records, track task assignments, monitor completion status, or sync task data. Requires 'read_tasks' OAuth scope.\",\n input: Servicem8ListAllTasksInput,\n output: Servicem8ListAllTasksOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA2CA,IAAAA,EAAE,OAAO;CAC/D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kLAAkL,CAAC,CAAC,SAAS;CACzN,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uQAAuQ,CAAC,CAAC,SAAS;AAChT,C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uB;CACjF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0IAA0I,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnM,CAAC,CAAC,CAAC,SAAS,wGAAwG;AAEpH,MAAa,wBAAwBC,eAAAA,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/list-all-tasks.d.ts
4
+ declare const Servicem8ListAllTasksInput: z.ZodTypeAny;
5
+ declare const Servicem8ListAllTasksOutput: z.ZodTypeAny;
6
+ declare const servicem8ListAllTasks: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { servicem8ListAllTasks };
9
+ //# sourceMappingURL=list-all-tasks.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-all-tasks.d.cts","names":[],"sources":["../../src/actions/list-all-tasks.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAGiE;AAAA,cAa/F,2BAAA,EAA6B,CAAA,CAAE,UAGyE;AAAA,cAExG,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/list-all-tasks.d.ts
4
+ declare const Servicem8ListAllTasksInput: z.ZodTypeAny;
5
+ declare const Servicem8ListAllTasksOutput: z.ZodTypeAny;
6
+ declare const servicem8ListAllTasks: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { servicem8ListAllTasks };
9
+ //# sourceMappingURL=list-all-tasks.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-all-tasks.d.mts","names":[],"sources":["../../src/actions/list-all-tasks.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAGiE;AAAA,cAa/F,2BAAA,EAA6B,CAAA,CAAE,UAGyE;AAAA,cAExG,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,33 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/list-all-tasks.ts
4
+ const Servicem8ListAllTasksInput = z.object({
5
+ cursor: z.string().describe("Cursor for pagination. Use '-1' to start from the beginning. For subsequent pages, use the 'next_cursor' value from the previous response. Each page returns up to 5000 records.").optional(),
6
+ filter: z.string().describe("OData-style filter expression to narrow results. Supported operators: eq (equal), ne (not equal), gt (greater than), lt (less than). String values must use single quotes. Combine up to 10 conditions with 'and'. Example: \"active eq 1 and job_uuid eq 'abc-123'\"").optional()
7
+ }).describe("Request model for listing all tasks. Supports optional filtering and cursor-based pagination.");
8
+ const Servicem8ListAllTasks_TaskSchema = z.object({
9
+ uuid: z.string().describe("Unique identifier for this task.").nullable().optional(),
10
+ active: z.number().int().describe("Active flag (1 = active, 0 = deleted/inactive).").nullable().optional(),
11
+ due_date: z.string().describe("Date when the task is due (YYYY-MM-DD format).").nullable().optional(),
12
+ job_uuid: z.string().describe("UUID of the job associated with this task.").nullable().optional(),
13
+ completed: z.number().int().describe("Whether the task is completed (1 = completed, 0 = not completed).").nullable().optional(),
14
+ edit_date: z.string().describe("Timestamp when the record was last modified (YYYY-MM-DD HH:MM:SS).").nullable().optional(),
15
+ staff_uuid: z.string().describe("UUID of the staff member assigned to the task.").nullable().optional(),
16
+ completed_date: z.string().describe("Timestamp when the task was completed (YYYY-MM-DD HH:MM:SS).").nullable().optional(),
17
+ task_description: z.string().describe("Description or details of the task.").nullable().optional(),
18
+ completed_by_staff_uuid: z.string().describe("UUID of the staff member who completed the task.").nullable().optional()
19
+ }).passthrough().describe("Represents a ServiceM8 task record.");
20
+ const servicem8ListAllTasks = action("SERVICEM8_LIST_ALL_TASKS", {
21
+ slug: "servicem8-list-all-tasks",
22
+ name: "List All Tasks",
23
+ description: "Retrieves all tasks from a ServiceM8 account with optional filtering and cursor-based pagination. Use this to fetch task records, track task assignments, monitor completion status, or sync task data. Requires 'read_tasks' OAuth scope.",
24
+ input: Servicem8ListAllTasksInput,
25
+ output: z.object({
26
+ tasks: z.array(Servicem8ListAllTasks_TaskSchema).describe("List of task records."),
27
+ next_cursor: z.string().describe("Cursor for the next page of results. Use this value in the 'cursor' parameter of the next request. Null/absent when no more pages exist.").nullable().optional()
28
+ }).describe("Response model for listing all tasks: returns a list of Task objects\nwith optional pagination cursor.")
29
+ });
30
+ //#endregion
31
+ export { servicem8ListAllTasks };
32
+
33
+ //# sourceMappingURL=list-all-tasks.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-all-tasks.mjs","names":[],"sources":["../../src/actions/list-all-tasks.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8ListAllTasksInput: z.ZodTypeAny = z.object({\n cursor: z.string().describe(\"Cursor for pagination. Use '-1' to start from the beginning. For subsequent pages, use the 'next_cursor' value from the previous response. Each page returns up to 5000 records.\").optional(),\n filter: z.string().describe(\"OData-style filter expression to narrow results. Supported operators: eq (equal), ne (not equal), gt (greater than), lt (less than). String values must use single quotes. Combine up to 10 conditions with 'and'. Example: \\\"active eq 1 and job_uuid eq 'abc-123'\\\"\").optional(),\n}).describe(\"Request model for listing all tasks. Supports optional filtering and cursor-based pagination.\");\nconst Servicem8ListAllTasks_TaskSchema: z.ZodTypeAny = z.object({\n uuid: z.string().describe(\"Unique identifier for this task.\").nullable().optional(),\n active: z.number().int().describe(\"Active flag (1 = active, 0 = deleted/inactive).\").nullable().optional(),\n due_date: z.string().describe(\"Date when the task is due (YYYY-MM-DD format).\").nullable().optional(),\n job_uuid: z.string().describe(\"UUID of the job associated with this task.\").nullable().optional(),\n completed: z.number().int().describe(\"Whether the task is completed (1 = completed, 0 = not completed).\").nullable().optional(),\n edit_date: z.string().describe(\"Timestamp when the record was last modified (YYYY-MM-DD HH:MM:SS).\").nullable().optional(),\n staff_uuid: z.string().describe(\"UUID of the staff member assigned to the task.\").nullable().optional(),\n completed_date: z.string().describe(\"Timestamp when the task was completed (YYYY-MM-DD HH:MM:SS).\").nullable().optional(),\n task_description: z.string().describe(\"Description or details of the task.\").nullable().optional(),\n completed_by_staff_uuid: z.string().describe(\"UUID of the staff member who completed the task.\").nullable().optional(),\n}).passthrough().describe(\"Represents a ServiceM8 task record.\");\nexport const Servicem8ListAllTasksOutput: z.ZodTypeAny = z.object({\n tasks: z.array(Servicem8ListAllTasks_TaskSchema).describe(\"List of task records.\"),\n next_cursor: z.string().describe(\"Cursor for the next page of results. Use this value in the 'cursor' parameter of the next request. Null/absent when no more pages exist.\").nullable().optional(),\n}).describe(\"Response model for listing all tasks: returns a list of Task objects\\nwith optional pagination cursor.\");\n\nexport const servicem8ListAllTasks = action(\"SERVICEM8_LIST_ALL_TASKS\", {\n slug: \"servicem8-list-all-tasks\",\n name: \"List All Tasks\",\n description: \"Retrieves all tasks from a ServiceM8 account with optional filtering and cursor-based pagination. Use this to fetch task records, track task assignments, monitor completion status, or sync task data. Requires 'read_tasks' OAuth scope.\",\n input: Servicem8ListAllTasksInput,\n output: Servicem8ListAllTasksOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA2C,EAAE,OAAO;CAC/D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,kLAAkL,CAAC,CAAC,SAAS;CACzN,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,uQAAuQ,CAAC,CAAC,SAAS;AAChT,CAAC,CAAC,CAAC,SAAS,+FAA+F;AAC3G,MAAM,mCAAiD,EAAE,OAAO;CAC9D,MAAM,EAAE,OAAO,CAAC,CAAC,SA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@ -0,0 +1,41 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/retrieve-client.ts
4
+ const Servicem8RetrieveClientInput = zod.z.object({ uuid: zod.z.string().describe("UUID of the company (client) to retrieve") }).describe("Request model for retrieving a specific ServiceM8 client.");
5
+ const Servicem8RetrieveClientOutput = zod.z.object({
6
+ name: zod.z.string().describe("Business name of the company/client"),
7
+ uuid: zod.z.string().describe("Unique identifier of the company (UUID format)"),
8
+ email: zod.z.string().describe("Primary email address of the company").nullable().optional(),
9
+ notes: zod.z.string().describe("Free-form notes associated with the company").nullable().optional(),
10
+ phone: zod.z.string().describe("Primary phone number of the company").nullable().optional(),
11
+ active: zod.z.number().int().describe("Record status: 1 if active, 0 if archived/deleted"),
12
+ badges: zod.z.string().describe("JSON array of badge UUIDs associated with this client").nullable().optional(),
13
+ address: zod.z.string().describe("Full street address of the company (max 500 chars)").nullable().optional(),
14
+ website: zod.z.string().describe("Company website URL").nullable().optional(),
15
+ edit_date: zod.z.string().describe("ISO-8601 timestamp when the record was last modified"),
16
+ abn_number: zod.z.string().describe("Australian Business Number (11-digit identifier for Australian businesses)").nullable().optional(),
17
+ fax_number: zod.z.string().describe("Fax number").nullable().optional(),
18
+ address_city: zod.z.string().describe("City/suburb name").nullable().optional(),
19
+ address_state: zod.z.string().describe("State/territory/province").nullable().optional(),
20
+ is_individual: zod.z.string().describe("Flag indicating if this is an individual rather than a business").nullable().optional(),
21
+ payment_terms: zod.z.string().describe("Payment terms description for this client").nullable().optional(),
22
+ tax_rate_uuid: zod.z.string().describe("UUID of the associated tax rate configuration").nullable().optional(),
23
+ address_street: zod.z.string().describe("Street address component").nullable().optional(),
24
+ postal_address: zod.z.string().describe("Postal/mailing address of the company").nullable().optional(),
25
+ address_country: zod.z.string().describe("Country name").nullable().optional(),
26
+ billing_address: zod.z.string().describe("Alternate billing address (max 500 chars)").nullable().optional(),
27
+ address_postcode: zod.z.string().describe("Postal/ZIP code").nullable().optional(),
28
+ billing_attention: zod.z.string().describe("Contact name for billing correspondence").nullable().optional(),
29
+ parent_company_uuid: zod.z.string().describe("UUID of the parent company (for site locations)").nullable().optional()
30
+ }).passthrough().describe("Response model for a ServiceM8 company (client).");
31
+ const servicem8RetrieveClient = require_action.action("SERVICEM8_RETRIEVE_CLIENT", {
32
+ slug: "servicem8-retrieve-client",
33
+ name: "Retrieve ServiceM8 Client",
34
+ description: "Tool to retrieve details of a specific client by its UUID. Use after confirming the client's UUID is valid.",
35
+ input: Servicem8RetrieveClientInput,
36
+ output: Servicem8RetrieveClientOutput
37
+ });
38
+ //#endregion
39
+ exports.servicem8RetrieveClient = servicem8RetrieveClient;
40
+
41
+ //# sourceMappingURL=retrieve-client.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"retrieve-client.cjs","names":["z","action"],"sources":["../../src/actions/retrieve-client.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8RetrieveClientInput: z.ZodTypeAny = z.object({\n uuid: z.string().describe(\"UUID of the company (client) to retrieve\"),\n}).describe(\"Request model for retrieving a specific ServiceM8 client.\");\nexport const Servicem8RetrieveClientOutput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Business name of the company/client\"),\n uuid: z.string().describe(\"Unique identifier of the company (UUID format)\"),\n email: z.string().describe(\"Primary email address of the company\").nullable().optional(),\n notes: z.string().describe(\"Free-form notes associated with the company\").nullable().optional(),\n phone: z.string().describe(\"Primary phone number of the company\").nullable().optional(),\n active: z.number().int().describe(\"Record status: 1 if active, 0 if archived/deleted\"),\n badges: z.string().describe(\"JSON array of badge UUIDs associated with this client\").nullable().optional(),\n address: z.string().describe(\"Full street address of the company (max 500 chars)\").nullable().optional(),\n website: z.string().describe(\"Company website URL\").nullable().optional(),\n edit_date: z.string().describe(\"ISO-8601 timestamp when the record was last modified\"),\n abn_number: z.string().describe(\"Australian Business Number (11-digit identifier for Australian businesses)\").nullable().optional(),\n fax_number: z.string().describe(\"Fax number\").nullable().optional(),\n address_city: z.string().describe(\"City/suburb name\").nullable().optional(),\n address_state: z.string().describe(\"State/territory/province\").nullable().optional(),\n is_individual: z.string().describe(\"Flag indicating if this is an individual rather than a business\").nullable().optional(),\n payment_terms: z.string().describe(\"Payment terms description for this client\").nullable().optional(),\n tax_rate_uuid: z.string().describe(\"UUID of the associated tax rate configuration\").nullable().optional(),\n address_street: z.string().describe(\"Street address component\").nullable().optional(),\n postal_address: z.string().describe(\"Postal/mailing address of the company\").nullable().optional(),\n address_country: z.string().describe(\"Country name\").nullable().optional(),\n billing_address: z.string().describe(\"Alternate billing address (max 500 chars)\").nullable().optional(),\n address_postcode: z.string().describe(\"Postal/ZIP code\").nullable().optional(),\n billing_attention: z.string().describe(\"Contact name for billing correspondence\").nullable().optional(),\n parent_company_uuid: z.string().describe(\"UUID of the parent company (for site locations)\").nullable().optional(),\n}).passthrough().describe(\"Response model for a ServiceM8 company (client).\");\n\nexport const servicem8RetrieveClient = action(\"SERVICEM8_RETRIEVE_CLIENT\", {\n slug: \"servicem8-retrieve-client\",\n name: \"Retrieve ServiceM8 Client\",\n description: \"Tool to retrieve details of a specific client by its UUID. Use after confirming the client's UUID is valid.\",\n input: Servicem8RetrieveClientInput,\n output: Servicem8RetrieveClientOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA6CA,IAAAA,EAAE,OAAO,EACjE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,EACtE,CAAC,CAAC,CAAC,SAAS,2DAA2D;AACvE,MAAa,gCAA8CA,IAAAA,EAAE,OAAO;CAClE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;CAC/D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;CAC1E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,OAAOA,IAAAA,EAAE,OAA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,CAAC,SAAS;CACxG,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAAkD;AAE5E,MAAa,0BAA0BC,eAAAA,OAAO,6BAA6B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/retrieve-client.d.ts
4
+ declare const Servicem8RetrieveClientInput: z.ZodTypeAny;
5
+ declare const Servicem8RetrieveClientOutput: z.ZodTypeAny;
6
+ declare const servicem8RetrieveClient: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { servicem8RetrieveClient };
9
+ //# sourceMappingURL=retrieve-client.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"retrieve-client.d.cts","names":[],"sources":["../../src/actions/retrieve-client.ts"],"mappings":";;;cAIa,4BAAA,EAA8B,CAAA,CAAE,UAE2B;AAAA,cAC3D,6BAAA,EAA+B,CAAA,CAAE,UAyB+B;AAAA,cAEhE,uBAAA,gCAAuB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/retrieve-client.d.ts
4
+ declare const Servicem8RetrieveClientInput: z.ZodTypeAny;
5
+ declare const Servicem8RetrieveClientOutput: z.ZodTypeAny;
6
+ declare const servicem8RetrieveClient: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { servicem8RetrieveClient };
9
+ //# sourceMappingURL=retrieve-client.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"retrieve-client.d.mts","names":[],"sources":["../../src/actions/retrieve-client.ts"],"mappings":";;;cAIa,4BAAA,EAA8B,CAAA,CAAE,UAE2B;AAAA,cAC3D,6BAAA,EAA+B,CAAA,CAAE,UAyB+B;AAAA,cAEhE,uBAAA,gCAAuB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,38 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ const servicem8RetrieveClient = action("SERVICEM8_RETRIEVE_CLIENT", {
4
+ slug: "servicem8-retrieve-client",
5
+ name: "Retrieve ServiceM8 Client",
6
+ description: "Tool to retrieve details of a specific client by its UUID. Use after confirming the client's UUID is valid.",
7
+ input: z.object({ uuid: z.string().describe("UUID of the company (client) to retrieve") }).describe("Request model for retrieving a specific ServiceM8 client."),
8
+ output: z.object({
9
+ name: z.string().describe("Business name of the company/client"),
10
+ uuid: z.string().describe("Unique identifier of the company (UUID format)"),
11
+ email: z.string().describe("Primary email address of the company").nullable().optional(),
12
+ notes: z.string().describe("Free-form notes associated with the company").nullable().optional(),
13
+ phone: z.string().describe("Primary phone number of the company").nullable().optional(),
14
+ active: z.number().int().describe("Record status: 1 if active, 0 if archived/deleted"),
15
+ badges: z.string().describe("JSON array of badge UUIDs associated with this client").nullable().optional(),
16
+ address: z.string().describe("Full street address of the company (max 500 chars)").nullable().optional(),
17
+ website: z.string().describe("Company website URL").nullable().optional(),
18
+ edit_date: z.string().describe("ISO-8601 timestamp when the record was last modified"),
19
+ abn_number: z.string().describe("Australian Business Number (11-digit identifier for Australian businesses)").nullable().optional(),
20
+ fax_number: z.string().describe("Fax number").nullable().optional(),
21
+ address_city: z.string().describe("City/suburb name").nullable().optional(),
22
+ address_state: z.string().describe("State/territory/province").nullable().optional(),
23
+ is_individual: z.string().describe("Flag indicating if this is an individual rather than a business").nullable().optional(),
24
+ payment_terms: z.string().describe("Payment terms description for this client").nullable().optional(),
25
+ tax_rate_uuid: z.string().describe("UUID of the associated tax rate configuration").nullable().optional(),
26
+ address_street: z.string().describe("Street address component").nullable().optional(),
27
+ postal_address: z.string().describe("Postal/mailing address of the company").nullable().optional(),
28
+ address_country: z.string().describe("Country name").nullable().optional(),
29
+ billing_address: z.string().describe("Alternate billing address (max 500 chars)").nullable().optional(),
30
+ address_postcode: z.string().describe("Postal/ZIP code").nullable().optional(),
31
+ billing_attention: z.string().describe("Contact name for billing correspondence").nullable().optional(),
32
+ parent_company_uuid: z.string().describe("UUID of the parent company (for site locations)").nullable().optional()
33
+ }).passthrough().describe("Response model for a ServiceM8 company (client).")
34
+ });
35
+ //#endregion
36
+ export { servicem8RetrieveClient };
37
+
38
+ //# sourceMappingURL=retrieve-client.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"retrieve-client.mjs","names":[],"sources":["../../src/actions/retrieve-client.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8RetrieveClientInput: z.ZodTypeAny = z.object({\n uuid: z.string().describe(\"UUID of the company (client) to retrieve\"),\n}).describe(\"Request model for retrieving a specific ServiceM8 client.\");\nexport const Servicem8RetrieveClientOutput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Business name of the company/client\"),\n uuid: z.string().describe(\"Unique identifier of the company (UUID format)\"),\n email: z.string().describe(\"Primary email address of the company\").nullable().optional(),\n notes: z.string().describe(\"Free-form notes associated with the company\").nullable().optional(),\n phone: z.string().describe(\"Primary phone number of the company\").nullable().optional(),\n active: z.number().int().describe(\"Record status: 1 if active, 0 if archived/deleted\"),\n badges: z.string().describe(\"JSON array of badge UUIDs associated with this client\").nullable().optional(),\n address: z.string().describe(\"Full street address of the company (max 500 chars)\").nullable().optional(),\n website: z.string().describe(\"Company website URL\").nullable().optional(),\n edit_date: z.string().describe(\"ISO-8601 timestamp when the record was last modified\"),\n abn_number: z.string().describe(\"Australian Business Number (11-digit identifier for Australian businesses)\").nullable().optional(),\n fax_number: z.string().describe(\"Fax number\").nullable().optional(),\n address_city: z.string().describe(\"City/suburb name\").nullable().optional(),\n address_state: z.string().describe(\"State/territory/province\").nullable().optional(),\n is_individual: z.string().describe(\"Flag indicating if this is an individual rather than a business\").nullable().optional(),\n payment_terms: z.string().describe(\"Payment terms description for this client\").nullable().optional(),\n tax_rate_uuid: z.string().describe(\"UUID of the associated tax rate configuration\").nullable().optional(),\n address_street: z.string().describe(\"Street address component\").nullable().optional(),\n postal_address: z.string().describe(\"Postal/mailing address of the company\").nullable().optional(),\n address_country: z.string().describe(\"Country name\").nullable().optional(),\n billing_address: z.string().describe(\"Alternate billing address (max 500 chars)\").nullable().optional(),\n address_postcode: z.string().describe(\"Postal/ZIP code\").nullable().optional(),\n billing_attention: z.string().describe(\"Contact name for billing correspondence\").nullable().optional(),\n parent_company_uuid: z.string().describe(\"UUID of the parent company (for site locations)\").nullable().optional(),\n}).passthrough().describe(\"Response model for a ServiceM8 company (client).\");\n\nexport const servicem8RetrieveClient = action(\"SERVICEM8_RETRIEVE_CLIENT\", {\n slug: \"servicem8-retrieve-client\",\n name: \"Retrieve ServiceM8 Client\",\n description: \"Tool to retrieve details of a specific client by its UUID. Use after confirming the client's UUID is valid.\",\n input: Servicem8RetrieveClientInput,\n output: Servicem8RetrieveClientOutput,\n});\n"],"mappings":";;AAkCA,MAAa,0BAA0B,OAAO,6BAA6B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAlCwD,EAAE,OAAO,EACjE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,EACtE,CAAC,CAAC,CAAC,SAAS,2DAgCH;CACP,QAhCyD,EAAE,OAAO;EAClE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;EAC/D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;EAC1E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9F,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtF,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD;EACrF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzG,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvG,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;EACrF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E,CAAC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V,CAAC"}
@@ -0,0 +1,22 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/retrieve-form.ts
4
+ const Servicem8RetrieveFormInput = zod.z.object({ uuid: zod.z.string().describe("The unique identifier (UUID) of the form to retrieve.") }).describe("Request model for retrieving a specific ServiceM8 form by UUID.");
5
+ const Servicem8RetrieveFormOutput = zod.z.object({
6
+ name: zod.z.string().describe("Name/title of the form template.").nullable().optional(),
7
+ uuid: zod.z.string().describe("Unique identifier of the form (UUID format)."),
8
+ active: zod.z.number().int().describe("Record status: 1 if active, 0 if archived/deleted.").nullable().optional(),
9
+ edit_date: zod.z.string().describe("Timestamp when the form was last modified (YYYY-MM-DD HH:MM:SS).").nullable().optional(),
10
+ description: zod.z.string().describe("Description of the form's purpose or usage.").nullable().optional()
11
+ }).passthrough().describe("Response model for a ServiceM8 form record.");
12
+ const servicem8RetrieveForm = require_action.action("SERVICEM8_RETRIEVE_FORM", {
13
+ slug: "servicem8-retrieve-form",
14
+ name: "Retrieve Form",
15
+ description: "Retrieve details of a specific form template by its UUID. Use this tool when you have a form UUID and need to fetch its metadata, such as form name, description, and status. Requires the Forms add-on to be enabled in ServiceM8.",
16
+ input: Servicem8RetrieveFormInput,
17
+ output: Servicem8RetrieveFormOutput
18
+ });
19
+ //#endregion
20
+ exports.servicem8RetrieveForm = servicem8RetrieveForm;
21
+
22
+ //# sourceMappingURL=retrieve-form.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"retrieve-form.cjs","names":["z","action"],"sources":["../../src/actions/retrieve-form.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8RetrieveFormInput: z.ZodTypeAny = z.object({\n uuid: z.string().describe(\"The unique identifier (UUID) of the form to retrieve.\"),\n}).describe(\"Request model for retrieving a specific ServiceM8 form by UUID.\");\nexport const Servicem8RetrieveFormOutput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name/title of the form template.\").nullable().optional(),\n uuid: z.string().describe(\"Unique identifier of the form (UUID format).\"),\n active: z.number().int().describe(\"Record status: 1 if active, 0 if archived/deleted.\").nullable().optional(),\n edit_date: z.string().describe(\"Timestamp when the form was last modified (YYYY-MM-DD HH:MM:SS).\").nullable().optional(),\n description: z.string().describe(\"Description of the form's purpose or usage.\").nullable().optional(),\n}).passthrough().describe(\"Response model for a ServiceM8 form record.\");\n\nexport const servicem8RetrieveForm = action(\"SERVICEM8_RETRIEVE_FORM\", {\n slug: \"servicem8-retrieve-form\",\n name: \"Retrieve Form\",\n description: \"Retrieve details of a specific form template by its UUID. Use this tool when you have a form UUID and need to fetch its metadata, such as form name, description, and status. Requires the Forms add-on to be enabled in ServiceM8.\",\n input: Servicem8RetrieveFormInput,\n output: Servicem8RetrieveFormOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA2CA,IAAAA,EAAE,OAAO,EAC/D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,EACnF,CAAC,CAAC,CAAC,SAAS,iEAAiE;AAC7E,MAAa,8BAA4CA,IAAAA,EAAE,OAAO;CAChE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;CACxE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvH,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAA6C;AAEvE,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/retrieve-form.d.ts
4
+ declare const Servicem8RetrieveFormInput: z.ZodTypeAny;
5
+ declare const Servicem8RetrieveFormOutput: z.ZodTypeAny;
6
+ declare const servicem8RetrieveForm: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { servicem8RetrieveForm };
9
+ //# sourceMappingURL=retrieve-form.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"retrieve-form.d.cts","names":[],"sources":["../../src/actions/retrieve-form.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAEmC;AAAA,cACjE,2BAAA,EAA6B,CAAA,CAAE,UAM4B;AAAA,cAE3D,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/retrieve-form.d.ts
4
+ declare const Servicem8RetrieveFormInput: z.ZodTypeAny;
5
+ declare const Servicem8RetrieveFormOutput: z.ZodTypeAny;
6
+ declare const servicem8RetrieveForm: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { servicem8RetrieveForm };
9
+ //# sourceMappingURL=retrieve-form.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"retrieve-form.d.mts","names":[],"sources":["../../src/actions/retrieve-form.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAEmC;AAAA,cACjE,2BAAA,EAA6B,CAAA,CAAE,UAM4B;AAAA,cAE3D,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,19 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ const servicem8RetrieveForm = action("SERVICEM8_RETRIEVE_FORM", {
4
+ slug: "servicem8-retrieve-form",
5
+ name: "Retrieve Form",
6
+ description: "Retrieve details of a specific form template by its UUID. Use this tool when you have a form UUID and need to fetch its metadata, such as form name, description, and status. Requires the Forms add-on to be enabled in ServiceM8.",
7
+ input: z.object({ uuid: z.string().describe("The unique identifier (UUID) of the form to retrieve.") }).describe("Request model for retrieving a specific ServiceM8 form by UUID."),
8
+ output: z.object({
9
+ name: z.string().describe("Name/title of the form template.").nullable().optional(),
10
+ uuid: z.string().describe("Unique identifier of the form (UUID format)."),
11
+ active: z.number().int().describe("Record status: 1 if active, 0 if archived/deleted.").nullable().optional(),
12
+ edit_date: z.string().describe("Timestamp when the form was last modified (YYYY-MM-DD HH:MM:SS).").nullable().optional(),
13
+ description: z.string().describe("Description of the form's purpose or usage.").nullable().optional()
14
+ }).passthrough().describe("Response model for a ServiceM8 form record.")
15
+ });
16
+ //#endregion
17
+ export { servicem8RetrieveForm };
18
+
19
+ //# sourceMappingURL=retrieve-form.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"retrieve-form.mjs","names":[],"sources":["../../src/actions/retrieve-form.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8RetrieveFormInput: z.ZodTypeAny = z.object({\n uuid: z.string().describe(\"The unique identifier (UUID) of the form to retrieve.\"),\n}).describe(\"Request model for retrieving a specific ServiceM8 form by UUID.\");\nexport const Servicem8RetrieveFormOutput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name/title of the form template.\").nullable().optional(),\n uuid: z.string().describe(\"Unique identifier of the form (UUID format).\"),\n active: z.number().int().describe(\"Record status: 1 if active, 0 if archived/deleted.\").nullable().optional(),\n edit_date: z.string().describe(\"Timestamp when the form was last modified (YYYY-MM-DD HH:MM:SS).\").nullable().optional(),\n description: z.string().describe(\"Description of the form's purpose or usage.\").nullable().optional(),\n}).passthrough().describe(\"Response model for a ServiceM8 form record.\");\n\nexport const servicem8RetrieveForm = action(\"SERVICEM8_RETRIEVE_FORM\", {\n slug: \"servicem8-retrieve-form\",\n name: \"Retrieve Form\",\n description: \"Retrieve details of a specific form template by its UUID. Use this tool when you have a form UUID and need to fetch its metadata, such as form name, description, and status. Requires the Forms add-on to be enabled in ServiceM8.\",\n input: Servicem8RetrieveFormInput,\n output: Servicem8RetrieveFormOutput,\n});\n"],"mappings":";;AAeA,MAAa,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAfsD,EAAE,OAAO,EAC/D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,EACnF,CAAC,CAAC,CAAC,SAAS,iEAaH;CACP,QAbuD,EAAE,OAAO;EAChE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;EACxE,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5G,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvH,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAOhB;AACV,CAAC"}
@@ -0,0 +1,35 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/retrieve-job-activity.ts
4
+ const Servicem8RetrieveJobActivityInput = zod.z.object({ uuid: zod.z.string().describe("UUID of the ServiceM8 job activity to retrieve") }).describe("Request model for retrieving a specific ServiceM8 job activity by UUID.");
5
+ const Servicem8RetrieveJobActivityOutput = zod.z.object({
6
+ uuid: zod.z.string().describe("Unique identifier for the job activity."),
7
+ active: zod.z.number().int().describe("Record active flag: 1=active, 0=deleted."),
8
+ end_date: zod.z.string().describe("End time of the activity.").nullable().optional(),
9
+ job_uuid: zod.z.string().describe("UUID of the associated job."),
10
+ edit_date: zod.z.string().describe("Timestamp of last modification.").nullable().optional(),
11
+ staff_uuid: zod.z.string().describe("UUID of the staff member assigned to the activity."),
12
+ start_date: zod.z.string().describe("Start time of the activity.").nullable().optional(),
13
+ material_uuid: zod.z.string().describe("UUID of associated material (if any).").nullable().optional(),
14
+ has_been_opened: zod.z.union([zod.z.number().int(), zod.z.string()]).nullable().optional(),
15
+ edit_by_staff_uuid: zod.z.string().describe("UUID of staff who last edited the activity.").nullable().optional(),
16
+ allocated_timestamp: zod.z.string().describe("Timestamp when the activity was allocated.").nullable().optional(),
17
+ activity_was_recorded: zod.z.union([zod.z.number().int(), zod.z.string()]).nullable().optional(),
18
+ activity_was_automated: zod.z.union([zod.z.number().int(), zod.z.string()]).nullable().optional(),
19
+ activity_was_scheduled: zod.z.union([zod.z.number().int(), zod.z.string()]).nullable().optional(),
20
+ travel_time_in_seconds: zod.z.string().describe("Travel time in seconds.").nullable().optional(),
21
+ allocated_by_staff_uuid: zod.z.string().describe("UUID of staff who allocated the activity.").nullable().optional(),
22
+ has_been_opened_timestamp: zod.z.string().describe("Timestamp when the activity was opened.").nullable().optional(),
23
+ travel_distance_in_meters: zod.z.string().describe("Travel distance in meters.").nullable().optional()
24
+ }).describe("Response model representing a ServiceM8 job activity record.");
25
+ const servicem8RetrieveJobActivity = require_action.action("SERVICEM8_RETRIEVE_JOB_ACTIVITY", {
26
+ slug: "servicem8-retrieve-job-activity",
27
+ name: "Retrieve Job Activity",
28
+ description: "Tool to retrieve details of a specific job activity by its UUID. Use when you have the job activity UUID and need its full details.",
29
+ input: Servicem8RetrieveJobActivityInput,
30
+ output: Servicem8RetrieveJobActivityOutput
31
+ });
32
+ //#endregion
33
+ exports.servicem8RetrieveJobActivity = servicem8RetrieveJobActivity;
34
+
35
+ //# sourceMappingURL=retrieve-job-activity.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"retrieve-job-activity.cjs","names":["z","action"],"sources":["../../src/actions/retrieve-job-activity.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8RetrieveJobActivityInput: z.ZodTypeAny = z.object({\n uuid: z.string().describe(\"UUID of the ServiceM8 job activity to retrieve\"),\n}).describe(\"Request model for retrieving a specific ServiceM8 job activity by UUID.\");\nexport const Servicem8RetrieveJobActivityOutput: z.ZodTypeAny = z.object({\n uuid: z.string().describe(\"Unique identifier for the job activity.\"),\n active: z.number().int().describe(\"Record active flag: 1=active, 0=deleted.\"),\n end_date: z.string().describe(\"End time of the activity.\").nullable().optional(),\n job_uuid: z.string().describe(\"UUID of the associated job.\"),\n edit_date: z.string().describe(\"Timestamp of last modification.\").nullable().optional(),\n staff_uuid: z.string().describe(\"UUID of the staff member assigned to the activity.\"),\n start_date: z.string().describe(\"Start time of the activity.\").nullable().optional(),\n material_uuid: z.string().describe(\"UUID of associated material (if any).\").nullable().optional(),\n has_been_opened: z.union([z.number().int(), z.string()]).nullable().optional(),\n edit_by_staff_uuid: z.string().describe(\"UUID of staff who last edited the activity.\").nullable().optional(),\n allocated_timestamp: z.string().describe(\"Timestamp when the activity was allocated.\").nullable().optional(),\n activity_was_recorded: z.union([z.number().int(), z.string()]).nullable().optional(),\n activity_was_automated: z.union([z.number().int(), z.string()]).nullable().optional(),\n activity_was_scheduled: z.union([z.number().int(), z.string()]).nullable().optional(),\n travel_time_in_seconds: z.string().describe(\"Travel time in seconds.\").nullable().optional(),\n allocated_by_staff_uuid: z.string().describe(\"UUID of staff who allocated the activity.\").nullable().optional(),\n has_been_opened_timestamp: z.string().describe(\"Timestamp when the activity was opened.\").nullable().optional(),\n travel_distance_in_meters: z.string().describe(\"Travel distance in meters.\").nullable().optional(),\n}).describe(\"Response model representing a ServiceM8 job activity record.\");\n\nexport const servicem8RetrieveJobActivity = action(\"SERVICEM8_RETRIEVE_JOB_ACTIVITY\", {\n slug: \"servicem8-retrieve-job-activity\",\n name: \"Retrieve Job Activity\",\n description: \"Tool to retrieve details of a specific job activity by its UUID. Use when you have the job activity UUID and need its full details.\",\n input: Servicem8RetrieveJobActivityInput,\n output: Servicem8RetrieveJobActivityOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAkDA,IAAAA,EAAE,OAAO,EACtE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,EAC5E,CAAC,CAAC,CAAC,SAAS,yEAAyE;AACrF,MAAa,qCAAmDA,IAAAA,EAAE,OAAO;CACvE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;CACnE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C;CAC5E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;CAC3D,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD;CACpF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,iBAAiBA,IA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AAa,+BAA+BC,eAAAA,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/retrieve-job-activity.d.ts
4
+ declare const Servicem8RetrieveJobActivityInput: z.ZodTypeAny;
5
+ declare const Servicem8RetrieveJobActivityOutput: z.ZodTypeAny;
6
+ declare const servicem8RetrieveJobActivity: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { servicem8RetrieveJobActivity };
9
+ //# sourceMappingURL=retrieve-job-activity.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"retrieve-job-activity.d.cts","names":[],"sources":["../../src/actions/retrieve-job-activity.ts"],"mappings":";;;cAIa,iCAAA,EAAmC,CAAA,CAAE,UAEoC;AAAA,cACzE,kCAAA,EAAoC,CAAA,CAAE,UAmBwB;AAAA,cAE9D,4BAAA,gCAA4B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/retrieve-job-activity.d.ts
4
+ declare const Servicem8RetrieveJobActivityInput: z.ZodTypeAny;
5
+ declare const Servicem8RetrieveJobActivityOutput: z.ZodTypeAny;
6
+ declare const servicem8RetrieveJobActivity: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { servicem8RetrieveJobActivity };
9
+ //# sourceMappingURL=retrieve-job-activity.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"retrieve-job-activity.d.mts","names":[],"sources":["../../src/actions/retrieve-job-activity.ts"],"mappings":";;;cAIa,iCAAA,EAAmC,CAAA,CAAE,UAEoC;AAAA,cACzE,kCAAA,EAAoC,CAAA,CAAE,UAmBwB;AAAA,cAE9D,4BAAA,gCAA4B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,32 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ const servicem8RetrieveJobActivity = action("SERVICEM8_RETRIEVE_JOB_ACTIVITY", {
4
+ slug: "servicem8-retrieve-job-activity",
5
+ name: "Retrieve Job Activity",
6
+ description: "Tool to retrieve details of a specific job activity by its UUID. Use when you have the job activity UUID and need its full details.",
7
+ input: z.object({ uuid: z.string().describe("UUID of the ServiceM8 job activity to retrieve") }).describe("Request model for retrieving a specific ServiceM8 job activity by UUID."),
8
+ output: z.object({
9
+ uuid: z.string().describe("Unique identifier for the job activity."),
10
+ active: z.number().int().describe("Record active flag: 1=active, 0=deleted."),
11
+ end_date: z.string().describe("End time of the activity.").nullable().optional(),
12
+ job_uuid: z.string().describe("UUID of the associated job."),
13
+ edit_date: z.string().describe("Timestamp of last modification.").nullable().optional(),
14
+ staff_uuid: z.string().describe("UUID of the staff member assigned to the activity."),
15
+ start_date: z.string().describe("Start time of the activity.").nullable().optional(),
16
+ material_uuid: z.string().describe("UUID of associated material (if any).").nullable().optional(),
17
+ has_been_opened: z.union([z.number().int(), z.string()]).nullable().optional(),
18
+ edit_by_staff_uuid: z.string().describe("UUID of staff who last edited the activity.").nullable().optional(),
19
+ allocated_timestamp: z.string().describe("Timestamp when the activity was allocated.").nullable().optional(),
20
+ activity_was_recorded: z.union([z.number().int(), z.string()]).nullable().optional(),
21
+ activity_was_automated: z.union([z.number().int(), z.string()]).nullable().optional(),
22
+ activity_was_scheduled: z.union([z.number().int(), z.string()]).nullable().optional(),
23
+ travel_time_in_seconds: z.string().describe("Travel time in seconds.").nullable().optional(),
24
+ allocated_by_staff_uuid: z.string().describe("UUID of staff who allocated the activity.").nullable().optional(),
25
+ has_been_opened_timestamp: z.string().describe("Timestamp when the activity was opened.").nullable().optional(),
26
+ travel_distance_in_meters: z.string().describe("Travel distance in meters.").nullable().optional()
27
+ }).describe("Response model representing a ServiceM8 job activity record.")
28
+ });
29
+ //#endregion
30
+ export { servicem8RetrieveJobActivity };
31
+
32
+ //# sourceMappingURL=retrieve-job-activity.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"retrieve-job-activity.mjs","names":[],"sources":["../../src/actions/retrieve-job-activity.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8RetrieveJobActivityInput: z.ZodTypeAny = z.object({\n uuid: z.string().describe(\"UUID of the ServiceM8 job activity to retrieve\"),\n}).describe(\"Request model for retrieving a specific ServiceM8 job activity by UUID.\");\nexport const Servicem8RetrieveJobActivityOutput: z.ZodTypeAny = z.object({\n uuid: z.string().describe(\"Unique identifier for the job activity.\"),\n active: z.number().int().describe(\"Record active flag: 1=active, 0=deleted.\"),\n end_date: z.string().describe(\"End time of the activity.\").nullable().optional(),\n job_uuid: z.string().describe(\"UUID of the associated job.\"),\n edit_date: z.string().describe(\"Timestamp of last modification.\").nullable().optional(),\n staff_uuid: z.string().describe(\"UUID of the staff member assigned to the activity.\"),\n start_date: z.string().describe(\"Start time of the activity.\").nullable().optional(),\n material_uuid: z.string().describe(\"UUID of associated material (if any).\").nullable().optional(),\n has_been_opened: z.union([z.number().int(), z.string()]).nullable().optional(),\n edit_by_staff_uuid: z.string().describe(\"UUID of staff who last edited the activity.\").nullable().optional(),\n allocated_timestamp: z.string().describe(\"Timestamp when the activity was allocated.\").nullable().optional(),\n activity_was_recorded: z.union([z.number().int(), z.string()]).nullable().optional(),\n activity_was_automated: z.union([z.number().int(), z.string()]).nullable().optional(),\n activity_was_scheduled: z.union([z.number().int(), z.string()]).nullable().optional(),\n travel_time_in_seconds: z.string().describe(\"Travel time in seconds.\").nullable().optional(),\n allocated_by_staff_uuid: z.string().describe(\"UUID of staff who allocated the activity.\").nullable().optional(),\n has_been_opened_timestamp: z.string().describe(\"Timestamp when the activity was opened.\").nullable().optional(),\n travel_distance_in_meters: z.string().describe(\"Travel distance in meters.\").nullable().optional(),\n}).describe(\"Response model representing a ServiceM8 job activity record.\");\n\nexport const servicem8RetrieveJobActivity = action(\"SERVICEM8_RETRIEVE_JOB_ACTIVITY\", {\n slug: \"servicem8-retrieve-job-activity\",\n name: \"Retrieve Job Activity\",\n description: \"Tool to retrieve details of a specific job activity by its UUID. Use when you have the job activity UUID and need its full details.\",\n input: Servicem8RetrieveJobActivityInput,\n output: Servicem8RetrieveJobActivityOutput,\n});\n"],"mappings":";;AA4BA,MAAa,+BAA+B,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA5B6D,EAAE,OAAO,EACtE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,EAC5E,CAAC,CAAC,CAAC,SAAS,yEA0BH;CACP,QA1B8D,EAAE,OAAO;EACvE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;EACnE,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C;EAC5E,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/E,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;EAC3D,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD;EACpF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnF,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChG,iBAAiB,EAAE,MAAM,CAAC,EAAE,OAAO,CAAC,CAAC,IAAI,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7E,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3G,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3G,uBAAuB,EAAE,MAAM,CAAC,EAAE,OAAO,CAAC,CAAC,IAAI,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnF,wBAAwB,EAAE,MAAM,CAAC,EAAE,OAAO,CAAC,CAAC,IAAI,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpF,wBAAwB,EAAE,MAAM,CAAC,EAAE,OAAO,CAAC,CAAC,IAAI,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpF,wBAAwB,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3F,yBAAyB,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9G,2BAA2B,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9G,2BAA2B,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,CAAC,CAAC,CAAC,SAAS,8DAOF;AACV,CAAC"}
@@ -0,0 +1,25 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/retrieve-job-note.ts
4
+ const Servicem8RetrieveJobNoteInput = zod.z.object({ uuid: zod.z.string().describe("UUID of the job note to retrieve. You can obtain this from the 'List All Job Notes' action.") }).describe("Request model for retrieving a ServiceM8 job note by its UUID.");
5
+ const Servicem8RetrieveJobNoteOutput = zod.z.object({
6
+ note: zod.z.string().describe("Text content of the note.").nullable().optional(),
7
+ uuid: zod.z.string().describe("Unique identifier for this note."),
8
+ active: zod.z.number().int().describe("Record active flag: 1 = active, 0 = deleted/archived."),
9
+ edit_date: zod.z.string().describe("Timestamp when the note was last modified (YYYY-MM-DD HH:MM:SS).").nullable().optional(),
10
+ create_date: zod.z.string().describe("Timestamp when the note was created (YYYY-MM-DD HH:MM:SS).").nullable().optional(),
11
+ related_object: zod.z.string().describe("Type of object this note is attached to (e.g., 'job').").nullable().optional(),
12
+ edit_by_staff_uuid: zod.z.string().describe("UUID of the staff member who last edited this note.").nullable().optional(),
13
+ related_object_uuid: zod.z.string().describe("UUID of the job (or other object) this note is attached to.").nullable().optional()
14
+ }).describe("Response model representing a ServiceM8 job note record.");
15
+ const servicem8RetrieveJobNote = require_action.action("SERVICEM8_RETRIEVE_JOB_NOTE", {
16
+ slug: "servicem8-retrieve-job-note",
17
+ name: "Retrieve Job Note",
18
+ description: "Retrieve the full details of a specific job note by its UUID. Use this action when you have a note UUID (e.g., from listing job notes) and need to view its complete record including content, timestamps, and the associated job reference.",
19
+ input: Servicem8RetrieveJobNoteInput,
20
+ output: Servicem8RetrieveJobNoteOutput
21
+ });
22
+ //#endregion
23
+ exports.servicem8RetrieveJobNote = servicem8RetrieveJobNote;
24
+
25
+ //# sourceMappingURL=retrieve-job-note.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"retrieve-job-note.cjs","names":["z","action"],"sources":["../../src/actions/retrieve-job-note.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8RetrieveJobNoteInput: z.ZodTypeAny = z.object({\n uuid: z.string().describe(\"UUID of the job note to retrieve. You can obtain this from the 'List All Job Notes' action.\"),\n}).describe(\"Request model for retrieving a ServiceM8 job note by its UUID.\");\nexport const Servicem8RetrieveJobNoteOutput: z.ZodTypeAny = z.object({\n note: z.string().describe(\"Text content of the note.\").nullable().optional(),\n uuid: z.string().describe(\"Unique identifier for this note.\"),\n active: z.number().int().describe(\"Record active flag: 1 = active, 0 = deleted/archived.\"),\n edit_date: z.string().describe(\"Timestamp when the note was last modified (YYYY-MM-DD HH:MM:SS).\").nullable().optional(),\n create_date: z.string().describe(\"Timestamp when the note was created (YYYY-MM-DD HH:MM:SS).\").nullable().optional(),\n related_object: z.string().describe(\"Type of object this note is attached to (e.g., 'job').\").nullable().optional(),\n edit_by_staff_uuid: z.string().describe(\"UUID of the staff member who last edited this note.\").nullable().optional(),\n related_object_uuid: z.string().describe(\"UUID of the job (or other object) this note is attached to.\").nullable().optional(),\n}).describe(\"Response model representing a ServiceM8 job note record.\");\n\nexport const servicem8RetrieveJobNote = action(\"SERVICEM8_RETRIEVE_JOB_NOTE\", {\n slug: \"servicem8-retrieve-job-note\",\n name: \"Retrieve Job Note\",\n description: \"Retrieve the full details of a specific job note by its UUID. Use this action when you have a note UUID (e.g., from listing job notes) and need to view its complete record including content, timestamps, and the associated job reference.\",\n input: Servicem8RetrieveJobNoteInput,\n output: Servicem8RetrieveJobNoteOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAA8CA,IAAAA,EAAE,OAAO,EAClE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6FAA6F,EACzH,CAAC,CAAC,CAAC,SAAS,gEAAgE;AAC5E,MAAa,iCAA+CA,IAAAA,EAAE,OAAO;CACnE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;CAC5D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uDAAuD;CACzF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvH,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnH,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClH,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnH,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9H,CAAC,CAAC,CAAC,SAAS,0DAA0D;AAEtE,MAAa,2BAA2BC,eAAAA,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/retrieve-job-note.d.ts
4
+ declare const Servicem8RetrieveJobNoteInput: z.ZodTypeAny;
5
+ declare const Servicem8RetrieveJobNoteOutput: z.ZodTypeAny;
6
+ declare const servicem8RetrieveJobNote: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { servicem8RetrieveJobNote };
9
+ //# sourceMappingURL=retrieve-job-note.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"retrieve-job-note.d.cts","names":[],"sources":["../../src/actions/retrieve-job-note.ts"],"mappings":";;;cAIa,6BAAA,EAA+B,CAAA,CAAE,UAE+B;AAAA,cAChE,8BAAA,EAAgC,CAAA,CAAE,UASwB;AAAA,cAE1D,wBAAA,gCAAwB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/retrieve-job-note.d.ts
4
+ declare const Servicem8RetrieveJobNoteInput: z.ZodTypeAny;
5
+ declare const Servicem8RetrieveJobNoteOutput: z.ZodTypeAny;
6
+ declare const servicem8RetrieveJobNote: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { servicem8RetrieveJobNote };
9
+ //# sourceMappingURL=retrieve-job-note.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"retrieve-job-note.d.mts","names":[],"sources":["../../src/actions/retrieve-job-note.ts"],"mappings":";;;cAIa,6BAAA,EAA+B,CAAA,CAAE,UAE+B;AAAA,cAChE,8BAAA,EAAgC,CAAA,CAAE,UASwB;AAAA,cAE1D,wBAAA,gCAAwB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,22 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ const servicem8RetrieveJobNote = action("SERVICEM8_RETRIEVE_JOB_NOTE", {
4
+ slug: "servicem8-retrieve-job-note",
5
+ name: "Retrieve Job Note",
6
+ description: "Retrieve the full details of a specific job note by its UUID. Use this action when you have a note UUID (e.g., from listing job notes) and need to view its complete record including content, timestamps, and the associated job reference.",
7
+ input: z.object({ uuid: z.string().describe("UUID of the job note to retrieve. You can obtain this from the 'List All Job Notes' action.") }).describe("Request model for retrieving a ServiceM8 job note by its UUID."),
8
+ output: z.object({
9
+ note: z.string().describe("Text content of the note.").nullable().optional(),
10
+ uuid: z.string().describe("Unique identifier for this note."),
11
+ active: z.number().int().describe("Record active flag: 1 = active, 0 = deleted/archived."),
12
+ edit_date: z.string().describe("Timestamp when the note was last modified (YYYY-MM-DD HH:MM:SS).").nullable().optional(),
13
+ create_date: z.string().describe("Timestamp when the note was created (YYYY-MM-DD HH:MM:SS).").nullable().optional(),
14
+ related_object: z.string().describe("Type of object this note is attached to (e.g., 'job').").nullable().optional(),
15
+ edit_by_staff_uuid: z.string().describe("UUID of the staff member who last edited this note.").nullable().optional(),
16
+ related_object_uuid: z.string().describe("UUID of the job (or other object) this note is attached to.").nullable().optional()
17
+ }).describe("Response model representing a ServiceM8 job note record.")
18
+ });
19
+ //#endregion
20
+ export { servicem8RetrieveJobNote };
21
+
22
+ //# sourceMappingURL=retrieve-job-note.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"retrieve-job-note.mjs","names":[],"sources":["../../src/actions/retrieve-job-note.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8RetrieveJobNoteInput: z.ZodTypeAny = z.object({\n uuid: z.string().describe(\"UUID of the job note to retrieve. You can obtain this from the 'List All Job Notes' action.\"),\n}).describe(\"Request model for retrieving a ServiceM8 job note by its UUID.\");\nexport const Servicem8RetrieveJobNoteOutput: z.ZodTypeAny = z.object({\n note: z.string().describe(\"Text content of the note.\").nullable().optional(),\n uuid: z.string().describe(\"Unique identifier for this note.\"),\n active: z.number().int().describe(\"Record active flag: 1 = active, 0 = deleted/archived.\"),\n edit_date: z.string().describe(\"Timestamp when the note was last modified (YYYY-MM-DD HH:MM:SS).\").nullable().optional(),\n create_date: z.string().describe(\"Timestamp when the note was created (YYYY-MM-DD HH:MM:SS).\").nullable().optional(),\n related_object: z.string().describe(\"Type of object this note is attached to (e.g., 'job').\").nullable().optional(),\n edit_by_staff_uuid: z.string().describe(\"UUID of the staff member who last edited this note.\").nullable().optional(),\n related_object_uuid: z.string().describe(\"UUID of the job (or other object) this note is attached to.\").nullable().optional(),\n}).describe(\"Response model representing a ServiceM8 job note record.\");\n\nexport const servicem8RetrieveJobNote = action(\"SERVICEM8_RETRIEVE_JOB_NOTE\", {\n slug: \"servicem8-retrieve-job-note\",\n name: \"Retrieve Job Note\",\n description: \"Retrieve the full details of a specific job note by its UUID. Use this action when you have a note UUID (e.g., from listing job notes) and need to view its complete record including content, timestamps, and the associated job reference.\",\n input: Servicem8RetrieveJobNoteInput,\n output: Servicem8RetrieveJobNoteOutput,\n});\n"],"mappings":";;AAkBA,MAAa,2BAA2B,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAlByD,EAAE,OAAO,EAClE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6FAA6F,EACzH,CAAC,CAAC,CAAC,SAAS,gEAgBH;CACP,QAhB0D,EAAE,OAAO;EACnE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;EAC5D,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uDAAuD;EACzF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvH,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnH,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClH,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnH,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9H,CAAC,CAAC,CAAC,SAAS,0DAOF;AACV,CAAC"}