@keystrokehq/scheduleonce 0.1.0
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/README.md +17 -0
- package/dist/action.cjs +21 -0
- package/dist/action.cjs.map +1 -0
- package/dist/action.mjs +21 -0
- package/dist/action.mjs.map +1 -0
- package/dist/actions/book-time-slot.cjs +76 -0
- package/dist/actions/book-time-slot.cjs.map +1 -0
- package/dist/actions/book-time-slot.d.cts +9 -0
- package/dist/actions/book-time-slot.d.cts.map +1 -0
- package/dist/actions/book-time-slot.d.mts +9 -0
- package/dist/actions/book-time-slot.d.mts.map +1 -0
- package/dist/actions/book-time-slot.mjs +75 -0
- package/dist/actions/book-time-slot.mjs.map +1 -0
- package/dist/actions/cancel-booking.cjs +66 -0
- package/dist/actions/cancel-booking.cjs.map +1 -0
- package/dist/actions/cancel-booking.d.cts +9 -0
- package/dist/actions/cancel-booking.d.cts.map +1 -0
- package/dist/actions/cancel-booking.d.mts +9 -0
- package/dist/actions/cancel-booking.d.mts.map +1 -0
- package/dist/actions/cancel-booking.mjs +65 -0
- package/dist/actions/cancel-booking.mjs.map +1 -0
- package/dist/actions/create-contact.cjs +60 -0
- package/dist/actions/create-contact.cjs.map +1 -0
- package/dist/actions/create-contact.d.cts +9 -0
- package/dist/actions/create-contact.d.cts.map +1 -0
- package/dist/actions/create-contact.d.mts +9 -0
- package/dist/actions/create-contact.d.mts.map +1 -0
- package/dist/actions/create-contact.mjs +59 -0
- package/dist/actions/create-contact.mjs.map +1 -0
- package/dist/actions/create-one-time-link-for-booking-calendar.cjs +35 -0
- package/dist/actions/create-one-time-link-for-booking-calendar.cjs.map +1 -0
- package/dist/actions/create-one-time-link-for-booking-calendar.d.cts +9 -0
- package/dist/actions/create-one-time-link-for-booking-calendar.d.cts.map +1 -0
- package/dist/actions/create-one-time-link-for-booking-calendar.d.mts +9 -0
- package/dist/actions/create-one-time-link-for-booking-calendar.d.mts.map +1 -0
- package/dist/actions/create-one-time-link-for-booking-calendar.mjs +34 -0
- package/dist/actions/create-one-time-link-for-booking-calendar.mjs.map +1 -0
- package/dist/actions/create-user.cjs +31 -0
- package/dist/actions/create-user.cjs.map +1 -0
- package/dist/actions/create-user.d.cts +9 -0
- package/dist/actions/create-user.d.cts.map +1 -0
- package/dist/actions/create-user.d.mts +9 -0
- package/dist/actions/create-user.d.mts.map +1 -0
- package/dist/actions/create-user.mjs +28 -0
- package/dist/actions/create-user.mjs.map +1 -0
- package/dist/actions/delete-contact.cjs +19 -0
- package/dist/actions/delete-contact.cjs.map +1 -0
- package/dist/actions/delete-contact.d.cts +9 -0
- package/dist/actions/delete-contact.d.cts.map +1 -0
- package/dist/actions/delete-contact.d.mts +9 -0
- package/dist/actions/delete-contact.d.mts.map +1 -0
- package/dist/actions/delete-contact.mjs +16 -0
- package/dist/actions/delete-contact.mjs.map +1 -0
- package/dist/actions/delete-user.cjs +19 -0
- package/dist/actions/delete-user.cjs.map +1 -0
- package/dist/actions/delete-user.d.cts +9 -0
- package/dist/actions/delete-user.d.cts.map +1 -0
- package/dist/actions/delete-user.d.mts +9 -0
- package/dist/actions/delete-user.d.mts.map +1 -0
- package/dist/actions/delete-user.mjs +16 -0
- package/dist/actions/delete-user.mjs.map +1 -0
- package/dist/actions/get-available-time-slots.cjs +29 -0
- package/dist/actions/get-available-time-slots.cjs.map +1 -0
- package/dist/actions/get-available-time-slots.d.cts +9 -0
- package/dist/actions/get-available-time-slots.d.cts.map +1 -0
- package/dist/actions/get-available-time-slots.d.mts +9 -0
- package/dist/actions/get-available-time-slots.d.mts.map +1 -0
- package/dist/actions/get-available-time-slots.mjs +28 -0
- package/dist/actions/get-available-time-slots.mjs.map +1 -0
- package/dist/actions/get-single-booking-calendar.cjs +25 -0
- package/dist/actions/get-single-booking-calendar.cjs.map +1 -0
- package/dist/actions/get-single-booking-calendar.d.cts +9 -0
- package/dist/actions/get-single-booking-calendar.d.cts.map +1 -0
- package/dist/actions/get-single-booking-calendar.d.mts +9 -0
- package/dist/actions/get-single-booking-calendar.d.mts.map +1 -0
- package/dist/actions/get-single-booking-calendar.mjs +22 -0
- package/dist/actions/get-single-booking-calendar.mjs.map +1 -0
- package/dist/actions/get-single-booking.cjs +60 -0
- package/dist/actions/get-single-booking.cjs.map +1 -0
- package/dist/actions/get-single-booking.d.cts +9 -0
- package/dist/actions/get-single-booking.d.cts.map +1 -0
- package/dist/actions/get-single-booking.d.mts +9 -0
- package/dist/actions/get-single-booking.d.mts.map +1 -0
- package/dist/actions/get-single-booking.mjs +59 -0
- package/dist/actions/get-single-booking.mjs.map +1 -0
- package/dist/actions/get-single-contact.cjs +45 -0
- package/dist/actions/get-single-contact.cjs.map +1 -0
- package/dist/actions/get-single-contact.d.cts +9 -0
- package/dist/actions/get-single-contact.d.cts.map +1 -0
- package/dist/actions/get-single-contact.d.mts +9 -0
- package/dist/actions/get-single-contact.d.mts.map +1 -0
- package/dist/actions/get-single-contact.mjs +44 -0
- package/dist/actions/get-single-contact.mjs.map +1 -0
- package/dist/actions/get-single-master-page.cjs +23 -0
- package/dist/actions/get-single-master-page.cjs.map +1 -0
- package/dist/actions/get-single-master-page.d.cts +9 -0
- package/dist/actions/get-single-master-page.d.cts.map +1 -0
- package/dist/actions/get-single-master-page.d.mts +9 -0
- package/dist/actions/get-single-master-page.d.mts.map +1 -0
- package/dist/actions/get-single-master-page.mjs +20 -0
- package/dist/actions/get-single-master-page.mjs.map +1 -0
- package/dist/actions/get-single-user.cjs +29 -0
- package/dist/actions/get-single-user.cjs.map +1 -0
- package/dist/actions/get-single-user.d.cts +9 -0
- package/dist/actions/get-single-user.d.cts.map +1 -0
- package/dist/actions/get-single-user.d.mts +9 -0
- package/dist/actions/get-single-user.d.mts.map +1 -0
- package/dist/actions/get-single-user.mjs +26 -0
- package/dist/actions/get-single-user.mjs.map +1 -0
- package/dist/actions/get-user-scheduling-availability.cjs +40 -0
- package/dist/actions/get-user-scheduling-availability.cjs.map +1 -0
- package/dist/actions/get-user-scheduling-availability.d.cts +9 -0
- package/dist/actions/get-user-scheduling-availability.d.cts.map +1 -0
- package/dist/actions/get-user-scheduling-availability.d.mts +9 -0
- package/dist/actions/get-user-scheduling-availability.d.mts.map +1 -0
- package/dist/actions/get-user-scheduling-availability.mjs +39 -0
- package/dist/actions/get-user-scheduling-availability.mjs.map +1 -0
- package/dist/actions/index.cjs +55 -0
- package/dist/actions/index.d.cts +28 -0
- package/dist/actions/index.d.mts +28 -0
- package/dist/actions/index.mjs +28 -0
- package/dist/actions/list-all-booking-calendars.cjs +30 -0
- package/dist/actions/list-all-booking-calendars.cjs.map +1 -0
- package/dist/actions/list-all-booking-calendars.d.cts +9 -0
- package/dist/actions/list-all-booking-calendars.d.cts.map +1 -0
- package/dist/actions/list-all-booking-calendars.d.mts +9 -0
- package/dist/actions/list-all-booking-calendars.d.mts.map +1 -0
- package/dist/actions/list-all-booking-calendars.mjs +29 -0
- package/dist/actions/list-all-booking-calendars.mjs.map +1 -0
- package/dist/actions/list-all-booking-pages.cjs +29 -0
- package/dist/actions/list-all-booking-pages.cjs.map +1 -0
- package/dist/actions/list-all-booking-pages.d.cts +9 -0
- package/dist/actions/list-all-booking-pages.d.cts.map +1 -0
- package/dist/actions/list-all-booking-pages.d.mts +9 -0
- package/dist/actions/list-all-booking-pages.d.mts.map +1 -0
- package/dist/actions/list-all-booking-pages.mjs +28 -0
- package/dist/actions/list-all-booking-pages.mjs.map +1 -0
- package/dist/actions/list-all-bookings.cjs +66 -0
- package/dist/actions/list-all-bookings.cjs.map +1 -0
- package/dist/actions/list-all-bookings.d.cts +9 -0
- package/dist/actions/list-all-bookings.d.cts.map +1 -0
- package/dist/actions/list-all-bookings.d.mts +9 -0
- package/dist/actions/list-all-bookings.d.mts.map +1 -0
- package/dist/actions/list-all-bookings.mjs +65 -0
- package/dist/actions/list-all-bookings.mjs.map +1 -0
- package/dist/actions/list-all-contacts.cjs +57 -0
- package/dist/actions/list-all-contacts.cjs.map +1 -0
- package/dist/actions/list-all-contacts.d.cts +9 -0
- package/dist/actions/list-all-contacts.d.cts.map +1 -0
- package/dist/actions/list-all-contacts.d.mts +9 -0
- package/dist/actions/list-all-contacts.d.mts.map +1 -0
- package/dist/actions/list-all-contacts.mjs +56 -0
- package/dist/actions/list-all-contacts.mjs.map +1 -0
- package/dist/actions/list-all-event-types.cjs +26 -0
- package/dist/actions/list-all-event-types.cjs.map +1 -0
- package/dist/actions/list-all-event-types.d.cts +9 -0
- package/dist/actions/list-all-event-types.d.cts.map +1 -0
- package/dist/actions/list-all-event-types.d.mts +9 -0
- package/dist/actions/list-all-event-types.d.mts.map +1 -0
- package/dist/actions/list-all-event-types.mjs +25 -0
- package/dist/actions/list-all-event-types.mjs.map +1 -0
- package/dist/actions/list-all-master-pages.cjs +28 -0
- package/dist/actions/list-all-master-pages.cjs.map +1 -0
- package/dist/actions/list-all-master-pages.d.cts +9 -0
- package/dist/actions/list-all-master-pages.d.cts.map +1 -0
- package/dist/actions/list-all-master-pages.d.mts +9 -0
- package/dist/actions/list-all-master-pages.d.mts.map +1 -0
- package/dist/actions/list-all-master-pages.mjs +27 -0
- package/dist/actions/list-all-master-pages.mjs.map +1 -0
- package/dist/actions/list-all-teams.cjs +31 -0
- package/dist/actions/list-all-teams.cjs.map +1 -0
- package/dist/actions/list-all-teams.d.cts +9 -0
- package/dist/actions/list-all-teams.d.cts.map +1 -0
- package/dist/actions/list-all-teams.d.mts +9 -0
- package/dist/actions/list-all-teams.d.mts.map +1 -0
- package/dist/actions/list-all-teams.mjs +30 -0
- package/dist/actions/list-all-teams.mjs.map +1 -0
- package/dist/actions/list-all-users.cjs +31 -0
- package/dist/actions/list-all-users.cjs.map +1 -0
- package/dist/actions/list-all-users.d.cts +9 -0
- package/dist/actions/list-all-users.d.cts.map +1 -0
- package/dist/actions/list-all-users.d.mts +9 -0
- package/dist/actions/list-all-users.d.mts.map +1 -0
- package/dist/actions/list-all-users.mjs +30 -0
- package/dist/actions/list-all-users.mjs.map +1 -0
- package/dist/actions/mark-booking-as-no-show.cjs +73 -0
- package/dist/actions/mark-booking-as-no-show.cjs.map +1 -0
- package/dist/actions/mark-booking-as-no-show.d.cts +9 -0
- package/dist/actions/mark-booking-as-no-show.d.cts.map +1 -0
- package/dist/actions/mark-booking-as-no-show.d.mts +9 -0
- package/dist/actions/mark-booking-as-no-show.d.mts.map +1 -0
- package/dist/actions/mark-booking-as-no-show.mjs +72 -0
- package/dist/actions/mark-booking-as-no-show.mjs.map +1 -0
- package/dist/actions/test-api-key.cjs +19 -0
- package/dist/actions/test-api-key.cjs.map +1 -0
- package/dist/actions/test-api-key.d.cts +9 -0
- package/dist/actions/test-api-key.d.cts.map +1 -0
- package/dist/actions/test-api-key.d.mts +9 -0
- package/dist/actions/test-api-key.d.mts.map +1 -0
- package/dist/actions/test-api-key.mjs +16 -0
- package/dist/actions/test-api-key.mjs.map +1 -0
- package/dist/actions/update-contact.cjs +32 -0
- package/dist/actions/update-contact.cjs.map +1 -0
- package/dist/actions/update-contact.d.cts +9 -0
- package/dist/actions/update-contact.d.cts.map +1 -0
- package/dist/actions/update-contact.d.mts +9 -0
- package/dist/actions/update-contact.d.mts.map +1 -0
- package/dist/actions/update-contact.mjs +29 -0
- package/dist/actions/update-contact.mjs.map +1 -0
- package/dist/actions/update-user-scheduling-availability.cjs +73 -0
- package/dist/actions/update-user-scheduling-availability.cjs.map +1 -0
- package/dist/actions/update-user-scheduling-availability.d.cts +9 -0
- package/dist/actions/update-user-scheduling-availability.d.cts.map +1 -0
- package/dist/actions/update-user-scheduling-availability.d.mts +9 -0
- package/dist/actions/update-user-scheduling-availability.d.mts.map +1 -0
- package/dist/actions/update-user-scheduling-availability.mjs +72 -0
- package/dist/actions/update-user-scheduling-availability.mjs.map +1 -0
- package/dist/actions/update-user.cjs +33 -0
- package/dist/actions/update-user.cjs.map +1 -0
- package/dist/actions/update-user.d.cts +9 -0
- package/dist/actions/update-user.d.cts.map +1 -0
- package/dist/actions/update-user.d.mts +9 -0
- package/dist/actions/update-user.d.mts.map +1 -0
- package/dist/actions/update-user.mjs +30 -0
- package/dist/actions/update-user.mjs.map +1 -0
- package/dist/app.cjs +9 -0
- package/dist/app.cjs.map +1 -0
- package/dist/app.d.cts +5 -0
- package/dist/app.d.cts.map +1 -0
- package/dist/app.d.mts +5 -0
- package/dist/app.d.mts.map +1 -0
- package/dist/app.mjs +10 -0
- package/dist/app.mjs.map +1 -0
- package/dist/catalog.cjs +15 -0
- package/dist/catalog.cjs.map +1 -0
- package/dist/catalog.d.cts +14 -0
- package/dist/catalog.d.cts.map +1 -0
- package/dist/catalog.d.mts +14 -0
- package/dist/catalog.d.mts.map +1 -0
- package/dist/catalog.mjs +15 -0
- package/dist/catalog.mjs.map +1 -0
- package/dist/execute.cjs +18 -0
- package/dist/execute.cjs.map +1 -0
- package/dist/execute.mjs +18 -0
- package/dist/execute.mjs.map +1 -0
- package/dist/index.cjs +60 -0
- package/dist/index.d.cts +30 -0
- package/dist/index.d.mts +30 -0
- package/dist/index.mjs +31 -0
- package/package.json +49 -0
package/README.md
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# @keystrokehq/scheduleonce
|
|
2
|
+
|
|
3
|
+
Keystroke-managed integration.
|
|
4
|
+
|
|
5
|
+
**App:** `scheduleonce`
|
|
6
|
+
**Version:** `20260615_00`
|
|
7
|
+
**Actions:** 27
|
|
8
|
+
|
|
9
|
+
```ts
|
|
10
|
+
import { defineAgent } from "@keystrokehq/keystroke/agent";
|
|
11
|
+
import { scheduleonceBookTimeSlot } from "@keystrokehq/scheduleonce/actions";
|
|
12
|
+
|
|
13
|
+
export default defineAgent({
|
|
14
|
+
key: "scheduleonce-agent",
|
|
15
|
+
tools: [scheduleonceBookTimeSlot],
|
|
16
|
+
});
|
|
17
|
+
```
|
package/dist/action.cjs
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
const require_app = require("./app.cjs");
|
|
2
|
+
const require_execute = require("./execute.cjs");
|
|
3
|
+
require("zod");
|
|
4
|
+
//#region src/action.ts
|
|
5
|
+
/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */
|
|
6
|
+
function action(tool, def) {
|
|
7
|
+
return require_app.scheduleonce.action({
|
|
8
|
+
slug: def.slug,
|
|
9
|
+
name: def.name,
|
|
10
|
+
description: def.description,
|
|
11
|
+
input: def.input,
|
|
12
|
+
output: def.output,
|
|
13
|
+
async run(input) {
|
|
14
|
+
return def.output.parse(await require_execute.executeScheduleonceTool(tool, input));
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
exports.action = action;
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=action.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action.cjs","names":["scheduleonce","executeScheduleonceTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { scheduleonce } from \"./app\";\nimport { executeScheduleonceTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: z.ZodTypeAny;\n output: z.ZodTypeAny;\n },\n) {\n return scheduleonce.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeScheduleonceTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,aAAa,OAAO;EACzB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,wBAAwB,MAAM,KAAgC,CAAC;EAC/F;CACF,CAAC;AACH"}
|
package/dist/action.mjs
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { scheduleonce } from "./app.mjs";
|
|
2
|
+
import { executeScheduleonceTool } from "./execute.mjs";
|
|
3
|
+
import "zod";
|
|
4
|
+
//#region src/action.ts
|
|
5
|
+
/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */
|
|
6
|
+
function action(tool, def) {
|
|
7
|
+
return scheduleonce.action({
|
|
8
|
+
slug: def.slug,
|
|
9
|
+
name: def.name,
|
|
10
|
+
description: def.description,
|
|
11
|
+
input: def.input,
|
|
12
|
+
output: def.output,
|
|
13
|
+
async run(input) {
|
|
14
|
+
return def.output.parse(await executeScheduleonceTool(tool, input));
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
export { action };
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=action.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { scheduleonce } from \"./app\";\nimport { executeScheduleonceTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: z.ZodTypeAny;\n output: z.ZodTypeAny;\n },\n) {\n return scheduleonce.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeScheduleonceTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,aAAa,OAAO;EACzB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,wBAAwB,MAAM,KAAgC,CAAC;EAC/F;CACF,CAAC;AACH"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/book-time-slot.ts
|
|
4
|
+
const ScheduleonceBookTimeSlotInput = zod.z.object({
|
|
5
|
+
id: zod.z.string().describe("The unique identifier of the booking calendar to book a time slot for (e.g., 'BKC-ZK6W94KE6W')"),
|
|
6
|
+
start_time: zod.z.string().describe("The date and time of the time slot to book in ISO 8601 format. Must be in UTC timezone (e.g., '2025-12-22T04:30:00.000Z'). Use this with a time slot retrieved from the 'Get available time slots' endpoint."),
|
|
7
|
+
booking_form: zod.z.object({
|
|
8
|
+
name: zod.z.string().describe("Guest's full name (required)"),
|
|
9
|
+
note: zod.z.string().describe("Additional notes or message from the guest").optional(),
|
|
10
|
+
email: zod.z.string().describe("Guest's email address (required)"),
|
|
11
|
+
phone: zod.z.string().describe("Guest's phone number").optional(),
|
|
12
|
+
guests: zod.z.array(zod.z.string()).describe("Array of additional guest email addresses who should receive invitations").optional(),
|
|
13
|
+
company: zod.z.string().describe("Guest's company name").optional(),
|
|
14
|
+
mobile_phone: zod.z.string().describe("Guest's mobile phone number").optional()
|
|
15
|
+
}).describe("Form data containing guest information including name, email, and optional fields"),
|
|
16
|
+
custom_fields: zod.z.array(zod.z.object({
|
|
17
|
+
name: zod.z.string().describe("Name of the custom field"),
|
|
18
|
+
value: zod.z.string().describe("Value of the custom field").optional()
|
|
19
|
+
}).describe("Model for custom field data.")).describe("Array of custom field objects with 'name' and 'value' properties").optional(),
|
|
20
|
+
location_type: zod.z.string().describe("Type of location for the meeting. Can only select from locations offered within the available time slots.").optional(),
|
|
21
|
+
location_value: zod.z.string().describe("Location-specific value. For virtual meetings: conference type (e.g., 'google_meet', 'zoom'). For phone: guest's phone number. For physical locations: address ID (e.g., 'ADD-1234').").optional(),
|
|
22
|
+
guest_time_zone: zod.z.string().describe("The guest's timezone in IANA format (e.g., 'America/New_York', 'Europe/London')")
|
|
23
|
+
}).describe("Request model for booking a time slot on a booking calendar.");
|
|
24
|
+
const ScheduleonceBookTimeSlot_CustomFieldItemSchema = zod.z.object({
|
|
25
|
+
name: zod.z.string().describe("Name of the custom field"),
|
|
26
|
+
value: zod.z.string().describe("Value of the custom field").nullable().optional()
|
|
27
|
+
}).describe("Model for custom field data.");
|
|
28
|
+
const ScheduleonceBookTimeSlot_FormSubmissionSchema = zod.z.object({
|
|
29
|
+
name: zod.z.string().describe("Customer's name").nullable().optional(),
|
|
30
|
+
note: zod.z.string().describe("Additional note from customer").nullable().optional(),
|
|
31
|
+
email: zod.z.string().describe("Customer's email address").nullable().optional(),
|
|
32
|
+
phone: zod.z.string().describe("Customer's phone number").nullable().optional(),
|
|
33
|
+
guests: zod.z.array(zod.z.string()).describe("List of guest email addresses").nullable().optional(),
|
|
34
|
+
company: zod.z.string().describe("Customer's company").nullable().optional(),
|
|
35
|
+
mobile_phone: zod.z.string().describe("Customer's mobile phone number").nullable().optional(),
|
|
36
|
+
custom_fields: zod.z.array(ScheduleonceBookTimeSlot_CustomFieldItemSchema).describe("Array of custom field objects with name and value properties").nullable().optional()
|
|
37
|
+
}).describe("Model for form submission data in the response.");
|
|
38
|
+
const ScheduleonceBookTimeSlot_VirtualConferencingSchema = zod.z.object({ join_url: zod.z.string().describe("URL to join the virtual meeting").nullable().optional() }).describe("Model for virtual meeting details.");
|
|
39
|
+
const ScheduleonceBookTimeSlot_CancelRescheduleInformationSchema = zod.z.object({
|
|
40
|
+
reason: zod.z.string().describe("Reason for cancellation or rescheduling").nullable().optional(),
|
|
41
|
+
user_id: zod.z.string().describe("User ID who performed the action if initiated by a user").nullable().optional(),
|
|
42
|
+
actioned_by: zod.z.string().describe("Who performed the action: 'user' or 'customer'").nullable().optional()
|
|
43
|
+
}).describe("Model for cancellation or reschedule information.");
|
|
44
|
+
const ScheduleonceBookTimeSlotOutput = zod.z.object({
|
|
45
|
+
id: zod.z.string().describe("Unique booking identifier"),
|
|
46
|
+
owner: zod.z.string().describe("User ID of the booking owner (e.g., 'USR-FSD423423')").nullable().optional(),
|
|
47
|
+
object: zod.z.string().describe("Object type, always 'booking'").nullable().optional(),
|
|
48
|
+
status: zod.z.string().describe("Booking status (e.g., 'scheduled', 'requested', 'completed', 'canceled', 'no_show')").nullable().optional(),
|
|
49
|
+
subject: zod.z.string().describe("Booking subject/title").nullable().optional(),
|
|
50
|
+
attendees: zod.z.array(zod.z.string()).describe("Array of attendee email addresses").nullable().optional(),
|
|
51
|
+
event_type: zod.z.string().describe("Event type ID").nullable().optional(),
|
|
52
|
+
master_page: zod.z.string().describe("Master page ID").nullable().optional(),
|
|
53
|
+
tracking_id: zod.z.string().describe("Human-readable tracking identifier").nullable().optional(),
|
|
54
|
+
booking_page: zod.z.string().describe("Booking page ID").nullable().optional(),
|
|
55
|
+
creation_time: zod.z.string().describe("ISO 8601 timestamp when booking was created").nullable().optional(),
|
|
56
|
+
starting_time: zod.z.string().describe("ISO 8601 timestamp when meeting starts").nullable().optional(),
|
|
57
|
+
form_submission: ScheduleonceBookTimeSlot_FormSubmissionSchema.nullable().optional(),
|
|
58
|
+
duration_minutes: zod.z.number().int().describe("Duration of the booking in minutes").nullable().optional(),
|
|
59
|
+
customer_timezone: zod.z.string().describe("Customer's timezone (e.g., 'America/New_York')").nullable().optional(),
|
|
60
|
+
last_updated_time: zod.z.string().describe("ISO 8601 timestamp of last update").nullable().optional(),
|
|
61
|
+
location_description: zod.z.string().describe("Physical location description").nullable().optional(),
|
|
62
|
+
virtual_conferencing: ScheduleonceBookTimeSlot_VirtualConferencingSchema.nullable().optional(),
|
|
63
|
+
rescheduled_booking_id: zod.z.string().describe("ID of rescheduled booking if applicable").nullable().optional(),
|
|
64
|
+
cancel_reschedule_information: ScheduleonceBookTimeSlot_CancelRescheduleInformationSchema.nullable().optional()
|
|
65
|
+
}).describe("Response model for a successfully booked time slot.");
|
|
66
|
+
const scheduleonceBookTimeSlot = require_action.action("SCHEDULEONCE_BOOK_TIME_SLOT", {
|
|
67
|
+
slug: "scheduleonce-book-time-slot",
|
|
68
|
+
name: "Book Time Slot",
|
|
69
|
+
description: "Tool to book a time slot on a booking calendar in OnceHub. Use when you need to schedule a meeting by booking one of the available time slots. First retrieve available time slots using 'Get available time slots', then use this tool to book one of those slots with guest information.",
|
|
70
|
+
input: ScheduleonceBookTimeSlotInput,
|
|
71
|
+
output: ScheduleonceBookTimeSlotOutput
|
|
72
|
+
});
|
|
73
|
+
//#endregion
|
|
74
|
+
exports.scheduleonceBookTimeSlot = scheduleonceBookTimeSlot;
|
|
75
|
+
|
|
76
|
+
//# sourceMappingURL=book-time-slot.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"book-time-slot.cjs","names":["z","action"],"sources":["../../src/actions/book-time-slot.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScheduleonceBookTimeSlotInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier of the booking calendar to book a time slot for (e.g., 'BKC-ZK6W94KE6W')\"),\n start_time: z.string().describe(\"The date and time of the time slot to book in ISO 8601 format. Must be in UTC timezone (e.g., '2025-12-22T04:30:00.000Z'). Use this with a time slot retrieved from the 'Get available time slots' endpoint.\"),\n booking_form: z.object({\n name: z.string().describe(\"Guest's full name (required)\"),\n note: z.string().describe(\"Additional notes or message from the guest\").optional(),\n email: z.string().describe(\"Guest's email address (required)\"),\n phone: z.string().describe(\"Guest's phone number\").optional(),\n guests: z.array(z.string()).describe(\"Array of additional guest email addresses who should receive invitations\").optional(),\n company: z.string().describe(\"Guest's company name\").optional(),\n mobile_phone: z.string().describe(\"Guest's mobile phone number\").optional(),\n}).describe(\"Form data containing guest information including name, email, and optional fields\"),\n custom_fields: z.array(z.object({\n name: z.string().describe(\"Name of the custom field\"),\n value: z.string().describe(\"Value of the custom field\").optional(),\n}).describe(\"Model for custom field data.\")).describe(\"Array of custom field objects with 'name' and 'value' properties\").optional(),\n location_type: z.string().describe(\"Type of location for the meeting. Can only select from locations offered within the available time slots.\").optional(),\n location_value: z.string().describe(\"Location-specific value. For virtual meetings: conference type (e.g., 'google_meet', 'zoom'). For phone: guest's phone number. For physical locations: address ID (e.g., 'ADD-1234').\").optional(),\n guest_time_zone: z.string().describe(\"The guest's timezone in IANA format (e.g., 'America/New_York', 'Europe/London')\"),\n}).describe(\"Request model for booking a time slot on a booking calendar.\");\nconst ScheduleonceBookTimeSlot_CustomFieldItemSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the custom field\"),\n value: z.string().describe(\"Value of the custom field\").nullable().optional(),\n}).describe(\"Model for custom field data.\");\nconst ScheduleonceBookTimeSlot_FormSubmissionSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Customer's name\").nullable().optional(),\n note: z.string().describe(\"Additional note from customer\").nullable().optional(),\n email: z.string().describe(\"Customer's email address\").nullable().optional(),\n phone: z.string().describe(\"Customer's phone number\").nullable().optional(),\n guests: z.array(z.string()).describe(\"List of guest email addresses\").nullable().optional(),\n company: z.string().describe(\"Customer's company\").nullable().optional(),\n mobile_phone: z.string().describe(\"Customer's mobile phone number\").nullable().optional(),\n custom_fields: z.array(ScheduleonceBookTimeSlot_CustomFieldItemSchema).describe(\"Array of custom field objects with name and value properties\").nullable().optional(),\n}).describe(\"Model for form submission data in the response.\");\nconst ScheduleonceBookTimeSlot_VirtualConferencingSchema: z.ZodTypeAny = z.object({\n join_url: z.string().describe(\"URL to join the virtual meeting\").nullable().optional(),\n}).describe(\"Model for virtual meeting details.\");\nconst ScheduleonceBookTimeSlot_CancelRescheduleInformationSchema: z.ZodTypeAny = z.object({\n reason: z.string().describe(\"Reason for cancellation or rescheduling\").nullable().optional(),\n user_id: z.string().describe(\"User ID who performed the action if initiated by a user\").nullable().optional(),\n actioned_by: z.string().describe(\"Who performed the action: 'user' or 'customer'\").nullable().optional(),\n}).describe(\"Model for cancellation or reschedule information.\");\nexport const ScheduleonceBookTimeSlotOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique booking identifier\"),\n owner: z.string().describe(\"User ID of the booking owner (e.g., 'USR-FSD423423')\").nullable().optional(),\n object: z.string().describe(\"Object type, always 'booking'\").nullable().optional(),\n status: z.string().describe(\"Booking status (e.g., 'scheduled', 'requested', 'completed', 'canceled', 'no_show')\").nullable().optional(),\n subject: z.string().describe(\"Booking subject/title\").nullable().optional(),\n attendees: z.array(z.string()).describe(\"Array of attendee email addresses\").nullable().optional(),\n event_type: z.string().describe(\"Event type ID\").nullable().optional(),\n master_page: z.string().describe(\"Master page ID\").nullable().optional(),\n tracking_id: z.string().describe(\"Human-readable tracking identifier\").nullable().optional(),\n booking_page: z.string().describe(\"Booking page ID\").nullable().optional(),\n creation_time: z.string().describe(\"ISO 8601 timestamp when booking was created\").nullable().optional(),\n starting_time: z.string().describe(\"ISO 8601 timestamp when meeting starts\").nullable().optional(),\n form_submission: ScheduleonceBookTimeSlot_FormSubmissionSchema.nullable().optional(),\n duration_minutes: z.number().int().describe(\"Duration of the booking in minutes\").nullable().optional(),\n customer_timezone: z.string().describe(\"Customer's timezone (e.g., 'America/New_York')\").nullable().optional(),\n last_updated_time: z.string().describe(\"ISO 8601 timestamp of last update\").nullable().optional(),\n location_description: z.string().describe(\"Physical location description\").nullable().optional(),\n virtual_conferencing: ScheduleonceBookTimeSlot_VirtualConferencingSchema.nullable().optional(),\n rescheduled_booking_id: z.string().describe(\"ID of rescheduled booking if applicable\").nullable().optional(),\n cancel_reschedule_information: ScheduleonceBookTimeSlot_CancelRescheduleInformationSchema.nullable().optional(),\n}).describe(\"Response model for a successfully booked time slot.\");\n\nexport const scheduleonceBookTimeSlot = action(\"SCHEDULEONCE_BOOK_TIME_SLOT\", {\n slug: \"scheduleonce-book-time-slot\",\n name: \"Book Time Slot\",\n description: \"Tool to book a time slot on a booking calendar in OnceHub. Use when you need to schedule a meeting by booking one of the available time slots. First retrieve available time slots using 'Get available time slots', then use this tool to book one of those slots with guest information.\",\n input: ScheduleonceBookTimeSlotInput,\n output: ScheduleonceBookTimeSlotOutput,\n});\n"],"mappings":";;;AAIA,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"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/book-time-slot.d.ts
|
|
4
|
+
declare const ScheduleonceBookTimeSlotInput: z.ZodTypeAny;
|
|
5
|
+
declare const ScheduleonceBookTimeSlotOutput: z.ZodTypeAny;
|
|
6
|
+
declare const scheduleonceBookTimeSlot: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { scheduleonceBookTimeSlot };
|
|
9
|
+
//# sourceMappingURL=book-time-slot.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"book-time-slot.d.cts","names":[],"sources":["../../src/actions/book-time-slot.ts"],"mappings":";;;cAIa,6BAAA,EAA+B,CAAA,CAAE,UAmB6B;AAAA,cAuB9D,8BAAA,EAAgC,CAAA,CAAE,UAqBmB;AAAA,cAErD,wBAAA,gCAAwB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/book-time-slot.d.ts
|
|
4
|
+
declare const ScheduleonceBookTimeSlotInput: z.ZodTypeAny;
|
|
5
|
+
declare const ScheduleonceBookTimeSlotOutput: z.ZodTypeAny;
|
|
6
|
+
declare const scheduleonceBookTimeSlot: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { scheduleonceBookTimeSlot };
|
|
9
|
+
//# sourceMappingURL=book-time-slot.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"book-time-slot.d.mts","names":[],"sources":["../../src/actions/book-time-slot.ts"],"mappings":";;;cAIa,6BAAA,EAA+B,CAAA,CAAE,UAmB6B;AAAA,cAuB9D,8BAAA,EAAgC,CAAA,CAAE,UAqBmB;AAAA,cAErD,wBAAA,gCAAwB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/book-time-slot.ts
|
|
4
|
+
const ScheduleonceBookTimeSlotInput = z.object({
|
|
5
|
+
id: z.string().describe("The unique identifier of the booking calendar to book a time slot for (e.g., 'BKC-ZK6W94KE6W')"),
|
|
6
|
+
start_time: z.string().describe("The date and time of the time slot to book in ISO 8601 format. Must be in UTC timezone (e.g., '2025-12-22T04:30:00.000Z'). Use this with a time slot retrieved from the 'Get available time slots' endpoint."),
|
|
7
|
+
booking_form: z.object({
|
|
8
|
+
name: z.string().describe("Guest's full name (required)"),
|
|
9
|
+
note: z.string().describe("Additional notes or message from the guest").optional(),
|
|
10
|
+
email: z.string().describe("Guest's email address (required)"),
|
|
11
|
+
phone: z.string().describe("Guest's phone number").optional(),
|
|
12
|
+
guests: z.array(z.string()).describe("Array of additional guest email addresses who should receive invitations").optional(),
|
|
13
|
+
company: z.string().describe("Guest's company name").optional(),
|
|
14
|
+
mobile_phone: z.string().describe("Guest's mobile phone number").optional()
|
|
15
|
+
}).describe("Form data containing guest information including name, email, and optional fields"),
|
|
16
|
+
custom_fields: z.array(z.object({
|
|
17
|
+
name: z.string().describe("Name of the custom field"),
|
|
18
|
+
value: z.string().describe("Value of the custom field").optional()
|
|
19
|
+
}).describe("Model for custom field data.")).describe("Array of custom field objects with 'name' and 'value' properties").optional(),
|
|
20
|
+
location_type: z.string().describe("Type of location for the meeting. Can only select from locations offered within the available time slots.").optional(),
|
|
21
|
+
location_value: z.string().describe("Location-specific value. For virtual meetings: conference type (e.g., 'google_meet', 'zoom'). For phone: guest's phone number. For physical locations: address ID (e.g., 'ADD-1234').").optional(),
|
|
22
|
+
guest_time_zone: z.string().describe("The guest's timezone in IANA format (e.g., 'America/New_York', 'Europe/London')")
|
|
23
|
+
}).describe("Request model for booking a time slot on a booking calendar.");
|
|
24
|
+
const ScheduleonceBookTimeSlot_CustomFieldItemSchema = z.object({
|
|
25
|
+
name: z.string().describe("Name of the custom field"),
|
|
26
|
+
value: z.string().describe("Value of the custom field").nullable().optional()
|
|
27
|
+
}).describe("Model for custom field data.");
|
|
28
|
+
const ScheduleonceBookTimeSlot_FormSubmissionSchema = z.object({
|
|
29
|
+
name: z.string().describe("Customer's name").nullable().optional(),
|
|
30
|
+
note: z.string().describe("Additional note from customer").nullable().optional(),
|
|
31
|
+
email: z.string().describe("Customer's email address").nullable().optional(),
|
|
32
|
+
phone: z.string().describe("Customer's phone number").nullable().optional(),
|
|
33
|
+
guests: z.array(z.string()).describe("List of guest email addresses").nullable().optional(),
|
|
34
|
+
company: z.string().describe("Customer's company").nullable().optional(),
|
|
35
|
+
mobile_phone: z.string().describe("Customer's mobile phone number").nullable().optional(),
|
|
36
|
+
custom_fields: z.array(ScheduleonceBookTimeSlot_CustomFieldItemSchema).describe("Array of custom field objects with name and value properties").nullable().optional()
|
|
37
|
+
}).describe("Model for form submission data in the response.");
|
|
38
|
+
const ScheduleonceBookTimeSlot_VirtualConferencingSchema = z.object({ join_url: z.string().describe("URL to join the virtual meeting").nullable().optional() }).describe("Model for virtual meeting details.");
|
|
39
|
+
const ScheduleonceBookTimeSlot_CancelRescheduleInformationSchema = z.object({
|
|
40
|
+
reason: z.string().describe("Reason for cancellation or rescheduling").nullable().optional(),
|
|
41
|
+
user_id: z.string().describe("User ID who performed the action if initiated by a user").nullable().optional(),
|
|
42
|
+
actioned_by: z.string().describe("Who performed the action: 'user' or 'customer'").nullable().optional()
|
|
43
|
+
}).describe("Model for cancellation or reschedule information.");
|
|
44
|
+
const scheduleonceBookTimeSlot = action("SCHEDULEONCE_BOOK_TIME_SLOT", {
|
|
45
|
+
slug: "scheduleonce-book-time-slot",
|
|
46
|
+
name: "Book Time Slot",
|
|
47
|
+
description: "Tool to book a time slot on a booking calendar in OnceHub. Use when you need to schedule a meeting by booking one of the available time slots. First retrieve available time slots using 'Get available time slots', then use this tool to book one of those slots with guest information.",
|
|
48
|
+
input: ScheduleonceBookTimeSlotInput,
|
|
49
|
+
output: z.object({
|
|
50
|
+
id: z.string().describe("Unique booking identifier"),
|
|
51
|
+
owner: z.string().describe("User ID of the booking owner (e.g., 'USR-FSD423423')").nullable().optional(),
|
|
52
|
+
object: z.string().describe("Object type, always 'booking'").nullable().optional(),
|
|
53
|
+
status: z.string().describe("Booking status (e.g., 'scheduled', 'requested', 'completed', 'canceled', 'no_show')").nullable().optional(),
|
|
54
|
+
subject: z.string().describe("Booking subject/title").nullable().optional(),
|
|
55
|
+
attendees: z.array(z.string()).describe("Array of attendee email addresses").nullable().optional(),
|
|
56
|
+
event_type: z.string().describe("Event type ID").nullable().optional(),
|
|
57
|
+
master_page: z.string().describe("Master page ID").nullable().optional(),
|
|
58
|
+
tracking_id: z.string().describe("Human-readable tracking identifier").nullable().optional(),
|
|
59
|
+
booking_page: z.string().describe("Booking page ID").nullable().optional(),
|
|
60
|
+
creation_time: z.string().describe("ISO 8601 timestamp when booking was created").nullable().optional(),
|
|
61
|
+
starting_time: z.string().describe("ISO 8601 timestamp when meeting starts").nullable().optional(),
|
|
62
|
+
form_submission: ScheduleonceBookTimeSlot_FormSubmissionSchema.nullable().optional(),
|
|
63
|
+
duration_minutes: z.number().int().describe("Duration of the booking in minutes").nullable().optional(),
|
|
64
|
+
customer_timezone: z.string().describe("Customer's timezone (e.g., 'America/New_York')").nullable().optional(),
|
|
65
|
+
last_updated_time: z.string().describe("ISO 8601 timestamp of last update").nullable().optional(),
|
|
66
|
+
location_description: z.string().describe("Physical location description").nullable().optional(),
|
|
67
|
+
virtual_conferencing: ScheduleonceBookTimeSlot_VirtualConferencingSchema.nullable().optional(),
|
|
68
|
+
rescheduled_booking_id: z.string().describe("ID of rescheduled booking if applicable").nullable().optional(),
|
|
69
|
+
cancel_reschedule_information: ScheduleonceBookTimeSlot_CancelRescheduleInformationSchema.nullable().optional()
|
|
70
|
+
}).describe("Response model for a successfully booked time slot.")
|
|
71
|
+
});
|
|
72
|
+
//#endregion
|
|
73
|
+
export { scheduleonceBookTimeSlot };
|
|
74
|
+
|
|
75
|
+
//# sourceMappingURL=book-time-slot.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"book-time-slot.mjs","names":[],"sources":["../../src/actions/book-time-slot.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScheduleonceBookTimeSlotInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier of the booking calendar to book a time slot for (e.g., 'BKC-ZK6W94KE6W')\"),\n start_time: z.string().describe(\"The date and time of the time slot to book in ISO 8601 format. Must be in UTC timezone (e.g., '2025-12-22T04:30:00.000Z'). Use this with a time slot retrieved from the 'Get available time slots' endpoint.\"),\n booking_form: z.object({\n name: z.string().describe(\"Guest's full name (required)\"),\n note: z.string().describe(\"Additional notes or message from the guest\").optional(),\n email: z.string().describe(\"Guest's email address (required)\"),\n phone: z.string().describe(\"Guest's phone number\").optional(),\n guests: z.array(z.string()).describe(\"Array of additional guest email addresses who should receive invitations\").optional(),\n company: z.string().describe(\"Guest's company name\").optional(),\n mobile_phone: z.string().describe(\"Guest's mobile phone number\").optional(),\n}).describe(\"Form data containing guest information including name, email, and optional fields\"),\n custom_fields: z.array(z.object({\n name: z.string().describe(\"Name of the custom field\"),\n value: z.string().describe(\"Value of the custom field\").optional(),\n}).describe(\"Model for custom field data.\")).describe(\"Array of custom field objects with 'name' and 'value' properties\").optional(),\n location_type: z.string().describe(\"Type of location for the meeting. Can only select from locations offered within the available time slots.\").optional(),\n location_value: z.string().describe(\"Location-specific value. For virtual meetings: conference type (e.g., 'google_meet', 'zoom'). For phone: guest's phone number. For physical locations: address ID (e.g., 'ADD-1234').\").optional(),\n guest_time_zone: z.string().describe(\"The guest's timezone in IANA format (e.g., 'America/New_York', 'Europe/London')\"),\n}).describe(\"Request model for booking a time slot on a booking calendar.\");\nconst ScheduleonceBookTimeSlot_CustomFieldItemSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the custom field\"),\n value: z.string().describe(\"Value of the custom field\").nullable().optional(),\n}).describe(\"Model for custom field data.\");\nconst ScheduleonceBookTimeSlot_FormSubmissionSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Customer's name\").nullable().optional(),\n note: z.string().describe(\"Additional note from customer\").nullable().optional(),\n email: z.string().describe(\"Customer's email address\").nullable().optional(),\n phone: z.string().describe(\"Customer's phone number\").nullable().optional(),\n guests: z.array(z.string()).describe(\"List of guest email addresses\").nullable().optional(),\n company: z.string().describe(\"Customer's company\").nullable().optional(),\n mobile_phone: z.string().describe(\"Customer's mobile phone number\").nullable().optional(),\n custom_fields: z.array(ScheduleonceBookTimeSlot_CustomFieldItemSchema).describe(\"Array of custom field objects with name and value properties\").nullable().optional(),\n}).describe(\"Model for form submission data in the response.\");\nconst ScheduleonceBookTimeSlot_VirtualConferencingSchema: z.ZodTypeAny = z.object({\n join_url: z.string().describe(\"URL to join the virtual meeting\").nullable().optional(),\n}).describe(\"Model for virtual meeting details.\");\nconst ScheduleonceBookTimeSlot_CancelRescheduleInformationSchema: z.ZodTypeAny = z.object({\n reason: z.string().describe(\"Reason for cancellation or rescheduling\").nullable().optional(),\n user_id: z.string().describe(\"User ID who performed the action if initiated by a user\").nullable().optional(),\n actioned_by: z.string().describe(\"Who performed the action: 'user' or 'customer'\").nullable().optional(),\n}).describe(\"Model for cancellation or reschedule information.\");\nexport const ScheduleonceBookTimeSlotOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique booking identifier\"),\n owner: z.string().describe(\"User ID of the booking owner (e.g., 'USR-FSD423423')\").nullable().optional(),\n object: z.string().describe(\"Object type, always 'booking'\").nullable().optional(),\n status: z.string().describe(\"Booking status (e.g., 'scheduled', 'requested', 'completed', 'canceled', 'no_show')\").nullable().optional(),\n subject: z.string().describe(\"Booking subject/title\").nullable().optional(),\n attendees: z.array(z.string()).describe(\"Array of attendee email addresses\").nullable().optional(),\n event_type: z.string().describe(\"Event type ID\").nullable().optional(),\n master_page: z.string().describe(\"Master page ID\").nullable().optional(),\n tracking_id: z.string().describe(\"Human-readable tracking identifier\").nullable().optional(),\n booking_page: z.string().describe(\"Booking page ID\").nullable().optional(),\n creation_time: z.string().describe(\"ISO 8601 timestamp when booking was created\").nullable().optional(),\n starting_time: z.string().describe(\"ISO 8601 timestamp when meeting starts\").nullable().optional(),\n form_submission: ScheduleonceBookTimeSlot_FormSubmissionSchema.nullable().optional(),\n duration_minutes: z.number().int().describe(\"Duration of the booking in minutes\").nullable().optional(),\n customer_timezone: z.string().describe(\"Customer's timezone (e.g., 'America/New_York')\").nullable().optional(),\n last_updated_time: z.string().describe(\"ISO 8601 timestamp of last update\").nullable().optional(),\n location_description: z.string().describe(\"Physical location description\").nullable().optional(),\n virtual_conferencing: ScheduleonceBookTimeSlot_VirtualConferencingSchema.nullable().optional(),\n rescheduled_booking_id: z.string().describe(\"ID of rescheduled booking if applicable\").nullable().optional(),\n cancel_reschedule_information: ScheduleonceBookTimeSlot_CancelRescheduleInformationSchema.nullable().optional(),\n}).describe(\"Response model for a successfully booked time slot.\");\n\nexport const scheduleonceBookTimeSlot = action(\"SCHEDULEONCE_BOOK_TIME_SLOT\", {\n slug: \"scheduleonce-book-time-slot\",\n name: \"Book Time Slot\",\n description: \"Tool to book a time slot on a booking calendar in OnceHub. Use when you need to schedule a meeting by booking one of the available time slots. First retrieve available time slots using 'Get available time slots', then use this tool to book one of those slots with guest information.\",\n input: ScheduleonceBookTimeSlotInput,\n output: ScheduleonceBookTimeSlotOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAA8C,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,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjG,iBAAiB,8CAA8C,SAAS,CAAC,CAAC,SAAS;EACnF,kBAAkB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtG,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7G,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChG,sBAAsB,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/F,sBAAsB,mDAAmD,SAAS,CAAC,CAAC,SAAS;EAC7F,wBAAwB,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3G,+BAA+B,2DAA2D,SAAS,CAAC,CAAC,SAAS;CAChH,CAAC,CAAC,CAAC,SAAS,qDAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/cancel-booking.ts
|
|
4
|
+
const ScheduleonceCancelBookingInput = zod.z.object({
|
|
5
|
+
id: zod.z.string().describe("The unique identifier of the booking to cancel (e.g., 'BKNG-J4FR05BKEWEX')"),
|
|
6
|
+
cancellation_reason: zod.z.string().describe("The reason for canceling the booking. This will be stored in the cancel_reschedule_information.reason field of the booking object.").optional(),
|
|
7
|
+
send_cancellation_email: zod.z.boolean().describe("Determines whether a cancellation email notification should be sent to the customer and other participants.").optional()
|
|
8
|
+
}).describe("Request model for canceling a booking by ID.");
|
|
9
|
+
const ScheduleonceCancelBooking_CustomFieldItemSchema = zod.z.object({
|
|
10
|
+
name: zod.z.string().describe("Name of the custom field"),
|
|
11
|
+
value: zod.z.union([
|
|
12
|
+
zod.z.string(),
|
|
13
|
+
zod.z.number().int(),
|
|
14
|
+
zod.z.number(),
|
|
15
|
+
zod.z.boolean()
|
|
16
|
+
]).nullable().optional()
|
|
17
|
+
}).describe("Model for custom field item.");
|
|
18
|
+
const ScheduleonceCancelBooking_FormSubmissionSchema = zod.z.object({
|
|
19
|
+
name: zod.z.string().describe("Customer's name.").nullable().optional(),
|
|
20
|
+
note: zod.z.string().describe("Additional note from customer.").nullable().optional(),
|
|
21
|
+
email: zod.z.string().describe("Customer's email address.").nullable().optional(),
|
|
22
|
+
phone: zod.z.string().describe("Customer's phone number.").nullable().optional(),
|
|
23
|
+
guests: zod.z.array(zod.z.string()).describe("List of guest email addresses.").nullable().optional(),
|
|
24
|
+
company: zod.z.string().describe("Customer's company.").nullable().optional(),
|
|
25
|
+
mobile_phone: zod.z.string().describe("Customer's mobile phone number.").nullable().optional(),
|
|
26
|
+
custom_fields: zod.z.array(ScheduleonceCancelBooking_CustomFieldItemSchema).describe("Array of custom field objects with name and value properties.").nullable().optional()
|
|
27
|
+
}).describe("Model for form submission data.");
|
|
28
|
+
const ScheduleonceCancelBooking_VirtualConferencingSchema = zod.z.object({ join_url: zod.z.string().describe("URL to join the virtual meeting.").nullable().optional() }).describe("Model for virtual conferencing details.");
|
|
29
|
+
const ScheduleonceCancelBooking_CancelRescheduleInformationSchema = zod.z.object({
|
|
30
|
+
reason: zod.z.string().describe("Reason for cancellation or rescheduling.").nullable().optional(),
|
|
31
|
+
user_id: zod.z.string().describe("User ID who performed the action if initiated by a user.").nullable().optional(),
|
|
32
|
+
actioned_by: zod.z.string().describe("Who performed the action: 'user' or 'customer'.").nullable().optional()
|
|
33
|
+
}).describe("Model for cancellation or reschedule information.");
|
|
34
|
+
const ScheduleonceCancelBookingOutput = zod.z.object({
|
|
35
|
+
id: zod.z.string().describe("Unique booking identifier."),
|
|
36
|
+
owner: zod.z.union([zod.z.string(), zod.z.object({})]).nullable().optional(),
|
|
37
|
+
object: zod.z.string().describe("Object type, always 'booking'."),
|
|
38
|
+
status: zod.z.string().describe("Booking status (will be 'canceled' after successful cancellation)."),
|
|
39
|
+
subject: zod.z.string().describe("Booking subject/title.").nullable().optional(),
|
|
40
|
+
attendees: zod.z.array(zod.z.string()).describe("Array of attendee email addresses.").nullable().optional(),
|
|
41
|
+
event_type: zod.z.string().describe("Event type ID.").nullable().optional(),
|
|
42
|
+
master_page: zod.z.string().describe("Master page ID.").nullable().optional(),
|
|
43
|
+
tracking_id: zod.z.string().describe("Human-readable tracking number.").nullable().optional(),
|
|
44
|
+
booking_page: zod.z.string().describe("Booking page ID.").nullable().optional(),
|
|
45
|
+
creation_time: zod.z.string().describe("ISO 8601 timestamp of booking creation.").nullable().optional(),
|
|
46
|
+
starting_time: zod.z.string().describe("ISO 8601 timestamp of scheduled start time.").nullable().optional(),
|
|
47
|
+
form_submission: ScheduleonceCancelBooking_FormSubmissionSchema.nullable().optional(),
|
|
48
|
+
duration_minutes: zod.z.number().int().describe("Duration of the booking in minutes.").nullable().optional(),
|
|
49
|
+
customer_timezone: zod.z.string().describe("Customer's timezone (e.g., 'America/New_York').").nullable().optional(),
|
|
50
|
+
last_updated_time: zod.z.string().describe("ISO 8601 timestamp of last update.").nullable().optional(),
|
|
51
|
+
location_description: zod.z.string().describe("Physical location description.").nullable().optional(),
|
|
52
|
+
virtual_conferencing: ScheduleonceCancelBooking_VirtualConferencingSchema.nullable().optional(),
|
|
53
|
+
rescheduled_booking_id: zod.z.string().describe("ID of rescheduled booking if applicable.").nullable().optional(),
|
|
54
|
+
cancel_reschedule_information: ScheduleonceCancelBooking_CancelRescheduleInformationSchema.nullable().optional()
|
|
55
|
+
}).describe("Response model for canceled booking.");
|
|
56
|
+
const scheduleonceCancelBooking = require_action.action("SCHEDULEONCE_CANCEL_BOOKING", {
|
|
57
|
+
slug: "scheduleonce-cancel-booking",
|
|
58
|
+
name: "Cancel Booking",
|
|
59
|
+
description: "Tool to cancel a booking by ID in OnceHub. Use when you need to cancel an existing booking, optionally providing a cancellation reason and controlling whether to send cancellation email notifications.",
|
|
60
|
+
input: ScheduleonceCancelBookingInput,
|
|
61
|
+
output: ScheduleonceCancelBookingOutput
|
|
62
|
+
});
|
|
63
|
+
//#endregion
|
|
64
|
+
exports.scheduleonceCancelBooking = scheduleonceCancelBooking;
|
|
65
|
+
|
|
66
|
+
//# sourceMappingURL=cancel-booking.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cancel-booking.cjs","names":["z","action"],"sources":["../../src/actions/cancel-booking.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScheduleonceCancelBookingInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier of the booking to cancel (e.g., 'BKNG-J4FR05BKEWEX')\"),\n cancellation_reason: z.string().describe(\"The reason for canceling the booking. This will be stored in the cancel_reschedule_information.reason field of the booking object.\").optional(),\n send_cancellation_email: z.boolean().describe(\"Determines whether a cancellation email notification should be sent to the customer and other participants.\").optional(),\n}).describe(\"Request model for canceling a booking by ID.\");\nconst ScheduleonceCancelBooking_CustomFieldItemSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the custom field\"),\n value: z.union([z.string(), z.number().int(), z.number(), z.boolean()]).nullable().optional(),\n}).describe(\"Model for custom field item.\");\nconst ScheduleonceCancelBooking_FormSubmissionSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Customer's name.\").nullable().optional(),\n note: z.string().describe(\"Additional note from customer.\").nullable().optional(),\n email: z.string().describe(\"Customer's email address.\").nullable().optional(),\n phone: z.string().describe(\"Customer's phone number.\").nullable().optional(),\n guests: z.array(z.string()).describe(\"List of guest email addresses.\").nullable().optional(),\n company: z.string().describe(\"Customer's company.\").nullable().optional(),\n mobile_phone: z.string().describe(\"Customer's mobile phone number.\").nullable().optional(),\n custom_fields: z.array(ScheduleonceCancelBooking_CustomFieldItemSchema).describe(\"Array of custom field objects with name and value properties.\").nullable().optional(),\n}).describe(\"Model for form submission data.\");\nconst ScheduleonceCancelBooking_VirtualConferencingSchema: z.ZodTypeAny = z.object({\n join_url: z.string().describe(\"URL to join the virtual meeting.\").nullable().optional(),\n}).describe(\"Model for virtual conferencing details.\");\nconst ScheduleonceCancelBooking_CancelRescheduleInformationSchema: z.ZodTypeAny = z.object({\n reason: z.string().describe(\"Reason for cancellation or rescheduling.\").nullable().optional(),\n user_id: z.string().describe(\"User ID who performed the action if initiated by a user.\").nullable().optional(),\n actioned_by: z.string().describe(\"Who performed the action: 'user' or 'customer'.\").nullable().optional(),\n}).describe(\"Model for cancellation or reschedule information.\");\nexport const ScheduleonceCancelBookingOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique booking identifier.\"),\n owner: z.union([z.string(), z.object({})]).nullable().optional(),\n object: z.string().describe(\"Object type, always 'booking'.\"),\n status: z.string().describe(\"Booking status (will be 'canceled' after successful cancellation).\"),\n subject: z.string().describe(\"Booking subject/title.\").nullable().optional(),\n attendees: z.array(z.string()).describe(\"Array of attendee email addresses.\").nullable().optional(),\n event_type: z.string().describe(\"Event type ID.\").nullable().optional(),\n master_page: z.string().describe(\"Master page ID.\").nullable().optional(),\n tracking_id: z.string().describe(\"Human-readable tracking number.\").nullable().optional(),\n booking_page: z.string().describe(\"Booking page ID.\").nullable().optional(),\n creation_time: z.string().describe(\"ISO 8601 timestamp of booking creation.\").nullable().optional(),\n starting_time: z.string().describe(\"ISO 8601 timestamp of scheduled start time.\").nullable().optional(),\n form_submission: ScheduleonceCancelBooking_FormSubmissionSchema.nullable().optional(),\n duration_minutes: z.number().int().describe(\"Duration of the booking in minutes.\").nullable().optional(),\n customer_timezone: z.string().describe(\"Customer's timezone (e.g., 'America/New_York').\").nullable().optional(),\n last_updated_time: z.string().describe(\"ISO 8601 timestamp of last update.\").nullable().optional(),\n location_description: z.string().describe(\"Physical location description.\").nullable().optional(),\n virtual_conferencing: ScheduleonceCancelBooking_VirtualConferencingSchema.nullable().optional(),\n rescheduled_booking_id: z.string().describe(\"ID of rescheduled booking if applicable.\").nullable().optional(),\n cancel_reschedule_information: ScheduleonceCancelBooking_CancelRescheduleInformationSchema.nullable().optional(),\n}).describe(\"Response model for canceled booking.\");\n\nexport const scheduleonceCancelBooking = action(\"SCHEDULEONCE_CANCEL_BOOKING\", {\n slug: \"scheduleonce-cancel-booking\",\n name: \"Cancel Booking\",\n description: \"Tool to cancel a booking by ID in OnceHub. Use when you need to cancel an existing booking, optionally providing a cancellation reason and controlling whether to send cancellation email notifications.\",\n input: ScheduleonceCancelBookingInput,\n output: ScheduleonceCancelBookingOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAA+CA,IAAAA,EAAE,OAAO;CACnE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E;CACpG,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oIAAoI,CAAC,CAAC,SAAS;CACxL,yBAAyBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,6GAA6G,CAAC,CAAC,SAAS;AACxK,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAM,kDAAgEA,IAAAA,EAAE,OAAO;CAC7E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;CACpD,OAAOA,IAAAA,EAAE,MAAM;EAACA,IAAAA,EAAE,OAAO;EAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI;EAAGA,IAAAA,EAAE,OAAO;EAAGA,IAAAA,EAAE,QAAQ;CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,SAAS,8BAA8B;AAC1C,MAAM,iDAA+DA,IAAAA,EAAE,OAAO;CAC5E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClE,MAAMA,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,SAAS;CACpF,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9G,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,sBAAsBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,sBAAsB,oDAAoD,SAAS,CAAC,CAAC,SAAS;CAC9F,wBAAwBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,+BAA+B,4DAA4D,SAAS,CAAC,CAAC,SAAS;AACjH,CAAC,CAAC,CAAC,SAAS,sCAAsC;AAElD,MAAa,4BAA4BC,eAAAA,OAAO,+BAA+B;CAC7E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/cancel-booking.d.ts
|
|
4
|
+
declare const ScheduleonceCancelBookingInput: z.ZodTypeAny;
|
|
5
|
+
declare const ScheduleonceCancelBookingOutput: z.ZodTypeAny;
|
|
6
|
+
declare const scheduleonceCancelBooking: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { scheduleonceCancelBooking };
|
|
9
|
+
//# sourceMappingURL=cancel-booking.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cancel-booking.d.cts","names":[],"sources":["../../src/actions/cancel-booking.ts"],"mappings":";;;cAIa,8BAAA,EAAgC,CAAA,CAAE,UAIY;AAAA,cAuB9C,+BAAA,EAAiC,CAAA,CAAE,UAqBG;AAAA,cAEtC,yBAAA,gCAAyB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/cancel-booking.d.ts
|
|
4
|
+
declare const ScheduleonceCancelBookingInput: z.ZodTypeAny;
|
|
5
|
+
declare const ScheduleonceCancelBookingOutput: z.ZodTypeAny;
|
|
6
|
+
declare const scheduleonceCancelBooking: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { scheduleonceCancelBooking };
|
|
9
|
+
//# sourceMappingURL=cancel-booking.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cancel-booking.d.mts","names":[],"sources":["../../src/actions/cancel-booking.ts"],"mappings":";;;cAIa,8BAAA,EAAgC,CAAA,CAAE,UAIY;AAAA,cAuB9C,+BAAA,EAAiC,CAAA,CAAE,UAqBG;AAAA,cAEtC,yBAAA,gCAAyB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/cancel-booking.ts
|
|
4
|
+
const ScheduleonceCancelBookingInput = z.object({
|
|
5
|
+
id: z.string().describe("The unique identifier of the booking to cancel (e.g., 'BKNG-J4FR05BKEWEX')"),
|
|
6
|
+
cancellation_reason: z.string().describe("The reason for canceling the booking. This will be stored in the cancel_reschedule_information.reason field of the booking object.").optional(),
|
|
7
|
+
send_cancellation_email: z.boolean().describe("Determines whether a cancellation email notification should be sent to the customer and other participants.").optional()
|
|
8
|
+
}).describe("Request model for canceling a booking by ID.");
|
|
9
|
+
const ScheduleonceCancelBooking_CustomFieldItemSchema = z.object({
|
|
10
|
+
name: z.string().describe("Name of the custom field"),
|
|
11
|
+
value: z.union([
|
|
12
|
+
z.string(),
|
|
13
|
+
z.number().int(),
|
|
14
|
+
z.number(),
|
|
15
|
+
z.boolean()
|
|
16
|
+
]).nullable().optional()
|
|
17
|
+
}).describe("Model for custom field item.");
|
|
18
|
+
const ScheduleonceCancelBooking_FormSubmissionSchema = z.object({
|
|
19
|
+
name: z.string().describe("Customer's name.").nullable().optional(),
|
|
20
|
+
note: z.string().describe("Additional note from customer.").nullable().optional(),
|
|
21
|
+
email: z.string().describe("Customer's email address.").nullable().optional(),
|
|
22
|
+
phone: z.string().describe("Customer's phone number.").nullable().optional(),
|
|
23
|
+
guests: z.array(z.string()).describe("List of guest email addresses.").nullable().optional(),
|
|
24
|
+
company: z.string().describe("Customer's company.").nullable().optional(),
|
|
25
|
+
mobile_phone: z.string().describe("Customer's mobile phone number.").nullable().optional(),
|
|
26
|
+
custom_fields: z.array(ScheduleonceCancelBooking_CustomFieldItemSchema).describe("Array of custom field objects with name and value properties.").nullable().optional()
|
|
27
|
+
}).describe("Model for form submission data.");
|
|
28
|
+
const ScheduleonceCancelBooking_VirtualConferencingSchema = z.object({ join_url: z.string().describe("URL to join the virtual meeting.").nullable().optional() }).describe("Model for virtual conferencing details.");
|
|
29
|
+
const ScheduleonceCancelBooking_CancelRescheduleInformationSchema = z.object({
|
|
30
|
+
reason: z.string().describe("Reason for cancellation or rescheduling.").nullable().optional(),
|
|
31
|
+
user_id: z.string().describe("User ID who performed the action if initiated by a user.").nullable().optional(),
|
|
32
|
+
actioned_by: z.string().describe("Who performed the action: 'user' or 'customer'.").nullable().optional()
|
|
33
|
+
}).describe("Model for cancellation or reschedule information.");
|
|
34
|
+
const scheduleonceCancelBooking = action("SCHEDULEONCE_CANCEL_BOOKING", {
|
|
35
|
+
slug: "scheduleonce-cancel-booking",
|
|
36
|
+
name: "Cancel Booking",
|
|
37
|
+
description: "Tool to cancel a booking by ID in OnceHub. Use when you need to cancel an existing booking, optionally providing a cancellation reason and controlling whether to send cancellation email notifications.",
|
|
38
|
+
input: ScheduleonceCancelBookingInput,
|
|
39
|
+
output: z.object({
|
|
40
|
+
id: z.string().describe("Unique booking identifier."),
|
|
41
|
+
owner: z.union([z.string(), z.object({})]).nullable().optional(),
|
|
42
|
+
object: z.string().describe("Object type, always 'booking'."),
|
|
43
|
+
status: z.string().describe("Booking status (will be 'canceled' after successful cancellation)."),
|
|
44
|
+
subject: z.string().describe("Booking subject/title.").nullable().optional(),
|
|
45
|
+
attendees: z.array(z.string()).describe("Array of attendee email addresses.").nullable().optional(),
|
|
46
|
+
event_type: z.string().describe("Event type ID.").nullable().optional(),
|
|
47
|
+
master_page: z.string().describe("Master page ID.").nullable().optional(),
|
|
48
|
+
tracking_id: z.string().describe("Human-readable tracking number.").nullable().optional(),
|
|
49
|
+
booking_page: z.string().describe("Booking page ID.").nullable().optional(),
|
|
50
|
+
creation_time: z.string().describe("ISO 8601 timestamp of booking creation.").nullable().optional(),
|
|
51
|
+
starting_time: z.string().describe("ISO 8601 timestamp of scheduled start time.").nullable().optional(),
|
|
52
|
+
form_submission: ScheduleonceCancelBooking_FormSubmissionSchema.nullable().optional(),
|
|
53
|
+
duration_minutes: z.number().int().describe("Duration of the booking in minutes.").nullable().optional(),
|
|
54
|
+
customer_timezone: z.string().describe("Customer's timezone (e.g., 'America/New_York').").nullable().optional(),
|
|
55
|
+
last_updated_time: z.string().describe("ISO 8601 timestamp of last update.").nullable().optional(),
|
|
56
|
+
location_description: z.string().describe("Physical location description.").nullable().optional(),
|
|
57
|
+
virtual_conferencing: ScheduleonceCancelBooking_VirtualConferencingSchema.nullable().optional(),
|
|
58
|
+
rescheduled_booking_id: z.string().describe("ID of rescheduled booking if applicable.").nullable().optional(),
|
|
59
|
+
cancel_reschedule_information: ScheduleonceCancelBooking_CancelRescheduleInformationSchema.nullable().optional()
|
|
60
|
+
}).describe("Response model for canceled booking.")
|
|
61
|
+
});
|
|
62
|
+
//#endregion
|
|
63
|
+
export { scheduleonceCancelBooking };
|
|
64
|
+
|
|
65
|
+
//# sourceMappingURL=cancel-booking.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cancel-booking.mjs","names":[],"sources":["../../src/actions/cancel-booking.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScheduleonceCancelBookingInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier of the booking to cancel (e.g., 'BKNG-J4FR05BKEWEX')\"),\n cancellation_reason: z.string().describe(\"The reason for canceling the booking. This will be stored in the cancel_reschedule_information.reason field of the booking object.\").optional(),\n send_cancellation_email: z.boolean().describe(\"Determines whether a cancellation email notification should be sent to the customer and other participants.\").optional(),\n}).describe(\"Request model for canceling a booking by ID.\");\nconst ScheduleonceCancelBooking_CustomFieldItemSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the custom field\"),\n value: z.union([z.string(), z.number().int(), z.number(), z.boolean()]).nullable().optional(),\n}).describe(\"Model for custom field item.\");\nconst ScheduleonceCancelBooking_FormSubmissionSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Customer's name.\").nullable().optional(),\n note: z.string().describe(\"Additional note from customer.\").nullable().optional(),\n email: z.string().describe(\"Customer's email address.\").nullable().optional(),\n phone: z.string().describe(\"Customer's phone number.\").nullable().optional(),\n guests: z.array(z.string()).describe(\"List of guest email addresses.\").nullable().optional(),\n company: z.string().describe(\"Customer's company.\").nullable().optional(),\n mobile_phone: z.string().describe(\"Customer's mobile phone number.\").nullable().optional(),\n custom_fields: z.array(ScheduleonceCancelBooking_CustomFieldItemSchema).describe(\"Array of custom field objects with name and value properties.\").nullable().optional(),\n}).describe(\"Model for form submission data.\");\nconst ScheduleonceCancelBooking_VirtualConferencingSchema: z.ZodTypeAny = z.object({\n join_url: z.string().describe(\"URL to join the virtual meeting.\").nullable().optional(),\n}).describe(\"Model for virtual conferencing details.\");\nconst ScheduleonceCancelBooking_CancelRescheduleInformationSchema: z.ZodTypeAny = z.object({\n reason: z.string().describe(\"Reason for cancellation or rescheduling.\").nullable().optional(),\n user_id: z.string().describe(\"User ID who performed the action if initiated by a user.\").nullable().optional(),\n actioned_by: z.string().describe(\"Who performed the action: 'user' or 'customer'.\").nullable().optional(),\n}).describe(\"Model for cancellation or reschedule information.\");\nexport const ScheduleonceCancelBookingOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique booking identifier.\"),\n owner: z.union([z.string(), z.object({})]).nullable().optional(),\n object: z.string().describe(\"Object type, always 'booking'.\"),\n status: z.string().describe(\"Booking status (will be 'canceled' after successful cancellation).\"),\n subject: z.string().describe(\"Booking subject/title.\").nullable().optional(),\n attendees: z.array(z.string()).describe(\"Array of attendee email addresses.\").nullable().optional(),\n event_type: z.string().describe(\"Event type ID.\").nullable().optional(),\n master_page: z.string().describe(\"Master page ID.\").nullable().optional(),\n tracking_id: z.string().describe(\"Human-readable tracking number.\").nullable().optional(),\n booking_page: z.string().describe(\"Booking page ID.\").nullable().optional(),\n creation_time: z.string().describe(\"ISO 8601 timestamp of booking creation.\").nullable().optional(),\n starting_time: z.string().describe(\"ISO 8601 timestamp of scheduled start time.\").nullable().optional(),\n form_submission: ScheduleonceCancelBooking_FormSubmissionSchema.nullable().optional(),\n duration_minutes: z.number().int().describe(\"Duration of the booking in minutes.\").nullable().optional(),\n customer_timezone: z.string().describe(\"Customer's timezone (e.g., 'America/New_York').\").nullable().optional(),\n last_updated_time: z.string().describe(\"ISO 8601 timestamp of last update.\").nullable().optional(),\n location_description: z.string().describe(\"Physical location description.\").nullable().optional(),\n virtual_conferencing: ScheduleonceCancelBooking_VirtualConferencingSchema.nullable().optional(),\n rescheduled_booking_id: z.string().describe(\"ID of rescheduled booking if applicable.\").nullable().optional(),\n cancel_reschedule_information: ScheduleonceCancelBooking_CancelRescheduleInformationSchema.nullable().optional(),\n}).describe(\"Response model for canceled booking.\");\n\nexport const scheduleonceCancelBooking = action(\"SCHEDULEONCE_CANCEL_BOOKING\", {\n slug: \"scheduleonce-cancel-booking\",\n name: \"Cancel Booking\",\n description: \"Tool to cancel a booking by ID in OnceHub. Use when you need to cancel an existing booking, optionally providing a cancellation reason and controlling whether to send cancellation email notifications.\",\n input: ScheduleonceCancelBookingInput,\n output: ScheduleonceCancelBookingOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAA+C,EAAE,OAAO;CACnE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E;CACpG,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,oIAAoI,CAAC,CAAC,SAAS;CACxL,yBAAyB,EAAE,QAAQ,CAAC,CAAC,SAAS,6GAA6G,CAAC,CAAC,SAAS;AACxK,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAM,kDAAgE,EAAE,OAAO;CAC7E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;CACpD,OAAO,EAAE,MAAM;EAAC,EAAE,OAAO;EAAG,EAAE,OAAO,CAAC,CAAC,IAAI;EAAG,EAAE,OAAO;EAAG,EAAE,QAAQ;CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,SAAS,8BAA8B;AAC1C,MAAM,iDAA+D,EAAE,OAAO;CAC5E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,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;EACjG,sBAAsB,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChG,sBAAsB,oDAAoD,SAAS,CAAC,CAAC,SAAS;EAC9F,wBAAwB,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5G,+BAA+B,4DAA4D,SAAS,CAAC,CAAC,SAAS;CACjH,CAAC,CAAC,CAAC,SAAS,sCAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/create-contact.ts
|
|
4
|
+
const ScheduleonceCreateContactInput = zod.z.object({
|
|
5
|
+
city: zod.z.string().describe("City of the contact.").optional(),
|
|
6
|
+
email: zod.z.string().describe("Email address of the contact (required)."),
|
|
7
|
+
phone: zod.z.string().describe("Phone number of the contact.").optional(),
|
|
8
|
+
state: zod.z.string().describe("State or province of the contact.").optional(),
|
|
9
|
+
company: zod.z.string().describe("Company name associated with the contact.").optional(),
|
|
10
|
+
country: zod.z.string().describe("Country of the contact.").optional(),
|
|
11
|
+
timezone: zod.z.string().describe("Timezone of the contact.").optional(),
|
|
12
|
+
job_title: zod.z.string().describe("Job title of the contact.").optional(),
|
|
13
|
+
last_name: zod.z.string().describe("Last name of the contact (required)."),
|
|
14
|
+
post_code: zod.z.string().describe("Postal or ZIP code of the contact.").optional(),
|
|
15
|
+
first_name: zod.z.string().describe("First name of the contact (required)."),
|
|
16
|
+
salutation: zod.z.string().describe("Salutation/title for the contact.").optional(),
|
|
17
|
+
mobile_phone: zod.z.string().describe("Mobile phone number of the contact.").optional(),
|
|
18
|
+
street_address: zod.z.string().describe("Street address of the contact.").optional()
|
|
19
|
+
}).describe("Request model for creating a new contact in ScheduleOnce.");
|
|
20
|
+
const ScheduleonceCreateContact_CustomFieldSchema = zod.z.object({
|
|
21
|
+
name: zod.z.string().describe("Name of the custom field"),
|
|
22
|
+
value: zod.z.string().describe("Value of the custom field").nullable().optional()
|
|
23
|
+
}).describe("Model for custom field data.");
|
|
24
|
+
const ScheduleonceCreateContactOutput = zod.z.object({
|
|
25
|
+
id: zod.z.string().describe("Unique identifier for the contact"),
|
|
26
|
+
city: zod.z.string().describe("City").nullable().optional(),
|
|
27
|
+
email: zod.z.string().describe("Email address").nullable().optional(),
|
|
28
|
+
owner: zod.z.string().describe("User ID of the contact owner (e.g., 'USR-FSD423423')").nullable().optional(),
|
|
29
|
+
phone: zod.z.string().describe("Phone number").nullable().optional(),
|
|
30
|
+
state: zod.z.string().describe("State/province").nullable().optional(),
|
|
31
|
+
object: zod.z.string().describe("The object type, always 'contact'"),
|
|
32
|
+
company: zod.z.string().describe("Company name").nullable().optional(),
|
|
33
|
+
country: zod.z.string().describe("Country").nullable().optional(),
|
|
34
|
+
timezone: zod.z.string().describe("Timezone setting").nullable().optional(),
|
|
35
|
+
employees: zod.z.string().describe("Number of employees").nullable().optional(),
|
|
36
|
+
job_title: zod.z.string().describe("Contact's job title").nullable().optional(),
|
|
37
|
+
last_name: zod.z.string().describe("Contact's last name").nullable().optional(),
|
|
38
|
+
post_code: zod.z.string().describe("Postal/ZIP code").nullable().optional(),
|
|
39
|
+
first_name: zod.z.string().describe("Contact's first name").nullable().optional(),
|
|
40
|
+
salutation: zod.z.string().describe("Optional salutation/title").nullable().optional(),
|
|
41
|
+
has_consent: zod.z.boolean().describe("Consent status").nullable().optional(),
|
|
42
|
+
company_size: zod.z.string().describe("Size of company").nullable().optional(),
|
|
43
|
+
mobile_phone: zod.z.string().describe("Mobile phone number").nullable().optional(),
|
|
44
|
+
creation_time: zod.z.string().describe("ISO 8601 format timestamp when contact was created").nullable().optional(),
|
|
45
|
+
custom_fields: zod.z.array(ScheduleonceCreateContact_CustomFieldSchema).describe("Array of custom field objects with 'name' and 'value' properties").nullable().optional(),
|
|
46
|
+
street_address: zod.z.string().describe("Street address").nullable().optional(),
|
|
47
|
+
terms_of_service: zod.z.boolean().describe("Terms of service acceptance").nullable().optional(),
|
|
48
|
+
last_updated_time: zod.z.string().describe("ISO 8601 format timestamp when contact was last updated").nullable().optional()
|
|
49
|
+
}).describe("Response model for a newly created contact.");
|
|
50
|
+
const scheduleonceCreateContact = require_action.action("SCHEDULEONCE_CREATE_CONTACT", {
|
|
51
|
+
slug: "scheduleonce-create-contact",
|
|
52
|
+
name: "Create Contact",
|
|
53
|
+
description: "Tool to create a new contact in ScheduleOnce. Use when you need to add a contact with email, first name, and last name. Additional fields like company, phone, and address details can be optionally provided.",
|
|
54
|
+
input: ScheduleonceCreateContactInput,
|
|
55
|
+
output: ScheduleonceCreateContactOutput
|
|
56
|
+
});
|
|
57
|
+
//#endregion
|
|
58
|
+
exports.scheduleonceCreateContact = scheduleonceCreateContact;
|
|
59
|
+
|
|
60
|
+
//# sourceMappingURL=create-contact.cjs.map
|