@keystrokehq/servicem8 0.1.3 → 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.
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/create-job-note.cjs +1 -0
- package/dist/actions/create-job-note.cjs.map +1 -1
- package/dist/actions/create-job-note.d.cts +3 -10
- package/dist/actions/create-job-note.d.cts.map +1 -1
- package/dist/actions/create-job-note.d.mts +3 -10
- package/dist/actions/create-job-note.d.mts.map +1 -1
- package/dist/actions/create-job-note.mjs +1 -0
- package/dist/actions/create-job-note.mjs.map +1 -1
- package/dist/actions/create-job-payment.cjs +1 -0
- package/dist/actions/create-job-payment.cjs.map +1 -1
- package/dist/actions/create-job-payment.d.cts +3 -13
- package/dist/actions/create-job-payment.d.cts.map +1 -1
- package/dist/actions/create-job-payment.d.mts +3 -13
- package/dist/actions/create-job-payment.d.mts.map +1 -1
- package/dist/actions/create-job-payment.mjs +1 -0
- package/dist/actions/create-job-payment.mjs.map +1 -1
- package/dist/actions/create-jobs.cjs +1 -0
- package/dist/actions/create-jobs.cjs.map +1 -1
- package/dist/actions/create-jobs.d.cts +3 -13
- package/dist/actions/create-jobs.d.cts.map +1 -1
- package/dist/actions/create-jobs.d.mts +3 -13
- package/dist/actions/create-jobs.d.mts.map +1 -1
- package/dist/actions/create-jobs.mjs +1 -0
- package/dist/actions/create-jobs.mjs.map +1 -1
- package/dist/actions/delete-custom-field.cjs +1 -0
- package/dist/actions/delete-custom-field.cjs.map +1 -1
- package/dist/actions/delete-custom-field.d.cts +3 -3
- package/dist/actions/delete-custom-field.d.cts.map +1 -1
- package/dist/actions/delete-custom-field.d.mts +3 -3
- package/dist/actions/delete-custom-field.d.mts.map +1 -1
- package/dist/actions/delete-custom-field.mjs +1 -0
- package/dist/actions/delete-custom-field.mjs.map +1 -1
- package/dist/actions/delete-job-note.cjs +1 -0
- package/dist/actions/delete-job-note.cjs.map +1 -1
- package/dist/actions/delete-job-note.d.cts +3 -3
- package/dist/actions/delete-job-note.d.cts.map +1 -1
- package/dist/actions/delete-job-note.d.mts +3 -3
- package/dist/actions/delete-job-note.d.mts.map +1 -1
- package/dist/actions/delete-job-note.mjs +1 -0
- package/dist/actions/delete-job-note.mjs.map +1 -1
- package/dist/actions/delete-job-payment.cjs +1 -0
- package/dist/actions/delete-job-payment.cjs.map +1 -1
- package/dist/actions/delete-job-payment.d.cts +3 -3
- package/dist/actions/delete-job-payment.d.cts.map +1 -1
- package/dist/actions/delete-job-payment.d.mts +3 -3
- package/dist/actions/delete-job-payment.d.mts.map +1 -1
- package/dist/actions/delete-job-payment.mjs +1 -0
- package/dist/actions/delete-job-payment.mjs.map +1 -1
- package/dist/actions/list-all-assets.cjs +1 -0
- package/dist/actions/list-all-assets.cjs.map +1 -1
- package/dist/actions/list-all-assets.d.cts +3 -3
- package/dist/actions/list-all-assets.d.cts.map +1 -1
- package/dist/actions/list-all-assets.d.mts +3 -3
- package/dist/actions/list-all-assets.d.mts.map +1 -1
- package/dist/actions/list-all-assets.mjs +1 -0
- package/dist/actions/list-all-assets.mjs.map +1 -1
- package/dist/actions/list-all-clients.cjs +1 -0
- package/dist/actions/list-all-clients.cjs.map +1 -1
- package/dist/actions/list-all-clients.d.cts +3 -3
- package/dist/actions/list-all-clients.d.cts.map +1 -1
- package/dist/actions/list-all-clients.d.mts +3 -3
- package/dist/actions/list-all-clients.d.mts.map +1 -1
- package/dist/actions/list-all-clients.mjs +1 -0
- package/dist/actions/list-all-clients.mjs.map +1 -1
- package/dist/actions/list-all-document-templates.cjs +1 -0
- package/dist/actions/list-all-document-templates.cjs.map +1 -1
- package/dist/actions/list-all-document-templates.d.cts +3 -4
- package/dist/actions/list-all-document-templates.d.cts.map +1 -1
- package/dist/actions/list-all-document-templates.d.mts +3 -4
- package/dist/actions/list-all-document-templates.d.mts.map +1 -1
- package/dist/actions/list-all-document-templates.mjs +1 -0
- package/dist/actions/list-all-document-templates.mjs.map +1 -1
- package/dist/actions/list-all-forms.cjs +1 -0
- package/dist/actions/list-all-forms.cjs.map +1 -1
- package/dist/actions/list-all-forms.d.cts +3 -3
- package/dist/actions/list-all-forms.d.cts.map +1 -1
- package/dist/actions/list-all-forms.d.mts +3 -3
- package/dist/actions/list-all-forms.d.mts.map +1 -1
- package/dist/actions/list-all-forms.mjs +1 -0
- package/dist/actions/list-all-forms.mjs.map +1 -1
- package/dist/actions/list-all-job-notes.cjs +1 -0
- package/dist/actions/list-all-job-notes.cjs.map +1 -1
- package/dist/actions/list-all-job-notes.d.cts +3 -4
- package/dist/actions/list-all-job-notes.d.cts.map +1 -1
- package/dist/actions/list-all-job-notes.d.mts +3 -4
- package/dist/actions/list-all-job-notes.d.mts.map +1 -1
- package/dist/actions/list-all-job-notes.mjs +1 -0
- package/dist/actions/list-all-job-notes.mjs.map +1 -1
- package/dist/actions/list-all-job-queues.cjs +1 -0
- package/dist/actions/list-all-job-queues.cjs.map +1 -1
- package/dist/actions/list-all-job-queues.d.cts +3 -1
- package/dist/actions/list-all-job-queues.d.cts.map +1 -1
- package/dist/actions/list-all-job-queues.d.mts +3 -1
- package/dist/actions/list-all-job-queues.d.mts.map +1 -1
- package/dist/actions/list-all-job-queues.mjs +1 -0
- package/dist/actions/list-all-job-queues.mjs.map +1 -1
- package/dist/actions/list-all-jobs.cjs +1 -0
- package/dist/actions/list-all-jobs.cjs.map +1 -1
- package/dist/actions/list-all-jobs.d.cts +3 -3
- package/dist/actions/list-all-jobs.d.cts.map +1 -1
- package/dist/actions/list-all-jobs.d.mts +3 -3
- package/dist/actions/list-all-jobs.d.mts.map +1 -1
- package/dist/actions/list-all-jobs.mjs +1 -0
- package/dist/actions/list-all-jobs.mjs.map +1 -1
- package/dist/actions/list-all-locations.cjs +1 -0
- package/dist/actions/list-all-locations.cjs.map +1 -1
- package/dist/actions/list-all-locations.d.cts +3 -3
- package/dist/actions/list-all-locations.d.cts.map +1 -1
- package/dist/actions/list-all-locations.d.mts +3 -3
- package/dist/actions/list-all-locations.d.mts.map +1 -1
- package/dist/actions/list-all-locations.mjs +1 -0
- package/dist/actions/list-all-locations.mjs.map +1 -1
- package/dist/actions/list-all-materials.cjs +1 -0
- package/dist/actions/list-all-materials.cjs.map +1 -1
- package/dist/actions/list-all-materials.d.cts +3 -3
- package/dist/actions/list-all-materials.d.cts.map +1 -1
- package/dist/actions/list-all-materials.d.mts +3 -3
- package/dist/actions/list-all-materials.d.mts.map +1 -1
- package/dist/actions/list-all-materials.mjs +1 -0
- package/dist/actions/list-all-materials.mjs.map +1 -1
- package/dist/actions/list-all-tasks.cjs +1 -0
- package/dist/actions/list-all-tasks.cjs.map +1 -1
- package/dist/actions/list-all-tasks.d.cts +3 -4
- package/dist/actions/list-all-tasks.d.cts.map +1 -1
- package/dist/actions/list-all-tasks.d.mts +3 -4
- package/dist/actions/list-all-tasks.d.mts.map +1 -1
- package/dist/actions/list-all-tasks.mjs +1 -0
- package/dist/actions/list-all-tasks.mjs.map +1 -1
- package/dist/actions/retrieve-client.cjs +1 -0
- package/dist/actions/retrieve-client.cjs.map +1 -1
- package/dist/actions/retrieve-client.d.cts +3 -3
- package/dist/actions/retrieve-client.d.cts.map +1 -1
- package/dist/actions/retrieve-client.d.mts +3 -3
- package/dist/actions/retrieve-client.d.mts.map +1 -1
- package/dist/actions/retrieve-client.mjs +1 -0
- package/dist/actions/retrieve-client.mjs.map +1 -1
- package/dist/actions/retrieve-form.cjs +1 -0
- package/dist/actions/retrieve-form.cjs.map +1 -1
- package/dist/actions/retrieve-form.d.cts +3 -3
- package/dist/actions/retrieve-form.d.cts.map +1 -1
- package/dist/actions/retrieve-form.d.mts +3 -3
- package/dist/actions/retrieve-form.d.mts.map +1 -1
- package/dist/actions/retrieve-form.mjs +1 -0
- package/dist/actions/retrieve-form.mjs.map +1 -1
- package/dist/actions/retrieve-job-activity.cjs +1 -0
- package/dist/actions/retrieve-job-activity.cjs.map +1 -1
- package/dist/actions/retrieve-job-activity.d.cts +3 -3
- package/dist/actions/retrieve-job-activity.d.cts.map +1 -1
- package/dist/actions/retrieve-job-activity.d.mts +3 -3
- package/dist/actions/retrieve-job-activity.d.mts.map +1 -1
- package/dist/actions/retrieve-job-activity.mjs +1 -0
- package/dist/actions/retrieve-job-activity.mjs.map +1 -1
- package/dist/actions/retrieve-job-note.cjs +1 -0
- package/dist/actions/retrieve-job-note.cjs.map +1 -1
- package/dist/actions/retrieve-job-note.d.cts +3 -3
- package/dist/actions/retrieve-job-note.d.cts.map +1 -1
- package/dist/actions/retrieve-job-note.d.mts +3 -3
- package/dist/actions/retrieve-job-note.d.mts.map +1 -1
- package/dist/actions/retrieve-job-note.mjs +1 -0
- package/dist/actions/retrieve-job-note.mjs.map +1 -1
- package/dist/actions/retrieve-job-payment.cjs +1 -0
- package/dist/actions/retrieve-job-payment.cjs.map +1 -1
- package/dist/actions/retrieve-job-payment.d.cts +3 -3
- package/dist/actions/retrieve-job-payment.d.cts.map +1 -1
- package/dist/actions/retrieve-job-payment.d.mts +3 -3
- package/dist/actions/retrieve-job-payment.d.mts.map +1 -1
- package/dist/actions/retrieve-job-payment.mjs +1 -0
- package/dist/actions/retrieve-job-payment.mjs.map +1 -1
- package/dist/actions/retrieve-job-queue.cjs +1 -0
- package/dist/actions/retrieve-job-queue.cjs.map +1 -1
- package/dist/actions/retrieve-job-queue.d.cts +3 -3
- package/dist/actions/retrieve-job-queue.d.cts.map +1 -1
- package/dist/actions/retrieve-job-queue.d.mts +3 -3
- package/dist/actions/retrieve-job-queue.d.mts.map +1 -1
- package/dist/actions/retrieve-job-queue.mjs +1 -0
- package/dist/actions/retrieve-job-queue.mjs.map +1 -1
- package/dist/actions/retrieve-job.cjs +1 -0
- package/dist/actions/retrieve-job.cjs.map +1 -1
- package/dist/actions/retrieve-job.d.cts +3 -3
- package/dist/actions/retrieve-job.d.cts.map +1 -1
- package/dist/actions/retrieve-job.d.mts +3 -3
- package/dist/actions/retrieve-job.d.mts.map +1 -1
- package/dist/actions/retrieve-job.mjs +1 -0
- package/dist/actions/retrieve-job.mjs.map +1 -1
- package/dist/actions/retrieve-location.cjs +1 -0
- package/dist/actions/retrieve-location.cjs.map +1 -1
- package/dist/actions/retrieve-location.d.cts +3 -3
- package/dist/actions/retrieve-location.d.cts.map +1 -1
- package/dist/actions/retrieve-location.d.mts +3 -3
- package/dist/actions/retrieve-location.d.mts.map +1 -1
- package/dist/actions/retrieve-location.mjs +1 -0
- package/dist/actions/retrieve-location.mjs.map +1 -1
- package/dist/actions/retrieve-material.cjs +1 -0
- package/dist/actions/retrieve-material.cjs.map +1 -1
- package/dist/actions/retrieve-material.d.cts +3 -3
- package/dist/actions/retrieve-material.d.cts.map +1 -1
- package/dist/actions/retrieve-material.d.mts +3 -3
- package/dist/actions/retrieve-material.d.mts.map +1 -1
- package/dist/actions/retrieve-material.mjs +1 -0
- package/dist/actions/retrieve-material.mjs.map +1 -1
- package/dist/actions/retrieve-staff-member.cjs +1 -0
- package/dist/actions/retrieve-staff-member.cjs.map +1 -1
- package/dist/actions/retrieve-staff-member.d.cts +3 -3
- package/dist/actions/retrieve-staff-member.d.cts.map +1 -1
- package/dist/actions/retrieve-staff-member.d.mts +3 -3
- package/dist/actions/retrieve-staff-member.d.mts.map +1 -1
- package/dist/actions/retrieve-staff-member.mjs +1 -0
- package/dist/actions/retrieve-staff-member.mjs.map +1 -1
- package/dist/actions/update-job-note.cjs +1 -0
- package/dist/actions/update-job-note.cjs.map +1 -1
- package/dist/actions/update-job-note.d.cts +3 -6
- package/dist/actions/update-job-note.d.cts.map +1 -1
- package/dist/actions/update-job-note.d.mts +3 -6
- package/dist/actions/update-job-note.d.mts.map +1 -1
- package/dist/actions/update-job-note.mjs +1 -0
- package/dist/actions/update-job-note.mjs.map +1 -1
- package/dist/actions/update-job-payment.cjs +1 -0
- package/dist/actions/update-job-payment.cjs.map +1 -1
- package/dist/actions/update-job-payment.d.cts +3 -11
- package/dist/actions/update-job-payment.d.cts.map +1 -1
- package/dist/actions/update-job-payment.d.mts +3 -11
- package/dist/actions/update-job-payment.d.mts.map +1 -1
- package/dist/actions/update-job-payment.mjs +1 -0
- package/dist/actions/update-job-payment.mjs.map +1 -1
- package/dist/app.cjs +5 -2
- package/dist/app.cjs.map +1 -1
- package/dist/app.d.cts +7 -1
- package/dist/app.d.cts.map +1 -1
- package/dist/app.d.mts +7 -1
- package/dist/app.d.mts.map +1 -1
- package/dist/app.mjs +3 -2
- package/dist/app.mjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"retrieve-client.mjs","names":[],"sources":["../../src/actions/retrieve-client.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8RetrieveClientInput = z.object({\n uuid: z.string().describe(\"UUID of the company (client) to retrieve\"),\n}).describe(\"Request model for retrieving a specific ServiceM8 client.\");\nexport const Servicem8RetrieveClientOutput = z.object({\n name: z.string().describe(\"Business name of the company/client\").nullable(),\n uuid: z.string().describe(\"Unique identifier of the company (UUID format)\").nullable(),\n email: z.string().describe(\"Primary email address of the company\").nullable().optional(),\n notes: z.string().describe(\"Free-form notes associated with the company\").nullable().optional(),\n phone: z.string().describe(\"Primary phone number of the company\").nullable().optional(),\n active: z.number().int().describe(\"Record status: 1 if active, 0 if archived/deleted\").nullable(),\n badges: z.string().describe(\"JSON array of badge UUIDs associated with this client\").nullable().optional(),\n address: z.string().describe(\"Full street address of the company (max 500 chars)\").nullable().optional(),\n website: z.string().describe(\"Company website URL\").nullable().optional(),\n edit_date: z.string().describe(\"ISO-8601 timestamp when the record was last modified\").nullable(),\n abn_number: z.string().describe(\"Australian Business Number (11-digit identifier for Australian businesses)\").nullable().optional(),\n fax_number: z.string().describe(\"Fax number\").nullable().optional(),\n address_city: z.string().describe(\"City/suburb name\").nullable().optional(),\n address_state: z.string().describe(\"State/territory/province\").nullable().optional(),\n is_individual: z.string().describe(\"Flag indicating if this is an individual rather than a business\").nullable().optional(),\n payment_terms: z.string().describe(\"Payment terms description for this client\").nullable().optional(),\n tax_rate_uuid: z.string().describe(\"UUID of the associated tax rate configuration\").nullable().optional(),\n address_street: z.string().describe(\"Street address component\").nullable().optional(),\n postal_address: z.string().describe(\"Postal/mailing address of the company\").nullable().optional(),\n address_country: z.string().describe(\"Country name\").nullable().optional(),\n billing_address: z.string().describe(\"Alternate billing address (max 500 chars)\").nullable().optional(),\n address_postcode: z.string().describe(\"Postal/ZIP code\").nullable().optional(),\n billing_attention: z.string().describe(\"Contact name for billing correspondence\").nullable().optional(),\n parent_company_uuid: z.string().describe(\"UUID of the parent company (for site locations)\").nullable().optional(),\n}).passthrough().describe(\"Response model for a ServiceM8 company (client).\");\n\nexport const servicem8RetrieveClient = action(\"SERVICEM8_RETRIEVE_CLIENT\", {\n slug: \"servicem8-retrieve-client\",\n name: \"Retrieve ServiceM8 Client\",\n description: \"Tool to retrieve details of a specific client by its UUID. Use after confirming the client's UUID is valid.\",\n input: Servicem8RetrieveClientInput,\n output: Servicem8RetrieveClientOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"retrieve-client.mjs","names":[],"sources":["../../src/actions/retrieve-client.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 Servicem8RetrieveClientInput = z.object({\n uuid: z.string().describe(\"UUID of the company (client) to retrieve\"),\n}).describe(\"Request model for retrieving a specific ServiceM8 client.\");\nexport const Servicem8RetrieveClientOutput = z.object({\n name: z.string().describe(\"Business name of the company/client\").nullable(),\n uuid: z.string().describe(\"Unique identifier of the company (UUID format)\").nullable(),\n email: z.string().describe(\"Primary email address of the company\").nullable().optional(),\n notes: z.string().describe(\"Free-form notes associated with the company\").nullable().optional(),\n phone: z.string().describe(\"Primary phone number of the company\").nullable().optional(),\n active: z.number().int().describe(\"Record status: 1 if active, 0 if archived/deleted\").nullable(),\n badges: z.string().describe(\"JSON array of badge UUIDs associated with this client\").nullable().optional(),\n address: z.string().describe(\"Full street address of the company (max 500 chars)\").nullable().optional(),\n website: z.string().describe(\"Company website URL\").nullable().optional(),\n edit_date: z.string().describe(\"ISO-8601 timestamp when the record was last modified\").nullable(),\n abn_number: z.string().describe(\"Australian Business Number (11-digit identifier for Australian businesses)\").nullable().optional(),\n fax_number: z.string().describe(\"Fax number\").nullable().optional(),\n address_city: z.string().describe(\"City/suburb name\").nullable().optional(),\n address_state: z.string().describe(\"State/territory/province\").nullable().optional(),\n is_individual: z.string().describe(\"Flag indicating if this is an individual rather than a business\").nullable().optional(),\n payment_terms: z.string().describe(\"Payment terms description for this client\").nullable().optional(),\n tax_rate_uuid: z.string().describe(\"UUID of the associated tax rate configuration\").nullable().optional(),\n address_street: z.string().describe(\"Street address component\").nullable().optional(),\n postal_address: z.string().describe(\"Postal/mailing address of the company\").nullable().optional(),\n address_country: z.string().describe(\"Country name\").nullable().optional(),\n billing_address: z.string().describe(\"Alternate billing address (max 500 chars)\").nullable().optional(),\n address_postcode: z.string().describe(\"Postal/ZIP code\").nullable().optional(),\n billing_attention: z.string().describe(\"Contact name for billing correspondence\").nullable().optional(),\n parent_company_uuid: z.string().describe(\"UUID of the parent company (for site locations)\").nullable().optional(),\n}).passthrough().describe(\"Response model for a ServiceM8 company (client).\");\n\nexport const servicem8RetrieveClient: AppAction<\n typeof Servicem8RetrieveClientInput,\n typeof Servicem8RetrieveClientOutput,\n typeof servicem8.credential\n> = action(\"SERVICEM8_RETRIEVE_CLIENT\", {\n slug: \"servicem8-retrieve-client\",\n name: \"Retrieve ServiceM8 Client\",\n description: \"Tool to retrieve details of a specific client by its UUID. Use after confirming the client's UUID is valid.\",\n input: Servicem8RetrieveClientInput,\n output: Servicem8RetrieveClientOutput,\n});\n"],"mappings":";;;AAoCA,MAAa,0BAIT,OAAO,6BAA6B;CACtC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAtC0C,EAAE,OAAO,EACnD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,EACtE,CAAC,CAAC,CAAC,SAAS,2DAoCH;CACP,QApC2C,EAAE,OAAO;EACpD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EAC1E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;EACrF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9F,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtF,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;EAChG,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzG,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvG,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;EAChG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClI,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,YAAY,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClE,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1E,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnF,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1H,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpG,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxG,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpF,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjG,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzE,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtG,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7E,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtG,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"retrieve-form.cjs","names":["z","action"],"sources":["../../src/actions/retrieve-form.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8RetrieveFormInput = z.object({\n uuid: z.string().describe(\"The unique identifier (UUID) of the form to retrieve.\"),\n}).describe(\"Request model for retrieving a specific ServiceM8 form by UUID.\");\nexport const Servicem8RetrieveFormOutput = z.object({\n name: z.string().describe(\"Name/title of the form template.\").nullable().optional(),\n uuid: z.string().describe(\"Unique identifier of the form (UUID format).\").nullable(),\n active: z.number().int().describe(\"Record status: 1 if active, 0 if archived/deleted.\").nullable().optional(),\n edit_date: z.string().describe(\"Timestamp when the form was last modified (YYYY-MM-DD HH:MM:SS).\").nullable().optional(),\n description: z.string().describe(\"Description of the form's purpose or usage.\").nullable().optional(),\n}).passthrough().describe(\"Response model for a ServiceM8 form record.\");\n\nexport const servicem8RetrieveForm = action(\"SERVICEM8_RETRIEVE_FORM\", {\n slug: \"servicem8-retrieve-form\",\n name: \"Retrieve Form\",\n description: \"Retrieve details of a specific form template by its UUID. Use this tool when you have a form UUID and need to fetch its metadata, such as form name, description, and status. Requires the Forms add-on to be enabled in ServiceM8.\",\n input: Servicem8RetrieveFormInput,\n output: Servicem8RetrieveFormOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"retrieve-form.cjs","names":["z","action"],"sources":["../../src/actions/retrieve-form.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 Servicem8RetrieveFormInput = z.object({\n uuid: z.string().describe(\"The unique identifier (UUID) of the form to retrieve.\"),\n}).describe(\"Request model for retrieving a specific ServiceM8 form by UUID.\");\nexport const Servicem8RetrieveFormOutput = z.object({\n name: z.string().describe(\"Name/title of the form template.\").nullable().optional(),\n uuid: z.string().describe(\"Unique identifier of the form (UUID format).\").nullable(),\n active: z.number().int().describe(\"Record status: 1 if active, 0 if archived/deleted.\").nullable().optional(),\n edit_date: z.string().describe(\"Timestamp when the form was last modified (YYYY-MM-DD HH:MM:SS).\").nullable().optional(),\n description: z.string().describe(\"Description of the form's purpose or usage.\").nullable().optional(),\n}).passthrough().describe(\"Response model for a ServiceM8 form record.\");\n\nexport const servicem8RetrieveForm: AppAction<\n typeof Servicem8RetrieveFormInput,\n typeof Servicem8RetrieveFormOutput,\n typeof servicem8.credential\n> = action(\"SERVICEM8_RETRIEVE_FORM\", {\n slug: \"servicem8-retrieve-form\",\n name: \"Retrieve Form\",\n description: \"Retrieve details of a specific form template by its UUID. Use this tool when you have a form UUID and need to fetch its metadata, such as form name, description, and status. Requires the Forms add-on to be enabled in ServiceM8.\",\n input: Servicem8RetrieveFormInput,\n output: Servicem8RetrieveFormOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,EACnF,CAAC,CAAC,CAAC,SAAS,iEAAiE;AAC7E,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACnF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvH,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAA6C;AAEvE,MAAa,wBAITC,eAAAA,OAAO,2BAA2B;CACpC,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/retrieve-form.d.ts
|
|
@@ -11,9 +13,7 @@ declare const Servicem8RetrieveFormOutput: z.ZodObject<{
|
|
|
11
13
|
edit_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
14
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
15
|
}, z.core.$loose>;
|
|
14
|
-
declare const servicem8RetrieveForm:
|
|
15
|
-
uuid: string;
|
|
16
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
16
|
+
declare const servicem8RetrieveForm: AppAction<typeof Servicem8RetrieveFormInput, typeof Servicem8RetrieveFormOutput, typeof servicem8.credential>;
|
|
17
17
|
//#endregion
|
|
18
18
|
export { servicem8RetrieveForm };
|
|
19
19
|
//# sourceMappingURL=retrieve-form.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"retrieve-form.d.cts","names":[],"sources":["../../src/actions/retrieve-form.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"retrieve-form.d.cts","names":[],"sources":["../../src/actions/retrieve-form.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;cAG1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;cAQ3B,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,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/retrieve-form.d.ts
|
|
@@ -11,9 +13,7 @@ declare const Servicem8RetrieveFormOutput: z.ZodObject<{
|
|
|
11
13
|
edit_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
14
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
15
|
}, z.core.$loose>;
|
|
14
|
-
declare const servicem8RetrieveForm:
|
|
15
|
-
uuid: string;
|
|
16
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
16
|
+
declare const servicem8RetrieveForm: AppAction<typeof Servicem8RetrieveFormInput, typeof Servicem8RetrieveFormOutput, typeof servicem8.credential>;
|
|
17
17
|
//#endregion
|
|
18
18
|
export { servicem8RetrieveForm };
|
|
19
19
|
//# sourceMappingURL=retrieve-form.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"retrieve-form.d.mts","names":[],"sources":["../../src/actions/retrieve-form.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"retrieve-form.d.mts","names":[],"sources":["../../src/actions/retrieve-form.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;cAG1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;cAQ3B,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,SACA,SAAA,CAAU,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"retrieve-form.mjs","names":[],"sources":["../../src/actions/retrieve-form.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8RetrieveFormInput = z.object({\n uuid: z.string().describe(\"The unique identifier (UUID) of the form to retrieve.\"),\n}).describe(\"Request model for retrieving a specific ServiceM8 form by UUID.\");\nexport const Servicem8RetrieveFormOutput = z.object({\n name: z.string().describe(\"Name/title of the form template.\").nullable().optional(),\n uuid: z.string().describe(\"Unique identifier of the form (UUID format).\").nullable(),\n active: z.number().int().describe(\"Record status: 1 if active, 0 if archived/deleted.\").nullable().optional(),\n edit_date: z.string().describe(\"Timestamp when the form was last modified (YYYY-MM-DD HH:MM:SS).\").nullable().optional(),\n description: z.string().describe(\"Description of the form's purpose or usage.\").nullable().optional(),\n}).passthrough().describe(\"Response model for a ServiceM8 form record.\");\n\nexport const servicem8RetrieveForm = action(\"SERVICEM8_RETRIEVE_FORM\", {\n slug: \"servicem8-retrieve-form\",\n name: \"Retrieve Form\",\n description: \"Retrieve details of a specific form template by its UUID. Use this tool when you have a form UUID and need to fetch its metadata, such as form name, description, and status. Requires the Forms add-on to be enabled in ServiceM8.\",\n input: Servicem8RetrieveFormInput,\n output: Servicem8RetrieveFormOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"retrieve-form.mjs","names":[],"sources":["../../src/actions/retrieve-form.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 Servicem8RetrieveFormInput = z.object({\n uuid: z.string().describe(\"The unique identifier (UUID) of the form to retrieve.\"),\n}).describe(\"Request model for retrieving a specific ServiceM8 form by UUID.\");\nexport const Servicem8RetrieveFormOutput = z.object({\n name: z.string().describe(\"Name/title of the form template.\").nullable().optional(),\n uuid: z.string().describe(\"Unique identifier of the form (UUID format).\").nullable(),\n active: z.number().int().describe(\"Record status: 1 if active, 0 if archived/deleted.\").nullable().optional(),\n edit_date: z.string().describe(\"Timestamp when the form was last modified (YYYY-MM-DD HH:MM:SS).\").nullable().optional(),\n description: z.string().describe(\"Description of the form's purpose or usage.\").nullable().optional(),\n}).passthrough().describe(\"Response model for a ServiceM8 form record.\");\n\nexport const servicem8RetrieveForm: AppAction<\n typeof Servicem8RetrieveFormInput,\n typeof Servicem8RetrieveFormOutput,\n typeof servicem8.credential\n> = action(\"SERVICEM8_RETRIEVE_FORM\", {\n slug: \"servicem8-retrieve-form\",\n name: \"Retrieve Form\",\n description: \"Retrieve details of a specific form template by its UUID. Use this tool when you have a form UUID and need to fetch its metadata, such as form name, description, and status. Requires the Forms add-on to be enabled in ServiceM8.\",\n input: Servicem8RetrieveFormInput,\n output: Servicem8RetrieveFormOutput,\n});\n"],"mappings":";;;AAiBA,MAAa,wBAIT,OAAO,2BAA2B;CACpC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAnBwC,EAAE,OAAO,EACjD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,EACnF,CAAC,CAAC,CAAC,SAAS,iEAiBH;CACP,QAjByC,EAAE,OAAO;EAClD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;EACnF,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5G,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvH,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"retrieve-job-activity.cjs","names":["z","action"],"sources":["../../src/actions/retrieve-job-activity.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8RetrieveJobActivityInput = z.object({\n uuid: z.string().describe(\"UUID of the ServiceM8 job activity to retrieve\"),\n}).describe(\"Request model for retrieving a specific ServiceM8 job activity by UUID.\");\nexport const Servicem8RetrieveJobActivityOutput = z.object({\n uuid: z.string().describe(\"Unique identifier for the job activity.\").nullable(),\n active: z.number().int().describe(\"Record active flag: 1=active, 0=deleted.\").nullable(),\n end_date: z.string().describe(\"End time of the activity.\").nullable().optional(),\n job_uuid: z.string().describe(\"UUID of the associated job.\").nullable(),\n edit_date: z.string().describe(\"Timestamp of last modification.\").nullable().optional(),\n staff_uuid: z.string().describe(\"UUID of the staff member assigned to the activity.\").nullable(),\n start_date: z.string().describe(\"Start time of the activity.\").nullable().optional(),\n material_uuid: z.string().describe(\"UUID of associated material (if any).\").nullable().optional(),\n has_been_opened: z.union([z.number().int(), z.string()]).nullable().optional(),\n edit_by_staff_uuid: z.string().describe(\"UUID of staff who last edited the activity.\").nullable().optional(),\n allocated_timestamp: z.string().describe(\"Timestamp when the activity was allocated.\").nullable().optional(),\n activity_was_recorded: z.union([z.number().int(), z.string()]).nullable().optional(),\n activity_was_automated: z.union([z.number().int(), z.string()]).nullable().optional(),\n activity_was_scheduled: z.union([z.number().int(), z.string()]).nullable().optional(),\n travel_time_in_seconds: z.string().describe(\"Travel time in seconds.\").nullable().optional(),\n allocated_by_staff_uuid: z.string().describe(\"UUID of staff who allocated the activity.\").nullable().optional(),\n has_been_opened_timestamp: z.string().describe(\"Timestamp when the activity was opened.\").nullable().optional(),\n travel_distance_in_meters: z.string().describe(\"Travel distance in meters.\").nullable().optional(),\n}).passthrough().describe(\"Response model representing a ServiceM8 job activity record.\");\n\nexport const servicem8RetrieveJobActivity = action(\"SERVICEM8_RETRIEVE_JOB_ACTIVITY\", {\n slug: \"servicem8-retrieve-job-activity\",\n name: \"Retrieve Job Activity\",\n description: \"Tool to retrieve details of a specific job activity by its UUID. Use when you have the job activity UUID and need its full details.\",\n input: Servicem8RetrieveJobActivityInput,\n output: Servicem8RetrieveJobActivityOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"retrieve-job-activity.cjs","names":["z","action"],"sources":["../../src/actions/retrieve-job-activity.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 Servicem8RetrieveJobActivityInput = z.object({\n uuid: z.string().describe(\"UUID of the ServiceM8 job activity to retrieve\"),\n}).describe(\"Request model for retrieving a specific ServiceM8 job activity by UUID.\");\nexport const Servicem8RetrieveJobActivityOutput = z.object({\n uuid: z.string().describe(\"Unique identifier for the job activity.\").nullable(),\n active: z.number().int().describe(\"Record active flag: 1=active, 0=deleted.\").nullable(),\n end_date: z.string().describe(\"End time of the activity.\").nullable().optional(),\n job_uuid: z.string().describe(\"UUID of the associated job.\").nullable(),\n edit_date: z.string().describe(\"Timestamp of last modification.\").nullable().optional(),\n staff_uuid: z.string().describe(\"UUID of the staff member assigned to the activity.\").nullable(),\n start_date: z.string().describe(\"Start time of the activity.\").nullable().optional(),\n material_uuid: z.string().describe(\"UUID of associated material (if any).\").nullable().optional(),\n has_been_opened: z.union([z.number().int(), z.string()]).nullable().optional(),\n edit_by_staff_uuid: z.string().describe(\"UUID of staff who last edited the activity.\").nullable().optional(),\n allocated_timestamp: z.string().describe(\"Timestamp when the activity was allocated.\").nullable().optional(),\n activity_was_recorded: z.union([z.number().int(), z.string()]).nullable().optional(),\n activity_was_automated: z.union([z.number().int(), z.string()]).nullable().optional(),\n activity_was_scheduled: z.union([z.number().int(), z.string()]).nullable().optional(),\n travel_time_in_seconds: z.string().describe(\"Travel time in seconds.\").nullable().optional(),\n allocated_by_staff_uuid: z.string().describe(\"UUID of staff who allocated the activity.\").nullable().optional(),\n has_been_opened_timestamp: z.string().describe(\"Timestamp when the activity was opened.\").nullable().optional(),\n travel_distance_in_meters: z.string().describe(\"Travel distance in meters.\").nullable().optional(),\n}).passthrough().describe(\"Response model representing a ServiceM8 job activity record.\");\n\nexport const servicem8RetrieveJobActivity: AppAction<\n typeof Servicem8RetrieveJobActivityInput,\n typeof Servicem8RetrieveJobActivityOutput,\n typeof servicem8.credential\n> = action(\"SERVICEM8_RETRIEVE_JOB_ACTIVITY\", {\n slug: \"servicem8-retrieve-job-activity\",\n name: \"Retrieve Job Activity\",\n description: \"Tool to retrieve details of a specific job activity by its UUID. Use when you have the job activity UUID and need its full details.\",\n input: Servicem8RetrieveJobActivityInput,\n output: Servicem8RetrieveJobActivityOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,oCAAoCA,IAAAA,EAAE,OAAO,EACxD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,EAC5E,CAAC,CAAC,CAAC,SAAS,yEAAyE;AACrF,MAAa,qCAAqCA,IAAAA,EAAE,OAAO;CACzD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC9E,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACvF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACtE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAC/F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,iBAAiBA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3G,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3G,uBAAuBA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,wBAAwBA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,wBAAwBA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,wBAAwBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,yBAAyBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9G,2BAA2BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9G,2BAA2BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8DAA8D;AAExF,MAAa,+BAITC,eAAAA,OAAO,mCAAmC;CAC5C,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/retrieve-job-activity.d.ts
|
|
@@ -24,9 +26,7 @@ declare const Servicem8RetrieveJobActivityOutput: z.ZodObject<{
|
|
|
24
26
|
has_been_opened_timestamp: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
27
|
travel_distance_in_meters: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
28
|
}, z.core.$loose>;
|
|
27
|
-
declare const servicem8RetrieveJobActivity:
|
|
28
|
-
uuid: string;
|
|
29
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
29
|
+
declare const servicem8RetrieveJobActivity: AppAction<typeof Servicem8RetrieveJobActivityInput, typeof Servicem8RetrieveJobActivityOutput, typeof servicem8.credential>;
|
|
30
30
|
//#endregion
|
|
31
31
|
export { servicem8RetrieveJobActivity };
|
|
32
32
|
//# sourceMappingURL=retrieve-job-activity.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"retrieve-job-activity.d.cts","names":[],"sources":["../../src/actions/retrieve-job-activity.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"retrieve-job-activity.d.cts","names":[],"sources":["../../src/actions/retrieve-job-activity.ts"],"mappings":";;;;;cAMa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;cAGjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAqBlC,4BAAA,EAA8B,SAAA,QAClC,iCAAA,SACA,kCAAA,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/retrieve-job-activity.d.ts
|
|
@@ -24,9 +26,7 @@ declare const Servicem8RetrieveJobActivityOutput: z.ZodObject<{
|
|
|
24
26
|
has_been_opened_timestamp: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
27
|
travel_distance_in_meters: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
28
|
}, z.core.$loose>;
|
|
27
|
-
declare const servicem8RetrieveJobActivity:
|
|
28
|
-
uuid: string;
|
|
29
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
29
|
+
declare const servicem8RetrieveJobActivity: AppAction<typeof Servicem8RetrieveJobActivityInput, typeof Servicem8RetrieveJobActivityOutput, typeof servicem8.credential>;
|
|
30
30
|
//#endregion
|
|
31
31
|
export { servicem8RetrieveJobActivity };
|
|
32
32
|
//# sourceMappingURL=retrieve-job-activity.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"retrieve-job-activity.d.mts","names":[],"sources":["../../src/actions/retrieve-job-activity.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"retrieve-job-activity.d.mts","names":[],"sources":["../../src/actions/retrieve-job-activity.ts"],"mappings":";;;;;cAMa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;cAGjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAqBlC,4BAAA,EAA8B,SAAA,QAClC,iCAAA,SACA,kCAAA,SACA,SAAA,CAAU,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"retrieve-job-activity.mjs","names":[],"sources":["../../src/actions/retrieve-job-activity.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8RetrieveJobActivityInput = z.object({\n uuid: z.string().describe(\"UUID of the ServiceM8 job activity to retrieve\"),\n}).describe(\"Request model for retrieving a specific ServiceM8 job activity by UUID.\");\nexport const Servicem8RetrieveJobActivityOutput = z.object({\n uuid: z.string().describe(\"Unique identifier for the job activity.\").nullable(),\n active: z.number().int().describe(\"Record active flag: 1=active, 0=deleted.\").nullable(),\n end_date: z.string().describe(\"End time of the activity.\").nullable().optional(),\n job_uuid: z.string().describe(\"UUID of the associated job.\").nullable(),\n edit_date: z.string().describe(\"Timestamp of last modification.\").nullable().optional(),\n staff_uuid: z.string().describe(\"UUID of the staff member assigned to the activity.\").nullable(),\n start_date: z.string().describe(\"Start time of the activity.\").nullable().optional(),\n material_uuid: z.string().describe(\"UUID of associated material (if any).\").nullable().optional(),\n has_been_opened: z.union([z.number().int(), z.string()]).nullable().optional(),\n edit_by_staff_uuid: z.string().describe(\"UUID of staff who last edited the activity.\").nullable().optional(),\n allocated_timestamp: z.string().describe(\"Timestamp when the activity was allocated.\").nullable().optional(),\n activity_was_recorded: z.union([z.number().int(), z.string()]).nullable().optional(),\n activity_was_automated: z.union([z.number().int(), z.string()]).nullable().optional(),\n activity_was_scheduled: z.union([z.number().int(), z.string()]).nullable().optional(),\n travel_time_in_seconds: z.string().describe(\"Travel time in seconds.\").nullable().optional(),\n allocated_by_staff_uuid: z.string().describe(\"UUID of staff who allocated the activity.\").nullable().optional(),\n has_been_opened_timestamp: z.string().describe(\"Timestamp when the activity was opened.\").nullable().optional(),\n travel_distance_in_meters: z.string().describe(\"Travel distance in meters.\").nullable().optional(),\n}).passthrough().describe(\"Response model representing a ServiceM8 job activity record.\");\n\nexport const servicem8RetrieveJobActivity = action(\"SERVICEM8_RETRIEVE_JOB_ACTIVITY\", {\n slug: \"servicem8-retrieve-job-activity\",\n name: \"Retrieve Job Activity\",\n description: \"Tool to retrieve details of a specific job activity by its UUID. Use when you have the job activity UUID and need its full details.\",\n input: Servicem8RetrieveJobActivityInput,\n output: Servicem8RetrieveJobActivityOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"retrieve-job-activity.mjs","names":[],"sources":["../../src/actions/retrieve-job-activity.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 Servicem8RetrieveJobActivityInput = z.object({\n uuid: z.string().describe(\"UUID of the ServiceM8 job activity to retrieve\"),\n}).describe(\"Request model for retrieving a specific ServiceM8 job activity by UUID.\");\nexport const Servicem8RetrieveJobActivityOutput = z.object({\n uuid: z.string().describe(\"Unique identifier for the job activity.\").nullable(),\n active: z.number().int().describe(\"Record active flag: 1=active, 0=deleted.\").nullable(),\n end_date: z.string().describe(\"End time of the activity.\").nullable().optional(),\n job_uuid: z.string().describe(\"UUID of the associated job.\").nullable(),\n edit_date: z.string().describe(\"Timestamp of last modification.\").nullable().optional(),\n staff_uuid: z.string().describe(\"UUID of the staff member assigned to the activity.\").nullable(),\n start_date: z.string().describe(\"Start time of the activity.\").nullable().optional(),\n material_uuid: z.string().describe(\"UUID of associated material (if any).\").nullable().optional(),\n has_been_opened: z.union([z.number().int(), z.string()]).nullable().optional(),\n edit_by_staff_uuid: z.string().describe(\"UUID of staff who last edited the activity.\").nullable().optional(),\n allocated_timestamp: z.string().describe(\"Timestamp when the activity was allocated.\").nullable().optional(),\n activity_was_recorded: z.union([z.number().int(), z.string()]).nullable().optional(),\n activity_was_automated: z.union([z.number().int(), z.string()]).nullable().optional(),\n activity_was_scheduled: z.union([z.number().int(), z.string()]).nullable().optional(),\n travel_time_in_seconds: z.string().describe(\"Travel time in seconds.\").nullable().optional(),\n allocated_by_staff_uuid: z.string().describe(\"UUID of staff who allocated the activity.\").nullable().optional(),\n has_been_opened_timestamp: z.string().describe(\"Timestamp when the activity was opened.\").nullable().optional(),\n travel_distance_in_meters: z.string().describe(\"Travel distance in meters.\").nullable().optional(),\n}).passthrough().describe(\"Response model representing a ServiceM8 job activity record.\");\n\nexport const servicem8RetrieveJobActivity: AppAction<\n typeof Servicem8RetrieveJobActivityInput,\n typeof Servicem8RetrieveJobActivityOutput,\n typeof servicem8.credential\n> = action(\"SERVICEM8_RETRIEVE_JOB_ACTIVITY\", {\n slug: \"servicem8-retrieve-job-activity\",\n name: \"Retrieve Job Activity\",\n description: \"Tool to retrieve details of a specific job activity by its UUID. Use when you have the job activity UUID and need its full details.\",\n input: Servicem8RetrieveJobActivityInput,\n output: Servicem8RetrieveJobActivityOutput,\n});\n"],"mappings":";;;AA8BA,MAAa,+BAIT,OAAO,mCAAmC;CAC5C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhC+C,EAAE,OAAO,EACxD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,EAC5E,CAAC,CAAC,CAAC,SAAS,yEA8BH;CACP,QA9BgD,EAAE,OAAO;EACzD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;EAC9E,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;EACvF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/E,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;EACtE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;EAC/F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnF,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChG,iBAAiB,EAAE,MAAM,CAAC,EAAE,OAAO,CAAC,CAAC,IAAI,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7E,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3G,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3G,uBAAuB,EAAE,MAAM,CAAC,EAAE,OAAO,CAAC,CAAC,IAAI,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnF,wBAAwB,EAAE,MAAM,CAAC,EAAE,OAAO,CAAC,CAAC,IAAI,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpF,wBAAwB,EAAE,MAAM,CAAC,EAAE,OAAO,CAAC,CAAC,IAAI,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpF,wBAAwB,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3F,yBAAyB,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9G,2BAA2B,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9G,2BAA2B,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8DAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"retrieve-job-note.cjs","names":["z","action"],"sources":["../../src/actions/retrieve-job-note.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8RetrieveJobNoteInput = z.object({\n uuid: z.string().describe(\"UUID of the job note to retrieve. You can obtain this from the 'List All Job Notes' action.\"),\n}).describe(\"Request model for retrieving a ServiceM8 job note by its UUID.\");\nexport const Servicem8RetrieveJobNoteOutput = z.object({\n note: z.string().describe(\"Text content of the note.\").nullable().optional(),\n uuid: z.string().describe(\"Unique identifier for this note.\").nullable(),\n active: z.number().int().describe(\"Record active flag: 1 = active, 0 = deleted/archived.\").nullable(),\n edit_date: z.string().describe(\"Timestamp when the note was last modified (YYYY-MM-DD HH:MM:SS).\").nullable().optional(),\n create_date: z.string().describe(\"Timestamp when the note was created (YYYY-MM-DD HH:MM:SS).\").nullable().optional(),\n related_object: z.string().describe(\"Type of object this note is attached to (e.g., 'job').\").nullable().optional(),\n edit_by_staff_uuid: z.string().describe(\"UUID of the staff member who last edited this note.\").nullable().optional(),\n related_object_uuid: z.string().describe(\"UUID of the job (or other object) this note is attached to.\").nullable().optional(),\n}).passthrough().describe(\"Response model representing a ServiceM8 job note record.\");\n\nexport const servicem8RetrieveJobNote = action(\"SERVICEM8_RETRIEVE_JOB_NOTE\", {\n slug: \"servicem8-retrieve-job-note\",\n name: \"Retrieve Job Note\",\n description: \"Retrieve the full details of a specific job note by its UUID. Use this action when you have a note UUID (e.g., from listing job notes) and need to view its complete record including content, timestamps, and the associated job reference.\",\n input: Servicem8RetrieveJobNoteInput,\n output: Servicem8RetrieveJobNoteOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"retrieve-job-note.cjs","names":["z","action"],"sources":["../../src/actions/retrieve-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 Servicem8RetrieveJobNoteInput = z.object({\n uuid: z.string().describe(\"UUID of the job note to retrieve. You can obtain this from the 'List All Job Notes' action.\"),\n}).describe(\"Request model for retrieving a ServiceM8 job note by its UUID.\");\nexport const Servicem8RetrieveJobNoteOutput = z.object({\n note: z.string().describe(\"Text content of the note.\").nullable().optional(),\n uuid: z.string().describe(\"Unique identifier for this note.\").nullable(),\n active: z.number().int().describe(\"Record active flag: 1 = active, 0 = deleted/archived.\").nullable(),\n edit_date: z.string().describe(\"Timestamp when the note was last modified (YYYY-MM-DD HH:MM:SS).\").nullable().optional(),\n create_date: z.string().describe(\"Timestamp when the note was created (YYYY-MM-DD HH:MM:SS).\").nullable().optional(),\n related_object: z.string().describe(\"Type of object this note is attached to (e.g., 'job').\").nullable().optional(),\n edit_by_staff_uuid: z.string().describe(\"UUID of the staff member who last edited this note.\").nullable().optional(),\n related_object_uuid: z.string().describe(\"UUID of the job (or other object) this note is attached to.\").nullable().optional(),\n}).passthrough().describe(\"Response model representing a ServiceM8 job note record.\");\n\nexport const servicem8RetrieveJobNote: AppAction<\n typeof Servicem8RetrieveJobNoteInput,\n typeof Servicem8RetrieveJobNoteOutput,\n typeof servicem8.credential\n> = action(\"SERVICEM8_RETRIEVE_JOB_NOTE\", {\n slug: \"servicem8-retrieve-job-note\",\n name: \"Retrieve Job Note\",\n description: \"Retrieve the full details of a specific job note by its UUID. Use this action when you have a note UUID (e.g., from listing job notes) and need to view its complete record including content, timestamps, and the associated job reference.\",\n input: Servicem8RetrieveJobNoteInput,\n output: Servicem8RetrieveJobNoteOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO,EACpD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6FAA6F,EACzH,CAAC,CAAC,CAAC,SAAS,gEAAgE;AAC5E,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CACvE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CACpG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvH,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnH,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClH,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnH,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0DAA0D;AAEpF,MAAa,2BAITC,eAAAA,OAAO,+BAA+B;CACxC,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/retrieve-job-note.d.ts
|
|
@@ -14,9 +16,7 @@ declare const Servicem8RetrieveJobNoteOutput: z.ZodObject<{
|
|
|
14
16
|
edit_by_staff_uuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
17
|
related_object_uuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
18
|
}, z.core.$loose>;
|
|
17
|
-
declare const servicem8RetrieveJobNote:
|
|
18
|
-
uuid: string;
|
|
19
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
19
|
+
declare const servicem8RetrieveJobNote: AppAction<typeof Servicem8RetrieveJobNoteInput, typeof Servicem8RetrieveJobNoteOutput, typeof servicem8.credential>;
|
|
20
20
|
//#endregion
|
|
21
21
|
export { servicem8RetrieveJobNote };
|
|
22
22
|
//# sourceMappingURL=retrieve-job-note.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"retrieve-job-note.d.cts","names":[],"sources":["../../src/actions/retrieve-job-note.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"retrieve-job-note.d.cts","names":[],"sources":["../../src/actions/retrieve-job-note.ts"],"mappings":";;;;;cAMa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;cAG7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;cAW9B,wBAAA,EAA0B,SAAA,QAC9B,6BAAA,SACA,8BAAA,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/retrieve-job-note.d.ts
|
|
@@ -14,9 +16,7 @@ declare const Servicem8RetrieveJobNoteOutput: z.ZodObject<{
|
|
|
14
16
|
edit_by_staff_uuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
17
|
related_object_uuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
18
|
}, z.core.$loose>;
|
|
17
|
-
declare const servicem8RetrieveJobNote:
|
|
18
|
-
uuid: string;
|
|
19
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
19
|
+
declare const servicem8RetrieveJobNote: AppAction<typeof Servicem8RetrieveJobNoteInput, typeof Servicem8RetrieveJobNoteOutput, typeof servicem8.credential>;
|
|
20
20
|
//#endregion
|
|
21
21
|
export { servicem8RetrieveJobNote };
|
|
22
22
|
//# sourceMappingURL=retrieve-job-note.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"retrieve-job-note.d.mts","names":[],"sources":["../../src/actions/retrieve-job-note.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"retrieve-job-note.d.mts","names":[],"sources":["../../src/actions/retrieve-job-note.ts"],"mappings":";;;;;cAMa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;cAG7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;cAW9B,wBAAA,EAA0B,SAAA,QAC9B,6BAAA,SACA,8BAAA,SACA,SAAA,CAAU,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"retrieve-job-note.mjs","names":[],"sources":["../../src/actions/retrieve-job-note.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8RetrieveJobNoteInput = z.object({\n uuid: z.string().describe(\"UUID of the job note to retrieve. You can obtain this from the 'List All Job Notes' action.\"),\n}).describe(\"Request model for retrieving a ServiceM8 job note by its UUID.\");\nexport const Servicem8RetrieveJobNoteOutput = z.object({\n note: z.string().describe(\"Text content of the note.\").nullable().optional(),\n uuid: z.string().describe(\"Unique identifier for this note.\").nullable(),\n active: z.number().int().describe(\"Record active flag: 1 = active, 0 = deleted/archived.\").nullable(),\n edit_date: z.string().describe(\"Timestamp when the note was last modified (YYYY-MM-DD HH:MM:SS).\").nullable().optional(),\n create_date: z.string().describe(\"Timestamp when the note was created (YYYY-MM-DD HH:MM:SS).\").nullable().optional(),\n related_object: z.string().describe(\"Type of object this note is attached to (e.g., 'job').\").nullable().optional(),\n edit_by_staff_uuid: z.string().describe(\"UUID of the staff member who last edited this note.\").nullable().optional(),\n related_object_uuid: z.string().describe(\"UUID of the job (or other object) this note is attached to.\").nullable().optional(),\n}).passthrough().describe(\"Response model representing a ServiceM8 job note record.\");\n\nexport const servicem8RetrieveJobNote = action(\"SERVICEM8_RETRIEVE_JOB_NOTE\", {\n slug: \"servicem8-retrieve-job-note\",\n name: \"Retrieve Job Note\",\n description: \"Retrieve the full details of a specific job note by its UUID. Use this action when you have a note UUID (e.g., from listing job notes) and need to view its complete record including content, timestamps, and the associated job reference.\",\n input: Servicem8RetrieveJobNoteInput,\n output: Servicem8RetrieveJobNoteOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"retrieve-job-note.mjs","names":[],"sources":["../../src/actions/retrieve-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 Servicem8RetrieveJobNoteInput = z.object({\n uuid: z.string().describe(\"UUID of the job note to retrieve. You can obtain this from the 'List All Job Notes' action.\"),\n}).describe(\"Request model for retrieving a ServiceM8 job note by its UUID.\");\nexport const Servicem8RetrieveJobNoteOutput = z.object({\n note: z.string().describe(\"Text content of the note.\").nullable().optional(),\n uuid: z.string().describe(\"Unique identifier for this note.\").nullable(),\n active: z.number().int().describe(\"Record active flag: 1 = active, 0 = deleted/archived.\").nullable(),\n edit_date: z.string().describe(\"Timestamp when the note was last modified (YYYY-MM-DD HH:MM:SS).\").nullable().optional(),\n create_date: z.string().describe(\"Timestamp when the note was created (YYYY-MM-DD HH:MM:SS).\").nullable().optional(),\n related_object: z.string().describe(\"Type of object this note is attached to (e.g., 'job').\").nullable().optional(),\n edit_by_staff_uuid: z.string().describe(\"UUID of the staff member who last edited this note.\").nullable().optional(),\n related_object_uuid: z.string().describe(\"UUID of the job (or other object) this note is attached to.\").nullable().optional(),\n}).passthrough().describe(\"Response model representing a ServiceM8 job note record.\");\n\nexport const servicem8RetrieveJobNote: AppAction<\n typeof Servicem8RetrieveJobNoteInput,\n typeof Servicem8RetrieveJobNoteOutput,\n typeof servicem8.credential\n> = action(\"SERVICEM8_RETRIEVE_JOB_NOTE\", {\n slug: \"servicem8-retrieve-job-note\",\n name: \"Retrieve Job Note\",\n description: \"Retrieve the full details of a specific job note by its UUID. Use this action when you have a note UUID (e.g., from listing job notes) and need to view its complete record including content, timestamps, and the associated job reference.\",\n input: Servicem8RetrieveJobNoteInput,\n output: Servicem8RetrieveJobNoteOutput,\n});\n"],"mappings":";;;AAoBA,MAAa,2BAIT,OAAO,+BAA+B;CACxC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAtB2C,EAAE,OAAO,EACpD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6FAA6F,EACzH,CAAC,CAAC,CAAC,SAAS,gEAoBH;CACP,QApB4C,EAAE,OAAO;EACrD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;EACvE,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;EACpG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvH,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnH,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClH,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnH,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0DAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"retrieve-job-payment.cjs","names":["z","action"],"sources":["../../src/actions/retrieve-job-payment.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8RetrieveJobPaymentInput = z.object({\n uuid: z.string().describe(\"The unique identifier (UUID) of the job payment record to retrieve. This is a 36-character UUID string (e.g., '550e8400-e29b-41d4-a716-446655440000').\"),\n}).describe(\"Request model for retrieving a ServiceM8 Job Payment by UUID.\");\nexport const Servicem8RetrieveJobPaymentOutput = z.object({\n note: z.string().describe(\"Optional note or description for this payment.\").nullable().optional(),\n uuid: z.string().describe(\"Unique identifier (UUID) for this job payment record.\").nullable(),\n active: z.number().int().describe(\"Record active/deleted flag. 1 = active, 0 = deleted/archived.\").nullable().optional(),\n amount: z.string().describe(\"Payment amount as a decimal string (e.g., '100.00'). Preserves precision for currency values.\").nullable(),\n method: z.string().describe(\"Payment method used (e.g., 'cash', 'credit_card', 'cheque', 'eft').\").nullable(),\n job_uuid: z.string().describe(\"UUID of the job this payment is associated with.\").nullable(),\n edit_date: z.string().describe(\"Timestamp when this record was last modified, in 'YYYY-MM-DD HH:MM:SS' format.\").nullable().optional(),\n timestamp: z.string().describe(\"Timestamp when the payment was recorded, in 'YYYY-MM-DD HH:MM:SS' format (24-hour time).\").nullable(),\n is_deposit: z.number().int().describe(\"Flag indicating if this payment is a deposit (1) or a regular payment (0).\").nullable().optional(),\n attachment_uuid: z.string().describe(\"UUID of any attachment (e.g., receipt) associated with this payment.\").nullable().optional(),\n actioned_by_uuid: z.string().describe(\"UUID of the staff member who processed this payment.\").nullable().optional(),\n}).passthrough().describe(\"Response model representing a ServiceM8 Job Payment record.\");\n\nexport const servicem8RetrieveJobPayment = action(\"SERVICEM8_RETRIEVE_JOB_PAYMENT\", {\n slug: \"servicem8-retrieve-job-payment\",\n name: \"Retrieve Job Payment\",\n description: \"Retrieve a specific job payment record from ServiceM8 by its UUID. Use this tool when you need to: - Get full details of a specific payment (amount, method, timestamp, notes) - Check if a payment is a deposit or regular payment - View which staff member processed a payment - Verify payment information for a job Prerequisites: You need the job payment UUID, which can be obtained from the 'List All Job Payments' action or from creating a new job payment.\",\n input: Servicem8RetrieveJobPaymentInput,\n output: Servicem8RetrieveJobPaymentOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"retrieve-job-payment.cjs","names":["z","action"],"sources":["../../src/actions/retrieve-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 Servicem8RetrieveJobPaymentInput = z.object({\n uuid: z.string().describe(\"The unique identifier (UUID) of the job payment record to retrieve. This is a 36-character UUID string (e.g., '550e8400-e29b-41d4-a716-446655440000').\"),\n}).describe(\"Request model for retrieving a ServiceM8 Job Payment by UUID.\");\nexport const Servicem8RetrieveJobPaymentOutput = z.object({\n note: z.string().describe(\"Optional note or description for this payment.\").nullable().optional(),\n uuid: z.string().describe(\"Unique identifier (UUID) for this job payment record.\").nullable(),\n active: z.number().int().describe(\"Record active/deleted flag. 1 = active, 0 = deleted/archived.\").nullable().optional(),\n amount: z.string().describe(\"Payment amount as a decimal string (e.g., '100.00'). Preserves precision for currency values.\").nullable(),\n method: z.string().describe(\"Payment method used (e.g., 'cash', 'credit_card', 'cheque', 'eft').\").nullable(),\n job_uuid: z.string().describe(\"UUID of the job this payment is associated with.\").nullable(),\n edit_date: z.string().describe(\"Timestamp when this record was last modified, in 'YYYY-MM-DD HH:MM:SS' format.\").nullable().optional(),\n timestamp: z.string().describe(\"Timestamp when the payment was recorded, in 'YYYY-MM-DD HH:MM:SS' format (24-hour time).\").nullable(),\n is_deposit: z.number().int().describe(\"Flag indicating if this payment is a deposit (1) or a regular payment (0).\").nullable().optional(),\n attachment_uuid: z.string().describe(\"UUID of any attachment (e.g., receipt) associated with this payment.\").nullable().optional(),\n actioned_by_uuid: z.string().describe(\"UUID of the staff member who processed this payment.\").nullable().optional(),\n}).passthrough().describe(\"Response model representing a ServiceM8 Job Payment record.\");\n\nexport const servicem8RetrieveJobPayment: AppAction<\n typeof Servicem8RetrieveJobPaymentInput,\n typeof Servicem8RetrieveJobPaymentOutput,\n typeof servicem8.credential\n> = action(\"SERVICEM8_RETRIEVE_JOB_PAYMENT\", {\n slug: \"servicem8-retrieve-job-payment\",\n name: \"Retrieve Job Payment\",\n description: \"Retrieve a specific job payment record from ServiceM8 by its UUID. Use this tool when you need to: - Get full details of a specific payment (amount, method, timestamp, notes) - Check if a payment is a deposit or regular payment - View which staff member processed a payment - Verify payment information for a job Prerequisites: You need the job payment UUID, which can be obtained from the 'List All Job Payments' action or from creating a new job payment.\",\n input: Servicem8RetrieveJobPaymentInput,\n output: Servicem8RetrieveJobPaymentOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,mCAAmCA,IAAAA,EAAE,OAAO,EACvD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wJAAwJ,EACpL,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAa,oCAAoCA,IAAAA,EAAE,OAAO;CACxD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAC5F,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvH,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+FAA+F,CAAC,CAAC,SAAS;CACtI,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CAC5G,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CAC3F,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrI,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0FAA0F,CAAC,CAAC,SAAS;CACpI,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxI,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjI,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6DAA6D;AAEvF,MAAa,8BAITC,eAAAA,OAAO,kCAAkC;CAC3C,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/retrieve-job-payment.d.ts
|
|
@@ -17,9 +19,7 @@ declare const Servicem8RetrieveJobPaymentOutput: z.ZodObject<{
|
|
|
17
19
|
attachment_uuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
20
|
actioned_by_uuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
21
|
}, z.core.$loose>;
|
|
20
|
-
declare const servicem8RetrieveJobPayment:
|
|
21
|
-
uuid: string;
|
|
22
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
22
|
+
declare const servicem8RetrieveJobPayment: AppAction<typeof Servicem8RetrieveJobPaymentInput, typeof Servicem8RetrieveJobPaymentOutput, typeof servicem8.credential>;
|
|
23
23
|
//#endregion
|
|
24
24
|
export { servicem8RetrieveJobPayment };
|
|
25
25
|
//# sourceMappingURL=retrieve-job-payment.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"retrieve-job-payment.d.cts","names":[],"sources":["../../src/actions/retrieve-job-payment.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"retrieve-job-payment.d.cts","names":[],"sources":["../../src/actions/retrieve-job-payment.ts"],"mappings":";;;;;cAMa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;cAGhC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAcjC,2BAAA,EAA6B,SAAA,QACjC,gCAAA,SACA,iCAAA,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/retrieve-job-payment.d.ts
|
|
@@ -17,9 +19,7 @@ declare const Servicem8RetrieveJobPaymentOutput: z.ZodObject<{
|
|
|
17
19
|
attachment_uuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
20
|
actioned_by_uuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
21
|
}, z.core.$loose>;
|
|
20
|
-
declare const servicem8RetrieveJobPayment:
|
|
21
|
-
uuid: string;
|
|
22
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
22
|
+
declare const servicem8RetrieveJobPayment: AppAction<typeof Servicem8RetrieveJobPaymentInput, typeof Servicem8RetrieveJobPaymentOutput, typeof servicem8.credential>;
|
|
23
23
|
//#endregion
|
|
24
24
|
export { servicem8RetrieveJobPayment };
|
|
25
25
|
//# sourceMappingURL=retrieve-job-payment.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"retrieve-job-payment.d.mts","names":[],"sources":["../../src/actions/retrieve-job-payment.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"retrieve-job-payment.d.mts","names":[],"sources":["../../src/actions/retrieve-job-payment.ts"],"mappings":";;;;;cAMa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;cAGhC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAcjC,2BAAA,EAA6B,SAAA,QACjC,gCAAA,SACA,iCAAA,SACA,SAAA,CAAU,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"retrieve-job-payment.mjs","names":[],"sources":["../../src/actions/retrieve-job-payment.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8RetrieveJobPaymentInput = z.object({\n uuid: z.string().describe(\"The unique identifier (UUID) of the job payment record to retrieve. This is a 36-character UUID string (e.g., '550e8400-e29b-41d4-a716-446655440000').\"),\n}).describe(\"Request model for retrieving a ServiceM8 Job Payment by UUID.\");\nexport const Servicem8RetrieveJobPaymentOutput = z.object({\n note: z.string().describe(\"Optional note or description for this payment.\").nullable().optional(),\n uuid: z.string().describe(\"Unique identifier (UUID) for this job payment record.\").nullable(),\n active: z.number().int().describe(\"Record active/deleted flag. 1 = active, 0 = deleted/archived.\").nullable().optional(),\n amount: z.string().describe(\"Payment amount as a decimal string (e.g., '100.00'). Preserves precision for currency values.\").nullable(),\n method: z.string().describe(\"Payment method used (e.g., 'cash', 'credit_card', 'cheque', 'eft').\").nullable(),\n job_uuid: z.string().describe(\"UUID of the job this payment is associated with.\").nullable(),\n edit_date: z.string().describe(\"Timestamp when this record was last modified, in 'YYYY-MM-DD HH:MM:SS' format.\").nullable().optional(),\n timestamp: z.string().describe(\"Timestamp when the payment was recorded, in 'YYYY-MM-DD HH:MM:SS' format (24-hour time).\").nullable(),\n is_deposit: z.number().int().describe(\"Flag indicating if this payment is a deposit (1) or a regular payment (0).\").nullable().optional(),\n attachment_uuid: z.string().describe(\"UUID of any attachment (e.g., receipt) associated with this payment.\").nullable().optional(),\n actioned_by_uuid: z.string().describe(\"UUID of the staff member who processed this payment.\").nullable().optional(),\n}).passthrough().describe(\"Response model representing a ServiceM8 Job Payment record.\");\n\nexport const servicem8RetrieveJobPayment = action(\"SERVICEM8_RETRIEVE_JOB_PAYMENT\", {\n slug: \"servicem8-retrieve-job-payment\",\n name: \"Retrieve Job Payment\",\n description: \"Retrieve a specific job payment record from ServiceM8 by its UUID. Use this tool when you need to: - Get full details of a specific payment (amount, method, timestamp, notes) - Check if a payment is a deposit or regular payment - View which staff member processed a payment - Verify payment information for a job Prerequisites: You need the job payment UUID, which can be obtained from the 'List All Job Payments' action or from creating a new job payment.\",\n input: Servicem8RetrieveJobPaymentInput,\n output: Servicem8RetrieveJobPaymentOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"retrieve-job-payment.mjs","names":[],"sources":["../../src/actions/retrieve-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 Servicem8RetrieveJobPaymentInput = z.object({\n uuid: z.string().describe(\"The unique identifier (UUID) of the job payment record to retrieve. This is a 36-character UUID string (e.g., '550e8400-e29b-41d4-a716-446655440000').\"),\n}).describe(\"Request model for retrieving a ServiceM8 Job Payment by UUID.\");\nexport const Servicem8RetrieveJobPaymentOutput = z.object({\n note: z.string().describe(\"Optional note or description for this payment.\").nullable().optional(),\n uuid: z.string().describe(\"Unique identifier (UUID) for this job payment record.\").nullable(),\n active: z.number().int().describe(\"Record active/deleted flag. 1 = active, 0 = deleted/archived.\").nullable().optional(),\n amount: z.string().describe(\"Payment amount as a decimal string (e.g., '100.00'). Preserves precision for currency values.\").nullable(),\n method: z.string().describe(\"Payment method used (e.g., 'cash', 'credit_card', 'cheque', 'eft').\").nullable(),\n job_uuid: z.string().describe(\"UUID of the job this payment is associated with.\").nullable(),\n edit_date: z.string().describe(\"Timestamp when this record was last modified, in 'YYYY-MM-DD HH:MM:SS' format.\").nullable().optional(),\n timestamp: z.string().describe(\"Timestamp when the payment was recorded, in 'YYYY-MM-DD HH:MM:SS' format (24-hour time).\").nullable(),\n is_deposit: z.number().int().describe(\"Flag indicating if this payment is a deposit (1) or a regular payment (0).\").nullable().optional(),\n attachment_uuid: z.string().describe(\"UUID of any attachment (e.g., receipt) associated with this payment.\").nullable().optional(),\n actioned_by_uuid: z.string().describe(\"UUID of the staff member who processed this payment.\").nullable().optional(),\n}).passthrough().describe(\"Response model representing a ServiceM8 Job Payment record.\");\n\nexport const servicem8RetrieveJobPayment: AppAction<\n typeof Servicem8RetrieveJobPaymentInput,\n typeof Servicem8RetrieveJobPaymentOutput,\n typeof servicem8.credential\n> = action(\"SERVICEM8_RETRIEVE_JOB_PAYMENT\", {\n slug: \"servicem8-retrieve-job-payment\",\n name: \"Retrieve Job Payment\",\n description: \"Retrieve a specific job payment record from ServiceM8 by its UUID. Use this tool when you need to: - Get full details of a specific payment (amount, method, timestamp, notes) - Check if a payment is a deposit or regular payment - View which staff member processed a payment - Verify payment information for a job Prerequisites: You need the job payment UUID, which can be obtained from the 'List All Job Payments' action or from creating a new job payment.\",\n input: Servicem8RetrieveJobPaymentInput,\n output: Servicem8RetrieveJobPaymentOutput,\n});\n"],"mappings":";;;AAuBA,MAAa,8BAIT,OAAO,kCAAkC;CAC3C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAzB8C,EAAE,OAAO,EACvD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wJAAwJ,EACpL,CAAC,CAAC,CAAC,SAAS,+DAuBH;CACP,QAvB+C,EAAE,OAAO;EACxD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChG,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;EAC5F,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvH,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,+FAA+F,CAAC,CAAC,SAAS;EACtI,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;EAC5G,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;EAC3F,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrI,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,0FAA0F,CAAC,CAAC,SAAS;EACpI,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxI,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjI,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6DAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"retrieve-job-queue.cjs","names":["z","action"],"sources":["../../src/actions/retrieve-job-queue.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8RetrieveJobQueueInput = z.object({\n uuid: z.string().describe(\"UUID of the job queue to retrieve.\"),\n}).describe(\"Request model for retrieving a ServiceM8 job queue by UUID.\");\nexport const Servicem8RetrieveJobQueueOutput = z.object({\n name: z.string().describe(\"Name of the job queue.\").nullable(),\n uuid: z.string().describe(\"Unique identifier of the job queue.\").nullable(),\n active: z.number().int().describe(\"1 if the queue is active; 0 if archived.\").nullable(),\n edit_date: z.string().describe(\"Last edit date of the queue in YYYY-MM-DD HH:MM:SS format.\").nullable(),\n subscribed_staff: z.string().describe(\"Comma-separated list of staff UUIDs subscribed to the queue.\").nullable().optional(),\n default_timeframe: z.number().int().describe(\"Default timeframe for the queue in days.\").nullable(),\n requires_assignment: z.number().int().describe(\"1 if the queue requires assignment; 0 otherwise.\").nullable(),\n}).passthrough().describe(\"Response model representing a ServiceM8 job queue record.\");\n\nexport const servicem8RetrieveJobQueue = action(\"SERVICEM8_RETRIEVE_JOB_QUEUE\", {\n slug: \"servicem8-retrieve-job-queue\",\n name: \"Retrieve Job Queue\",\n description: \"Tool to retrieve details of a specific job queue by its UUID. Use when you need full queue metadata before dispatching work.\",\n input: Servicem8RetrieveJobQueueInput,\n output: Servicem8RetrieveJobQueueOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"retrieve-job-queue.cjs","names":["z","action"],"sources":["../../src/actions/retrieve-job-queue.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 Servicem8RetrieveJobQueueInput = z.object({\n uuid: z.string().describe(\"UUID of the job queue to retrieve.\"),\n}).describe(\"Request model for retrieving a ServiceM8 job queue by UUID.\");\nexport const Servicem8RetrieveJobQueueOutput = z.object({\n name: z.string().describe(\"Name of the job queue.\").nullable(),\n uuid: z.string().describe(\"Unique identifier of the job queue.\").nullable(),\n active: z.number().int().describe(\"1 if the queue is active; 0 if archived.\").nullable(),\n edit_date: z.string().describe(\"Last edit date of the queue in YYYY-MM-DD HH:MM:SS format.\").nullable(),\n subscribed_staff: z.string().describe(\"Comma-separated list of staff UUIDs subscribed to the queue.\").nullable().optional(),\n default_timeframe: z.number().int().describe(\"Default timeframe for the queue in days.\").nullable(),\n requires_assignment: z.number().int().describe(\"1 if the queue requires assignment; 0 otherwise.\").nullable(),\n}).passthrough().describe(\"Response model representing a ServiceM8 job queue record.\");\n\nexport const servicem8RetrieveJobQueue: AppAction<\n typeof Servicem8RetrieveJobQueueInput,\n typeof Servicem8RetrieveJobQueueOutput,\n typeof servicem8.credential\n> = action(\"SERVICEM8_RETRIEVE_JOB_QUEUE\", {\n slug: \"servicem8-retrieve-job-queue\",\n name: \"Retrieve Job Queue\",\n description: \"Tool to retrieve details of a specific job queue by its UUID. Use when you need full queue metadata before dispatching work.\",\n input: Servicem8RetrieveJobQueueInput,\n output: Servicem8RetrieveJobQueueOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO,EACrD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,EAChE,CAAC,CAAC,CAAC,SAAS,6DAA6D;AACzE,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CAC7D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC1E,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACvF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACtG,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1H,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAClG,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;AAC9G,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/retrieve-job-queue.d.ts
|
|
@@ -13,9 +15,7 @@ declare const Servicem8RetrieveJobQueueOutput: z.ZodObject<{
|
|
|
13
15
|
default_timeframe: z.ZodNullable<z.ZodNumber>;
|
|
14
16
|
requires_assignment: z.ZodNullable<z.ZodNumber>;
|
|
15
17
|
}, z.core.$loose>;
|
|
16
|
-
declare const servicem8RetrieveJobQueue:
|
|
17
|
-
uuid: string;
|
|
18
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
18
|
+
declare const servicem8RetrieveJobQueue: AppAction<typeof Servicem8RetrieveJobQueueInput, typeof Servicem8RetrieveJobQueueOutput, typeof servicem8.credential>;
|
|
19
19
|
//#endregion
|
|
20
20
|
export { servicem8RetrieveJobQueue };
|
|
21
21
|
//# sourceMappingURL=retrieve-job-queue.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"retrieve-job-queue.d.cts","names":[],"sources":["../../src/actions/retrieve-job-queue.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"retrieve-job-queue.d.cts","names":[],"sources":["../../src/actions/retrieve-job-queue.ts"],"mappings":";;;;;cAMa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;cAG9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;cAU/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/retrieve-job-queue.d.ts
|
|
@@ -13,9 +15,7 @@ declare const Servicem8RetrieveJobQueueOutput: z.ZodObject<{
|
|
|
13
15
|
default_timeframe: z.ZodNullable<z.ZodNumber>;
|
|
14
16
|
requires_assignment: z.ZodNullable<z.ZodNumber>;
|
|
15
17
|
}, z.core.$loose>;
|
|
16
|
-
declare const servicem8RetrieveJobQueue:
|
|
17
|
-
uuid: string;
|
|
18
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
18
|
+
declare const servicem8RetrieveJobQueue: AppAction<typeof Servicem8RetrieveJobQueueInput, typeof Servicem8RetrieveJobQueueOutput, typeof servicem8.credential>;
|
|
19
19
|
//#endregion
|
|
20
20
|
export { servicem8RetrieveJobQueue };
|
|
21
21
|
//# sourceMappingURL=retrieve-job-queue.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"retrieve-job-queue.d.mts","names":[],"sources":["../../src/actions/retrieve-job-queue.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"retrieve-job-queue.d.mts","names":[],"sources":["../../src/actions/retrieve-job-queue.ts"],"mappings":";;;;;cAMa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;cAG9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;cAU/B,yBAAA,EAA2B,SAAA,QAC/B,8BAAA,SACA,+BAAA,SACA,SAAA,CAAU,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"retrieve-job-queue.mjs","names":[],"sources":["../../src/actions/retrieve-job-queue.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8RetrieveJobQueueInput = z.object({\n uuid: z.string().describe(\"UUID of the job queue to retrieve.\"),\n}).describe(\"Request model for retrieving a ServiceM8 job queue by UUID.\");\nexport const Servicem8RetrieveJobQueueOutput = z.object({\n name: z.string().describe(\"Name of the job queue.\").nullable(),\n uuid: z.string().describe(\"Unique identifier of the job queue.\").nullable(),\n active: z.number().int().describe(\"1 if the queue is active; 0 if archived.\").nullable(),\n edit_date: z.string().describe(\"Last edit date of the queue in YYYY-MM-DD HH:MM:SS format.\").nullable(),\n subscribed_staff: z.string().describe(\"Comma-separated list of staff UUIDs subscribed to the queue.\").nullable().optional(),\n default_timeframe: z.number().int().describe(\"Default timeframe for the queue in days.\").nullable(),\n requires_assignment: z.number().int().describe(\"1 if the queue requires assignment; 0 otherwise.\").nullable(),\n}).passthrough().describe(\"Response model representing a ServiceM8 job queue record.\");\n\nexport const servicem8RetrieveJobQueue = action(\"SERVICEM8_RETRIEVE_JOB_QUEUE\", {\n slug: \"servicem8-retrieve-job-queue\",\n name: \"Retrieve Job Queue\",\n description: \"Tool to retrieve details of a specific job queue by its UUID. Use when you need full queue metadata before dispatching work.\",\n input: Servicem8RetrieveJobQueueInput,\n output: Servicem8RetrieveJobQueueOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"retrieve-job-queue.mjs","names":[],"sources":["../../src/actions/retrieve-job-queue.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 Servicem8RetrieveJobQueueInput = z.object({\n uuid: z.string().describe(\"UUID of the job queue to retrieve.\"),\n}).describe(\"Request model for retrieving a ServiceM8 job queue by UUID.\");\nexport const Servicem8RetrieveJobQueueOutput = z.object({\n name: z.string().describe(\"Name of the job queue.\").nullable(),\n uuid: z.string().describe(\"Unique identifier of the job queue.\").nullable(),\n active: z.number().int().describe(\"1 if the queue is active; 0 if archived.\").nullable(),\n edit_date: z.string().describe(\"Last edit date of the queue in YYYY-MM-DD HH:MM:SS format.\").nullable(),\n subscribed_staff: z.string().describe(\"Comma-separated list of staff UUIDs subscribed to the queue.\").nullable().optional(),\n default_timeframe: z.number().int().describe(\"Default timeframe for the queue in days.\").nullable(),\n requires_assignment: z.number().int().describe(\"1 if the queue requires assignment; 0 otherwise.\").nullable(),\n}).passthrough().describe(\"Response model representing a ServiceM8 job queue record.\");\n\nexport const servicem8RetrieveJobQueue: AppAction<\n typeof Servicem8RetrieveJobQueueInput,\n typeof Servicem8RetrieveJobQueueOutput,\n typeof servicem8.credential\n> = action(\"SERVICEM8_RETRIEVE_JOB_QUEUE\", {\n slug: \"servicem8-retrieve-job-queue\",\n name: \"Retrieve Job Queue\",\n description: \"Tool to retrieve details of a specific job queue by its UUID. Use when you need full queue metadata before dispatching work.\",\n input: Servicem8RetrieveJobQueueInput,\n output: Servicem8RetrieveJobQueueOutput,\n});\n"],"mappings":";;;AAmBA,MAAa,4BAIT,OAAO,gCAAgC;CACzC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OArB4C,EAAE,OAAO,EACrD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,EAChE,CAAC,CAAC,CAAC,SAAS,6DAmBH;CACP,QAnB6C,EAAE,OAAO;EACtD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;EAC7D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EAC1E,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;EACvF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;EACtG,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1H,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;EAClG,qBAAqB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CAC9G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2DAWhB;AACV,CAAC"}
|