@keystrokehq/servicem8 0.1.4 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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 -22
  6. package/dist/actions/create-job-note.d.cts.map +1 -1
  7. package/dist/actions/create-job-note.d.mts +3 -22
  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 -25
  14. package/dist/actions/create-job-payment.d.cts.map +1 -1
  15. package/dist/actions/create-job-payment.d.mts +3 -25
  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 -25
  22. package/dist/actions/create-jobs.d.cts.map +1 -1
  23. package/dist/actions/create-jobs.d.mts +3 -25
  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 -15
  30. package/dist/actions/delete-custom-field.d.cts.map +1 -1
  31. package/dist/actions/delete-custom-field.d.mts +3 -15
  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 -15
  38. package/dist/actions/delete-job-note.d.cts.map +1 -1
  39. package/dist/actions/delete-job-note.d.mts +3 -15
  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 -15
  46. package/dist/actions/delete-job-payment.d.cts.map +1 -1
  47. package/dist/actions/delete-job-payment.d.mts +3 -15
  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 -15
  54. package/dist/actions/list-all-assets.d.cts.map +1 -1
  55. package/dist/actions/list-all-assets.d.mts +3 -15
  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 -15
  62. package/dist/actions/list-all-clients.d.cts.map +1 -1
  63. package/dist/actions/list-all-clients.d.mts +3 -15
  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 -16
  70. package/dist/actions/list-all-document-templates.d.cts.map +1 -1
  71. package/dist/actions/list-all-document-templates.d.mts +3 -16
  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 -15
  78. package/dist/actions/list-all-forms.d.cts.map +1 -1
  79. package/dist/actions/list-all-forms.d.mts +3 -15
  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 -16
  86. package/dist/actions/list-all-job-notes.d.cts.map +1 -1
  87. package/dist/actions/list-all-job-notes.d.mts +3 -16
  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 -13
  94. package/dist/actions/list-all-job-queues.d.cts.map +1 -1
  95. package/dist/actions/list-all-job-queues.d.mts +3 -13
  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 -15
  102. package/dist/actions/list-all-jobs.d.cts.map +1 -1
  103. package/dist/actions/list-all-jobs.d.mts +3 -15
  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 -15
  110. package/dist/actions/list-all-locations.d.cts.map +1 -1
  111. package/dist/actions/list-all-locations.d.mts +3 -15
  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 -15
  118. package/dist/actions/list-all-materials.d.cts.map +1 -1
  119. package/dist/actions/list-all-materials.d.mts +3 -15
  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 -16
  126. package/dist/actions/list-all-tasks.d.cts.map +1 -1
  127. package/dist/actions/list-all-tasks.d.mts +3 -16
  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 -15
  134. package/dist/actions/retrieve-client.d.cts.map +1 -1
  135. package/dist/actions/retrieve-client.d.mts +3 -15
  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 -15
  142. package/dist/actions/retrieve-form.d.cts.map +1 -1
  143. package/dist/actions/retrieve-form.d.mts +3 -15
  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 -15
  150. package/dist/actions/retrieve-job-activity.d.cts.map +1 -1
  151. package/dist/actions/retrieve-job-activity.d.mts +3 -15
  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 -15
  158. package/dist/actions/retrieve-job-note.d.cts.map +1 -1
  159. package/dist/actions/retrieve-job-note.d.mts +3 -15
  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 -15
  166. package/dist/actions/retrieve-job-payment.d.cts.map +1 -1
  167. package/dist/actions/retrieve-job-payment.d.mts +3 -15
  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 -15
  174. package/dist/actions/retrieve-job-queue.d.cts.map +1 -1
  175. package/dist/actions/retrieve-job-queue.d.mts +3 -15
  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 -15
  182. package/dist/actions/retrieve-job.d.cts.map +1 -1
  183. package/dist/actions/retrieve-job.d.mts +3 -15
  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 -15
  190. package/dist/actions/retrieve-location.d.cts.map +1 -1
  191. package/dist/actions/retrieve-location.d.mts +3 -15
  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 -15
  198. package/dist/actions/retrieve-material.d.cts.map +1 -1
  199. package/dist/actions/retrieve-material.d.mts +3 -15
  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 -15
  206. package/dist/actions/retrieve-staff-member.d.cts.map +1 -1
  207. package/dist/actions/retrieve-staff-member.d.mts +3 -15
  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 -18
  214. package/dist/actions/update-job-note.d.cts.map +1 -1
  215. package/dist/actions/update-job-note.d.mts +3 -18
  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 -23
  222. package/dist/actions/update-job-payment.d.cts.map +1 -1
  223. package/dist/actions/update-job-payment.d.mts +3 -23
  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 +2 -2
  228. package/dist/app.cjs.map +1 -1
  229. package/dist/app.d.cts +4 -6
  230. package/dist/app.d.cts.map +1 -1
  231. package/dist/app.d.mts +4 -6
  232. package/dist/app.d.mts.map +1 -1
  233. package/dist/app.mjs +0 -1
  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,3 +1,5 @@
1
+ import { servicem8 } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/delete-job-note.d.ts
@@ -13,21 +15,7 @@ declare const Servicem8DeleteJobNoteOutput: z.ZodObject<{
13
15
  created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
16
  staff_uuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
17
  }, z.core.$loose>;
16
- declare const servicem8DeleteJobNote: import("@keystrokehq/action").WorkflowActionDefinition<{
17
- uuid: string;
18
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"servicem8", z.ZodObject<{
19
- connectionId: z.ZodString;
20
- entityId: z.ZodString;
21
- instanceId: z.ZodString;
22
- }, z.core.$strip>, z.ZodObject<{
23
- accessToken: z.ZodString;
24
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"servicem8", z.ZodObject<{
25
- connectionId: z.ZodString;
26
- entityId: z.ZodString;
27
- instanceId: z.ZodString;
28
- }, z.core.$strip>, z.ZodObject<{
29
- accessToken: z.ZodString;
30
- }, z.core.$strip>>]>;
18
+ declare const servicem8DeleteJobNote: AppAction<typeof Servicem8DeleteJobNoteInput, typeof Servicem8DeleteJobNoteOutput, typeof servicem8.credential>;
31
19
  //#endregion
32
20
  export { servicem8DeleteJobNote };
33
21
  //# sourceMappingURL=delete-job-note.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"delete-job-note.d.cts","names":[],"sources":["../../src/actions/delete-job-note.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAG3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;cAU5B,sBAAA,gCAAsB,wBAAA"}
1
+ {"version":3,"file":"delete-job-note.d.cts","names":[],"sources":["../../src/actions/delete-job-note.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAG3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;cAU5B,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,SACA,SAAA,CAAU,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { servicem8 } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/delete-job-note.d.ts
@@ -13,21 +15,7 @@ declare const Servicem8DeleteJobNoteOutput: z.ZodObject<{
13
15
  created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
16
  staff_uuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
17
  }, z.core.$loose>;
16
- declare const servicem8DeleteJobNote: import("@keystrokehq/action").WorkflowActionDefinition<{
17
- uuid: string;
18
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"servicem8", z.ZodObject<{
19
- connectionId: z.ZodString;
20
- entityId: z.ZodString;
21
- instanceId: z.ZodString;
22
- }, z.core.$strip>, z.ZodObject<{
23
- accessToken: z.ZodString;
24
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"servicem8", z.ZodObject<{
25
- connectionId: z.ZodString;
26
- entityId: z.ZodString;
27
- instanceId: z.ZodString;
28
- }, z.core.$strip>, z.ZodObject<{
29
- accessToken: z.ZodString;
30
- }, z.core.$strip>>]>;
18
+ declare const servicem8DeleteJobNote: AppAction<typeof Servicem8DeleteJobNoteInput, typeof Servicem8DeleteJobNoteOutput, typeof servicem8.credential>;
31
19
  //#endregion
32
20
  export { servicem8DeleteJobNote };
33
21
  //# sourceMappingURL=delete-job-note.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"delete-job-note.d.mts","names":[],"sources":["../../src/actions/delete-job-note.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAG3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;cAU5B,sBAAA,gCAAsB,wBAAA"}
1
+ {"version":3,"file":"delete-job-note.d.mts","names":[],"sources":["../../src/actions/delete-job-note.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAG3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;cAU5B,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,SACA,SAAA,CAAU,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const servicem8DeleteJobNote = action("SERVICEM8_DELETE_JOB_NOTE", {
@@ -1 +1 @@
1
- {"version":3,"file":"delete-job-note.mjs","names":[],"sources":["../../src/actions/delete-job-note.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8DeleteJobNoteInput = z.object({\n uuid: z.string().describe(\"UUID of the job note to delete. Example: '123e4567-e89b-12d3-a456-426614174000'\"),\n}).describe(\"Request model for deleting a specific ServiceM8 job note.\");\nexport const Servicem8DeleteJobNoteOutput = z.object({\n note: z.string().describe(\"Content of the note, if available.\").nullable().optional(),\n uuid: z.string().describe(\"Unique UUID of the deleted note.\").nullable(),\n active: z.number().int().default(0).describe(\"Record active flag: always 0 after deletion (archived).\").nullable().optional(),\n job_uuid: z.string().describe(\"UUID of the associated job, if available.\").nullable().optional(),\n edit_date: z.string().describe(\"Timestamp when the note was last modified (YYYY-MM-DD HH:MM:SS).\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the note was created (YYYY-MM-DD HH:MM:SS), if available.\").nullable().optional(),\n staff_uuid: z.string().describe(\"UUID of the staff member who created the note, if available.\").nullable().optional(),\n}).passthrough().describe(\"Response model for a deleted ServiceM8 job note, with active set to 0.\\nConfirms the note was archived (soft-deleted) successfully.\");\n\nexport const servicem8DeleteJobNote = action(\"SERVICEM8_DELETE_JOB_NOTE\", {\n slug: \"servicem8-delete-job-note\",\n name: \"Delete Job Note\",\n description: \"Deletes (archives) a job note in ServiceM8 by its UUID. Use this tool when you need to remove a note from a job's diary. In ServiceM8, deletion is a soft-delete: the note is archived (active=0) rather than permanently removed, and can be restored later if needed. Prerequisites: You need the note's UUID, which can be obtained from the 'List All Job Notes' or 'Retrieve Job Note' actions.\",\n input: Servicem8DeleteJobNoteInput,\n output: Servicem8DeleteJobNoteOutput,\n});\n"],"mappings":";;AAiBA,MAAa,yBAAyB,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAjByC,EAAE,OAAO,EAClD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,EAC7G,CAAC,CAAC,CAAC,SAAS,2DAeH;CACP,QAf0C,EAAE,OAAO;EACnD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;EACvE,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5H,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/F,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvH,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChI,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qIAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"delete-job-note.mjs","names":[],"sources":["../../src/actions/delete-job-note.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 Servicem8DeleteJobNoteInput = z.object({\n uuid: z.string().describe(\"UUID of the job note to delete. Example: '123e4567-e89b-12d3-a456-426614174000'\"),\n}).describe(\"Request model for deleting a specific ServiceM8 job note.\");\nexport const Servicem8DeleteJobNoteOutput = z.object({\n note: z.string().describe(\"Content of the note, if available.\").nullable().optional(),\n uuid: z.string().describe(\"Unique UUID of the deleted note.\").nullable(),\n active: z.number().int().default(0).describe(\"Record active flag: always 0 after deletion (archived).\").nullable().optional(),\n job_uuid: z.string().describe(\"UUID of the associated job, if available.\").nullable().optional(),\n edit_date: z.string().describe(\"Timestamp when the note was last modified (YYYY-MM-DD HH:MM:SS).\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the note was created (YYYY-MM-DD HH:MM:SS), if available.\").nullable().optional(),\n staff_uuid: z.string().describe(\"UUID of the staff member who created the note, if available.\").nullable().optional(),\n}).passthrough().describe(\"Response model for a deleted ServiceM8 job note, with active set to 0.\\nConfirms the note was archived (soft-deleted) successfully.\");\n\nexport const servicem8DeleteJobNote: AppAction<\n typeof Servicem8DeleteJobNoteInput,\n typeof Servicem8DeleteJobNoteOutput,\n typeof servicem8.credential\n> = action(\"SERVICEM8_DELETE_JOB_NOTE\", {\n slug: \"servicem8-delete-job-note\",\n name: \"Delete Job Note\",\n description: \"Deletes (archives) a job note in ServiceM8 by its UUID. Use this tool when you need to remove a note from a job's diary. In ServiceM8, deletion is a soft-delete: the note is archived (active=0) rather than permanently removed, and can be restored later if needed. Prerequisites: You need the note's UUID, which can be obtained from the 'List All Job Notes' or 'Retrieve Job Note' actions.\",\n input: Servicem8DeleteJobNoteInput,\n output: Servicem8DeleteJobNoteOutput,\n});\n"],"mappings":";;;AAmBA,MAAa,yBAIT,OAAO,6BAA6B;CACtC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OArByC,EAAE,OAAO,EAClD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,EAC7G,CAAC,CAAC,CAAC,SAAS,2DAmBH;CACP,QAnB0C,EAAE,OAAO;EACnD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;EACvE,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5H,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/F,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvH,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChI,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qIAWhB;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/delete-job-payment.ts
@@ -1 +1 @@
1
- {"version":3,"file":"delete-job-payment.cjs","names":["z","action"],"sources":["../../src/actions/delete-job-payment.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8DeleteJobPaymentInput = z.object({\n uuid: z.string().describe(\"The UUID of the job payment to delete (archive). In ServiceM8, deletion is a soft delete that sets the record's active field to 0, hiding it from the UI but keeping it accessible via API.\"),\n}).describe(\"Request model for deleting (archiving) a ServiceM8 Job Payment by UUID.\");\nexport const Servicem8DeleteJobPaymentOutput = z.object({\n uuid: z.string().describe(\"UUID of the job payment that was archived.\").nullable(),\n message: z.string().describe(\"Human-readable message describing the result of the operation.\").nullable(),\n success: z.boolean().describe(\"True if the job payment was successfully archived.\").nullable(),\n}).passthrough().describe(\"Response model confirming the job payment was successfully archived.\");\n\nexport const servicem8DeleteJobPayment = action(\"SERVICEM8_DELETE_JOB_PAYMENT\", {\n slug: \"servicem8-delete-job-payment\",\n name: \"Delete Job Payment\",\n description: \"Archives (soft-deletes) a job payment record in ServiceM8 by its UUID. In ServiceM8, records are never permanently deleted. Instead, deletion sets the record's 'active' field to 0, which hides it from the UI but keeps it accessible via the API. Archived records can be restored by setting their 'active' field back to 1. Use this tool when you need to remove a payment record from active use, such as when a payment was recorded in error or needs to be voided. Requires the 'manage_job_payments' OAuth scope.\",\n input: Servicem8DeleteJobPaymentInput,\n output: Servicem8DeleteJobPaymentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO,EACrD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6LAA6L,EACzN,CAAC,CAAC,CAAC,SAAS,yEAAyE;AACrF,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACjF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CACxG,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sEAAsE;AAEhG,MAAa,4BAA4BC,eAAAA,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"delete-job-payment.cjs","names":["z","action"],"sources":["../../src/actions/delete-job-payment.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { servicem8 } from \"../app\";\n\nexport const Servicem8DeleteJobPaymentInput = z.object({\n uuid: z.string().describe(\"The UUID of the job payment to delete (archive). In ServiceM8, deletion is a soft delete that sets the record's active field to 0, hiding it from the UI but keeping it accessible via API.\"),\n}).describe(\"Request model for deleting (archiving) a ServiceM8 Job Payment by UUID.\");\nexport const Servicem8DeleteJobPaymentOutput = z.object({\n uuid: z.string().describe(\"UUID of the job payment that was archived.\").nullable(),\n message: z.string().describe(\"Human-readable message describing the result of the operation.\").nullable(),\n success: z.boolean().describe(\"True if the job payment was successfully archived.\").nullable(),\n}).passthrough().describe(\"Response model confirming the job payment was successfully archived.\");\n\nexport const servicem8DeleteJobPayment: AppAction<\n typeof Servicem8DeleteJobPaymentInput,\n typeof Servicem8DeleteJobPaymentOutput,\n typeof servicem8.credential\n> = action(\"SERVICEM8_DELETE_JOB_PAYMENT\", {\n slug: \"servicem8-delete-job-payment\",\n name: \"Delete Job Payment\",\n description: \"Archives (soft-deletes) a job payment record in ServiceM8 by its UUID. In ServiceM8, records are never permanently deleted. Instead, deletion sets the record's 'active' field to 0, which hides it from the UI but keeps it accessible via the API. Archived records can be restored by setting their 'active' field back to 1. Use this tool when you need to remove a payment record from active use, such as when a payment was recorded in error or needs to be voided. Requires the 'manage_job_payments' OAuth scope.\",\n input: Servicem8DeleteJobPaymentInput,\n output: Servicem8DeleteJobPaymentOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO,EACrD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6LAA6L,EACzN,CAAC,CAAC,CAAC,SAAS,yEAAyE;AACrF,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACjF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CACxG,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sEAAsE;AAEhG,MAAa,4BAITC,eAAAA,OAAO,gCAAgC;CACzC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { servicem8 } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/delete-job-payment.d.ts
@@ -9,21 +11,7 @@ declare const Servicem8DeleteJobPaymentOutput: z.ZodObject<{
9
11
  message: z.ZodNullable<z.ZodString>;
10
12
  success: z.ZodNullable<z.ZodBoolean>;
11
13
  }, z.core.$loose>;
12
- declare const servicem8DeleteJobPayment: import("@keystrokehq/action").WorkflowActionDefinition<{
13
- uuid: string;
14
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"servicem8", z.ZodObject<{
15
- connectionId: z.ZodString;
16
- entityId: z.ZodString;
17
- instanceId: z.ZodString;
18
- }, z.core.$strip>, z.ZodObject<{
19
- accessToken: z.ZodString;
20
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"servicem8", z.ZodObject<{
21
- connectionId: z.ZodString;
22
- entityId: z.ZodString;
23
- instanceId: z.ZodString;
24
- }, z.core.$strip>, z.ZodObject<{
25
- accessToken: z.ZodString;
26
- }, z.core.$strip>>]>;
14
+ declare const servicem8DeleteJobPayment: AppAction<typeof Servicem8DeleteJobPaymentInput, typeof Servicem8DeleteJobPaymentOutput, typeof servicem8.credential>;
27
15
  //#endregion
28
16
  export { servicem8DeleteJobPayment };
29
17
  //# sourceMappingURL=delete-job-payment.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"delete-job-payment.d.cts","names":[],"sources":["../../src/actions/delete-job-payment.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;cAG9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;cAM/B,yBAAA,gCAAyB,wBAAA"}
1
+ {"version":3,"file":"delete-job-payment.d.cts","names":[],"sources":["../../src/actions/delete-job-payment.ts"],"mappings":";;;;;cAMa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;cAG9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;cAM/B,yBAAA,EAA2B,SAAA,QAC/B,8BAAA,SACA,+BAAA,SACA,SAAA,CAAU,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { servicem8 } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/delete-job-payment.d.ts
@@ -9,21 +11,7 @@ declare const Servicem8DeleteJobPaymentOutput: z.ZodObject<{
9
11
  message: z.ZodNullable<z.ZodString>;
10
12
  success: z.ZodNullable<z.ZodBoolean>;
11
13
  }, z.core.$loose>;
12
- declare const servicem8DeleteJobPayment: import("@keystrokehq/action").WorkflowActionDefinition<{
13
- uuid: string;
14
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"servicem8", z.ZodObject<{
15
- connectionId: z.ZodString;
16
- entityId: z.ZodString;
17
- instanceId: z.ZodString;
18
- }, z.core.$strip>, z.ZodObject<{
19
- accessToken: z.ZodString;
20
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"servicem8", z.ZodObject<{
21
- connectionId: z.ZodString;
22
- entityId: z.ZodString;
23
- instanceId: z.ZodString;
24
- }, z.core.$strip>, z.ZodObject<{
25
- accessToken: z.ZodString;
26
- }, z.core.$strip>>]>;
14
+ declare const servicem8DeleteJobPayment: AppAction<typeof Servicem8DeleteJobPaymentInput, typeof Servicem8DeleteJobPaymentOutput, typeof servicem8.credential>;
27
15
  //#endregion
28
16
  export { servicem8DeleteJobPayment };
29
17
  //# sourceMappingURL=delete-job-payment.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"delete-job-payment.d.mts","names":[],"sources":["../../src/actions/delete-job-payment.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;cAG9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;cAM/B,yBAAA,gCAAyB,wBAAA"}
1
+ {"version":3,"file":"delete-job-payment.d.mts","names":[],"sources":["../../src/actions/delete-job-payment.ts"],"mappings":";;;;;cAMa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;cAG9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;cAM/B,yBAAA,EAA2B,SAAA,QAC/B,8BAAA,SACA,+BAAA,SACA,SAAA,CAAU,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const servicem8DeleteJobPayment = action("SERVICEM8_DELETE_JOB_PAYMENT", {
@@ -1 +1 @@
1
- {"version":3,"file":"delete-job-payment.mjs","names":[],"sources":["../../src/actions/delete-job-payment.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8DeleteJobPaymentInput = z.object({\n uuid: z.string().describe(\"The UUID of the job payment to delete (archive). In ServiceM8, deletion is a soft delete that sets the record's active field to 0, hiding it from the UI but keeping it accessible via API.\"),\n}).describe(\"Request model for deleting (archiving) a ServiceM8 Job Payment by UUID.\");\nexport const Servicem8DeleteJobPaymentOutput = z.object({\n uuid: z.string().describe(\"UUID of the job payment that was archived.\").nullable(),\n message: z.string().describe(\"Human-readable message describing the result of the operation.\").nullable(),\n success: z.boolean().describe(\"True if the job payment was successfully archived.\").nullable(),\n}).passthrough().describe(\"Response model confirming the job payment was successfully archived.\");\n\nexport const servicem8DeleteJobPayment = action(\"SERVICEM8_DELETE_JOB_PAYMENT\", {\n slug: \"servicem8-delete-job-payment\",\n name: \"Delete Job Payment\",\n description: \"Archives (soft-deletes) a job payment record in ServiceM8 by its UUID. In ServiceM8, records are never permanently deleted. Instead, deletion sets the record's 'active' field to 0, which hides it from the UI but keeps it accessible via the API. Archived records can be restored by setting their 'active' field back to 1. Use this tool when you need to remove a payment record from active use, such as when a payment was recorded in error or needs to be voided. Requires the 'manage_job_payments' OAuth scope.\",\n input: Servicem8DeleteJobPaymentInput,\n output: Servicem8DeleteJobPaymentOutput,\n});\n"],"mappings":";;AAaA,MAAa,4BAA4B,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAb4C,EAAE,OAAO,EACrD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6LAA6L,EACzN,CAAC,CAAC,CAAC,SAAS,yEAWH;CACP,QAX6C,EAAE,OAAO;EACtD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;EACjF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;EACxG,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sEAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"delete-job-payment.mjs","names":[],"sources":["../../src/actions/delete-job-payment.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { servicem8 } from \"../app\";\n\nexport const Servicem8DeleteJobPaymentInput = z.object({\n uuid: z.string().describe(\"The UUID of the job payment to delete (archive). In ServiceM8, deletion is a soft delete that sets the record's active field to 0, hiding it from the UI but keeping it accessible via API.\"),\n}).describe(\"Request model for deleting (archiving) a ServiceM8 Job Payment by UUID.\");\nexport const Servicem8DeleteJobPaymentOutput = z.object({\n uuid: z.string().describe(\"UUID of the job payment that was archived.\").nullable(),\n message: z.string().describe(\"Human-readable message describing the result of the operation.\").nullable(),\n success: z.boolean().describe(\"True if the job payment was successfully archived.\").nullable(),\n}).passthrough().describe(\"Response model confirming the job payment was successfully archived.\");\n\nexport const servicem8DeleteJobPayment: AppAction<\n typeof Servicem8DeleteJobPaymentInput,\n typeof Servicem8DeleteJobPaymentOutput,\n typeof servicem8.credential\n> = action(\"SERVICEM8_DELETE_JOB_PAYMENT\", {\n slug: \"servicem8-delete-job-payment\",\n name: \"Delete Job Payment\",\n description: \"Archives (soft-deletes) a job payment record in ServiceM8 by its UUID. In ServiceM8, records are never permanently deleted. Instead, deletion sets the record's 'active' field to 0, which hides it from the UI but keeps it accessible via the API. Archived records can be restored by setting their 'active' field back to 1. Use this tool when you need to remove a payment record from active use, such as when a payment was recorded in error or needs to be voided. Requires the 'manage_job_payments' OAuth scope.\",\n input: Servicem8DeleteJobPaymentInput,\n output: Servicem8DeleteJobPaymentOutput,\n});\n"],"mappings":";;;AAeA,MAAa,4BAIT,OAAO,gCAAgC;CACzC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAjB4C,EAAE,OAAO,EACrD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6LAA6L,EACzN,CAAC,CAAC,CAAC,SAAS,yEAeH;CACP,QAf6C,EAAE,OAAO;EACtD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;EACjF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;EACxG,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sEAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/list-all-assets.ts
@@ -1 +1 @@
1
- {"version":3,"file":"list-all-assets.cjs","names":["z","action"],"sources":["../../src/actions/list-all-assets.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8ListAllAssetsInput = z.object({\n filter: z.string().describe(\"OData-style filter expression to narrow down assets. Supported operators: eq (equal), ne (not equal), gt (greater than), lt (less than). Multiple conditions can be combined with 'and'. Examples: 'active eq 1', 'name eq \\\\'Pump Model X\\\\''. String values must be wrapped in single quotes.\").optional(),\n}).describe(\"Request model for listing all ServiceM8 assets. Supports optional filtering.\");\nexport const Servicem8ListAllAssetsOutput = z.unknown();\n\nexport const servicem8ListAllAssets = action(\"SERVICEM8_LIST_ALL_ASSETS\", {\n slug: \"servicem8-list-all-assets\",\n name: \"List All Assets\",\n description: \"Tool to list all ServiceM8 assets. Use when you need a comprehensive asset registry, including custom fields, for inventory or reporting.\",\n input: Servicem8ListAllAssetsInput,\n output: Servicem8ListAllAssetsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,EAClD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iSAAiS,CAAC,CAAC,SAAS,EAC1U,CAAC,CAAC,CAAC,SAAS,8EAA8E;AAC1F,MAAa,+BAA+BA,IAAAA,EAAE,QAAQ;AAEtD,MAAa,yBAAyBC,eAAAA,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"list-all-assets.cjs","names":["z","action"],"sources":["../../src/actions/list-all-assets.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { servicem8 } from \"../app\";\n\nexport const Servicem8ListAllAssetsInput = z.object({\n filter: z.string().describe(\"OData-style filter expression to narrow down assets. Supported operators: eq (equal), ne (not equal), gt (greater than), lt (less than). Multiple conditions can be combined with 'and'. Examples: 'active eq 1', 'name eq \\\\'Pump Model X\\\\''. String values must be wrapped in single quotes.\").optional(),\n}).describe(\"Request model for listing all ServiceM8 assets. Supports optional filtering.\");\nexport const Servicem8ListAllAssetsOutput = z.unknown();\n\nexport const servicem8ListAllAssets: AppAction<\n typeof Servicem8ListAllAssetsInput,\n typeof Servicem8ListAllAssetsOutput,\n typeof servicem8.credential\n> = action(\"SERVICEM8_LIST_ALL_ASSETS\", {\n slug: \"servicem8-list-all-assets\",\n name: \"List All Assets\",\n description: \"Tool to list all ServiceM8 assets. Use when you need a comprehensive asset registry, including custom fields, for inventory or reporting.\",\n input: Servicem8ListAllAssetsInput,\n output: Servicem8ListAllAssetsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,EAClD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iSAAiS,CAAC,CAAC,SAAS,EAC1U,CAAC,CAAC,CAAC,SAAS,8EAA8E;AAC1F,MAAa,+BAA+BA,IAAAA,EAAE,QAAQ;AAEtD,MAAa,yBAITC,eAAAA,OAAO,6BAA6B;CACtC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { servicem8 } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/list-all-assets.d.ts
@@ -5,21 +7,7 @@ declare const Servicem8ListAllAssetsInput: z.ZodObject<{
5
7
  filter: z.ZodOptional<z.ZodString>;
6
8
  }, z.core.$strip>;
7
9
  declare const Servicem8ListAllAssetsOutput: z.ZodUnknown;
8
- declare const servicem8ListAllAssets: import("@keystrokehq/action").WorkflowActionDefinition<{
9
- filter?: string | undefined;
10
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"servicem8", z.ZodObject<{
11
- connectionId: z.ZodString;
12
- entityId: z.ZodString;
13
- instanceId: z.ZodString;
14
- }, z.core.$strip>, z.ZodObject<{
15
- accessToken: z.ZodString;
16
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"servicem8", z.ZodObject<{
17
- connectionId: z.ZodString;
18
- entityId: z.ZodString;
19
- instanceId: z.ZodString;
20
- }, z.core.$strip>, z.ZodObject<{
21
- accessToken: z.ZodString;
22
- }, z.core.$strip>>]>;
10
+ declare const servicem8ListAllAssets: AppAction<typeof Servicem8ListAllAssetsInput, typeof Servicem8ListAllAssetsOutput, typeof servicem8.credential>;
23
11
  //#endregion
24
12
  export { servicem8ListAllAssets };
25
13
  //# sourceMappingURL=list-all-assets.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-all-assets.d.cts","names":[],"sources":["../../src/actions/list-all-assets.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAG3B,4BAAA,EAA4B,CAAA,CAAA,UAAc;AAAA,cAE1C,sBAAA,gCAAsB,wBAAA"}
1
+ {"version":3,"file":"list-all-assets.d.cts","names":[],"sources":["../../src/actions/list-all-assets.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAG3B,4BAAA,EAA4B,CAAA,CAAA,UAAc;AAAA,cAE1C,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,SACA,SAAA,CAAU,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { servicem8 } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/list-all-assets.d.ts
@@ -5,21 +7,7 @@ declare const Servicem8ListAllAssetsInput: z.ZodObject<{
5
7
  filter: z.ZodOptional<z.ZodString>;
6
8
  }, z.core.$strip>;
7
9
  declare const Servicem8ListAllAssetsOutput: z.ZodUnknown;
8
- declare const servicem8ListAllAssets: import("@keystrokehq/action").WorkflowActionDefinition<{
9
- filter?: string | undefined;
10
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"servicem8", z.ZodObject<{
11
- connectionId: z.ZodString;
12
- entityId: z.ZodString;
13
- instanceId: z.ZodString;
14
- }, z.core.$strip>, z.ZodObject<{
15
- accessToken: z.ZodString;
16
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"servicem8", z.ZodObject<{
17
- connectionId: z.ZodString;
18
- entityId: z.ZodString;
19
- instanceId: z.ZodString;
20
- }, z.core.$strip>, z.ZodObject<{
21
- accessToken: z.ZodString;
22
- }, z.core.$strip>>]>;
10
+ declare const servicem8ListAllAssets: AppAction<typeof Servicem8ListAllAssetsInput, typeof Servicem8ListAllAssetsOutput, typeof servicem8.credential>;
23
11
  //#endregion
24
12
  export { servicem8ListAllAssets };
25
13
  //# sourceMappingURL=list-all-assets.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-all-assets.d.mts","names":[],"sources":["../../src/actions/list-all-assets.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAG3B,4BAAA,EAA4B,CAAA,CAAA,UAAc;AAAA,cAE1C,sBAAA,gCAAsB,wBAAA"}
1
+ {"version":3,"file":"list-all-assets.d.mts","names":[],"sources":["../../src/actions/list-all-assets.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAG3B,4BAAA,EAA4B,CAAA,CAAA,UAAc;AAAA,cAE1C,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,SACA,SAAA,CAAU,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const servicem8ListAllAssets = action("SERVICEM8_LIST_ALL_ASSETS", {
@@ -1 +1 @@
1
- {"version":3,"file":"list-all-assets.mjs","names":[],"sources":["../../src/actions/list-all-assets.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8ListAllAssetsInput = z.object({\n filter: z.string().describe(\"OData-style filter expression to narrow down assets. Supported operators: eq (equal), ne (not equal), gt (greater than), lt (less than). Multiple conditions can be combined with 'and'. Examples: 'active eq 1', 'name eq \\\\'Pump Model X\\\\''. String values must be wrapped in single quotes.\").optional(),\n}).describe(\"Request model for listing all ServiceM8 assets. Supports optional filtering.\");\nexport const Servicem8ListAllAssetsOutput = z.unknown();\n\nexport const servicem8ListAllAssets = action(\"SERVICEM8_LIST_ALL_ASSETS\", {\n slug: \"servicem8-list-all-assets\",\n name: \"List All Assets\",\n description: \"Tool to list all ServiceM8 assets. Use when you need a comprehensive asset registry, including custom fields, for inventory or reporting.\",\n input: Servicem8ListAllAssetsInput,\n output: Servicem8ListAllAssetsOutput,\n});\n"],"mappings":";;AASA,MAAa,yBAAyB,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OATyC,EAAE,OAAO,EAClD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,iSAAiS,CAAC,CAAC,SAAS,EAC1U,CAAC,CAAC,CAAC,SAAS,8EAOH;CACP,QAP0C,EAAE,QAOpC;AACV,CAAC"}
1
+ {"version":3,"file":"list-all-assets.mjs","names":[],"sources":["../../src/actions/list-all-assets.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { servicem8 } from \"../app\";\n\nexport const Servicem8ListAllAssetsInput = z.object({\n filter: z.string().describe(\"OData-style filter expression to narrow down assets. Supported operators: eq (equal), ne (not equal), gt (greater than), lt (less than). Multiple conditions can be combined with 'and'. Examples: 'active eq 1', 'name eq \\\\'Pump Model X\\\\''. String values must be wrapped in single quotes.\").optional(),\n}).describe(\"Request model for listing all ServiceM8 assets. Supports optional filtering.\");\nexport const Servicem8ListAllAssetsOutput = z.unknown();\n\nexport const servicem8ListAllAssets: AppAction<\n typeof Servicem8ListAllAssetsInput,\n typeof Servicem8ListAllAssetsOutput,\n typeof servicem8.credential\n> = action(\"SERVICEM8_LIST_ALL_ASSETS\", {\n slug: \"servicem8-list-all-assets\",\n name: \"List All Assets\",\n description: \"Tool to list all ServiceM8 assets. Use when you need a comprehensive asset registry, including custom fields, for inventory or reporting.\",\n input: Servicem8ListAllAssetsInput,\n output: Servicem8ListAllAssetsOutput,\n});\n"],"mappings":";;;AAWA,MAAa,yBAIT,OAAO,6BAA6B;CACtC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAbyC,EAAE,OAAO,EAClD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,iSAAiS,CAAC,CAAC,SAAS,EAC1U,CAAC,CAAC,CAAC,SAAS,8EAWH;CACP,QAX0C,EAAE,QAWpC;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/list-all-clients.ts
@@ -1 +1 @@
1
- {"version":3,"file":"list-all-clients.cjs","names":["z","action"],"sources":["../../src/actions/list-all-clients.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8ListAllClientsInput = z.object({\n filter: z.string().describe(\"OData-style filter expression using $filter syntax. Supported operators: eq (equal), ne (not equal), gt (greater than), lt (less than). Combine conditions with 'and' (max 10 conditions). Examples: \\\"active eq 1\\\", \\\"name eq 'Acme Corp'\\\", \\\"create_date gt '2024-01-01'\\\". Note: ge/le operators are not supported.\").optional(),\n}).describe(\"Request model for listing all ServiceM8 clients. Supports optional OData-style filtering.\");\nexport const Servicem8ListAllClientsOutput = z.unknown();\n\nexport const servicem8ListAllClients = action(\"SERVICEM8_LIST_ALL_CLIENTS\", {\n slug: \"servicem8-list-all-clients\",\n name: \"List All Clients\",\n description: \"Tool to list all ServiceM8 clients. Use when you need a complete set of customer records for integrations or reporting.\",\n input: Servicem8ListAllClientsInput,\n output: Servicem8ListAllClientsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO,EACnD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0TAA0T,CAAC,CAAC,SAAS,EACnW,CAAC,CAAC,CAAC,SAAS,2FAA2F;AACvG,MAAa,gCAAgCA,IAAAA,EAAE,QAAQ;AAEvD,MAAa,0BAA0BC,eAAAA,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"list-all-clients.cjs","names":["z","action"],"sources":["../../src/actions/list-all-clients.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { servicem8 } from \"../app\";\n\nexport const Servicem8ListAllClientsInput = z.object({\n filter: z.string().describe(\"OData-style filter expression using $filter syntax. Supported operators: eq (equal), ne (not equal), gt (greater than), lt (less than). Combine conditions with 'and' (max 10 conditions). Examples: \\\"active eq 1\\\", \\\"name eq 'Acme Corp'\\\", \\\"create_date gt '2024-01-01'\\\". Note: ge/le operators are not supported.\").optional(),\n}).describe(\"Request model for listing all ServiceM8 clients. Supports optional OData-style filtering.\");\nexport const Servicem8ListAllClientsOutput = z.unknown();\n\nexport const servicem8ListAllClients: AppAction<\n typeof Servicem8ListAllClientsInput,\n typeof Servicem8ListAllClientsOutput,\n typeof servicem8.credential\n> = action(\"SERVICEM8_LIST_ALL_CLIENTS\", {\n slug: \"servicem8-list-all-clients\",\n name: \"List All Clients\",\n description: \"Tool to list all ServiceM8 clients. Use when you need a complete set of customer records for integrations or reporting.\",\n input: Servicem8ListAllClientsInput,\n output: Servicem8ListAllClientsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO,EACnD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0TAA0T,CAAC,CAAC,SAAS,EACnW,CAAC,CAAC,CAAC,SAAS,2FAA2F;AACvG,MAAa,gCAAgCA,IAAAA,EAAE,QAAQ;AAEvD,MAAa,0BAITC,eAAAA,OAAO,8BAA8B;CACvC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { servicem8 } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/list-all-clients.d.ts
@@ -5,21 +7,7 @@ declare const Servicem8ListAllClientsInput: z.ZodObject<{
5
7
  filter: z.ZodOptional<z.ZodString>;
6
8
  }, z.core.$strip>;
7
9
  declare const Servicem8ListAllClientsOutput: z.ZodUnknown;
8
- declare const servicem8ListAllClients: import("@keystrokehq/action").WorkflowActionDefinition<{
9
- filter?: string | undefined;
10
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"servicem8", z.ZodObject<{
11
- connectionId: z.ZodString;
12
- entityId: z.ZodString;
13
- instanceId: z.ZodString;
14
- }, z.core.$strip>, z.ZodObject<{
15
- accessToken: z.ZodString;
16
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"servicem8", z.ZodObject<{
17
- connectionId: z.ZodString;
18
- entityId: z.ZodString;
19
- instanceId: z.ZodString;
20
- }, z.core.$strip>, z.ZodObject<{
21
- accessToken: z.ZodString;
22
- }, z.core.$strip>>]>;
10
+ declare const servicem8ListAllClients: AppAction<typeof Servicem8ListAllClientsInput, typeof Servicem8ListAllClientsOutput, typeof servicem8.credential>;
23
11
  //#endregion
24
12
  export { servicem8ListAllClients };
25
13
  //# sourceMappingURL=list-all-clients.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-all-clients.d.cts","names":[],"sources":["../../src/actions/list-all-clients.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAG5B,6BAAA,EAA6B,CAAA,CAAA,UAAc;AAAA,cAE3C,uBAAA,gCAAuB,wBAAA"}
1
+ {"version":3,"file":"list-all-clients.d.cts","names":[],"sources":["../../src/actions/list-all-clients.ts"],"mappings":";;;;;cAMa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAG5B,6BAAA,EAA6B,CAAA,CAAA,UAAc;AAAA,cAE3C,uBAAA,EAAyB,SAAA,QAC7B,4BAAA,SACA,6BAAA,SACA,SAAA,CAAU,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { servicem8 } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/list-all-clients.d.ts
@@ -5,21 +7,7 @@ declare const Servicem8ListAllClientsInput: z.ZodObject<{
5
7
  filter: z.ZodOptional<z.ZodString>;
6
8
  }, z.core.$strip>;
7
9
  declare const Servicem8ListAllClientsOutput: z.ZodUnknown;
8
- declare const servicem8ListAllClients: import("@keystrokehq/action").WorkflowActionDefinition<{
9
- filter?: string | undefined;
10
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"servicem8", z.ZodObject<{
11
- connectionId: z.ZodString;
12
- entityId: z.ZodString;
13
- instanceId: z.ZodString;
14
- }, z.core.$strip>, z.ZodObject<{
15
- accessToken: z.ZodString;
16
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"servicem8", z.ZodObject<{
17
- connectionId: z.ZodString;
18
- entityId: z.ZodString;
19
- instanceId: z.ZodString;
20
- }, z.core.$strip>, z.ZodObject<{
21
- accessToken: z.ZodString;
22
- }, z.core.$strip>>]>;
10
+ declare const servicem8ListAllClients: AppAction<typeof Servicem8ListAllClientsInput, typeof Servicem8ListAllClientsOutput, typeof servicem8.credential>;
23
11
  //#endregion
24
12
  export { servicem8ListAllClients };
25
13
  //# sourceMappingURL=list-all-clients.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-all-clients.d.mts","names":[],"sources":["../../src/actions/list-all-clients.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAG5B,6BAAA,EAA6B,CAAA,CAAA,UAAc;AAAA,cAE3C,uBAAA,gCAAuB,wBAAA"}
1
+ {"version":3,"file":"list-all-clients.d.mts","names":[],"sources":["../../src/actions/list-all-clients.ts"],"mappings":";;;;;cAMa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAG5B,6BAAA,EAA6B,CAAA,CAAA,UAAc;AAAA,cAE3C,uBAAA,EAAyB,SAAA,QAC7B,4BAAA,SACA,6BAAA,SACA,SAAA,CAAU,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const servicem8ListAllClients = action("SERVICEM8_LIST_ALL_CLIENTS", {
@@ -1 +1 @@
1
- {"version":3,"file":"list-all-clients.mjs","names":[],"sources":["../../src/actions/list-all-clients.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8ListAllClientsInput = z.object({\n filter: z.string().describe(\"OData-style filter expression using $filter syntax. Supported operators: eq (equal), ne (not equal), gt (greater than), lt (less than). Combine conditions with 'and' (max 10 conditions). Examples: \\\"active eq 1\\\", \\\"name eq 'Acme Corp'\\\", \\\"create_date gt '2024-01-01'\\\". Note: ge/le operators are not supported.\").optional(),\n}).describe(\"Request model for listing all ServiceM8 clients. Supports optional OData-style filtering.\");\nexport const Servicem8ListAllClientsOutput = z.unknown();\n\nexport const servicem8ListAllClients = action(\"SERVICEM8_LIST_ALL_CLIENTS\", {\n slug: \"servicem8-list-all-clients\",\n name: \"List All Clients\",\n description: \"Tool to list all ServiceM8 clients. Use when you need a complete set of customer records for integrations or reporting.\",\n input: Servicem8ListAllClientsInput,\n output: Servicem8ListAllClientsOutput,\n});\n"],"mappings":";;AASA,MAAa,0BAA0B,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAT0C,EAAE,OAAO,EACnD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0TAA0T,CAAC,CAAC,SAAS,EACnW,CAAC,CAAC,CAAC,SAAS,2FAOH;CACP,QAP2C,EAAE,QAOrC;AACV,CAAC"}
1
+ {"version":3,"file":"list-all-clients.mjs","names":[],"sources":["../../src/actions/list-all-clients.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { servicem8 } from \"../app\";\n\nexport const Servicem8ListAllClientsInput = z.object({\n filter: z.string().describe(\"OData-style filter expression using $filter syntax. Supported operators: eq (equal), ne (not equal), gt (greater than), lt (less than). Combine conditions with 'and' (max 10 conditions). Examples: \\\"active eq 1\\\", \\\"name eq 'Acme Corp'\\\", \\\"create_date gt '2024-01-01'\\\". Note: ge/le operators are not supported.\").optional(),\n}).describe(\"Request model for listing all ServiceM8 clients. Supports optional OData-style filtering.\");\nexport const Servicem8ListAllClientsOutput = z.unknown();\n\nexport const servicem8ListAllClients: AppAction<\n typeof Servicem8ListAllClientsInput,\n typeof Servicem8ListAllClientsOutput,\n typeof servicem8.credential\n> = action(\"SERVICEM8_LIST_ALL_CLIENTS\", {\n slug: \"servicem8-list-all-clients\",\n name: \"List All Clients\",\n description: \"Tool to list all ServiceM8 clients. Use when you need a complete set of customer records for integrations or reporting.\",\n input: Servicem8ListAllClientsInput,\n output: Servicem8ListAllClientsOutput,\n});\n"],"mappings":";;;AAWA,MAAa,0BAIT,OAAO,8BAA8B;CACvC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAb0C,EAAE,OAAO,EACnD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0TAA0T,CAAC,CAAC,SAAS,EACnW,CAAC,CAAC,CAAC,SAAS,2FAWH;CACP,QAX2C,EAAE,QAWrC;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/list-all-document-templates.ts
@@ -1 +1 @@
1
- {"version":3,"file":"list-all-document-templates.cjs","names":["z","action"],"sources":["../../src/actions/list-all-document-templates.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8ListAllDocumentTemplatesInput = z.object({\n cursor: z.string().describe(\"Pagination cursor. Use '-1' for the first page. For subsequent pages, use the value from the 'x-next-cursor' response header. If omitted, returns all templates.\").optional(),\n filter: z.string().describe(\"OData-style filter expression to narrow document templates. Examples: 'name eq \\\"Invoice\\\"', 'active eq 1', 'template_type eq \\\"Quote\\\"'.\").optional(),\n}).describe(\"Request model for listing document templates. Supports optional filtering and cursor-based pagination.\");\nexport const Servicem8ListAllDocumentTemplatesOutput = z.unknown();\n\nexport const servicem8ListAllDocumentTemplates = action(\"SERVICEM8_LIST_ALL_DOCUMENT_TEMPLATES\", {\n slug: \"servicem8-list-all-document-templates\",\n name: \"List All Document Templates\",\n description: \"Tool to list document templates. Use when you need to retrieve available template UUIDs and names before generating job documents.\",\n input: Servicem8ListAllDocumentTemplatesInput,\n output: Servicem8ListAllDocumentTemplatesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yCAAyCA,IAAAA,EAAE,OAAO;CAC7D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kKAAkK,CAAC,CAAC,SAAS;CACzM,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2IAA2I,CAAC,CAAC,SAAS;AACpL,CAAC,CAAC,CAAC,SAAS,wGAAwG;AACpH,MAAa,0CAA0CA,IAAAA,EAAE,QAAQ;AAEjE,MAAa,oCAAoCC,eAAAA,OAAO,yCAAyC;CAC/F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"list-all-document-templates.cjs","names":["z","action"],"sources":["../../src/actions/list-all-document-templates.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { servicem8 } from \"../app\";\n\nexport const Servicem8ListAllDocumentTemplatesInput = z.object({\n cursor: z.string().describe(\"Pagination cursor. Use '-1' for the first page. For subsequent pages, use the value from the 'x-next-cursor' response header. If omitted, returns all templates.\").optional(),\n filter: z.string().describe(\"OData-style filter expression to narrow document templates. Examples: 'name eq \\\"Invoice\\\"', 'active eq 1', 'template_type eq \\\"Quote\\\"'.\").optional(),\n}).describe(\"Request model for listing document templates. Supports optional filtering and cursor-based pagination.\");\nexport const Servicem8ListAllDocumentTemplatesOutput = z.unknown();\n\nexport const servicem8ListAllDocumentTemplates: AppAction<\n typeof Servicem8ListAllDocumentTemplatesInput,\n typeof Servicem8ListAllDocumentTemplatesOutput,\n typeof servicem8.credential\n> = action(\"SERVICEM8_LIST_ALL_DOCUMENT_TEMPLATES\", {\n slug: \"servicem8-list-all-document-templates\",\n name: \"List All Document Templates\",\n description: \"Tool to list document templates. Use when you need to retrieve available template UUIDs and names before generating job documents.\",\n input: Servicem8ListAllDocumentTemplatesInput,\n output: Servicem8ListAllDocumentTemplatesOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,yCAAyCA,IAAAA,EAAE,OAAO;CAC7D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kKAAkK,CAAC,CAAC,SAAS;CACzM,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2IAA2I,CAAC,CAAC,SAAS;AACpL,CAAC,CAAC,CAAC,SAAS,wGAAwG;AACpH,MAAa,0CAA0CA,IAAAA,EAAE,QAAQ;AAEjE,MAAa,oCAITC,eAAAA,OAAO,yCAAyC;CAClD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { servicem8 } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/list-all-document-templates.d.ts
@@ -6,22 +8,7 @@ declare const Servicem8ListAllDocumentTemplatesInput: z.ZodObject<{
6
8
  filter: z.ZodOptional<z.ZodString>;
7
9
  }, z.core.$strip>;
8
10
  declare const Servicem8ListAllDocumentTemplatesOutput: z.ZodUnknown;
9
- declare const servicem8ListAllDocumentTemplates: import("@keystrokehq/action").WorkflowActionDefinition<{
10
- cursor?: string | undefined;
11
- filter?: string | undefined;
12
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"servicem8", z.ZodObject<{
13
- connectionId: z.ZodString;
14
- entityId: z.ZodString;
15
- instanceId: z.ZodString;
16
- }, z.core.$strip>, z.ZodObject<{
17
- accessToken: z.ZodString;
18
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"servicem8", z.ZodObject<{
19
- connectionId: z.ZodString;
20
- entityId: z.ZodString;
21
- instanceId: z.ZodString;
22
- }, z.core.$strip>, z.ZodObject<{
23
- accessToken: z.ZodString;
24
- }, z.core.$strip>>]>;
11
+ declare const servicem8ListAllDocumentTemplates: AppAction<typeof Servicem8ListAllDocumentTemplatesInput, typeof Servicem8ListAllDocumentTemplatesOutput, typeof servicem8.credential>;
25
12
  //#endregion
26
13
  export { servicem8ListAllDocumentTemplates };
27
14
  //# sourceMappingURL=list-all-document-templates.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-all-document-templates.d.cts","names":[],"sources":["../../src/actions/list-all-document-templates.ts"],"mappings":";;;cAIa,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;;cAItC,uCAAA,EAAuC,CAAA,CAAA,UAAc;AAAA,cAErD,iCAAA,gCAAiC,wBAAA"}
1
+ {"version":3,"file":"list-all-document-templates.d.cts","names":[],"sources":["../../src/actions/list-all-document-templates.ts"],"mappings":";;;;;cAMa,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;;cAItC,uCAAA,EAAuC,CAAA,CAAA,UAAc;AAAA,cAErD,iCAAA,EAAmC,SAAA,QACvC,sCAAA,SACA,uCAAA,SACA,SAAA,CAAU,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { servicem8 } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/list-all-document-templates.d.ts
@@ -6,22 +8,7 @@ declare const Servicem8ListAllDocumentTemplatesInput: z.ZodObject<{
6
8
  filter: z.ZodOptional<z.ZodString>;
7
9
  }, z.core.$strip>;
8
10
  declare const Servicem8ListAllDocumentTemplatesOutput: z.ZodUnknown;
9
- declare const servicem8ListAllDocumentTemplates: import("@keystrokehq/action").WorkflowActionDefinition<{
10
- cursor?: string | undefined;
11
- filter?: string | undefined;
12
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"servicem8", z.ZodObject<{
13
- connectionId: z.ZodString;
14
- entityId: z.ZodString;
15
- instanceId: z.ZodString;
16
- }, z.core.$strip>, z.ZodObject<{
17
- accessToken: z.ZodString;
18
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"servicem8", z.ZodObject<{
19
- connectionId: z.ZodString;
20
- entityId: z.ZodString;
21
- instanceId: z.ZodString;
22
- }, z.core.$strip>, z.ZodObject<{
23
- accessToken: z.ZodString;
24
- }, z.core.$strip>>]>;
11
+ declare const servicem8ListAllDocumentTemplates: AppAction<typeof Servicem8ListAllDocumentTemplatesInput, typeof Servicem8ListAllDocumentTemplatesOutput, typeof servicem8.credential>;
25
12
  //#endregion
26
13
  export { servicem8ListAllDocumentTemplates };
27
14
  //# sourceMappingURL=list-all-document-templates.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-all-document-templates.d.mts","names":[],"sources":["../../src/actions/list-all-document-templates.ts"],"mappings":";;;cAIa,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;;cAItC,uCAAA,EAAuC,CAAA,CAAA,UAAc;AAAA,cAErD,iCAAA,gCAAiC,wBAAA"}
1
+ {"version":3,"file":"list-all-document-templates.d.mts","names":[],"sources":["../../src/actions/list-all-document-templates.ts"],"mappings":";;;;;cAMa,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;;cAItC,uCAAA,EAAuC,CAAA,CAAA,UAAc;AAAA,cAErD,iCAAA,EAAmC,SAAA,QACvC,sCAAA,SACA,uCAAA,SACA,SAAA,CAAU,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const servicem8ListAllDocumentTemplates = action("SERVICEM8_LIST_ALL_DOCUMENT_TEMPLATES", {
@@ -1 +1 @@
1
- {"version":3,"file":"list-all-document-templates.mjs","names":[],"sources":["../../src/actions/list-all-document-templates.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8ListAllDocumentTemplatesInput = z.object({\n cursor: z.string().describe(\"Pagination cursor. Use '-1' for the first page. For subsequent pages, use the value from the 'x-next-cursor' response header. If omitted, returns all templates.\").optional(),\n filter: z.string().describe(\"OData-style filter expression to narrow document templates. Examples: 'name eq \\\"Invoice\\\"', 'active eq 1', 'template_type eq \\\"Quote\\\"'.\").optional(),\n}).describe(\"Request model for listing document templates. Supports optional filtering and cursor-based pagination.\");\nexport const Servicem8ListAllDocumentTemplatesOutput = z.unknown();\n\nexport const servicem8ListAllDocumentTemplates = action(\"SERVICEM8_LIST_ALL_DOCUMENT_TEMPLATES\", {\n slug: \"servicem8-list-all-document-templates\",\n name: \"List All Document Templates\",\n description: \"Tool to list document templates. Use when you need to retrieve available template UUIDs and names before generating job documents.\",\n input: Servicem8ListAllDocumentTemplatesInput,\n output: Servicem8ListAllDocumentTemplatesOutput,\n});\n"],"mappings":";;AAUA,MAAa,oCAAoC,OAAO,yCAAyC;CAC/F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAVoD,EAAE,OAAO;EAC7D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,kKAAkK,CAAC,CAAC,SAAS;EACzM,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,2IAA2I,CAAC,CAAC,SAAS;CACpL,CAAC,CAAC,CAAC,SAAS,wGAOH;CACP,QAPqD,EAAE,QAO/C;AACV,CAAC"}
1
+ {"version":3,"file":"list-all-document-templates.mjs","names":[],"sources":["../../src/actions/list-all-document-templates.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { servicem8 } from \"../app\";\n\nexport const Servicem8ListAllDocumentTemplatesInput = z.object({\n cursor: z.string().describe(\"Pagination cursor. Use '-1' for the first page. For subsequent pages, use the value from the 'x-next-cursor' response header. If omitted, returns all templates.\").optional(),\n filter: z.string().describe(\"OData-style filter expression to narrow document templates. Examples: 'name eq \\\"Invoice\\\"', 'active eq 1', 'template_type eq \\\"Quote\\\"'.\").optional(),\n}).describe(\"Request model for listing document templates. Supports optional filtering and cursor-based pagination.\");\nexport const Servicem8ListAllDocumentTemplatesOutput = z.unknown();\n\nexport const servicem8ListAllDocumentTemplates: AppAction<\n typeof Servicem8ListAllDocumentTemplatesInput,\n typeof Servicem8ListAllDocumentTemplatesOutput,\n typeof servicem8.credential\n> = action(\"SERVICEM8_LIST_ALL_DOCUMENT_TEMPLATES\", {\n slug: \"servicem8-list-all-document-templates\",\n name: \"List All Document Templates\",\n description: \"Tool to list document templates. Use when you need to retrieve available template UUIDs and names before generating job documents.\",\n input: Servicem8ListAllDocumentTemplatesInput,\n output: Servicem8ListAllDocumentTemplatesOutput,\n});\n"],"mappings":";;;AAYA,MAAa,oCAIT,OAAO,yCAAyC;CAClD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAdoD,EAAE,OAAO;EAC7D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,kKAAkK,CAAC,CAAC,SAAS;EACzM,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,2IAA2I,CAAC,CAAC,SAAS;CACpL,CAAC,CAAC,CAAC,SAAS,wGAWH;CACP,QAXqD,EAAE,QAW/C;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/list-all-forms.ts
@@ -1 +1 @@
1
- {"version":3,"file":"list-all-forms.cjs","names":["z","action"],"sources":["../../src/actions/list-all-forms.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8ListAllFormsInput = z.object({\n filter: z.string().describe(\"OData-style filter expression to narrow down forms. Supported operators: eq (equals), ne (not equals), gt (greater than), lt (less than). Combine up to 10 conditions with 'and'. String values must use single quotes. Examples: \\\"active eq 1\\\", \\\"name eq 'Safety Checklist'\\\".\").optional(),\n}).describe(\"Request model for listing all ServiceM8 forms. Supports optional filtering.\");\nexport const Servicem8ListAllFormsOutput = z.unknown();\n\nexport const servicem8ListAllForms = action(\"SERVICEM8_LIST_ALL_FORMS\", {\n slug: \"servicem8-list-all-forms\",\n name: \"List All Forms\",\n description: \"Tool to list all ServiceM8 forms. Use when you need to fetch available form templates with optional filters.\",\n input: Servicem8ListAllFormsInput,\n output: Servicem8ListAllFormsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oRAAoR,CAAC,CAAC,SAAS,EAC7T,CAAC,CAAC,CAAC,SAAS,6EAA6E;AACzF,MAAa,8BAA8BA,IAAAA,EAAE,QAAQ;AAErD,MAAa,wBAAwBC,eAAAA,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"list-all-forms.cjs","names":["z","action"],"sources":["../../src/actions/list-all-forms.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { servicem8 } from \"../app\";\n\nexport const Servicem8ListAllFormsInput = z.object({\n filter: z.string().describe(\"OData-style filter expression to narrow down forms. Supported operators: eq (equals), ne (not equals), gt (greater than), lt (less than). Combine up to 10 conditions with 'and'. String values must use single quotes. Examples: \\\"active eq 1\\\", \\\"name eq 'Safety Checklist'\\\".\").optional(),\n}).describe(\"Request model for listing all ServiceM8 forms. Supports optional filtering.\");\nexport const Servicem8ListAllFormsOutput = z.unknown();\n\nexport const servicem8ListAllForms: AppAction<\n typeof Servicem8ListAllFormsInput,\n typeof Servicem8ListAllFormsOutput,\n typeof servicem8.credential\n> = action(\"SERVICEM8_LIST_ALL_FORMS\", {\n slug: \"servicem8-list-all-forms\",\n name: \"List All Forms\",\n description: \"Tool to list all ServiceM8 forms. Use when you need to fetch available form templates with optional filters.\",\n input: Servicem8ListAllFormsInput,\n output: Servicem8ListAllFormsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oRAAoR,CAAC,CAAC,SAAS,EAC7T,CAAC,CAAC,CAAC,SAAS,6EAA6E;AACzF,MAAa,8BAA8BA,IAAAA,EAAE,QAAQ;AAErD,MAAa,wBAITC,eAAAA,OAAO,4BAA4B;CACrC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { servicem8 } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/list-all-forms.d.ts
@@ -5,21 +7,7 @@ declare const Servicem8ListAllFormsInput: z.ZodObject<{
5
7
  filter: z.ZodOptional<z.ZodString>;
6
8
  }, z.core.$strip>;
7
9
  declare const Servicem8ListAllFormsOutput: z.ZodUnknown;
8
- declare const servicem8ListAllForms: import("@keystrokehq/action").WorkflowActionDefinition<{
9
- filter?: string | undefined;
10
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"servicem8", z.ZodObject<{
11
- connectionId: z.ZodString;
12
- entityId: z.ZodString;
13
- instanceId: z.ZodString;
14
- }, z.core.$strip>, z.ZodObject<{
15
- accessToken: z.ZodString;
16
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"servicem8", z.ZodObject<{
17
- connectionId: z.ZodString;
18
- entityId: z.ZodString;
19
- instanceId: z.ZodString;
20
- }, z.core.$strip>, z.ZodObject<{
21
- accessToken: z.ZodString;
22
- }, z.core.$strip>>]>;
10
+ declare const servicem8ListAllForms: AppAction<typeof Servicem8ListAllFormsInput, typeof Servicem8ListAllFormsOutput, typeof servicem8.credential>;
23
11
  //#endregion
24
12
  export { servicem8ListAllForms };
25
13
  //# sourceMappingURL=list-all-forms.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-all-forms.d.cts","names":[],"sources":["../../src/actions/list-all-forms.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;cAG1B,2BAAA,EAA2B,CAAA,CAAA,UAAc;AAAA,cAEzC,qBAAA,gCAAqB,wBAAA"}
1
+ {"version":3,"file":"list-all-forms.d.cts","names":[],"sources":["../../src/actions/list-all-forms.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;cAG1B,2BAAA,EAA2B,CAAA,CAAA,UAAc;AAAA,cAEzC,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,SACA,SAAA,CAAU,UAAA"}