@keystrokehq/servicem8 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions/create-job-note.cjs +1 -1
- package/dist/actions/create-job-note.cjs.map +1 -1
- package/dist/actions/create-job-note.d.cts +1 -1
- package/dist/actions/create-job-note.d.mts +1 -1
- package/dist/actions/create-job-note.mjs +1 -1
- package/dist/actions/create-job-note.mjs.map +1 -1
- package/dist/actions/create-job-payment.cjs +1 -1
- package/dist/actions/create-job-payment.cjs.map +1 -1
- package/dist/actions/create-job-payment.d.cts +1 -1
- package/dist/actions/create-job-payment.d.mts +1 -1
- package/dist/actions/create-job-payment.mjs +1 -1
- package/dist/actions/create-job-payment.mjs.map +1 -1
- package/dist/actions/create-jobs.cjs +1 -1
- package/dist/actions/create-jobs.cjs.map +1 -1
- package/dist/actions/create-jobs.d.cts +1 -1
- package/dist/actions/create-jobs.d.mts +1 -1
- package/dist/actions/create-jobs.mjs +1 -1
- package/dist/actions/create-jobs.mjs.map +1 -1
- package/dist/actions/delete-custom-field.cjs +1 -1
- package/dist/actions/delete-custom-field.cjs.map +1 -1
- package/dist/actions/delete-custom-field.d.cts +1 -1
- package/dist/actions/delete-custom-field.d.mts +1 -1
- package/dist/actions/delete-custom-field.mjs +1 -1
- package/dist/actions/delete-custom-field.mjs.map +1 -1
- package/dist/actions/delete-job-note.cjs +1 -1
- package/dist/actions/delete-job-note.cjs.map +1 -1
- package/dist/actions/delete-job-note.d.cts +1 -1
- package/dist/actions/delete-job-note.d.mts +1 -1
- package/dist/actions/delete-job-note.mjs +1 -1
- package/dist/actions/delete-job-note.mjs.map +1 -1
- package/dist/actions/delete-job-payment.cjs +1 -1
- package/dist/actions/delete-job-payment.cjs.map +1 -1
- package/dist/actions/delete-job-payment.d.cts +1 -1
- package/dist/actions/delete-job-payment.d.mts +1 -1
- package/dist/actions/delete-job-payment.mjs +1 -1
- package/dist/actions/delete-job-payment.mjs.map +1 -1
- package/dist/actions/list-all-job-notes.cjs +2 -2
- package/dist/actions/list-all-job-notes.cjs.map +1 -1
- package/dist/actions/list-all-job-notes.d.cts +2 -2
- package/dist/actions/list-all-job-notes.d.mts +2 -2
- package/dist/actions/list-all-job-notes.mjs +2 -2
- package/dist/actions/list-all-job-notes.mjs.map +1 -1
- package/dist/actions/list-all-jobs.cjs +2 -2
- package/dist/actions/list-all-jobs.cjs.map +1 -1
- package/dist/actions/list-all-jobs.d.cts +2 -2
- package/dist/actions/list-all-jobs.d.mts +2 -2
- package/dist/actions/list-all-jobs.mjs +2 -2
- package/dist/actions/list-all-jobs.mjs.map +1 -1
- package/dist/actions/list-all-tasks.cjs +1 -1
- package/dist/actions/list-all-tasks.cjs.map +1 -1
- package/dist/actions/list-all-tasks.d.cts +1 -1
- package/dist/actions/list-all-tasks.d.mts +1 -1
- package/dist/actions/list-all-tasks.mjs +1 -1
- package/dist/actions/list-all-tasks.mjs.map +1 -1
- package/dist/actions/retrieve-job-activity.cjs +1 -1
- package/dist/actions/retrieve-job-activity.cjs.map +1 -1
- package/dist/actions/retrieve-job-activity.d.cts +1 -1
- package/dist/actions/retrieve-job-activity.d.mts +1 -1
- package/dist/actions/retrieve-job-activity.mjs +1 -1
- package/dist/actions/retrieve-job-activity.mjs.map +1 -1
- package/dist/actions/retrieve-job-note.cjs +1 -1
- package/dist/actions/retrieve-job-note.cjs.map +1 -1
- package/dist/actions/retrieve-job-note.d.cts +1 -1
- package/dist/actions/retrieve-job-note.d.mts +1 -1
- package/dist/actions/retrieve-job-note.mjs +1 -1
- package/dist/actions/retrieve-job-note.mjs.map +1 -1
- package/dist/actions/retrieve-job-payment.cjs +1 -1
- package/dist/actions/retrieve-job-payment.cjs.map +1 -1
- package/dist/actions/retrieve-job-payment.d.cts +1 -1
- package/dist/actions/retrieve-job-payment.d.mts +1 -1
- package/dist/actions/retrieve-job-payment.mjs +1 -1
- package/dist/actions/retrieve-job-payment.mjs.map +1 -1
- package/dist/actions/retrieve-job-queue.cjs +1 -1
- package/dist/actions/retrieve-job-queue.cjs.map +1 -1
- package/dist/actions/retrieve-job-queue.d.cts +1 -1
- package/dist/actions/retrieve-job-queue.d.mts +1 -1
- package/dist/actions/retrieve-job-queue.mjs +1 -1
- package/dist/actions/retrieve-job-queue.mjs.map +1 -1
- package/dist/actions/retrieve-job.cjs +1 -1
- package/dist/actions/retrieve-job.cjs.map +1 -1
- package/dist/actions/retrieve-job.d.cts +1 -1
- package/dist/actions/retrieve-job.d.mts +1 -1
- package/dist/actions/retrieve-job.mjs +1 -1
- package/dist/actions/retrieve-job.mjs.map +1 -1
- package/dist/actions/retrieve-location.cjs +1 -1
- package/dist/actions/retrieve-location.cjs.map +1 -1
- package/dist/actions/retrieve-location.d.cts +1 -1
- package/dist/actions/retrieve-location.d.mts +1 -1
- package/dist/actions/retrieve-location.mjs +1 -1
- package/dist/actions/retrieve-location.mjs.map +1 -1
- package/dist/actions/retrieve-material.cjs +1 -1
- package/dist/actions/retrieve-material.cjs.map +1 -1
- package/dist/actions/retrieve-material.d.cts +1 -1
- package/dist/actions/retrieve-material.d.mts +1 -1
- package/dist/actions/retrieve-material.mjs +1 -1
- package/dist/actions/retrieve-material.mjs.map +1 -1
- package/dist/actions/retrieve-staff-member.cjs +1 -1
- package/dist/actions/retrieve-staff-member.cjs.map +1 -1
- package/dist/actions/retrieve-staff-member.d.cts +1 -1
- package/dist/actions/retrieve-staff-member.d.mts +1 -1
- package/dist/actions/retrieve-staff-member.mjs +1 -1
- package/dist/actions/retrieve-staff-member.mjs.map +1 -1
- package/dist/actions/update-job-note.cjs +1 -1
- package/dist/actions/update-job-note.cjs.map +1 -1
- package/dist/actions/update-job-note.d.cts +1 -1
- package/dist/actions/update-job-note.d.mts +1 -1
- package/dist/actions/update-job-note.mjs +1 -1
- package/dist/actions/update-job-note.mjs.map +1 -1
- package/dist/actions/update-job-payment.cjs +1 -1
- package/dist/actions/update-job-payment.cjs.map +1 -1
- package/dist/actions/update-job-payment.d.cts +1 -1
- package/dist/actions/update-job-payment.d.mts +1 -1
- package/dist/actions/update-job-payment.mjs +1 -1
- package/dist/actions/update-job-payment.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-all-job-notes.mjs","names":[],"sources":["../../src/actions/list-all-job-notes.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8ListAllJobNotesInput = z.object({\n cursor: z.string().describe(\"Cursor for pagination. Use '-1' for the first page. For subsequent pages, use the 'next_cursor' value from the previous response. Each page returns up to 5,000 records.\").optional(),\n filter: z.string().describe(\"OData filter expression to filter notes. Common filters include: 'related_object_uuid eq <job_uuid>' to get notes for a specific job, 'active eq 1' for active notes only. Use actual API field names (e.g., related_object_uuid, not job_uuid).\").optional(),\n}).describe(\"Request model for listing all job notes. Supports optional filtering and cursor-based pagination.\");\nconst Servicem8ListAllJobNotes_NoteSchema = z.object({\n note: z.string().describe(\"Text content of the note.\").nullable(),\n uuid: z.string().describe(\"Unique identifier for this note.\").nullable(),\n active: z.number().int().describe(\"Active status flag: 1 = active, 0 = deleted/archived.\").nullable(),\n job_uuid: z.string().describe(\"UUID of the job this note is attached to (mapped from related_object_uuid).\").nullable(),\n edit_date: z.string().describe(\"Timestamp when the note was last modified (YYYY-MM-DD HH:MM:SS format).\").nullable().optional(),\n timestamp: z.string().describe(\"Timestamp when the note was created (YYYY-MM-DD HH:MM:SS format, mapped from create_date).\").nullable(),\n related_object: z.string().describe(\"Type of object this note is related to (typically 'job' for job notes).\").nullable().optional(),\n created_by_staff_uuid: z.string().describe(\"UUID of the staff member who created or last edited the note (mapped from edit_by_staff_uuid).\").nullable().optional(),\n}).describe(\"A ServiceM8 job note record.\");\nexport const Servicem8ListAllJobNotesOutput = z.object({\n notes: z.array(Servicem8ListAllJobNotes_NoteSchema).describe(\"List of job note records.\"),\n next_cursor: z.string().describe(\"Cursor for fetching the next page of results. If None/null, there are no more pages. Pass this value as the 'cursor' parameter in the next request.\").nullable().optional(),\n}).describe(\"Response model for listing all job notes.\");\n\nexport const servicem8ListAllJobNotes = action(\"SERVICEM8_LIST_ALL_JOB_NOTES\", {\n slug: \"servicem8-list-all-job-notes\",\n name: \"List All Job Notes\",\n description: \"List all job notes from ServiceM8. Use this tool to: - Retrieve all notes across all jobs (no filter) - Get notes for a specific job using filter: \\\"related_object_uuid eq '<job_uuid>'\\\" - Filter by active status: \\\"active eq 1\\\" for active notes only The response contains a list of note records with their content, timestamps, and associated job UUIDs. For large result sets, use cursor-based pagination: pass cursor='-1' for the first page, then use the 'next_cursor' value from each response to fetch subsequent pages. Each page returns up to 5,000 records.\",\n input: Servicem8ListAllJobNotesInput,\n output: Servicem8ListAllJobNotesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgC,EAAE,OAAO;CACpD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0KAA0K,CAAC,CAAC,SAAS;CACjN,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,kPAAkP,CAAC,CAAC,SAAS;AAC3R,CAAC,CAAC,CAAC,SAAS,mGAAmG;AAC/G,MAAM,sCAAsC,EAAE,OAAO;CACnD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAChE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CACvE,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CACpG,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CACtH,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9H,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,4FAA4F,CAAC,CAAC,SAAS;CACtI,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnI,uBAAuB,EAAE,OAAO,CAAC,CAAC,SAAS,gGAAgG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnK,CAAC,CAAC,CAAC,SAAS,8BAA8B;
|
|
1
|
+
{"version":3,"file":"list-all-job-notes.mjs","names":[],"sources":["../../src/actions/list-all-job-notes.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8ListAllJobNotesInput = z.object({\n cursor: z.string().describe(\"Cursor for pagination. Use '-1' for the first page. For subsequent pages, use the 'next_cursor' value from the previous response. Each page returns up to 5,000 records.\").optional(),\n filter: z.string().describe(\"OData filter expression to filter notes. Common filters include: 'related_object_uuid eq <job_uuid>' to get notes for a specific job, 'active eq 1' for active notes only. Use actual API field names (e.g., related_object_uuid, not job_uuid).\").optional(),\n}).describe(\"Request model for listing all job notes. Supports optional filtering and cursor-based pagination.\");\nconst Servicem8ListAllJobNotes_NoteSchema = z.object({\n note: z.string().describe(\"Text content of the note.\").nullable(),\n uuid: z.string().describe(\"Unique identifier for this note.\").nullable(),\n active: z.number().int().describe(\"Active status flag: 1 = active, 0 = deleted/archived.\").nullable(),\n job_uuid: z.string().describe(\"UUID of the job this note is attached to (mapped from related_object_uuid).\").nullable(),\n edit_date: z.string().describe(\"Timestamp when the note was last modified (YYYY-MM-DD HH:MM:SS format).\").nullable().optional(),\n timestamp: z.string().describe(\"Timestamp when the note was created (YYYY-MM-DD HH:MM:SS format, mapped from create_date).\").nullable(),\n related_object: z.string().describe(\"Type of object this note is related to (typically 'job' for job notes).\").nullable().optional(),\n created_by_staff_uuid: z.string().describe(\"UUID of the staff member who created or last edited the note (mapped from edit_by_staff_uuid).\").nullable().optional(),\n}).passthrough().describe(\"A ServiceM8 job note record.\");\nexport const Servicem8ListAllJobNotesOutput = z.object({\n notes: z.array(Servicem8ListAllJobNotes_NoteSchema).describe(\"List of job note records.\"),\n next_cursor: z.string().describe(\"Cursor for fetching the next page of results. If None/null, there are no more pages. Pass this value as the 'cursor' parameter in the next request.\").nullable().optional(),\n}).passthrough().describe(\"Response model for listing all job notes.\");\n\nexport const servicem8ListAllJobNotes = action(\"SERVICEM8_LIST_ALL_JOB_NOTES\", {\n slug: \"servicem8-list-all-job-notes\",\n name: \"List All Job Notes\",\n description: \"List all job notes from ServiceM8. Use this tool to: - Retrieve all notes across all jobs (no filter) - Get notes for a specific job using filter: \\\"related_object_uuid eq '<job_uuid>'\\\" - Filter by active status: \\\"active eq 1\\\" for active notes only The response contains a list of note records with their content, timestamps, and associated job UUIDs. For large result sets, use cursor-based pagination: pass cursor='-1' for the first page, then use the 'next_cursor' value from each response to fetch subsequent pages. Each page returns up to 5,000 records.\",\n input: Servicem8ListAllJobNotesInput,\n output: Servicem8ListAllJobNotesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgC,EAAE,OAAO;CACpD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0KAA0K,CAAC,CAAC,SAAS;CACjN,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,kPAAkP,CAAC,CAAC,SAAS;AAC3R,CAAC,CAAC,CAAC,SAAS,mGAAmG;AAC/G,MAAM,sCAAsC,EAAE,OAAO;CACnD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAChE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CACvE,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CACpG,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CACtH,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9H,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,4FAA4F,CAAC,CAAC,SAAS;CACtI,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnI,uBAAuB,EAAE,OAAO,CAAC,CAAC,SAAS,gGAAgG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnK,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8BAA8B;AAMxD,MAAa,2BAA2B,OAAO,gCAAgC;CAC7E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAV4C,EAAE,OAAO;EACrD,OAAO,EAAE,MAAM,mCAAmC,CAAC,CAAC,SAAS,2BAA2B;EACxF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qJAAqJ,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9M,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAOhB;AACV,CAAC"}
|
|
@@ -54,8 +54,8 @@ const Servicem8ListAllJobs_JobSchema = zod.z.object({
|
|
|
54
54
|
queue_assigned_staff_uuid: zod.z.string().describe("UUID of staff responsible for the job in the queue.").nullable().optional(),
|
|
55
55
|
completion_actioned_by_uuid: zod.z.string().describe("UUID of staff who marked the job as completed.").nullable().optional(),
|
|
56
56
|
job_is_scheduled_until_stamp: zod.z.string().describe("Timestamp until which the job is scheduled.").nullable().optional()
|
|
57
|
-
});
|
|
58
|
-
const Servicem8ListAllJobsOutput = zod.z.object({ jobs: zod.z.array(Servicem8ListAllJobs_JobSchema).describe("Array of jobs returned by ServiceM8.") }).describe("Response model for listing ServiceM8 jobs.");
|
|
57
|
+
}).passthrough();
|
|
58
|
+
const Servicem8ListAllJobsOutput = zod.z.object({ jobs: zod.z.array(Servicem8ListAllJobs_JobSchema).describe("Array of jobs returned by ServiceM8.") }).passthrough().describe("Response model for listing ServiceM8 jobs.");
|
|
59
59
|
const servicem8ListAllJobs = require_action.action("SERVICEM8_LIST_ALL_JOBS", {
|
|
60
60
|
slug: "servicem8-list-all-jobs",
|
|
61
61
|
name: "List All Jobs",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-all-jobs.cjs","names":["z","action"],"sources":["../../src/actions/list-all-jobs.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8ListAllJobsInput = z.object({\n filter: z.string().describe(\"OData-style filter expression to narrow down jobs. Supported operators: eq (equals), ne (not equals), gt (greater than), lt (less than). Combine up to 10 conditions with 'and'. String values must use single quotes. Examples: \\\"status eq 'Completed'\\\", \\\"status eq 'Work Order' and active eq 1\\\", \\\"date gt '2024-01-01'\\\".\").optional(),\n}).describe(\"Query parameters for listing ServiceM8 jobs.\");\nconst Servicem8ListAllJobs_JobSchema = z.object({\n lat: z.number().describe(\"Latitude coordinate of the job location.\").nullable().optional(),\n lng: z.number().describe(\"Longitude coordinate of the job location.\").nullable().optional(),\n date: z.string().describe(\"Date the job was created or scheduled.\").nullable(),\n uuid: z.string().describe(\"Unique identifier for this job record.\").nullable(),\n active: z.number().int().describe(\"Active flag (1 active, 0 deleted).\").nullable().optional(),\n badges: z.string().describe(\"Comma-separated list of badge UUIDs associated with this job.\").nullable().optional(),\n status: z.enum([\"Quote\", \"Work Order\", \"Unsuccessful\", \"Completed\"]).describe(\"Current status of the job.\").nullable(),\n geo_city: z.string().describe(\"City from geocoded address.\").nullable().optional(),\n edit_date: z.string().describe(\"Timestamp at which the record was last modified.\").nullable().optional(),\n geo_state: z.string().describe(\"State from geocoded address.\").nullable().optional(),\n geo_number: z.string().describe(\"House number from geocoded address.\").nullable().optional(),\n geo_street: z.string().describe(\"Street from geocoded address.\").nullable().optional(),\n queue_uuid: z.string().describe(\"UUID of the queue this job is assigned to.\").nullable().optional(),\n quote_date: z.string().describe(\"Timestamp when the job was quoted.\").nullable().optional(),\n quote_sent: z.number().int().describe(\"Boolean flag (0 or 1) indicating if quote was sent.\").nullable().optional(),\n geo_country: z.string().describe(\"Country from geocoded address.\").nullable().optional(),\n job_address: z.string().describe(\"Physical address where the job is to be performed (max length 500).\").nullable().optional(),\n company_uuid: z.string().describe(\"UUID of the client associated with this job.\").nullable(),\n geo_is_valid: z.string().describe(\"Whether geocoding for the job address was successful.\").nullable().optional(),\n geo_postcode: z.string().describe(\"Postal code from geocoded address.\").nullable().optional(),\n invoice_sent: z.string().describe(\"Boolean flag indicating whether an invoice has been sent.\").nullable().optional(),\n payment_date: z.string().describe(\"Payment date (not used; refer to JobPayment endpoint).\").nullable().optional(),\n category_uuid: z.string().describe(\"UUID of the job category.\").nullable().optional(),\n payment_amount: z.string().describe(\"Payment amount (not used; refer to JobPayment endpoint).\").nullable().optional(),\n payment_method: z.string().describe(\"Payment method (not used; refer to JobPayment endpoint).\").nullable().optional(),\n billing_address: z.string().describe(\"Address for invoicing; defaults to job address if not specified.\").nullable().optional(),\n completion_date: z.string().describe(\"Timestamp when the job was marked complete.\").nullable().optional(),\n job_description: z.string().describe(\"Description of the job.\").nullable().optional(),\n work_order_date: z.string().describe(\"Timestamp when the job became a work order.\").nullable().optional(),\n generated_job_id: z.string().describe(\"System-generated unique job identifier (read-only).\").nullable().optional(),\n payment_received: z.string().describe(\"Flag indicating payment received status.\").nullable().optional(),\n quote_sent_stamp: z.string().describe(\"Timestamp when the quote was sent (YYYY-MM-DD HH:MM:SS).\").nullable().optional(),\n payment_processed: z.string().describe(\"Flag indicating payment processed status.\").nullable().optional(),\n queue_expiry_date: z.string().describe(\"Timestamp when queue assignment expires (YYYY-MM-DD HH:MM:SS).\").nullable().optional(),\n unsuccessful_date: z.string().describe(\"Timestamp when job was marked unsuccessful.\").nullable().optional(),\n invoice_sent_stamp: z.string().describe(\"Timestamp when the invoice was sent (YYYY-MM-DD HH:MM:SS).\").nullable().optional(),\n total_invoice_amount: z.string().describe(\"Total invoiced amount for the job.\").nullable().optional(),\n created_by_staff_uuid: z.string().describe(\"UUID of the staff member who created this job.\").nullable().optional(),\n purchase_order_number: z.string().describe(\"Client purchase order reference number (max length 100).\").nullable().optional(),\n work_done_description: z.string().describe(\"Work done description.\").nullable().optional(),\n payment_received_stamp: z.string().describe(\"Timestamp when payment was received.\").nullable().optional(),\n payment_processed_stamp: z.string().describe(\"Timestamp when payment was processed.\").nullable().optional(),\n payment_actioned_by_uuid: z.string().describe(\"UUID of staff who actioned payment (not used).\").nullable().optional(),\n queue_assigned_staff_uuid: z.string().describe(\"UUID of staff responsible for the job in the queue.\").nullable().optional(),\n completion_actioned_by_uuid: z.string().describe(\"UUID of staff who marked the job as completed.\").nullable().optional(),\n job_is_scheduled_until_stamp: z.string().describe(\"Timestamp until which the job is scheduled.\").nullable().optional(),\n});\nexport const Servicem8ListAllJobsOutput = z.object({\n jobs: z.array(Servicem8ListAllJobs_JobSchema).describe(\"Array of jobs returned by ServiceM8.\"),\n}).describe(\"Response model for listing ServiceM8 jobs.\");\n\nexport const servicem8ListAllJobs = action(\"SERVICEM8_LIST_ALL_JOBS\", {\n slug: \"servicem8-list-all-jobs\",\n name: \"List All Jobs\",\n description: \"Tool to list all jobs. Use when you need to fetch all job records from your ServiceM8 account.\",\n input: Servicem8ListAllJobsInput,\n output: Servicem8ListAllJobsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,EAChD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mUAAmU,CAAC,CAAC,SAAS,EAC5W,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAM,iCAAiCA,IAAAA,EAAE,OAAO;CAC9C,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC7E,MAAMA,IAAAA,EAAE,OA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CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,0BAA0BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpH,2BAA2BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1H,6BAA6BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvH,8BAA8BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvH,CAAC;AACD,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,MAAMA,IAAAA,EAAE,MAAM,8BAA8B,CAAC,CAAC,SAAS,sCAAsC,EAC/F,CAAC,CAAC,CAAC,SAAS,4CAA4C;AAExD,MAAa,uBAAuBC,eAAAA,OAAO,2BAA2B;CACpE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"list-all-jobs.cjs","names":["z","action"],"sources":["../../src/actions/list-all-jobs.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8ListAllJobsInput = z.object({\n filter: z.string().describe(\"OData-style filter expression to narrow down jobs. Supported operators: eq (equals), ne (not equals), gt (greater than), lt (less than). Combine up to 10 conditions with 'and'. String values must use single quotes. Examples: \\\"status eq 'Completed'\\\", \\\"status eq 'Work Order' and active eq 1\\\", \\\"date gt '2024-01-01'\\\".\").optional(),\n}).describe(\"Query parameters for listing ServiceM8 jobs.\");\nconst Servicem8ListAllJobs_JobSchema = z.object({\n lat: z.number().describe(\"Latitude coordinate of the job location.\").nullable().optional(),\n lng: z.number().describe(\"Longitude coordinate of the job location.\").nullable().optional(),\n date: z.string().describe(\"Date the job was created or scheduled.\").nullable(),\n uuid: z.string().describe(\"Unique identifier for this job record.\").nullable(),\n active: z.number().int().describe(\"Active flag (1 active, 0 deleted).\").nullable().optional(),\n badges: z.string().describe(\"Comma-separated list of badge UUIDs associated with this job.\").nullable().optional(),\n status: z.enum([\"Quote\", \"Work Order\", \"Unsuccessful\", \"Completed\"]).describe(\"Current status of the job.\").nullable(),\n geo_city: z.string().describe(\"City from geocoded address.\").nullable().optional(),\n edit_date: z.string().describe(\"Timestamp at which the record was last modified.\").nullable().optional(),\n geo_state: z.string().describe(\"State from geocoded address.\").nullable().optional(),\n geo_number: z.string().describe(\"House number from geocoded address.\").nullable().optional(),\n geo_street: z.string().describe(\"Street from geocoded address.\").nullable().optional(),\n queue_uuid: z.string().describe(\"UUID of the queue this job is assigned to.\").nullable().optional(),\n quote_date: z.string().describe(\"Timestamp when the job was quoted.\").nullable().optional(),\n quote_sent: z.number().int().describe(\"Boolean flag (0 or 1) indicating if quote was sent.\").nullable().optional(),\n geo_country: z.string().describe(\"Country from geocoded address.\").nullable().optional(),\n job_address: z.string().describe(\"Physical address where the job is to be performed (max length 500).\").nullable().optional(),\n company_uuid: z.string().describe(\"UUID of the client associated with this job.\").nullable(),\n geo_is_valid: z.string().describe(\"Whether geocoding for the job address was successful.\").nullable().optional(),\n geo_postcode: z.string().describe(\"Postal code from geocoded address.\").nullable().optional(),\n invoice_sent: z.string().describe(\"Boolean flag indicating whether an invoice has been sent.\").nullable().optional(),\n payment_date: z.string().describe(\"Payment date (not used; refer to JobPayment endpoint).\").nullable().optional(),\n category_uuid: z.string().describe(\"UUID of the job category.\").nullable().optional(),\n payment_amount: z.string().describe(\"Payment amount (not used; refer to JobPayment endpoint).\").nullable().optional(),\n payment_method: z.string().describe(\"Payment method (not used; refer to JobPayment endpoint).\").nullable().optional(),\n billing_address: z.string().describe(\"Address for invoicing; defaults to job address if not specified.\").nullable().optional(),\n completion_date: z.string().describe(\"Timestamp when the job was marked complete.\").nullable().optional(),\n job_description: z.string().describe(\"Description of the job.\").nullable().optional(),\n work_order_date: z.string().describe(\"Timestamp when the job became a work order.\").nullable().optional(),\n generated_job_id: z.string().describe(\"System-generated unique job identifier (read-only).\").nullable().optional(),\n payment_received: z.string().describe(\"Flag indicating payment received status.\").nullable().optional(),\n quote_sent_stamp: z.string().describe(\"Timestamp when the quote was sent (YYYY-MM-DD HH:MM:SS).\").nullable().optional(),\n payment_processed: z.string().describe(\"Flag indicating payment processed status.\").nullable().optional(),\n queue_expiry_date: z.string().describe(\"Timestamp when queue assignment expires (YYYY-MM-DD HH:MM:SS).\").nullable().optional(),\n unsuccessful_date: z.string().describe(\"Timestamp when job was marked unsuccessful.\").nullable().optional(),\n invoice_sent_stamp: z.string().describe(\"Timestamp when the invoice was sent (YYYY-MM-DD HH:MM:SS).\").nullable().optional(),\n total_invoice_amount: z.string().describe(\"Total invoiced amount for the job.\").nullable().optional(),\n created_by_staff_uuid: z.string().describe(\"UUID of the staff member who created this job.\").nullable().optional(),\n purchase_order_number: z.string().describe(\"Client purchase order reference number (max length 100).\").nullable().optional(),\n work_done_description: z.string().describe(\"Work done description.\").nullable().optional(),\n payment_received_stamp: z.string().describe(\"Timestamp when payment was received.\").nullable().optional(),\n payment_processed_stamp: z.string().describe(\"Timestamp when payment was processed.\").nullable().optional(),\n payment_actioned_by_uuid: z.string().describe(\"UUID of staff who actioned payment (not used).\").nullable().optional(),\n queue_assigned_staff_uuid: z.string().describe(\"UUID of staff responsible for the job in the queue.\").nullable().optional(),\n completion_actioned_by_uuid: z.string().describe(\"UUID of staff who marked the job as completed.\").nullable().optional(),\n job_is_scheduled_until_stamp: z.string().describe(\"Timestamp until which the job is scheduled.\").nullable().optional(),\n}).passthrough();\nexport const Servicem8ListAllJobsOutput = z.object({\n jobs: z.array(Servicem8ListAllJobs_JobSchema).describe(\"Array of jobs returned by ServiceM8.\"),\n}).passthrough().describe(\"Response model for listing ServiceM8 jobs.\");\n\nexport const servicem8ListAllJobs = action(\"SERVICEM8_LIST_ALL_JOBS\", {\n slug: \"servicem8-list-all-jobs\",\n name: \"List All Jobs\",\n description: \"Tool to list all jobs. Use when you need to fetch all job records from your ServiceM8 account.\",\n input: Servicem8ListAllJobsInput,\n output: Servicem8ListAllJobsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,EAChD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mUAAmU,CAAC,CAAC,SAAS,EAC5W,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAM,iCAAiCA,IAAAA,EAAE,OAAO;CAC9C,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC7E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC7E,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjH,QAAQA,IAAAA,EAAE,KAAK;EAAC;EAAS;EAAc;EAAgB;CAAW,CAAC,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACrH,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,C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AAE,MAAM,8BAA8B,CAAC,CAAC,SAAS,sCAAsC,EAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C;AAEtE,MAAa,uBAAuBC,eAAAA,OAAO,2BAA2B;CACpE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -57,8 +57,8 @@ declare const Servicem8ListAllJobsOutput: z.ZodObject<{
|
|
|
57
57
|
queue_assigned_staff_uuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
58
58
|
completion_actioned_by_uuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
59
59
|
job_is_scheduled_until_stamp: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
60
|
-
}, z.core.$
|
|
61
|
-
}, z.core.$
|
|
60
|
+
}, z.core.$loose>>;
|
|
61
|
+
}, z.core.$loose>;
|
|
62
62
|
declare const servicem8ListAllJobs: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
63
63
|
filter?: string | undefined;
|
|
64
64
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -57,8 +57,8 @@ declare const Servicem8ListAllJobsOutput: z.ZodObject<{
|
|
|
57
57
|
queue_assigned_staff_uuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
58
58
|
completion_actioned_by_uuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
59
59
|
job_is_scheduled_until_stamp: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
60
|
-
}, z.core.$
|
|
61
|
-
}, z.core.$
|
|
60
|
+
}, z.core.$loose>>;
|
|
61
|
+
}, z.core.$loose>;
|
|
62
62
|
declare const servicem8ListAllJobs: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
63
63
|
filter?: string | undefined;
|
|
64
64
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -54,13 +54,13 @@ const Servicem8ListAllJobs_JobSchema = z.object({
|
|
|
54
54
|
queue_assigned_staff_uuid: z.string().describe("UUID of staff responsible for the job in the queue.").nullable().optional(),
|
|
55
55
|
completion_actioned_by_uuid: z.string().describe("UUID of staff who marked the job as completed.").nullable().optional(),
|
|
56
56
|
job_is_scheduled_until_stamp: z.string().describe("Timestamp until which the job is scheduled.").nullable().optional()
|
|
57
|
-
});
|
|
57
|
+
}).passthrough();
|
|
58
58
|
const servicem8ListAllJobs = action("SERVICEM8_LIST_ALL_JOBS", {
|
|
59
59
|
slug: "servicem8-list-all-jobs",
|
|
60
60
|
name: "List All Jobs",
|
|
61
61
|
description: "Tool to list all jobs. Use when you need to fetch all job records from your ServiceM8 account.",
|
|
62
62
|
input: Servicem8ListAllJobsInput,
|
|
63
|
-
output: z.object({ jobs: z.array(Servicem8ListAllJobs_JobSchema).describe("Array of jobs returned by ServiceM8.") }).describe("Response model for listing ServiceM8 jobs.")
|
|
63
|
+
output: z.object({ jobs: z.array(Servicem8ListAllJobs_JobSchema).describe("Array of jobs returned by ServiceM8.") }).passthrough().describe("Response model for listing ServiceM8 jobs.")
|
|
64
64
|
});
|
|
65
65
|
//#endregion
|
|
66
66
|
export { servicem8ListAllJobs };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-all-jobs.mjs","names":[],"sources":["../../src/actions/list-all-jobs.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8ListAllJobsInput = z.object({\n filter: z.string().describe(\"OData-style filter expression to narrow down jobs. Supported operators: eq (equals), ne (not equals), gt (greater than), lt (less than). Combine up to 10 conditions with 'and'. String values must use single quotes. Examples: \\\"status eq 'Completed'\\\", \\\"status eq 'Work Order' and active eq 1\\\", \\\"date gt '2024-01-01'\\\".\").optional(),\n}).describe(\"Query parameters for listing ServiceM8 jobs.\");\nconst Servicem8ListAllJobs_JobSchema = z.object({\n lat: z.number().describe(\"Latitude coordinate of the job location.\").nullable().optional(),\n lng: z.number().describe(\"Longitude coordinate of the job location.\").nullable().optional(),\n date: z.string().describe(\"Date the job was created or scheduled.\").nullable(),\n uuid: z.string().describe(\"Unique identifier for this job record.\").nullable(),\n active: z.number().int().describe(\"Active flag (1 active, 0 deleted).\").nullable().optional(),\n badges: z.string().describe(\"Comma-separated list of badge UUIDs associated with this job.\").nullable().optional(),\n status: z.enum([\"Quote\", \"Work Order\", \"Unsuccessful\", \"Completed\"]).describe(\"Current status of the job.\").nullable(),\n geo_city: z.string().describe(\"City from geocoded address.\").nullable().optional(),\n edit_date: z.string().describe(\"Timestamp at which the record was last modified.\").nullable().optional(),\n geo_state: z.string().describe(\"State from geocoded address.\").nullable().optional(),\n geo_number: z.string().describe(\"House number from geocoded address.\").nullable().optional(),\n geo_street: z.string().describe(\"Street from geocoded address.\").nullable().optional(),\n queue_uuid: z.string().describe(\"UUID of the queue this job is assigned to.\").nullable().optional(),\n quote_date: z.string().describe(\"Timestamp when the job was quoted.\").nullable().optional(),\n quote_sent: z.number().int().describe(\"Boolean flag (0 or 1) indicating if quote was sent.\").nullable().optional(),\n geo_country: z.string().describe(\"Country from geocoded address.\").nullable().optional(),\n job_address: z.string().describe(\"Physical address where the job is to be performed (max length 500).\").nullable().optional(),\n company_uuid: z.string().describe(\"UUID of the client associated with this job.\").nullable(),\n geo_is_valid: z.string().describe(\"Whether geocoding for the job address was successful.\").nullable().optional(),\n geo_postcode: z.string().describe(\"Postal code from geocoded address.\").nullable().optional(),\n invoice_sent: z.string().describe(\"Boolean flag indicating whether an invoice has been sent.\").nullable().optional(),\n payment_date: z.string().describe(\"Payment date (not used; refer to JobPayment endpoint).\").nullable().optional(),\n category_uuid: z.string().describe(\"UUID of the job category.\").nullable().optional(),\n payment_amount: z.string().describe(\"Payment amount (not used; refer to JobPayment endpoint).\").nullable().optional(),\n payment_method: z.string().describe(\"Payment method (not used; refer to JobPayment endpoint).\").nullable().optional(),\n billing_address: z.string().describe(\"Address for invoicing; defaults to job address if not specified.\").nullable().optional(),\n completion_date: z.string().describe(\"Timestamp when the job was marked complete.\").nullable().optional(),\n job_description: z.string().describe(\"Description of the job.\").nullable().optional(),\n work_order_date: z.string().describe(\"Timestamp when the job became a work order.\").nullable().optional(),\n generated_job_id: z.string().describe(\"System-generated unique job identifier (read-only).\").nullable().optional(),\n payment_received: z.string().describe(\"Flag indicating payment received status.\").nullable().optional(),\n quote_sent_stamp: z.string().describe(\"Timestamp when the quote was sent (YYYY-MM-DD HH:MM:SS).\").nullable().optional(),\n payment_processed: z.string().describe(\"Flag indicating payment processed status.\").nullable().optional(),\n queue_expiry_date: z.string().describe(\"Timestamp when queue assignment expires (YYYY-MM-DD HH:MM:SS).\").nullable().optional(),\n unsuccessful_date: z.string().describe(\"Timestamp when job was marked unsuccessful.\").nullable().optional(),\n invoice_sent_stamp: z.string().describe(\"Timestamp when the invoice was sent (YYYY-MM-DD HH:MM:SS).\").nullable().optional(),\n total_invoice_amount: z.string().describe(\"Total invoiced amount for the job.\").nullable().optional(),\n created_by_staff_uuid: z.string().describe(\"UUID of the staff member who created this job.\").nullable().optional(),\n purchase_order_number: z.string().describe(\"Client purchase order reference number (max length 100).\").nullable().optional(),\n work_done_description: z.string().describe(\"Work done description.\").nullable().optional(),\n payment_received_stamp: z.string().describe(\"Timestamp when payment was received.\").nullable().optional(),\n payment_processed_stamp: z.string().describe(\"Timestamp when payment was processed.\").nullable().optional(),\n payment_actioned_by_uuid: z.string().describe(\"UUID of staff who actioned payment (not used).\").nullable().optional(),\n queue_assigned_staff_uuid: z.string().describe(\"UUID of staff responsible for the job in the queue.\").nullable().optional(),\n completion_actioned_by_uuid: z.string().describe(\"UUID of staff who marked the job as completed.\").nullable().optional(),\n job_is_scheduled_until_stamp: z.string().describe(\"Timestamp until which the job is scheduled.\").nullable().optional(),\n});\nexport const Servicem8ListAllJobsOutput = z.object({\n jobs: z.array(Servicem8ListAllJobs_JobSchema).describe(\"Array of jobs returned by ServiceM8.\"),\n}).describe(\"Response model for listing ServiceM8 jobs.\");\n\nexport const servicem8ListAllJobs = action(\"SERVICEM8_LIST_ALL_JOBS\", {\n slug: \"servicem8-list-all-jobs\",\n name: \"List All Jobs\",\n description: \"Tool to list all jobs. Use when you need to fetch all job records from your ServiceM8 account.\",\n input: Servicem8ListAllJobsInput,\n output: Servicem8ListAllJobsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4B,EAAE,OAAO,EAChD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,mUAAmU,CAAC,CAAC,SAAS,EAC5W,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAM,iCAAiC,EAAE,OAAO;CAC9C,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC7E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC7E,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjH,QAAQ,EAAE,KAAK;EAAC;EAAS;EAAc;EAAgB;CAAW,CAAC,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACrH,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,kD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AAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,uBAAuB,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjH,uBAAuB,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3H,uBAAuB,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,wBAAwB,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,yBAAyB,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,0BAA0B,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpH,2BAA2B,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1H,6BAA6B,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvH,8BAA8B,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvH,CAAC;AAKD,MAAa,uBAAuB,OAAO,2BAA2B;CACpE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATwC,EAAE,OAAO,EACjD,MAAM,EAAE,MAAM,8BAA8B,CAAC,CAAC,SAAS,sCAAsC,EAC/F,CAAC,CAAC,CAAC,SAAS,4CAOF;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"list-all-jobs.mjs","names":[],"sources":["../../src/actions/list-all-jobs.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8ListAllJobsInput = z.object({\n filter: z.string().describe(\"OData-style filter expression to narrow down jobs. Supported operators: eq (equals), ne (not equals), gt (greater than), lt (less than). Combine up to 10 conditions with 'and'. String values must use single quotes. Examples: \\\"status eq 'Completed'\\\", \\\"status eq 'Work Order' and active eq 1\\\", \\\"date gt '2024-01-01'\\\".\").optional(),\n}).describe(\"Query parameters for listing ServiceM8 jobs.\");\nconst Servicem8ListAllJobs_JobSchema = z.object({\n lat: z.number().describe(\"Latitude coordinate of the job location.\").nullable().optional(),\n lng: z.number().describe(\"Longitude coordinate of the job location.\").nullable().optional(),\n date: z.string().describe(\"Date the job was created or scheduled.\").nullable(),\n uuid: z.string().describe(\"Unique identifier for this job record.\").nullable(),\n active: z.number().int().describe(\"Active flag (1 active, 0 deleted).\").nullable().optional(),\n badges: z.string().describe(\"Comma-separated list of badge UUIDs associated with this job.\").nullable().optional(),\n status: z.enum([\"Quote\", \"Work Order\", \"Unsuccessful\", \"Completed\"]).describe(\"Current status of the job.\").nullable(),\n geo_city: z.string().describe(\"City from geocoded address.\").nullable().optional(),\n edit_date: z.string().describe(\"Timestamp at which the record was last modified.\").nullable().optional(),\n geo_state: z.string().describe(\"State from geocoded address.\").nullable().optional(),\n geo_number: z.string().describe(\"House number from geocoded address.\").nullable().optional(),\n geo_street: z.string().describe(\"Street from geocoded address.\").nullable().optional(),\n queue_uuid: z.string().describe(\"UUID of the queue this job is assigned to.\").nullable().optional(),\n quote_date: z.string().describe(\"Timestamp when the job was quoted.\").nullable().optional(),\n quote_sent: z.number().int().describe(\"Boolean flag (0 or 1) indicating if quote was sent.\").nullable().optional(),\n geo_country: z.string().describe(\"Country from geocoded address.\").nullable().optional(),\n job_address: z.string().describe(\"Physical address where the job is to be performed (max length 500).\").nullable().optional(),\n company_uuid: z.string().describe(\"UUID of the client associated with this job.\").nullable(),\n geo_is_valid: z.string().describe(\"Whether geocoding for the job address was successful.\").nullable().optional(),\n geo_postcode: z.string().describe(\"Postal code from geocoded address.\").nullable().optional(),\n invoice_sent: z.string().describe(\"Boolean flag indicating whether an invoice has been sent.\").nullable().optional(),\n payment_date: z.string().describe(\"Payment date (not used; refer to JobPayment endpoint).\").nullable().optional(),\n category_uuid: z.string().describe(\"UUID of the job category.\").nullable().optional(),\n payment_amount: z.string().describe(\"Payment amount (not used; refer to JobPayment endpoint).\").nullable().optional(),\n payment_method: z.string().describe(\"Payment method (not used; refer to JobPayment endpoint).\").nullable().optional(),\n billing_address: z.string().describe(\"Address for invoicing; defaults to job address if not specified.\").nullable().optional(),\n completion_date: z.string().describe(\"Timestamp when the job was marked complete.\").nullable().optional(),\n job_description: z.string().describe(\"Description of the job.\").nullable().optional(),\n work_order_date: z.string().describe(\"Timestamp when the job became a work order.\").nullable().optional(),\n generated_job_id: z.string().describe(\"System-generated unique job identifier (read-only).\").nullable().optional(),\n payment_received: z.string().describe(\"Flag indicating payment received status.\").nullable().optional(),\n quote_sent_stamp: z.string().describe(\"Timestamp when the quote was sent (YYYY-MM-DD HH:MM:SS).\").nullable().optional(),\n payment_processed: z.string().describe(\"Flag indicating payment processed status.\").nullable().optional(),\n queue_expiry_date: z.string().describe(\"Timestamp when queue assignment expires (YYYY-MM-DD HH:MM:SS).\").nullable().optional(),\n unsuccessful_date: z.string().describe(\"Timestamp when job was marked unsuccessful.\").nullable().optional(),\n invoice_sent_stamp: z.string().describe(\"Timestamp when the invoice was sent (YYYY-MM-DD HH:MM:SS).\").nullable().optional(),\n total_invoice_amount: z.string().describe(\"Total invoiced amount for the job.\").nullable().optional(),\n created_by_staff_uuid: z.string().describe(\"UUID of the staff member who created this job.\").nullable().optional(),\n purchase_order_number: z.string().describe(\"Client purchase order reference number (max length 100).\").nullable().optional(),\n work_done_description: z.string().describe(\"Work done description.\").nullable().optional(),\n payment_received_stamp: z.string().describe(\"Timestamp when payment was received.\").nullable().optional(),\n payment_processed_stamp: z.string().describe(\"Timestamp when payment was processed.\").nullable().optional(),\n payment_actioned_by_uuid: z.string().describe(\"UUID of staff who actioned payment (not used).\").nullable().optional(),\n queue_assigned_staff_uuid: z.string().describe(\"UUID of staff responsible for the job in the queue.\").nullable().optional(),\n completion_actioned_by_uuid: z.string().describe(\"UUID of staff who marked the job as completed.\").nullable().optional(),\n job_is_scheduled_until_stamp: z.string().describe(\"Timestamp until which the job is scheduled.\").nullable().optional(),\n}).passthrough();\nexport const Servicem8ListAllJobsOutput = z.object({\n jobs: z.array(Servicem8ListAllJobs_JobSchema).describe(\"Array of jobs returned by ServiceM8.\"),\n}).passthrough().describe(\"Response model for listing ServiceM8 jobs.\");\n\nexport const servicem8ListAllJobs = action(\"SERVICEM8_LIST_ALL_JOBS\", {\n slug: \"servicem8-list-all-jobs\",\n name: \"List All Jobs\",\n description: \"Tool to list all jobs. Use when you need to fetch all job records from your ServiceM8 account.\",\n input: Servicem8ListAllJobsInput,\n output: Servicem8ListAllJobsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4B,EAAE,OAAO,EAChD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,mUAAmU,CAAC,CAAC,SAAS,EAC5W,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAM,iCAAiC,EAAE,OAAO;CAC9C,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC7E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC7E,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjH,QAAQ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AAM,8BAA8B,CAAC,CAAC,SAAS,sCAAsC,EAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAOhB;AACV,CAAC"}
|
|
@@ -20,7 +20,7 @@ const Servicem8ListAllTasks_TaskSchema = zod.z.object({
|
|
|
20
20
|
const Servicem8ListAllTasksOutput = zod.z.object({
|
|
21
21
|
tasks: zod.z.array(Servicem8ListAllTasks_TaskSchema).describe("List of task records."),
|
|
22
22
|
next_cursor: zod.z.string().describe("Cursor for the next page of results. Use this value in the 'cursor' parameter of the next request. Null/absent when no more pages exist.").nullable().optional()
|
|
23
|
-
}).describe("Response model for listing all tasks: returns a list of Task objects\nwith optional pagination cursor.");
|
|
23
|
+
}).passthrough().describe("Response model for listing all tasks: returns a list of Task objects\nwith optional pagination cursor.");
|
|
24
24
|
const servicem8ListAllTasks = require_action.action("SERVICEM8_LIST_ALL_TASKS", {
|
|
25
25
|
slug: "servicem8-list-all-tasks",
|
|
26
26
|
name: "List All Tasks",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-all-tasks.cjs","names":["z","action"],"sources":["../../src/actions/list-all-tasks.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8ListAllTasksInput = z.object({\n cursor: z.string().describe(\"Cursor for pagination. Use '-1' to start from the beginning. For subsequent pages, use the 'next_cursor' value from the previous response. Each page returns up to 5000 records.\").optional(),\n filter: z.string().describe(\"OData-style filter expression to narrow results. Supported operators: eq (equal), ne (not equal), gt (greater than), lt (less than). String values must use single quotes. Combine up to 10 conditions with 'and'. Example: \\\"active eq 1 and job_uuid eq 'abc-123'\\\"\").optional(),\n}).describe(\"Request model for listing all tasks. Supports optional filtering and cursor-based pagination.\");\nconst Servicem8ListAllTasks_TaskSchema = z.object({\n uuid: z.string().describe(\"Unique identifier for this task.\").nullable().optional(),\n active: z.number().int().describe(\"Active flag (1 = active, 0 = deleted/inactive).\").nullable().optional(),\n due_date: z.string().describe(\"Date when the task is due (YYYY-MM-DD format).\").nullable().optional(),\n job_uuid: z.string().describe(\"UUID of the job associated with this task.\").nullable().optional(),\n completed: z.number().int().describe(\"Whether the task is completed (1 = completed, 0 = not completed).\").nullable().optional(),\n edit_date: z.string().describe(\"Timestamp when the record was last modified (YYYY-MM-DD HH:MM:SS).\").nullable().optional(),\n staff_uuid: z.string().describe(\"UUID of the staff member assigned to the task.\").nullable().optional(),\n completed_date: z.string().describe(\"Timestamp when the task was completed (YYYY-MM-DD HH:MM:SS).\").nullable().optional(),\n task_description: z.string().describe(\"Description or details of the task.\").nullable().optional(),\n completed_by_staff_uuid: z.string().describe(\"UUID of the staff member who completed the task.\").nullable().optional(),\n}).passthrough().describe(\"Represents a ServiceM8 task record.\");\nexport const Servicem8ListAllTasksOutput = z.object({\n tasks: z.array(Servicem8ListAllTasks_TaskSchema).describe(\"List of task records.\"),\n next_cursor: z.string().describe(\"Cursor for the next page of results. Use this value in the 'cursor' parameter of the next request. Null/absent when no more pages exist.\").nullable().optional(),\n}).describe(\"Response model for listing all tasks: returns a list of Task objects\\nwith optional pagination cursor.\");\n\nexport const servicem8ListAllTasks = action(\"SERVICEM8_LIST_ALL_TASKS\", {\n slug: \"servicem8-list-all-tasks\",\n name: \"List All Tasks\",\n description: \"Retrieves all tasks from a ServiceM8 account with optional filtering and cursor-based pagination. Use this to fetch task records, track task assignments, monitor completion status, or sync task data. Requires 'read_tasks' OAuth scope.\",\n input: Servicem8ListAllTasksInput,\n output: Servicem8ListAllTasksOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kLAAkL,CAAC,CAAC,SAAS;CACzN,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uQAAuQ,CAAC,CAAC,SAAS;AAChT,CAAC,CAAC,CAAC,SAAS,+FAA+F;AAC3G,MAAM,mCAAmCA,IAAAA,EAAE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,CAAC,SAAS,CAAC,CAAC,SAAS;AACnM,CAAC,CAAC,CAAC,SAAS,wGAAwG;
|
|
1
|
+
{"version":3,"file":"list-all-tasks.cjs","names":["z","action"],"sources":["../../src/actions/list-all-tasks.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8ListAllTasksInput = z.object({\n cursor: z.string().describe(\"Cursor for pagination. Use '-1' to start from the beginning. For subsequent pages, use the 'next_cursor' value from the previous response. Each page returns up to 5000 records.\").optional(),\n filter: z.string().describe(\"OData-style filter expression to narrow results. Supported operators: eq (equal), ne (not equal), gt (greater than), lt (less than). String values must use single quotes. Combine up to 10 conditions with 'and'. Example: \\\"active eq 1 and job_uuid eq 'abc-123'\\\"\").optional(),\n}).describe(\"Request model for listing all tasks. Supports optional filtering and cursor-based pagination.\");\nconst Servicem8ListAllTasks_TaskSchema = z.object({\n uuid: z.string().describe(\"Unique identifier for this task.\").nullable().optional(),\n active: z.number().int().describe(\"Active flag (1 = active, 0 = deleted/inactive).\").nullable().optional(),\n due_date: z.string().describe(\"Date when the task is due (YYYY-MM-DD format).\").nullable().optional(),\n job_uuid: z.string().describe(\"UUID of the job associated with this task.\").nullable().optional(),\n completed: z.number().int().describe(\"Whether the task is completed (1 = completed, 0 = not completed).\").nullable().optional(),\n edit_date: z.string().describe(\"Timestamp when the record was last modified (YYYY-MM-DD HH:MM:SS).\").nullable().optional(),\n staff_uuid: z.string().describe(\"UUID of the staff member assigned to the task.\").nullable().optional(),\n completed_date: z.string().describe(\"Timestamp when the task was completed (YYYY-MM-DD HH:MM:SS).\").nullable().optional(),\n task_description: z.string().describe(\"Description or details of the task.\").nullable().optional(),\n completed_by_staff_uuid: z.string().describe(\"UUID of the staff member who completed the task.\").nullable().optional(),\n}).passthrough().describe(\"Represents a ServiceM8 task record.\");\nexport const Servicem8ListAllTasksOutput = z.object({\n tasks: z.array(Servicem8ListAllTasks_TaskSchema).describe(\"List of task records.\"),\n next_cursor: z.string().describe(\"Cursor for the next page of results. Use this value in the 'cursor' parameter of the next request. Null/absent when no more pages exist.\").nullable().optional(),\n}).passthrough().describe(\"Response model for listing all tasks: returns a list of Task objects\\nwith optional pagination cursor.\");\n\nexport const servicem8ListAllTasks = action(\"SERVICEM8_LIST_ALL_TASKS\", {\n slug: \"servicem8-list-all-tasks\",\n name: \"List All Tasks\",\n description: \"Retrieves all tasks from a ServiceM8 account with optional filtering and cursor-based pagination. Use this to fetch task records, track task assignments, monitor completion status, or sync task data. Requires 'read_tasks' OAuth scope.\",\n input: Servicem8ListAllTasksInput,\n output: Servicem8ListAllTasksOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kLAAkL,CAAC,CAAC,SAAS;CACzN,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uQAAuQ,CAAC,CAAC,SAAS;AAChT,CAAC,CAAC,CAAC,SAAS,+FAA+F;AAC3G,MAAM,mCAAmCA,IAAAA,EAAE,OAAO;CAChD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9H,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzH,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxH,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,yBAAyBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qCAAqC;AAC/D,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,OAAOA,IAAAA,EAAE,MAAM,gCAAgC,CAAC,CAAC,SAAS,uBAAuB;CACjF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0IAA0I,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnM,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wGAAwG;AAElI,MAAa,wBAAwBC,eAAAA,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -19,7 +19,7 @@ declare const Servicem8ListAllTasksOutput: z.ZodObject<{
|
|
|
19
19
|
completed_by_staff_uuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
20
|
}, z.core.$loose>>;
|
|
21
21
|
next_cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
-
}, z.core.$
|
|
22
|
+
}, z.core.$loose>;
|
|
23
23
|
declare const servicem8ListAllTasks: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
24
24
|
cursor?: string | undefined;
|
|
25
25
|
filter?: string | undefined;
|
|
@@ -19,7 +19,7 @@ declare const Servicem8ListAllTasksOutput: z.ZodObject<{
|
|
|
19
19
|
completed_by_staff_uuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
20
|
}, z.core.$loose>>;
|
|
21
21
|
next_cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
-
}, z.core.$
|
|
22
|
+
}, z.core.$loose>;
|
|
23
23
|
declare const servicem8ListAllTasks: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
24
24
|
cursor?: string | undefined;
|
|
25
25
|
filter?: string | undefined;
|
|
@@ -25,7 +25,7 @@ const servicem8ListAllTasks = action("SERVICEM8_LIST_ALL_TASKS", {
|
|
|
25
25
|
output: z.object({
|
|
26
26
|
tasks: z.array(Servicem8ListAllTasks_TaskSchema).describe("List of task records."),
|
|
27
27
|
next_cursor: z.string().describe("Cursor for the next page of results. Use this value in the 'cursor' parameter of the next request. Null/absent when no more pages exist.").nullable().optional()
|
|
28
|
-
}).describe("Response model for listing all tasks: returns a list of Task objects\nwith optional pagination cursor.")
|
|
28
|
+
}).passthrough().describe("Response model for listing all tasks: returns a list of Task objects\nwith optional pagination cursor.")
|
|
29
29
|
});
|
|
30
30
|
//#endregion
|
|
31
31
|
export { servicem8ListAllTasks };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-all-tasks.mjs","names":[],"sources":["../../src/actions/list-all-tasks.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8ListAllTasksInput = z.object({\n cursor: z.string().describe(\"Cursor for pagination. Use '-1' to start from the beginning. For subsequent pages, use the 'next_cursor' value from the previous response. Each page returns up to 5000 records.\").optional(),\n filter: z.string().describe(\"OData-style filter expression to narrow results. Supported operators: eq (equal), ne (not equal), gt (greater than), lt (less than). String values must use single quotes. Combine up to 10 conditions with 'and'. Example: \\\"active eq 1 and job_uuid eq 'abc-123'\\\"\").optional(),\n}).describe(\"Request model for listing all tasks. Supports optional filtering and cursor-based pagination.\");\nconst Servicem8ListAllTasks_TaskSchema = z.object({\n uuid: z.string().describe(\"Unique identifier for this task.\").nullable().optional(),\n active: z.number().int().describe(\"Active flag (1 = active, 0 = deleted/inactive).\").nullable().optional(),\n due_date: z.string().describe(\"Date when the task is due (YYYY-MM-DD format).\").nullable().optional(),\n job_uuid: z.string().describe(\"UUID of the job associated with this task.\").nullable().optional(),\n completed: z.number().int().describe(\"Whether the task is completed (1 = completed, 0 = not completed).\").nullable().optional(),\n edit_date: z.string().describe(\"Timestamp when the record was last modified (YYYY-MM-DD HH:MM:SS).\").nullable().optional(),\n staff_uuid: z.string().describe(\"UUID of the staff member assigned to the task.\").nullable().optional(),\n completed_date: z.string().describe(\"Timestamp when the task was completed (YYYY-MM-DD HH:MM:SS).\").nullable().optional(),\n task_description: z.string().describe(\"Description or details of the task.\").nullable().optional(),\n completed_by_staff_uuid: z.string().describe(\"UUID of the staff member who completed the task.\").nullable().optional(),\n}).passthrough().describe(\"Represents a ServiceM8 task record.\");\nexport const Servicem8ListAllTasksOutput = z.object({\n tasks: z.array(Servicem8ListAllTasks_TaskSchema).describe(\"List of task records.\"),\n next_cursor: z.string().describe(\"Cursor for the next page of results. Use this value in the 'cursor' parameter of the next request. Null/absent when no more pages exist.\").nullable().optional(),\n}).describe(\"Response model for listing all tasks: returns a list of Task objects\\nwith optional pagination cursor.\");\n\nexport const servicem8ListAllTasks = action(\"SERVICEM8_LIST_ALL_TASKS\", {\n slug: \"servicem8-list-all-tasks\",\n name: \"List All Tasks\",\n description: \"Retrieves all tasks from a ServiceM8 account with optional filtering and cursor-based pagination. Use this to fetch task records, track task assignments, monitor completion status, or sync task data. Requires 'read_tasks' OAuth scope.\",\n input: Servicem8ListAllTasksInput,\n output: Servicem8ListAllTasksOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6B,EAAE,OAAO;CACjD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,kLAAkL,CAAC,CAAC,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O,EAAE,MAAM,gCAAgC,CAAC,CAAC,SAAS,uBAAuB;EACjF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,0IAA0I,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnM,CAAC,CAAC,CAAC,SAAS,
|
|
1
|
+
{"version":3,"file":"list-all-tasks.mjs","names":[],"sources":["../../src/actions/list-all-tasks.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8ListAllTasksInput = z.object({\n cursor: z.string().describe(\"Cursor for pagination. Use '-1' to start from the beginning. For subsequent pages, use the 'next_cursor' value from the previous response. Each page returns up to 5000 records.\").optional(),\n filter: z.string().describe(\"OData-style filter expression to narrow results. Supported operators: eq (equal), ne (not equal), gt (greater than), lt (less than). String values must use single quotes. Combine up to 10 conditions with 'and'. Example: \\\"active eq 1 and job_uuid eq 'abc-123'\\\"\").optional(),\n}).describe(\"Request model for listing all tasks. Supports optional filtering and cursor-based pagination.\");\nconst Servicem8ListAllTasks_TaskSchema = z.object({\n uuid: z.string().describe(\"Unique identifier for this task.\").nullable().optional(),\n active: z.number().int().describe(\"Active flag (1 = active, 0 = deleted/inactive).\").nullable().optional(),\n due_date: z.string().describe(\"Date when the task is due (YYYY-MM-DD format).\").nullable().optional(),\n job_uuid: z.string().describe(\"UUID of the job associated with this task.\").nullable().optional(),\n completed: z.number().int().describe(\"Whether the task is completed (1 = completed, 0 = not completed).\").nullable().optional(),\n edit_date: z.string().describe(\"Timestamp when the record was last modified (YYYY-MM-DD HH:MM:SS).\").nullable().optional(),\n staff_uuid: z.string().describe(\"UUID of the staff member assigned to the task.\").nullable().optional(),\n completed_date: z.string().describe(\"Timestamp when the task was completed (YYYY-MM-DD HH:MM:SS).\").nullable().optional(),\n task_description: z.string().describe(\"Description or details of the task.\").nullable().optional(),\n completed_by_staff_uuid: z.string().describe(\"UUID of the staff member who completed the task.\").nullable().optional(),\n}).passthrough().describe(\"Represents a ServiceM8 task record.\");\nexport const Servicem8ListAllTasksOutput = z.object({\n tasks: z.array(Servicem8ListAllTasks_TaskSchema).describe(\"List of task records.\"),\n next_cursor: z.string().describe(\"Cursor for the next page of results. Use this value in the 'cursor' parameter of the next request. Null/absent when no more pages exist.\").nullable().optional(),\n}).passthrough().describe(\"Response model for listing all tasks: returns a list of Task objects\\nwith optional pagination cursor.\");\n\nexport const servicem8ListAllTasks = action(\"SERVICEM8_LIST_ALL_TASKS\", {\n slug: \"servicem8-list-all-tasks\",\n name: \"List All Tasks\",\n description: \"Retrieves all tasks from a ServiceM8 account with optional filtering and cursor-based pagination. Use this to fetch task records, track task assignments, monitor completion status, or sync task data. Requires 'read_tasks' OAuth scope.\",\n input: Servicem8ListAllTasksInput,\n output: Servicem8ListAllTasksOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6B,EAAE,OAAO;CACjD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,kLAAkL,CAAC,CAAC,SAAS;CACzN,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,uQAAuQ,CAAC,CAAC,SAAS;AAChT,CAAC,CAAC,CAAC,SAAS,+FAA+F;AAC3G,MAAM,mCAAmC,EAAE,OAAO;CAChD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9H,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzH,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxH,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,yBAAyB,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qCAAqC;AAM/D,MAAa,wBAAwB,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVyC,EAAE,OAAO;EAClD,OAAO,EAAE,MAAM,gCAAgC,CAAC,CAAC,SAAS,uBAAuB;EACjF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,0IAA0I,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnM,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wGAOhB;AACV,CAAC"}
|
|
@@ -21,7 +21,7 @@ const Servicem8RetrieveJobActivityOutput = zod.z.object({
|
|
|
21
21
|
allocated_by_staff_uuid: zod.z.string().describe("UUID of staff who allocated the activity.").nullable().optional(),
|
|
22
22
|
has_been_opened_timestamp: zod.z.string().describe("Timestamp when the activity was opened.").nullable().optional(),
|
|
23
23
|
travel_distance_in_meters: zod.z.string().describe("Travel distance in meters.").nullable().optional()
|
|
24
|
-
}).describe("Response model representing a ServiceM8 job activity record.");
|
|
24
|
+
}).passthrough().describe("Response model representing a ServiceM8 job activity record.");
|
|
25
25
|
const servicem8RetrieveJobActivity = require_action.action("SERVICEM8_RETRIEVE_JOB_ACTIVITY", {
|
|
26
26
|
slug: "servicem8-retrieve-job-activity",
|
|
27
27
|
name: "Retrieve Job Activity",
|
|
@@ -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}).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":";;;AAIA,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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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 U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ZodString>>;
|
|
24
24
|
has_been_opened_timestamp: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
25
|
travel_distance_in_meters: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
-
}, z.core.$
|
|
26
|
+
}, z.core.$loose>;
|
|
27
27
|
declare const servicem8RetrieveJobActivity: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
28
28
|
uuid: string;
|
|
29
29
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -23,7 +23,7 @@ declare const Servicem8RetrieveJobActivityOutput: z.ZodObject<{
|
|
|
23
23
|
allocated_by_staff_uuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
24
|
has_been_opened_timestamp: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
25
|
travel_distance_in_meters: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
-
}, z.core.$
|
|
26
|
+
}, z.core.$loose>;
|
|
27
27
|
declare const servicem8RetrieveJobActivity: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
28
28
|
uuid: string;
|
|
29
29
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -24,7 +24,7 @@ const servicem8RetrieveJobActivity = action("SERVICEM8_RETRIEVE_JOB_ACTIVITY", {
|
|
|
24
24
|
allocated_by_staff_uuid: z.string().describe("UUID of staff who allocated the activity.").nullable().optional(),
|
|
25
25
|
has_been_opened_timestamp: z.string().describe("Timestamp when the activity was opened.").nullable().optional(),
|
|
26
26
|
travel_distance_in_meters: z.string().describe("Travel distance in meters.").nullable().optional()
|
|
27
|
-
}).describe("Response model representing a ServiceM8 job activity record.")
|
|
27
|
+
}).passthrough().describe("Response model representing a ServiceM8 job activity record.")
|
|
28
28
|
});
|
|
29
29
|
//#endregion
|
|
30
30
|
export { servicem8RetrieveJobActivity };
|
|
@@ -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}).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":";;AA4BA,MAAa,+BAA+B,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA5B+C,EAAE,OAAO,EACxD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,EAC5E,CAAC,CAAC,CAAC,SAAS,yEA0BH;CACP,QA1BgD,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,SAAS,
|
|
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":";;AA4BA,MAAa,+BAA+B,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA5B+C,EAAE,OAAO,EACxD,MAAM,EAAE,OAAO,CAAC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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,8DAOhB;AACV,CAAC"}
|
|
@@ -11,7 +11,7 @@ const Servicem8RetrieveJobNoteOutput = zod.z.object({
|
|
|
11
11
|
related_object: zod.z.string().describe("Type of object this note is attached to (e.g., 'job').").nullable().optional(),
|
|
12
12
|
edit_by_staff_uuid: zod.z.string().describe("UUID of the staff member who last edited this note.").nullable().optional(),
|
|
13
13
|
related_object_uuid: zod.z.string().describe("UUID of the job (or other object) this note is attached to.").nullable().optional()
|
|
14
|
-
}).describe("Response model representing a ServiceM8 job note record.");
|
|
14
|
+
}).passthrough().describe("Response model representing a ServiceM8 job note record.");
|
|
15
15
|
const servicem8RetrieveJobNote = require_action.action("SERVICEM8_RETRIEVE_JOB_NOTE", {
|
|
16
16
|
slug: "servicem8-retrieve-job-note",
|
|
17
17
|
name: "Retrieve Job Note",
|
|
@@ -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}).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":";;;AAIA,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,SAAS,0DAA0D;
|
|
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":";;;AAIA,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,2BAA2BC,eAAAA,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -13,7 +13,7 @@ declare const Servicem8RetrieveJobNoteOutput: z.ZodObject<{
|
|
|
13
13
|
related_object: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
14
|
edit_by_staff_uuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
15
|
related_object_uuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
-
}, z.core.$
|
|
16
|
+
}, z.core.$loose>;
|
|
17
17
|
declare const servicem8RetrieveJobNote: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
18
18
|
uuid: string;
|
|
19
19
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -13,7 +13,7 @@ declare const Servicem8RetrieveJobNoteOutput: z.ZodObject<{
|
|
|
13
13
|
related_object: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
14
|
edit_by_staff_uuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
15
|
related_object_uuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
-
}, z.core.$
|
|
16
|
+
}, z.core.$loose>;
|
|
17
17
|
declare const servicem8RetrieveJobNote: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
18
18
|
uuid: string;
|
|
19
19
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -14,7 +14,7 @@ const servicem8RetrieveJobNote = action("SERVICEM8_RETRIEVE_JOB_NOTE", {
|
|
|
14
14
|
related_object: z.string().describe("Type of object this note is attached to (e.g., 'job').").nullable().optional(),
|
|
15
15
|
edit_by_staff_uuid: z.string().describe("UUID of the staff member who last edited this note.").nullable().optional(),
|
|
16
16
|
related_object_uuid: z.string().describe("UUID of the job (or other object) this note is attached to.").nullable().optional()
|
|
17
|
-
}).describe("Response model representing a ServiceM8 job note record.")
|
|
17
|
+
}).passthrough().describe("Response model representing a ServiceM8 job note record.")
|
|
18
18
|
});
|
|
19
19
|
//#endregion
|
|
20
20
|
export { servicem8RetrieveJobNote };
|
|
@@ -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}).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":";;AAkBA,MAAa,2BAA2B,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAlB2C,EAAE,OAAO,EACpD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6FAA6F,EACzH,CAAC,CAAC,CAAC,SAAS,gEAgBH;CACP,QAhB4C,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,SAAS,
|
|
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":";;AAkBA,MAAa,2BAA2B,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAlB2C,EAAE,OAAO,EACpD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6FAA6F,EACzH,CAAC,CAAC,CAAC,SAAS,gEAgBH;CACP,QAhB4C,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,0DAOhB;AACV,CAAC"}
|
|
@@ -14,7 +14,7 @@ const Servicem8RetrieveJobPaymentOutput = zod.z.object({
|
|
|
14
14
|
is_deposit: zod.z.number().int().describe("Flag indicating if this payment is a deposit (1) or a regular payment (0).").nullable().optional(),
|
|
15
15
|
attachment_uuid: zod.z.string().describe("UUID of any attachment (e.g., receipt) associated with this payment.").nullable().optional(),
|
|
16
16
|
actioned_by_uuid: zod.z.string().describe("UUID of the staff member who processed this payment.").nullable().optional()
|
|
17
|
-
}).describe("Response model representing a ServiceM8 Job Payment record.");
|
|
17
|
+
}).passthrough().describe("Response model representing a ServiceM8 Job Payment record.");
|
|
18
18
|
const servicem8RetrieveJobPayment = require_action.action("SERVICEM8_RETRIEVE_JOB_PAYMENT", {
|
|
19
19
|
slug: "servicem8-retrieve-job-payment",
|
|
20
20
|
name: "Retrieve Job Payment",
|
|
@@ -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}).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":";;;AAIA,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,SAAS,6DAA6D;
|
|
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":";;;AAIA,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,8BAA8BC,eAAAA,OAAO,kCAAkC;CAClF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -16,7 +16,7 @@ declare const Servicem8RetrieveJobPaymentOutput: z.ZodObject<{
|
|
|
16
16
|
is_deposit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
17
17
|
attachment_uuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
18
|
actioned_by_uuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
-
}, z.core.$
|
|
19
|
+
}, z.core.$loose>;
|
|
20
20
|
declare const servicem8RetrieveJobPayment: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
21
21
|
uuid: string;
|
|
22
22
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -16,7 +16,7 @@ declare const Servicem8RetrieveJobPaymentOutput: z.ZodObject<{
|
|
|
16
16
|
is_deposit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
17
17
|
attachment_uuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
18
|
actioned_by_uuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
-
}, z.core.$
|
|
19
|
+
}, z.core.$loose>;
|
|
20
20
|
declare const servicem8RetrieveJobPayment: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
21
21
|
uuid: string;
|
|
22
22
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -17,7 +17,7 @@ const servicem8RetrieveJobPayment = action("SERVICEM8_RETRIEVE_JOB_PAYMENT", {
|
|
|
17
17
|
is_deposit: z.number().int().describe("Flag indicating if this payment is a deposit (1) or a regular payment (0).").nullable().optional(),
|
|
18
18
|
attachment_uuid: z.string().describe("UUID of any attachment (e.g., receipt) associated with this payment.").nullable().optional(),
|
|
19
19
|
actioned_by_uuid: z.string().describe("UUID of the staff member who processed this payment.").nullable().optional()
|
|
20
|
-
}).describe("Response model representing a ServiceM8 Job Payment record.")
|
|
20
|
+
}).passthrough().describe("Response model representing a ServiceM8 Job Payment record.")
|
|
21
21
|
});
|
|
22
22
|
//#endregion
|
|
23
23
|
export { servicem8RetrieveJobPayment };
|
|
@@ -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}).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":";;AAqBA,MAAa,8BAA8B,OAAO,kCAAkC;CAClF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OArB8C,EAAE,OAAO,EACvD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wJAAwJ,EACpL,CAAC,CAAC,CAAC,SAAS,+DAmBH;CACP,QAnB+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,SAAS,
|
|
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":";;AAqBA,MAAa,8BAA8B,OAAO,kCAAkC;CAClF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OArB8C,EAAE,OAAO,EACvD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wJAAwJ,EACpL,CAAC,CAAC,CAAC,SAAS,+DAmBH;CACP,QAnB+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,6DAOhB;AACV,CAAC"}
|
|
@@ -10,7 +10,7 @@ const Servicem8RetrieveJobQueueOutput = zod.z.object({
|
|
|
10
10
|
subscribed_staff: zod.z.string().describe("Comma-separated list of staff UUIDs subscribed to the queue.").nullable().optional(),
|
|
11
11
|
default_timeframe: zod.z.number().int().describe("Default timeframe for the queue in days.").nullable(),
|
|
12
12
|
requires_assignment: zod.z.number().int().describe("1 if the queue requires assignment; 0 otherwise.").nullable()
|
|
13
|
-
}).describe("Response model representing a ServiceM8 job queue record.");
|
|
13
|
+
}).passthrough().describe("Response model representing a ServiceM8 job queue record.");
|
|
14
14
|
const servicem8RetrieveJobQueue = require_action.action("SERVICEM8_RETRIEVE_JOB_QUEUE", {
|
|
15
15
|
slug: "servicem8-retrieve-job-queue",
|
|
16
16
|
name: "Retrieve Job Queue",
|
|
@@ -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}).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":";;;AAIA,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,SAAS,2DAA2D;
|
|
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":";;;AAIA,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,4BAA4BC,eAAAA,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -12,7 +12,7 @@ declare const Servicem8RetrieveJobQueueOutput: z.ZodObject<{
|
|
|
12
12
|
subscribed_staff: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
13
|
default_timeframe: z.ZodNullable<z.ZodNumber>;
|
|
14
14
|
requires_assignment: z.ZodNullable<z.ZodNumber>;
|
|
15
|
-
}, z.core.$
|
|
15
|
+
}, z.core.$loose>;
|
|
16
16
|
declare const servicem8RetrieveJobQueue: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
17
17
|
uuid: string;
|
|
18
18
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|