@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 +1 @@
1
- {"version":3,"file":"action.cjs","names":["servicem8","executeServicem8Tool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { servicem8 } from \"./app\";\nimport { executeServicem8Tool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: z.ZodTypeAny;\n output: z.ZodTypeAny;\n },\n) {\n return servicem8.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeServicem8Tool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,UAAU,OAAO;EACtB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,qBAAqB,MAAM,KAAgC,CAAC;EAC5F;CACF,CAAC;AACH"}
1
+ {"version":3,"file":"action.cjs","names":["servicem8","executeServicem8Tool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { servicem8 } from \"./app\";\nimport { executeServicem8Tool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return servicem8.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executeServicem8Tool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,UAAU,OAAO;EACtB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,qBAAqB,MAAM,KAAgC,CAAC;EAC5F;CACF,CAAC;AACH"}
@@ -1 +1 @@
1
- {"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { servicem8 } from \"./app\";\nimport { executeServicem8Tool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: z.ZodTypeAny;\n output: z.ZodTypeAny;\n },\n) {\n return servicem8.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeServicem8Tool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,UAAU,OAAO;EACtB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,qBAAqB,MAAM,KAAgC,CAAC;EAC5F;CACF,CAAC;AACH"}
1
+ {"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { servicem8 } from \"./app\";\nimport { executeServicem8Tool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return servicem8.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executeServicem8Tool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,UAAU,OAAO;EACtB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,qBAAqB,MAAM,KAAgC,CAAC;EAC5F;CACF,CAAC;AACH"}
@@ -14,8 +14,8 @@ const Servicem8CreateJobNoteInput = zod.z.object({
14
14
  const Servicem8CreateJobNoteOutput = zod.z.object({
15
15
  message: zod.z.string().describe("API response message. Typically 'OK' on success.").nullable().optional(),
16
16
  errorCode: zod.z.number().int().describe("API error code. 0 indicates success, non-zero indicates an error.").nullable().optional(),
17
- record_uuid: zod.z.string().describe("UUID of the newly created note record (from x-record-uuid response header).")
18
- }).describe("Response model for a newly created ServiceM8 Job Note.");
17
+ record_uuid: zod.z.string().describe("UUID of the newly created note record (from x-record-uuid response header).").nullable()
18
+ }).passthrough().describe("Response model for a newly created ServiceM8 Job Note.");
19
19
  const servicem8CreateJobNote = require_action.action("SERVICEM8_CREATE_JOB_NOTE", {
20
20
  slug: "servicem8-create-job-note",
21
21
  name: "ServiceM8 Create Job Note",
@@ -1 +1 @@
1
- {"version":3,"file":"create-job-note.cjs","names":["z","action"],"sources":["../../src/actions/create-job-note.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8CreateJobNoteInput: z.ZodTypeAny = z.object({\n note: z.string().describe(\"Content of the note.\"),\n uuid: z.string().describe(\"Unique identifier for this note record. If omitted, a UUID will be generated.\").optional(),\n active: z.number().int().default(1).describe(\"Record active flag: 1 = active (default), 0 = deleted.\").optional(),\n create_date: z.string().describe(\"Timestamp when the note was created (format: YYYY-MM-DD HH:MM:SS). Server sets automatically if omitted.\").optional(),\n related_object: z.string().default(\"job\").describe(\"Type of the related object. Defaults to 'job' for job notes. Other possible values may include 'company'.\").optional(),\n action_required: z.string().describe(\"Optional follow-up action required description.\").optional(),\n related_object_uuid: z.string().describe(\"UUID of the related job.\"),\n action_completed_by_staff_uuid: z.string().describe(\"UUID of staff member who completed the required action.\").optional(),\n}).describe(\"Request model for creating a new ServiceM8 Job Note.\");\nexport const Servicem8CreateJobNoteOutput: z.ZodTypeAny = z.object({\n message: z.string().describe(\"API response message. Typically 'OK' on success.\").nullable().optional(),\n errorCode: z.number().int().describe(\"API error code. 0 indicates success, non-zero indicates an error.\").nullable().optional(),\n record_uuid: z.string().describe(\"UUID of the newly created note record (from x-record-uuid response header).\"),\n}).describe(\"Response model for a newly created ServiceM8 Job Note.\");\n\nexport const servicem8CreateJobNote = action(\"SERVICEM8_CREATE_JOB_NOTE\", {\n slug: \"servicem8-create-job-note\",\n name: \"ServiceM8 Create Job Note\",\n description: \"Create a new job note in ServiceM8. Requires the job's UUID (related_object_uuid) and the note content. Returns the UUID of the created note record. Use this to add comments, updates, or action items to a specific job.\",\n input: Servicem8CreateJobNoteInput,\n output: Servicem8CreateJobNoteOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA4CA,IAAAA,EAAE,OAAO;CAChE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;CAChD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;CACpH,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CAChH,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0GAA0G,CAAC,CAAC,SAAS;CACtJ,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,2GAA2G,CAAC,CAAC,SAAS;CACzK,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CACjG,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;CACnE,gCAAgCA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;AAC1H,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAa,+BAA6CA,IAAAA,EAAE,OAAO;CACjE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9H,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E;AAChH,CAAC,CAAC,CAAC,SAAS,wDAAwD;AAEpE,MAAa,yBAAyBC,eAAAA,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-job-note.cjs","names":["z","action"],"sources":["../../src/actions/create-job-note.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8CreateJobNoteInput = z.object({\n note: z.string().describe(\"Content of the note.\"),\n uuid: z.string().describe(\"Unique identifier for this note record. If omitted, a UUID will be generated.\").optional(),\n active: z.number().int().default(1).describe(\"Record active flag: 1 = active (default), 0 = deleted.\").optional(),\n create_date: z.string().describe(\"Timestamp when the note was created (format: YYYY-MM-DD HH:MM:SS). Server sets automatically if omitted.\").optional(),\n related_object: z.string().default(\"job\").describe(\"Type of the related object. Defaults to 'job' for job notes. Other possible values may include 'company'.\").optional(),\n action_required: z.string().describe(\"Optional follow-up action required description.\").optional(),\n related_object_uuid: z.string().describe(\"UUID of the related job.\"),\n action_completed_by_staff_uuid: z.string().describe(\"UUID of staff member who completed the required action.\").optional(),\n}).describe(\"Request model for creating a new ServiceM8 Job Note.\");\nexport const Servicem8CreateJobNoteOutput = z.object({\n message: z.string().describe(\"API response message. Typically 'OK' on success.\").nullable().optional(),\n errorCode: z.number().int().describe(\"API error code. 0 indicates success, non-zero indicates an error.\").nullable().optional(),\n record_uuid: z.string().describe(\"UUID of the newly created note record (from x-record-uuid response header).\").nullable(),\n}).passthrough().describe(\"Response model for a newly created ServiceM8 Job Note.\");\n\nexport const servicem8CreateJobNote = action(\"SERVICEM8_CREATE_JOB_NOTE\", {\n slug: \"servicem8-create-job-note\",\n name: \"ServiceM8 Create Job Note\",\n description: \"Create a new job note in ServiceM8. Requires the job's UUID (related_object_uuid) and the note content. Returns the UUID of the created note record. Use this to add comments, updates, or action items to a specific job.\",\n input: Servicem8CreateJobNoteInput,\n output: Servicem8CreateJobNoteOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;CAChD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;CACpH,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CAChH,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0GAA0G,CAAC,CAAC,SAAS;CACtJ,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,2GAA2G,CAAC,CAAC,SAAS;CACzK,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CACjG,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;CACnE,gCAAgCA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;AAC1H,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9H,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;AAC3H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wDAAwD;AAElF,MAAa,yBAAyBC,eAAAA,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,31 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/create-job-note.d.ts
4
- declare const Servicem8CreateJobNoteInput: z.ZodTypeAny;
5
- declare const Servicem8CreateJobNoteOutput: z.ZodTypeAny;
6
- declare const servicem8CreateJobNote: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const Servicem8CreateJobNoteInput: z.ZodObject<{
5
+ note: z.ZodString;
6
+ uuid: z.ZodOptional<z.ZodString>;
7
+ active: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
8
+ create_date: z.ZodOptional<z.ZodString>;
9
+ related_object: z.ZodOptional<z.ZodDefault<z.ZodString>>;
10
+ action_required: z.ZodOptional<z.ZodString>;
11
+ related_object_uuid: z.ZodString;
12
+ action_completed_by_staff_uuid: z.ZodOptional<z.ZodString>;
13
+ }, z.core.$strip>;
14
+ declare const Servicem8CreateJobNoteOutput: z.ZodObject<{
15
+ message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ errorCode: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
17
+ record_uuid: z.ZodNullable<z.ZodString>;
18
+ }, z.core.$loose>;
19
+ declare const servicem8CreateJobNote: import("@keystrokehq/action").WorkflowActionDefinition<{
20
+ note: string;
21
+ related_object_uuid: string;
22
+ uuid?: string | undefined;
23
+ active?: number | undefined;
24
+ create_date?: string | undefined;
25
+ related_object?: string | undefined;
26
+ action_required?: string | undefined;
27
+ action_completed_by_staff_uuid?: string | undefined;
28
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
29
  //#endregion
8
30
  export { servicem8CreateJobNote };
9
31
  //# sourceMappingURL=create-job-note.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-job-note.d.cts","names":[],"sources":["../../src/actions/create-job-note.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UASuB;AAAA,cACtD,4BAAA,EAA8B,CAAA,CAAE,UAIwB;AAAA,cAExD,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"create-job-note.d.cts","names":[],"sources":["../../src/actions/create-job-note.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;cAU3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;cAM5B,sBAAA,gCAAsB,wBAAA"}
@@ -1,9 +1,31 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/create-job-note.d.ts
4
- declare const Servicem8CreateJobNoteInput: z.ZodTypeAny;
5
- declare const Servicem8CreateJobNoteOutput: z.ZodTypeAny;
6
- declare const servicem8CreateJobNote: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const Servicem8CreateJobNoteInput: z.ZodObject<{
5
+ note: z.ZodString;
6
+ uuid: z.ZodOptional<z.ZodString>;
7
+ active: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
8
+ create_date: z.ZodOptional<z.ZodString>;
9
+ related_object: z.ZodOptional<z.ZodDefault<z.ZodString>>;
10
+ action_required: z.ZodOptional<z.ZodString>;
11
+ related_object_uuid: z.ZodString;
12
+ action_completed_by_staff_uuid: z.ZodOptional<z.ZodString>;
13
+ }, z.core.$strip>;
14
+ declare const Servicem8CreateJobNoteOutput: z.ZodObject<{
15
+ message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ errorCode: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
17
+ record_uuid: z.ZodNullable<z.ZodString>;
18
+ }, z.core.$loose>;
19
+ declare const servicem8CreateJobNote: import("@keystrokehq/action").WorkflowActionDefinition<{
20
+ note: string;
21
+ related_object_uuid: string;
22
+ uuid?: string | undefined;
23
+ active?: number | undefined;
24
+ create_date?: string | undefined;
25
+ related_object?: string | undefined;
26
+ action_required?: string | undefined;
27
+ action_completed_by_staff_uuid?: string | undefined;
28
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
29
  //#endregion
8
30
  export { servicem8CreateJobNote };
9
31
  //# sourceMappingURL=create-job-note.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-job-note.d.mts","names":[],"sources":["../../src/actions/create-job-note.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UASuB;AAAA,cACtD,4BAAA,EAA8B,CAAA,CAAE,UAIwB;AAAA,cAExD,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"create-job-note.d.mts","names":[],"sources":["../../src/actions/create-job-note.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;cAU3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;cAM5B,sBAAA,gCAAsB,wBAAA"}
@@ -17,8 +17,8 @@ const servicem8CreateJobNote = action("SERVICEM8_CREATE_JOB_NOTE", {
17
17
  output: z.object({
18
18
  message: z.string().describe("API response message. Typically 'OK' on success.").nullable().optional(),
19
19
  errorCode: z.number().int().describe("API error code. 0 indicates success, non-zero indicates an error.").nullable().optional(),
20
- record_uuid: z.string().describe("UUID of the newly created note record (from x-record-uuid response header).")
21
- }).describe("Response model for a newly created ServiceM8 Job Note.")
20
+ record_uuid: z.string().describe("UUID of the newly created note record (from x-record-uuid response header).").nullable()
21
+ }).passthrough().describe("Response model for a newly created ServiceM8 Job Note.")
22
22
  });
23
23
  //#endregion
24
24
  export { servicem8CreateJobNote };
@@ -1 +1 @@
1
- {"version":3,"file":"create-job-note.mjs","names":[],"sources":["../../src/actions/create-job-note.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8CreateJobNoteInput: z.ZodTypeAny = z.object({\n note: z.string().describe(\"Content of the note.\"),\n uuid: z.string().describe(\"Unique identifier for this note record. If omitted, a UUID will be generated.\").optional(),\n active: z.number().int().default(1).describe(\"Record active flag: 1 = active (default), 0 = deleted.\").optional(),\n create_date: z.string().describe(\"Timestamp when the note was created (format: YYYY-MM-DD HH:MM:SS). Server sets automatically if omitted.\").optional(),\n related_object: z.string().default(\"job\").describe(\"Type of the related object. Defaults to 'job' for job notes. Other possible values may include 'company'.\").optional(),\n action_required: z.string().describe(\"Optional follow-up action required description.\").optional(),\n related_object_uuid: z.string().describe(\"UUID of the related job.\"),\n action_completed_by_staff_uuid: z.string().describe(\"UUID of staff member who completed the required action.\").optional(),\n}).describe(\"Request model for creating a new ServiceM8 Job Note.\");\nexport const Servicem8CreateJobNoteOutput: z.ZodTypeAny = z.object({\n message: z.string().describe(\"API response message. Typically 'OK' on success.\").nullable().optional(),\n errorCode: z.number().int().describe(\"API error code. 0 indicates success, non-zero indicates an error.\").nullable().optional(),\n record_uuid: z.string().describe(\"UUID of the newly created note record (from x-record-uuid response header).\"),\n}).describe(\"Response model for a newly created ServiceM8 Job Note.\");\n\nexport const servicem8CreateJobNote = action(\"SERVICEM8_CREATE_JOB_NOTE\", {\n slug: \"servicem8-create-job-note\",\n name: \"ServiceM8 Create Job Note\",\n description: \"Create a new job note in ServiceM8. Requires the job's UUID (related_object_uuid) and the note content. Returns the UUID of the created note record. Use this to add comments, updates, or action items to a specific job.\",\n input: Servicem8CreateJobNoteInput,\n output: Servicem8CreateJobNoteOutput,\n});\n"],"mappings":";;AAoBA,MAAa,yBAAyB,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OApBuD,EAAE,OAAO;EAChE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;EAChD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;EACpH,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;EAChH,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,0GAA0G,CAAC,CAAC,SAAS;EACtJ,gBAAgB,EAAE,OAAO,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,2GAA2G,CAAC,CAAC,SAAS;EACzK,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;EACjG,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;EACnE,gCAAgC,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CAC1H,CAAC,CAAC,CAAC,SAAS,sDAWH;CACP,QAXwD,EAAE,OAAO;EACjE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrG,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9H,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E;CAChH,CAAC,CAAC,CAAC,SAAS,wDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"create-job-note.mjs","names":[],"sources":["../../src/actions/create-job-note.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8CreateJobNoteInput = z.object({\n note: z.string().describe(\"Content of the note.\"),\n uuid: z.string().describe(\"Unique identifier for this note record. If omitted, a UUID will be generated.\").optional(),\n active: z.number().int().default(1).describe(\"Record active flag: 1 = active (default), 0 = deleted.\").optional(),\n create_date: z.string().describe(\"Timestamp when the note was created (format: YYYY-MM-DD HH:MM:SS). Server sets automatically if omitted.\").optional(),\n related_object: z.string().default(\"job\").describe(\"Type of the related object. Defaults to 'job' for job notes. Other possible values may include 'company'.\").optional(),\n action_required: z.string().describe(\"Optional follow-up action required description.\").optional(),\n related_object_uuid: z.string().describe(\"UUID of the related job.\"),\n action_completed_by_staff_uuid: z.string().describe(\"UUID of staff member who completed the required action.\").optional(),\n}).describe(\"Request model for creating a new ServiceM8 Job Note.\");\nexport const Servicem8CreateJobNoteOutput = z.object({\n message: z.string().describe(\"API response message. Typically 'OK' on success.\").nullable().optional(),\n errorCode: z.number().int().describe(\"API error code. 0 indicates success, non-zero indicates an error.\").nullable().optional(),\n record_uuid: z.string().describe(\"UUID of the newly created note record (from x-record-uuid response header).\").nullable(),\n}).passthrough().describe(\"Response model for a newly created ServiceM8 Job Note.\");\n\nexport const servicem8CreateJobNote = action(\"SERVICEM8_CREATE_JOB_NOTE\", {\n slug: \"servicem8-create-job-note\",\n name: \"ServiceM8 Create Job Note\",\n description: \"Create a new job note in ServiceM8. Requires the job's UUID (related_object_uuid) and the note content. Returns the UUID of the created note record. Use this to add comments, updates, or action items to a specific job.\",\n input: Servicem8CreateJobNoteInput,\n output: Servicem8CreateJobNoteOutput,\n});\n"],"mappings":";;AAoBA,MAAa,yBAAyB,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OApByC,EAAE,OAAO;EAClD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;EAChD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;EACpH,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;EAChH,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,0GAA0G,CAAC,CAAC,SAAS;EACtJ,gBAAgB,EAAE,OAAO,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,2GAA2G,CAAC,CAAC,SAAS;EACzK,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;EACjG,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;EACnE,gCAAgC,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CAC1H,CAAC,CAAC,CAAC,SAAS,sDAWH;CACP,QAX0C,EAAE,OAAO;EACnD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrG,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9H,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CAC3H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wDAOhB;AACV,CAAC"}
@@ -17,8 +17,8 @@ const Servicem8CreateJobPaymentInput = zod.z.object({
17
17
  const Servicem8CreateJobPaymentOutput = zod.z.object({
18
18
  message: zod.z.string().describe("API response message. Typically 'OK' on success.").nullable().optional(),
19
19
  errorCode: zod.z.number().int().describe("API error code. 0 indicates success.").nullable().optional(),
20
- record_uuid: zod.z.string().describe("UUID of the newly created job payment record (from x-record-uuid response header).")
21
- }).describe("Response model for a newly created ServiceM8 Job Payment.");
20
+ record_uuid: zod.z.string().describe("UUID of the newly created job payment record (from x-record-uuid response header).").nullable()
21
+ }).passthrough().describe("Response model for a newly created ServiceM8 Job Payment.");
22
22
  const servicem8CreateJobPayment = require_action.action("SERVICEM8_CREATE_JOB_PAYMENT", {
23
23
  slug: "servicem8-create-job-payment",
24
24
  name: "ServiceM8 Create Job Payment",
@@ -1 +1 @@
1
- {"version":3,"file":"create-job-payment.cjs","names":["z","action"],"sources":["../../src/actions/create-job-payment.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8CreateJobPaymentInput: z.ZodTypeAny = z.object({\n note: z.string().describe(\"Additional notes or comments regarding the payment.\").optional(),\n uuid: z.string().describe(\"Optional UUID for the payment record. If omitted, a UUID will be auto-generated by the server.\").optional(),\n active: z.number().int().default(1).describe(\"Record active flag: 1 = active (default), 0 = archived/deleted.\").optional(),\n amount: z.string().describe(\"Amount of the payment as a decimal string (e.g., '100.00', '50.50'). Use string format to preserve decimal precision.\"),\n method: z.string().describe(\"Payment method used. Common values: 'cash', 'credit_card', 'eftpos', 'cheque', 'bank_transfer', 'online'.\"),\n job_uuid: z.string().describe(\"UUID of the job to record the payment against. Obtain this from list_all_jobs or create_job actions.\"),\n edit_date: z.string().describe(\"Timestamp of last edit in 'YYYY-MM-DD HH:MM:SS' format. Usually auto-set by the server if omitted.\").optional(),\n timestamp: z.string().describe(\"Timestamp when the payment was received in 'YYYY-MM-DD HH:MM:SS' format.\"),\n is_deposit: z.number().int().describe(\"Deposit flag: 1 = this payment is a deposit, 0 = regular payment (default if omitted).\").optional(),\n attachment_uuid: z.string().describe(\"UUID of any attachment (e.g., receipt image) related to the payment.\").optional(),\n actioned_by_uuid: z.string().describe(\"UUID of the staff member who recorded/processed the payment. Obtain from staff endpoints. If omitted, may default to the authenticated user.\").optional(),\n}).describe(\"Request model for creating a new ServiceM8 Job Payment.\");\nexport const Servicem8CreateJobPaymentOutput: z.ZodTypeAny = z.object({\n message: z.string().describe(\"API response message. Typically 'OK' on success.\").nullable().optional(),\n errorCode: z.number().int().describe(\"API error code. 0 indicates success.\").nullable().optional(),\n record_uuid: z.string().describe(\"UUID of the newly created job payment record (from x-record-uuid response header).\"),\n}).describe(\"Response model for a newly created ServiceM8 Job Payment.\");\n\nexport const servicem8CreateJobPayment = action(\"SERVICEM8_CREATE_JOB_PAYMENT\", {\n slug: \"servicem8-create-job-payment\",\n name: \"ServiceM8 Create Job Payment\",\n description: \"Tool to create a new job payment in ServiceM8. Use when you have collected payment details and need to record payment against a job. Example: \\\"Create a 100.00 cash payment for job 123e4567-e89b-12d3-a456-426614174000 at 2023-01-01 13:00:00.\\\"\",\n input: Servicem8CreateJobPaymentInput,\n output: Servicem8CreateJobPaymentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAA+CA,IAAAA,EAAE,OAAO;CACnE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CAC1F,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gGAAgG,CAAC,CAAC,SAAS;CACrI,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CACzH,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uHAAuH;CACnJ,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2GAA2G;CACvI,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sGAAsG;CACpI,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;CAC9I,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E;CACzG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS;CACzI,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;CACtH,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8IAA8I,CAAC,CAAC,SAAS;AACjM,CAAC,CAAC,CAAC,SAAS,yDAAyD;AACrE,MAAa,kCAAgDA,IAAAA,EAAE,OAAO;CACpE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF;AACvH,CAAC,CAAC,CAAC,SAAS,2DAA2D;AAEvE,MAAa,4BAA4BC,eAAAA,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-job-payment.cjs","names":["z","action"],"sources":["../../src/actions/create-job-payment.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8CreateJobPaymentInput = z.object({\n note: z.string().describe(\"Additional notes or comments regarding the payment.\").optional(),\n uuid: z.string().describe(\"Optional UUID for the payment record. If omitted, a UUID will be auto-generated by the server.\").optional(),\n active: z.number().int().default(1).describe(\"Record active flag: 1 = active (default), 0 = archived/deleted.\").optional(),\n amount: z.string().describe(\"Amount of the payment as a decimal string (e.g., '100.00', '50.50'). Use string format to preserve decimal precision.\"),\n method: z.string().describe(\"Payment method used. Common values: 'cash', 'credit_card', 'eftpos', 'cheque', 'bank_transfer', 'online'.\"),\n job_uuid: z.string().describe(\"UUID of the job to record the payment against. Obtain this from list_all_jobs or create_job actions.\"),\n edit_date: z.string().describe(\"Timestamp of last edit in 'YYYY-MM-DD HH:MM:SS' format. Usually auto-set by the server if omitted.\").optional(),\n timestamp: z.string().describe(\"Timestamp when the payment was received in 'YYYY-MM-DD HH:MM:SS' format.\"),\n is_deposit: z.number().int().describe(\"Deposit flag: 1 = this payment is a deposit, 0 = regular payment (default if omitted).\").optional(),\n attachment_uuid: z.string().describe(\"UUID of any attachment (e.g., receipt image) related to the payment.\").optional(),\n actioned_by_uuid: z.string().describe(\"UUID of the staff member who recorded/processed the payment. Obtain from staff endpoints. If omitted, may default to the authenticated user.\").optional(),\n}).describe(\"Request model for creating a new ServiceM8 Job Payment.\");\nexport const Servicem8CreateJobPaymentOutput = z.object({\n message: z.string().describe(\"API response message. Typically 'OK' on success.\").nullable().optional(),\n errorCode: z.number().int().describe(\"API error code. 0 indicates success.\").nullable().optional(),\n record_uuid: z.string().describe(\"UUID of the newly created job payment record (from x-record-uuid response header).\").nullable(),\n}).passthrough().describe(\"Response model for a newly created ServiceM8 Job Payment.\");\n\nexport const servicem8CreateJobPayment = action(\"SERVICEM8_CREATE_JOB_PAYMENT\", {\n slug: \"servicem8-create-job-payment\",\n name: \"ServiceM8 Create Job Payment\",\n description: \"Tool to create a new job payment in ServiceM8. Use when you have collected payment details and need to record payment against a job. Example: \\\"Create a 100.00 cash payment for job 123e4567-e89b-12d3-a456-426614174000 at 2023-01-01 13:00:00.\\\"\",\n input: Servicem8CreateJobPaymentInput,\n output: Servicem8CreateJobPaymentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CAC1F,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gGAAgG,CAAC,CAAC,SAAS;CACrI,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CACzH,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uHAAuH;CACnJ,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2GAA2G;CACvI,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sGAAsG;CACpI,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;CAC9I,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E;CACzG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS;CACzI,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;CACtH,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8IAA8I,CAAC,CAAC,SAAS;AACjM,CAAC,CAAC,CAAC,SAAS,yDAAyD;AACrE,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS;AAClI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2DAA2D;AAErF,MAAa,4BAA4BC,eAAAA,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,37 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/create-job-payment.d.ts
4
- declare const Servicem8CreateJobPaymentInput: z.ZodTypeAny;
5
- declare const Servicem8CreateJobPaymentOutput: z.ZodTypeAny;
6
- declare const servicem8CreateJobPayment: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const Servicem8CreateJobPaymentInput: z.ZodObject<{
5
+ note: z.ZodOptional<z.ZodString>;
6
+ uuid: z.ZodOptional<z.ZodString>;
7
+ active: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
8
+ amount: z.ZodString;
9
+ method: z.ZodString;
10
+ job_uuid: z.ZodString;
11
+ edit_date: z.ZodOptional<z.ZodString>;
12
+ timestamp: z.ZodString;
13
+ is_deposit: z.ZodOptional<z.ZodNumber>;
14
+ attachment_uuid: z.ZodOptional<z.ZodString>;
15
+ actioned_by_uuid: z.ZodOptional<z.ZodString>;
16
+ }, z.core.$strip>;
17
+ declare const Servicem8CreateJobPaymentOutput: z.ZodObject<{
18
+ message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ errorCode: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
20
+ record_uuid: z.ZodNullable<z.ZodString>;
21
+ }, z.core.$loose>;
22
+ declare const servicem8CreateJobPayment: import("@keystrokehq/action").WorkflowActionDefinition<{
23
+ amount: string;
24
+ method: string;
25
+ job_uuid: string;
26
+ timestamp: string;
27
+ note?: string | undefined;
28
+ uuid?: string | undefined;
29
+ active?: number | undefined;
30
+ edit_date?: string | undefined;
31
+ is_deposit?: number | undefined;
32
+ attachment_uuid?: string | undefined;
33
+ actioned_by_uuid?: string | undefined;
34
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
35
  //#endregion
8
36
  export { servicem8CreateJobPayment };
9
37
  //# sourceMappingURL=create-job-payment.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-job-payment.d.cts","names":[],"sources":["../../src/actions/create-job-payment.ts"],"mappings":";;;cAIa,8BAAA,EAAgC,CAAA,CAAE,UAYuB;AAAA,cACzD,+BAAA,EAAiC,CAAA,CAAE,UAIwB;AAAA,cAE3D,yBAAA,gCAAyB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"create-job-payment.d.cts","names":[],"sources":["../../src/actions/create-job-payment.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAa9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;cAM/B,yBAAA,gCAAyB,wBAAA"}
@@ -1,9 +1,37 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/create-job-payment.d.ts
4
- declare const Servicem8CreateJobPaymentInput: z.ZodTypeAny;
5
- declare const Servicem8CreateJobPaymentOutput: z.ZodTypeAny;
6
- declare const servicem8CreateJobPayment: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const Servicem8CreateJobPaymentInput: z.ZodObject<{
5
+ note: z.ZodOptional<z.ZodString>;
6
+ uuid: z.ZodOptional<z.ZodString>;
7
+ active: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
8
+ amount: z.ZodString;
9
+ method: z.ZodString;
10
+ job_uuid: z.ZodString;
11
+ edit_date: z.ZodOptional<z.ZodString>;
12
+ timestamp: z.ZodString;
13
+ is_deposit: z.ZodOptional<z.ZodNumber>;
14
+ attachment_uuid: z.ZodOptional<z.ZodString>;
15
+ actioned_by_uuid: z.ZodOptional<z.ZodString>;
16
+ }, z.core.$strip>;
17
+ declare const Servicem8CreateJobPaymentOutput: z.ZodObject<{
18
+ message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ errorCode: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
20
+ record_uuid: z.ZodNullable<z.ZodString>;
21
+ }, z.core.$loose>;
22
+ declare const servicem8CreateJobPayment: import("@keystrokehq/action").WorkflowActionDefinition<{
23
+ amount: string;
24
+ method: string;
25
+ job_uuid: string;
26
+ timestamp: string;
27
+ note?: string | undefined;
28
+ uuid?: string | undefined;
29
+ active?: number | undefined;
30
+ edit_date?: string | undefined;
31
+ is_deposit?: number | undefined;
32
+ attachment_uuid?: string | undefined;
33
+ actioned_by_uuid?: string | undefined;
34
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
35
  //#endregion
8
36
  export { servicem8CreateJobPayment };
9
37
  //# sourceMappingURL=create-job-payment.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-job-payment.d.mts","names":[],"sources":["../../src/actions/create-job-payment.ts"],"mappings":";;;cAIa,8BAAA,EAAgC,CAAA,CAAE,UAYuB;AAAA,cACzD,+BAAA,EAAiC,CAAA,CAAE,UAIwB;AAAA,cAE3D,yBAAA,gCAAyB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"create-job-payment.d.mts","names":[],"sources":["../../src/actions/create-job-payment.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAa9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;cAM/B,yBAAA,gCAAyB,wBAAA"}
@@ -20,8 +20,8 @@ const servicem8CreateJobPayment = action("SERVICEM8_CREATE_JOB_PAYMENT", {
20
20
  output: z.object({
21
21
  message: z.string().describe("API response message. Typically 'OK' on success.").nullable().optional(),
22
22
  errorCode: z.number().int().describe("API error code. 0 indicates success.").nullable().optional(),
23
- record_uuid: z.string().describe("UUID of the newly created job payment record (from x-record-uuid response header).")
24
- }).describe("Response model for a newly created ServiceM8 Job Payment.")
23
+ record_uuid: z.string().describe("UUID of the newly created job payment record (from x-record-uuid response header).").nullable()
24
+ }).passthrough().describe("Response model for a newly created ServiceM8 Job Payment.")
25
25
  });
26
26
  //#endregion
27
27
  export { servicem8CreateJobPayment };
@@ -1 +1 @@
1
- {"version":3,"file":"create-job-payment.mjs","names":[],"sources":["../../src/actions/create-job-payment.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8CreateJobPaymentInput: z.ZodTypeAny = z.object({\n note: z.string().describe(\"Additional notes or comments regarding the payment.\").optional(),\n uuid: z.string().describe(\"Optional UUID for the payment record. If omitted, a UUID will be auto-generated by the server.\").optional(),\n active: z.number().int().default(1).describe(\"Record active flag: 1 = active (default), 0 = archived/deleted.\").optional(),\n amount: z.string().describe(\"Amount of the payment as a decimal string (e.g., '100.00', '50.50'). Use string format to preserve decimal precision.\"),\n method: z.string().describe(\"Payment method used. Common values: 'cash', 'credit_card', 'eftpos', 'cheque', 'bank_transfer', 'online'.\"),\n job_uuid: z.string().describe(\"UUID of the job to record the payment against. Obtain this from list_all_jobs or create_job actions.\"),\n edit_date: z.string().describe(\"Timestamp of last edit in 'YYYY-MM-DD HH:MM:SS' format. Usually auto-set by the server if omitted.\").optional(),\n timestamp: z.string().describe(\"Timestamp when the payment was received in 'YYYY-MM-DD HH:MM:SS' format.\"),\n is_deposit: z.number().int().describe(\"Deposit flag: 1 = this payment is a deposit, 0 = regular payment (default if omitted).\").optional(),\n attachment_uuid: z.string().describe(\"UUID of any attachment (e.g., receipt image) related to the payment.\").optional(),\n actioned_by_uuid: z.string().describe(\"UUID of the staff member who recorded/processed the payment. Obtain from staff endpoints. If omitted, may default to the authenticated user.\").optional(),\n}).describe(\"Request model for creating a new ServiceM8 Job Payment.\");\nexport const Servicem8CreateJobPaymentOutput: z.ZodTypeAny = z.object({\n message: z.string().describe(\"API response message. Typically 'OK' on success.\").nullable().optional(),\n errorCode: z.number().int().describe(\"API error code. 0 indicates success.\").nullable().optional(),\n record_uuid: z.string().describe(\"UUID of the newly created job payment record (from x-record-uuid response header).\"),\n}).describe(\"Response model for a newly created ServiceM8 Job Payment.\");\n\nexport const servicem8CreateJobPayment = action(\"SERVICEM8_CREATE_JOB_PAYMENT\", {\n slug: \"servicem8-create-job-payment\",\n name: \"ServiceM8 Create Job Payment\",\n description: \"Tool to create a new job payment in ServiceM8. Use when you have collected payment details and need to record payment against a job. Example: \\\"Create a 100.00 cash payment for job 123e4567-e89b-12d3-a456-426614174000 at 2023-01-01 13:00:00.\\\"\",\n input: Servicem8CreateJobPaymentInput,\n output: Servicem8CreateJobPaymentOutput,\n});\n"],"mappings":";;AAuBA,MAAa,4BAA4B,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAvB0D,EAAE,OAAO;EACnE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;EAC1F,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gGAAgG,CAAC,CAAC,SAAS;EACrI,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;EACzH,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,uHAAuH;EACnJ,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,2GAA2G;EACvI,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,sGAAsG;EACpI,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;EAC9I,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E;EACzG,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS;EACzI,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;EACtH,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,8IAA8I,CAAC,CAAC,SAAS;CACjM,CAAC,CAAC,CAAC,SAAS,yDAWH;CACP,QAX2D,EAAE,OAAO;EACpE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrG,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF;CACvH,CAAC,CAAC,CAAC,SAAS,2DAOF;AACV,CAAC"}
1
+ {"version":3,"file":"create-job-payment.mjs","names":[],"sources":["../../src/actions/create-job-payment.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8CreateJobPaymentInput = z.object({\n note: z.string().describe(\"Additional notes or comments regarding the payment.\").optional(),\n uuid: z.string().describe(\"Optional UUID for the payment record. If omitted, a UUID will be auto-generated by the server.\").optional(),\n active: z.number().int().default(1).describe(\"Record active flag: 1 = active (default), 0 = archived/deleted.\").optional(),\n amount: z.string().describe(\"Amount of the payment as a decimal string (e.g., '100.00', '50.50'). Use string format to preserve decimal precision.\"),\n method: z.string().describe(\"Payment method used. Common values: 'cash', 'credit_card', 'eftpos', 'cheque', 'bank_transfer', 'online'.\"),\n job_uuid: z.string().describe(\"UUID of the job to record the payment against. Obtain this from list_all_jobs or create_job actions.\"),\n edit_date: z.string().describe(\"Timestamp of last edit in 'YYYY-MM-DD HH:MM:SS' format. Usually auto-set by the server if omitted.\").optional(),\n timestamp: z.string().describe(\"Timestamp when the payment was received in 'YYYY-MM-DD HH:MM:SS' format.\"),\n is_deposit: z.number().int().describe(\"Deposit flag: 1 = this payment is a deposit, 0 = regular payment (default if omitted).\").optional(),\n attachment_uuid: z.string().describe(\"UUID of any attachment (e.g., receipt image) related to the payment.\").optional(),\n actioned_by_uuid: z.string().describe(\"UUID of the staff member who recorded/processed the payment. Obtain from staff endpoints. If omitted, may default to the authenticated user.\").optional(),\n}).describe(\"Request model for creating a new ServiceM8 Job Payment.\");\nexport const Servicem8CreateJobPaymentOutput = z.object({\n message: z.string().describe(\"API response message. Typically 'OK' on success.\").nullable().optional(),\n errorCode: z.number().int().describe(\"API error code. 0 indicates success.\").nullable().optional(),\n record_uuid: z.string().describe(\"UUID of the newly created job payment record (from x-record-uuid response header).\").nullable(),\n}).passthrough().describe(\"Response model for a newly created ServiceM8 Job Payment.\");\n\nexport const servicem8CreateJobPayment = action(\"SERVICEM8_CREATE_JOB_PAYMENT\", {\n slug: \"servicem8-create-job-payment\",\n name: \"ServiceM8 Create Job Payment\",\n description: \"Tool to create a new job payment in ServiceM8. Use when you have collected payment details and need to record payment against a job. Example: \\\"Create a 100.00 cash payment for job 123e4567-e89b-12d3-a456-426614174000 at 2023-01-01 13:00:00.\\\"\",\n input: Servicem8CreateJobPaymentInput,\n output: Servicem8CreateJobPaymentOutput,\n});\n"],"mappings":";;AAuBA,MAAa,4BAA4B,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAvB4C,EAAE,OAAO;EACrD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;EAC1F,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gGAAgG,CAAC,CAAC,SAAS;EACrI,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;EACzH,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,uHAAuH;EACnJ,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,2GAA2G;EACvI,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,sGAAsG;EACpI,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;EAC9I,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E;EACzG,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS;EACzI,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;EACtH,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,8IAA8I,CAAC,CAAC,SAAS;CACjM,CAAC,CAAC,CAAC,SAAS,yDAWH;CACP,QAX6C,EAAE,OAAO;EACtD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrG,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS;CAClI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2DAOhB;AACV,CAAC"}
@@ -21,14 +21,14 @@ const Servicem8CreateJobsInput = zod.z.object({
21
21
  }).describe("Request parameters for creating a new Job in ServiceM8.");
22
22
  const Servicem8CreateJobs_JobSchema = zod.z.object({
23
23
  date: zod.z.string().describe("Date the job was created or scheduled.").nullable().optional(),
24
- uuid: zod.z.string().describe("Unique identifier for this job record."),
25
- active: zod.z.number().int().describe("Active flag (1 = active, 0 = deleted)."),
24
+ uuid: zod.z.string().describe("Unique identifier for this job record.").nullable(),
25
+ active: zod.z.number().int().describe("Active flag (1 = active, 0 = deleted).").nullable(),
26
26
  status: zod.z.enum([
27
27
  "Quote",
28
28
  "Work Order",
29
29
  "Unsuccessful",
30
30
  "Completed"
31
- ]).describe("Current status of the job."),
31
+ ]).describe("Current status of the job.").nullable(),
32
32
  job_address: zod.z.string().describe("Address where the job is performed.").nullable().optional(),
33
33
  company_uuid: zod.z.string().describe("UUID of the associated company.").nullable().optional(),
34
34
  job_description: zod.z.string().describe("Description of the job.").nullable().optional(),
@@ -36,8 +36,8 @@ const Servicem8CreateJobs_JobSchema = zod.z.object({
36
36
  }).passthrough().describe("Partial Schema for a ServiceM8 Job record.\nExtra fields are allowed.");
37
37
  const Servicem8CreateJobsOutput = zod.z.object({
38
38
  job: Servicem8CreateJobs_JobSchema.nullable(),
39
- record_uuid: zod.z.string().describe("UUID of the newly created job record (from x-record-uuid header).")
40
- }).describe("Response returned after creating a Job in ServiceM8.");
39
+ record_uuid: zod.z.string().describe("UUID of the newly created job record (from x-record-uuid header).").nullable()
40
+ }).passthrough().describe("Response returned after creating a Job in ServiceM8.");
41
41
  const servicem8CreateJobs = require_action.action("SERVICEM8_CREATE_JOBS", {
42
42
  slug: "servicem8-create-jobs",
43
43
  name: "Create a new Job",
@@ -1 +1 @@
1
- {"version":3,"file":"create-jobs.cjs","names":["z","action"],"sources":["../../src/actions/create-jobs.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8CreateJobsInput: z.ZodTypeAny = z.object({\n date: z.string().describe(\"Date the job is scheduled or created (YYYY-MM-DD).\").optional(),\n active: z.number().int().default(1).describe(\"Active flag (1 = active, 0 = deleted). Defaults to 1.\").optional(),\n badges: z.array(z.string()).describe(\"List of badge UUIDs to apply to this job.\").optional(),\n status: z.enum([\"Quote\", \"Work Order\", \"Unsuccessful\", \"Completed\"]).describe(\"Current status of the job. Controls dispatch board placement.\"),\n queue_uuid: z.string().describe(\"UUID of the queue to assign this job to.\").optional(),\n job_address: z.string().describe(\"Physical address where the job is to be performed.\"),\n company_uuid: z.string().describe(\"UUID of the customer/company associated with this job.\").optional(),\n category_uuid: z.string().describe(\"UUID of the job category.\").optional(),\n job_description: z.string().describe(\"Brief description of the work to be done.\").optional(),\n created_by_staff_uuid: z.string().describe(\"UUID of the staff member creating this job.\").optional(),\n purchase_order_number: z.string().describe(\"Client purchase order reference number.\").optional(),\n}).describe(\"Request parameters for creating a new Job in ServiceM8.\");\nconst Servicem8CreateJobs_JobSchema: z.ZodTypeAny = z.object({\n date: z.string().describe(\"Date the job was created or scheduled.\").nullable().optional(),\n uuid: z.string().describe(\"Unique identifier for this job record.\"),\n active: z.number().int().describe(\"Active flag (1 = active, 0 = deleted).\"),\n status: z.enum([\"Quote\", \"Work Order\", \"Unsuccessful\", \"Completed\"]).describe(\"Current status of the job.\"),\n job_address: z.string().describe(\"Address where the job is performed.\").nullable().optional(),\n company_uuid: z.string().describe(\"UUID of the associated company.\").nullable().optional(),\n job_description: z.string().describe(\"Description of the job.\").nullable().optional(),\n created_by_staff_uuid: z.string().describe(\"UUID of the staff member who created the job.\").nullable().optional(),\n}).passthrough().describe(\"Partial Schema for a ServiceM8 Job record.\\nExtra fields are allowed.\");\nexport const Servicem8CreateJobsOutput: z.ZodTypeAny = z.object({\n job: Servicem8CreateJobs_JobSchema.nullable(),\n record_uuid: z.string().describe(\"UUID of the newly created job record (from x-record-uuid header).\"),\n}).describe(\"Response returned after creating a Job in ServiceM8.\");\n\nexport const servicem8CreateJobs = action(\"SERVICEM8_CREATE_JOBS\", {\n slug: \"servicem8-create-jobs\",\n name: \"Create a new Job\",\n description: \"Tool to create a new Job in ServiceM8. Use when you have gathered all job details and need to push a record. Example: \\\"Create a Quote job for 123 Main St with PO #1234.\\\"\",\n input: Servicem8CreateJobsInput,\n output: Servicem8CreateJobsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAAyCA,IAAAA,EAAE,OAAO;CAC7D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CACzF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAC/G,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAC3F,QAAQA,IAAAA,EAAE,KAAK;EAAC;EAAS;EAAc;EAAgB;CAAW,CAAC,CAAC,CAAC,SAAS,+DAA+D;CAC7I,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACrF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD;CACrF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CACrG,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACzE,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAC3F,uBAAuBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CACnG,uBAAuBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;AACjG,CAAC,CAAC,CAAC,SAAS,yDAAyD;AACrE,MAAM,gCAA8CA,IAAAA,EAAE,OAAO;CAC3D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;CAClE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC;CAC1E,QAAQA,IAAAA,EAAE,KAAK;EAAC;EAAS;EAAc;EAAgB;CAAW,CAAC,CAAC,CAAC,SAAS,4BAA4B;CAC1G,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,uBAAuBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uEAAuE;AACjG,MAAa,4BAA0CA,IAAAA,EAAE,OAAO;CAC9D,KAAK,8BAA8B,SAAS;CAC5C,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE;AACtG,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAElE,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-jobs.cjs","names":["z","action"],"sources":["../../src/actions/create-jobs.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8CreateJobsInput = z.object({\n date: z.string().describe(\"Date the job is scheduled or created (YYYY-MM-DD).\").optional(),\n active: z.number().int().default(1).describe(\"Active flag (1 = active, 0 = deleted). Defaults to 1.\").optional(),\n badges: z.array(z.string()).describe(\"List of badge UUIDs to apply to this job.\").optional(),\n status: z.enum([\"Quote\", \"Work Order\", \"Unsuccessful\", \"Completed\"]).describe(\"Current status of the job. Controls dispatch board placement.\"),\n queue_uuid: z.string().describe(\"UUID of the queue to assign this job to.\").optional(),\n job_address: z.string().describe(\"Physical address where the job is to be performed.\"),\n company_uuid: z.string().describe(\"UUID of the customer/company associated with this job.\").optional(),\n category_uuid: z.string().describe(\"UUID of the job category.\").optional(),\n job_description: z.string().describe(\"Brief description of the work to be done.\").optional(),\n created_by_staff_uuid: z.string().describe(\"UUID of the staff member creating this job.\").optional(),\n purchase_order_number: z.string().describe(\"Client purchase order reference number.\").optional(),\n}).describe(\"Request parameters for creating a new Job in ServiceM8.\");\nconst Servicem8CreateJobs_JobSchema = z.object({\n date: z.string().describe(\"Date the job was created or scheduled.\").nullable().optional(),\n uuid: z.string().describe(\"Unique identifier for this job record.\").nullable(),\n active: z.number().int().describe(\"Active flag (1 = active, 0 = deleted).\").nullable(),\n status: z.enum([\"Quote\", \"Work Order\", \"Unsuccessful\", \"Completed\"]).describe(\"Current status of the job.\").nullable(),\n job_address: z.string().describe(\"Address where the job is performed.\").nullable().optional(),\n company_uuid: z.string().describe(\"UUID of the associated company.\").nullable().optional(),\n job_description: z.string().describe(\"Description of the job.\").nullable().optional(),\n created_by_staff_uuid: z.string().describe(\"UUID of the staff member who created the job.\").nullable().optional(),\n}).passthrough().describe(\"Partial Schema for a ServiceM8 Job record.\\nExtra fields are allowed.\");\nexport const Servicem8CreateJobsOutput = z.object({\n job: Servicem8CreateJobs_JobSchema.nullable(),\n record_uuid: z.string().describe(\"UUID of the newly created job record (from x-record-uuid header).\").nullable(),\n}).passthrough().describe(\"Response returned after creating a Job in ServiceM8.\");\n\nexport const servicem8CreateJobs = action(\"SERVICEM8_CREATE_JOBS\", {\n slug: \"servicem8-create-jobs\",\n name: \"Create a new Job\",\n description: \"Tool to create a new Job in ServiceM8. Use when you have gathered all job details and need to push a record. Example: \\\"Create a Quote job for 123 Main St with PO #1234.\\\"\",\n input: Servicem8CreateJobsInput,\n output: Servicem8CreateJobsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CACzF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAC/G,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAC3F,QAAQA,IAAAA,EAAE,KAAK;EAAC;EAAS;EAAc;EAAgB;CAAW,CAAC,CAAC,CAAC,SAAS,+DAA+D;CAC7I,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACrF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD;CACrF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CACrG,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACzE,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAC3F,uBAAuBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CACnG,uBAAuBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;AACjG,CAAC,CAAC,CAAC,SAAS,yDAAyD;AACrE,MAAM,gCAAgCA,IAAAA,EAAE,OAAO;CAC7C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC7E,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACrF,QAAQA,IAAAA,EAAE,KAAK;EAAC;EAAS;EAAc;EAAgB;CAAW,CAAC,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACrH,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,uBAAuBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uEAAuE;AACjG,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,KAAK,8BAA8B,SAAS;CAC5C,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;AACjH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sDAAsD;AAEhF,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,55 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/create-jobs.d.ts
4
- declare const Servicem8CreateJobsInput: z.ZodTypeAny;
5
- declare const Servicem8CreateJobsOutput: z.ZodTypeAny;
6
- declare const servicem8CreateJobs: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const Servicem8CreateJobsInput: z.ZodObject<{
5
+ date: z.ZodOptional<z.ZodString>;
6
+ active: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
7
+ badges: z.ZodOptional<z.ZodArray<z.ZodString>>;
8
+ status: z.ZodEnum<{
9
+ Quote: "Quote";
10
+ "Work Order": "Work Order";
11
+ Unsuccessful: "Unsuccessful";
12
+ Completed: "Completed";
13
+ }>;
14
+ queue_uuid: z.ZodOptional<z.ZodString>;
15
+ job_address: z.ZodString;
16
+ company_uuid: z.ZodOptional<z.ZodString>;
17
+ category_uuid: z.ZodOptional<z.ZodString>;
18
+ job_description: z.ZodOptional<z.ZodString>;
19
+ created_by_staff_uuid: z.ZodOptional<z.ZodString>;
20
+ purchase_order_number: z.ZodOptional<z.ZodString>;
21
+ }, z.core.$strip>;
22
+ declare const Servicem8CreateJobsOutput: z.ZodObject<{
23
+ job: z.ZodNullable<z.ZodObject<{
24
+ date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
+ uuid: z.ZodNullable<z.ZodString>;
26
+ active: z.ZodNullable<z.ZodNumber>;
27
+ status: z.ZodNullable<z.ZodEnum<{
28
+ Quote: "Quote";
29
+ "Work Order": "Work Order";
30
+ Unsuccessful: "Unsuccessful";
31
+ Completed: "Completed";
32
+ }>>;
33
+ job_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
34
+ company_uuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
35
+ job_description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36
+ created_by_staff_uuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
37
+ }, z.core.$loose>>;
38
+ record_uuid: z.ZodNullable<z.ZodString>;
39
+ }, z.core.$loose>;
40
+ declare const servicem8CreateJobs: import("@keystrokehq/action").WorkflowActionDefinition<{
41
+ status: "Quote" | "Work Order" | "Unsuccessful" | "Completed";
42
+ job_address: string;
43
+ date?: string | undefined;
44
+ active?: number | undefined;
45
+ badges?: string[] | undefined;
46
+ queue_uuid?: string | undefined;
47
+ company_uuid?: string | undefined;
48
+ category_uuid?: string | undefined;
49
+ job_description?: string | undefined;
50
+ created_by_staff_uuid?: string | undefined;
51
+ purchase_order_number?: string | undefined;
52
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
53
  //#endregion
8
54
  export { servicem8CreateJobs };
9
55
  //# sourceMappingURL=create-jobs.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-jobs.d.cts","names":[],"sources":["../../src/actions/create-jobs.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAY6B;AAAA,cAWzD,yBAAA,EAA2B,CAAA,CAAE,UAGyB;AAAA,cAEtD,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"create-jobs.d.cts","names":[],"sources":["../../src/actions/create-jobs.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAuBxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAKzB,mBAAA,gCAAmB,wBAAA"}
@@ -1,9 +1,55 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/create-jobs.d.ts
4
- declare const Servicem8CreateJobsInput: z.ZodTypeAny;
5
- declare const Servicem8CreateJobsOutput: z.ZodTypeAny;
6
- declare const servicem8CreateJobs: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const Servicem8CreateJobsInput: z.ZodObject<{
5
+ date: z.ZodOptional<z.ZodString>;
6
+ active: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
7
+ badges: z.ZodOptional<z.ZodArray<z.ZodString>>;
8
+ status: z.ZodEnum<{
9
+ Quote: "Quote";
10
+ "Work Order": "Work Order";
11
+ Unsuccessful: "Unsuccessful";
12
+ Completed: "Completed";
13
+ }>;
14
+ queue_uuid: z.ZodOptional<z.ZodString>;
15
+ job_address: z.ZodString;
16
+ company_uuid: z.ZodOptional<z.ZodString>;
17
+ category_uuid: z.ZodOptional<z.ZodString>;
18
+ job_description: z.ZodOptional<z.ZodString>;
19
+ created_by_staff_uuid: z.ZodOptional<z.ZodString>;
20
+ purchase_order_number: z.ZodOptional<z.ZodString>;
21
+ }, z.core.$strip>;
22
+ declare const Servicem8CreateJobsOutput: z.ZodObject<{
23
+ job: z.ZodNullable<z.ZodObject<{
24
+ date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
+ uuid: z.ZodNullable<z.ZodString>;
26
+ active: z.ZodNullable<z.ZodNumber>;
27
+ status: z.ZodNullable<z.ZodEnum<{
28
+ Quote: "Quote";
29
+ "Work Order": "Work Order";
30
+ Unsuccessful: "Unsuccessful";
31
+ Completed: "Completed";
32
+ }>>;
33
+ job_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
34
+ company_uuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
35
+ job_description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36
+ created_by_staff_uuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
37
+ }, z.core.$loose>>;
38
+ record_uuid: z.ZodNullable<z.ZodString>;
39
+ }, z.core.$loose>;
40
+ declare const servicem8CreateJobs: import("@keystrokehq/action").WorkflowActionDefinition<{
41
+ status: "Quote" | "Work Order" | "Unsuccessful" | "Completed";
42
+ job_address: string;
43
+ date?: string | undefined;
44
+ active?: number | undefined;
45
+ badges?: string[] | undefined;
46
+ queue_uuid?: string | undefined;
47
+ company_uuid?: string | undefined;
48
+ category_uuid?: string | undefined;
49
+ job_description?: string | undefined;
50
+ created_by_staff_uuid?: string | undefined;
51
+ purchase_order_number?: string | undefined;
52
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
53
  //#endregion
8
54
  export { servicem8CreateJobs };
9
55
  //# sourceMappingURL=create-jobs.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-jobs.d.mts","names":[],"sources":["../../src/actions/create-jobs.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAY6B;AAAA,cAWzD,yBAAA,EAA2B,CAAA,CAAE,UAGyB;AAAA,cAEtD,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"create-jobs.d.mts","names":[],"sources":["../../src/actions/create-jobs.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAuBxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAKzB,mBAAA,gCAAmB,wBAAA"}
@@ -21,14 +21,14 @@ const Servicem8CreateJobsInput = z.object({
21
21
  }).describe("Request parameters for creating a new Job in ServiceM8.");
22
22
  const Servicem8CreateJobs_JobSchema = z.object({
23
23
  date: z.string().describe("Date the job was created or scheduled.").nullable().optional(),
24
- uuid: z.string().describe("Unique identifier for this job record."),
25
- active: z.number().int().describe("Active flag (1 = active, 0 = deleted)."),
24
+ uuid: z.string().describe("Unique identifier for this job record.").nullable(),
25
+ active: z.number().int().describe("Active flag (1 = active, 0 = deleted).").nullable(),
26
26
  status: z.enum([
27
27
  "Quote",
28
28
  "Work Order",
29
29
  "Unsuccessful",
30
30
  "Completed"
31
- ]).describe("Current status of the job."),
31
+ ]).describe("Current status of the job.").nullable(),
32
32
  job_address: z.string().describe("Address where the job is performed.").nullable().optional(),
33
33
  company_uuid: z.string().describe("UUID of the associated company.").nullable().optional(),
34
34
  job_description: z.string().describe("Description of the job.").nullable().optional(),
@@ -41,8 +41,8 @@ const servicem8CreateJobs = action("SERVICEM8_CREATE_JOBS", {
41
41
  input: Servicem8CreateJobsInput,
42
42
  output: z.object({
43
43
  job: Servicem8CreateJobs_JobSchema.nullable(),
44
- record_uuid: z.string().describe("UUID of the newly created job record (from x-record-uuid header).")
45
- }).describe("Response returned after creating a Job in ServiceM8.")
44
+ record_uuid: z.string().describe("UUID of the newly created job record (from x-record-uuid header).").nullable()
45
+ }).passthrough().describe("Response returned after creating a Job in ServiceM8.")
46
46
  });
47
47
  //#endregion
48
48
  export { servicem8CreateJobs };
@@ -1 +1 @@
1
- {"version":3,"file":"create-jobs.mjs","names":[],"sources":["../../src/actions/create-jobs.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8CreateJobsInput: z.ZodTypeAny = z.object({\n date: z.string().describe(\"Date the job is scheduled or created (YYYY-MM-DD).\").optional(),\n active: z.number().int().default(1).describe(\"Active flag (1 = active, 0 = deleted). Defaults to 1.\").optional(),\n badges: z.array(z.string()).describe(\"List of badge UUIDs to apply to this job.\").optional(),\n status: z.enum([\"Quote\", \"Work Order\", \"Unsuccessful\", \"Completed\"]).describe(\"Current status of the job. Controls dispatch board placement.\"),\n queue_uuid: z.string().describe(\"UUID of the queue to assign this job to.\").optional(),\n job_address: z.string().describe(\"Physical address where the job is to be performed.\"),\n company_uuid: z.string().describe(\"UUID of the customer/company associated with this job.\").optional(),\n category_uuid: z.string().describe(\"UUID of the job category.\").optional(),\n job_description: z.string().describe(\"Brief description of the work to be done.\").optional(),\n created_by_staff_uuid: z.string().describe(\"UUID of the staff member creating this job.\").optional(),\n purchase_order_number: z.string().describe(\"Client purchase order reference number.\").optional(),\n}).describe(\"Request parameters for creating a new Job in ServiceM8.\");\nconst Servicem8CreateJobs_JobSchema: z.ZodTypeAny = z.object({\n date: z.string().describe(\"Date the job was created or scheduled.\").nullable().optional(),\n uuid: z.string().describe(\"Unique identifier for this job record.\"),\n active: z.number().int().describe(\"Active flag (1 = active, 0 = deleted).\"),\n status: z.enum([\"Quote\", \"Work Order\", \"Unsuccessful\", \"Completed\"]).describe(\"Current status of the job.\"),\n job_address: z.string().describe(\"Address where the job is performed.\").nullable().optional(),\n company_uuid: z.string().describe(\"UUID of the associated company.\").nullable().optional(),\n job_description: z.string().describe(\"Description of the job.\").nullable().optional(),\n created_by_staff_uuid: z.string().describe(\"UUID of the staff member who created the job.\").nullable().optional(),\n}).passthrough().describe(\"Partial Schema for a ServiceM8 Job record.\\nExtra fields are allowed.\");\nexport const Servicem8CreateJobsOutput: z.ZodTypeAny = z.object({\n job: Servicem8CreateJobs_JobSchema.nullable(),\n record_uuid: z.string().describe(\"UUID of the newly created job record (from x-record-uuid header).\"),\n}).describe(\"Response returned after creating a Job in ServiceM8.\");\n\nexport const servicem8CreateJobs = action(\"SERVICEM8_CREATE_JOBS\", {\n slug: \"servicem8-create-jobs\",\n name: \"Create a new Job\",\n description: \"Tool to create a new Job in ServiceM8. Use when you have gathered all job details and need to push a record. Example: \\\"Create a Quote job for 123 Main St with PO #1234.\\\"\",\n input: Servicem8CreateJobsInput,\n output: Servicem8CreateJobsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAAyC,EAAE,OAAO;CAC7D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CACzF,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAC/G,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAC3F,QAAQ,EAAE,KAAK;EAAC;EAAS;EAAc;EAAgB;CAAW,CAAC,CAAC,CAAC,SAAS,+DAA+D;CAC7I,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACrF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD;CACrF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CACrG,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACzE,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAC3F,uBAAuB,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CACnG,uBAAuB,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;AACjG,CAAC,CAAC,CAAC,SAAS,yDAAyD;AACrE,MAAM,gCAA8C,EAAE,OAAO;CAC3D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;CAClE,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC;CAC1E,QAAQ,EAAE,KAAK;EAAC;EAAS;EAAc;EAAgB;CAAW,CAAC,CAAC,CAAC,SAAS,4BAA4B;CAC1G,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,uBAAuB,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uEAAuE;AAMjG,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVqD,EAAE,OAAO;EAC9D,KAAK,8BAA8B,SAAS;EAC5C,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE;CACtG,CAAC,CAAC,CAAC,SAAS,sDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"create-jobs.mjs","names":[],"sources":["../../src/actions/create-jobs.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8CreateJobsInput = z.object({\n date: z.string().describe(\"Date the job is scheduled or created (YYYY-MM-DD).\").optional(),\n active: z.number().int().default(1).describe(\"Active flag (1 = active, 0 = deleted). Defaults to 1.\").optional(),\n badges: z.array(z.string()).describe(\"List of badge UUIDs to apply to this job.\").optional(),\n status: z.enum([\"Quote\", \"Work Order\", \"Unsuccessful\", \"Completed\"]).describe(\"Current status of the job. Controls dispatch board placement.\"),\n queue_uuid: z.string().describe(\"UUID of the queue to assign this job to.\").optional(),\n job_address: z.string().describe(\"Physical address where the job is to be performed.\"),\n company_uuid: z.string().describe(\"UUID of the customer/company associated with this job.\").optional(),\n category_uuid: z.string().describe(\"UUID of the job category.\").optional(),\n job_description: z.string().describe(\"Brief description of the work to be done.\").optional(),\n created_by_staff_uuid: z.string().describe(\"UUID of the staff member creating this job.\").optional(),\n purchase_order_number: z.string().describe(\"Client purchase order reference number.\").optional(),\n}).describe(\"Request parameters for creating a new Job in ServiceM8.\");\nconst Servicem8CreateJobs_JobSchema = z.object({\n date: z.string().describe(\"Date the job was created or scheduled.\").nullable().optional(),\n uuid: z.string().describe(\"Unique identifier for this job record.\").nullable(),\n active: z.number().int().describe(\"Active flag (1 = active, 0 = deleted).\").nullable(),\n status: z.enum([\"Quote\", \"Work Order\", \"Unsuccessful\", \"Completed\"]).describe(\"Current status of the job.\").nullable(),\n job_address: z.string().describe(\"Address where the job is performed.\").nullable().optional(),\n company_uuid: z.string().describe(\"UUID of the associated company.\").nullable().optional(),\n job_description: z.string().describe(\"Description of the job.\").nullable().optional(),\n created_by_staff_uuid: z.string().describe(\"UUID of the staff member who created the job.\").nullable().optional(),\n}).passthrough().describe(\"Partial Schema for a ServiceM8 Job record.\\nExtra fields are allowed.\");\nexport const Servicem8CreateJobsOutput = z.object({\n job: Servicem8CreateJobs_JobSchema.nullable(),\n record_uuid: z.string().describe(\"UUID of the newly created job record (from x-record-uuid header).\").nullable(),\n}).passthrough().describe(\"Response returned after creating a Job in ServiceM8.\");\n\nexport const servicem8CreateJobs = action(\"SERVICEM8_CREATE_JOBS\", {\n slug: \"servicem8-create-jobs\",\n name: \"Create a new Job\",\n description: \"Tool to create a new Job in ServiceM8. Use when you have gathered all job details and need to push a record. Example: \\\"Create a Quote job for 123 Main St with PO #1234.\\\"\",\n input: Servicem8CreateJobsInput,\n output: Servicem8CreateJobsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2B,EAAE,OAAO;CAC/C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CACzF,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAC/G,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAC3F,QAAQ,EAAE,KAAK;EAAC;EAAS;EAAc;EAAgB;CAAW,CAAC,CAAC,CAAC,SAAS,+DAA+D;CAC7I,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACrF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD;CACrF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CACrG,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACzE,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAC3F,uBAAuB,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CACnG,uBAAuB,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;AACjG,CAAC,CAAC,CAAC,SAAS,yDAAyD;AACrE,MAAM,gCAAgC,EAAE,OAAO;CAC7C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC7E,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACrF,QAAQ,EAAE,KAAK;EAAC;EAAS;EAAc;EAAgB;CAAW,CAAC,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACrH,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,uBAAuB,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uEAAuE;AAMjG,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVuC,EAAE,OAAO;EAChD,KAAK,8BAA8B,SAAS;EAC5C,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;CACjH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sDAOhB;AACV,CAAC"}
@@ -5,7 +5,7 @@ const Servicem8DeleteCustomFieldInput = zod.z.object({ uuid: zod.z.string().desc
5
5
  const Servicem8DeleteCustomFieldOutput = zod.z.object({
6
6
  message: zod.z.string().describe("API response message describing the result of the operation.").nullable().optional(),
7
7
  errorCode: zod.z.number().int().describe("API error code. 0 indicates success, non-zero indicates an error. May be absent on 204 No Content responses.").nullable().optional()
8
- }).describe("Response model for successful custom field deletion.");
8
+ }).passthrough().describe("Response model for successful custom field deletion.");
9
9
  const servicem8DeleteCustomField = require_action.action("SERVICEM8_DELETE_CUSTOM_FIELD", {
10
10
  slug: "servicem8-delete-custom-field",
11
11
  name: "Delete Custom Field",
@@ -1 +1 @@
1
- {"version":3,"file":"delete-custom-field.cjs","names":["z","action"],"sources":["../../src/actions/delete-custom-field.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8DeleteCustomFieldInput: z.ZodTypeAny = z.object({\n uuid: z.string().describe(\"The UUID of the custom field to delete. Must be a valid UUID string.\"),\n}).describe(\"Request model for deleting a ServiceM8 Custom Field by UUID.\");\nexport const Servicem8DeleteCustomFieldOutput: z.ZodTypeAny = z.object({\n message: z.string().describe(\"API response message describing the result of the operation.\").nullable().optional(),\n errorCode: z.number().int().describe(\"API error code. 0 indicates success, non-zero indicates an error. May be absent on 204 No Content responses.\").nullable().optional(),\n}).describe(\"Response model for successful custom field deletion.\");\n\nexport const servicem8DeleteCustomField = action(\"SERVICEM8_DELETE_CUSTOM_FIELD\", {\n slug: \"servicem8-delete-custom-field\",\n name: \"Delete Custom Field\",\n description: \"Delete a custom field in ServiceM8 by its UUID. Use this when you need to permanently remove a custom field definition from the system. This will remove the custom field and any associated data.\",\n input: Servicem8DeleteCustomFieldInput,\n output: Servicem8DeleteCustomFieldOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAgDA,IAAAA,EAAE,OAAO,EACpE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,EAClG,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAC1E,MAAa,mCAAiDA,IAAAA,EAAE,OAAO;CACrE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjH,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8GAA8G,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3K,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAElE,MAAa,6BAA6BC,eAAAA,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"delete-custom-field.cjs","names":["z","action"],"sources":["../../src/actions/delete-custom-field.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8DeleteCustomFieldInput = z.object({\n uuid: z.string().describe(\"The UUID of the custom field to delete. Must be a valid UUID string.\"),\n}).describe(\"Request model for deleting a ServiceM8 Custom Field by UUID.\");\nexport const Servicem8DeleteCustomFieldOutput = z.object({\n message: z.string().describe(\"API response message describing the result of the operation.\").nullable().optional(),\n errorCode: z.number().int().describe(\"API error code. 0 indicates success, non-zero indicates an error. May be absent on 204 No Content responses.\").nullable().optional(),\n}).passthrough().describe(\"Response model for successful custom field deletion.\");\n\nexport const servicem8DeleteCustomField = action(\"SERVICEM8_DELETE_CUSTOM_FIELD\", {\n slug: \"servicem8-delete-custom-field\",\n name: \"Delete Custom Field\",\n description: \"Delete a custom field in ServiceM8 by its UUID. Use this when you need to permanently remove a custom field definition from the system. This will remove the custom field and any associated data.\",\n input: Servicem8DeleteCustomFieldInput,\n output: Servicem8DeleteCustomFieldOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO,EACtD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,EAClG,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAC1E,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjH,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8GAA8G,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3K,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sDAAsD;AAEhF,MAAa,6BAA6BC,eAAAA,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}