@keystrokehq/servicem8 0.1.4 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (237) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/create-job-note.cjs +1 -0
  4. package/dist/actions/create-job-note.cjs.map +1 -1
  5. package/dist/actions/create-job-note.d.cts +3 -22
  6. package/dist/actions/create-job-note.d.cts.map +1 -1
  7. package/dist/actions/create-job-note.d.mts +3 -22
  8. package/dist/actions/create-job-note.d.mts.map +1 -1
  9. package/dist/actions/create-job-note.mjs +1 -0
  10. package/dist/actions/create-job-note.mjs.map +1 -1
  11. package/dist/actions/create-job-payment.cjs +1 -0
  12. package/dist/actions/create-job-payment.cjs.map +1 -1
  13. package/dist/actions/create-job-payment.d.cts +3 -25
  14. package/dist/actions/create-job-payment.d.cts.map +1 -1
  15. package/dist/actions/create-job-payment.d.mts +3 -25
  16. package/dist/actions/create-job-payment.d.mts.map +1 -1
  17. package/dist/actions/create-job-payment.mjs +1 -0
  18. package/dist/actions/create-job-payment.mjs.map +1 -1
  19. package/dist/actions/create-jobs.cjs +1 -0
  20. package/dist/actions/create-jobs.cjs.map +1 -1
  21. package/dist/actions/create-jobs.d.cts +3 -25
  22. package/dist/actions/create-jobs.d.cts.map +1 -1
  23. package/dist/actions/create-jobs.d.mts +3 -25
  24. package/dist/actions/create-jobs.d.mts.map +1 -1
  25. package/dist/actions/create-jobs.mjs +1 -0
  26. package/dist/actions/create-jobs.mjs.map +1 -1
  27. package/dist/actions/delete-custom-field.cjs +1 -0
  28. package/dist/actions/delete-custom-field.cjs.map +1 -1
  29. package/dist/actions/delete-custom-field.d.cts +3 -15
  30. package/dist/actions/delete-custom-field.d.cts.map +1 -1
  31. package/dist/actions/delete-custom-field.d.mts +3 -15
  32. package/dist/actions/delete-custom-field.d.mts.map +1 -1
  33. package/dist/actions/delete-custom-field.mjs +1 -0
  34. package/dist/actions/delete-custom-field.mjs.map +1 -1
  35. package/dist/actions/delete-job-note.cjs +1 -0
  36. package/dist/actions/delete-job-note.cjs.map +1 -1
  37. package/dist/actions/delete-job-note.d.cts +3 -15
  38. package/dist/actions/delete-job-note.d.cts.map +1 -1
  39. package/dist/actions/delete-job-note.d.mts +3 -15
  40. package/dist/actions/delete-job-note.d.mts.map +1 -1
  41. package/dist/actions/delete-job-note.mjs +1 -0
  42. package/dist/actions/delete-job-note.mjs.map +1 -1
  43. package/dist/actions/delete-job-payment.cjs +1 -0
  44. package/dist/actions/delete-job-payment.cjs.map +1 -1
  45. package/dist/actions/delete-job-payment.d.cts +3 -15
  46. package/dist/actions/delete-job-payment.d.cts.map +1 -1
  47. package/dist/actions/delete-job-payment.d.mts +3 -15
  48. package/dist/actions/delete-job-payment.d.mts.map +1 -1
  49. package/dist/actions/delete-job-payment.mjs +1 -0
  50. package/dist/actions/delete-job-payment.mjs.map +1 -1
  51. package/dist/actions/list-all-assets.cjs +1 -0
  52. package/dist/actions/list-all-assets.cjs.map +1 -1
  53. package/dist/actions/list-all-assets.d.cts +3 -15
  54. package/dist/actions/list-all-assets.d.cts.map +1 -1
  55. package/dist/actions/list-all-assets.d.mts +3 -15
  56. package/dist/actions/list-all-assets.d.mts.map +1 -1
  57. package/dist/actions/list-all-assets.mjs +1 -0
  58. package/dist/actions/list-all-assets.mjs.map +1 -1
  59. package/dist/actions/list-all-clients.cjs +1 -0
  60. package/dist/actions/list-all-clients.cjs.map +1 -1
  61. package/dist/actions/list-all-clients.d.cts +3 -15
  62. package/dist/actions/list-all-clients.d.cts.map +1 -1
  63. package/dist/actions/list-all-clients.d.mts +3 -15
  64. package/dist/actions/list-all-clients.d.mts.map +1 -1
  65. package/dist/actions/list-all-clients.mjs +1 -0
  66. package/dist/actions/list-all-clients.mjs.map +1 -1
  67. package/dist/actions/list-all-document-templates.cjs +1 -0
  68. package/dist/actions/list-all-document-templates.cjs.map +1 -1
  69. package/dist/actions/list-all-document-templates.d.cts +3 -16
  70. package/dist/actions/list-all-document-templates.d.cts.map +1 -1
  71. package/dist/actions/list-all-document-templates.d.mts +3 -16
  72. package/dist/actions/list-all-document-templates.d.mts.map +1 -1
  73. package/dist/actions/list-all-document-templates.mjs +1 -0
  74. package/dist/actions/list-all-document-templates.mjs.map +1 -1
  75. package/dist/actions/list-all-forms.cjs +1 -0
  76. package/dist/actions/list-all-forms.cjs.map +1 -1
  77. package/dist/actions/list-all-forms.d.cts +3 -15
  78. package/dist/actions/list-all-forms.d.cts.map +1 -1
  79. package/dist/actions/list-all-forms.d.mts +3 -15
  80. package/dist/actions/list-all-forms.d.mts.map +1 -1
  81. package/dist/actions/list-all-forms.mjs +1 -0
  82. package/dist/actions/list-all-forms.mjs.map +1 -1
  83. package/dist/actions/list-all-job-notes.cjs +1 -0
  84. package/dist/actions/list-all-job-notes.cjs.map +1 -1
  85. package/dist/actions/list-all-job-notes.d.cts +3 -16
  86. package/dist/actions/list-all-job-notes.d.cts.map +1 -1
  87. package/dist/actions/list-all-job-notes.d.mts +3 -16
  88. package/dist/actions/list-all-job-notes.d.mts.map +1 -1
  89. package/dist/actions/list-all-job-notes.mjs +1 -0
  90. package/dist/actions/list-all-job-notes.mjs.map +1 -1
  91. package/dist/actions/list-all-job-queues.cjs +1 -0
  92. package/dist/actions/list-all-job-queues.cjs.map +1 -1
  93. package/dist/actions/list-all-job-queues.d.cts +3 -13
  94. package/dist/actions/list-all-job-queues.d.cts.map +1 -1
  95. package/dist/actions/list-all-job-queues.d.mts +3 -13
  96. package/dist/actions/list-all-job-queues.d.mts.map +1 -1
  97. package/dist/actions/list-all-job-queues.mjs +1 -0
  98. package/dist/actions/list-all-job-queues.mjs.map +1 -1
  99. package/dist/actions/list-all-jobs.cjs +1 -0
  100. package/dist/actions/list-all-jobs.cjs.map +1 -1
  101. package/dist/actions/list-all-jobs.d.cts +3 -15
  102. package/dist/actions/list-all-jobs.d.cts.map +1 -1
  103. package/dist/actions/list-all-jobs.d.mts +3 -15
  104. package/dist/actions/list-all-jobs.d.mts.map +1 -1
  105. package/dist/actions/list-all-jobs.mjs +1 -0
  106. package/dist/actions/list-all-jobs.mjs.map +1 -1
  107. package/dist/actions/list-all-locations.cjs +1 -0
  108. package/dist/actions/list-all-locations.cjs.map +1 -1
  109. package/dist/actions/list-all-locations.d.cts +3 -15
  110. package/dist/actions/list-all-locations.d.cts.map +1 -1
  111. package/dist/actions/list-all-locations.d.mts +3 -15
  112. package/dist/actions/list-all-locations.d.mts.map +1 -1
  113. package/dist/actions/list-all-locations.mjs +1 -0
  114. package/dist/actions/list-all-locations.mjs.map +1 -1
  115. package/dist/actions/list-all-materials.cjs +1 -0
  116. package/dist/actions/list-all-materials.cjs.map +1 -1
  117. package/dist/actions/list-all-materials.d.cts +3 -15
  118. package/dist/actions/list-all-materials.d.cts.map +1 -1
  119. package/dist/actions/list-all-materials.d.mts +3 -15
  120. package/dist/actions/list-all-materials.d.mts.map +1 -1
  121. package/dist/actions/list-all-materials.mjs +1 -0
  122. package/dist/actions/list-all-materials.mjs.map +1 -1
  123. package/dist/actions/list-all-tasks.cjs +1 -0
  124. package/dist/actions/list-all-tasks.cjs.map +1 -1
  125. package/dist/actions/list-all-tasks.d.cts +3 -16
  126. package/dist/actions/list-all-tasks.d.cts.map +1 -1
  127. package/dist/actions/list-all-tasks.d.mts +3 -16
  128. package/dist/actions/list-all-tasks.d.mts.map +1 -1
  129. package/dist/actions/list-all-tasks.mjs +1 -0
  130. package/dist/actions/list-all-tasks.mjs.map +1 -1
  131. package/dist/actions/retrieve-client.cjs +1 -0
  132. package/dist/actions/retrieve-client.cjs.map +1 -1
  133. package/dist/actions/retrieve-client.d.cts +3 -15
  134. package/dist/actions/retrieve-client.d.cts.map +1 -1
  135. package/dist/actions/retrieve-client.d.mts +3 -15
  136. package/dist/actions/retrieve-client.d.mts.map +1 -1
  137. package/dist/actions/retrieve-client.mjs +1 -0
  138. package/dist/actions/retrieve-client.mjs.map +1 -1
  139. package/dist/actions/retrieve-form.cjs +1 -0
  140. package/dist/actions/retrieve-form.cjs.map +1 -1
  141. package/dist/actions/retrieve-form.d.cts +3 -15
  142. package/dist/actions/retrieve-form.d.cts.map +1 -1
  143. package/dist/actions/retrieve-form.d.mts +3 -15
  144. package/dist/actions/retrieve-form.d.mts.map +1 -1
  145. package/dist/actions/retrieve-form.mjs +1 -0
  146. package/dist/actions/retrieve-form.mjs.map +1 -1
  147. package/dist/actions/retrieve-job-activity.cjs +1 -0
  148. package/dist/actions/retrieve-job-activity.cjs.map +1 -1
  149. package/dist/actions/retrieve-job-activity.d.cts +3 -15
  150. package/dist/actions/retrieve-job-activity.d.cts.map +1 -1
  151. package/dist/actions/retrieve-job-activity.d.mts +3 -15
  152. package/dist/actions/retrieve-job-activity.d.mts.map +1 -1
  153. package/dist/actions/retrieve-job-activity.mjs +1 -0
  154. package/dist/actions/retrieve-job-activity.mjs.map +1 -1
  155. package/dist/actions/retrieve-job-note.cjs +1 -0
  156. package/dist/actions/retrieve-job-note.cjs.map +1 -1
  157. package/dist/actions/retrieve-job-note.d.cts +3 -15
  158. package/dist/actions/retrieve-job-note.d.cts.map +1 -1
  159. package/dist/actions/retrieve-job-note.d.mts +3 -15
  160. package/dist/actions/retrieve-job-note.d.mts.map +1 -1
  161. package/dist/actions/retrieve-job-note.mjs +1 -0
  162. package/dist/actions/retrieve-job-note.mjs.map +1 -1
  163. package/dist/actions/retrieve-job-payment.cjs +1 -0
  164. package/dist/actions/retrieve-job-payment.cjs.map +1 -1
  165. package/dist/actions/retrieve-job-payment.d.cts +3 -15
  166. package/dist/actions/retrieve-job-payment.d.cts.map +1 -1
  167. package/dist/actions/retrieve-job-payment.d.mts +3 -15
  168. package/dist/actions/retrieve-job-payment.d.mts.map +1 -1
  169. package/dist/actions/retrieve-job-payment.mjs +1 -0
  170. package/dist/actions/retrieve-job-payment.mjs.map +1 -1
  171. package/dist/actions/retrieve-job-queue.cjs +1 -0
  172. package/dist/actions/retrieve-job-queue.cjs.map +1 -1
  173. package/dist/actions/retrieve-job-queue.d.cts +3 -15
  174. package/dist/actions/retrieve-job-queue.d.cts.map +1 -1
  175. package/dist/actions/retrieve-job-queue.d.mts +3 -15
  176. package/dist/actions/retrieve-job-queue.d.mts.map +1 -1
  177. package/dist/actions/retrieve-job-queue.mjs +1 -0
  178. package/dist/actions/retrieve-job-queue.mjs.map +1 -1
  179. package/dist/actions/retrieve-job.cjs +1 -0
  180. package/dist/actions/retrieve-job.cjs.map +1 -1
  181. package/dist/actions/retrieve-job.d.cts +3 -15
  182. package/dist/actions/retrieve-job.d.cts.map +1 -1
  183. package/dist/actions/retrieve-job.d.mts +3 -15
  184. package/dist/actions/retrieve-job.d.mts.map +1 -1
  185. package/dist/actions/retrieve-job.mjs +1 -0
  186. package/dist/actions/retrieve-job.mjs.map +1 -1
  187. package/dist/actions/retrieve-location.cjs +1 -0
  188. package/dist/actions/retrieve-location.cjs.map +1 -1
  189. package/dist/actions/retrieve-location.d.cts +3 -15
  190. package/dist/actions/retrieve-location.d.cts.map +1 -1
  191. package/dist/actions/retrieve-location.d.mts +3 -15
  192. package/dist/actions/retrieve-location.d.mts.map +1 -1
  193. package/dist/actions/retrieve-location.mjs +1 -0
  194. package/dist/actions/retrieve-location.mjs.map +1 -1
  195. package/dist/actions/retrieve-material.cjs +1 -0
  196. package/dist/actions/retrieve-material.cjs.map +1 -1
  197. package/dist/actions/retrieve-material.d.cts +3 -15
  198. package/dist/actions/retrieve-material.d.cts.map +1 -1
  199. package/dist/actions/retrieve-material.d.mts +3 -15
  200. package/dist/actions/retrieve-material.d.mts.map +1 -1
  201. package/dist/actions/retrieve-material.mjs +1 -0
  202. package/dist/actions/retrieve-material.mjs.map +1 -1
  203. package/dist/actions/retrieve-staff-member.cjs +1 -0
  204. package/dist/actions/retrieve-staff-member.cjs.map +1 -1
  205. package/dist/actions/retrieve-staff-member.d.cts +3 -15
  206. package/dist/actions/retrieve-staff-member.d.cts.map +1 -1
  207. package/dist/actions/retrieve-staff-member.d.mts +3 -15
  208. package/dist/actions/retrieve-staff-member.d.mts.map +1 -1
  209. package/dist/actions/retrieve-staff-member.mjs +1 -0
  210. package/dist/actions/retrieve-staff-member.mjs.map +1 -1
  211. package/dist/actions/update-job-note.cjs +1 -0
  212. package/dist/actions/update-job-note.cjs.map +1 -1
  213. package/dist/actions/update-job-note.d.cts +3 -18
  214. package/dist/actions/update-job-note.d.cts.map +1 -1
  215. package/dist/actions/update-job-note.d.mts +3 -18
  216. package/dist/actions/update-job-note.d.mts.map +1 -1
  217. package/dist/actions/update-job-note.mjs +1 -0
  218. package/dist/actions/update-job-note.mjs.map +1 -1
  219. package/dist/actions/update-job-payment.cjs +1 -0
  220. package/dist/actions/update-job-payment.cjs.map +1 -1
  221. package/dist/actions/update-job-payment.d.cts +3 -23
  222. package/dist/actions/update-job-payment.d.cts.map +1 -1
  223. package/dist/actions/update-job-payment.d.mts +3 -23
  224. package/dist/actions/update-job-payment.d.mts.map +1 -1
  225. package/dist/actions/update-job-payment.mjs +1 -0
  226. package/dist/actions/update-job-payment.mjs.map +1 -1
  227. package/dist/app.cjs +2 -2
  228. package/dist/app.cjs.map +1 -1
  229. package/dist/app.d.cts +4 -6
  230. package/dist/app.d.cts.map +1 -1
  231. package/dist/app.d.mts +4 -6
  232. package/dist/app.d.mts.map +1 -1
  233. package/dist/app.mjs +0 -1
  234. package/dist/app.mjs.map +1 -1
  235. package/dist/index.d.cts +1 -1
  236. package/dist/index.d.mts +1 -1
  237. package/package.json +2 -2
@@ -1 +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<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
+ {"version":3,"file":"action.cjs","names":["servicem8","executeServicem8Tool"],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { 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, TOutput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n): AppAction<TInput, TOutput, typeof servicem8.credential> {\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":";;;;;AAOA,SAAgB,OACd,MACA,KAOyD;CACzD,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<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"}
1
+ {"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { 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, TOutput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n): AppAction<TInput, TOutput, typeof servicem8.credential> {\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":";;;;;AAOA,SAAgB,OACd,MACA,KAOyD;CACzD,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,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/create-job-note.ts
@@ -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.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
+ {"version":3,"file":"create-job-note.cjs","names":["z","action"],"sources":["../../src/actions/create-job-note.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { servicem8 } from \"../app\";\n\nexport const 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: AppAction<\n typeof Servicem8CreateJobNoteInput,\n typeof Servicem8CreateJobNoteOutput,\n typeof servicem8.credential\n> = 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":";;;;AAMA,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,yBAITC,eAAAA,OAAO,6BAA6B;CACtC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { servicem8 } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/create-job-note.d.ts
@@ -16,28 +18,7 @@ declare const Servicem8CreateJobNoteOutput: z.ZodObject<{
16
18
  errorCode: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
17
19
  record_uuid: z.ZodNullable<z.ZodString>;
18
20
  }, 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<"servicem8", z.ZodObject<{
29
- connectionId: z.ZodString;
30
- entityId: z.ZodString;
31
- instanceId: z.ZodString;
32
- }, z.core.$strip>, z.ZodObject<{
33
- accessToken: z.ZodString;
34
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"servicem8", z.ZodObject<{
35
- connectionId: z.ZodString;
36
- entityId: z.ZodString;
37
- instanceId: z.ZodString;
38
- }, z.core.$strip>, z.ZodObject<{
39
- accessToken: z.ZodString;
40
- }, z.core.$strip>>]>;
21
+ declare const servicem8CreateJobNote: AppAction<typeof Servicem8CreateJobNoteInput, typeof Servicem8CreateJobNoteOutput, typeof servicem8.credential>;
41
22
  //#endregion
42
23
  export { servicem8CreateJobNote };
43
24
  //# 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,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;cAU3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;cAM5B,sBAAA,gCAAsB,wBAAA"}
1
+ {"version":3,"file":"create-job-note.d.cts","names":[],"sources":["../../src/actions/create-job-note.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;cAU3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;cAM5B,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,SACA,SAAA,CAAU,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { servicem8 } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/create-job-note.d.ts
@@ -16,28 +18,7 @@ declare const Servicem8CreateJobNoteOutput: z.ZodObject<{
16
18
  errorCode: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
17
19
  record_uuid: z.ZodNullable<z.ZodString>;
18
20
  }, 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<"servicem8", z.ZodObject<{
29
- connectionId: z.ZodString;
30
- entityId: z.ZodString;
31
- instanceId: z.ZodString;
32
- }, z.core.$strip>, z.ZodObject<{
33
- accessToken: z.ZodString;
34
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"servicem8", z.ZodObject<{
35
- connectionId: z.ZodString;
36
- entityId: z.ZodString;
37
- instanceId: z.ZodString;
38
- }, z.core.$strip>, z.ZodObject<{
39
- accessToken: z.ZodString;
40
- }, z.core.$strip>>]>;
21
+ declare const servicem8CreateJobNote: AppAction<typeof Servicem8CreateJobNoteInput, typeof Servicem8CreateJobNoteOutput, typeof servicem8.credential>;
41
22
  //#endregion
42
23
  export { servicem8CreateJobNote };
43
24
  //# 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,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;cAU3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;cAM5B,sBAAA,gCAAsB,wBAAA"}
1
+ {"version":3,"file":"create-job-note.d.mts","names":[],"sources":["../../src/actions/create-job-note.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;cAU3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;cAM5B,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,SACA,SAAA,CAAU,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const servicem8CreateJobNote = action("SERVICEM8_CREATE_JOB_NOTE", {
@@ -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.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"}
1
+ {"version":3,"file":"create-job-note.mjs","names":[],"sources":["../../src/actions/create-job-note.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { servicem8 } from \"../app\";\n\nexport const 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: AppAction<\n typeof Servicem8CreateJobNoteInput,\n typeof Servicem8CreateJobNoteOutput,\n typeof servicem8.credential\n> = 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":";;;AAsBA,MAAa,yBAIT,OAAO,6BAA6B;CACtC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAxByC,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,sDAeH;CACP,QAf0C,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,wDAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/create-job-payment.ts
@@ -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.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
+ {"version":3,"file":"create-job-payment.cjs","names":["z","action"],"sources":["../../src/actions/create-job-payment.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { servicem8 } from \"../app\";\n\nexport const 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: AppAction<\n typeof Servicem8CreateJobPaymentInput,\n typeof Servicem8CreateJobPaymentOutput,\n typeof servicem8.credential\n> = 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: Serv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AAE,OAAO,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS;AAClI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2DAA2D;AAErF,MAAa,4BAITC,eAAAA,OAAO,gCAAgC;CACzC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { servicem8 } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/create-job-payment.d.ts
@@ -19,31 +21,7 @@ declare const Servicem8CreateJobPaymentOutput: z.ZodObject<{
19
21
  errorCode: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
20
22
  record_uuid: z.ZodNullable<z.ZodString>;
21
23
  }, 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<"servicem8", z.ZodObject<{
35
- connectionId: z.ZodString;
36
- entityId: z.ZodString;
37
- instanceId: z.ZodString;
38
- }, z.core.$strip>, z.ZodObject<{
39
- accessToken: z.ZodString;
40
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"servicem8", z.ZodObject<{
41
- connectionId: z.ZodString;
42
- entityId: z.ZodString;
43
- instanceId: z.ZodString;
44
- }, z.core.$strip>, z.ZodObject<{
45
- accessToken: z.ZodString;
46
- }, z.core.$strip>>]>;
24
+ declare const servicem8CreateJobPayment: AppAction<typeof Servicem8CreateJobPaymentInput, typeof Servicem8CreateJobPaymentOutput, typeof servicem8.credential>;
47
25
  //#endregion
48
26
  export { servicem8CreateJobPayment };
49
27
  //# 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,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAa9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;cAM/B,yBAAA,gCAAyB,wBAAA"}
1
+ {"version":3,"file":"create-job-payment.d.cts","names":[],"sources":["../../src/actions/create-job-payment.ts"],"mappings":";;;;;cAMa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAa9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;cAM/B,yBAAA,EAA2B,SAAA,QAC/B,8BAAA,SACA,+BAAA,SACA,SAAA,CAAU,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { servicem8 } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/create-job-payment.d.ts
@@ -19,31 +21,7 @@ declare const Servicem8CreateJobPaymentOutput: z.ZodObject<{
19
21
  errorCode: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
20
22
  record_uuid: z.ZodNullable<z.ZodString>;
21
23
  }, 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<"servicem8", z.ZodObject<{
35
- connectionId: z.ZodString;
36
- entityId: z.ZodString;
37
- instanceId: z.ZodString;
38
- }, z.core.$strip>, z.ZodObject<{
39
- accessToken: z.ZodString;
40
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"servicem8", z.ZodObject<{
41
- connectionId: z.ZodString;
42
- entityId: z.ZodString;
43
- instanceId: z.ZodString;
44
- }, z.core.$strip>, z.ZodObject<{
45
- accessToken: z.ZodString;
46
- }, z.core.$strip>>]>;
24
+ declare const servicem8CreateJobPayment: AppAction<typeof Servicem8CreateJobPaymentInput, typeof Servicem8CreateJobPaymentOutput, typeof servicem8.credential>;
47
25
  //#endregion
48
26
  export { servicem8CreateJobPayment };
49
27
  //# 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,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAa9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;cAM/B,yBAAA,gCAAyB,wBAAA"}
1
+ {"version":3,"file":"create-job-payment.d.mts","names":[],"sources":["../../src/actions/create-job-payment.ts"],"mappings":";;;;;cAMa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAa9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;cAM/B,yBAAA,EAA2B,SAAA,QAC/B,8BAAA,SACA,+BAAA,SACA,SAAA,CAAU,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const servicem8CreateJobPayment = action("SERVICEM8_CREATE_JOB_PAYMENT", {
@@ -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.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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2DAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"create-job-payment.mjs","names":[],"sources":["../../src/actions/create-job-payment.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { servicem8 } from \"../app\";\n\nexport const 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: AppAction<\n typeof Servicem8CreateJobPaymentInput,\n typeof Servicem8CreateJobPaymentOutput,\n typeof servicem8.credential\n> = 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":";;;AAyBA,MAAa,4BAIT,OAAO,gCAAgC;CACzC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA3B4C,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,yDAeH;CACP,QAf6C,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,2DAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/create-jobs.ts
@@ -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.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,I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AAC,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
+ {"version":3,"file":"create-jobs.cjs","names":["z","action"],"sources":["../../src/actions/create-jobs.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { servicem8 } from \"../app\";\n\nexport const 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: AppAction<\n typeof Servicem8CreateJobsInput,\n typeof Servicem8CreateJobsOutput,\n typeof servicem8.credential\n> = 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":";;;;AAMA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CACzF,QAAQA,IAAAA,EAA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gB;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,sBAITC,eAAAA,OAAO,yBAAyB;CAClC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { servicem8 } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/create-jobs.d.ts
@@ -37,31 +39,7 @@ declare const Servicem8CreateJobsOutput: z.ZodObject<{
37
39
  }, z.core.$loose>>;
38
40
  record_uuid: z.ZodNullable<z.ZodString>;
39
41
  }, 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<"servicem8", z.ZodObject<{
53
- connectionId: z.ZodString;
54
- entityId: z.ZodString;
55
- instanceId: z.ZodString;
56
- }, z.core.$strip>, z.ZodObject<{
57
- accessToken: z.ZodString;
58
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"servicem8", z.ZodObject<{
59
- connectionId: z.ZodString;
60
- entityId: z.ZodString;
61
- instanceId: z.ZodString;
62
- }, z.core.$strip>, z.ZodObject<{
63
- accessToken: z.ZodString;
64
- }, z.core.$strip>>]>;
42
+ declare const servicem8CreateJobs: AppAction<typeof Servicem8CreateJobsInput, typeof Servicem8CreateJobsOutput, typeof servicem8.credential>;
65
43
  //#endregion
66
44
  export { servicem8CreateJobs };
67
45
  //# 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,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAuBxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAKzB,mBAAA,gCAAmB,wBAAA"}
1
+ {"version":3,"file":"create-jobs.d.cts","names":[],"sources":["../../src/actions/create-jobs.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAuBxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAKzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,SAAA,CAAU,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { servicem8 } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/create-jobs.d.ts
@@ -37,31 +39,7 @@ declare const Servicem8CreateJobsOutput: z.ZodObject<{
37
39
  }, z.core.$loose>>;
38
40
  record_uuid: z.ZodNullable<z.ZodString>;
39
41
  }, 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<"servicem8", z.ZodObject<{
53
- connectionId: z.ZodString;
54
- entityId: z.ZodString;
55
- instanceId: z.ZodString;
56
- }, z.core.$strip>, z.ZodObject<{
57
- accessToken: z.ZodString;
58
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"servicem8", z.ZodObject<{
59
- connectionId: z.ZodString;
60
- entityId: z.ZodString;
61
- instanceId: z.ZodString;
62
- }, z.core.$strip>, z.ZodObject<{
63
- accessToken: z.ZodString;
64
- }, z.core.$strip>>]>;
42
+ declare const servicem8CreateJobs: AppAction<typeof Servicem8CreateJobsInput, typeof Servicem8CreateJobsOutput, typeof servicem8.credential>;
65
43
  //#endregion
66
44
  export { servicem8CreateJobs };
67
45
  //# 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,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAuBxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAKzB,mBAAA,gCAAmB,wBAAA"}
1
+ {"version":3,"file":"create-jobs.d.mts","names":[],"sources":["../../src/actions/create-jobs.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAuBxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAKzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,SAAA,CAAU,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/create-jobs.ts
@@ -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.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,CAA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S,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"}
1
+ {"version":3,"file":"create-jobs.mjs","names":[],"sources":["../../src/actions/create-jobs.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { servicem8 } from \"../app\";\n\nexport const 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: AppAction<\n typeof Servicem8CreateJobsInput,\n typeof Servicem8CreateJobsOutput,\n typeof servicem8.credential\n> = 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":";;;;AAMA,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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MjG,MAAa,sBAIT,OAAO,yBAAyB;CAClC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAduC,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,sDAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/delete-custom-field.ts
@@ -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.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"}
1
+ {"version":3,"file":"delete-custom-field.cjs","names":["z","action"],"sources":["../../src/actions/delete-custom-field.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { servicem8 } from \"../app\";\n\nexport const 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: AppAction<\n typeof Servicem8DeleteCustomFieldInput,\n typeof Servicem8DeleteCustomFieldOutput,\n typeof servicem8.credential\n> = 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":";;;;AAMA,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,6BAITC,eAAAA,OAAO,iCAAiC;CAC1C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { servicem8 } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/delete-custom-field.d.ts
@@ -8,21 +10,7 @@ declare const Servicem8DeleteCustomFieldOutput: z.ZodObject<{
8
10
  message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9
11
  errorCode: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
10
12
  }, z.core.$loose>;
11
- declare const servicem8DeleteCustomField: import("@keystrokehq/action").WorkflowActionDefinition<{
12
- uuid: string;
13
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"servicem8", z.ZodObject<{
14
- connectionId: z.ZodString;
15
- entityId: z.ZodString;
16
- instanceId: z.ZodString;
17
- }, z.core.$strip>, z.ZodObject<{
18
- accessToken: z.ZodString;
19
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"servicem8", z.ZodObject<{
20
- connectionId: z.ZodString;
21
- entityId: z.ZodString;
22
- instanceId: z.ZodString;
23
- }, z.core.$strip>, z.ZodObject<{
24
- accessToken: z.ZodString;
25
- }, z.core.$strip>>]>;
13
+ declare const servicem8DeleteCustomField: AppAction<typeof Servicem8DeleteCustomFieldInput, typeof Servicem8DeleteCustomFieldOutput, typeof servicem8.credential>;
26
14
  //#endregion
27
15
  export { servicem8DeleteCustomField };
28
16
  //# sourceMappingURL=delete-custom-field.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"delete-custom-field.d.cts","names":[],"sources":["../../src/actions/delete-custom-field.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;cAG/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;cAKhC,0BAAA,gCAA0B,wBAAA"}
1
+ {"version":3,"file":"delete-custom-field.d.cts","names":[],"sources":["../../src/actions/delete-custom-field.ts"],"mappings":";;;;;cAMa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;cAG/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;cAKhC,0BAAA,EAA4B,SAAA,QAChC,+BAAA,SACA,gCAAA,SACA,SAAA,CAAU,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { servicem8 } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/delete-custom-field.d.ts
@@ -8,21 +10,7 @@ declare const Servicem8DeleteCustomFieldOutput: z.ZodObject<{
8
10
  message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9
11
  errorCode: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
10
12
  }, z.core.$loose>;
11
- declare const servicem8DeleteCustomField: import("@keystrokehq/action").WorkflowActionDefinition<{
12
- uuid: string;
13
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"servicem8", z.ZodObject<{
14
- connectionId: z.ZodString;
15
- entityId: z.ZodString;
16
- instanceId: z.ZodString;
17
- }, z.core.$strip>, z.ZodObject<{
18
- accessToken: z.ZodString;
19
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"servicem8", z.ZodObject<{
20
- connectionId: z.ZodString;
21
- entityId: z.ZodString;
22
- instanceId: z.ZodString;
23
- }, z.core.$strip>, z.ZodObject<{
24
- accessToken: z.ZodString;
25
- }, z.core.$strip>>]>;
13
+ declare const servicem8DeleteCustomField: AppAction<typeof Servicem8DeleteCustomFieldInput, typeof Servicem8DeleteCustomFieldOutput, typeof servicem8.credential>;
26
14
  //#endregion
27
15
  export { servicem8DeleteCustomField };
28
16
  //# sourceMappingURL=delete-custom-field.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"delete-custom-field.d.mts","names":[],"sources":["../../src/actions/delete-custom-field.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;cAG/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;cAKhC,0BAAA,gCAA0B,wBAAA"}
1
+ {"version":3,"file":"delete-custom-field.d.mts","names":[],"sources":["../../src/actions/delete-custom-field.ts"],"mappings":";;;;;cAMa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;cAG/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;cAKhC,0BAAA,EAA4B,SAAA,QAChC,+BAAA,SACA,gCAAA,SACA,SAAA,CAAU,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const servicem8DeleteCustomField = action("SERVICEM8_DELETE_CUSTOM_FIELD", {
@@ -1 +1 @@
1
- {"version":3,"file":"delete-custom-field.mjs","names":[],"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":";;AAYA,MAAa,6BAA6B,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZ6C,EAAE,OAAO,EACtD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,EAClG,CAAC,CAAC,CAAC,SAAS,8DAUH;CACP,QAV8C,EAAE,OAAO;EACvD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjH,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8GAA8G,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3K,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sDAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"delete-custom-field.mjs","names":[],"sources":["../../src/actions/delete-custom-field.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { servicem8 } from \"../app\";\n\nexport const 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: AppAction<\n typeof Servicem8DeleteCustomFieldInput,\n typeof Servicem8DeleteCustomFieldOutput,\n typeof servicem8.credential\n> = 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":";;;AAcA,MAAa,6BAIT,OAAO,iCAAiC;CAC1C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhB6C,EAAE,OAAO,EACtD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,EAClG,CAAC,CAAC,CAAC,SAAS,8DAcH;CACP,QAd8C,EAAE,OAAO;EACvD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjH,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8GAA8G,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3K,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sDAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/delete-job-note.ts
@@ -1 +1 @@
1
- {"version":3,"file":"delete-job-note.cjs","names":["z","action"],"sources":["../../src/actions/delete-job-note.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8DeleteJobNoteInput = z.object({\n uuid: z.string().describe(\"UUID of the job note to delete. Example: '123e4567-e89b-12d3-a456-426614174000'\"),\n}).describe(\"Request model for deleting a specific ServiceM8 job note.\");\nexport const Servicem8DeleteJobNoteOutput = z.object({\n note: z.string().describe(\"Content of the note, if available.\").nullable().optional(),\n uuid: z.string().describe(\"Unique UUID of the deleted note.\").nullable(),\n active: z.number().int().default(0).describe(\"Record active flag: always 0 after deletion (archived).\").nullable().optional(),\n job_uuid: z.string().describe(\"UUID of the associated job, if available.\").nullable().optional(),\n edit_date: z.string().describe(\"Timestamp when the note was last modified (YYYY-MM-DD HH:MM:SS).\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the note was created (YYYY-MM-DD HH:MM:SS), if available.\").nullable().optional(),\n staff_uuid: z.string().describe(\"UUID of the staff member who created the note, if available.\").nullable().optional(),\n}).passthrough().describe(\"Response model for a deleted ServiceM8 job note, with active set to 0.\\nConfirms the note was archived (soft-deleted) successfully.\");\n\nexport const servicem8DeleteJobNote = action(\"SERVICEM8_DELETE_JOB_NOTE\", {\n slug: \"servicem8-delete-job-note\",\n name: \"Delete Job Note\",\n description: \"Deletes (archives) a job note in ServiceM8 by its UUID. Use this tool when you need to remove a note from a job's diary. In ServiceM8, deletion is a soft-delete: the note is archived (active=0) rather than permanently removed, and can be restored later if needed. Prerequisites: You need the note's UUID, which can be obtained from the 'List All Job Notes' or 'Retrieve Job Note' actions.\",\n input: Servicem8DeleteJobNoteInput,\n output: Servicem8DeleteJobNoteOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,EAClD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,EAC7G,CAAC,CAAC,CAAC,SAAS,2DAA2D;AACvE,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CACvE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5H,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvH,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChI,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qIAAqI;AAE/J,MAAa,yBAAyBC,eAAAA,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"delete-job-note.cjs","names":["z","action"],"sources":["../../src/actions/delete-job-note.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { servicem8 } from \"../app\";\n\nexport const Servicem8DeleteJobNoteInput = z.object({\n uuid: z.string().describe(\"UUID of the job note to delete. Example: '123e4567-e89b-12d3-a456-426614174000'\"),\n}).describe(\"Request model for deleting a specific ServiceM8 job note.\");\nexport const Servicem8DeleteJobNoteOutput = z.object({\n note: z.string().describe(\"Content of the note, if available.\").nullable().optional(),\n uuid: z.string().describe(\"Unique UUID of the deleted note.\").nullable(),\n active: z.number().int().default(0).describe(\"Record active flag: always 0 after deletion (archived).\").nullable().optional(),\n job_uuid: z.string().describe(\"UUID of the associated job, if available.\").nullable().optional(),\n edit_date: z.string().describe(\"Timestamp when the note was last modified (YYYY-MM-DD HH:MM:SS).\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the note was created (YYYY-MM-DD HH:MM:SS), if available.\").nullable().optional(),\n staff_uuid: z.string().describe(\"UUID of the staff member who created the note, if available.\").nullable().optional(),\n}).passthrough().describe(\"Response model for a deleted ServiceM8 job note, with active set to 0.\\nConfirms the note was archived (soft-deleted) successfully.\");\n\nexport const servicem8DeleteJobNote: AppAction<\n typeof Servicem8DeleteJobNoteInput,\n typeof Servicem8DeleteJobNoteOutput,\n typeof servicem8.credential\n> = action(\"SERVICEM8_DELETE_JOB_NOTE\", {\n slug: \"servicem8-delete-job-note\",\n name: \"Delete Job Note\",\n description: \"Deletes (archives) a job note in ServiceM8 by its UUID. Use this tool when you need to remove a note from a job's diary. In ServiceM8, deletion is a soft-delete: the note is archived (active=0) rather than permanently removed, and can be restored later if needed. Prerequisites: You need the note's UUID, which can be obtained from the 'List All Job Notes' or 'Retrieve Job Note' actions.\",\n input: Servicem8DeleteJobNoteInput,\n output: Servicem8DeleteJobNoteOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,EAClD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,EAC7G,CAAC,CAAC,CAAC,SAAS,2DAA2D;AACvE,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CACvE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5H,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvH,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChI,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qIAAqI;AAE/J,MAAa,yBAITC,eAAAA,OAAO,6BAA6B;CACtC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}