@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
|
@@ -15,7 +15,7 @@ const Servicem8CreateJobNoteOutput = zod.z.object({
|
|
|
15
15
|
message: zod.z.string().describe("API response message. Typically 'OK' on success.").nullable().optional(),
|
|
16
16
|
errorCode: zod.z.number().int().describe("API error code. 0 indicates success, non-zero indicates an error.").nullable().optional(),
|
|
17
17
|
record_uuid: zod.z.string().describe("UUID of the newly created note record (from x-record-uuid response header).").nullable()
|
|
18
|
-
}).describe("Response model for a newly created ServiceM8 Job Note.");
|
|
18
|
+
}).passthrough().describe("Response model for a newly created ServiceM8 Job Note.");
|
|
19
19
|
const servicem8CreateJobNote = require_action.action("SERVICEM8_CREATE_JOB_NOTE", {
|
|
20
20
|
slug: "servicem8-create-job-note",
|
|
21
21
|
name: "ServiceM8 Create Job Note",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-job-note.cjs","names":["z","action"],"sources":["../../src/actions/create-job-note.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8CreateJobNoteInput = z.object({\n note: z.string().describe(\"Content of the note.\"),\n uuid: z.string().describe(\"Unique identifier for this note record. If omitted, a UUID will be generated.\").optional(),\n active: z.number().int().default(1).describe(\"Record active flag: 1 = active (default), 0 = deleted.\").optional(),\n create_date: z.string().describe(\"Timestamp when the note was created (format: YYYY-MM-DD HH:MM:SS). Server sets automatically if omitted.\").optional(),\n related_object: z.string().default(\"job\").describe(\"Type of the related object. Defaults to 'job' for job notes. Other possible values may include 'company'.\").optional(),\n action_required: z.string().describe(\"Optional follow-up action required description.\").optional(),\n related_object_uuid: z.string().describe(\"UUID of the related job.\"),\n action_completed_by_staff_uuid: z.string().describe(\"UUID of staff member who completed the required action.\").optional(),\n}).describe(\"Request model for creating a new ServiceM8 Job Note.\");\nexport const Servicem8CreateJobNoteOutput = z.object({\n message: z.string().describe(\"API response message. Typically 'OK' on success.\").nullable().optional(),\n errorCode: z.number().int().describe(\"API error code. 0 indicates success, non-zero indicates an error.\").nullable().optional(),\n record_uuid: z.string().describe(\"UUID of the newly created note record (from x-record-uuid response header).\").nullable(),\n}).describe(\"Response model for a newly created ServiceM8 Job Note.\");\n\nexport const servicem8CreateJobNote = action(\"SERVICEM8_CREATE_JOB_NOTE\", {\n slug: \"servicem8-create-job-note\",\n name: \"ServiceM8 Create Job Note\",\n description: \"Create a new job note in ServiceM8. Requires the job's UUID (related_object_uuid) and the note content. Returns the UUID of the created note record. Use this to add comments, updates, or action items to a specific job.\",\n input: Servicem8CreateJobNoteInput,\n output: Servicem8CreateJobNoteOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;CAChD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;CACpH,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CAChH,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0GAA0G,CAAC,CAAC,SAAS;CACtJ,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,2GAA2G,CAAC,CAAC,SAAS;CACzK,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CACjG,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;CACnE,gCAAgCA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;AAC1H,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9H,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;AAC3H,CAAC,CAAC,CAAC,SAAS,wDAAwD;
|
|
1
|
+
{"version":3,"file":"create-job-note.cjs","names":["z","action"],"sources":["../../src/actions/create-job-note.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8CreateJobNoteInput = z.object({\n note: z.string().describe(\"Content of the note.\"),\n uuid: z.string().describe(\"Unique identifier for this note record. If omitted, a UUID will be generated.\").optional(),\n active: z.number().int().default(1).describe(\"Record active flag: 1 = active (default), 0 = deleted.\").optional(),\n create_date: z.string().describe(\"Timestamp when the note was created (format: YYYY-MM-DD HH:MM:SS). Server sets automatically if omitted.\").optional(),\n related_object: z.string().default(\"job\").describe(\"Type of the related object. Defaults to 'job' for job notes. Other possible values may include 'company'.\").optional(),\n action_required: z.string().describe(\"Optional follow-up action required description.\").optional(),\n related_object_uuid: z.string().describe(\"UUID of the related job.\"),\n action_completed_by_staff_uuid: z.string().describe(\"UUID of staff member who completed the required action.\").optional(),\n}).describe(\"Request model for creating a new ServiceM8 Job Note.\");\nexport const Servicem8CreateJobNoteOutput = z.object({\n message: z.string().describe(\"API response message. Typically 'OK' on success.\").nullable().optional(),\n errorCode: z.number().int().describe(\"API error code. 0 indicates success, non-zero indicates an error.\").nullable().optional(),\n record_uuid: z.string().describe(\"UUID of the newly created note record (from x-record-uuid response header).\").nullable(),\n}).passthrough().describe(\"Response model for a newly created ServiceM8 Job Note.\");\n\nexport const servicem8CreateJobNote = action(\"SERVICEM8_CREATE_JOB_NOTE\", {\n slug: \"servicem8-create-job-note\",\n name: \"ServiceM8 Create Job Note\",\n description: \"Create a new job note in ServiceM8. Requires the job's UUID (related_object_uuid) and the note content. Returns the UUID of the created note record. Use this to add comments, updates, or action items to a specific job.\",\n input: Servicem8CreateJobNoteInput,\n output: Servicem8CreateJobNoteOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;CAChD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;CACpH,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CAChH,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0GAA0G,CAAC,CAAC,SAAS;CACtJ,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,2GAA2G,CAAC,CAAC,SAAS;CACzK,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CACjG,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;CACnE,gCAAgCA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;AAC1H,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9H,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;AAC3H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wDAAwD;AAElF,MAAa,yBAAyBC,eAAAA,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -15,7 +15,7 @@ declare const Servicem8CreateJobNoteOutput: z.ZodObject<{
|
|
|
15
15
|
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
16
|
errorCode: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
17
17
|
record_uuid: z.ZodNullable<z.ZodString>;
|
|
18
|
-
}, z.core.$
|
|
18
|
+
}, z.core.$loose>;
|
|
19
19
|
declare const servicem8CreateJobNote: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
20
20
|
note: string;
|
|
21
21
|
related_object_uuid: string;
|
|
@@ -15,7 +15,7 @@ declare const Servicem8CreateJobNoteOutput: z.ZodObject<{
|
|
|
15
15
|
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
16
|
errorCode: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
17
17
|
record_uuid: z.ZodNullable<z.ZodString>;
|
|
18
|
-
}, z.core.$
|
|
18
|
+
}, z.core.$loose>;
|
|
19
19
|
declare const servicem8CreateJobNote: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
20
20
|
note: string;
|
|
21
21
|
related_object_uuid: string;
|
|
@@ -18,7 +18,7 @@ const servicem8CreateJobNote = action("SERVICEM8_CREATE_JOB_NOTE", {
|
|
|
18
18
|
message: z.string().describe("API response message. Typically 'OK' on success.").nullable().optional(),
|
|
19
19
|
errorCode: z.number().int().describe("API error code. 0 indicates success, non-zero indicates an error.").nullable().optional(),
|
|
20
20
|
record_uuid: z.string().describe("UUID of the newly created note record (from x-record-uuid response header).").nullable()
|
|
21
|
-
}).describe("Response model for a newly created ServiceM8 Job Note.")
|
|
21
|
+
}).passthrough().describe("Response model for a newly created ServiceM8 Job Note.")
|
|
22
22
|
});
|
|
23
23
|
//#endregion
|
|
24
24
|
export { servicem8CreateJobNote };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-job-note.mjs","names":[],"sources":["../../src/actions/create-job-note.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8CreateJobNoteInput = z.object({\n note: z.string().describe(\"Content of the note.\"),\n uuid: z.string().describe(\"Unique identifier for this note record. If omitted, a UUID will be generated.\").optional(),\n active: z.number().int().default(1).describe(\"Record active flag: 1 = active (default), 0 = deleted.\").optional(),\n create_date: z.string().describe(\"Timestamp when the note was created (format: YYYY-MM-DD HH:MM:SS). Server sets automatically if omitted.\").optional(),\n related_object: z.string().default(\"job\").describe(\"Type of the related object. Defaults to 'job' for job notes. Other possible values may include 'company'.\").optional(),\n action_required: z.string().describe(\"Optional follow-up action required description.\").optional(),\n related_object_uuid: z.string().describe(\"UUID of the related job.\"),\n action_completed_by_staff_uuid: z.string().describe(\"UUID of staff member who completed the required action.\").optional(),\n}).describe(\"Request model for creating a new ServiceM8 Job Note.\");\nexport const Servicem8CreateJobNoteOutput = z.object({\n message: z.string().describe(\"API response message. Typically 'OK' on success.\").nullable().optional(),\n errorCode: z.number().int().describe(\"API error code. 0 indicates success, non-zero indicates an error.\").nullable().optional(),\n record_uuid: z.string().describe(\"UUID of the newly created note record (from x-record-uuid response header).\").nullable(),\n}).describe(\"Response model for a newly created ServiceM8 Job Note.\");\n\nexport const servicem8CreateJobNote = action(\"SERVICEM8_CREATE_JOB_NOTE\", {\n slug: \"servicem8-create-job-note\",\n name: \"ServiceM8 Create Job Note\",\n description: \"Create a new job note in ServiceM8. Requires the job's UUID (related_object_uuid) and the note content. Returns the UUID of the created note record. Use this to add comments, updates, or action items to a specific job.\",\n input: Servicem8CreateJobNoteInput,\n output: Servicem8CreateJobNoteOutput,\n});\n"],"mappings":";;AAoBA,MAAa,yBAAyB,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OApByC,EAAE,OAAO;EAClD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;EAChD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;EACpH,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;EAChH,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,0GAA0G,CAAC,CAAC,SAAS;EACtJ,gBAAgB,EAAE,OAAO,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,2GAA2G,CAAC,CAAC,SAAS;EACzK,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;EACjG,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;EACnE,gCAAgC,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CAC1H,CAAC,CAAC,CAAC,SAAS,sDAWH;CACP,QAX0C,EAAE,OAAO;EACnD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrG,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9H,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CAC3H,CAAC,CAAC,CAAC,SAAS,
|
|
1
|
+
{"version":3,"file":"create-job-note.mjs","names":[],"sources":["../../src/actions/create-job-note.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8CreateJobNoteInput = z.object({\n note: z.string().describe(\"Content of the note.\"),\n uuid: z.string().describe(\"Unique identifier for this note record. If omitted, a UUID will be generated.\").optional(),\n active: z.number().int().default(1).describe(\"Record active flag: 1 = active (default), 0 = deleted.\").optional(),\n create_date: z.string().describe(\"Timestamp when the note was created (format: YYYY-MM-DD HH:MM:SS). Server sets automatically if omitted.\").optional(),\n related_object: z.string().default(\"job\").describe(\"Type of the related object. Defaults to 'job' for job notes. Other possible values may include 'company'.\").optional(),\n action_required: z.string().describe(\"Optional follow-up action required description.\").optional(),\n related_object_uuid: z.string().describe(\"UUID of the related job.\"),\n action_completed_by_staff_uuid: z.string().describe(\"UUID of staff member who completed the required action.\").optional(),\n}).describe(\"Request model for creating a new ServiceM8 Job Note.\");\nexport const Servicem8CreateJobNoteOutput = z.object({\n message: z.string().describe(\"API response message. Typically 'OK' on success.\").nullable().optional(),\n errorCode: z.number().int().describe(\"API error code. 0 indicates success, non-zero indicates an error.\").nullable().optional(),\n record_uuid: z.string().describe(\"UUID of the newly created note record (from x-record-uuid response header).\").nullable(),\n}).passthrough().describe(\"Response model for a newly created ServiceM8 Job Note.\");\n\nexport const servicem8CreateJobNote = action(\"SERVICEM8_CREATE_JOB_NOTE\", {\n slug: \"servicem8-create-job-note\",\n name: \"ServiceM8 Create Job Note\",\n description: \"Create a new job note in ServiceM8. Requires the job's UUID (related_object_uuid) and the note content. Returns the UUID of the created note record. Use this to add comments, updates, or action items to a specific job.\",\n input: Servicem8CreateJobNoteInput,\n output: Servicem8CreateJobNoteOutput,\n});\n"],"mappings":";;AAoBA,MAAa,yBAAyB,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OApByC,EAAE,OAAO;EAClD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;EAChD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;EACpH,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;EAChH,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,0GAA0G,CAAC,CAAC,SAAS;EACtJ,gBAAgB,EAAE,OAAO,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,2GAA2G,CAAC,CAAC,SAAS;EACzK,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;EACjG,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;EACnE,gCAAgC,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CAC1H,CAAC,CAAC,CAAC,SAAS,sDAWH;CACP,QAX0C,EAAE,OAAO;EACnD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrG,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9H,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CAC3H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wDAOhB;AACV,CAAC"}
|
|
@@ -18,7 +18,7 @@ const Servicem8CreateJobPaymentOutput = zod.z.object({
|
|
|
18
18
|
message: zod.z.string().describe("API response message. Typically 'OK' on success.").nullable().optional(),
|
|
19
19
|
errorCode: zod.z.number().int().describe("API error code. 0 indicates success.").nullable().optional(),
|
|
20
20
|
record_uuid: zod.z.string().describe("UUID of the newly created job payment record (from x-record-uuid response header).").nullable()
|
|
21
|
-
}).describe("Response model for a newly created ServiceM8 Job Payment.");
|
|
21
|
+
}).passthrough().describe("Response model for a newly created ServiceM8 Job Payment.");
|
|
22
22
|
const servicem8CreateJobPayment = require_action.action("SERVICEM8_CREATE_JOB_PAYMENT", {
|
|
23
23
|
slug: "servicem8-create-job-payment",
|
|
24
24
|
name: "ServiceM8 Create Job Payment",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-job-payment.cjs","names":["z","action"],"sources":["../../src/actions/create-job-payment.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8CreateJobPaymentInput = z.object({\n note: z.string().describe(\"Additional notes or comments regarding the payment.\").optional(),\n uuid: z.string().describe(\"Optional UUID for the payment record. If omitted, a UUID will be auto-generated by the server.\").optional(),\n active: z.number().int().default(1).describe(\"Record active flag: 1 = active (default), 0 = archived/deleted.\").optional(),\n amount: z.string().describe(\"Amount of the payment as a decimal string (e.g., '100.00', '50.50'). Use string format to preserve decimal precision.\"),\n method: z.string().describe(\"Payment method used. Common values: 'cash', 'credit_card', 'eftpos', 'cheque', 'bank_transfer', 'online'.\"),\n job_uuid: z.string().describe(\"UUID of the job to record the payment against. Obtain this from list_all_jobs or create_job actions.\"),\n edit_date: z.string().describe(\"Timestamp of last edit in 'YYYY-MM-DD HH:MM:SS' format. Usually auto-set by the server if omitted.\").optional(),\n timestamp: z.string().describe(\"Timestamp when the payment was received in 'YYYY-MM-DD HH:MM:SS' format.\"),\n is_deposit: z.number().int().describe(\"Deposit flag: 1 = this payment is a deposit, 0 = regular payment (default if omitted).\").optional(),\n attachment_uuid: z.string().describe(\"UUID of any attachment (e.g., receipt image) related to the payment.\").optional(),\n actioned_by_uuid: z.string().describe(\"UUID of the staff member who recorded/processed the payment. Obtain from staff endpoints. If omitted, may default to the authenticated user.\").optional(),\n}).describe(\"Request model for creating a new ServiceM8 Job Payment.\");\nexport const Servicem8CreateJobPaymentOutput = z.object({\n message: z.string().describe(\"API response message. Typically 'OK' on success.\").nullable().optional(),\n errorCode: z.number().int().describe(\"API error code. 0 indicates success.\").nullable().optional(),\n record_uuid: z.string().describe(\"UUID of the newly created job payment record (from x-record-uuid response header).\").nullable(),\n}).describe(\"Response model for a newly created ServiceM8 Job Payment.\");\n\nexport const servicem8CreateJobPayment = action(\"SERVICEM8_CREATE_JOB_PAYMENT\", {\n slug: \"servicem8-create-job-payment\",\n name: \"ServiceM8 Create Job Payment\",\n description: \"Tool to create a new job payment in ServiceM8. Use when you have collected payment details and need to record payment against a job. Example: \\\"Create a 100.00 cash payment for job 123e4567-e89b-12d3-a456-426614174000 at 2023-01-01 13:00:00.\\\"\",\n input: Servicem8CreateJobPaymentInput,\n output: Servicem8CreateJobPaymentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CAC1F,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gGAAgG,CAAC,CAAC,SAAS;CACrI,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CACzH,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uHAAuH;CACnJ,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2GAA2G;CACvI,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sGAAsG;CACpI,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;CAC9I,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E;CACzG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS;CACzI,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;CACtH,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8IAA8I,CAAC,CAAC,SAAS;AACjM,CAAC,CAAC,CAAC,SAAS,yDAAyD;AACrE,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS;AAClI,CAAC,CAAC,CAAC,SAAS,2DAA2D;
|
|
1
|
+
{"version":3,"file":"create-job-payment.cjs","names":["z","action"],"sources":["../../src/actions/create-job-payment.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8CreateJobPaymentInput = z.object({\n note: z.string().describe(\"Additional notes or comments regarding the payment.\").optional(),\n uuid: z.string().describe(\"Optional UUID for the payment record. If omitted, a UUID will be auto-generated by the server.\").optional(),\n active: z.number().int().default(1).describe(\"Record active flag: 1 = active (default), 0 = archived/deleted.\").optional(),\n amount: z.string().describe(\"Amount of the payment as a decimal string (e.g., '100.00', '50.50'). Use string format to preserve decimal precision.\"),\n method: z.string().describe(\"Payment method used. Common values: 'cash', 'credit_card', 'eftpos', 'cheque', 'bank_transfer', 'online'.\"),\n job_uuid: z.string().describe(\"UUID of the job to record the payment against. Obtain this from list_all_jobs or create_job actions.\"),\n edit_date: z.string().describe(\"Timestamp of last edit in 'YYYY-MM-DD HH:MM:SS' format. Usually auto-set by the server if omitted.\").optional(),\n timestamp: z.string().describe(\"Timestamp when the payment was received in 'YYYY-MM-DD HH:MM:SS' format.\"),\n is_deposit: z.number().int().describe(\"Deposit flag: 1 = this payment is a deposit, 0 = regular payment (default if omitted).\").optional(),\n attachment_uuid: z.string().describe(\"UUID of any attachment (e.g., receipt image) related to the payment.\").optional(),\n actioned_by_uuid: z.string().describe(\"UUID of the staff member who recorded/processed the payment. Obtain from staff endpoints. If omitted, may default to the authenticated user.\").optional(),\n}).describe(\"Request model for creating a new ServiceM8 Job Payment.\");\nexport const Servicem8CreateJobPaymentOutput = z.object({\n message: z.string().describe(\"API response message. Typically 'OK' on success.\").nullable().optional(),\n errorCode: z.number().int().describe(\"API error code. 0 indicates success.\").nullable().optional(),\n record_uuid: z.string().describe(\"UUID of the newly created job payment record (from x-record-uuid response header).\").nullable(),\n}).passthrough().describe(\"Response model for a newly created ServiceM8 Job Payment.\");\n\nexport const servicem8CreateJobPayment = action(\"SERVICEM8_CREATE_JOB_PAYMENT\", {\n slug: \"servicem8-create-job-payment\",\n name: \"ServiceM8 Create Job Payment\",\n description: \"Tool to create a new job payment in ServiceM8. Use when you have collected payment details and need to record payment against a job. Example: \\\"Create a 100.00 cash payment for job 123e4567-e89b-12d3-a456-426614174000 at 2023-01-01 13:00:00.\\\"\",\n input: Servicem8CreateJobPaymentInput,\n output: Servicem8CreateJobPaymentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CAC1F,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gGAAgG,CAAC,CAAC,SAAS;CACrI,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CACzH,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uHAAuH;CACnJ,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2GAA2G;CACvI,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sGAAsG;CACpI,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;CAC9I,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E;CACzG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS;CACzI,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;CACtH,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8IAA8I,CAAC,CAAC,SAAS;AACjM,CAAC,CAAC,CAAC,SAAS,yDAAyD;AACrE,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS;AAClI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2DAA2D;AAErF,MAAa,4BAA4BC,eAAAA,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -18,7 +18,7 @@ declare const Servicem8CreateJobPaymentOutput: z.ZodObject<{
|
|
|
18
18
|
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
19
|
errorCode: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
20
20
|
record_uuid: z.ZodNullable<z.ZodString>;
|
|
21
|
-
}, z.core.$
|
|
21
|
+
}, z.core.$loose>;
|
|
22
22
|
declare const servicem8CreateJobPayment: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
23
23
|
amount: string;
|
|
24
24
|
method: string;
|
|
@@ -18,7 +18,7 @@ declare const Servicem8CreateJobPaymentOutput: z.ZodObject<{
|
|
|
18
18
|
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
19
|
errorCode: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
20
20
|
record_uuid: z.ZodNullable<z.ZodString>;
|
|
21
|
-
}, z.core.$
|
|
21
|
+
}, z.core.$loose>;
|
|
22
22
|
declare const servicem8CreateJobPayment: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
23
23
|
amount: string;
|
|
24
24
|
method: string;
|
|
@@ -21,7 +21,7 @@ const servicem8CreateJobPayment = action("SERVICEM8_CREATE_JOB_PAYMENT", {
|
|
|
21
21
|
message: z.string().describe("API response message. Typically 'OK' on success.").nullable().optional(),
|
|
22
22
|
errorCode: z.number().int().describe("API error code. 0 indicates success.").nullable().optional(),
|
|
23
23
|
record_uuid: z.string().describe("UUID of the newly created job payment record (from x-record-uuid response header).").nullable()
|
|
24
|
-
}).describe("Response model for a newly created ServiceM8 Job Payment.")
|
|
24
|
+
}).passthrough().describe("Response model for a newly created ServiceM8 Job Payment.")
|
|
25
25
|
});
|
|
26
26
|
//#endregion
|
|
27
27
|
export { servicem8CreateJobPayment };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-job-payment.mjs","names":[],"sources":["../../src/actions/create-job-payment.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8CreateJobPaymentInput = z.object({\n note: z.string().describe(\"Additional notes or comments regarding the payment.\").optional(),\n uuid: z.string().describe(\"Optional UUID for the payment record. If omitted, a UUID will be auto-generated by the server.\").optional(),\n active: z.number().int().default(1).describe(\"Record active flag: 1 = active (default), 0 = archived/deleted.\").optional(),\n amount: z.string().describe(\"Amount of the payment as a decimal string (e.g., '100.00', '50.50'). Use string format to preserve decimal precision.\"),\n method: z.string().describe(\"Payment method used. Common values: 'cash', 'credit_card', 'eftpos', 'cheque', 'bank_transfer', 'online'.\"),\n job_uuid: z.string().describe(\"UUID of the job to record the payment against. Obtain this from list_all_jobs or create_job actions.\"),\n edit_date: z.string().describe(\"Timestamp of last edit in 'YYYY-MM-DD HH:MM:SS' format. Usually auto-set by the server if omitted.\").optional(),\n timestamp: z.string().describe(\"Timestamp when the payment was received in 'YYYY-MM-DD HH:MM:SS' format.\"),\n is_deposit: z.number().int().describe(\"Deposit flag: 1 = this payment is a deposit, 0 = regular payment (default if omitted).\").optional(),\n attachment_uuid: z.string().describe(\"UUID of any attachment (e.g., receipt image) related to the payment.\").optional(),\n actioned_by_uuid: z.string().describe(\"UUID of the staff member who recorded/processed the payment. Obtain from staff endpoints. If omitted, may default to the authenticated user.\").optional(),\n}).describe(\"Request model for creating a new ServiceM8 Job Payment.\");\nexport const Servicem8CreateJobPaymentOutput = z.object({\n message: z.string().describe(\"API response message. Typically 'OK' on success.\").nullable().optional(),\n errorCode: z.number().int().describe(\"API error code. 0 indicates success.\").nullable().optional(),\n record_uuid: z.string().describe(\"UUID of the newly created job payment record (from x-record-uuid response header).\").nullable(),\n}).describe(\"Response model for a newly created ServiceM8 Job Payment.\");\n\nexport const servicem8CreateJobPayment = action(\"SERVICEM8_CREATE_JOB_PAYMENT\", {\n slug: \"servicem8-create-job-payment\",\n name: \"ServiceM8 Create Job Payment\",\n description: \"Tool to create a new job payment in ServiceM8. Use when you have collected payment details and need to record payment against a job. Example: \\\"Create a 100.00 cash payment for job 123e4567-e89b-12d3-a456-426614174000 at 2023-01-01 13:00:00.\\\"\",\n input: Servicem8CreateJobPaymentInput,\n output: Servicem8CreateJobPaymentOutput,\n});\n"],"mappings":";;AAuBA,MAAa,4BAA4B,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAvB4C,EAAE,OAAO;EACrD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;EAC1F,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gGAAgG,CAAC,CAAC,SAAS;EACrI,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;EACzH,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,uHAAuH;EACnJ,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,2GAA2G;EACvI,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,sGAAsG;EACpI,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;EAC9I,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E;EACzG,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS;EACzI,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;EACtH,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,8IAA8I,CAAC,CAAC,SAAS;CACjM,CAAC,CAAC,CAAC,SAAS,yDAWH;CACP,QAX6C,EAAE,OAAO;EACtD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrG,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS;CAClI,CAAC,CAAC,CAAC,SAAS,
|
|
1
|
+
{"version":3,"file":"create-job-payment.mjs","names":[],"sources":["../../src/actions/create-job-payment.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8CreateJobPaymentInput = z.object({\n note: z.string().describe(\"Additional notes or comments regarding the payment.\").optional(),\n uuid: z.string().describe(\"Optional UUID for the payment record. If omitted, a UUID will be auto-generated by the server.\").optional(),\n active: z.number().int().default(1).describe(\"Record active flag: 1 = active (default), 0 = archived/deleted.\").optional(),\n amount: z.string().describe(\"Amount of the payment as a decimal string (e.g., '100.00', '50.50'). Use string format to preserve decimal precision.\"),\n method: z.string().describe(\"Payment method used. Common values: 'cash', 'credit_card', 'eftpos', 'cheque', 'bank_transfer', 'online'.\"),\n job_uuid: z.string().describe(\"UUID of the job to record the payment against. Obtain this from list_all_jobs or create_job actions.\"),\n edit_date: z.string().describe(\"Timestamp of last edit in 'YYYY-MM-DD HH:MM:SS' format. Usually auto-set by the server if omitted.\").optional(),\n timestamp: z.string().describe(\"Timestamp when the payment was received in 'YYYY-MM-DD HH:MM:SS' format.\"),\n is_deposit: z.number().int().describe(\"Deposit flag: 1 = this payment is a deposit, 0 = regular payment (default if omitted).\").optional(),\n attachment_uuid: z.string().describe(\"UUID of any attachment (e.g., receipt image) related to the payment.\").optional(),\n actioned_by_uuid: z.string().describe(\"UUID of the staff member who recorded/processed the payment. Obtain from staff endpoints. If omitted, may default to the authenticated user.\").optional(),\n}).describe(\"Request model for creating a new ServiceM8 Job Payment.\");\nexport const Servicem8CreateJobPaymentOutput = z.object({\n message: z.string().describe(\"API response message. Typically 'OK' on success.\").nullable().optional(),\n errorCode: z.number().int().describe(\"API error code. 0 indicates success.\").nullable().optional(),\n record_uuid: z.string().describe(\"UUID of the newly created job payment record (from x-record-uuid response header).\").nullable(),\n}).passthrough().describe(\"Response model for a newly created ServiceM8 Job Payment.\");\n\nexport const servicem8CreateJobPayment = action(\"SERVICEM8_CREATE_JOB_PAYMENT\", {\n slug: \"servicem8-create-job-payment\",\n name: \"ServiceM8 Create Job Payment\",\n description: \"Tool to create a new job payment in ServiceM8. Use when you have collected payment details and need to record payment against a job. Example: \\\"Create a 100.00 cash payment for job 123e4567-e89b-12d3-a456-426614174000 at 2023-01-01 13:00:00.\\\"\",\n input: Servicem8CreateJobPaymentInput,\n output: Servicem8CreateJobPaymentOutput,\n});\n"],"mappings":";;AAuBA,MAAa,4BAA4B,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAvB4C,EAAE,OAAO;EACrD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;EAC1F,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gGAAgG,CAAC,CAAC,SAAS;EACrI,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;EACzH,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,uHAAuH;EACnJ,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,2GAA2G;EACvI,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,sGAAsG;EACpI,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;EAC9I,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E;EACzG,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS;EACzI,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;EACtH,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,8IAA8I,CAAC,CAAC,SAAS;CACjM,CAAC,CAAC,CAAC,SAAS,yDAWH;CACP,QAX6C,EAAE,OAAO;EACtD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrG,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS;CAClI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2DAOhB;AACV,CAAC"}
|
|
@@ -37,7 +37,7 @@ const Servicem8CreateJobs_JobSchema = zod.z.object({
|
|
|
37
37
|
const Servicem8CreateJobsOutput = zod.z.object({
|
|
38
38
|
job: Servicem8CreateJobs_JobSchema.nullable(),
|
|
39
39
|
record_uuid: zod.z.string().describe("UUID of the newly created job record (from x-record-uuid header).").nullable()
|
|
40
|
-
}).describe("Response returned after creating a Job in ServiceM8.");
|
|
40
|
+
}).passthrough().describe("Response returned after creating a Job in ServiceM8.");
|
|
41
41
|
const servicem8CreateJobs = require_action.action("SERVICEM8_CREATE_JOBS", {
|
|
42
42
|
slug: "servicem8-create-jobs",
|
|
43
43
|
name: "Create a new Job",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-jobs.cjs","names":["z","action"],"sources":["../../src/actions/create-jobs.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8CreateJobsInput = z.object({\n date: z.string().describe(\"Date the job is scheduled or created (YYYY-MM-DD).\").optional(),\n active: z.number().int().default(1).describe(\"Active flag (1 = active, 0 = deleted). Defaults to 1.\").optional(),\n badges: z.array(z.string()).describe(\"List of badge UUIDs to apply to this job.\").optional(),\n status: z.enum([\"Quote\", \"Work Order\", \"Unsuccessful\", \"Completed\"]).describe(\"Current status of the job. Controls dispatch board placement.\"),\n queue_uuid: z.string().describe(\"UUID of the queue to assign this job to.\").optional(),\n job_address: z.string().describe(\"Physical address where the job is to be performed.\"),\n company_uuid: z.string().describe(\"UUID of the customer/company associated with this job.\").optional(),\n category_uuid: z.string().describe(\"UUID of the job category.\").optional(),\n job_description: z.string().describe(\"Brief description of the work to be done.\").optional(),\n created_by_staff_uuid: z.string().describe(\"UUID of the staff member creating this job.\").optional(),\n purchase_order_number: z.string().describe(\"Client purchase order reference number.\").optional(),\n}).describe(\"Request parameters for creating a new Job in ServiceM8.\");\nconst Servicem8CreateJobs_JobSchema = z.object({\n date: z.string().describe(\"Date the job was created or scheduled.\").nullable().optional(),\n uuid: z.string().describe(\"Unique identifier for this job record.\").nullable(),\n active: z.number().int().describe(\"Active flag (1 = active, 0 = deleted).\").nullable(),\n status: z.enum([\"Quote\", \"Work Order\", \"Unsuccessful\", \"Completed\"]).describe(\"Current status of the job.\").nullable(),\n job_address: z.string().describe(\"Address where the job is performed.\").nullable().optional(),\n company_uuid: z.string().describe(\"UUID of the associated company.\").nullable().optional(),\n job_description: z.string().describe(\"Description of the job.\").nullable().optional(),\n created_by_staff_uuid: z.string().describe(\"UUID of the staff member who created the job.\").nullable().optional(),\n}).passthrough().describe(\"Partial Schema for a ServiceM8 Job record.\\nExtra fields are allowed.\");\nexport const Servicem8CreateJobsOutput = z.object({\n job: Servicem8CreateJobs_JobSchema.nullable(),\n record_uuid: z.string().describe(\"UUID of the newly created job record (from x-record-uuid header).\").nullable(),\n}).describe(\"Response returned after creating a Job in ServiceM8.\");\n\nexport const servicem8CreateJobs = action(\"SERVICEM8_CREATE_JOBS\", {\n slug: \"servicem8-create-jobs\",\n name: \"Create a new Job\",\n description: \"Tool to create a new Job in ServiceM8. Use when you have gathered all job details and need to push a record. Example: \\\"Create a Quote job for 123 Main St with PO #1234.\\\"\",\n input: Servicem8CreateJobsInput,\n output: Servicem8CreateJobsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CACzF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAC/G,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAC3F,QAAQA,IAAAA,EAAE,KAAK;EAAC;EAAS;EAAc;EAAgB;CAAW,CAAC,CAAC,CAAC,SAAS,+DAA+D;CAC7I,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACrF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD;CACrF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CACrG,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACzE,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAC3F,uBAAuBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CACnG,uBAAuBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;AACjG,CAAC,CAAC,CAAC,SAAS,yDAAyD;AACrE,MAAM,gCAAgCA,IAAAA,EAAE,OAAO;CAC7C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC7E,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACrF,QAAQA,IAAAA,EAAE,KAAK;EAAC;EAAS;EAAc;EAAgB;CAAW,CAAC,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACrH,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,uBAAuBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uEAAuE;AACjG,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,KAAK,8BAA8B,SAAS;CAC5C,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;AACjH,CAAC,CAAC,CAAC,SAAS,sDAAsD;
|
|
1
|
+
{"version":3,"file":"create-jobs.cjs","names":["z","action"],"sources":["../../src/actions/create-jobs.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8CreateJobsInput = z.object({\n date: z.string().describe(\"Date the job is scheduled or created (YYYY-MM-DD).\").optional(),\n active: z.number().int().default(1).describe(\"Active flag (1 = active, 0 = deleted). Defaults to 1.\").optional(),\n badges: z.array(z.string()).describe(\"List of badge UUIDs to apply to this job.\").optional(),\n status: z.enum([\"Quote\", \"Work Order\", \"Unsuccessful\", \"Completed\"]).describe(\"Current status of the job. Controls dispatch board placement.\"),\n queue_uuid: z.string().describe(\"UUID of the queue to assign this job to.\").optional(),\n job_address: z.string().describe(\"Physical address where the job is to be performed.\"),\n company_uuid: z.string().describe(\"UUID of the customer/company associated with this job.\").optional(),\n category_uuid: z.string().describe(\"UUID of the job category.\").optional(),\n job_description: z.string().describe(\"Brief description of the work to be done.\").optional(),\n created_by_staff_uuid: z.string().describe(\"UUID of the staff member creating this job.\").optional(),\n purchase_order_number: z.string().describe(\"Client purchase order reference number.\").optional(),\n}).describe(\"Request parameters for creating a new Job in ServiceM8.\");\nconst Servicem8CreateJobs_JobSchema = z.object({\n date: z.string().describe(\"Date the job was created or scheduled.\").nullable().optional(),\n uuid: z.string().describe(\"Unique identifier for this job record.\").nullable(),\n active: z.number().int().describe(\"Active flag (1 = active, 0 = deleted).\").nullable(),\n status: z.enum([\"Quote\", \"Work Order\", \"Unsuccessful\", \"Completed\"]).describe(\"Current status of the job.\").nullable(),\n job_address: z.string().describe(\"Address where the job is performed.\").nullable().optional(),\n company_uuid: z.string().describe(\"UUID of the associated company.\").nullable().optional(),\n job_description: z.string().describe(\"Description of the job.\").nullable().optional(),\n created_by_staff_uuid: z.string().describe(\"UUID of the staff member who created the job.\").nullable().optional(),\n}).passthrough().describe(\"Partial Schema for a ServiceM8 Job record.\\nExtra fields are allowed.\");\nexport const Servicem8CreateJobsOutput = z.object({\n job: Servicem8CreateJobs_JobSchema.nullable(),\n record_uuid: z.string().describe(\"UUID of the newly created job record (from x-record-uuid header).\").nullable(),\n}).passthrough().describe(\"Response returned after creating a Job in ServiceM8.\");\n\nexport const servicem8CreateJobs = action(\"SERVICEM8_CREATE_JOBS\", {\n slug: \"servicem8-create-jobs\",\n name: \"Create a new Job\",\n description: \"Tool to create a new Job in ServiceM8. Use when you have gathered all job details and need to push a record. Example: \\\"Create a Quote job for 123 Main St with PO #1234.\\\"\",\n input: Servicem8CreateJobsInput,\n output: Servicem8CreateJobsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CACzF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAC/G,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAC3F,QAAQA,IAAAA,EAAE,KAAK;EAAC;EAAS;EAAc;EAAgB;CAAW,CAAC,CAAC,CAAC,SAAS,+DAA+D;CAC7I,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACrF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD;CACrF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CACrG,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACzE,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAC3F,uBAAuBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CACnG,uBAAuBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;AACjG,CAAC,CAAC,CAAC,SAAS,yDAAyD;AACrE,MAAM,gCAAgCA,IAAAA,EAAE,OAAO;CAC7C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC7E,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACrF,QAAQA,IAAAA,EAAE,KAAK;EAAC;EAAS;EAAc;EAAgB;CAAW,CAAC,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACrH,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,uBAAuBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uEAAuE;AACjG,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,KAAK,8BAA8B,SAAS;CAC5C,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;AACjH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sDAAsD;AAEhF,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -36,7 +36,7 @@ declare const Servicem8CreateJobsOutput: z.ZodObject<{
|
|
|
36
36
|
created_by_staff_uuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
37
37
|
}, z.core.$loose>>;
|
|
38
38
|
record_uuid: z.ZodNullable<z.ZodString>;
|
|
39
|
-
}, z.core.$
|
|
39
|
+
}, z.core.$loose>;
|
|
40
40
|
declare const servicem8CreateJobs: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
41
41
|
status: "Quote" | "Work Order" | "Unsuccessful" | "Completed";
|
|
42
42
|
job_address: string;
|
|
@@ -36,7 +36,7 @@ declare const Servicem8CreateJobsOutput: z.ZodObject<{
|
|
|
36
36
|
created_by_staff_uuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
37
37
|
}, z.core.$loose>>;
|
|
38
38
|
record_uuid: z.ZodNullable<z.ZodString>;
|
|
39
|
-
}, z.core.$
|
|
39
|
+
}, z.core.$loose>;
|
|
40
40
|
declare const servicem8CreateJobs: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
41
41
|
status: "Quote" | "Work Order" | "Unsuccessful" | "Completed";
|
|
42
42
|
job_address: string;
|
|
@@ -42,7 +42,7 @@ const servicem8CreateJobs = action("SERVICEM8_CREATE_JOBS", {
|
|
|
42
42
|
output: z.object({
|
|
43
43
|
job: Servicem8CreateJobs_JobSchema.nullable(),
|
|
44
44
|
record_uuid: z.string().describe("UUID of the newly created job record (from x-record-uuid header).").nullable()
|
|
45
|
-
}).describe("Response returned after creating a Job in ServiceM8.")
|
|
45
|
+
}).passthrough().describe("Response returned after creating a Job in ServiceM8.")
|
|
46
46
|
});
|
|
47
47
|
//#endregion
|
|
48
48
|
export { servicem8CreateJobs };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-jobs.mjs","names":[],"sources":["../../src/actions/create-jobs.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8CreateJobsInput = z.object({\n date: z.string().describe(\"Date the job is scheduled or created (YYYY-MM-DD).\").optional(),\n active: z.number().int().default(1).describe(\"Active flag (1 = active, 0 = deleted). Defaults to 1.\").optional(),\n badges: z.array(z.string()).describe(\"List of badge UUIDs to apply to this job.\").optional(),\n status: z.enum([\"Quote\", \"Work Order\", \"Unsuccessful\", \"Completed\"]).describe(\"Current status of the job. Controls dispatch board placement.\"),\n queue_uuid: z.string().describe(\"UUID of the queue to assign this job to.\").optional(),\n job_address: z.string().describe(\"Physical address where the job is to be performed.\"),\n company_uuid: z.string().describe(\"UUID of the customer/company associated with this job.\").optional(),\n category_uuid: z.string().describe(\"UUID of the job category.\").optional(),\n job_description: z.string().describe(\"Brief description of the work to be done.\").optional(),\n created_by_staff_uuid: z.string().describe(\"UUID of the staff member creating this job.\").optional(),\n purchase_order_number: z.string().describe(\"Client purchase order reference number.\").optional(),\n}).describe(\"Request parameters for creating a new Job in ServiceM8.\");\nconst Servicem8CreateJobs_JobSchema = z.object({\n date: z.string().describe(\"Date the job was created or scheduled.\").nullable().optional(),\n uuid: z.string().describe(\"Unique identifier for this job record.\").nullable(),\n active: z.number().int().describe(\"Active flag (1 = active, 0 = deleted).\").nullable(),\n status: z.enum([\"Quote\", \"Work Order\", \"Unsuccessful\", \"Completed\"]).describe(\"Current status of the job.\").nullable(),\n job_address: z.string().describe(\"Address where the job is performed.\").nullable().optional(),\n company_uuid: z.string().describe(\"UUID of the associated company.\").nullable().optional(),\n job_description: z.string().describe(\"Description of the job.\").nullable().optional(),\n created_by_staff_uuid: z.string().describe(\"UUID of the staff member who created the job.\").nullable().optional(),\n}).passthrough().describe(\"Partial Schema for a ServiceM8 Job record.\\nExtra fields are allowed.\");\nexport const Servicem8CreateJobsOutput = z.object({\n job: Servicem8CreateJobs_JobSchema.nullable(),\n record_uuid: z.string().describe(\"UUID of the newly created job record (from x-record-uuid header).\").nullable(),\n}).describe(\"Response returned after creating a Job in ServiceM8.\");\n\nexport const servicem8CreateJobs = action(\"SERVICEM8_CREATE_JOBS\", {\n slug: \"servicem8-create-jobs\",\n name: \"Create a new Job\",\n description: \"Tool to create a new Job in ServiceM8. Use when you have gathered all job details and need to push a record. Example: \\\"Create a Quote job for 123 Main St with PO #1234.\\\"\",\n input: Servicem8CreateJobsInput,\n output: Servicem8CreateJobsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2B,EAAE,OAAO;CAC/C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CACzF,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAC/G,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAC3F,QAAQ,EAAE,KAAK;EAAC;EAAS;EAAc;EAAgB;CAAW,CAAC,CAAC,CAAC,SAAS,+DAA+D;CAC7I,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACrF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD;CACrF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CACrG,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACzE,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAC3F,uBAAuB,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CACnG,uBAAuB,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;AACjG,CAAC,CAAC,CAAC,SAAS,yDAAyD;AACrE,MAAM,gCAAgC,EAAE,OAAO;CAC7C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC7E,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACrF,QAAQ,EAAE,KAAK;EAAC;EAAS;EAAc;EAAgB;CAAW,CAAC,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACrH,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,uBAAuB,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uEAAuE;AAMjG,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVuC,EAAE,OAAO;EAChD,KAAK,8BAA8B,SAAS;EAC5C,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;CACjH,CAAC,CAAC,CAAC,SAAS,
|
|
1
|
+
{"version":3,"file":"create-jobs.mjs","names":[],"sources":["../../src/actions/create-jobs.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8CreateJobsInput = z.object({\n date: z.string().describe(\"Date the job is scheduled or created (YYYY-MM-DD).\").optional(),\n active: z.number().int().default(1).describe(\"Active flag (1 = active, 0 = deleted). Defaults to 1.\").optional(),\n badges: z.array(z.string()).describe(\"List of badge UUIDs to apply to this job.\").optional(),\n status: z.enum([\"Quote\", \"Work Order\", \"Unsuccessful\", \"Completed\"]).describe(\"Current status of the job. Controls dispatch board placement.\"),\n queue_uuid: z.string().describe(\"UUID of the queue to assign this job to.\").optional(),\n job_address: z.string().describe(\"Physical address where the job is to be performed.\"),\n company_uuid: z.string().describe(\"UUID of the customer/company associated with this job.\").optional(),\n category_uuid: z.string().describe(\"UUID of the job category.\").optional(),\n job_description: z.string().describe(\"Brief description of the work to be done.\").optional(),\n created_by_staff_uuid: z.string().describe(\"UUID of the staff member creating this job.\").optional(),\n purchase_order_number: z.string().describe(\"Client purchase order reference number.\").optional(),\n}).describe(\"Request parameters for creating a new Job in ServiceM8.\");\nconst Servicem8CreateJobs_JobSchema = z.object({\n date: z.string().describe(\"Date the job was created or scheduled.\").nullable().optional(),\n uuid: z.string().describe(\"Unique identifier for this job record.\").nullable(),\n active: z.number().int().describe(\"Active flag (1 = active, 0 = deleted).\").nullable(),\n status: z.enum([\"Quote\", \"Work Order\", \"Unsuccessful\", \"Completed\"]).describe(\"Current status of the job.\").nullable(),\n job_address: z.string().describe(\"Address where the job is performed.\").nullable().optional(),\n company_uuid: z.string().describe(\"UUID of the associated company.\").nullable().optional(),\n job_description: z.string().describe(\"Description of the job.\").nullable().optional(),\n created_by_staff_uuid: z.string().describe(\"UUID of the staff member who created the job.\").nullable().optional(),\n}).passthrough().describe(\"Partial Schema for a ServiceM8 Job record.\\nExtra fields are allowed.\");\nexport const Servicem8CreateJobsOutput = z.object({\n job: Servicem8CreateJobs_JobSchema.nullable(),\n record_uuid: z.string().describe(\"UUID of the newly created job record (from x-record-uuid header).\").nullable(),\n}).passthrough().describe(\"Response returned after creating a Job in ServiceM8.\");\n\nexport const servicem8CreateJobs = action(\"SERVICEM8_CREATE_JOBS\", {\n slug: \"servicem8-create-jobs\",\n name: \"Create a new Job\",\n description: \"Tool to create a new Job in ServiceM8. Use when you have gathered all job details and need to push a record. Example: \\\"Create a Quote job for 123 Main St with PO #1234.\\\"\",\n input: Servicem8CreateJobsInput,\n output: Servicem8CreateJobsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2B,EAAE,OAAO;CAC/C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CACzF,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAC/G,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAC3F,QAAQ,EAAE,KAAK;EAAC;EAAS;EAAc;EAAgB;CAAW,CAAC,CAAC,CAAC,SAAS,+DAA+D;CAC7I,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACrF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD;CACrF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CACrG,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACzE,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAC3F,uBAAuB,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CACnG,uBAAuB,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;AACjG,CAAC,CAAC,CAAC,SAAS,yDAAyD;AACrE,MAAM,gCAAgC,EAAE,OAAO;CAC7C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC7E,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACrF,QAAQ,EAAE,KAAK;EAAC;EAAS;EAAc;EAAgB;CAAW,CAAC,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACrH,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,uBAAuB,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uEAAuE;AAMjG,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVuC,EAAE,OAAO;EAChD,KAAK,8BAA8B,SAAS;EAC5C,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;CACjH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sDAOhB;AACV,CAAC"}
|
|
@@ -5,7 +5,7 @@ const Servicem8DeleteCustomFieldInput = zod.z.object({ uuid: zod.z.string().desc
|
|
|
5
5
|
const Servicem8DeleteCustomFieldOutput = zod.z.object({
|
|
6
6
|
message: zod.z.string().describe("API response message describing the result of the operation.").nullable().optional(),
|
|
7
7
|
errorCode: zod.z.number().int().describe("API error code. 0 indicates success, non-zero indicates an error. May be absent on 204 No Content responses.").nullable().optional()
|
|
8
|
-
}).describe("Response model for successful custom field deletion.");
|
|
8
|
+
}).passthrough().describe("Response model for successful custom field deletion.");
|
|
9
9
|
const servicem8DeleteCustomField = require_action.action("SERVICEM8_DELETE_CUSTOM_FIELD", {
|
|
10
10
|
slug: "servicem8-delete-custom-field",
|
|
11
11
|
name: "Delete Custom Field",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-custom-field.cjs","names":["z","action"],"sources":["../../src/actions/delete-custom-field.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8DeleteCustomFieldInput = z.object({\n uuid: z.string().describe(\"The UUID of the custom field to delete. Must be a valid UUID string.\"),\n}).describe(\"Request model for deleting a ServiceM8 Custom Field by UUID.\");\nexport const Servicem8DeleteCustomFieldOutput = z.object({\n message: z.string().describe(\"API response message describing the result of the operation.\").nullable().optional(),\n errorCode: z.number().int().describe(\"API error code. 0 indicates success, non-zero indicates an error. May be absent on 204 No Content responses.\").nullable().optional(),\n}).describe(\"Response model for successful custom field deletion.\");\n\nexport const servicem8DeleteCustomField = action(\"SERVICEM8_DELETE_CUSTOM_FIELD\", {\n slug: \"servicem8-delete-custom-field\",\n name: \"Delete Custom Field\",\n description: \"Delete a custom field in ServiceM8 by its UUID. Use this when you need to permanently remove a custom field definition from the system. This will remove the custom field and any associated data.\",\n input: Servicem8DeleteCustomFieldInput,\n output: Servicem8DeleteCustomFieldOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO,EACtD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,EAClG,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAC1E,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjH,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8GAA8G,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3K,CAAC,CAAC,CAAC,SAAS,sDAAsD;
|
|
1
|
+
{"version":3,"file":"delete-custom-field.cjs","names":["z","action"],"sources":["../../src/actions/delete-custom-field.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8DeleteCustomFieldInput = z.object({\n uuid: z.string().describe(\"The UUID of the custom field to delete. Must be a valid UUID string.\"),\n}).describe(\"Request model for deleting a ServiceM8 Custom Field by UUID.\");\nexport const Servicem8DeleteCustomFieldOutput = z.object({\n message: z.string().describe(\"API response message describing the result of the operation.\").nullable().optional(),\n errorCode: z.number().int().describe(\"API error code. 0 indicates success, non-zero indicates an error. May be absent on 204 No Content responses.\").nullable().optional(),\n}).passthrough().describe(\"Response model for successful custom field deletion.\");\n\nexport const servicem8DeleteCustomField = action(\"SERVICEM8_DELETE_CUSTOM_FIELD\", {\n slug: \"servicem8-delete-custom-field\",\n name: \"Delete Custom Field\",\n description: \"Delete a custom field in ServiceM8 by its UUID. Use this when you need to permanently remove a custom field definition from the system. This will remove the custom field and any associated data.\",\n input: Servicem8DeleteCustomFieldInput,\n output: Servicem8DeleteCustomFieldOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO,EACtD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,EAClG,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAC1E,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjH,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8GAA8G,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3K,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sDAAsD;AAEhF,MAAa,6BAA6BC,eAAAA,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -7,7 +7,7 @@ declare const Servicem8DeleteCustomFieldInput: z.ZodObject<{
|
|
|
7
7
|
declare const Servicem8DeleteCustomFieldOutput: z.ZodObject<{
|
|
8
8
|
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
9
|
errorCode: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
10
|
-
}, z.core.$
|
|
10
|
+
}, z.core.$loose>;
|
|
11
11
|
declare const servicem8DeleteCustomField: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
12
12
|
uuid: string;
|
|
13
13
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -7,7 +7,7 @@ declare const Servicem8DeleteCustomFieldInput: z.ZodObject<{
|
|
|
7
7
|
declare const Servicem8DeleteCustomFieldOutput: z.ZodObject<{
|
|
8
8
|
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
9
|
errorCode: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
10
|
-
}, z.core.$
|
|
10
|
+
}, z.core.$loose>;
|
|
11
11
|
declare const servicem8DeleteCustomField: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
12
12
|
uuid: string;
|
|
13
13
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -8,7 +8,7 @@ const servicem8DeleteCustomField = action("SERVICEM8_DELETE_CUSTOM_FIELD", {
|
|
|
8
8
|
output: z.object({
|
|
9
9
|
message: z.string().describe("API response message describing the result of the operation.").nullable().optional(),
|
|
10
10
|
errorCode: z.number().int().describe("API error code. 0 indicates success, non-zero indicates an error. May be absent on 204 No Content responses.").nullable().optional()
|
|
11
|
-
}).describe("Response model for successful custom field deletion.")
|
|
11
|
+
}).passthrough().describe("Response model for successful custom field deletion.")
|
|
12
12
|
});
|
|
13
13
|
//#endregion
|
|
14
14
|
export { servicem8DeleteCustomField };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-custom-field.mjs","names":[],"sources":["../../src/actions/delete-custom-field.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8DeleteCustomFieldInput = z.object({\n uuid: z.string().describe(\"The UUID of the custom field to delete. Must be a valid UUID string.\"),\n}).describe(\"Request model for deleting a ServiceM8 Custom Field by UUID.\");\nexport const Servicem8DeleteCustomFieldOutput = z.object({\n message: z.string().describe(\"API response message describing the result of the operation.\").nullable().optional(),\n errorCode: z.number().int().describe(\"API error code. 0 indicates success, non-zero indicates an error. May be absent on 204 No Content responses.\").nullable().optional(),\n}).describe(\"Response model for successful custom field deletion.\");\n\nexport const servicem8DeleteCustomField = action(\"SERVICEM8_DELETE_CUSTOM_FIELD\", {\n slug: \"servicem8-delete-custom-field\",\n name: \"Delete Custom Field\",\n description: \"Delete a custom field in ServiceM8 by its UUID. Use this when you need to permanently remove a custom field definition from the system. This will remove the custom field and any associated data.\",\n input: Servicem8DeleteCustomFieldInput,\n output: Servicem8DeleteCustomFieldOutput,\n});\n"],"mappings":";;AAYA,MAAa,6BAA6B,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZ6C,EAAE,OAAO,EACtD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,EAClG,CAAC,CAAC,CAAC,SAAS,8DAUH;CACP,QAV8C,EAAE,OAAO;EACvD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjH,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8GAA8G,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3K,CAAC,CAAC,CAAC,SAAS,
|
|
1
|
+
{"version":3,"file":"delete-custom-field.mjs","names":[],"sources":["../../src/actions/delete-custom-field.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8DeleteCustomFieldInput = z.object({\n uuid: z.string().describe(\"The UUID of the custom field to delete. Must be a valid UUID string.\"),\n}).describe(\"Request model for deleting a ServiceM8 Custom Field by UUID.\");\nexport const Servicem8DeleteCustomFieldOutput = z.object({\n message: z.string().describe(\"API response message describing the result of the operation.\").nullable().optional(),\n errorCode: z.number().int().describe(\"API error code. 0 indicates success, non-zero indicates an error. May be absent on 204 No Content responses.\").nullable().optional(),\n}).passthrough().describe(\"Response model for successful custom field deletion.\");\n\nexport const servicem8DeleteCustomField = action(\"SERVICEM8_DELETE_CUSTOM_FIELD\", {\n slug: \"servicem8-delete-custom-field\",\n name: \"Delete Custom Field\",\n description: \"Delete a custom field in ServiceM8 by its UUID. Use this when you need to permanently remove a custom field definition from the system. This will remove the custom field and any associated data.\",\n input: Servicem8DeleteCustomFieldInput,\n output: Servicem8DeleteCustomFieldOutput,\n});\n"],"mappings":";;AAYA,MAAa,6BAA6B,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZ6C,EAAE,OAAO,EACtD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,EAClG,CAAC,CAAC,CAAC,SAAS,8DAUH;CACP,QAV8C,EAAE,OAAO;EACvD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjH,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8GAA8G,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3K,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sDAOhB;AACV,CAAC"}
|
|
@@ -10,7 +10,7 @@ const Servicem8DeleteJobNoteOutput = zod.z.object({
|
|
|
10
10
|
edit_date: zod.z.string().describe("Timestamp when the note was last modified (YYYY-MM-DD HH:MM:SS).").nullable().optional(),
|
|
11
11
|
created_at: zod.z.string().describe("Timestamp when the note was created (YYYY-MM-DD HH:MM:SS), if available.").nullable().optional(),
|
|
12
12
|
staff_uuid: zod.z.string().describe("UUID of the staff member who created the note, if available.").nullable().optional()
|
|
13
|
-
}).describe("Response model for a deleted ServiceM8 job note, with active set to 0.\nConfirms the note was archived (soft-deleted) successfully.");
|
|
13
|
+
}).passthrough().describe("Response model for a deleted ServiceM8 job note, with active set to 0.\nConfirms the note was archived (soft-deleted) successfully.");
|
|
14
14
|
const servicem8DeleteJobNote = require_action.action("SERVICEM8_DELETE_JOB_NOTE", {
|
|
15
15
|
slug: "servicem8-delete-job-note",
|
|
16
16
|
name: "Delete Job Note",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-job-note.cjs","names":["z","action"],"sources":["../../src/actions/delete-job-note.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8DeleteJobNoteInput = z.object({\n uuid: z.string().describe(\"UUID of the job note to delete. Example: '123e4567-e89b-12d3-a456-426614174000'\"),\n}).describe(\"Request model for deleting a specific ServiceM8 job note.\");\nexport const Servicem8DeleteJobNoteOutput = z.object({\n note: z.string().describe(\"Content of the note, if available.\").nullable().optional(),\n uuid: z.string().describe(\"Unique UUID of the deleted note.\").nullable(),\n active: z.number().int().default(0).describe(\"Record active flag: always 0 after deletion (archived).\").nullable().optional(),\n job_uuid: z.string().describe(\"UUID of the associated job, if available.\").nullable().optional(),\n edit_date: z.string().describe(\"Timestamp when the note was last modified (YYYY-MM-DD HH:MM:SS).\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the note was created (YYYY-MM-DD HH:MM:SS), if available.\").nullable().optional(),\n staff_uuid: z.string().describe(\"UUID of the staff member who created the note, if available.\").nullable().optional(),\n}).describe(\"Response model for a deleted ServiceM8 job note, with active set to 0.\\nConfirms the note was archived (soft-deleted) successfully.\");\n\nexport const servicem8DeleteJobNote = action(\"SERVICEM8_DELETE_JOB_NOTE\", {\n slug: \"servicem8-delete-job-note\",\n name: \"Delete Job Note\",\n description: \"Deletes (archives) a job note in ServiceM8 by its UUID. Use this tool when you need to remove a note from a job's diary. In ServiceM8, deletion is a soft-delete: the note is archived (active=0) rather than permanently removed, and can be restored later if needed. Prerequisites: You need the note's UUID, which can be obtained from the 'List All Job Notes' or 'Retrieve Job Note' actions.\",\n input: Servicem8DeleteJobNoteInput,\n output: Servicem8DeleteJobNoteOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,EAClD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,EAC7G,CAAC,CAAC,CAAC,SAAS,2DAA2D;AACvE,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CACvE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5H,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvH,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChI,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtH,CAAC,CAAC,CAAC,SAAS,qIAAqI;
|
|
1
|
+
{"version":3,"file":"delete-job-note.cjs","names":["z","action"],"sources":["../../src/actions/delete-job-note.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8DeleteJobNoteInput = z.object({\n uuid: z.string().describe(\"UUID of the job note to delete. Example: '123e4567-e89b-12d3-a456-426614174000'\"),\n}).describe(\"Request model for deleting a specific ServiceM8 job note.\");\nexport const Servicem8DeleteJobNoteOutput = z.object({\n note: z.string().describe(\"Content of the note, if available.\").nullable().optional(),\n uuid: z.string().describe(\"Unique UUID of the deleted note.\").nullable(),\n active: z.number().int().default(0).describe(\"Record active flag: always 0 after deletion (archived).\").nullable().optional(),\n job_uuid: z.string().describe(\"UUID of the associated job, if available.\").nullable().optional(),\n edit_date: z.string().describe(\"Timestamp when the note was last modified (YYYY-MM-DD HH:MM:SS).\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the note was created (YYYY-MM-DD HH:MM:SS), if available.\").nullable().optional(),\n staff_uuid: z.string().describe(\"UUID of the staff member who created the note, if available.\").nullable().optional(),\n}).passthrough().describe(\"Response model for a deleted ServiceM8 job note, with active set to 0.\\nConfirms the note was archived (soft-deleted) successfully.\");\n\nexport const servicem8DeleteJobNote = action(\"SERVICEM8_DELETE_JOB_NOTE\", {\n slug: \"servicem8-delete-job-note\",\n name: \"Delete Job Note\",\n description: \"Deletes (archives) a job note in ServiceM8 by its UUID. Use this tool when you need to remove a note from a job's diary. In ServiceM8, deletion is a soft-delete: the note is archived (active=0) rather than permanently removed, and can be restored later if needed. Prerequisites: You need the note's UUID, which can be obtained from the 'List All Job Notes' or 'Retrieve Job Note' actions.\",\n input: Servicem8DeleteJobNoteInput,\n output: Servicem8DeleteJobNoteOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,EAClD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,EAC7G,CAAC,CAAC,CAAC,SAAS,2DAA2D;AACvE,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CACvE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5H,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvH,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChI,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qIAAqI;AAE/J,MAAa,yBAAyBC,eAAAA,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -12,7 +12,7 @@ declare const Servicem8DeleteJobNoteOutput: z.ZodObject<{
|
|
|
12
12
|
edit_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
13
|
created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
14
|
staff_uuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
-
}, z.core.$
|
|
15
|
+
}, z.core.$loose>;
|
|
16
16
|
declare const servicem8DeleteJobNote: 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]>;
|
|
@@ -12,7 +12,7 @@ declare const Servicem8DeleteJobNoteOutput: z.ZodObject<{
|
|
|
12
12
|
edit_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
13
|
created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
14
|
staff_uuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
-
}, z.core.$
|
|
15
|
+
}, z.core.$loose>;
|
|
16
16
|
declare const servicem8DeleteJobNote: 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]>;
|
|
@@ -13,7 +13,7 @@ const servicem8DeleteJobNote = action("SERVICEM8_DELETE_JOB_NOTE", {
|
|
|
13
13
|
edit_date: z.string().describe("Timestamp when the note was last modified (YYYY-MM-DD HH:MM:SS).").nullable().optional(),
|
|
14
14
|
created_at: z.string().describe("Timestamp when the note was created (YYYY-MM-DD HH:MM:SS), if available.").nullable().optional(),
|
|
15
15
|
staff_uuid: z.string().describe("UUID of the staff member who created the note, if available.").nullable().optional()
|
|
16
|
-
}).describe("Response model for a deleted ServiceM8 job note, with active set to 0.\nConfirms the note was archived (soft-deleted) successfully.")
|
|
16
|
+
}).passthrough().describe("Response model for a deleted ServiceM8 job note, with active set to 0.\nConfirms the note was archived (soft-deleted) successfully.")
|
|
17
17
|
});
|
|
18
18
|
//#endregion
|
|
19
19
|
export { servicem8DeleteJobNote };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-job-note.mjs","names":[],"sources":["../../src/actions/delete-job-note.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8DeleteJobNoteInput = z.object({\n uuid: z.string().describe(\"UUID of the job note to delete. Example: '123e4567-e89b-12d3-a456-426614174000'\"),\n}).describe(\"Request model for deleting a specific ServiceM8 job note.\");\nexport const Servicem8DeleteJobNoteOutput = z.object({\n note: z.string().describe(\"Content of the note, if available.\").nullable().optional(),\n uuid: z.string().describe(\"Unique UUID of the deleted note.\").nullable(),\n active: z.number().int().default(0).describe(\"Record active flag: always 0 after deletion (archived).\").nullable().optional(),\n job_uuid: z.string().describe(\"UUID of the associated job, if available.\").nullable().optional(),\n edit_date: z.string().describe(\"Timestamp when the note was last modified (YYYY-MM-DD HH:MM:SS).\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the note was created (YYYY-MM-DD HH:MM:SS), if available.\").nullable().optional(),\n staff_uuid: z.string().describe(\"UUID of the staff member who created the note, if available.\").nullable().optional(),\n}).describe(\"Response model for a deleted ServiceM8 job note, with active set to 0.\\nConfirms the note was archived (soft-deleted) successfully.\");\n\nexport const servicem8DeleteJobNote = action(\"SERVICEM8_DELETE_JOB_NOTE\", {\n slug: \"servicem8-delete-job-note\",\n name: \"Delete Job Note\",\n description: \"Deletes (archives) a job note in ServiceM8 by its UUID. Use this tool when you need to remove a note from a job's diary. In ServiceM8, deletion is a soft-delete: the note is archived (active=0) rather than permanently removed, and can be restored later if needed. Prerequisites: You need the note's UUID, which can be obtained from the 'List All Job Notes' or 'Retrieve Job Note' actions.\",\n input: Servicem8DeleteJobNoteInput,\n output: Servicem8DeleteJobNoteOutput,\n});\n"],"mappings":";;AAiBA,MAAa,yBAAyB,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAjByC,EAAE,OAAO,EAClD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,EAC7G,CAAC,CAAC,CAAC,SAAS,2DAeH;CACP,QAf0C,EAAE,OAAO;EACnD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;EACvE,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5H,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/F,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvH,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChI,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtH,CAAC,CAAC,CAAC,SAAS,
|
|
1
|
+
{"version":3,"file":"delete-job-note.mjs","names":[],"sources":["../../src/actions/delete-job-note.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8DeleteJobNoteInput = z.object({\n uuid: z.string().describe(\"UUID of the job note to delete. Example: '123e4567-e89b-12d3-a456-426614174000'\"),\n}).describe(\"Request model for deleting a specific ServiceM8 job note.\");\nexport const Servicem8DeleteJobNoteOutput = z.object({\n note: z.string().describe(\"Content of the note, if available.\").nullable().optional(),\n uuid: z.string().describe(\"Unique UUID of the deleted note.\").nullable(),\n active: z.number().int().default(0).describe(\"Record active flag: always 0 after deletion (archived).\").nullable().optional(),\n job_uuid: z.string().describe(\"UUID of the associated job, if available.\").nullable().optional(),\n edit_date: z.string().describe(\"Timestamp when the note was last modified (YYYY-MM-DD HH:MM:SS).\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the note was created (YYYY-MM-DD HH:MM:SS), if available.\").nullable().optional(),\n staff_uuid: z.string().describe(\"UUID of the staff member who created the note, if available.\").nullable().optional(),\n}).passthrough().describe(\"Response model for a deleted ServiceM8 job note, with active set to 0.\\nConfirms the note was archived (soft-deleted) successfully.\");\n\nexport const servicem8DeleteJobNote = action(\"SERVICEM8_DELETE_JOB_NOTE\", {\n slug: \"servicem8-delete-job-note\",\n name: \"Delete Job Note\",\n description: \"Deletes (archives) a job note in ServiceM8 by its UUID. Use this tool when you need to remove a note from a job's diary. In ServiceM8, deletion is a soft-delete: the note is archived (active=0) rather than permanently removed, and can be restored later if needed. Prerequisites: You need the note's UUID, which can be obtained from the 'List All Job Notes' or 'Retrieve Job Note' actions.\",\n input: Servicem8DeleteJobNoteInput,\n output: Servicem8DeleteJobNoteOutput,\n});\n"],"mappings":";;AAiBA,MAAa,yBAAyB,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAjByC,EAAE,OAAO,EAClD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,EAC7G,CAAC,CAAC,CAAC,SAAS,2DAeH;CACP,QAf0C,EAAE,OAAO;EACnD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;EACvE,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5H,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/F,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvH,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChI,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qIAOhB;AACV,CAAC"}
|
|
@@ -6,7 +6,7 @@ const Servicem8DeleteJobPaymentOutput = zod.z.object({
|
|
|
6
6
|
uuid: zod.z.string().describe("UUID of the job payment that was archived.").nullable(),
|
|
7
7
|
message: zod.z.string().describe("Human-readable message describing the result of the operation.").nullable(),
|
|
8
8
|
success: zod.z.boolean().describe("True if the job payment was successfully archived.").nullable()
|
|
9
|
-
}).describe("Response model confirming the job payment was successfully archived.");
|
|
9
|
+
}).passthrough().describe("Response model confirming the job payment was successfully archived.");
|
|
10
10
|
const servicem8DeleteJobPayment = require_action.action("SERVICEM8_DELETE_JOB_PAYMENT", {
|
|
11
11
|
slug: "servicem8-delete-job-payment",
|
|
12
12
|
name: "Delete Job Payment",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-job-payment.cjs","names":["z","action"],"sources":["../../src/actions/delete-job-payment.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8DeleteJobPaymentInput = z.object({\n uuid: z.string().describe(\"The UUID of the job payment to delete (archive). In ServiceM8, deletion is a soft delete that sets the record's active field to 0, hiding it from the UI but keeping it accessible via API.\"),\n}).describe(\"Request model for deleting (archiving) a ServiceM8 Job Payment by UUID.\");\nexport const Servicem8DeleteJobPaymentOutput = z.object({\n uuid: z.string().describe(\"UUID of the job payment that was archived.\").nullable(),\n message: z.string().describe(\"Human-readable message describing the result of the operation.\").nullable(),\n success: z.boolean().describe(\"True if the job payment was successfully archived.\").nullable(),\n}).describe(\"Response model confirming the job payment was successfully archived.\");\n\nexport const servicem8DeleteJobPayment = action(\"SERVICEM8_DELETE_JOB_PAYMENT\", {\n slug: \"servicem8-delete-job-payment\",\n name: \"Delete Job Payment\",\n description: \"Archives (soft-deletes) a job payment record in ServiceM8 by its UUID. In ServiceM8, records are never permanently deleted. Instead, deletion sets the record's 'active' field to 0, which hides it from the UI but keeps it accessible via the API. Archived records can be restored by setting their 'active' field back to 1. Use this tool when you need to remove a payment record from active use, such as when a payment was recorded in error or needs to be voided. Requires the 'manage_job_payments' OAuth scope.\",\n input: Servicem8DeleteJobPaymentInput,\n output: Servicem8DeleteJobPaymentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO,EACrD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6LAA6L,EACzN,CAAC,CAAC,CAAC,SAAS,yEAAyE;AACrF,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACjF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CACxG,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,SAAS,sEAAsE;
|
|
1
|
+
{"version":3,"file":"delete-job-payment.cjs","names":["z","action"],"sources":["../../src/actions/delete-job-payment.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8DeleteJobPaymentInput = z.object({\n uuid: z.string().describe(\"The UUID of the job payment to delete (archive). In ServiceM8, deletion is a soft delete that sets the record's active field to 0, hiding it from the UI but keeping it accessible via API.\"),\n}).describe(\"Request model for deleting (archiving) a ServiceM8 Job Payment by UUID.\");\nexport const Servicem8DeleteJobPaymentOutput = z.object({\n uuid: z.string().describe(\"UUID of the job payment that was archived.\").nullable(),\n message: z.string().describe(\"Human-readable message describing the result of the operation.\").nullable(),\n success: z.boolean().describe(\"True if the job payment was successfully archived.\").nullable(),\n}).passthrough().describe(\"Response model confirming the job payment was successfully archived.\");\n\nexport const servicem8DeleteJobPayment = action(\"SERVICEM8_DELETE_JOB_PAYMENT\", {\n slug: \"servicem8-delete-job-payment\",\n name: \"Delete Job Payment\",\n description: \"Archives (soft-deletes) a job payment record in ServiceM8 by its UUID. In ServiceM8, records are never permanently deleted. Instead, deletion sets the record's 'active' field to 0, which hides it from the UI but keeps it accessible via the API. Archived records can be restored by setting their 'active' field back to 1. Use this tool when you need to remove a payment record from active use, such as when a payment was recorded in error or needs to be voided. Requires the 'manage_job_payments' OAuth scope.\",\n input: Servicem8DeleteJobPaymentInput,\n output: Servicem8DeleteJobPaymentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO,EACrD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6LAA6L,EACzN,CAAC,CAAC,CAAC,SAAS,yEAAyE;AACrF,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACjF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CACxG,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sEAAsE;AAEhG,MAAa,4BAA4BC,eAAAA,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -8,7 +8,7 @@ declare const Servicem8DeleteJobPaymentOutput: z.ZodObject<{
|
|
|
8
8
|
uuid: z.ZodNullable<z.ZodString>;
|
|
9
9
|
message: z.ZodNullable<z.ZodString>;
|
|
10
10
|
success: z.ZodNullable<z.ZodBoolean>;
|
|
11
|
-
}, z.core.$
|
|
11
|
+
}, z.core.$loose>;
|
|
12
12
|
declare const servicem8DeleteJobPayment: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
13
13
|
uuid: string;
|
|
14
14
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -8,7 +8,7 @@ declare const Servicem8DeleteJobPaymentOutput: z.ZodObject<{
|
|
|
8
8
|
uuid: z.ZodNullable<z.ZodString>;
|
|
9
9
|
message: z.ZodNullable<z.ZodString>;
|
|
10
10
|
success: z.ZodNullable<z.ZodBoolean>;
|
|
11
|
-
}, z.core.$
|
|
11
|
+
}, z.core.$loose>;
|
|
12
12
|
declare const servicem8DeleteJobPayment: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
13
13
|
uuid: string;
|
|
14
14
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -9,7 +9,7 @@ const servicem8DeleteJobPayment = action("SERVICEM8_DELETE_JOB_PAYMENT", {
|
|
|
9
9
|
uuid: z.string().describe("UUID of the job payment that was archived.").nullable(),
|
|
10
10
|
message: z.string().describe("Human-readable message describing the result of the operation.").nullable(),
|
|
11
11
|
success: z.boolean().describe("True if the job payment was successfully archived.").nullable()
|
|
12
|
-
}).describe("Response model confirming the job payment was successfully archived.")
|
|
12
|
+
}).passthrough().describe("Response model confirming the job payment was successfully archived.")
|
|
13
13
|
});
|
|
14
14
|
//#endregion
|
|
15
15
|
export { servicem8DeleteJobPayment };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-job-payment.mjs","names":[],"sources":["../../src/actions/delete-job-payment.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8DeleteJobPaymentInput = z.object({\n uuid: z.string().describe(\"The UUID of the job payment to delete (archive). In ServiceM8, deletion is a soft delete that sets the record's active field to 0, hiding it from the UI but keeping it accessible via API.\"),\n}).describe(\"Request model for deleting (archiving) a ServiceM8 Job Payment by UUID.\");\nexport const Servicem8DeleteJobPaymentOutput = z.object({\n uuid: z.string().describe(\"UUID of the job payment that was archived.\").nullable(),\n message: z.string().describe(\"Human-readable message describing the result of the operation.\").nullable(),\n success: z.boolean().describe(\"True if the job payment was successfully archived.\").nullable(),\n}).describe(\"Response model confirming the job payment was successfully archived.\");\n\nexport const servicem8DeleteJobPayment = action(\"SERVICEM8_DELETE_JOB_PAYMENT\", {\n slug: \"servicem8-delete-job-payment\",\n name: \"Delete Job Payment\",\n description: \"Archives (soft-deletes) a job payment record in ServiceM8 by its UUID. In ServiceM8, records are never permanently deleted. Instead, deletion sets the record's 'active' field to 0, which hides it from the UI but keeps it accessible via the API. Archived records can be restored by setting their 'active' field back to 1. Use this tool when you need to remove a payment record from active use, such as when a payment was recorded in error or needs to be voided. Requires the 'manage_job_payments' OAuth scope.\",\n input: Servicem8DeleteJobPaymentInput,\n output: Servicem8DeleteJobPaymentOutput,\n});\n"],"mappings":";;AAaA,MAAa,4BAA4B,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAb4C,EAAE,OAAO,EACrD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6LAA6L,EACzN,CAAC,CAAC,CAAC,SAAS,yEAWH;CACP,QAX6C,EAAE,OAAO;EACtD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;EACjF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;EACxG,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAC/F,CAAC,CAAC,CAAC,SAAS,
|
|
1
|
+
{"version":3,"file":"delete-job-payment.mjs","names":[],"sources":["../../src/actions/delete-job-payment.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Servicem8DeleteJobPaymentInput = z.object({\n uuid: z.string().describe(\"The UUID of the job payment to delete (archive). In ServiceM8, deletion is a soft delete that sets the record's active field to 0, hiding it from the UI but keeping it accessible via API.\"),\n}).describe(\"Request model for deleting (archiving) a ServiceM8 Job Payment by UUID.\");\nexport const Servicem8DeleteJobPaymentOutput = z.object({\n uuid: z.string().describe(\"UUID of the job payment that was archived.\").nullable(),\n message: z.string().describe(\"Human-readable message describing the result of the operation.\").nullable(),\n success: z.boolean().describe(\"True if the job payment was successfully archived.\").nullable(),\n}).passthrough().describe(\"Response model confirming the job payment was successfully archived.\");\n\nexport const servicem8DeleteJobPayment = action(\"SERVICEM8_DELETE_JOB_PAYMENT\", {\n slug: \"servicem8-delete-job-payment\",\n name: \"Delete Job Payment\",\n description: \"Archives (soft-deletes) a job payment record in ServiceM8 by its UUID. In ServiceM8, records are never permanently deleted. Instead, deletion sets the record's 'active' field to 0, which hides it from the UI but keeps it accessible via the API. Archived records can be restored by setting their 'active' field back to 1. Use this tool when you need to remove a payment record from active use, such as when a payment was recorded in error or needs to be voided. Requires the 'manage_job_payments' OAuth scope.\",\n input: Servicem8DeleteJobPaymentInput,\n output: Servicem8DeleteJobPaymentOutput,\n});\n"],"mappings":";;AAaA,MAAa,4BAA4B,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAb4C,EAAE,OAAO,EACrD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6LAA6L,EACzN,CAAC,CAAC,CAAC,SAAS,yEAWH;CACP,QAX6C,EAAE,OAAO;EACtD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;EACjF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;EACxG,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sEAOhB;AACV,CAAC"}
|
|
@@ -14,11 +14,11 @@ const Servicem8ListAllJobNotes_NoteSchema = zod.z.object({
|
|
|
14
14
|
timestamp: zod.z.string().describe("Timestamp when the note was created (YYYY-MM-DD HH:MM:SS format, mapped from create_date).").nullable(),
|
|
15
15
|
related_object: zod.z.string().describe("Type of object this note is related to (typically 'job' for job notes).").nullable().optional(),
|
|
16
16
|
created_by_staff_uuid: zod.z.string().describe("UUID of the staff member who created or last edited the note (mapped from edit_by_staff_uuid).").nullable().optional()
|
|
17
|
-
}).describe("A ServiceM8 job note record.");
|
|
17
|
+
}).passthrough().describe("A ServiceM8 job note record.");
|
|
18
18
|
const Servicem8ListAllJobNotesOutput = zod.z.object({
|
|
19
19
|
notes: zod.z.array(Servicem8ListAllJobNotes_NoteSchema).describe("List of job note records."),
|
|
20
20
|
next_cursor: zod.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()
|
|
21
|
-
}).describe("Response model for listing all job notes.");
|
|
21
|
+
}).passthrough().describe("Response model for listing all job notes.");
|
|
22
22
|
const servicem8ListAllJobNotes = require_action.action("SERVICEM8_LIST_ALL_JOB_NOTES", {
|
|
23
23
|
slug: "servicem8-list-all-job-notes",
|
|
24
24
|
name: "List All Job Notes",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-all-job-notes.cjs","names":["z","action"],"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,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0KAA0K,CAAC,CAAC,SAAS;CACjN,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kPAAkP,CAAC,CAAC,SAAS;AAC3R,CAAC,CAAC,CAAC,SAAS,mGAAmG;AAC/G,MAAM,sCAAsCA,IAAAA,EAAE,OAAO;CACnD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAChE,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,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CACtH,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9H,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4FAA4F,CAAC,CAAC,SAAS;CACtI,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnI,uBAAuBA,IAAAA,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.cjs","names":["z","action"],"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,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0KAA0K,CAAC,CAAC,SAAS;CACjN,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kPAAkP,CAAC,CAAC,SAAS;AAC3R,CAAC,CAAC,CAAC,SAAS,mGAAmG;AAC/G,MAAM,sCAAsCA,IAAAA,EAAE,OAAO;CACnD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAChE,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,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CACtH,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9H,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4FAA4F,CAAC,CAAC,SAAS;CACtI,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnI,uBAAuBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gGAAgG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnK,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8BAA8B;AACxD,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,OAAOA,IAAAA,EAAE,MAAM,mCAAmC,CAAC,CAAC,SAAS,2BAA2B;CACxF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qJAAqJ,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9M,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C;AAErE,MAAa,2BAA2BC,eAAAA,OAAO,gCAAgC;CAC7E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -15,9 +15,9 @@ declare const Servicem8ListAllJobNotesOutput: z.ZodObject<{
|
|
|
15
15
|
timestamp: z.ZodNullable<z.ZodString>;
|
|
16
16
|
related_object: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
17
|
created_by_staff_uuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
-
}, z.core.$
|
|
18
|
+
}, z.core.$loose>>;
|
|
19
19
|
next_cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
-
}, z.core.$
|
|
20
|
+
}, z.core.$loose>;
|
|
21
21
|
declare const servicem8ListAllJobNotes: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
22
22
|
cursor?: string | undefined;
|
|
23
23
|
filter?: string | undefined;
|
|
@@ -15,9 +15,9 @@ declare const Servicem8ListAllJobNotesOutput: z.ZodObject<{
|
|
|
15
15
|
timestamp: z.ZodNullable<z.ZodString>;
|
|
16
16
|
related_object: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
17
|
created_by_staff_uuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
-
}, z.core.$
|
|
18
|
+
}, z.core.$loose>>;
|
|
19
19
|
next_cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
-
}, z.core.$
|
|
20
|
+
}, z.core.$loose>;
|
|
21
21
|
declare const servicem8ListAllJobNotes: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
22
22
|
cursor?: string | undefined;
|
|
23
23
|
filter?: string | undefined;
|
|
@@ -14,7 +14,7 @@ const Servicem8ListAllJobNotes_NoteSchema = z.object({
|
|
|
14
14
|
timestamp: z.string().describe("Timestamp when the note was created (YYYY-MM-DD HH:MM:SS format, mapped from create_date).").nullable(),
|
|
15
15
|
related_object: z.string().describe("Type of object this note is related to (typically 'job' for job notes).").nullable().optional(),
|
|
16
16
|
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()
|
|
17
|
-
}).describe("A ServiceM8 job note record.");
|
|
17
|
+
}).passthrough().describe("A ServiceM8 job note record.");
|
|
18
18
|
const servicem8ListAllJobNotes = action("SERVICEM8_LIST_ALL_JOB_NOTES", {
|
|
19
19
|
slug: "servicem8-list-all-job-notes",
|
|
20
20
|
name: "List All Job Notes",
|
|
@@ -23,7 +23,7 @@ const servicem8ListAllJobNotes = action("SERVICEM8_LIST_ALL_JOB_NOTES", {
|
|
|
23
23
|
output: z.object({
|
|
24
24
|
notes: z.array(Servicem8ListAllJobNotes_NoteSchema).describe("List of job note records."),
|
|
25
25
|
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()
|
|
26
|
-
}).describe("Response model for listing all job notes.")
|
|
26
|
+
}).passthrough().describe("Response model for listing all job notes.")
|
|
27
27
|
});
|
|
28
28
|
//#endregion
|
|
29
29
|
export { servicem8ListAllJobNotes };
|