@keystrokehq/servicem8 0.1.0 → 0.1.2

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 (209) 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 -1
  4. package/dist/actions/create-job-note.cjs.map +1 -1
  5. package/dist/actions/create-job-note.d.cts +25 -3
  6. package/dist/actions/create-job-note.d.cts.map +1 -1
  7. package/dist/actions/create-job-note.d.mts +25 -3
  8. package/dist/actions/create-job-note.d.mts.map +1 -1
  9. package/dist/actions/create-job-note.mjs +1 -1
  10. package/dist/actions/create-job-note.mjs.map +1 -1
  11. package/dist/actions/create-job-payment.cjs +1 -1
  12. package/dist/actions/create-job-payment.cjs.map +1 -1
  13. package/dist/actions/create-job-payment.d.cts +31 -3
  14. package/dist/actions/create-job-payment.d.cts.map +1 -1
  15. package/dist/actions/create-job-payment.d.mts +31 -3
  16. package/dist/actions/create-job-payment.d.mts.map +1 -1
  17. package/dist/actions/create-job-payment.mjs +1 -1
  18. package/dist/actions/create-job-payment.mjs.map +1 -1
  19. package/dist/actions/create-jobs.cjs +4 -4
  20. package/dist/actions/create-jobs.cjs.map +1 -1
  21. package/dist/actions/create-jobs.d.cts +49 -3
  22. package/dist/actions/create-jobs.d.cts.map +1 -1
  23. package/dist/actions/create-jobs.d.mts +49 -3
  24. package/dist/actions/create-jobs.d.mts.map +1 -1
  25. package/dist/actions/create-jobs.mjs +4 -4
  26. package/dist/actions/create-jobs.mjs.map +1 -1
  27. package/dist/actions/delete-custom-field.cjs.map +1 -1
  28. package/dist/actions/delete-custom-field.d.cts +10 -3
  29. package/dist/actions/delete-custom-field.d.cts.map +1 -1
  30. package/dist/actions/delete-custom-field.d.mts +10 -3
  31. package/dist/actions/delete-custom-field.d.mts.map +1 -1
  32. package/dist/actions/delete-custom-field.mjs.map +1 -1
  33. package/dist/actions/delete-job-note.cjs +1 -1
  34. package/dist/actions/delete-job-note.cjs.map +1 -1
  35. package/dist/actions/delete-job-note.d.cts +15 -3
  36. package/dist/actions/delete-job-note.d.cts.map +1 -1
  37. package/dist/actions/delete-job-note.d.mts +15 -3
  38. package/dist/actions/delete-job-note.d.mts.map +1 -1
  39. package/dist/actions/delete-job-note.mjs +1 -1
  40. package/dist/actions/delete-job-note.mjs.map +1 -1
  41. package/dist/actions/delete-job-payment.cjs +3 -3
  42. package/dist/actions/delete-job-payment.cjs.map +1 -1
  43. package/dist/actions/delete-job-payment.d.cts +11 -3
  44. package/dist/actions/delete-job-payment.d.cts.map +1 -1
  45. package/dist/actions/delete-job-payment.d.mts +11 -3
  46. package/dist/actions/delete-job-payment.d.mts.map +1 -1
  47. package/dist/actions/delete-job-payment.mjs +3 -3
  48. package/dist/actions/delete-job-payment.mjs.map +1 -1
  49. package/dist/actions/list-all-assets.cjs.map +1 -1
  50. package/dist/actions/list-all-assets.d.cts +7 -3
  51. package/dist/actions/list-all-assets.d.cts.map +1 -1
  52. package/dist/actions/list-all-assets.d.mts +7 -3
  53. package/dist/actions/list-all-assets.d.mts.map +1 -1
  54. package/dist/actions/list-all-assets.mjs.map +1 -1
  55. package/dist/actions/list-all-clients.cjs.map +1 -1
  56. package/dist/actions/list-all-clients.d.cts +7 -3
  57. package/dist/actions/list-all-clients.d.cts.map +1 -1
  58. package/dist/actions/list-all-clients.d.mts +7 -3
  59. package/dist/actions/list-all-clients.d.mts.map +1 -1
  60. package/dist/actions/list-all-clients.mjs.map +1 -1
  61. package/dist/actions/list-all-document-templates.cjs.map +1 -1
  62. package/dist/actions/list-all-document-templates.d.cts +9 -3
  63. package/dist/actions/list-all-document-templates.d.cts.map +1 -1
  64. package/dist/actions/list-all-document-templates.d.mts +9 -3
  65. package/dist/actions/list-all-document-templates.d.mts.map +1 -1
  66. package/dist/actions/list-all-document-templates.mjs.map +1 -1
  67. package/dist/actions/list-all-forms.cjs.map +1 -1
  68. package/dist/actions/list-all-forms.d.cts +7 -3
  69. package/dist/actions/list-all-forms.d.cts.map +1 -1
  70. package/dist/actions/list-all-forms.d.mts +7 -3
  71. package/dist/actions/list-all-forms.d.mts.map +1 -1
  72. package/dist/actions/list-all-forms.mjs.map +1 -1
  73. package/dist/actions/list-all-job-notes.cjs +5 -5
  74. package/dist/actions/list-all-job-notes.cjs.map +1 -1
  75. package/dist/actions/list-all-job-notes.d.cts +21 -3
  76. package/dist/actions/list-all-job-notes.d.cts.map +1 -1
  77. package/dist/actions/list-all-job-notes.d.mts +21 -3
  78. package/dist/actions/list-all-job-notes.d.mts.map +1 -1
  79. package/dist/actions/list-all-job-notes.mjs +5 -5
  80. package/dist/actions/list-all-job-notes.mjs.map +1 -1
  81. package/dist/actions/list-all-job-queues.cjs.map +1 -1
  82. package/dist/actions/list-all-job-queues.d.cts +3 -3
  83. package/dist/actions/list-all-job-queues.d.cts.map +1 -1
  84. package/dist/actions/list-all-job-queues.d.mts +3 -3
  85. package/dist/actions/list-all-job-queues.d.mts.map +1 -1
  86. package/dist/actions/list-all-job-queues.mjs.map +1 -1
  87. package/dist/actions/list-all-jobs.cjs +4 -4
  88. package/dist/actions/list-all-jobs.cjs.map +1 -1
  89. package/dist/actions/list-all-jobs.d.cts +61 -3
  90. package/dist/actions/list-all-jobs.d.cts.map +1 -1
  91. package/dist/actions/list-all-jobs.d.mts +61 -3
  92. package/dist/actions/list-all-jobs.d.mts.map +1 -1
  93. package/dist/actions/list-all-jobs.mjs +4 -4
  94. package/dist/actions/list-all-jobs.mjs.map +1 -1
  95. package/dist/actions/list-all-locations.cjs.map +1 -1
  96. package/dist/actions/list-all-locations.d.cts +7 -3
  97. package/dist/actions/list-all-locations.d.cts.map +1 -1
  98. package/dist/actions/list-all-locations.d.mts +7 -3
  99. package/dist/actions/list-all-locations.d.mts.map +1 -1
  100. package/dist/actions/list-all-locations.mjs.map +1 -1
  101. package/dist/actions/list-all-materials.cjs.map +1 -1
  102. package/dist/actions/list-all-materials.d.cts +7 -3
  103. package/dist/actions/list-all-materials.d.cts.map +1 -1
  104. package/dist/actions/list-all-materials.d.mts +7 -3
  105. package/dist/actions/list-all-materials.d.mts.map +1 -1
  106. package/dist/actions/list-all-materials.mjs.map +1 -1
  107. package/dist/actions/list-all-tasks.cjs.map +1 -1
  108. package/dist/actions/list-all-tasks.d.cts +23 -3
  109. package/dist/actions/list-all-tasks.d.cts.map +1 -1
  110. package/dist/actions/list-all-tasks.d.mts +23 -3
  111. package/dist/actions/list-all-tasks.d.mts.map +1 -1
  112. package/dist/actions/list-all-tasks.mjs.map +1 -1
  113. package/dist/actions/retrieve-client.cjs +4 -4
  114. package/dist/actions/retrieve-client.cjs.map +1 -1
  115. package/dist/actions/retrieve-client.d.cts +32 -3
  116. package/dist/actions/retrieve-client.d.cts.map +1 -1
  117. package/dist/actions/retrieve-client.d.mts +32 -3
  118. package/dist/actions/retrieve-client.d.mts.map +1 -1
  119. package/dist/actions/retrieve-client.mjs +4 -4
  120. package/dist/actions/retrieve-client.mjs.map +1 -1
  121. package/dist/actions/retrieve-form.cjs +1 -1
  122. package/dist/actions/retrieve-form.cjs.map +1 -1
  123. package/dist/actions/retrieve-form.d.cts +13 -3
  124. package/dist/actions/retrieve-form.d.cts.map +1 -1
  125. package/dist/actions/retrieve-form.d.mts +13 -3
  126. package/dist/actions/retrieve-form.d.mts.map +1 -1
  127. package/dist/actions/retrieve-form.mjs +1 -1
  128. package/dist/actions/retrieve-form.mjs.map +1 -1
  129. package/dist/actions/retrieve-job-activity.cjs +4 -4
  130. package/dist/actions/retrieve-job-activity.cjs.map +1 -1
  131. package/dist/actions/retrieve-job-activity.d.cts +26 -3
  132. package/dist/actions/retrieve-job-activity.d.cts.map +1 -1
  133. package/dist/actions/retrieve-job-activity.d.mts +26 -3
  134. package/dist/actions/retrieve-job-activity.d.mts.map +1 -1
  135. package/dist/actions/retrieve-job-activity.mjs +4 -4
  136. package/dist/actions/retrieve-job-activity.mjs.map +1 -1
  137. package/dist/actions/retrieve-job-note.cjs +2 -2
  138. package/dist/actions/retrieve-job-note.cjs.map +1 -1
  139. package/dist/actions/retrieve-job-note.d.cts +16 -3
  140. package/dist/actions/retrieve-job-note.d.cts.map +1 -1
  141. package/dist/actions/retrieve-job-note.d.mts +16 -3
  142. package/dist/actions/retrieve-job-note.d.mts.map +1 -1
  143. package/dist/actions/retrieve-job-note.mjs +2 -2
  144. package/dist/actions/retrieve-job-note.mjs.map +1 -1
  145. package/dist/actions/retrieve-job-payment.cjs +5 -5
  146. package/dist/actions/retrieve-job-payment.cjs.map +1 -1
  147. package/dist/actions/retrieve-job-payment.d.cts +19 -3
  148. package/dist/actions/retrieve-job-payment.d.cts.map +1 -1
  149. package/dist/actions/retrieve-job-payment.d.mts +19 -3
  150. package/dist/actions/retrieve-job-payment.d.mts.map +1 -1
  151. package/dist/actions/retrieve-job-payment.mjs +5 -5
  152. package/dist/actions/retrieve-job-payment.mjs.map +1 -1
  153. package/dist/actions/retrieve-job-queue.cjs +6 -6
  154. package/dist/actions/retrieve-job-queue.cjs.map +1 -1
  155. package/dist/actions/retrieve-job-queue.d.cts +15 -3
  156. package/dist/actions/retrieve-job-queue.d.cts.map +1 -1
  157. package/dist/actions/retrieve-job-queue.d.mts +15 -3
  158. package/dist/actions/retrieve-job-queue.d.mts.map +1 -1
  159. package/dist/actions/retrieve-job-queue.mjs +6 -6
  160. package/dist/actions/retrieve-job-queue.mjs.map +1 -1
  161. package/dist/actions/retrieve-job.cjs +6 -6
  162. package/dist/actions/retrieve-job.cjs.map +1 -1
  163. package/dist/actions/retrieve-job.d.cts +59 -3
  164. package/dist/actions/retrieve-job.d.cts.map +1 -1
  165. package/dist/actions/retrieve-job.d.mts +59 -3
  166. package/dist/actions/retrieve-job.d.mts.map +1 -1
  167. package/dist/actions/retrieve-job.mjs +6 -6
  168. package/dist/actions/retrieve-job.mjs.map +1 -1
  169. package/dist/actions/retrieve-location.cjs +1 -1
  170. package/dist/actions/retrieve-location.cjs.map +1 -1
  171. package/dist/actions/retrieve-location.d.cts +22 -3
  172. package/dist/actions/retrieve-location.d.cts.map +1 -1
  173. package/dist/actions/retrieve-location.d.mts +22 -3
  174. package/dist/actions/retrieve-location.d.mts.map +1 -1
  175. package/dist/actions/retrieve-location.mjs +1 -1
  176. package/dist/actions/retrieve-location.mjs.map +1 -1
  177. package/dist/actions/retrieve-material.cjs +6 -6
  178. package/dist/actions/retrieve-material.cjs.map +1 -1
  179. package/dist/actions/retrieve-material.d.cts +22 -3
  180. package/dist/actions/retrieve-material.d.cts.map +1 -1
  181. package/dist/actions/retrieve-material.d.mts +22 -3
  182. package/dist/actions/retrieve-material.d.mts.map +1 -1
  183. package/dist/actions/retrieve-material.mjs +6 -6
  184. package/dist/actions/retrieve-material.mjs.map +1 -1
  185. package/dist/actions/retrieve-staff-member.cjs +5 -5
  186. package/dist/actions/retrieve-staff-member.cjs.map +1 -1
  187. package/dist/actions/retrieve-staff-member.d.cts +29 -3
  188. package/dist/actions/retrieve-staff-member.d.cts.map +1 -1
  189. package/dist/actions/retrieve-staff-member.d.mts +29 -3
  190. package/dist/actions/retrieve-staff-member.d.mts.map +1 -1
  191. package/dist/actions/retrieve-staff-member.mjs +5 -5
  192. package/dist/actions/retrieve-staff-member.mjs.map +1 -1
  193. package/dist/actions/update-job-note.cjs +7 -7
  194. package/dist/actions/update-job-note.cjs.map +1 -1
  195. package/dist/actions/update-job-note.d.cts +21 -3
  196. package/dist/actions/update-job-note.d.cts.map +1 -1
  197. package/dist/actions/update-job-note.d.mts +21 -3
  198. package/dist/actions/update-job-note.d.mts.map +1 -1
  199. package/dist/actions/update-job-note.mjs +7 -7
  200. package/dist/actions/update-job-note.mjs.map +1 -1
  201. package/dist/actions/update-job-payment.cjs +5 -5
  202. package/dist/actions/update-job-payment.cjs.map +1 -1
  203. package/dist/actions/update-job-payment.d.cts +33 -3
  204. package/dist/actions/update-job-payment.d.cts.map +1 -1
  205. package/dist/actions/update-job-payment.d.mts +33 -3
  206. package/dist/actions/update-job-payment.d.mts.map +1 -1
  207. package/dist/actions/update-job-payment.mjs +5 -5
  208. package/dist/actions/update-job-payment.mjs.map +1 -1
  209. package/package.json +2 -2
@@ -1,9 +1,13 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/list-all-locations.d.ts
4
- declare const Servicem8ListAllLocationsInput: z.ZodTypeAny;
5
- declare const Servicem8ListAllLocationsOutput: z.ZodTypeAny;
6
- declare const servicem8ListAllLocations: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const Servicem8ListAllLocationsInput: z.ZodObject<{
5
+ filter: z.ZodOptional<z.ZodString>;
6
+ }, z.core.$strip>;
7
+ 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]>;
7
11
  //#endregion
8
12
  export { servicem8ListAllLocations };
9
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,EAAgC,CAAA,CAAE,UAEkB;AAAA,cACpD,+BAAA,EAAiC,CAAA,CAAE,UAAwB;AAAA,cAE3D,yBAAA,gCAAyB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
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 +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.ZodTypeAny = 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.ZodTypeAny = 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,OAT0D,EAAE,OAAO,EACnE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,8JAA8J,CAAC,CAAC,SAAS,EACvM,CAAC,CAAC,CAAC,SAAS,oDAOH;CACP,QAP2D,EAAE,QAOrD;AACV,CAAC"}
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 +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.ZodTypeAny = 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.ZodTypeAny = 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,iCAA+CA,IAAAA,EAAE,OAAO,EACnE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sLAAsL,CAAC,CAAC,SAAS,EAC/N,CAAC,CAAC,CAAC,SAAS,iEAAiE;AAC7E,MAAa,kCAAgDA,IAAAA,EAAE,QAAQ;AAEvE,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 { 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,9 +1,13 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/list-all-materials.d.ts
4
- declare const Servicem8ListAllMaterialsInput: z.ZodTypeAny;
5
- declare const Servicem8ListAllMaterialsOutput: z.ZodTypeAny;
6
- declare const servicem8ListAllMaterials: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const Servicem8ListAllMaterialsInput: z.ZodObject<{
5
+ filter: z.ZodOptional<z.ZodString>;
6
+ }, z.core.$strip>;
7
+ 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]>;
7
11
  //#endregion
8
12
  export { servicem8ListAllMaterials };
9
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,EAAgC,CAAA,CAAE,UAE+B;AAAA,cACjE,+BAAA,EAAiC,CAAA,CAAE,UAAwB;AAAA,cAE3D,yBAAA,gCAAyB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
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,9 +1,13 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/list-all-materials.d.ts
4
- declare const Servicem8ListAllMaterialsInput: z.ZodTypeAny;
5
- declare const Servicem8ListAllMaterialsOutput: z.ZodTypeAny;
6
- declare const servicem8ListAllMaterials: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const Servicem8ListAllMaterialsInput: z.ZodObject<{
5
+ filter: z.ZodOptional<z.ZodString>;
6
+ }, z.core.$strip>;
7
+ 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]>;
7
11
  //#endregion
8
12
  export { servicem8ListAllMaterials };
9
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,EAAgC,CAAA,CAAE,UAE+B;AAAA,cACjE,+BAAA,EAAiC,CAAA,CAAE,UAAwB;AAAA,cAE3D,yBAAA,gCAAyB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
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 +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.ZodTypeAny = 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.ZodTypeAny = 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,OAT0D,EAAE,OAAO,EACnE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,sLAAsL,CAAC,CAAC,SAAS,EAC/N,CAAC,CAAC,CAAC,SAAS,iEAOH;CACP,QAP2D,EAAE,QAOrD;AACV,CAAC"}
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 +1 @@
1
- {"version":3,"file":"list-all-tasks.cjs","names":["z","action"],"sources":["../../src/actions/list-all-tasks.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8ListAllTasksInput: z.ZodTypeAny = z.object({\n cursor: z.string().describe(\"Cursor for pagination. Use '-1' to start from the beginning. For subsequent pages, use the 'next_cursor' value from the previous response. Each page returns up to 5000 records.\").optional(),\n filter: z.string().describe(\"OData-style filter expression to narrow results. Supported operators: eq (equal), ne (not equal), gt (greater than), lt (less than). String values must use single quotes. Combine up to 10 conditions with 'and'. Example: \\\"active eq 1 and job_uuid eq 'abc-123'\\\"\").optional(),\n}).describe(\"Request model for listing all tasks. Supports optional filtering and cursor-based pagination.\");\nconst Servicem8ListAllTasks_TaskSchema: z.ZodTypeAny = z.object({\n uuid: z.string().describe(\"Unique identifier for this task.\").nullable().optional(),\n active: z.number().int().describe(\"Active flag (1 = active, 0 = deleted/inactive).\").nullable().optional(),\n due_date: z.string().describe(\"Date when the task is due (YYYY-MM-DD format).\").nullable().optional(),\n job_uuid: z.string().describe(\"UUID of the job associated with this task.\").nullable().optional(),\n completed: z.number().int().describe(\"Whether the task is completed (1 = completed, 0 = not completed).\").nullable().optional(),\n edit_date: z.string().describe(\"Timestamp when the record was last modified (YYYY-MM-DD HH:MM:SS).\").nullable().optional(),\n staff_uuid: z.string().describe(\"UUID of the staff member assigned to the task.\").nullable().optional(),\n completed_date: z.string().describe(\"Timestamp when the task was completed (YYYY-MM-DD HH:MM:SS).\").nullable().optional(),\n task_description: z.string().describe(\"Description or details of the task.\").nullable().optional(),\n completed_by_staff_uuid: z.string().describe(\"UUID of the staff member who completed the task.\").nullable().optional(),\n}).passthrough().describe(\"Represents a ServiceM8 task record.\");\nexport const Servicem8ListAllTasksOutput: z.ZodTypeAny = z.object({\n tasks: z.array(Servicem8ListAllTasks_TaskSchema).describe(\"List of task records.\"),\n next_cursor: z.string().describe(\"Cursor for the next page of results. Use this value in the 'cursor' parameter of the next request. Null/absent when no more pages exist.\").nullable().optional(),\n}).describe(\"Response model for listing all tasks: returns a list of Task objects\\nwith optional pagination cursor.\");\n\nexport const servicem8ListAllTasks = action(\"SERVICEM8_LIST_ALL_TASKS\", {\n slug: \"servicem8-list-all-tasks\",\n name: \"List All Tasks\",\n description: \"Retrieves all tasks from a ServiceM8 account with optional filtering and cursor-based pagination. Use this to fetch task records, track task assignments, monitor completion status, or sync task data. Requires 'read_tasks' OAuth scope.\",\n input: Servicem8ListAllTasksInput,\n output: Servicem8ListAllTasksOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA2CA,IAAAA,EAAE,OAAO;CAC/D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kLAAkL,CAAC,CAAC,SAAS;CACzN,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uQAAuQ,CAAC,CAAC,SAAS;AAChT,CAAC,CAAC,CAAC,SAAS,+FAA+F;AAC3G,MAAM,mCAAiDA,IAAAA,EAAE,OAAO;CAC9D,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,8BAA4CA,IAAAA,EAAE,OAAO;CAChE,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,SAAS,wGAAwG;AAEpH,MAAa,wBAAwBC,eAAAA,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 { 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}).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,kLAAk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AC/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,SAAS,wGAAwG;AAEpH,MAAa,wBAAwBC,eAAAA,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,29 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/list-all-tasks.d.ts
4
- declare const Servicem8ListAllTasksInput: z.ZodTypeAny;
5
- declare const Servicem8ListAllTasksOutput: z.ZodTypeAny;
6
- declare const servicem8ListAllTasks: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const Servicem8ListAllTasksInput: z.ZodObject<{
5
+ cursor: z.ZodOptional<z.ZodString>;
6
+ filter: z.ZodOptional<z.ZodString>;
7
+ }, z.core.$strip>;
8
+ declare const Servicem8ListAllTasksOutput: z.ZodObject<{
9
+ tasks: z.ZodArray<z.ZodObject<{
10
+ uuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
+ active: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
12
+ due_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
+ job_uuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ completed: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
15
+ edit_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ staff_uuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ completed_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ task_description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ completed_by_staff_uuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
+ }, z.core.$loose>>;
21
+ next_cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ }, z.core.$strip>;
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]>;
7
27
  //#endregion
8
28
  export { servicem8ListAllTasks };
9
29
  //# 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,EAA4B,CAAA,CAAE,UAGiE;AAAA,cAa/F,2BAAA,EAA6B,CAAA,CAAE,UAGyE;AAAA,cAExG,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
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,9 +1,29 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/list-all-tasks.d.ts
4
- declare const Servicem8ListAllTasksInput: z.ZodTypeAny;
5
- declare const Servicem8ListAllTasksOutput: z.ZodTypeAny;
6
- declare const servicem8ListAllTasks: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const Servicem8ListAllTasksInput: z.ZodObject<{
5
+ cursor: z.ZodOptional<z.ZodString>;
6
+ filter: z.ZodOptional<z.ZodString>;
7
+ }, z.core.$strip>;
8
+ declare const Servicem8ListAllTasksOutput: z.ZodObject<{
9
+ tasks: z.ZodArray<z.ZodObject<{
10
+ uuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
+ active: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
12
+ due_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
+ job_uuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ completed: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
15
+ edit_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ staff_uuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ completed_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ task_description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ completed_by_staff_uuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
+ }, z.core.$loose>>;
21
+ next_cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ }, z.core.$strip>;
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]>;
7
27
  //#endregion
8
28
  export { servicem8ListAllTasks };
9
29
  //# 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,EAA4B,CAAA,CAAE,UAGiE;AAAA,cAa/F,2BAAA,EAA6B,CAAA,CAAE,UAGyE;AAAA,cAExG,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
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 +1 @@
1
- {"version":3,"file":"list-all-tasks.mjs","names":[],"sources":["../../src/actions/list-all-tasks.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8ListAllTasksInput: z.ZodTypeAny = z.object({\n cursor: z.string().describe(\"Cursor for pagination. Use '-1' to start from the beginning. For subsequent pages, use the 'next_cursor' value from the previous response. Each page returns up to 5000 records.\").optional(),\n filter: z.string().describe(\"OData-style filter expression to narrow results. Supported operators: eq (equal), ne (not equal), gt (greater than), lt (less than). String values must use single quotes. Combine up to 10 conditions with 'and'. Example: \\\"active eq 1 and job_uuid eq 'abc-123'\\\"\").optional(),\n}).describe(\"Request model for listing all tasks. Supports optional filtering and cursor-based pagination.\");\nconst Servicem8ListAllTasks_TaskSchema: z.ZodTypeAny = z.object({\n uuid: z.string().describe(\"Unique identifier for this task.\").nullable().optional(),\n active: z.number().int().describe(\"Active flag (1 = active, 0 = deleted/inactive).\").nullable().optional(),\n due_date: z.string().describe(\"Date when the task is due (YYYY-MM-DD format).\").nullable().optional(),\n job_uuid: z.string().describe(\"UUID of the job associated with this task.\").nullable().optional(),\n completed: z.number().int().describe(\"Whether the task is completed (1 = completed, 0 = not completed).\").nullable().optional(),\n edit_date: z.string().describe(\"Timestamp when the record was last modified (YYYY-MM-DD HH:MM:SS).\").nullable().optional(),\n staff_uuid: z.string().describe(\"UUID of the staff member assigned to the task.\").nullable().optional(),\n completed_date: z.string().describe(\"Timestamp when the task was completed (YYYY-MM-DD HH:MM:SS).\").nullable().optional(),\n task_description: z.string().describe(\"Description or details of the task.\").nullable().optional(),\n completed_by_staff_uuid: z.string().describe(\"UUID of the staff member who completed the task.\").nullable().optional(),\n}).passthrough().describe(\"Represents a ServiceM8 task record.\");\nexport const Servicem8ListAllTasksOutput: z.ZodTypeAny = z.object({\n tasks: z.array(Servicem8ListAllTasks_TaskSchema).describe(\"List of task records.\"),\n next_cursor: z.string().describe(\"Cursor for the next page of results. Use this value in the 'cursor' parameter of the next request. Null/absent when no more pages exist.\").nullable().optional(),\n}).describe(\"Response model for listing all tasks: returns a list of Task objects\\nwith optional pagination cursor.\");\n\nexport const servicem8ListAllTasks = action(\"SERVICEM8_LIST_ALL_TASKS\", {\n slug: \"servicem8-list-all-tasks\",\n name: \"List All Tasks\",\n description: \"Retrieves all tasks from a ServiceM8 account with optional filtering and cursor-based pagination. Use this to fetch task records, track task assignments, monitor completion status, or sync task data. Requires 'read_tasks' OAuth scope.\",\n input: Servicem8ListAllTasksInput,\n output: Servicem8ListAllTasksOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA2C,EAAE,OAAO;CAC/D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,kLAAkL,CAAC,CAAC,SAAS;CACzN,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,uQAAuQ,CAAC,CAAC,SAAS;AAChT,CAAC,CAAC,CAAC,SAAS,+FAA+F;AAC3G,MAAM,mCAAiD,EAAE,OAAO;CAC9D,MAAM,EAAE,OAAO,CAAC,CAAC,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,wBAAwB,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVuD,EAAE,OAAO;EAChE,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,SAAS,wGAOF;AACV,CAAC"}
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}).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,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,kLAAkL,CAAC,CAAC,SAAS;CACzN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AM,gCAAgC,CAAC,CAAC,SAAS,uBAAuB;EACjF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,0IAA0I,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnM,CAAC,CAAC,CAAC,SAAS,wGAOF;AACV,CAAC"}
@@ -3,16 +3,16 @@ let zod = require("zod");
3
3
  //#region src/actions/retrieve-client.ts
4
4
  const Servicem8RetrieveClientInput = zod.z.object({ uuid: zod.z.string().describe("UUID of the company (client) to retrieve") }).describe("Request model for retrieving a specific ServiceM8 client.");
5
5
  const Servicem8RetrieveClientOutput = zod.z.object({
6
- name: zod.z.string().describe("Business name of the company/client"),
7
- uuid: zod.z.string().describe("Unique identifier of the company (UUID format)"),
6
+ name: zod.z.string().describe("Business name of the company/client").nullable(),
7
+ uuid: zod.z.string().describe("Unique identifier of the company (UUID format)").nullable(),
8
8
  email: zod.z.string().describe("Primary email address of the company").nullable().optional(),
9
9
  notes: zod.z.string().describe("Free-form notes associated with the company").nullable().optional(),
10
10
  phone: zod.z.string().describe("Primary phone number of the company").nullable().optional(),
11
- active: zod.z.number().int().describe("Record status: 1 if active, 0 if archived/deleted"),
11
+ active: zod.z.number().int().describe("Record status: 1 if active, 0 if archived/deleted").nullable(),
12
12
  badges: zod.z.string().describe("JSON array of badge UUIDs associated with this client").nullable().optional(),
13
13
  address: zod.z.string().describe("Full street address of the company (max 500 chars)").nullable().optional(),
14
14
  website: zod.z.string().describe("Company website URL").nullable().optional(),
15
- edit_date: zod.z.string().describe("ISO-8601 timestamp when the record was last modified"),
15
+ edit_date: zod.z.string().describe("ISO-8601 timestamp when the record was last modified").nullable(),
16
16
  abn_number: zod.z.string().describe("Australian Business Number (11-digit identifier for Australian businesses)").nullable().optional(),
17
17
  fax_number: zod.z.string().describe("Fax number").nullable().optional(),
18
18
  address_city: zod.z.string().describe("City/suburb name").nullable().optional(),
@@ -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.ZodTypeAny = z.object({\n uuid: z.string().describe(\"UUID of the company (client) to retrieve\"),\n}).describe(\"Request model for retrieving a specific ServiceM8 client.\");\nexport const Servicem8RetrieveClientOutput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Business name of the company/client\"),\n uuid: z.string().describe(\"Unique identifier of the company (UUID format)\"),\n email: z.string().describe(\"Primary email address of the company\").nullable().optional(),\n notes: z.string().describe(\"Free-form notes associated with the company\").nullable().optional(),\n phone: z.string().describe(\"Primary phone number of the company\").nullable().optional(),\n active: z.number().int().describe(\"Record status: 1 if active, 0 if archived/deleted\"),\n badges: z.string().describe(\"JSON array of badge UUIDs associated with this client\").nullable().optional(),\n address: z.string().describe(\"Full street address of the company (max 500 chars)\").nullable().optional(),\n website: z.string().describe(\"Company website URL\").nullable().optional(),\n edit_date: z.string().describe(\"ISO-8601 timestamp when the record was last modified\"),\n abn_number: z.string().describe(\"Australian Business Number (11-digit identifier for Australian businesses)\").nullable().optional(),\n fax_number: z.string().describe(\"Fax number\").nullable().optional(),\n address_city: z.string().describe(\"City/suburb name\").nullable().optional(),\n address_state: z.string().describe(\"State/territory/province\").nullable().optional(),\n is_individual: z.string().describe(\"Flag indicating if this is an individual rather than a business\").nullable().optional(),\n payment_terms: z.string().describe(\"Payment terms description for this client\").nullable().optional(),\n tax_rate_uuid: z.string().describe(\"UUID of the associated tax rate configuration\").nullable().optional(),\n address_street: z.string().describe(\"Street address component\").nullable().optional(),\n postal_address: z.string().describe(\"Postal/mailing address of the company\").nullable().optional(),\n address_country: z.string().describe(\"Country name\").nullable().optional(),\n billing_address: z.string().describe(\"Alternate billing address (max 500 chars)\").nullable().optional(),\n address_postcode: z.string().describe(\"Postal/ZIP code\").nullable().optional(),\n billing_attention: z.string().describe(\"Contact name for billing correspondence\").nullable().optional(),\n parent_company_uuid: z.string().describe(\"UUID of the parent company (for site locations)\").nullable().optional(),\n}).passthrough().describe(\"Response model for a ServiceM8 company (client).\");\n\nexport const servicem8RetrieveClient = action(\"SERVICEM8_RETRIEVE_CLIENT\", {\n slug: \"servicem8-retrieve-client\",\n name: \"Retrieve ServiceM8 Client\",\n description: \"Tool to retrieve details of a specific client by its UUID. Use after confirming the client's UUID is valid.\",\n input: Servicem8RetrieveClientInput,\n output: Servicem8RetrieveClientOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA6CA,IAAAA,EAAE,OAAO,EACjE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,EACtE,CAAC,CAAC,CAAC,SAAS,2DAA2D;AACvE,MAAa,gCAA8CA,IAAAA,EAAE,OAAO;CAClE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;CAC/D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;CAC1E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,OAAOA,IAAAA,EAAE,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;CACrF,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;CACxE,WAAWA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,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 { 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,S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AAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAAkD;AAE5E,MAAa,0BAA0BC,eAAAA,OAAO,6BAA6B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,38 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/retrieve-client.d.ts
4
- declare const Servicem8RetrieveClientInput: z.ZodTypeAny;
5
- declare const Servicem8RetrieveClientOutput: z.ZodTypeAny;
6
- declare const servicem8RetrieveClient: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const Servicem8RetrieveClientInput: z.ZodObject<{
5
+ uuid: z.ZodString;
6
+ }, z.core.$strip>;
7
+ declare const Servicem8RetrieveClientOutput: z.ZodObject<{
8
+ name: z.ZodNullable<z.ZodString>;
9
+ uuid: z.ZodNullable<z.ZodString>;
10
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
+ active: z.ZodNullable<z.ZodNumber>;
14
+ badges: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ website: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ edit_date: z.ZodNullable<z.ZodString>;
18
+ abn_number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ fax_number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
+ address_city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
+ address_state: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ is_individual: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
+ payment_terms: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
+ tax_rate_uuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
+ address_street: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
+ postal_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
+ address_country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
+ billing_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29
+ address_postcode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30
+ billing_attention: z.ZodOptional<z.ZodNullable<z.ZodString>>;
31
+ parent_company_uuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
+ }, 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]>;
7
36
  //#endregion
8
37
  export { servicem8RetrieveClient };
9
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,EAA8B,CAAA,CAAE,UAE2B;AAAA,cAC3D,6BAAA,EAA+B,CAAA,CAAE,UAyB+B;AAAA,cAEhE,uBAAA,gCAAuB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
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,9 +1,38 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/retrieve-client.d.ts
4
- declare const Servicem8RetrieveClientInput: z.ZodTypeAny;
5
- declare const Servicem8RetrieveClientOutput: z.ZodTypeAny;
6
- declare const servicem8RetrieveClient: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const Servicem8RetrieveClientInput: z.ZodObject<{
5
+ uuid: z.ZodString;
6
+ }, z.core.$strip>;
7
+ declare const Servicem8RetrieveClientOutput: z.ZodObject<{
8
+ name: z.ZodNullable<z.ZodString>;
9
+ uuid: z.ZodNullable<z.ZodString>;
10
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
+ active: z.ZodNullable<z.ZodNumber>;
14
+ badges: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ website: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ edit_date: z.ZodNullable<z.ZodString>;
18
+ abn_number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ fax_number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
+ address_city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
+ address_state: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ is_individual: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
+ payment_terms: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
+ tax_rate_uuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
+ address_street: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
+ postal_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
+ address_country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
+ billing_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29
+ address_postcode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30
+ billing_attention: z.ZodOptional<z.ZodNullable<z.ZodString>>;
31
+ parent_company_uuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
+ }, 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]>;
7
36
  //#endregion
8
37
  export { servicem8RetrieveClient };
9
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,EAA8B,CAAA,CAAE,UAE2B;AAAA,cAC3D,6BAAA,EAA+B,CAAA,CAAE,UAyB+B;AAAA,cAEhE,uBAAA,gCAAuB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
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"}
@@ -6,16 +6,16 @@ const servicem8RetrieveClient = action("SERVICEM8_RETRIEVE_CLIENT", {
6
6
  description: "Tool to retrieve details of a specific client by its UUID. Use after confirming the client's UUID is valid.",
7
7
  input: z.object({ uuid: z.string().describe("UUID of the company (client) to retrieve") }).describe("Request model for retrieving a specific ServiceM8 client."),
8
8
  output: z.object({
9
- name: z.string().describe("Business name of the company/client"),
10
- uuid: z.string().describe("Unique identifier of the company (UUID format)"),
9
+ name: z.string().describe("Business name of the company/client").nullable(),
10
+ uuid: z.string().describe("Unique identifier of the company (UUID format)").nullable(),
11
11
  email: z.string().describe("Primary email address of the company").nullable().optional(),
12
12
  notes: z.string().describe("Free-form notes associated with the company").nullable().optional(),
13
13
  phone: z.string().describe("Primary phone number of the company").nullable().optional(),
14
- active: z.number().int().describe("Record status: 1 if active, 0 if archived/deleted"),
14
+ active: z.number().int().describe("Record status: 1 if active, 0 if archived/deleted").nullable(),
15
15
  badges: z.string().describe("JSON array of badge UUIDs associated with this client").nullable().optional(),
16
16
  address: z.string().describe("Full street address of the company (max 500 chars)").nullable().optional(),
17
17
  website: z.string().describe("Company website URL").nullable().optional(),
18
- edit_date: z.string().describe("ISO-8601 timestamp when the record was last modified"),
18
+ edit_date: z.string().describe("ISO-8601 timestamp when the record was last modified").nullable(),
19
19
  abn_number: z.string().describe("Australian Business Number (11-digit identifier for Australian businesses)").nullable().optional(),
20
20
  fax_number: z.string().describe("Fax number").nullable().optional(),
21
21
  address_city: z.string().describe("City/suburb name").nullable().optional(),
@@ -1 +1 @@
1
- {"version":3,"file":"retrieve-client.mjs","names":[],"sources":["../../src/actions/retrieve-client.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8RetrieveClientInput: z.ZodTypeAny = z.object({\n uuid: z.string().describe(\"UUID of the company (client) to retrieve\"),\n}).describe(\"Request model for retrieving a specific ServiceM8 client.\");\nexport const Servicem8RetrieveClientOutput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Business name of the company/client\"),\n uuid: z.string().describe(\"Unique identifier of the company (UUID format)\"),\n email: z.string().describe(\"Primary email address of the company\").nullable().optional(),\n notes: z.string().describe(\"Free-form notes associated with the company\").nullable().optional(),\n phone: z.string().describe(\"Primary phone number of the company\").nullable().optional(),\n active: z.number().int().describe(\"Record status: 1 if active, 0 if archived/deleted\"),\n badges: z.string().describe(\"JSON array of badge UUIDs associated with this client\").nullable().optional(),\n address: z.string().describe(\"Full street address of the company (max 500 chars)\").nullable().optional(),\n website: z.string().describe(\"Company website URL\").nullable().optional(),\n edit_date: z.string().describe(\"ISO-8601 timestamp when the record was last modified\"),\n abn_number: z.string().describe(\"Australian Business Number (11-digit identifier for Australian businesses)\").nullable().optional(),\n fax_number: z.string().describe(\"Fax number\").nullable().optional(),\n address_city: z.string().describe(\"City/suburb name\").nullable().optional(),\n address_state: z.string().describe(\"State/territory/province\").nullable().optional(),\n is_individual: z.string().describe(\"Flag indicating if this is an individual rather than a business\").nullable().optional(),\n payment_terms: z.string().describe(\"Payment terms description for this client\").nullable().optional(),\n tax_rate_uuid: z.string().describe(\"UUID of the associated tax rate configuration\").nullable().optional(),\n address_street: z.string().describe(\"Street address component\").nullable().optional(),\n postal_address: z.string().describe(\"Postal/mailing address of the company\").nullable().optional(),\n address_country: z.string().describe(\"Country name\").nullable().optional(),\n billing_address: z.string().describe(\"Alternate billing address (max 500 chars)\").nullable().optional(),\n address_postcode: z.string().describe(\"Postal/ZIP code\").nullable().optional(),\n billing_attention: z.string().describe(\"Contact name for billing correspondence\").nullable().optional(),\n parent_company_uuid: z.string().describe(\"UUID of the parent company (for site locations)\").nullable().optional(),\n}).passthrough().describe(\"Response model for a ServiceM8 company (client).\");\n\nexport const servicem8RetrieveClient = action(\"SERVICEM8_RETRIEVE_CLIENT\", {\n slug: \"servicem8-retrieve-client\",\n name: \"Retrieve ServiceM8 Client\",\n description: \"Tool to retrieve details of a specific client by its UUID. Use after confirming the client's UUID is valid.\",\n input: Servicem8RetrieveClientInput,\n output: Servicem8RetrieveClientOutput,\n});\n"],"mappings":";;AAkCA,MAAa,0BAA0B,OAAO,6BAA6B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAlCwD,EAAE,OAAO,EACjE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,EACtE,CAAC,CAAC,CAAC,SAAS,2DAgCH;CACP,QAhCyD,EAAE,OAAO;EAClE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;EAC/D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;EAC1E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9F,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtF,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD;EACrF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzG,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvG,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;EACrF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS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
+ {"version":3,"file":"retrieve-client.mjs","names":[],"sources":["../../src/actions/retrieve-client.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8RetrieveClientInput = z.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":";;AAkCA,MAAa,0BAA0B,OAAO,6BAA6B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAlC0C,EAAE,OAAO,EACnD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,EACtE,CAAC,CAAC,CAAC,SAAS,2DAgCH;CACP,QAhC2C,EAAE,OAAO;EACpD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EAC1E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;EACrF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9F,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtF,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;EAChG,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzG,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvG,SAAS,EAAE,OAAO,CAAC,CAAC,SAA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AAS,CAAC,CAAC,SAAS;EACtG,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAOhB;AACV,CAAC"}
@@ -4,7 +4,7 @@ let zod = require("zod");
4
4
  const Servicem8RetrieveFormInput = zod.z.object({ uuid: zod.z.string().describe("The unique identifier (UUID) of the form to retrieve.") }).describe("Request model for retrieving a specific ServiceM8 form by UUID.");
5
5
  const Servicem8RetrieveFormOutput = zod.z.object({
6
6
  name: zod.z.string().describe("Name/title of the form template.").nullable().optional(),
7
- uuid: zod.z.string().describe("Unique identifier of the form (UUID format)."),
7
+ uuid: zod.z.string().describe("Unique identifier of the form (UUID format).").nullable(),
8
8
  active: zod.z.number().int().describe("Record status: 1 if active, 0 if archived/deleted.").nullable().optional(),
9
9
  edit_date: zod.z.string().describe("Timestamp when the form was last modified (YYYY-MM-DD HH:MM:SS).").nullable().optional(),
10
10
  description: zod.z.string().describe("Description of the form's purpose or usage.").nullable().optional()
@@ -1 +1 @@
1
- {"version":3,"file":"retrieve-form.cjs","names":["z","action"],"sources":["../../src/actions/retrieve-form.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8RetrieveFormInput: z.ZodTypeAny = z.object({\n uuid: z.string().describe(\"The unique identifier (UUID) of the form to retrieve.\"),\n}).describe(\"Request model for retrieving a specific ServiceM8 form by UUID.\");\nexport const Servicem8RetrieveFormOutput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name/title of the form template.\").nullable().optional(),\n uuid: z.string().describe(\"Unique identifier of the form (UUID format).\"),\n active: z.number().int().describe(\"Record status: 1 if active, 0 if archived/deleted.\").nullable().optional(),\n edit_date: z.string().describe(\"Timestamp when the form was last modified (YYYY-MM-DD HH:MM:SS).\").nullable().optional(),\n description: z.string().describe(\"Description of the form's purpose or usage.\").nullable().optional(),\n}).passthrough().describe(\"Response model for a ServiceM8 form record.\");\n\nexport const servicem8RetrieveForm = action(\"SERVICEM8_RETRIEVE_FORM\", {\n slug: \"servicem8-retrieve-form\",\n name: \"Retrieve Form\",\n description: \"Retrieve details of a specific form template by its UUID. Use this tool when you have a form UUID and need to fetch its metadata, such as form name, description, and status. Requires the Forms add-on to be enabled in ServiceM8.\",\n input: Servicem8RetrieveFormInput,\n output: Servicem8RetrieveFormOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA2CA,IAAAA,EAAE,OAAO,EAC/D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,EACnF,CAAC,CAAC,CAAC,SAAS,iEAAiE;AAC7E,MAAa,8BAA4CA,IAAAA,EAAE,OAAO;CAChE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;CACxE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvH,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAA6C;AAEvE,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"retrieve-form.cjs","names":["z","action"],"sources":["../../src/actions/retrieve-form.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8RetrieveFormInput = z.object({\n uuid: z.string().describe(\"The unique identifier (UUID) of the form to retrieve.\"),\n}).describe(\"Request model for retrieving a specific ServiceM8 form by UUID.\");\nexport const Servicem8RetrieveFormOutput = z.object({\n name: z.string().describe(\"Name/title of the form template.\").nullable().optional(),\n uuid: z.string().describe(\"Unique identifier of the form (UUID format).\").nullable(),\n active: z.number().int().describe(\"Record status: 1 if active, 0 if archived/deleted.\").nullable().optional(),\n edit_date: z.string().describe(\"Timestamp when the form was last modified (YYYY-MM-DD HH:MM:SS).\").nullable().optional(),\n description: z.string().describe(\"Description of the form's purpose or usage.\").nullable().optional(),\n}).passthrough().describe(\"Response model for a ServiceM8 form record.\");\n\nexport const servicem8RetrieveForm = action(\"SERVICEM8_RETRIEVE_FORM\", {\n slug: \"servicem8-retrieve-form\",\n name: \"Retrieve Form\",\n description: \"Retrieve details of a specific form template by its UUID. Use this tool when you have a form UUID and need to fetch its metadata, such as form name, description, and status. Requires the Forms add-on to be enabled in ServiceM8.\",\n input: Servicem8RetrieveFormInput,\n output: Servicem8RetrieveFormOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,EACnF,CAAC,CAAC,CAAC,SAAS,iEAAiE;AAC7E,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACnF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvH,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAA6C;AAEvE,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,19 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/retrieve-form.d.ts
4
- declare const Servicem8RetrieveFormInput: z.ZodTypeAny;
5
- declare const Servicem8RetrieveFormOutput: z.ZodTypeAny;
6
- declare const servicem8RetrieveForm: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const Servicem8RetrieveFormInput: z.ZodObject<{
5
+ uuid: z.ZodString;
6
+ }, z.core.$strip>;
7
+ declare const Servicem8RetrieveFormOutput: z.ZodObject<{
8
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9
+ uuid: z.ZodNullable<z.ZodString>;
10
+ active: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
11
+ edit_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
+ }, z.core.$loose>;
14
+ declare const servicem8RetrieveForm: import("@keystrokehq/action").WorkflowActionDefinition<{
15
+ uuid: string;
16
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
17
  //#endregion
8
18
  export { servicem8RetrieveForm };
9
19
  //# sourceMappingURL=retrieve-form.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"retrieve-form.d.cts","names":[],"sources":["../../src/actions/retrieve-form.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAEmC;AAAA,cACjE,2BAAA,EAA6B,CAAA,CAAE,UAM4B;AAAA,cAE3D,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"retrieve-form.d.cts","names":[],"sources":["../../src/actions/retrieve-form.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;cAG1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;cAQ3B,qBAAA,gCAAqB,wBAAA"}
@@ -1,9 +1,19 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/retrieve-form.d.ts
4
- declare const Servicem8RetrieveFormInput: z.ZodTypeAny;
5
- declare const Servicem8RetrieveFormOutput: z.ZodTypeAny;
6
- declare const servicem8RetrieveForm: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const Servicem8RetrieveFormInput: z.ZodObject<{
5
+ uuid: z.ZodString;
6
+ }, z.core.$strip>;
7
+ declare const Servicem8RetrieveFormOutput: z.ZodObject<{
8
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9
+ uuid: z.ZodNullable<z.ZodString>;
10
+ active: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
11
+ edit_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
+ }, z.core.$loose>;
14
+ declare const servicem8RetrieveForm: import("@keystrokehq/action").WorkflowActionDefinition<{
15
+ uuid: string;
16
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
17
  //#endregion
8
18
  export { servicem8RetrieveForm };
9
19
  //# sourceMappingURL=retrieve-form.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"retrieve-form.d.mts","names":[],"sources":["../../src/actions/retrieve-form.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAEmC;AAAA,cACjE,2BAAA,EAA6B,CAAA,CAAE,UAM4B;AAAA,cAE3D,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"retrieve-form.d.mts","names":[],"sources":["../../src/actions/retrieve-form.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;cAG1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;cAQ3B,qBAAA,gCAAqB,wBAAA"}
@@ -7,7 +7,7 @@ const servicem8RetrieveForm = action("SERVICEM8_RETRIEVE_FORM", {
7
7
  input: z.object({ uuid: z.string().describe("The unique identifier (UUID) of the form to retrieve.") }).describe("Request model for retrieving a specific ServiceM8 form by UUID."),
8
8
  output: z.object({
9
9
  name: z.string().describe("Name/title of the form template.").nullable().optional(),
10
- uuid: z.string().describe("Unique identifier of the form (UUID format)."),
10
+ uuid: z.string().describe("Unique identifier of the form (UUID format).").nullable(),
11
11
  active: z.number().int().describe("Record status: 1 if active, 0 if archived/deleted.").nullable().optional(),
12
12
  edit_date: z.string().describe("Timestamp when the form was last modified (YYYY-MM-DD HH:MM:SS).").nullable().optional(),
13
13
  description: z.string().describe("Description of the form's purpose or usage.").nullable().optional()
@@ -1 +1 @@
1
- {"version":3,"file":"retrieve-form.mjs","names":[],"sources":["../../src/actions/retrieve-form.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8RetrieveFormInput: z.ZodTypeAny = z.object({\n uuid: z.string().describe(\"The unique identifier (UUID) of the form to retrieve.\"),\n}).describe(\"Request model for retrieving a specific ServiceM8 form by UUID.\");\nexport const Servicem8RetrieveFormOutput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name/title of the form template.\").nullable().optional(),\n uuid: z.string().describe(\"Unique identifier of the form (UUID format).\"),\n active: z.number().int().describe(\"Record status: 1 if active, 0 if archived/deleted.\").nullable().optional(),\n edit_date: z.string().describe(\"Timestamp when the form was last modified (YYYY-MM-DD HH:MM:SS).\").nullable().optional(),\n description: z.string().describe(\"Description of the form's purpose or usage.\").nullable().optional(),\n}).passthrough().describe(\"Response model for a ServiceM8 form record.\");\n\nexport const servicem8RetrieveForm = action(\"SERVICEM8_RETRIEVE_FORM\", {\n slug: \"servicem8-retrieve-form\",\n name: \"Retrieve Form\",\n description: \"Retrieve details of a specific form template by its UUID. Use this tool when you have a form UUID and need to fetch its metadata, such as form name, description, and status. Requires the Forms add-on to be enabled in ServiceM8.\",\n input: Servicem8RetrieveFormInput,\n output: Servicem8RetrieveFormOutput,\n});\n"],"mappings":";;AAeA,MAAa,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAfsD,EAAE,OAAO,EAC/D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,EACnF,CAAC,CAAC,CAAC,SAAS,iEAaH;CACP,QAbuD,EAAE,OAAO;EAChE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;EACxE,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5G,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvH,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"retrieve-form.mjs","names":[],"sources":["../../src/actions/retrieve-form.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8RetrieveFormInput = z.object({\n uuid: z.string().describe(\"The unique identifier (UUID) of the form to retrieve.\"),\n}).describe(\"Request model for retrieving a specific ServiceM8 form by UUID.\");\nexport const Servicem8RetrieveFormOutput = z.object({\n name: z.string().describe(\"Name/title of the form template.\").nullable().optional(),\n uuid: z.string().describe(\"Unique identifier of the form (UUID format).\").nullable(),\n active: z.number().int().describe(\"Record status: 1 if active, 0 if archived/deleted.\").nullable().optional(),\n edit_date: z.string().describe(\"Timestamp when the form was last modified (YYYY-MM-DD HH:MM:SS).\").nullable().optional(),\n description: z.string().describe(\"Description of the form's purpose or usage.\").nullable().optional(),\n}).passthrough().describe(\"Response model for a ServiceM8 form record.\");\n\nexport const servicem8RetrieveForm = action(\"SERVICEM8_RETRIEVE_FORM\", {\n slug: \"servicem8-retrieve-form\",\n name: \"Retrieve Form\",\n description: \"Retrieve details of a specific form template by its UUID. Use this tool when you have a form UUID and need to fetch its metadata, such as form name, description, and status. Requires the Forms add-on to be enabled in ServiceM8.\",\n input: Servicem8RetrieveFormInput,\n output: Servicem8RetrieveFormOutput,\n});\n"],"mappings":";;AAeA,MAAa,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAfwC,EAAE,OAAO,EACjD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,EACnF,CAAC,CAAC,CAAC,SAAS,iEAaH;CACP,QAbyC,EAAE,OAAO;EAClD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;EACnF,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5G,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvH,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAOhB;AACV,CAAC"}
@@ -3,12 +3,12 @@ let zod = require("zod");
3
3
  //#region src/actions/retrieve-job-activity.ts
4
4
  const Servicem8RetrieveJobActivityInput = zod.z.object({ uuid: zod.z.string().describe("UUID of the ServiceM8 job activity to retrieve") }).describe("Request model for retrieving a specific ServiceM8 job activity by UUID.");
5
5
  const Servicem8RetrieveJobActivityOutput = zod.z.object({
6
- uuid: zod.z.string().describe("Unique identifier for the job activity."),
7
- active: zod.z.number().int().describe("Record active flag: 1=active, 0=deleted."),
6
+ uuid: zod.z.string().describe("Unique identifier for the job activity.").nullable(),
7
+ active: zod.z.number().int().describe("Record active flag: 1=active, 0=deleted.").nullable(),
8
8
  end_date: zod.z.string().describe("End time of the activity.").nullable().optional(),
9
- job_uuid: zod.z.string().describe("UUID of the associated job."),
9
+ job_uuid: zod.z.string().describe("UUID of the associated job.").nullable(),
10
10
  edit_date: zod.z.string().describe("Timestamp of last modification.").nullable().optional(),
11
- staff_uuid: zod.z.string().describe("UUID of the staff member assigned to the activity."),
11
+ staff_uuid: zod.z.string().describe("UUID of the staff member assigned to the activity.").nullable(),
12
12
  start_date: zod.z.string().describe("Start time of the activity.").nullable().optional(),
13
13
  material_uuid: zod.z.string().describe("UUID of associated material (if any).").nullable().optional(),
14
14
  has_been_opened: zod.z.union([zod.z.number().int(), zod.z.string()]).nullable().optional(),