@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":"list-all-job-queues.d.mts","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.mts","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,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const servicem8ListAllJobQueues = action("SERVICEM8_LIST_ALL_JOB_QUEUES", {
@@ -1 +1 @@
1
- {"version":3,"file":"list-all-job-queues.mjs","names":[],"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":";;AAOA,MAAa,4BAA4B,OAAO,iCAAiC;CAC/E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAP4C,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,qDAO3D;CACP,QAP6C,EAAE,QAOvC;AACV,CAAC"}
1
+ {"version":3,"file":"list-all-job-queues.mjs","names":[],"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":";;;AASA,MAAa,4BAIT,OAAO,iCAAiC;CAC1C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAX4C,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,qDAW3D;CACP,QAX6C,EAAE,QAWvC;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-jobs.ts
@@ -1 +1 @@
1
- {"version":3,"file":"list-all-jobs.cjs","names":["z","action"],"sources":["../../src/actions/list-all-jobs.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8ListAllJobsInput = z.object({\n filter: z.string().describe(\"OData-style filter expression to narrow down jobs. 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: \\\"status eq 'Completed'\\\", \\\"status eq 'Work Order' and active eq 1\\\", \\\"date gt '2024-01-01'\\\".\").optional(),\n}).describe(\"Query parameters for listing ServiceM8 jobs.\");\nconst Servicem8ListAllJobs_JobSchema = z.object({\n lat: z.number().describe(\"Latitude coordinate of the job location.\").nullable().optional(),\n lng: z.number().describe(\"Longitude coordinate of the job location.\").nullable().optional(),\n date: z.string().describe(\"Date the job was created or scheduled.\").nullable(),\n uuid: z.string().describe(\"Unique identifier for this job record.\").nullable(),\n active: z.number().int().describe(\"Active flag (1 active, 0 deleted).\").nullable().optional(),\n badges: z.string().describe(\"Comma-separated list of badge UUIDs associated with this job.\").nullable().optional(),\n status: z.enum([\"Quote\", \"Work Order\", \"Unsuccessful\", \"Completed\"]).describe(\"Current status of the job.\").nullable(),\n geo_city: z.string().describe(\"City from geocoded address.\").nullable().optional(),\n edit_date: z.string().describe(\"Timestamp at which the record was last modified.\").nullable().optional(),\n geo_state: z.string().describe(\"State from geocoded address.\").nullable().optional(),\n geo_number: z.string().describe(\"House number from geocoded address.\").nullable().optional(),\n geo_street: z.string().describe(\"Street from geocoded address.\").nullable().optional(),\n queue_uuid: z.string().describe(\"UUID of the queue this job is assigned to.\").nullable().optional(),\n quote_date: z.string().describe(\"Timestamp when the job was quoted.\").nullable().optional(),\n quote_sent: z.number().int().describe(\"Boolean flag (0 or 1) indicating if quote was sent.\").nullable().optional(),\n geo_country: z.string().describe(\"Country from geocoded address.\").nullable().optional(),\n job_address: z.string().describe(\"Physical address where the job is to be performed (max length 500).\").nullable().optional(),\n company_uuid: z.string().describe(\"UUID of the client associated with this job.\").nullable(),\n geo_is_valid: z.string().describe(\"Whether geocoding for the job address was successful.\").nullable().optional(),\n geo_postcode: z.string().describe(\"Postal code from geocoded address.\").nullable().optional(),\n invoice_sent: z.string().describe(\"Boolean flag indicating whether an invoice has been sent.\").nullable().optional(),\n payment_date: z.string().describe(\"Payment date (not used; refer to JobPayment endpoint).\").nullable().optional(),\n category_uuid: z.string().describe(\"UUID of the job category.\").nullable().optional(),\n payment_amount: z.string().describe(\"Payment amount (not used; refer to JobPayment endpoint).\").nullable().optional(),\n payment_method: z.string().describe(\"Payment method (not used; refer to JobPayment endpoint).\").nullable().optional(),\n billing_address: z.string().describe(\"Address for invoicing; defaults to job address if not specified.\").nullable().optional(),\n completion_date: z.string().describe(\"Timestamp when the job was marked complete.\").nullable().optional(),\n job_description: z.string().describe(\"Description of the job.\").nullable().optional(),\n work_order_date: z.string().describe(\"Timestamp when the job became a work order.\").nullable().optional(),\n generated_job_id: z.string().describe(\"System-generated unique job identifier (read-only).\").nullable().optional(),\n payment_received: z.string().describe(\"Flag indicating payment received status.\").nullable().optional(),\n quote_sent_stamp: z.string().describe(\"Timestamp when the quote was sent (YYYY-MM-DD HH:MM:SS).\").nullable().optional(),\n payment_processed: z.string().describe(\"Flag indicating payment processed status.\").nullable().optional(),\n queue_expiry_date: z.string().describe(\"Timestamp when queue assignment expires (YYYY-MM-DD HH:MM:SS).\").nullable().optional(),\n unsuccessful_date: z.string().describe(\"Timestamp when job was marked unsuccessful.\").nullable().optional(),\n invoice_sent_stamp: z.string().describe(\"Timestamp when the invoice was sent (YYYY-MM-DD HH:MM:SS).\").nullable().optional(),\n total_invoice_amount: z.string().describe(\"Total invoiced amount for the job.\").nullable().optional(),\n created_by_staff_uuid: z.string().describe(\"UUID of the staff member who created this job.\").nullable().optional(),\n purchase_order_number: z.string().describe(\"Client purchase order reference number (max length 100).\").nullable().optional(),\n work_done_description: z.string().describe(\"Work done description.\").nullable().optional(),\n payment_received_stamp: z.string().describe(\"Timestamp when payment was received.\").nullable().optional(),\n payment_processed_stamp: z.string().describe(\"Timestamp when payment was processed.\").nullable().optional(),\n payment_actioned_by_uuid: z.string().describe(\"UUID of staff who actioned payment (not used).\").nullable().optional(),\n queue_assigned_staff_uuid: z.string().describe(\"UUID of staff responsible for the job in the queue.\").nullable().optional(),\n completion_actioned_by_uuid: z.string().describe(\"UUID of staff who marked the job as completed.\").nullable().optional(),\n job_is_scheduled_until_stamp: z.string().describe(\"Timestamp until which the job is scheduled.\").nullable().optional(),\n}).passthrough();\nexport const Servicem8ListAllJobsOutput = z.object({\n jobs: z.array(Servicem8ListAllJobs_JobSchema).describe(\"Array of jobs returned by ServiceM8.\"),\n}).passthrough().describe(\"Response model for listing ServiceM8 jobs.\");\n\nexport const servicem8ListAllJobs = action(\"SERVICEM8_LIST_ALL_JOBS\", {\n slug: \"servicem8-list-all-jobs\",\n name: \"List All Jobs\",\n description: \"Tool to list all jobs. Use when you need to fetch all job records from your ServiceM8 account.\",\n input: Servicem8ListAllJobsInput,\n output: Servicem8ListAllJobsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,EAChD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mUAAmU,CAAC,CAAC,SAAS,EAC5W,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAM,iCAAiCA,IAAAA,EAAE,OAAO;CAC9C,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC7E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC7E,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjH,QAAQA,IAAAA,EAAE,KAAK;EAAC;EAAS;EAAc;EAAgB;CAAW,CAAC,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACrH,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6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CAAC,SAAS,CAAC,CAAC,SAAS;AACvH,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,MAAMA,IAAAA,EAAE,MAAM,8BAA8B,CAAC,CAAC,SAAS,sCAAsC,EAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C;AAEtE,MAAa,uBAAuBC,eAAAA,OAAO,2BAA2B;CACpE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"list-all-jobs.cjs","names":["z","action"],"sources":["../../src/actions/list-all-jobs.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 Servicem8ListAllJobsInput = z.object({\n filter: z.string().describe(\"OData-style filter expression to narrow down jobs. 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: \\\"status eq 'Completed'\\\", \\\"status eq 'Work Order' and active eq 1\\\", \\\"date gt '2024-01-01'\\\".\").optional(),\n}).describe(\"Query parameters for listing ServiceM8 jobs.\");\nconst Servicem8ListAllJobs_JobSchema = z.object({\n lat: z.number().describe(\"Latitude coordinate of the job location.\").nullable().optional(),\n lng: z.number().describe(\"Longitude coordinate of the job location.\").nullable().optional(),\n date: z.string().describe(\"Date the job was created or scheduled.\").nullable(),\n uuid: z.string().describe(\"Unique identifier for this job record.\").nullable(),\n active: z.number().int().describe(\"Active flag (1 active, 0 deleted).\").nullable().optional(),\n badges: z.string().describe(\"Comma-separated list of badge UUIDs associated with this job.\").nullable().optional(),\n status: z.enum([\"Quote\", \"Work Order\", \"Unsuccessful\", \"Completed\"]).describe(\"Current status of the job.\").nullable(),\n geo_city: z.string().describe(\"City from geocoded address.\").nullable().optional(),\n edit_date: z.string().describe(\"Timestamp at which the record was last modified.\").nullable().optional(),\n geo_state: z.string().describe(\"State from geocoded address.\").nullable().optional(),\n geo_number: z.string().describe(\"House number from geocoded address.\").nullable().optional(),\n geo_street: z.string().describe(\"Street from geocoded address.\").nullable().optional(),\n queue_uuid: z.string().describe(\"UUID of the queue this job is assigned to.\").nullable().optional(),\n quote_date: z.string().describe(\"Timestamp when the job was quoted.\").nullable().optional(),\n quote_sent: z.number().int().describe(\"Boolean flag (0 or 1) indicating if quote was sent.\").nullable().optional(),\n geo_country: z.string().describe(\"Country from geocoded address.\").nullable().optional(),\n job_address: z.string().describe(\"Physical address where the job is to be performed (max length 500).\").nullable().optional(),\n company_uuid: z.string().describe(\"UUID of the client associated with this job.\").nullable(),\n geo_is_valid: z.string().describe(\"Whether geocoding for the job address was successful.\").nullable().optional(),\n geo_postcode: z.string().describe(\"Postal code from geocoded address.\").nullable().optional(),\n invoice_sent: z.string().describe(\"Boolean flag indicating whether an invoice has been sent.\").nullable().optional(),\n payment_date: z.string().describe(\"Payment date (not used; refer to JobPayment endpoint).\").nullable().optional(),\n category_uuid: z.string().describe(\"UUID of the job category.\").nullable().optional(),\n payment_amount: z.string().describe(\"Payment amount (not used; refer to JobPayment endpoint).\").nullable().optional(),\n payment_method: z.string().describe(\"Payment method (not used; refer to JobPayment endpoint).\").nullable().optional(),\n billing_address: z.string().describe(\"Address for invoicing; defaults to job address if not specified.\").nullable().optional(),\n completion_date: z.string().describe(\"Timestamp when the job was marked complete.\").nullable().optional(),\n job_description: z.string().describe(\"Description of the job.\").nullable().optional(),\n work_order_date: z.string().describe(\"Timestamp when the job became a work order.\").nullable().optional(),\n generated_job_id: z.string().describe(\"System-generated unique job identifier (read-only).\").nullable().optional(),\n payment_received: z.string().describe(\"Flag indicating payment received status.\").nullable().optional(),\n quote_sent_stamp: z.string().describe(\"Timestamp when the quote was sent (YYYY-MM-DD HH:MM:SS).\").nullable().optional(),\n payment_processed: z.string().describe(\"Flag indicating payment processed status.\").nullable().optional(),\n queue_expiry_date: z.string().describe(\"Timestamp when queue assignment expires (YYYY-MM-DD HH:MM:SS).\").nullable().optional(),\n unsuccessful_date: z.string().describe(\"Timestamp when job was marked unsuccessful.\").nullable().optional(),\n invoice_sent_stamp: z.string().describe(\"Timestamp when the invoice was sent (YYYY-MM-DD HH:MM:SS).\").nullable().optional(),\n total_invoice_amount: z.string().describe(\"Total invoiced amount for the job.\").nullable().optional(),\n created_by_staff_uuid: z.string().describe(\"UUID of the staff member who created this job.\").nullable().optional(),\n purchase_order_number: z.string().describe(\"Client purchase order reference number (max length 100).\").nullable().optional(),\n work_done_description: z.string().describe(\"Work done description.\").nullable().optional(),\n payment_received_stamp: z.string().describe(\"Timestamp when payment was received.\").nullable().optional(),\n payment_processed_stamp: z.string().describe(\"Timestamp when payment was processed.\").nullable().optional(),\n payment_actioned_by_uuid: z.string().describe(\"UUID of staff who actioned payment (not used).\").nullable().optional(),\n queue_assigned_staff_uuid: z.string().describe(\"UUID of staff responsible for the job in the queue.\").nullable().optional(),\n completion_actioned_by_uuid: z.string().describe(\"UUID of staff who marked the job as completed.\").nullable().optional(),\n job_is_scheduled_until_stamp: z.string().describe(\"Timestamp until which the job is scheduled.\").nullable().optional(),\n}).passthrough();\nexport const Servicem8ListAllJobsOutput = z.object({\n jobs: z.array(Servicem8ListAllJobs_JobSchema).describe(\"Array of jobs returned by ServiceM8.\"),\n}).passthrough().describe(\"Response model for listing ServiceM8 jobs.\");\n\nexport const servicem8ListAllJobs: AppAction<\n typeof Servicem8ListAllJobsInput,\n typeof Servicem8ListAllJobsOutput,\n typeof servicem8.credential\n> = action(\"SERVICEM8_LIST_ALL_JOBS\", {\n slug: \"servicem8-list-all-jobs\",\n name: \"List All Jobs\",\n description: \"Tool to list all jobs. Use when you need to fetch all job records from your ServiceM8 account.\",\n input: Servicem8ListAllJobsInput,\n output: Servicem8ListAllJobsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,EAChD,QAAQA,IAAAA,EAAE,OAAO,C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2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/list-all-jobs.d.ts
@@ -59,9 +61,7 @@ declare const Servicem8ListAllJobsOutput: z.ZodObject<{
59
61
  job_is_scheduled_until_stamp: z.ZodOptional<z.ZodNullable<z.ZodString>>;
60
62
  }, z.core.$loose>>;
61
63
  }, z.core.$loose>;
62
- declare const servicem8ListAllJobs: import("@keystrokehq/action").WorkflowActionDefinition<{
63
- filter?: string | undefined;
64
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
64
+ declare const servicem8ListAllJobs: AppAction<typeof Servicem8ListAllJobsInput, typeof Servicem8ListAllJobsOutput, typeof servicem8.credential>;
65
65
  //#endregion
66
66
  export { servicem8ListAllJobs };
67
67
  //# sourceMappingURL=list-all-jobs.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-all-jobs.d.cts","names":[],"sources":["../../src/actions/list-all-jobs.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;cAmDzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAI1B,oBAAA,gCAAoB,wBAAA"}
1
+ {"version":3,"file":"list-all-jobs.d.cts","names":[],"sources":["../../src/actions/list-all-jobs.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;cAmDzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAI1B,oBAAA,EAAsB,SAAA,QAC1B,yBAAA,SACA,0BAAA,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-jobs.d.ts
@@ -59,9 +61,7 @@ declare const Servicem8ListAllJobsOutput: z.ZodObject<{
59
61
  job_is_scheduled_until_stamp: z.ZodOptional<z.ZodNullable<z.ZodString>>;
60
62
  }, z.core.$loose>>;
61
63
  }, z.core.$loose>;
62
- declare const servicem8ListAllJobs: import("@keystrokehq/action").WorkflowActionDefinition<{
63
- filter?: string | undefined;
64
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
64
+ declare const servicem8ListAllJobs: AppAction<typeof Servicem8ListAllJobsInput, typeof Servicem8ListAllJobsOutput, typeof servicem8.credential>;
65
65
  //#endregion
66
66
  export { servicem8ListAllJobs };
67
67
  //# sourceMappingURL=list-all-jobs.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-all-jobs.d.mts","names":[],"sources":["../../src/actions/list-all-jobs.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;cAmDzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAI1B,oBAAA,gCAAoB,wBAAA"}
1
+ {"version":3,"file":"list-all-jobs.d.mts","names":[],"sources":["../../src/actions/list-all-jobs.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;cAmDzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAI1B,oBAAA,EAAsB,SAAA,QAC1B,yBAAA,SACA,0BAAA,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-jobs.ts
@@ -1 +1 @@
1
- {"version":3,"file":"list-all-jobs.mjs","names":[],"sources":["../../src/actions/list-all-jobs.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8ListAllJobsInput = z.object({\n filter: z.string().describe(\"OData-style filter expression to narrow down jobs. 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: \\\"status eq 'Completed'\\\", \\\"status eq 'Work Order' and active eq 1\\\", \\\"date gt '2024-01-01'\\\".\").optional(),\n}).describe(\"Query parameters for listing ServiceM8 jobs.\");\nconst Servicem8ListAllJobs_JobSchema = z.object({\n lat: z.number().describe(\"Latitude coordinate of the job location.\").nullable().optional(),\n lng: z.number().describe(\"Longitude coordinate of the job location.\").nullable().optional(),\n date: z.string().describe(\"Date the job was created or scheduled.\").nullable(),\n uuid: z.string().describe(\"Unique identifier for this job record.\").nullable(),\n active: z.number().int().describe(\"Active flag (1 active, 0 deleted).\").nullable().optional(),\n badges: z.string().describe(\"Comma-separated list of badge UUIDs associated with this job.\").nullable().optional(),\n status: z.enum([\"Quote\", \"Work Order\", \"Unsuccessful\", \"Completed\"]).describe(\"Current status of the job.\").nullable(),\n geo_city: z.string().describe(\"City from geocoded address.\").nullable().optional(),\n edit_date: z.string().describe(\"Timestamp at which the record was last modified.\").nullable().optional(),\n geo_state: z.string().describe(\"State from geocoded address.\").nullable().optional(),\n geo_number: z.string().describe(\"House number from geocoded address.\").nullable().optional(),\n geo_street: z.string().describe(\"Street from geocoded address.\").nullable().optional(),\n queue_uuid: z.string().describe(\"UUID of the queue this job is assigned to.\").nullable().optional(),\n quote_date: z.string().describe(\"Timestamp when the job was quoted.\").nullable().optional(),\n quote_sent: z.number().int().describe(\"Boolean flag (0 or 1) indicating if quote was sent.\").nullable().optional(),\n geo_country: z.string().describe(\"Country from geocoded address.\").nullable().optional(),\n job_address: z.string().describe(\"Physical address where the job is to be performed (max length 500).\").nullable().optional(),\n company_uuid: z.string().describe(\"UUID of the client associated with this job.\").nullable(),\n geo_is_valid: z.string().describe(\"Whether geocoding for the job address was successful.\").nullable().optional(),\n geo_postcode: z.string().describe(\"Postal code from geocoded address.\").nullable().optional(),\n invoice_sent: z.string().describe(\"Boolean flag indicating whether an invoice has been sent.\").nullable().optional(),\n payment_date: z.string().describe(\"Payment date (not used; refer to JobPayment endpoint).\").nullable().optional(),\n category_uuid: z.string().describe(\"UUID of the job category.\").nullable().optional(),\n payment_amount: z.string().describe(\"Payment amount (not used; refer to JobPayment endpoint).\").nullable().optional(),\n payment_method: z.string().describe(\"Payment method (not used; refer to JobPayment endpoint).\").nullable().optional(),\n billing_address: z.string().describe(\"Address for invoicing; defaults to job address if not specified.\").nullable().optional(),\n completion_date: z.string().describe(\"Timestamp when the job was marked complete.\").nullable().optional(),\n job_description: z.string().describe(\"Description of the job.\").nullable().optional(),\n work_order_date: z.string().describe(\"Timestamp when the job became a work order.\").nullable().optional(),\n generated_job_id: z.string().describe(\"System-generated unique job identifier (read-only).\").nullable().optional(),\n payment_received: z.string().describe(\"Flag indicating payment received status.\").nullable().optional(),\n quote_sent_stamp: z.string().describe(\"Timestamp when the quote was sent (YYYY-MM-DD HH:MM:SS).\").nullable().optional(),\n payment_processed: z.string().describe(\"Flag indicating payment processed status.\").nullable().optional(),\n queue_expiry_date: z.string().describe(\"Timestamp when queue assignment expires (YYYY-MM-DD HH:MM:SS).\").nullable().optional(),\n unsuccessful_date: z.string().describe(\"Timestamp when job was marked unsuccessful.\").nullable().optional(),\n invoice_sent_stamp: z.string().describe(\"Timestamp when the invoice was sent (YYYY-MM-DD HH:MM:SS).\").nullable().optional(),\n total_invoice_amount: z.string().describe(\"Total invoiced amount for the job.\").nullable().optional(),\n created_by_staff_uuid: z.string().describe(\"UUID of the staff member who created this job.\").nullable().optional(),\n purchase_order_number: z.string().describe(\"Client purchase order reference number (max length 100).\").nullable().optional(),\n work_done_description: z.string().describe(\"Work done description.\").nullable().optional(),\n payment_received_stamp: z.string().describe(\"Timestamp when payment was received.\").nullable().optional(),\n payment_processed_stamp: z.string().describe(\"Timestamp when payment was processed.\").nullable().optional(),\n payment_actioned_by_uuid: z.string().describe(\"UUID of staff who actioned payment (not used).\").nullable().optional(),\n queue_assigned_staff_uuid: z.string().describe(\"UUID of staff responsible for the job in the queue.\").nullable().optional(),\n completion_actioned_by_uuid: z.string().describe(\"UUID of staff who marked the job as completed.\").nullable().optional(),\n job_is_scheduled_until_stamp: z.string().describe(\"Timestamp until which the job is scheduled.\").nullable().optional(),\n}).passthrough();\nexport const Servicem8ListAllJobsOutput = z.object({\n jobs: z.array(Servicem8ListAllJobs_JobSchema).describe(\"Array of jobs returned by ServiceM8.\"),\n}).passthrough().describe(\"Response model for listing ServiceM8 jobs.\");\n\nexport const servicem8ListAllJobs = action(\"SERVICEM8_LIST_ALL_JOBS\", {\n slug: \"servicem8-list-all-jobs\",\n name: \"List All Jobs\",\n description: \"Tool to list all jobs. Use when you need to fetch all job records from your ServiceM8 account.\",\n input: Servicem8ListAllJobsInput,\n output: Servicem8ListAllJobsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4B,EAAE,OAAO,EAChD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,mUAAmU,CAAC,CAAC,SAAS,EAC5W,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAM,iCAAiC,EAAE,OAAO;CAC9C,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC7E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC7E,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAo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CAAC,CAAC,YAAY;AAKf,MAAa,uBAAuB,OAAO,2BAA2B;CACpE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATwC,EAAE,OAAO,EACjD,MAAM,EAAE,MAAM,8BAA8B,CAAC,CAAC,SAAS,sCAAsC,EAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"list-all-jobs.mjs","names":[],"sources":["../../src/actions/list-all-jobs.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 Servicem8ListAllJobsInput = z.object({\n filter: z.string().describe(\"OData-style filter expression to narrow down jobs. 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: \\\"status eq 'Completed'\\\", \\\"status eq 'Work Order' and active eq 1\\\", \\\"date gt '2024-01-01'\\\".\").optional(),\n}).describe(\"Query parameters for listing ServiceM8 jobs.\");\nconst Servicem8ListAllJobs_JobSchema = z.object({\n lat: z.number().describe(\"Latitude coordinate of the job location.\").nullable().optional(),\n lng: z.number().describe(\"Longitude coordinate of the job location.\").nullable().optional(),\n date: z.string().describe(\"Date the job was created or scheduled.\").nullable(),\n uuid: z.string().describe(\"Unique identifier for this job record.\").nullable(),\n active: z.number().int().describe(\"Active flag (1 active, 0 deleted).\").nullable().optional(),\n badges: z.string().describe(\"Comma-separated list of badge UUIDs associated with this job.\").nullable().optional(),\n status: z.enum([\"Quote\", \"Work Order\", \"Unsuccessful\", \"Completed\"]).describe(\"Current status of the job.\").nullable(),\n geo_city: z.string().describe(\"City from geocoded address.\").nullable().optional(),\n edit_date: z.string().describe(\"Timestamp at which the record was last modified.\").nullable().optional(),\n geo_state: z.string().describe(\"State from geocoded address.\").nullable().optional(),\n geo_number: z.string().describe(\"House number from geocoded address.\").nullable().optional(),\n geo_street: z.string().describe(\"Street from geocoded address.\").nullable().optional(),\n queue_uuid: z.string().describe(\"UUID of the queue this job is assigned to.\").nullable().optional(),\n quote_date: z.string().describe(\"Timestamp when the job was quoted.\").nullable().optional(),\n quote_sent: z.number().int().describe(\"Boolean flag (0 or 1) indicating if quote was sent.\").nullable().optional(),\n geo_country: z.string().describe(\"Country from geocoded address.\").nullable().optional(),\n job_address: z.string().describe(\"Physical address where the job is to be performed (max length 500).\").nullable().optional(),\n company_uuid: z.string().describe(\"UUID of the client associated with this job.\").nullable(),\n geo_is_valid: z.string().describe(\"Whether geocoding for the job address was successful.\").nullable().optional(),\n geo_postcode: z.string().describe(\"Postal code from geocoded address.\").nullable().optional(),\n invoice_sent: z.string().describe(\"Boolean flag indicating whether an invoice has been sent.\").nullable().optional(),\n payment_date: z.string().describe(\"Payment date (not used; refer to JobPayment endpoint).\").nullable().optional(),\n category_uuid: z.string().describe(\"UUID of the job category.\").nullable().optional(),\n payment_amount: z.string().describe(\"Payment amount (not used; refer to JobPayment endpoint).\").nullable().optional(),\n payment_method: z.string().describe(\"Payment method (not used; refer to JobPayment endpoint).\").nullable().optional(),\n billing_address: z.string().describe(\"Address for invoicing; defaults to job address if not specified.\").nullable().optional(),\n completion_date: z.string().describe(\"Timestamp when the job was marked complete.\").nullable().optional(),\n job_description: z.string().describe(\"Description of the job.\").nullable().optional(),\n work_order_date: z.string().describe(\"Timestamp when the job became a work order.\").nullable().optional(),\n generated_job_id: z.string().describe(\"System-generated unique job identifier (read-only).\").nullable().optional(),\n payment_received: z.string().describe(\"Flag indicating payment received status.\").nullable().optional(),\n quote_sent_stamp: z.string().describe(\"Timestamp when the quote was sent (YYYY-MM-DD HH:MM:SS).\").nullable().optional(),\n payment_processed: z.string().describe(\"Flag indicating payment processed status.\").nullable().optional(),\n queue_expiry_date: z.string().describe(\"Timestamp when queue assignment expires (YYYY-MM-DD HH:MM:SS).\").nullable().optional(),\n unsuccessful_date: z.string().describe(\"Timestamp when job was marked unsuccessful.\").nullable().optional(),\n invoice_sent_stamp: z.string().describe(\"Timestamp when the invoice was sent (YYYY-MM-DD HH:MM:SS).\").nullable().optional(),\n total_invoice_amount: z.string().describe(\"Total invoiced amount for the job.\").nullable().optional(),\n created_by_staff_uuid: z.string().describe(\"UUID of the staff member who created this job.\").nullable().optional(),\n purchase_order_number: z.string().describe(\"Client purchase order reference number (max length 100).\").nullable().optional(),\n work_done_description: z.string().describe(\"Work done description.\").nullable().optional(),\n payment_received_stamp: z.string().describe(\"Timestamp when payment was received.\").nullable().optional(),\n payment_processed_stamp: z.string().describe(\"Timestamp when payment was processed.\").nullable().optional(),\n payment_actioned_by_uuid: z.string().describe(\"UUID of staff who actioned payment (not used).\").nullable().optional(),\n queue_assigned_staff_uuid: z.string().describe(\"UUID of staff responsible for the job in the queue.\").nullable().optional(),\n completion_actioned_by_uuid: z.string().describe(\"UUID of staff who marked the job as completed.\").nullable().optional(),\n job_is_scheduled_until_stamp: z.string().describe(\"Timestamp until which the job is scheduled.\").nullable().optional(),\n}).passthrough();\nexport const Servicem8ListAllJobsOutput = z.object({\n jobs: z.array(Servicem8ListAllJobs_JobSchema).describe(\"Array of jobs returned by ServiceM8.\"),\n}).passthrough().describe(\"Response model for listing ServiceM8 jobs.\");\n\nexport const servicem8ListAllJobs: AppAction<\n typeof Servicem8ListAllJobsInput,\n typeof Servicem8ListAllJobsOutput,\n typeof servicem8.credential\n> = action(\"SERVICEM8_LIST_ALL_JOBS\", {\n slug: \"servicem8-list-all-jobs\",\n name: \"List All Jobs\",\n description: \"Tool to list all jobs. Use when you need to fetch all job records from your ServiceM8 account.\",\n input: Servicem8ListAllJobsInput,\n output: Servicem8ListAllJobsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,4BAA4B,EAAE,OAAO,EAChD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,mUAAmU,CAAC,CAAC,SAAS,EAC5W,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAM,iCAAiC,EAAE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,CAAC,CAAC,SAAS;CAC1G,0BAA0B,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpH,2BAA2B,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1H,6BAA6B,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvH,8BAA8B,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvH,CAAC,CAAC,CAAC,YAAY;AAKf,MAAa,uBAIT,OAAO,2BAA2B;CACpC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAbwC,EAAE,OAAO,EACjD,MAAM,EAAE,MAAM,8BAA8B,CAAC,CAAC,SAAS,sCAAsC,EAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAWhB;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-locations.ts
@@ -1 +1 @@
1
- {"version":3,"file":"list-all-locations.cjs","names":["z","action"],"sources":["../../src/actions/list-all-locations.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8ListAllLocationsInput = z.object({\n filter: z.string().describe(\"Optional filter expression to narrow down locations using ServiceM8 filtering syntax (e.g., 'active eq 1'). See ServiceM8 filtering docs for syntax details.\").optional(),\n}).describe(\"Request model for listing all ServiceM8 locations.\");\nexport const Servicem8ListAllLocationsOutput = z.unknown();\n\nexport const servicem8ListAllLocations = action(\"SERVICEM8_LIST_ALL_LOCATIONS\", {\n slug: \"servicem8-list-all-locations\",\n name: \"List All Locations\",\n description: \"Lists all ServiceM8 locations. Use to fetch configured service areas, office locations, or warehouses for job assignments, mapping, or reporting.\",\n input: Servicem8ListAllLocationsInput,\n output: Servicem8ListAllLocationsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO,EACrD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8JAA8J,CAAC,CAAC,SAAS,EACvM,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAChE,MAAa,kCAAkCA,IAAAA,EAAE,QAAQ;AAEzD,MAAa,4BAA4BC,eAAAA,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"list-all-locations.cjs","names":["z","action"],"sources":["../../src/actions/list-all-locations.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 Servicem8ListAllLocationsInput = z.object({\n filter: z.string().describe(\"Optional filter expression to narrow down locations using ServiceM8 filtering syntax (e.g., 'active eq 1'). See ServiceM8 filtering docs for syntax details.\").optional(),\n}).describe(\"Request model for listing all ServiceM8 locations.\");\nexport const Servicem8ListAllLocationsOutput = z.unknown();\n\nexport const servicem8ListAllLocations: AppAction<\n typeof Servicem8ListAllLocationsInput,\n typeof Servicem8ListAllLocationsOutput,\n typeof servicem8.credential\n> = action(\"SERVICEM8_LIST_ALL_LOCATIONS\", {\n slug: \"servicem8-list-all-locations\",\n name: \"List All Locations\",\n description: \"Lists all ServiceM8 locations. Use to fetch configured service areas, office locations, or warehouses for job assignments, mapping, or reporting.\",\n input: Servicem8ListAllLocationsInput,\n output: Servicem8ListAllLocationsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO,EACrD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8JAA8J,CAAC,CAAC,SAAS,EACvM,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAChE,MAAa,kCAAkCA,IAAAA,EAAE,QAAQ;AAEzD,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/list-all-locations.d.ts
@@ -5,9 +7,7 @@ declare const Servicem8ListAllLocationsInput: z.ZodObject<{
5
7
  filter: z.ZodOptional<z.ZodString>;
6
8
  }, z.core.$strip>;
7
9
  declare const Servicem8ListAllLocationsOutput: z.ZodUnknown;
8
- declare const servicem8ListAllLocations: 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 servicem8ListAllLocations: AppAction<typeof Servicem8ListAllLocationsInput, typeof Servicem8ListAllLocationsOutput, typeof servicem8.credential>;
11
11
  //#endregion
12
12
  export { servicem8ListAllLocations };
13
13
  //# sourceMappingURL=list-all-locations.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-all-locations.d.cts","names":[],"sources":["../../src/actions/list-all-locations.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;cAG9B,+BAAA,EAA+B,CAAA,CAAA,UAAc;AAAA,cAE7C,yBAAA,gCAAyB,wBAAA"}
1
+ {"version":3,"file":"list-all-locations.d.cts","names":[],"sources":["../../src/actions/list-all-locations.ts"],"mappings":";;;;;cAMa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;cAG9B,+BAAA,EAA+B,CAAA,CAAA,UAAc;AAAA,cAE7C,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/list-all-locations.d.ts
@@ -5,9 +7,7 @@ declare const Servicem8ListAllLocationsInput: z.ZodObject<{
5
7
  filter: z.ZodOptional<z.ZodString>;
6
8
  }, z.core.$strip>;
7
9
  declare const Servicem8ListAllLocationsOutput: z.ZodUnknown;
8
- declare const servicem8ListAllLocations: 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 servicem8ListAllLocations: AppAction<typeof Servicem8ListAllLocationsInput, typeof Servicem8ListAllLocationsOutput, typeof servicem8.credential>;
11
11
  //#endregion
12
12
  export { servicem8ListAllLocations };
13
13
  //# sourceMappingURL=list-all-locations.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-all-locations.d.mts","names":[],"sources":["../../src/actions/list-all-locations.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;cAG9B,+BAAA,EAA+B,CAAA,CAAA,UAAc;AAAA,cAE7C,yBAAA,gCAAyB,wBAAA"}
1
+ {"version":3,"file":"list-all-locations.d.mts","names":[],"sources":["../../src/actions/list-all-locations.ts"],"mappings":";;;;;cAMa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;cAG9B,+BAAA,EAA+B,CAAA,CAAA,UAAc;AAAA,cAE7C,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 servicem8ListAllLocations = action("SERVICEM8_LIST_ALL_LOCATIONS", {
@@ -1 +1 @@
1
- {"version":3,"file":"list-all-locations.mjs","names":[],"sources":["../../src/actions/list-all-locations.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8ListAllLocationsInput = z.object({\n filter: z.string().describe(\"Optional filter expression to narrow down locations using ServiceM8 filtering syntax (e.g., 'active eq 1'). See ServiceM8 filtering docs for syntax details.\").optional(),\n}).describe(\"Request model for listing all ServiceM8 locations.\");\nexport const Servicem8ListAllLocationsOutput = z.unknown();\n\nexport const servicem8ListAllLocations = action(\"SERVICEM8_LIST_ALL_LOCATIONS\", {\n slug: \"servicem8-list-all-locations\",\n name: \"List All Locations\",\n description: \"Lists all ServiceM8 locations. Use to fetch configured service areas, office locations, or warehouses for job assignments, mapping, or reporting.\",\n input: Servicem8ListAllLocationsInput,\n output: Servicem8ListAllLocationsOutput,\n});\n"],"mappings":";;AASA,MAAa,4BAA4B,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAT4C,EAAE,OAAO,EACrD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,8JAA8J,CAAC,CAAC,SAAS,EACvM,CAAC,CAAC,CAAC,SAAS,oDAOH;CACP,QAP6C,EAAE,QAOvC;AACV,CAAC"}
1
+ {"version":3,"file":"list-all-locations.mjs","names":[],"sources":["../../src/actions/list-all-locations.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 Servicem8ListAllLocationsInput = z.object({\n filter: z.string().describe(\"Optional filter expression to narrow down locations using ServiceM8 filtering syntax (e.g., 'active eq 1'). See ServiceM8 filtering docs for syntax details.\").optional(),\n}).describe(\"Request model for listing all ServiceM8 locations.\");\nexport const Servicem8ListAllLocationsOutput = z.unknown();\n\nexport const servicem8ListAllLocations: AppAction<\n typeof Servicem8ListAllLocationsInput,\n typeof Servicem8ListAllLocationsOutput,\n typeof servicem8.credential\n> = action(\"SERVICEM8_LIST_ALL_LOCATIONS\", {\n slug: \"servicem8-list-all-locations\",\n name: \"List All Locations\",\n description: \"Lists all ServiceM8 locations. Use to fetch configured service areas, office locations, or warehouses for job assignments, mapping, or reporting.\",\n input: Servicem8ListAllLocationsInput,\n output: Servicem8ListAllLocationsOutput,\n});\n"],"mappings":";;;AAWA,MAAa,4BAIT,OAAO,gCAAgC;CACzC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAb4C,EAAE,OAAO,EACrD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,8JAA8J,CAAC,CAAC,SAAS,EACvM,CAAC,CAAC,CAAC,SAAS,oDAWH;CACP,QAX6C,EAAE,QAWvC;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-materials.ts
@@ -1 +1 @@
1
- {"version":3,"file":"list-all-materials.cjs","names":["z","action"],"sources":["../../src/actions/list-all-materials.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8ListAllMaterialsInput = z.object({\n filter: z.string().describe(\"Filter expression using ServiceM8 filtering syntax to narrow down results. Examples: 'active eq 1' for active materials only, 'name eq \\\"Labour\\\"' for materials with specific name.\").optional(),\n}).describe(\"Request model for listing all materials in ServiceM8 inventory.\");\nexport const Servicem8ListAllMaterialsOutput = z.unknown();\n\nexport const servicem8ListAllMaterials = action(\"SERVICEM8_LIST_ALL_MATERIALS\", {\n slug: \"servicem8-list-all-materials\",\n name: \"List All Materials\",\n description: \"Retrieve all materials (products, labour rates, inventory items) from ServiceM8. Use this to get a complete catalog of materials for quoting, invoicing, or inventory management. Requires the 'read_inventory' OAuth scope.\",\n input: Servicem8ListAllMaterialsInput,\n output: Servicem8ListAllMaterialsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO,EACrD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sLAAsL,CAAC,CAAC,SAAS,EAC/N,CAAC,CAAC,CAAC,SAAS,iEAAiE;AAC7E,MAAa,kCAAkCA,IAAAA,EAAE,QAAQ;AAEzD,MAAa,4BAA4BC,eAAAA,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"list-all-materials.cjs","names":["z","action"],"sources":["../../src/actions/list-all-materials.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 Servicem8ListAllMaterialsInput = z.object({\n filter: z.string().describe(\"Filter expression using ServiceM8 filtering syntax to narrow down results. Examples: 'active eq 1' for active materials only, 'name eq \\\"Labour\\\"' for materials with specific name.\").optional(),\n}).describe(\"Request model for listing all materials in ServiceM8 inventory.\");\nexport const Servicem8ListAllMaterialsOutput = z.unknown();\n\nexport const servicem8ListAllMaterials: AppAction<\n typeof Servicem8ListAllMaterialsInput,\n typeof Servicem8ListAllMaterialsOutput,\n typeof servicem8.credential\n> = action(\"SERVICEM8_LIST_ALL_MATERIALS\", {\n slug: \"servicem8-list-all-materials\",\n name: \"List All Materials\",\n description: \"Retrieve all materials (products, labour rates, inventory items) from ServiceM8. Use this to get a complete catalog of materials for quoting, invoicing, or inventory management. Requires the 'read_inventory' OAuth scope.\",\n input: Servicem8ListAllMaterialsInput,\n output: Servicem8ListAllMaterialsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO,EACrD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sLAAsL,CAAC,CAAC,SAAS,EAC/N,CAAC,CAAC,CAAC,SAAS,iEAAiE;AAC7E,MAAa,kCAAkCA,IAAAA,EAAE,QAAQ;AAEzD,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/list-all-materials.d.ts
@@ -5,9 +7,7 @@ declare const Servicem8ListAllMaterialsInput: z.ZodObject<{
5
7
  filter: z.ZodOptional<z.ZodString>;
6
8
  }, z.core.$strip>;
7
9
  declare const Servicem8ListAllMaterialsOutput: z.ZodUnknown;
8
- declare const servicem8ListAllMaterials: 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 servicem8ListAllMaterials: AppAction<typeof Servicem8ListAllMaterialsInput, typeof Servicem8ListAllMaterialsOutput, typeof servicem8.credential>;
11
11
  //#endregion
12
12
  export { servicem8ListAllMaterials };
13
13
  //# sourceMappingURL=list-all-materials.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-all-materials.d.cts","names":[],"sources":["../../src/actions/list-all-materials.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;cAG9B,+BAAA,EAA+B,CAAA,CAAA,UAAc;AAAA,cAE7C,yBAAA,gCAAyB,wBAAA"}
1
+ {"version":3,"file":"list-all-materials.d.cts","names":[],"sources":["../../src/actions/list-all-materials.ts"],"mappings":";;;;;cAMa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;cAG9B,+BAAA,EAA+B,CAAA,CAAA,UAAc;AAAA,cAE7C,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/list-all-materials.d.ts
@@ -5,9 +7,7 @@ declare const Servicem8ListAllMaterialsInput: z.ZodObject<{
5
7
  filter: z.ZodOptional<z.ZodString>;
6
8
  }, z.core.$strip>;
7
9
  declare const Servicem8ListAllMaterialsOutput: z.ZodUnknown;
8
- declare const servicem8ListAllMaterials: 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 servicem8ListAllMaterials: AppAction<typeof Servicem8ListAllMaterialsInput, typeof Servicem8ListAllMaterialsOutput, typeof servicem8.credential>;
11
11
  //#endregion
12
12
  export { servicem8ListAllMaterials };
13
13
  //# sourceMappingURL=list-all-materials.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-all-materials.d.mts","names":[],"sources":["../../src/actions/list-all-materials.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;cAG9B,+BAAA,EAA+B,CAAA,CAAA,UAAc;AAAA,cAE7C,yBAAA,gCAAyB,wBAAA"}
1
+ {"version":3,"file":"list-all-materials.d.mts","names":[],"sources":["../../src/actions/list-all-materials.ts"],"mappings":";;;;;cAMa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;cAG9B,+BAAA,EAA+B,CAAA,CAAA,UAAc;AAAA,cAE7C,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 servicem8ListAllMaterials = action("SERVICEM8_LIST_ALL_MATERIALS", {
@@ -1 +1 @@
1
- {"version":3,"file":"list-all-materials.mjs","names":[],"sources":["../../src/actions/list-all-materials.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8ListAllMaterialsInput = z.object({\n filter: z.string().describe(\"Filter expression using ServiceM8 filtering syntax to narrow down results. Examples: 'active eq 1' for active materials only, 'name eq \\\"Labour\\\"' for materials with specific name.\").optional(),\n}).describe(\"Request model for listing all materials in ServiceM8 inventory.\");\nexport const Servicem8ListAllMaterialsOutput = z.unknown();\n\nexport const servicem8ListAllMaterials = action(\"SERVICEM8_LIST_ALL_MATERIALS\", {\n slug: \"servicem8-list-all-materials\",\n name: \"List All Materials\",\n description: \"Retrieve all materials (products, labour rates, inventory items) from ServiceM8. Use this to get a complete catalog of materials for quoting, invoicing, or inventory management. Requires the 'read_inventory' OAuth scope.\",\n input: Servicem8ListAllMaterialsInput,\n output: Servicem8ListAllMaterialsOutput,\n});\n"],"mappings":";;AASA,MAAa,4BAA4B,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAT4C,EAAE,OAAO,EACrD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,sLAAsL,CAAC,CAAC,SAAS,EAC/N,CAAC,CAAC,CAAC,SAAS,iEAOH;CACP,QAP6C,EAAE,QAOvC;AACV,CAAC"}
1
+ {"version":3,"file":"list-all-materials.mjs","names":[],"sources":["../../src/actions/list-all-materials.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 Servicem8ListAllMaterialsInput = z.object({\n filter: z.string().describe(\"Filter expression using ServiceM8 filtering syntax to narrow down results. Examples: 'active eq 1' for active materials only, 'name eq \\\"Labour\\\"' for materials with specific name.\").optional(),\n}).describe(\"Request model for listing all materials in ServiceM8 inventory.\");\nexport const Servicem8ListAllMaterialsOutput = z.unknown();\n\nexport const servicem8ListAllMaterials: AppAction<\n typeof Servicem8ListAllMaterialsInput,\n typeof Servicem8ListAllMaterialsOutput,\n typeof servicem8.credential\n> = action(\"SERVICEM8_LIST_ALL_MATERIALS\", {\n slug: \"servicem8-list-all-materials\",\n name: \"List All Materials\",\n description: \"Retrieve all materials (products, labour rates, inventory items) from ServiceM8. Use this to get a complete catalog of materials for quoting, invoicing, or inventory management. Requires the 'read_inventory' OAuth scope.\",\n input: Servicem8ListAllMaterialsInput,\n output: Servicem8ListAllMaterialsOutput,\n});\n"],"mappings":";;;AAWA,MAAa,4BAIT,OAAO,gCAAgC;CACzC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAb4C,EAAE,OAAO,EACrD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,sLAAsL,CAAC,CAAC,SAAS,EAC/N,CAAC,CAAC,CAAC,SAAS,iEAWH;CACP,QAX6C,EAAE,QAWvC;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-tasks.ts
@@ -1 +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.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.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.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}).passthrough().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,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kLAAkL,CAAC,CAAC,SAAS;CACzN,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uQAAuQ,CAAC,CAAC,SAAS;AAChT,CAAC,CAAC,CAAC,SAAS,+FAA+F;AAC3G,MAAM,mCAAmCA,IAAAA,EAAE,OAAO;CAChD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,QAA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AAA,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"list-all-tasks.cjs","names":["z","action"],"sources":["../../src/actions/list-all-tasks.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 Servicem8ListAllTasksInput = 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.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.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}).passthrough().describe(\"Response model for listing all tasks: returns a list of Task objects\\nwith optional pagination cursor.\");\n\nexport const servicem8ListAllTasks: AppAction<\n typeof Servicem8ListAllTasksInput,\n typeof Servicem8ListAllTasksOutput,\n typeof servicem8.credential\n> = 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":";;;;AAMA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kLAAkL,CAAC,CAAC,SAAS;CACzN,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uQAAuQ,CAAC,CAAC,SAAS;AAChT,CAAC,CAAC,CAAC,SAAS,+FAA+F;AAC3G,MAAM,mCAAmCA,IAAAA,EAAE,OAAO;CAChD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9H,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzH,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxH,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,yBAAyBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qCAAqC;AAC/D,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,OAAOA,IAAAA,EAAE,MAAM,gCAAgC,CAAC,CAAC,SAAS,uBAAuB;CACjF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0IAA0I,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnM,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wGAAwG;AAElI,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-tasks.d.ts
@@ -20,10 +22,7 @@ declare const Servicem8ListAllTasksOutput: z.ZodObject<{
20
22
  }, z.core.$loose>>;
21
23
  next_cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
24
  }, z.core.$loose>;
23
- declare const servicem8ListAllTasks: import("@keystrokehq/action").WorkflowActionDefinition<{
24
- cursor?: string | undefined;
25
- filter?: string | undefined;
26
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
25
+ declare const servicem8ListAllTasks: AppAction<typeof Servicem8ListAllTasksInput, typeof Servicem8ListAllTasksOutput, typeof servicem8.credential>;
27
26
  //#endregion
28
27
  export { servicem8ListAllTasks };
29
28
  //# sourceMappingURL=list-all-tasks.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-all-tasks.d.cts","names":[],"sources":["../../src/actions/list-all-tasks.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;cAgB1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAK3B,qBAAA,gCAAqB,wBAAA"}
1
+ {"version":3,"file":"list-all-tasks.d.cts","names":[],"sources":["../../src/actions/list-all-tasks.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;cAgB1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAK3B,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-tasks.d.ts
@@ -20,10 +22,7 @@ declare const Servicem8ListAllTasksOutput: z.ZodObject<{
20
22
  }, z.core.$loose>>;
21
23
  next_cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
24
  }, z.core.$loose>;
23
- declare const servicem8ListAllTasks: import("@keystrokehq/action").WorkflowActionDefinition<{
24
- cursor?: string | undefined;
25
- filter?: string | undefined;
26
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
25
+ declare const servicem8ListAllTasks: AppAction<typeof Servicem8ListAllTasksInput, typeof Servicem8ListAllTasksOutput, typeof servicem8.credential>;
27
26
  //#endregion
28
27
  export { servicem8ListAllTasks };
29
28
  //# sourceMappingURL=list-all-tasks.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-all-tasks.d.mts","names":[],"sources":["../../src/actions/list-all-tasks.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;cAgB1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAK3B,qBAAA,gCAAqB,wBAAA"}
1
+ {"version":3,"file":"list-all-tasks.d.mts","names":[],"sources":["../../src/actions/list-all-tasks.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;cAgB1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAK3B,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
  //#region src/actions/list-all-tasks.ts
@@ -1 +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.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.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.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}).passthrough().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,6BAA6B,EAAE,OAAO;CACjD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AM;CACN,aAAa;CACb,OAAO;CACP,QAVyC,EAAE,OAAO;EAClD,OAAO,EAAE,MAAM,gCAAgC,CAAC,CAAC,SAAS,uBAAuB;EACjF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,0IAA0I,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnM,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wGAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"list-all-tasks.mjs","names":[],"sources":["../../src/actions/list-all-tasks.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 Servicem8ListAllTasksInput = 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.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.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}).passthrough().describe(\"Response model for listing all tasks: returns a list of Task objects\\nwith optional pagination cursor.\");\n\nexport const servicem8ListAllTasks: AppAction<\n typeof Servicem8ListAllTasksInput,\n typeof Servicem8ListAllTasksOutput,\n typeof servicem8.credential\n> = 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":";;;;AAMA,MAAa,6BAA6B,EAAE,OAAO;CACjD,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,mCAAmC,EAAE,OAAO;CAChD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9H,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzH,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxH,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,yBAAyB,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qCAAqC;AAM/D,MAAa,wBAIT,OAAO,4BAA4B;CACrC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAdyC,EAAE,OAAO;EAClD,OAAO,EAAE,MAAM,gCAAgC,CAAC,CAAC,SAAS,uBAAuB;EACjF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,0IAA0I,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnM,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wGAWhB;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/retrieve-client.ts
@@ -1 +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.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.object({\n name: z.string().describe(\"Business name of the company/client\").nullable(),\n uuid: z.string().describe(\"Unique identifier of the company (UUID format)\").nullable(),\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\").nullable(),\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\").nullable(),\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,+BAA+BA,IAAAA,EAAE,OAAO,EACnD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,EACtE,CAAC,CAAC,CAAC,SAAS,2DAA2D;AACvE,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC1E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACrF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CAChG,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC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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"}
1
+ {"version":3,"file":"retrieve-client.cjs","names":["z","action"],"sources":["../../src/actions/retrieve-client.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 Servicem8RetrieveClientInput = 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.object({\n name: z.string().describe(\"Business name of the company/client\").nullable(),\n uuid: z.string().describe(\"Unique identifier of the company (UUID format)\").nullable(),\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\").nullable(),\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\").nullable(),\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: AppAction<\n typeof Servicem8RetrieveClientInput,\n typeof Servicem8RetrieveClientOutput,\n typeof servicem8.credential\n> = 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":";;;;AAMA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO,EACnD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,EACtE,CAAC,CAAC,CAAC,SAAS,2DAA2D;AACvE,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC1E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACrF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS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AS;CACpG,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,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,0BAITC,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/retrieve-client.d.ts
@@ -30,9 +32,7 @@ declare const Servicem8RetrieveClientOutput: z.ZodObject<{
30
32
  billing_attention: z.ZodOptional<z.ZodNullable<z.ZodString>>;
31
33
  parent_company_uuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
34
  }, z.core.$loose>;
33
- declare const servicem8RetrieveClient: import("@keystrokehq/action").WorkflowActionDefinition<{
34
- uuid: string;
35
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
35
+ declare const servicem8RetrieveClient: AppAction<typeof Servicem8RetrieveClientInput, typeof Servicem8RetrieveClientOutput, typeof servicem8.credential>;
36
36
  //#endregion
37
37
  export { servicem8RetrieveClient };
38
38
  //# sourceMappingURL=retrieve-client.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"retrieve-client.d.cts","names":[],"sources":["../../src/actions/retrieve-client.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAG5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;cA2B7B,uBAAA,gCAAuB,wBAAA"}
1
+ {"version":3,"file":"retrieve-client.d.cts","names":[],"sources":["../../src/actions/retrieve-client.ts"],"mappings":";;;;;cAMa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAG5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;cA2B7B,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/retrieve-client.d.ts
@@ -30,9 +32,7 @@ declare const Servicem8RetrieveClientOutput: z.ZodObject<{
30
32
  billing_attention: z.ZodOptional<z.ZodNullable<z.ZodString>>;
31
33
  parent_company_uuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
34
  }, z.core.$loose>;
33
- declare const servicem8RetrieveClient: import("@keystrokehq/action").WorkflowActionDefinition<{
34
- uuid: string;
35
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
35
+ declare const servicem8RetrieveClient: AppAction<typeof Servicem8RetrieveClientInput, typeof Servicem8RetrieveClientOutput, typeof servicem8.credential>;
36
36
  //#endregion
37
37
  export { servicem8RetrieveClient };
38
38
  //# sourceMappingURL=retrieve-client.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"retrieve-client.d.mts","names":[],"sources":["../../src/actions/retrieve-client.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAG5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;cA2B7B,uBAAA,gCAAuB,wBAAA"}
1
+ {"version":3,"file":"retrieve-client.d.mts","names":[],"sources":["../../src/actions/retrieve-client.ts"],"mappings":";;;;;cAMa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAG5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;cA2B7B,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 servicem8RetrieveClient = action("SERVICEM8_RETRIEVE_CLIENT", {