@keystrokehq/servicem8 0.1.0 → 0.1.3

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 (213) 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 +2 -2
  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 +2 -2
  10. package/dist/actions/create-job-note.mjs.map +1 -1
  11. package/dist/actions/create-job-payment.cjs +2 -2
  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 +2 -2
  18. package/dist/actions/create-job-payment.mjs.map +1 -1
  19. package/dist/actions/create-jobs.cjs +5 -5
  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 +5 -5
  26. package/dist/actions/create-jobs.mjs.map +1 -1
  27. package/dist/actions/delete-custom-field.cjs +1 -1
  28. package/dist/actions/delete-custom-field.cjs.map +1 -1
  29. package/dist/actions/delete-custom-field.d.cts +10 -3
  30. package/dist/actions/delete-custom-field.d.cts.map +1 -1
  31. package/dist/actions/delete-custom-field.d.mts +10 -3
  32. package/dist/actions/delete-custom-field.d.mts.map +1 -1
  33. package/dist/actions/delete-custom-field.mjs +1 -1
  34. package/dist/actions/delete-custom-field.mjs.map +1 -1
  35. package/dist/actions/delete-job-note.cjs +2 -2
  36. package/dist/actions/delete-job-note.cjs.map +1 -1
  37. package/dist/actions/delete-job-note.d.cts +15 -3
  38. package/dist/actions/delete-job-note.d.cts.map +1 -1
  39. package/dist/actions/delete-job-note.d.mts +15 -3
  40. package/dist/actions/delete-job-note.d.mts.map +1 -1
  41. package/dist/actions/delete-job-note.mjs +2 -2
  42. package/dist/actions/delete-job-note.mjs.map +1 -1
  43. package/dist/actions/delete-job-payment.cjs +4 -4
  44. package/dist/actions/delete-job-payment.cjs.map +1 -1
  45. package/dist/actions/delete-job-payment.d.cts +11 -3
  46. package/dist/actions/delete-job-payment.d.cts.map +1 -1
  47. package/dist/actions/delete-job-payment.d.mts +11 -3
  48. package/dist/actions/delete-job-payment.d.mts.map +1 -1
  49. package/dist/actions/delete-job-payment.mjs +4 -4
  50. package/dist/actions/delete-job-payment.mjs.map +1 -1
  51. package/dist/actions/list-all-assets.cjs.map +1 -1
  52. package/dist/actions/list-all-assets.d.cts +7 -3
  53. package/dist/actions/list-all-assets.d.cts.map +1 -1
  54. package/dist/actions/list-all-assets.d.mts +7 -3
  55. package/dist/actions/list-all-assets.d.mts.map +1 -1
  56. package/dist/actions/list-all-assets.mjs.map +1 -1
  57. package/dist/actions/list-all-clients.cjs.map +1 -1
  58. package/dist/actions/list-all-clients.d.cts +7 -3
  59. package/dist/actions/list-all-clients.d.cts.map +1 -1
  60. package/dist/actions/list-all-clients.d.mts +7 -3
  61. package/dist/actions/list-all-clients.d.mts.map +1 -1
  62. package/dist/actions/list-all-clients.mjs.map +1 -1
  63. package/dist/actions/list-all-document-templates.cjs.map +1 -1
  64. package/dist/actions/list-all-document-templates.d.cts +9 -3
  65. package/dist/actions/list-all-document-templates.d.cts.map +1 -1
  66. package/dist/actions/list-all-document-templates.d.mts +9 -3
  67. package/dist/actions/list-all-document-templates.d.mts.map +1 -1
  68. package/dist/actions/list-all-document-templates.mjs.map +1 -1
  69. package/dist/actions/list-all-forms.cjs.map +1 -1
  70. package/dist/actions/list-all-forms.d.cts +7 -3
  71. package/dist/actions/list-all-forms.d.cts.map +1 -1
  72. package/dist/actions/list-all-forms.d.mts +7 -3
  73. package/dist/actions/list-all-forms.d.mts.map +1 -1
  74. package/dist/actions/list-all-forms.mjs.map +1 -1
  75. package/dist/actions/list-all-job-notes.cjs +7 -7
  76. package/dist/actions/list-all-job-notes.cjs.map +1 -1
  77. package/dist/actions/list-all-job-notes.d.cts +21 -3
  78. package/dist/actions/list-all-job-notes.d.cts.map +1 -1
  79. package/dist/actions/list-all-job-notes.d.mts +21 -3
  80. package/dist/actions/list-all-job-notes.d.mts.map +1 -1
  81. package/dist/actions/list-all-job-notes.mjs +7 -7
  82. package/dist/actions/list-all-job-notes.mjs.map +1 -1
  83. package/dist/actions/list-all-job-queues.cjs.map +1 -1
  84. package/dist/actions/list-all-job-queues.d.cts +3 -3
  85. package/dist/actions/list-all-job-queues.d.cts.map +1 -1
  86. package/dist/actions/list-all-job-queues.d.mts +3 -3
  87. package/dist/actions/list-all-job-queues.d.mts.map +1 -1
  88. package/dist/actions/list-all-job-queues.mjs.map +1 -1
  89. package/dist/actions/list-all-jobs.cjs +6 -6
  90. package/dist/actions/list-all-jobs.cjs.map +1 -1
  91. package/dist/actions/list-all-jobs.d.cts +61 -3
  92. package/dist/actions/list-all-jobs.d.cts.map +1 -1
  93. package/dist/actions/list-all-jobs.d.mts +61 -3
  94. package/dist/actions/list-all-jobs.d.mts.map +1 -1
  95. package/dist/actions/list-all-jobs.mjs +6 -6
  96. package/dist/actions/list-all-jobs.mjs.map +1 -1
  97. package/dist/actions/list-all-locations.cjs.map +1 -1
  98. package/dist/actions/list-all-locations.d.cts +7 -3
  99. package/dist/actions/list-all-locations.d.cts.map +1 -1
  100. package/dist/actions/list-all-locations.d.mts +7 -3
  101. package/dist/actions/list-all-locations.d.mts.map +1 -1
  102. package/dist/actions/list-all-locations.mjs.map +1 -1
  103. package/dist/actions/list-all-materials.cjs.map +1 -1
  104. package/dist/actions/list-all-materials.d.cts +7 -3
  105. package/dist/actions/list-all-materials.d.cts.map +1 -1
  106. package/dist/actions/list-all-materials.d.mts +7 -3
  107. package/dist/actions/list-all-materials.d.mts.map +1 -1
  108. package/dist/actions/list-all-materials.mjs.map +1 -1
  109. package/dist/actions/list-all-tasks.cjs +1 -1
  110. package/dist/actions/list-all-tasks.cjs.map +1 -1
  111. package/dist/actions/list-all-tasks.d.cts +23 -3
  112. package/dist/actions/list-all-tasks.d.cts.map +1 -1
  113. package/dist/actions/list-all-tasks.d.mts +23 -3
  114. package/dist/actions/list-all-tasks.d.mts.map +1 -1
  115. package/dist/actions/list-all-tasks.mjs +1 -1
  116. package/dist/actions/list-all-tasks.mjs.map +1 -1
  117. package/dist/actions/retrieve-client.cjs +4 -4
  118. package/dist/actions/retrieve-client.cjs.map +1 -1
  119. package/dist/actions/retrieve-client.d.cts +32 -3
  120. package/dist/actions/retrieve-client.d.cts.map +1 -1
  121. package/dist/actions/retrieve-client.d.mts +32 -3
  122. package/dist/actions/retrieve-client.d.mts.map +1 -1
  123. package/dist/actions/retrieve-client.mjs +4 -4
  124. package/dist/actions/retrieve-client.mjs.map +1 -1
  125. package/dist/actions/retrieve-form.cjs +1 -1
  126. package/dist/actions/retrieve-form.cjs.map +1 -1
  127. package/dist/actions/retrieve-form.d.cts +13 -3
  128. package/dist/actions/retrieve-form.d.cts.map +1 -1
  129. package/dist/actions/retrieve-form.d.mts +13 -3
  130. package/dist/actions/retrieve-form.d.mts.map +1 -1
  131. package/dist/actions/retrieve-form.mjs +1 -1
  132. package/dist/actions/retrieve-form.mjs.map +1 -1
  133. package/dist/actions/retrieve-job-activity.cjs +5 -5
  134. package/dist/actions/retrieve-job-activity.cjs.map +1 -1
  135. package/dist/actions/retrieve-job-activity.d.cts +26 -3
  136. package/dist/actions/retrieve-job-activity.d.cts.map +1 -1
  137. package/dist/actions/retrieve-job-activity.d.mts +26 -3
  138. package/dist/actions/retrieve-job-activity.d.mts.map +1 -1
  139. package/dist/actions/retrieve-job-activity.mjs +5 -5
  140. package/dist/actions/retrieve-job-activity.mjs.map +1 -1
  141. package/dist/actions/retrieve-job-note.cjs +3 -3
  142. package/dist/actions/retrieve-job-note.cjs.map +1 -1
  143. package/dist/actions/retrieve-job-note.d.cts +16 -3
  144. package/dist/actions/retrieve-job-note.d.cts.map +1 -1
  145. package/dist/actions/retrieve-job-note.d.mts +16 -3
  146. package/dist/actions/retrieve-job-note.d.mts.map +1 -1
  147. package/dist/actions/retrieve-job-note.mjs +3 -3
  148. package/dist/actions/retrieve-job-note.mjs.map +1 -1
  149. package/dist/actions/retrieve-job-payment.cjs +6 -6
  150. package/dist/actions/retrieve-job-payment.cjs.map +1 -1
  151. package/dist/actions/retrieve-job-payment.d.cts +19 -3
  152. package/dist/actions/retrieve-job-payment.d.cts.map +1 -1
  153. package/dist/actions/retrieve-job-payment.d.mts +19 -3
  154. package/dist/actions/retrieve-job-payment.d.mts.map +1 -1
  155. package/dist/actions/retrieve-job-payment.mjs +6 -6
  156. package/dist/actions/retrieve-job-payment.mjs.map +1 -1
  157. package/dist/actions/retrieve-job-queue.cjs +7 -7
  158. package/dist/actions/retrieve-job-queue.cjs.map +1 -1
  159. package/dist/actions/retrieve-job-queue.d.cts +15 -3
  160. package/dist/actions/retrieve-job-queue.d.cts.map +1 -1
  161. package/dist/actions/retrieve-job-queue.d.mts +15 -3
  162. package/dist/actions/retrieve-job-queue.d.mts.map +1 -1
  163. package/dist/actions/retrieve-job-queue.mjs +7 -7
  164. package/dist/actions/retrieve-job-queue.mjs.map +1 -1
  165. package/dist/actions/retrieve-job.cjs +7 -7
  166. package/dist/actions/retrieve-job.cjs.map +1 -1
  167. package/dist/actions/retrieve-job.d.cts +59 -3
  168. package/dist/actions/retrieve-job.d.cts.map +1 -1
  169. package/dist/actions/retrieve-job.d.mts +59 -3
  170. package/dist/actions/retrieve-job.d.mts.map +1 -1
  171. package/dist/actions/retrieve-job.mjs +7 -7
  172. package/dist/actions/retrieve-job.mjs.map +1 -1
  173. package/dist/actions/retrieve-location.cjs +2 -2
  174. package/dist/actions/retrieve-location.cjs.map +1 -1
  175. package/dist/actions/retrieve-location.d.cts +22 -3
  176. package/dist/actions/retrieve-location.d.cts.map +1 -1
  177. package/dist/actions/retrieve-location.d.mts +22 -3
  178. package/dist/actions/retrieve-location.d.mts.map +1 -1
  179. package/dist/actions/retrieve-location.mjs +2 -2
  180. package/dist/actions/retrieve-location.mjs.map +1 -1
  181. package/dist/actions/retrieve-material.cjs +7 -7
  182. package/dist/actions/retrieve-material.cjs.map +1 -1
  183. package/dist/actions/retrieve-material.d.cts +22 -3
  184. package/dist/actions/retrieve-material.d.cts.map +1 -1
  185. package/dist/actions/retrieve-material.d.mts +22 -3
  186. package/dist/actions/retrieve-material.d.mts.map +1 -1
  187. package/dist/actions/retrieve-material.mjs +7 -7
  188. package/dist/actions/retrieve-material.mjs.map +1 -1
  189. package/dist/actions/retrieve-staff-member.cjs +6 -6
  190. package/dist/actions/retrieve-staff-member.cjs.map +1 -1
  191. package/dist/actions/retrieve-staff-member.d.cts +29 -3
  192. package/dist/actions/retrieve-staff-member.d.cts.map +1 -1
  193. package/dist/actions/retrieve-staff-member.d.mts +29 -3
  194. package/dist/actions/retrieve-staff-member.d.mts.map +1 -1
  195. package/dist/actions/retrieve-staff-member.mjs +6 -6
  196. package/dist/actions/retrieve-staff-member.mjs.map +1 -1
  197. package/dist/actions/update-job-note.cjs +8 -8
  198. package/dist/actions/update-job-note.cjs.map +1 -1
  199. package/dist/actions/update-job-note.d.cts +21 -3
  200. package/dist/actions/update-job-note.d.cts.map +1 -1
  201. package/dist/actions/update-job-note.d.mts +21 -3
  202. package/dist/actions/update-job-note.d.mts.map +1 -1
  203. package/dist/actions/update-job-note.mjs +8 -8
  204. package/dist/actions/update-job-note.mjs.map +1 -1
  205. package/dist/actions/update-job-payment.cjs +6 -6
  206. package/dist/actions/update-job-payment.cjs.map +1 -1
  207. package/dist/actions/update-job-payment.d.cts +33 -3
  208. package/dist/actions/update-job-payment.d.cts.map +1 -1
  209. package/dist/actions/update-job-payment.d.mts +33 -3
  210. package/dist/actions/update-job-payment.d.mts.map +1 -1
  211. package/dist/actions/update-job-payment.mjs +6 -6
  212. package/dist/actions/update-job-payment.mjs.map +1 -1
  213. package/package.json +2 -2
@@ -1,9 +1,28 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/retrieve-location.d.ts
4
- declare const Servicem8RetrieveLocationInput: z.ZodTypeAny;
5
- declare const Servicem8RetrieveLocationOutput: z.ZodTypeAny;
6
- declare const servicem8RetrieveLocation: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const Servicem8RetrieveLocationInput: z.ZodObject<{
5
+ uuid: z.ZodString;
6
+ }, z.core.$strip>;
7
+ declare const Servicem8RetrieveLocationOutput: z.ZodObject<{
8
+ lat: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
9
+ lng: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
10
+ city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
+ uuid: z.ZodNullable<z.ZodString>;
13
+ line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ line3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ state: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ active: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
18
+ country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ phone_1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
+ edit_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
+ post_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ }, z.core.$loose>;
23
+ declare const servicem8RetrieveLocation: import("@keystrokehq/action").WorkflowActionDefinition<{
24
+ uuid: string;
25
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
26
  //#endregion
8
27
  export { servicem8RetrieveLocation };
9
28
  //# sourceMappingURL=retrieve-location.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"retrieve-location.d.mts","names":[],"sources":["../../src/actions/retrieve-location.ts"],"mappings":";;;cAIa,8BAAA,EAAgC,CAAA,CAAE,UAE0B;AAAA,cAC5D,+BAAA,EAAiC,CAAA,CAAE,UAegE;AAAA,cAEnG,yBAAA,gCAAyB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"retrieve-location.d.mts","names":[],"sources":["../../src/actions/retrieve-location.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;cAG9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAiB/B,yBAAA,gCAAyB,wBAAA"}
@@ -10,7 +10,7 @@ const servicem8RetrieveLocation = action("SERVICEM8_RETRIEVE_LOCATION", {
10
10
  lng: z.number().describe("Longitude coordinate in decimal degrees (-180 to 180).").nullable().optional(),
11
11
  city: z.string().describe("City of the location.").nullable().optional(),
12
12
  name: z.string().describe("Name or label of the location.").nullable().optional(),
13
- uuid: z.string().describe("Unique identifier (UUID) of the location."),
13
+ uuid: z.string().describe("Unique identifier (UUID) of the location.").nullable(),
14
14
  line1: z.string().describe("Street number and street name (address line 1).").nullable().optional(),
15
15
  line2: z.string().describe("Additional address info like building/suite numbers (address line 2).").nullable().optional(),
16
16
  line3: z.string().describe("Extra address details if lines 1-2 are insufficient (address line 3).").nullable().optional(),
@@ -20,7 +20,7 @@ const servicem8RetrieveLocation = action("SERVICEM8_RETRIEVE_LOCATION", {
20
20
  phone_1: z.string().describe("Primary contact phone number for the location.").nullable().optional(),
21
21
  edit_date: z.string().describe("Timestamp when the location was last modified (format: YYYY-MM-DD HH:MM:SS).").nullable().optional(),
22
22
  post_code: z.string().describe("Postal or ZIP code of the location.").nullable().optional()
23
- }).describe("Response model for a ServiceM8 location containing address, geolocation, and contact information.")
23
+ }).passthrough().describe("Response model for a ServiceM8 location containing address, geolocation, and contact information.")
24
24
  });
25
25
  //#endregion
26
26
  export { servicem8RetrieveLocation };
@@ -1 +1 @@
1
- {"version":3,"file":"retrieve-location.mjs","names":[],"sources":["../../src/actions/retrieve-location.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8RetrieveLocationInput: z.ZodTypeAny = z.object({\n uuid: z.string().describe(\"The unique identifier (UUID) of the location to retrieve. Must be a valid 36-character UUID string.\"),\n}).describe(\"Request model for retrieving a ServiceM8 location by UUID.\");\nexport const Servicem8RetrieveLocationOutput: z.ZodTypeAny = z.object({\n lat: z.number().describe(\"Latitude coordinate in decimal degrees (-90 to 90).\").nullable().optional(),\n lng: z.number().describe(\"Longitude coordinate in decimal degrees (-180 to 180).\").nullable().optional(),\n city: z.string().describe(\"City of the location.\").nullable().optional(),\n name: z.string().describe(\"Name or label of the location.\").nullable().optional(),\n uuid: z.string().describe(\"Unique identifier (UUID) of the location.\"),\n line1: z.string().describe(\"Street number and street name (address line 1).\").nullable().optional(),\n line2: z.string().describe(\"Additional address info like building/suite numbers (address line 2).\").nullable().optional(),\n line3: z.string().describe(\"Extra address details if lines 1-2 are insufficient (address line 3).\").nullable().optional(),\n state: z.string().describe(\"State or region of the location.\").nullable().optional(),\n active: z.number().int().describe(\"Active/deleted flag: 1 = active, 0 = deleted.\").nullable().optional(),\n country: z.string().describe(\"Country of the location.\").nullable().optional(),\n phone_1: z.string().describe(\"Primary contact phone number for the location.\").nullable().optional(),\n edit_date: z.string().describe(\"Timestamp when the location was last modified (format: YYYY-MM-DD HH:MM:SS).\").nullable().optional(),\n post_code: z.string().describe(\"Postal or ZIP code of the location.\").nullable().optional(),\n}).describe(\"Response model for a ServiceM8 location containing address, geolocation, and contact information.\");\n\nexport const servicem8RetrieveLocation = action(\"SERVICEM8_RETRIEVE_LOCATION\", {\n slug: \"servicem8-retrieve-location\",\n name: \"Retrieve Location\",\n description: \"Retrieve a specific ServiceM8 location by its UUID. Returns complete location details including name, address fields (street, city, state, country, postal code), geographic coordinates (lat/lng), contact phone number, and active status. Use this when you have a known location UUID and need its full details. To list all available locations, use the List All Locations action first.\",\n input: Servicem8RetrieveLocationInput,\n output: Servicem8RetrieveLocationOutput,\n});\n"],"mappings":";;AAwBA,MAAa,4BAA4B,OAAO,+BAA+B;CAC7E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAxB0D,EAAE,OAAO,EACnE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qGAAqG,EACjI,CAAC,CAAC,CAAC,SAAS,4DAsBH;CACP,QAtB2D,EAAE,OAAO;EACpE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpG,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvG,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;EACrE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClG,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxH,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxH,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnF,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvG,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7E,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnI,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,CAAC,CAAC,CAAC,SAAS,mGAOF;AACV,CAAC"}
1
+ {"version":3,"file":"retrieve-location.mjs","names":[],"sources":["../../src/actions/retrieve-location.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8RetrieveLocationInput = z.object({\n uuid: z.string().describe(\"The unique identifier (UUID) of the location to retrieve. Must be a valid 36-character UUID string.\"),\n}).describe(\"Request model for retrieving a ServiceM8 location by UUID.\");\nexport const Servicem8RetrieveLocationOutput = z.object({\n lat: z.number().describe(\"Latitude coordinate in decimal degrees (-90 to 90).\").nullable().optional(),\n lng: z.number().describe(\"Longitude coordinate in decimal degrees (-180 to 180).\").nullable().optional(),\n city: z.string().describe(\"City of the location.\").nullable().optional(),\n name: z.string().describe(\"Name or label of the location.\").nullable().optional(),\n uuid: z.string().describe(\"Unique identifier (UUID) of the location.\").nullable(),\n line1: z.string().describe(\"Street number and street name (address line 1).\").nullable().optional(),\n line2: z.string().describe(\"Additional address info like building/suite numbers (address line 2).\").nullable().optional(),\n line3: z.string().describe(\"Extra address details if lines 1-2 are insufficient (address line 3).\").nullable().optional(),\n state: z.string().describe(\"State or region of the location.\").nullable().optional(),\n active: z.number().int().describe(\"Active/deleted flag: 1 = active, 0 = deleted.\").nullable().optional(),\n country: z.string().describe(\"Country of the location.\").nullable().optional(),\n phone_1: z.string().describe(\"Primary contact phone number for the location.\").nullable().optional(),\n edit_date: z.string().describe(\"Timestamp when the location was last modified (format: YYYY-MM-DD HH:MM:SS).\").nullable().optional(),\n post_code: z.string().describe(\"Postal or ZIP code of the location.\").nullable().optional(),\n}).passthrough().describe(\"Response model for a ServiceM8 location containing address, geolocation, and contact information.\");\n\nexport const servicem8RetrieveLocation = action(\"SERVICEM8_RETRIEVE_LOCATION\", {\n slug: \"servicem8-retrieve-location\",\n name: \"Retrieve Location\",\n description: \"Retrieve a specific ServiceM8 location by its UUID. Returns complete location details including name, address fields (street, city, state, country, postal code), geographic coordinates (lat/lng), contact phone number, and active status. Use this when you have a known location UUID and need its full details. To list all available locations, use the List All Locations action first.\",\n input: Servicem8RetrieveLocationInput,\n output: Servicem8RetrieveLocationOutput,\n});\n"],"mappings":";;AAwBA,MAAa,4BAA4B,OAAO,+BAA+B;CAC7E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAxB4C,EAAE,OAAO,EACrD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qGAAqG,EACjI,CAAC,CAAC,CAAC,SAAS,4DAsBH;CACP,QAtB6C,EAAE,OAAO;EACtD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpG,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvG,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;EAChF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClG,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxH,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxH,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnF,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvG,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7E,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnI,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mGAOhB;AACV,CAAC"}
@@ -3,13 +3,13 @@ let zod = require("zod");
3
3
  //#region src/actions/retrieve-material.ts
4
4
  const Servicem8RetrieveMaterialInput = zod.z.object({ uuid: zod.z.string().describe("UUID of the material to retrieve. Obtain this from the 'List All Materials' action or from job material records.") }).describe("Request model for retrieving a specific ServiceM8 material by UUID.");
5
5
  const Servicem8RetrieveMaterialOutput = zod.z.object({
6
- cost: zod.z.string().describe("Purchase/internal cost of the material in account currency (as string)"),
7
- name: zod.z.string().describe("Display name of the material, product, or labour rate"),
8
- uuid: zod.z.string().describe("Unique identifier (UUID) of the material record"),
9
- price: zod.z.string().describe("Selling price of the material in account currency (as string)"),
10
- active: zod.z.number().int().describe("Record status flag: 1 if active, 0 if soft-deleted (hidden in UI but accessible via API)"),
6
+ cost: zod.z.string().describe("Purchase/internal cost of the material in account currency (as string)").nullable(),
7
+ name: zod.z.string().describe("Display name of the material, product, or labour rate").nullable(),
8
+ uuid: zod.z.string().describe("Unique identifier (UUID) of the material record").nullable(),
9
+ price: zod.z.string().describe("Selling price of the material in account currency (as string)").nullable(),
10
+ active: zod.z.number().int().describe("Record status flag: 1 if active, 0 if soft-deleted (hidden in UI but accessible via API)").nullable(),
11
11
  barcode: zod.z.string().describe("Barcode/UPC identifier for the material").nullable().optional(),
12
- edit_date: zod.z.string().describe("ISO-8601 timestamp of last modification (e.g., '2023-05-01T15:20:30')"),
12
+ edit_date: zod.z.string().describe("ISO-8601 timestamp of last modification (e.g., '2023-05-01T15:20:30')").nullable(),
13
13
  item_number: zod.z.string().describe("Unique item/SKU code for the material used for lookups and imports").nullable().optional(),
14
14
  tax_rate_uuid: zod.z.string().describe("UUID of the default tax rate applied to this material").nullable().optional(),
15
15
  item_description: zod.z.string().describe("Detailed description of the material for display on forms or invoices").nullable().optional(),
@@ -17,7 +17,7 @@ const Servicem8RetrieveMaterialOutput = zod.z.object({
17
17
  item_is_inventoried: zod.z.number().int().describe("Inventory tracking flag: 1 if inventory tracking is enabled, 0 if disabled").nullable().optional(),
18
18
  price_includes_taxes: zod.z.number().int().describe("Tax inclusion flag: 1 if price includes taxes, 0 if price excludes taxes").nullable().optional(),
19
19
  use_description_for_invoicing: zod.z.string().describe("Alternative description text used specifically for invoicing (if different from item_description)").nullable().optional()
20
- }).describe("Response model for a ServiceM8 material record containing pricing, inventory, and identification details.");
20
+ }).passthrough().describe("Response model for a ServiceM8 material record containing pricing, inventory, and identification details.");
21
21
  const servicem8RetrieveMaterial = require_action.action("SERVICEM8_RETRIEVE_MATERIAL", {
22
22
  slug: "servicem8-retrieve-material",
23
23
  name: "Retrieve ServiceM8 Material",
@@ -1 +1 @@
1
- {"version":3,"file":"retrieve-material.cjs","names":["z","action"],"sources":["../../src/actions/retrieve-material.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8RetrieveMaterialInput: z.ZodTypeAny = z.object({\n uuid: z.string().describe(\"UUID of the material to retrieve. Obtain this from the 'List All Materials' action or from job material records.\"),\n}).describe(\"Request model for retrieving a specific ServiceM8 material by UUID.\");\nexport const Servicem8RetrieveMaterialOutput: z.ZodTypeAny = z.object({\n cost: z.string().describe(\"Purchase/internal cost of the material in account currency (as string)\"),\n name: z.string().describe(\"Display name of the material, product, or labour rate\"),\n uuid: z.string().describe(\"Unique identifier (UUID) of the material record\"),\n price: z.string().describe(\"Selling price of the material in account currency (as string)\"),\n active: z.number().int().describe(\"Record status flag: 1 if active, 0 if soft-deleted (hidden in UI but accessible via API)\"),\n barcode: z.string().describe(\"Barcode/UPC identifier for the material\").nullable().optional(),\n edit_date: z.string().describe(\"ISO-8601 timestamp of last modification (e.g., '2023-05-01T15:20:30')\"),\n item_number: z.string().describe(\"Unique item/SKU code for the material used for lookups and imports\").nullable().optional(),\n tax_rate_uuid: z.string().describe(\"UUID of the default tax rate applied to this material\").nullable().optional(),\n item_description: z.string().describe(\"Detailed description of the material for display on forms or invoices\").nullable().optional(),\n quantity_in_stock: z.number().describe(\"Current inventory quantity available (only populated if inventory tracking is enabled)\").nullable().optional(),\n item_is_inventoried: z.number().int().describe(\"Inventory tracking flag: 1 if inventory tracking is enabled, 0 if disabled\").nullable().optional(),\n price_includes_taxes: z.number().int().describe(\"Tax inclusion flag: 1 if price includes taxes, 0 if price excludes taxes\").nullable().optional(),\n use_description_for_invoicing: z.string().describe(\"Alternative description text used specifically for invoicing (if different from item_description)\").nullable().optional(),\n}).describe(\"Response model for a ServiceM8 material record containing pricing, inventory, and identification details.\");\n\nexport const servicem8RetrieveMaterial = action(\"SERVICEM8_RETRIEVE_MATERIAL\", {\n slug: \"servicem8-retrieve-material\",\n name: \"Retrieve ServiceM8 Material\",\n description: \"Retrieve detailed information about a specific material/product/service by its UUID. Returns pricing, inventory levels, tax settings, and identification details. Use this when you have a material UUID from a job or list operation and need complete details like current stock levels or pricing information.\",\n input: Servicem8RetrieveMaterialInput,\n output: Servicem8RetrieveMaterialOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAA+CA,IAAAA,EAAE,OAAO,EACnE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kHAAkH,EAC9I,CAAC,CAAC,CAAC,SAAS,qEAAqE;AACjF,MAAa,kCAAgDA,IAAAA,EAAE,OAAO;CACpE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE;CAClG,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;CACjF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;CAC3E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D;CAC1F,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0FAA0F;CAC5H,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE;CACtG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3H,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChH,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnI,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrJ,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjJ,sBAAsBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChJ,+BAA+BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mGAAmG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9K,CAAC,CAAC,CAAC,SAAS,2GAA2G;AAEvH,MAAa,4BAA4BC,eAAAA,OAAO,+BAA+B;CAC7E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"retrieve-material.cjs","names":["z","action"],"sources":["../../src/actions/retrieve-material.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8RetrieveMaterialInput = z.object({\n uuid: z.string().describe(\"UUID of the material to retrieve. Obtain this from the 'List All Materials' action or from job material records.\"),\n}).describe(\"Request model for retrieving a specific ServiceM8 material by UUID.\");\nexport const Servicem8RetrieveMaterialOutput = z.object({\n cost: z.string().describe(\"Purchase/internal cost of the material in account currency (as string)\").nullable(),\n name: z.string().describe(\"Display name of the material, product, or labour rate\").nullable(),\n uuid: z.string().describe(\"Unique identifier (UUID) of the material record\").nullable(),\n price: z.string().describe(\"Selling price of the material in account currency (as string)\").nullable(),\n active: z.number().int().describe(\"Record status flag: 1 if active, 0 if soft-deleted (hidden in UI but accessible via API)\").nullable(),\n barcode: z.string().describe(\"Barcode/UPC identifier for the material\").nullable().optional(),\n edit_date: z.string().describe(\"ISO-8601 timestamp of last modification (e.g., '2023-05-01T15:20:30')\").nullable(),\n item_number: z.string().describe(\"Unique item/SKU code for the material used for lookups and imports\").nullable().optional(),\n tax_rate_uuid: z.string().describe(\"UUID of the default tax rate applied to this material\").nullable().optional(),\n item_description: z.string().describe(\"Detailed description of the material for display on forms or invoices\").nullable().optional(),\n quantity_in_stock: z.number().describe(\"Current inventory quantity available (only populated if inventory tracking is enabled)\").nullable().optional(),\n item_is_inventoried: z.number().int().describe(\"Inventory tracking flag: 1 if inventory tracking is enabled, 0 if disabled\").nullable().optional(),\n price_includes_taxes: z.number().int().describe(\"Tax inclusion flag: 1 if price includes taxes, 0 if price excludes taxes\").nullable().optional(),\n use_description_for_invoicing: z.string().describe(\"Alternative description text used specifically for invoicing (if different from item_description)\").nullable().optional(),\n}).passthrough().describe(\"Response model for a ServiceM8 material record containing pricing, inventory, and identification details.\");\n\nexport const servicem8RetrieveMaterial = action(\"SERVICEM8_RETRIEVE_MATERIAL\", {\n slug: \"servicem8-retrieve-material\",\n name: \"Retrieve ServiceM8 Material\",\n description: \"Retrieve detailed information about a specific material/product/service by its UUID. Returns pricing, inventory levels, tax settings, and identification details. Use this when you have a material UUID from a job or list operation and need complete details like current stock levels or pricing information.\",\n input: Servicem8RetrieveMaterialInput,\n output: Servicem8RetrieveMaterialOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO,EACrD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kHAAkH,EAC9I,CAAC,CAAC,CAAC,SAAS,qEAAqE;AACjF,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;CAC7G,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAC5F,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CACtF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CACrG,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0FAA0F,CAAC,CAAC,SAAS;CACvI,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;CACjH,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3H,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChH,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnI,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrJ,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjJ,sBAAsBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChJ,+BAA+BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mGAAmG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9K,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2GAA2G;AAErI,MAAa,4BAA4BC,eAAAA,OAAO,+BAA+B;CAC7E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,28 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/retrieve-material.d.ts
4
- declare const Servicem8RetrieveMaterialInput: z.ZodTypeAny;
5
- declare const Servicem8RetrieveMaterialOutput: z.ZodTypeAny;
6
- declare const servicem8RetrieveMaterial: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const Servicem8RetrieveMaterialInput: z.ZodObject<{
5
+ uuid: z.ZodString;
6
+ }, z.core.$strip>;
7
+ declare const Servicem8RetrieveMaterialOutput: z.ZodObject<{
8
+ cost: z.ZodNullable<z.ZodString>;
9
+ name: z.ZodNullable<z.ZodString>;
10
+ uuid: z.ZodNullable<z.ZodString>;
11
+ price: z.ZodNullable<z.ZodString>;
12
+ active: z.ZodNullable<z.ZodNumber>;
13
+ barcode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ edit_date: z.ZodNullable<z.ZodString>;
15
+ item_number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ tax_rate_uuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ item_description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ quantity_in_stock: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
19
+ item_is_inventoried: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
20
+ price_includes_taxes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
21
+ use_description_for_invoicing: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ }, z.core.$loose>;
23
+ declare const servicem8RetrieveMaterial: import("@keystrokehq/action").WorkflowActionDefinition<{
24
+ uuid: string;
25
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
26
  //#endregion
8
27
  export { servicem8RetrieveMaterial };
9
28
  //# sourceMappingURL=retrieve-material.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"retrieve-material.d.cts","names":[],"sources":["../../src/actions/retrieve-material.ts"],"mappings":";;;cAIa,8BAAA,EAAgC,CAAA,CAAE,UAEmC;AAAA,cACrE,+BAAA,EAAiC,CAAA,CAAE,UAewE;AAAA,cAE3G,yBAAA,gCAAyB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"retrieve-material.d.cts","names":[],"sources":["../../src/actions/retrieve-material.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;cAG9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAiB/B,yBAAA,gCAAyB,wBAAA"}
@@ -1,9 +1,28 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/retrieve-material.d.ts
4
- declare const Servicem8RetrieveMaterialInput: z.ZodTypeAny;
5
- declare const Servicem8RetrieveMaterialOutput: z.ZodTypeAny;
6
- declare const servicem8RetrieveMaterial: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const Servicem8RetrieveMaterialInput: z.ZodObject<{
5
+ uuid: z.ZodString;
6
+ }, z.core.$strip>;
7
+ declare const Servicem8RetrieveMaterialOutput: z.ZodObject<{
8
+ cost: z.ZodNullable<z.ZodString>;
9
+ name: z.ZodNullable<z.ZodString>;
10
+ uuid: z.ZodNullable<z.ZodString>;
11
+ price: z.ZodNullable<z.ZodString>;
12
+ active: z.ZodNullable<z.ZodNumber>;
13
+ barcode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ edit_date: z.ZodNullable<z.ZodString>;
15
+ item_number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ tax_rate_uuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ item_description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ quantity_in_stock: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
19
+ item_is_inventoried: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
20
+ price_includes_taxes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
21
+ use_description_for_invoicing: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ }, z.core.$loose>;
23
+ declare const servicem8RetrieveMaterial: import("@keystrokehq/action").WorkflowActionDefinition<{
24
+ uuid: string;
25
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
26
  //#endregion
8
27
  export { servicem8RetrieveMaterial };
9
28
  //# sourceMappingURL=retrieve-material.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"retrieve-material.d.mts","names":[],"sources":["../../src/actions/retrieve-material.ts"],"mappings":";;;cAIa,8BAAA,EAAgC,CAAA,CAAE,UAEmC;AAAA,cACrE,+BAAA,EAAiC,CAAA,CAAE,UAewE;AAAA,cAE3G,yBAAA,gCAAyB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"retrieve-material.d.mts","names":[],"sources":["../../src/actions/retrieve-material.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;cAG9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAiB/B,yBAAA,gCAAyB,wBAAA"}
@@ -6,13 +6,13 @@ const servicem8RetrieveMaterial = action("SERVICEM8_RETRIEVE_MATERIAL", {
6
6
  description: "Retrieve detailed information about a specific material/product/service by its UUID. Returns pricing, inventory levels, tax settings, and identification details. Use this when you have a material UUID from a job or list operation and need complete details like current stock levels or pricing information.",
7
7
  input: z.object({ uuid: z.string().describe("UUID of the material to retrieve. Obtain this from the 'List All Materials' action or from job material records.") }).describe("Request model for retrieving a specific ServiceM8 material by UUID."),
8
8
  output: z.object({
9
- cost: z.string().describe("Purchase/internal cost of the material in account currency (as string)"),
10
- name: z.string().describe("Display name of the material, product, or labour rate"),
11
- uuid: z.string().describe("Unique identifier (UUID) of the material record"),
12
- price: z.string().describe("Selling price of the material in account currency (as string)"),
13
- active: z.number().int().describe("Record status flag: 1 if active, 0 if soft-deleted (hidden in UI but accessible via API)"),
9
+ cost: z.string().describe("Purchase/internal cost of the material in account currency (as string)").nullable(),
10
+ name: z.string().describe("Display name of the material, product, or labour rate").nullable(),
11
+ uuid: z.string().describe("Unique identifier (UUID) of the material record").nullable(),
12
+ price: z.string().describe("Selling price of the material in account currency (as string)").nullable(),
13
+ active: z.number().int().describe("Record status flag: 1 if active, 0 if soft-deleted (hidden in UI but accessible via API)").nullable(),
14
14
  barcode: z.string().describe("Barcode/UPC identifier for the material").nullable().optional(),
15
- edit_date: z.string().describe("ISO-8601 timestamp of last modification (e.g., '2023-05-01T15:20:30')"),
15
+ edit_date: z.string().describe("ISO-8601 timestamp of last modification (e.g., '2023-05-01T15:20:30')").nullable(),
16
16
  item_number: z.string().describe("Unique item/SKU code for the material used for lookups and imports").nullable().optional(),
17
17
  tax_rate_uuid: z.string().describe("UUID of the default tax rate applied to this material").nullable().optional(),
18
18
  item_description: z.string().describe("Detailed description of the material for display on forms or invoices").nullable().optional(),
@@ -20,7 +20,7 @@ const servicem8RetrieveMaterial = action("SERVICEM8_RETRIEVE_MATERIAL", {
20
20
  item_is_inventoried: z.number().int().describe("Inventory tracking flag: 1 if inventory tracking is enabled, 0 if disabled").nullable().optional(),
21
21
  price_includes_taxes: z.number().int().describe("Tax inclusion flag: 1 if price includes taxes, 0 if price excludes taxes").nullable().optional(),
22
22
  use_description_for_invoicing: z.string().describe("Alternative description text used specifically for invoicing (if different from item_description)").nullable().optional()
23
- }).describe("Response model for a ServiceM8 material record containing pricing, inventory, and identification details.")
23
+ }).passthrough().describe("Response model for a ServiceM8 material record containing pricing, inventory, and identification details.")
24
24
  });
25
25
  //#endregion
26
26
  export { servicem8RetrieveMaterial };
@@ -1 +1 @@
1
- {"version":3,"file":"retrieve-material.mjs","names":[],"sources":["../../src/actions/retrieve-material.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8RetrieveMaterialInput: z.ZodTypeAny = z.object({\n uuid: z.string().describe(\"UUID of the material to retrieve. Obtain this from the 'List All Materials' action or from job material records.\"),\n}).describe(\"Request model for retrieving a specific ServiceM8 material by UUID.\");\nexport const Servicem8RetrieveMaterialOutput: z.ZodTypeAny = z.object({\n cost: z.string().describe(\"Purchase/internal cost of the material in account currency (as string)\"),\n name: z.string().describe(\"Display name of the material, product, or labour rate\"),\n uuid: z.string().describe(\"Unique identifier (UUID) of the material record\"),\n price: z.string().describe(\"Selling price of the material in account currency (as string)\"),\n active: z.number().int().describe(\"Record status flag: 1 if active, 0 if soft-deleted (hidden in UI but accessible via API)\"),\n barcode: z.string().describe(\"Barcode/UPC identifier for the material\").nullable().optional(),\n edit_date: z.string().describe(\"ISO-8601 timestamp of last modification (e.g., '2023-05-01T15:20:30')\"),\n item_number: z.string().describe(\"Unique item/SKU code for the material used for lookups and imports\").nullable().optional(),\n tax_rate_uuid: z.string().describe(\"UUID of the default tax rate applied to this material\").nullable().optional(),\n item_description: z.string().describe(\"Detailed description of the material for display on forms or invoices\").nullable().optional(),\n quantity_in_stock: z.number().describe(\"Current inventory quantity available (only populated if inventory tracking is enabled)\").nullable().optional(),\n item_is_inventoried: z.number().int().describe(\"Inventory tracking flag: 1 if inventory tracking is enabled, 0 if disabled\").nullable().optional(),\n price_includes_taxes: z.number().int().describe(\"Tax inclusion flag: 1 if price includes taxes, 0 if price excludes taxes\").nullable().optional(),\n use_description_for_invoicing: z.string().describe(\"Alternative description text used specifically for invoicing (if different from item_description)\").nullable().optional(),\n}).describe(\"Response model for a ServiceM8 material record containing pricing, inventory, and identification details.\");\n\nexport const servicem8RetrieveMaterial = action(\"SERVICEM8_RETRIEVE_MATERIAL\", {\n slug: \"servicem8-retrieve-material\",\n name: \"Retrieve ServiceM8 Material\",\n description: \"Retrieve detailed information about a specific material/product/service by its UUID. Returns pricing, inventory levels, tax settings, and identification details. Use this when you have a material UUID from a job or list operation and need complete details like current stock levels or pricing information.\",\n input: Servicem8RetrieveMaterialInput,\n output: Servicem8RetrieveMaterialOutput,\n});\n"],"mappings":";;AAwBA,MAAa,4BAA4B,OAAO,+BAA+B;CAC7E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAxB0D,EAAE,OAAO,EACnE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kHAAkH,EAC9I,CAAC,CAAC,CAAC,SAAS,qEAsBH;CACP,QAtB2D,EAAE,OAAO;EACpE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE;EAClG,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;EACjF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;EAC3E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D;EAC1F,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0FAA0F;EAC5H,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5F,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE;EACtG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3H,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChH,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnI,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrJ,qBAAqB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjJ,sBAAsB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChJ,+BAA+B,EAAE,OAAO,CAAC,CAAC,SAAS,mGAAmG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9K,CAAC,CAAC,CAAC,SAAS,2GAOF;AACV,CAAC"}
1
+ {"version":3,"file":"retrieve-material.mjs","names":[],"sources":["../../src/actions/retrieve-material.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8RetrieveMaterialInput = z.object({\n uuid: z.string().describe(\"UUID of the material to retrieve. Obtain this from the 'List All Materials' action or from job material records.\"),\n}).describe(\"Request model for retrieving a specific ServiceM8 material by UUID.\");\nexport const Servicem8RetrieveMaterialOutput = z.object({\n cost: z.string().describe(\"Purchase/internal cost of the material in account currency (as string)\").nullable(),\n name: z.string().describe(\"Display name of the material, product, or labour rate\").nullable(),\n uuid: z.string().describe(\"Unique identifier (UUID) of the material record\").nullable(),\n price: z.string().describe(\"Selling price of the material in account currency (as string)\").nullable(),\n active: z.number().int().describe(\"Record status flag: 1 if active, 0 if soft-deleted (hidden in UI but accessible via API)\").nullable(),\n barcode: z.string().describe(\"Barcode/UPC identifier for the material\").nullable().optional(),\n edit_date: z.string().describe(\"ISO-8601 timestamp of last modification (e.g., '2023-05-01T15:20:30')\").nullable(),\n item_number: z.string().describe(\"Unique item/SKU code for the material used for lookups and imports\").nullable().optional(),\n tax_rate_uuid: z.string().describe(\"UUID of the default tax rate applied to this material\").nullable().optional(),\n item_description: z.string().describe(\"Detailed description of the material for display on forms or invoices\").nullable().optional(),\n quantity_in_stock: z.number().describe(\"Current inventory quantity available (only populated if inventory tracking is enabled)\").nullable().optional(),\n item_is_inventoried: z.number().int().describe(\"Inventory tracking flag: 1 if inventory tracking is enabled, 0 if disabled\").nullable().optional(),\n price_includes_taxes: z.number().int().describe(\"Tax inclusion flag: 1 if price includes taxes, 0 if price excludes taxes\").nullable().optional(),\n use_description_for_invoicing: z.string().describe(\"Alternative description text used specifically for invoicing (if different from item_description)\").nullable().optional(),\n}).passthrough().describe(\"Response model for a ServiceM8 material record containing pricing, inventory, and identification details.\");\n\nexport const servicem8RetrieveMaterial = action(\"SERVICEM8_RETRIEVE_MATERIAL\", {\n slug: \"servicem8-retrieve-material\",\n name: \"Retrieve ServiceM8 Material\",\n description: \"Retrieve detailed information about a specific material/product/service by its UUID. Returns pricing, inventory levels, tax settings, and identification details. Use this when you have a material UUID from a job or list operation and need complete details like current stock levels or pricing information.\",\n input: Servicem8RetrieveMaterialInput,\n output: Servicem8RetrieveMaterialOutput,\n});\n"],"mappings":";;AAwBA,MAAa,4BAA4B,OAAO,+BAA+B;CAC7E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAxB4C,EAAE,OAAO,EACrD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kHAAkH,EAC9I,CAAC,CAAC,CAAC,SAAS,qEAsBH;CACP,QAtB6C,EAAE,OAAO;EACtD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;EAC7G,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;EAC5F,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;EACtF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;EACrG,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0FAA0F,CAAC,CAAC,SAAS;EACvI,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5F,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;EACjH,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3H,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChH,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnI,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrJ,qBAAqB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjJ,sBAAsB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChJ,+BAA+B,EAAE,OAAO,CAAC,CAAC,SAAS,mGAAmG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9K,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2GAOhB;AACV,CAAC"}
@@ -5,12 +5,12 @@ const Servicem8RetrieveStaffMemberInput = zod.z.object({ uuid: zod.z.string().de
5
5
  const Servicem8RetrieveStaffMemberOutput = zod.z.object({
6
6
  lat: zod.z.number().describe("Latitude of last known location.").nullable().optional(),
7
7
  lng: zod.z.number().describe("Longitude of last known location.").nullable().optional(),
8
- last: zod.z.string().describe("Last name of the staff member (≤30 chars)."),
9
- uuid: zod.z.string().describe("Unique identifier for this staff record."),
8
+ last: zod.z.string().describe("Last name of the staff member (≤30 chars).").nullable(),
9
+ uuid: zod.z.string().describe("Unique identifier for this staff record.").nullable(),
10
10
  color: zod.z.string().describe("Hex color code for visual identification.").nullable().optional(),
11
- email: zod.z.string().describe("Email address (also login name)."),
12
- first: zod.z.string().describe("First name of the staff member (≤30 chars)."),
13
- active: zod.z.number().int().describe("Active flag: 1=active, 0=archived."),
11
+ email: zod.z.string().describe("Email address (also login name).").nullable(),
12
+ first: zod.z.string().describe("First name of the staff member (≤30 chars).").nullable(),
13
+ active: zod.z.number().int().describe("Active flag: 1=active, 0=archived.").nullable(),
14
14
  mobile: zod.z.string().describe("Mobile phone number of the staff member.").nullable().optional(),
15
15
  edit_date: zod.z.string().describe("Timestamp when the record was last modified (YYYY-MM-DD HH:MM:SS).").nullable().optional(),
16
16
  job_title: zod.z.string().describe("Job title or role.").nullable().optional(),
@@ -24,7 +24,7 @@ const Servicem8RetrieveStaffMemberOutput = zod.z.object({
24
24
  status_message_timestamp: zod.z.string().describe("When status message was last updated (YYYY-MM-DD HH:MM:SS).").nullable().optional(),
25
25
  navigating_expiry_timestamp: zod.z.string().describe("When navigation is expected to complete or expire (YYYY-MM-DD HH:MM:SS).").nullable().optional(),
26
26
  can_receive_push_notification: zod.z.string().describe("Whether the staff can receive push notifications.").nullable().optional()
27
- }).describe("Schema of a Staff Member record returned by ServiceM8.");
27
+ }).passthrough().describe("Schema of a Staff Member record returned by ServiceM8.");
28
28
  const servicem8RetrieveStaffMember = require_action.action("SERVICEM8_RETRIEVE_STAFF_MEMBER", {
29
29
  slug: "servicem8-retrieve-staff-member",
30
30
  name: "Retrieve Staff Member",
@@ -1 +1 @@
1
- {"version":3,"file":"retrieve-staff-member.cjs","names":["z","action"],"sources":["../../src/actions/retrieve-staff-member.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8RetrieveStaffMemberInput: z.ZodTypeAny = z.object({\n uuid: z.string().describe(\"The unique identifier (UUID) of the staff member to retrieve.\"),\n}).describe(\"Request parameters for retrieving a specific staff member.\");\nexport const Servicem8RetrieveStaffMemberOutput: z.ZodTypeAny = z.object({\n lat: z.number().describe(\"Latitude of last known location.\").nullable().optional(),\n lng: z.number().describe(\"Longitude of last known location.\").nullable().optional(),\n last: z.string().describe(\"Last name of the staff member (≤30 chars).\"),\n uuid: z.string().describe(\"Unique identifier for this staff record.\"),\n color: z.string().describe(\"Hex color code for visual identification.\").nullable().optional(),\n email: z.string().describe(\"Email address (also login name).\"),\n first: z.string().describe(\"First name of the staff member (≤30 chars).\"),\n active: z.number().int().describe(\"Active flag: 1=active, 0=archived.\"),\n mobile: z.string().describe(\"Mobile phone number of the staff member.\").nullable().optional(),\n edit_date: z.string().describe(\"Timestamp when the record was last modified (YYYY-MM-DD HH:MM:SS).\").nullable().optional(),\n job_title: z.string().describe(\"Job title or role.\").nullable().optional(),\n geo_timestamp: z.string().describe(\"Timestamp when geographic location was last updated (YYYY-MM-DD HH:MM:SS).\").nullable().optional(),\n status_message: z.string().describe(\"Short message summarising current status.\").nullable().optional(),\n custom_icon_url: z.string().describe(\"DEPRECATED. Custom icon URL.\").nullable().optional(),\n hide_from_schedule: z.number().int().describe(\"1 to hide from schedule view, 0 to show.\").nullable().optional(),\n security_role_uuid: z.string().describe(\"UUID of the primary security role.\").nullable().optional(),\n navigating_timestamp: z.string().describe(\"Timestamp when navigation to a job started (YYYY-MM-DD HH:MM:SS).\").nullable().optional(),\n navigating_to_job_uuid: z.string().describe(\"UUID of the job the staff member is navigating to.\").nullable().optional(),\n status_message_timestamp: z.string().describe(\"When status message was last updated (YYYY-MM-DD HH:MM:SS).\").nullable().optional(),\n navigating_expiry_timestamp: z.string().describe(\"When navigation is expected to complete or expire (YYYY-MM-DD HH:MM:SS).\").nullable().optional(),\n can_receive_push_notification: z.string().describe(\"Whether the staff can receive push notifications.\").nullable().optional(),\n}).describe(\"Schema of a Staff Member record returned by ServiceM8.\");\n\nexport const servicem8RetrieveStaffMember = action(\"SERVICEM8_RETRIEVE_STAFF_MEMBER\", {\n slug: \"servicem8-retrieve-staff-member\",\n name: \"Retrieve Staff Member\",\n description: \"Tool to retrieve details of a specific staff member by their UUID. Use when you need up-to-date staff information given a known staff UUID.\",\n input: Servicem8RetrieveStaffMemberInput,\n output: Servicem8RetrieveStaffMemberOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAkDA,IAAAA,EAAE,OAAO,EACtE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,EAC3F,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAa,qCAAmDA,IAAAA,EAAE,OAAO;CACvE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;CACtE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;CACpE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;CAC7D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;CACxE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC;CACtE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzH,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrI,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9G,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,sBAAsBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnI,wBAAwBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtH,0BAA0BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjI,6BAA6BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjJ,+BAA+BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9H,CAAC,CAAC,CAAC,SAAS,wDAAwD;AAEpE,MAAa,+BAA+BC,eAAAA,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"retrieve-staff-member.cjs","names":["z","action"],"sources":["../../src/actions/retrieve-staff-member.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8RetrieveStaffMemberInput = z.object({\n uuid: z.string().describe(\"The unique identifier (UUID) of the staff member to retrieve.\"),\n}).describe(\"Request parameters for retrieving a specific staff member.\");\nexport const Servicem8RetrieveStaffMemberOutput = z.object({\n lat: z.number().describe(\"Latitude of last known location.\").nullable().optional(),\n lng: z.number().describe(\"Longitude of last known location.\").nullable().optional(),\n last: z.string().describe(\"Last name of the staff member (≤30 chars).\").nullable(),\n uuid: z.string().describe(\"Unique identifier for this staff record.\").nullable(),\n color: z.string().describe(\"Hex color code for visual identification.\").nullable().optional(),\n email: z.string().describe(\"Email address (also login name).\").nullable(),\n first: z.string().describe(\"First name of the staff member (≤30 chars).\").nullable(),\n active: z.number().int().describe(\"Active flag: 1=active, 0=archived.\").nullable(),\n mobile: z.string().describe(\"Mobile phone number of the staff member.\").nullable().optional(),\n edit_date: z.string().describe(\"Timestamp when the record was last modified (YYYY-MM-DD HH:MM:SS).\").nullable().optional(),\n job_title: z.string().describe(\"Job title or role.\").nullable().optional(),\n geo_timestamp: z.string().describe(\"Timestamp when geographic location was last updated (YYYY-MM-DD HH:MM:SS).\").nullable().optional(),\n status_message: z.string().describe(\"Short message summarising current status.\").nullable().optional(),\n custom_icon_url: z.string().describe(\"DEPRECATED. Custom icon URL.\").nullable().optional(),\n hide_from_schedule: z.number().int().describe(\"1 to hide from schedule view, 0 to show.\").nullable().optional(),\n security_role_uuid: z.string().describe(\"UUID of the primary security role.\").nullable().optional(),\n navigating_timestamp: z.string().describe(\"Timestamp when navigation to a job started (YYYY-MM-DD HH:MM:SS).\").nullable().optional(),\n navigating_to_job_uuid: z.string().describe(\"UUID of the job the staff member is navigating to.\").nullable().optional(),\n status_message_timestamp: z.string().describe(\"When status message was last updated (YYYY-MM-DD HH:MM:SS).\").nullable().optional(),\n navigating_expiry_timestamp: z.string().describe(\"When navigation is expected to complete or expire (YYYY-MM-DD HH:MM:SS).\").nullable().optional(),\n can_receive_push_notification: z.string().describe(\"Whether the staff can receive push notifications.\").nullable().optional(),\n}).passthrough().describe(\"Schema of a Staff Member record returned by ServiceM8.\");\n\nexport const servicem8RetrieveStaffMember = action(\"SERVICEM8_RETRIEVE_STAFF_MEMBER\", {\n slug: \"servicem8-retrieve-staff-member\",\n name: \"Retrieve Staff Member\",\n description: \"Tool to retrieve details of a specific staff member by their UUID. Use when you need up-to-date staff information given a known staff UUID.\",\n input: Servicem8RetrieveStaffMemberInput,\n output: Servicem8RetrieveStaffMemberOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAoCA,IAAAA,EAAE,OAAO,EACxD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,EAC3F,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAa,qCAAqCA,IAAAA,EAAE,OAAO;CACzD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACjF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAC/E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CACxE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CACnF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACjF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzH,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrI,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9G,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,sBAAsBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnI,wBAAwBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtH,0BAA0BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjI,6BAA6BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjJ,+BAA+BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wDAAwD;AAElF,MAAa,+BAA+BC,eAAAA,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,35 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/retrieve-staff-member.d.ts
4
- declare const Servicem8RetrieveStaffMemberInput: z.ZodTypeAny;
5
- declare const Servicem8RetrieveStaffMemberOutput: z.ZodTypeAny;
6
- declare const servicem8RetrieveStaffMember: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const Servicem8RetrieveStaffMemberInput: z.ZodObject<{
5
+ uuid: z.ZodString;
6
+ }, z.core.$strip>;
7
+ declare const Servicem8RetrieveStaffMemberOutput: z.ZodObject<{
8
+ lat: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
9
+ lng: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
10
+ last: z.ZodNullable<z.ZodString>;
11
+ uuid: z.ZodNullable<z.ZodString>;
12
+ color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
+ email: z.ZodNullable<z.ZodString>;
14
+ first: z.ZodNullable<z.ZodString>;
15
+ active: z.ZodNullable<z.ZodNumber>;
16
+ mobile: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ edit_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ job_title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ geo_timestamp: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
+ status_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
+ custom_icon_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ hide_from_schedule: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
23
+ security_role_uuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
+ navigating_timestamp: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
+ navigating_to_job_uuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
+ status_message_timestamp: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
+ navigating_expiry_timestamp: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
+ can_receive_push_notification: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29
+ }, z.core.$loose>;
30
+ declare const servicem8RetrieveStaffMember: import("@keystrokehq/action").WorkflowActionDefinition<{
31
+ uuid: string;
32
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
33
  //#endregion
8
34
  export { servicem8RetrieveStaffMember };
9
35
  //# sourceMappingURL=retrieve-staff-member.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"retrieve-staff-member.d.cts","names":[],"sources":["../../src/actions/retrieve-staff-member.ts"],"mappings":";;;cAIa,iCAAA,EAAmC,CAAA,CAAE,UAEuB;AAAA,cAC5D,kCAAA,EAAoC,CAAA,CAAE,UAsBkB;AAAA,cAExD,4BAAA,gCAA4B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"retrieve-staff-member.d.cts","names":[],"sources":["../../src/actions/retrieve-staff-member.ts"],"mappings":";;;cAIa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;cAGjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;cAwBlC,4BAAA,gCAA4B,wBAAA"}
@@ -1,9 +1,35 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/retrieve-staff-member.d.ts
4
- declare const Servicem8RetrieveStaffMemberInput: z.ZodTypeAny;
5
- declare const Servicem8RetrieveStaffMemberOutput: z.ZodTypeAny;
6
- declare const servicem8RetrieveStaffMember: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const Servicem8RetrieveStaffMemberInput: z.ZodObject<{
5
+ uuid: z.ZodString;
6
+ }, z.core.$strip>;
7
+ declare const Servicem8RetrieveStaffMemberOutput: z.ZodObject<{
8
+ lat: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
9
+ lng: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
10
+ last: z.ZodNullable<z.ZodString>;
11
+ uuid: z.ZodNullable<z.ZodString>;
12
+ color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
+ email: z.ZodNullable<z.ZodString>;
14
+ first: z.ZodNullable<z.ZodString>;
15
+ active: z.ZodNullable<z.ZodNumber>;
16
+ mobile: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ edit_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ job_title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ geo_timestamp: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
+ status_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
+ custom_icon_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ hide_from_schedule: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
23
+ security_role_uuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
+ navigating_timestamp: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
+ navigating_to_job_uuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
+ status_message_timestamp: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
+ navigating_expiry_timestamp: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
+ can_receive_push_notification: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29
+ }, z.core.$loose>;
30
+ declare const servicem8RetrieveStaffMember: import("@keystrokehq/action").WorkflowActionDefinition<{
31
+ uuid: string;
32
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
33
  //#endregion
8
34
  export { servicem8RetrieveStaffMember };
9
35
  //# sourceMappingURL=retrieve-staff-member.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"retrieve-staff-member.d.mts","names":[],"sources":["../../src/actions/retrieve-staff-member.ts"],"mappings":";;;cAIa,iCAAA,EAAmC,CAAA,CAAE,UAEuB;AAAA,cAC5D,kCAAA,EAAoC,CAAA,CAAE,UAsBkB;AAAA,cAExD,4BAAA,gCAA4B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"retrieve-staff-member.d.mts","names":[],"sources":["../../src/actions/retrieve-staff-member.ts"],"mappings":";;;cAIa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;cAGjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;cAwBlC,4BAAA,gCAA4B,wBAAA"}
@@ -8,12 +8,12 @@ const servicem8RetrieveStaffMember = action("SERVICEM8_RETRIEVE_STAFF_MEMBER", {
8
8
  output: z.object({
9
9
  lat: z.number().describe("Latitude of last known location.").nullable().optional(),
10
10
  lng: z.number().describe("Longitude of last known location.").nullable().optional(),
11
- last: z.string().describe("Last name of the staff member (≤30 chars)."),
12
- uuid: z.string().describe("Unique identifier for this staff record."),
11
+ last: z.string().describe("Last name of the staff member (≤30 chars).").nullable(),
12
+ uuid: z.string().describe("Unique identifier for this staff record.").nullable(),
13
13
  color: z.string().describe("Hex color code for visual identification.").nullable().optional(),
14
- email: z.string().describe("Email address (also login name)."),
15
- first: z.string().describe("First name of the staff member (≤30 chars)."),
16
- active: z.number().int().describe("Active flag: 1=active, 0=archived."),
14
+ email: z.string().describe("Email address (also login name).").nullable(),
15
+ first: z.string().describe("First name of the staff member (≤30 chars).").nullable(),
16
+ active: z.number().int().describe("Active flag: 1=active, 0=archived.").nullable(),
17
17
  mobile: z.string().describe("Mobile phone number of the staff member.").nullable().optional(),
18
18
  edit_date: z.string().describe("Timestamp when the record was last modified (YYYY-MM-DD HH:MM:SS).").nullable().optional(),
19
19
  job_title: z.string().describe("Job title or role.").nullable().optional(),
@@ -27,7 +27,7 @@ const servicem8RetrieveStaffMember = action("SERVICEM8_RETRIEVE_STAFF_MEMBER", {
27
27
  status_message_timestamp: z.string().describe("When status message was last updated (YYYY-MM-DD HH:MM:SS).").nullable().optional(),
28
28
  navigating_expiry_timestamp: z.string().describe("When navigation is expected to complete or expire (YYYY-MM-DD HH:MM:SS).").nullable().optional(),
29
29
  can_receive_push_notification: z.string().describe("Whether the staff can receive push notifications.").nullable().optional()
30
- }).describe("Schema of a Staff Member record returned by ServiceM8.")
30
+ }).passthrough().describe("Schema of a Staff Member record returned by ServiceM8.")
31
31
  });
32
32
  //#endregion
33
33
  export { servicem8RetrieveStaffMember };
@@ -1 +1 @@
1
- {"version":3,"file":"retrieve-staff-member.mjs","names":[],"sources":["../../src/actions/retrieve-staff-member.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8RetrieveStaffMemberInput: z.ZodTypeAny = z.object({\n uuid: z.string().describe(\"The unique identifier (UUID) of the staff member to retrieve.\"),\n}).describe(\"Request parameters for retrieving a specific staff member.\");\nexport const Servicem8RetrieveStaffMemberOutput: z.ZodTypeAny = z.object({\n lat: z.number().describe(\"Latitude of last known location.\").nullable().optional(),\n lng: z.number().describe(\"Longitude of last known location.\").nullable().optional(),\n last: z.string().describe(\"Last name of the staff member (≤30 chars).\"),\n uuid: z.string().describe(\"Unique identifier for this staff record.\"),\n color: z.string().describe(\"Hex color code for visual identification.\").nullable().optional(),\n email: z.string().describe(\"Email address (also login name).\"),\n first: z.string().describe(\"First name of the staff member (≤30 chars).\"),\n active: z.number().int().describe(\"Active flag: 1=active, 0=archived.\"),\n mobile: z.string().describe(\"Mobile phone number of the staff member.\").nullable().optional(),\n edit_date: z.string().describe(\"Timestamp when the record was last modified (YYYY-MM-DD HH:MM:SS).\").nullable().optional(),\n job_title: z.string().describe(\"Job title or role.\").nullable().optional(),\n geo_timestamp: z.string().describe(\"Timestamp when geographic location was last updated (YYYY-MM-DD HH:MM:SS).\").nullable().optional(),\n status_message: z.string().describe(\"Short message summarising current status.\").nullable().optional(),\n custom_icon_url: z.string().describe(\"DEPRECATED. Custom icon URL.\").nullable().optional(),\n hide_from_schedule: z.number().int().describe(\"1 to hide from schedule view, 0 to show.\").nullable().optional(),\n security_role_uuid: z.string().describe(\"UUID of the primary security role.\").nullable().optional(),\n navigating_timestamp: z.string().describe(\"Timestamp when navigation to a job started (YYYY-MM-DD HH:MM:SS).\").nullable().optional(),\n navigating_to_job_uuid: z.string().describe(\"UUID of the job the staff member is navigating to.\").nullable().optional(),\n status_message_timestamp: z.string().describe(\"When status message was last updated (YYYY-MM-DD HH:MM:SS).\").nullable().optional(),\n navigating_expiry_timestamp: z.string().describe(\"When navigation is expected to complete or expire (YYYY-MM-DD HH:MM:SS).\").nullable().optional(),\n can_receive_push_notification: z.string().describe(\"Whether the staff can receive push notifications.\").nullable().optional(),\n}).describe(\"Schema of a Staff Member record returned by ServiceM8.\");\n\nexport const servicem8RetrieveStaffMember = action(\"SERVICEM8_RETRIEVE_STAFF_MEMBER\", {\n slug: \"servicem8-retrieve-staff-member\",\n name: \"Retrieve Staff Member\",\n description: \"Tool to retrieve details of a specific staff member by their UUID. Use when you need up-to-date staff information given a known staff UUID.\",\n input: Servicem8RetrieveStaffMemberInput,\n output: Servicem8RetrieveStaffMemberOutput,\n});\n"],"mappings":";;AA+BA,MAAa,+BAA+B,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA/B6D,EAAE,OAAO,EACtE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,EAC3F,CAAC,CAAC,CAAC,SAAS,4DA6BH;CACP,QA7B8D,EAAE,OAAO;EACvE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjF,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;EACtE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;EACpE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5F,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;EAC7D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;EACxE,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC;EACtE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5F,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzH,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzE,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrI,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrG,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzF,oBAAoB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9G,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClG,sBAAsB,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnI,wBAAwB,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtH,0BAA0B,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjI,6BAA6B,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjJ,+BAA+B,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9H,CAAC,CAAC,CAAC,SAAS,wDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"retrieve-staff-member.mjs","names":[],"sources":["../../src/actions/retrieve-staff-member.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8RetrieveStaffMemberInput = z.object({\n uuid: z.string().describe(\"The unique identifier (UUID) of the staff member to retrieve.\"),\n}).describe(\"Request parameters for retrieving a specific staff member.\");\nexport const Servicem8RetrieveStaffMemberOutput = z.object({\n lat: z.number().describe(\"Latitude of last known location.\").nullable().optional(),\n lng: z.number().describe(\"Longitude of last known location.\").nullable().optional(),\n last: z.string().describe(\"Last name of the staff member (≤30 chars).\").nullable(),\n uuid: z.string().describe(\"Unique identifier for this staff record.\").nullable(),\n color: z.string().describe(\"Hex color code for visual identification.\").nullable().optional(),\n email: z.string().describe(\"Email address (also login name).\").nullable(),\n first: z.string().describe(\"First name of the staff member (≤30 chars).\").nullable(),\n active: z.number().int().describe(\"Active flag: 1=active, 0=archived.\").nullable(),\n mobile: z.string().describe(\"Mobile phone number of the staff member.\").nullable().optional(),\n edit_date: z.string().describe(\"Timestamp when the record was last modified (YYYY-MM-DD HH:MM:SS).\").nullable().optional(),\n job_title: z.string().describe(\"Job title or role.\").nullable().optional(),\n geo_timestamp: z.string().describe(\"Timestamp when geographic location was last updated (YYYY-MM-DD HH:MM:SS).\").nullable().optional(),\n status_message: z.string().describe(\"Short message summarising current status.\").nullable().optional(),\n custom_icon_url: z.string().describe(\"DEPRECATED. Custom icon URL.\").nullable().optional(),\n hide_from_schedule: z.number().int().describe(\"1 to hide from schedule view, 0 to show.\").nullable().optional(),\n security_role_uuid: z.string().describe(\"UUID of the primary security role.\").nullable().optional(),\n navigating_timestamp: z.string().describe(\"Timestamp when navigation to a job started (YYYY-MM-DD HH:MM:SS).\").nullable().optional(),\n navigating_to_job_uuid: z.string().describe(\"UUID of the job the staff member is navigating to.\").nullable().optional(),\n status_message_timestamp: z.string().describe(\"When status message was last updated (YYYY-MM-DD HH:MM:SS).\").nullable().optional(),\n navigating_expiry_timestamp: z.string().describe(\"When navigation is expected to complete or expire (YYYY-MM-DD HH:MM:SS).\").nullable().optional(),\n can_receive_push_notification: z.string().describe(\"Whether the staff can receive push notifications.\").nullable().optional(),\n}).passthrough().describe(\"Schema of a Staff Member record returned by ServiceM8.\");\n\nexport const servicem8RetrieveStaffMember = action(\"SERVICEM8_RETRIEVE_STAFF_MEMBER\", {\n slug: \"servicem8-retrieve-staff-member\",\n name: \"Retrieve Staff Member\",\n description: \"Tool to retrieve details of a specific staff member by their UUID. Use when you need up-to-date staff information given a known staff UUID.\",\n input: Servicem8RetrieveStaffMemberInput,\n output: Servicem8RetrieveStaffMemberOutput,\n});\n"],"mappings":";;AA+BA,MAAa,+BAA+B,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA/B+C,EAAE,OAAO,EACxD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,EAC3F,CAAC,CAAC,CAAC,SAAS,4DA6BH;CACP,QA7BgD,EAAE,OAAO;EACzD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjF,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;EACjF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;EAC/E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5F,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;EACxE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;EACnF,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;EACjF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5F,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzH,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzE,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrI,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrG,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzF,oBAAoB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9G,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClG,sBAAsB,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnI,wBAAwB,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtH,0BAA0B,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjI,6BAA6B,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjJ,+BAA+B,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wDAOhB;AACV,CAAC"}
@@ -8,14 +8,14 @@ const Servicem8UpdateJobNoteInput = zod.z.object({
8
8
  edit_date: zod.z.string().describe("Timestamp when the note was last edited in 'YYYY-MM-DD HH:MM:SS' format").optional()
9
9
  }).describe("Request model for updating a ServiceM8 job note. Provide the note UUID and at least one field to modify.");
10
10
  const Servicem8UpdateJobNoteOutput = zod.z.object({
11
- note: zod.z.string().describe("Content of the job note"),
12
- uuid: zod.z.string().describe("UUID of the updated job note"),
13
- active: zod.z.number().int().describe("Active flag of the note: 1=active, 0=archived"),
14
- job_uuid: zod.z.string().describe("UUID of the job this note is associated with"),
15
- edit_date: zod.z.string().describe("Timestamp when the note was last edited (YYYY-MM-DD HH:MM:SS)"),
16
- timestamp: zod.z.string().describe("Timestamp when the note was created (YYYY-MM-DD HH:MM:SS)"),
17
- created_by_staff_uuid: zod.z.string().describe("UUID of the staff member who created the note")
18
- }).describe("Response model for an updated ServiceM8 job note.");
11
+ note: zod.z.string().describe("Content of the job note").nullable(),
12
+ uuid: zod.z.string().describe("UUID of the updated job note").nullable(),
13
+ active: zod.z.number().int().describe("Active flag of the note: 1=active, 0=archived").nullable(),
14
+ job_uuid: zod.z.string().describe("UUID of the job this note is associated with").nullable(),
15
+ edit_date: zod.z.string().describe("Timestamp when the note was last edited (YYYY-MM-DD HH:MM:SS)").nullable(),
16
+ timestamp: zod.z.string().describe("Timestamp when the note was created (YYYY-MM-DD HH:MM:SS)").nullable(),
17
+ created_by_staff_uuid: zod.z.string().describe("UUID of the staff member who created the note").nullable()
18
+ }).passthrough().describe("Response model for an updated ServiceM8 job note.");
19
19
  const servicem8UpdateJobNote = require_action.action("SERVICEM8_UPDATE_JOB_NOTE", {
20
20
  slug: "servicem8-update-job-note",
21
21
  name: "Update a ServiceM8 Job Note",
@@ -1 +1 @@
1
- {"version":3,"file":"update-job-note.cjs","names":["z","action"],"sources":["../../src/actions/update-job-note.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8UpdateJobNoteInput: z.ZodTypeAny = z.object({\n note: z.string().describe(\"New content for the job note\").optional(),\n uuid: z.string().describe(\"UUID of the job note to update\"),\n active: z.number().int().describe(\"Active flag: 1=active, 0=archived\").optional(),\n edit_date: z.string().describe(\"Timestamp when the note was last edited in 'YYYY-MM-DD HH:MM:SS' format\").optional(),\n}).describe(\"Request model for updating a ServiceM8 job note. Provide the note UUID and at least one field to modify.\");\nexport const Servicem8UpdateJobNoteOutput: z.ZodTypeAny = z.object({\n note: z.string().describe(\"Content of the job note\"),\n uuid: z.string().describe(\"UUID of the updated job note\"),\n active: z.number().int().describe(\"Active flag of the note: 1=active, 0=archived\"),\n job_uuid: z.string().describe(\"UUID of the job this note is associated with\"),\n edit_date: z.string().describe(\"Timestamp when the note was last edited (YYYY-MM-DD HH:MM:SS)\"),\n timestamp: z.string().describe(\"Timestamp when the note was created (YYYY-MM-DD HH:MM:SS)\"),\n created_by_staff_uuid: z.string().describe(\"UUID of the staff member who created the note\"),\n}).describe(\"Response model for an updated ServiceM8 job note.\");\n\nexport const servicem8UpdateJobNote = action(\"SERVICEM8_UPDATE_JOB_NOTE\", {\n slug: \"servicem8-update-job-note\",\n name: \"Update a ServiceM8 Job Note\",\n description: \"Tool to update details of an existing job note. Use when modifying a note after its creation.\",\n input: Servicem8UpdateJobNoteInput,\n output: Servicem8UpdateJobNoteOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA4CA,IAAAA,EAAE,OAAO;CAChE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACnE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;CAC1D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAChF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;AACrH,CAAC,CAAC,CAAC,SAAS,0GAA0G;AACtH,MAAa,+BAA6CA,IAAAA,EAAE,OAAO;CACjE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;CACnD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;CACxD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C;CACjF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;CAC5E,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D;CAC9F,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D;CAC1F,uBAAuBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;AAC5F,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAE/D,MAAa,yBAAyBC,eAAAA,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"update-job-note.cjs","names":["z","action"],"sources":["../../src/actions/update-job-note.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8UpdateJobNoteInput = z.object({\n note: z.string().describe(\"New content for the job note\").optional(),\n uuid: z.string().describe(\"UUID of the job note to update\"),\n active: z.number().int().describe(\"Active flag: 1=active, 0=archived\").optional(),\n edit_date: z.string().describe(\"Timestamp when the note was last edited in 'YYYY-MM-DD HH:MM:SS' format\").optional(),\n}).describe(\"Request model for updating a ServiceM8 job note. Provide the note UUID and at least one field to modify.\");\nexport const Servicem8UpdateJobNoteOutput = z.object({\n note: z.string().describe(\"Content of the job note\").nullable(),\n uuid: z.string().describe(\"UUID of the updated job note\").nullable(),\n active: z.number().int().describe(\"Active flag of the note: 1=active, 0=archived\").nullable(),\n job_uuid: z.string().describe(\"UUID of the job this note is associated with\").nullable(),\n edit_date: z.string().describe(\"Timestamp when the note was last edited (YYYY-MM-DD HH:MM:SS)\").nullable(),\n timestamp: z.string().describe(\"Timestamp when the note was created (YYYY-MM-DD HH:MM:SS)\").nullable(),\n created_by_staff_uuid: z.string().describe(\"UUID of the staff member who created the note\").nullable(),\n}).passthrough().describe(\"Response model for an updated ServiceM8 job note.\");\n\nexport const servicem8UpdateJobNote = action(\"SERVICEM8_UPDATE_JOB_NOTE\", {\n slug: \"servicem8-update-job-note\",\n name: \"Update a ServiceM8 Job Note\",\n description: \"Tool to update details of an existing job note. Use when modifying a note after its creation.\",\n input: Servicem8UpdateJobNoteInput,\n output: Servicem8UpdateJobNoteOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACnE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;CAC1D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAChF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;AACrH,CAAC,CAAC,CAAC,SAAS,0GAA0G;AACtH,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAC9D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACnE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CAC5F,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACvF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CACzG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CACrG,uBAAuBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;AACvG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAE7E,MAAa,yBAAyBC,eAAAA,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,27 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/update-job-note.d.ts
4
- declare const Servicem8UpdateJobNoteInput: z.ZodTypeAny;
5
- declare const Servicem8UpdateJobNoteOutput: z.ZodTypeAny;
6
- declare const servicem8UpdateJobNote: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const Servicem8UpdateJobNoteInput: z.ZodObject<{
5
+ note: z.ZodOptional<z.ZodString>;
6
+ uuid: z.ZodString;
7
+ active: z.ZodOptional<z.ZodNumber>;
8
+ edit_date: z.ZodOptional<z.ZodString>;
9
+ }, z.core.$strip>;
10
+ declare const Servicem8UpdateJobNoteOutput: z.ZodObject<{
11
+ note: z.ZodNullable<z.ZodString>;
12
+ uuid: z.ZodNullable<z.ZodString>;
13
+ active: z.ZodNullable<z.ZodNumber>;
14
+ job_uuid: z.ZodNullable<z.ZodString>;
15
+ edit_date: z.ZodNullable<z.ZodString>;
16
+ timestamp: z.ZodNullable<z.ZodString>;
17
+ created_by_staff_uuid: z.ZodNullable<z.ZodString>;
18
+ }, z.core.$loose>;
19
+ declare const servicem8UpdateJobNote: import("@keystrokehq/action").WorkflowActionDefinition<{
20
+ uuid: string;
21
+ note?: string | undefined;
22
+ active?: number | undefined;
23
+ edit_date?: string | undefined;
24
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
25
  //#endregion
8
26
  export { servicem8UpdateJobNote };
9
27
  //# sourceMappingURL=update-job-note.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"update-job-note.d.cts","names":[],"sources":["../../src/actions/update-job-note.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAK2E;AAAA,cAC1G,4BAAA,EAA8B,CAAA,CAAE,UAQmB;AAAA,cAEnD,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"update-job-note.d.cts","names":[],"sources":["../../src/actions/update-job-note.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;cAM3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;cAU5B,sBAAA,gCAAsB,wBAAA"}
@@ -1,9 +1,27 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/update-job-note.d.ts
4
- declare const Servicem8UpdateJobNoteInput: z.ZodTypeAny;
5
- declare const Servicem8UpdateJobNoteOutput: z.ZodTypeAny;
6
- declare const servicem8UpdateJobNote: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const Servicem8UpdateJobNoteInput: z.ZodObject<{
5
+ note: z.ZodOptional<z.ZodString>;
6
+ uuid: z.ZodString;
7
+ active: z.ZodOptional<z.ZodNumber>;
8
+ edit_date: z.ZodOptional<z.ZodString>;
9
+ }, z.core.$strip>;
10
+ declare const Servicem8UpdateJobNoteOutput: z.ZodObject<{
11
+ note: z.ZodNullable<z.ZodString>;
12
+ uuid: z.ZodNullable<z.ZodString>;
13
+ active: z.ZodNullable<z.ZodNumber>;
14
+ job_uuid: z.ZodNullable<z.ZodString>;
15
+ edit_date: z.ZodNullable<z.ZodString>;
16
+ timestamp: z.ZodNullable<z.ZodString>;
17
+ created_by_staff_uuid: z.ZodNullable<z.ZodString>;
18
+ }, z.core.$loose>;
19
+ declare const servicem8UpdateJobNote: import("@keystrokehq/action").WorkflowActionDefinition<{
20
+ uuid: string;
21
+ note?: string | undefined;
22
+ active?: number | undefined;
23
+ edit_date?: string | undefined;
24
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
25
  //#endregion
8
26
  export { servicem8UpdateJobNote };
9
27
  //# sourceMappingURL=update-job-note.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"update-job-note.d.mts","names":[],"sources":["../../src/actions/update-job-note.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAK2E;AAAA,cAC1G,4BAAA,EAA8B,CAAA,CAAE,UAQmB;AAAA,cAEnD,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"update-job-note.d.mts","names":[],"sources":["../../src/actions/update-job-note.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;cAM3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;cAU5B,sBAAA,gCAAsB,wBAAA"}