@keystrokehq/planyo_online_booking 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/add-reservation.cjs +3 -3
- package/dist/actions/add-reservation.cjs.map +1 -1
- package/dist/actions/add-reservation.d.cts +4 -4
- package/dist/actions/add-reservation.d.mts +4 -4
- package/dist/actions/add-reservation.mjs +3 -3
- package/dist/actions/add-reservation.mjs.map +1 -1
- package/dist/actions/add-user.cjs +1 -1
- package/dist/actions/add-user.cjs.map +1 -1
- package/dist/actions/add-user.d.cts +1 -1
- package/dist/actions/add-user.d.mts +1 -1
- package/dist/actions/add-user.mjs +1 -1
- package/dist/actions/add-user.mjs.map +1 -1
- package/dist/actions/get-addon-list.cjs +1 -1
- package/dist/actions/get-addon-list.cjs.map +1 -1
- package/dist/actions/get-addon-list.d.cts +1 -1
- package/dist/actions/get-addon-list.d.mts +1 -1
- package/dist/actions/get-addon-list.mjs +1 -1
- package/dist/actions/get-addon-list.mjs.map +1 -1
- package/dist/actions/get-coupon-list.cjs +2 -2
- package/dist/actions/get-coupon-list.cjs.map +1 -1
- package/dist/actions/get-coupon-list.d.cts +2 -2
- package/dist/actions/get-coupon-list.d.mts +2 -2
- package/dist/actions/get-coupon-list.mjs +2 -2
- package/dist/actions/get-coupon-list.mjs.map +1 -1
- package/dist/actions/get-resource-availability.cjs +2 -2
- package/dist/actions/get-resource-availability.cjs.map +1 -1
- package/dist/actions/get-resource-availability.d.cts +4 -4
- package/dist/actions/get-resource-availability.d.mts +4 -4
- package/dist/actions/get-resource-availability.mjs +2 -2
- package/dist/actions/get-resource-availability.mjs.map +1 -1
- package/dist/actions/get-resource-blackouts.cjs +2 -2
- package/dist/actions/get-resource-blackouts.cjs.map +1 -1
- package/dist/actions/get-resource-blackouts.d.cts +2 -2
- package/dist/actions/get-resource-blackouts.d.mts +2 -2
- package/dist/actions/get-resource-blackouts.mjs +2 -2
- package/dist/actions/get-resource-blackouts.mjs.map +1 -1
- package/dist/actions/get-resource-reviews.cjs +2 -2
- package/dist/actions/get-resource-reviews.cjs.map +1 -1
- package/dist/actions/get-resource-reviews.d.cts +2 -2
- package/dist/actions/get-resource-reviews.d.mts +2 -2
- package/dist/actions/get-resource-reviews.mjs +2 -2
- package/dist/actions/get-resource-reviews.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -15,7 +15,7 @@ const PlanyoOnlineBookingAddReservationInput = zod.z.object({
|
|
|
15
15
|
user_email: zod.z.string().describe("Customer email; required if user_id not provided").optional(),
|
|
16
16
|
resource_id: zod.z.number().int().describe("ID of the resource to reserve"),
|
|
17
17
|
voucher_code: zod.z.string().describe("Voucher code to apply").optional(),
|
|
18
|
-
custom_fields: zod.z.
|
|
18
|
+
custom_fields: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Additional custom form fields; keys are field IDs or names; 'req_' prefix will be added automatically").optional()
|
|
19
19
|
});
|
|
20
20
|
const PlanyoOnlineBookingAddReservationOutput = zod.z.object({
|
|
21
21
|
status: zod.z.number().int().describe("Reservation status code").nullable(),
|
|
@@ -25,10 +25,10 @@ const PlanyoOnlineBookingAddReservationOutput = zod.z.object({
|
|
|
25
25
|
error_code: zod.z.number().int().describe("Error code if request failed").nullable().optional(),
|
|
26
26
|
total_price: zod.z.number().describe("Total price of the reservation").nullable().optional(),
|
|
27
27
|
customer_url: zod.z.string().describe("Customer URL to view or manage the reservation").nullable().optional(),
|
|
28
|
-
custom_fields: zod.z.
|
|
28
|
+
custom_fields: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Returned values for custom form fields").nullable().optional(),
|
|
29
29
|
reservation_id: zod.z.number().int().describe("ID of the created reservation").nullable(),
|
|
30
30
|
confirmation_num: zod.z.string().describe("Confirmation number if available").nullable().optional()
|
|
31
|
-
});
|
|
31
|
+
}).passthrough();
|
|
32
32
|
const planyoOnlineBookingAddReservation = require_action.action("PLANYO_ONLINE_BOOKING_ADD_RESERVATION", {
|
|
33
33
|
slug: "planyo_online_booking-add-reservation",
|
|
34
34
|
name: "Add Reservation",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-reservation.cjs","names":["z","action"],"sources":["../../src/actions/add-reservation.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlanyoOnlineBookingAddReservationInput = z.object({\n force: z.boolean().default(false).describe(\"Set to True to override conflicts and limits\").optional(),\n site_id: z.number().int().describe(\"ID of the Planyo site to reserve on\"),\n user_id: z.number().int().describe(\"Existing Planyo user ID; if not provided, user_email, first_name, and last_name are required\").optional(),\n end_time: z.string().describe(\"Reservation end time; will be converted to UNIX timestamp\").optional(),\n language: z.string().describe(\"Language for reservation notifications (e.g., 'en', 'fr')\").optional(),\n quantity: z.number().int().describe(\"Number of items or seats to reserve\"),\n last_name: z.string().describe(\"Customer last name; required if user_id not provided\").optional(),\n admin_mode: z.boolean().default(false).describe(\"Set to True to run in admin mode\").optional(),\n first_name: z.string().describe(\"Customer first name; required if user_id not provided\").optional(),\n start_time: z.string().describe(\"Reservation start time; will be converted to UNIX timestamp\").optional(),\n user_email: z.string().describe(\"Customer email; required if user_id not provided\").optional(),\n resource_id: z.number().int().describe(\"ID of the resource to reserve\"),\n voucher_code: z.string().describe(\"Voucher code to apply\").optional(),\n custom_fields: z.
|
|
1
|
+
{"version":3,"file":"add-reservation.cjs","names":["z","action"],"sources":["../../src/actions/add-reservation.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlanyoOnlineBookingAddReservationInput = z.object({\n force: z.boolean().default(false).describe(\"Set to True to override conflicts and limits\").optional(),\n site_id: z.number().int().describe(\"ID of the Planyo site to reserve on\"),\n user_id: z.number().int().describe(\"Existing Planyo user ID; if not provided, user_email, first_name, and last_name are required\").optional(),\n end_time: z.string().describe(\"Reservation end time; will be converted to UNIX timestamp\").optional(),\n language: z.string().describe(\"Language for reservation notifications (e.g., 'en', 'fr')\").optional(),\n quantity: z.number().int().describe(\"Number of items or seats to reserve\"),\n last_name: z.string().describe(\"Customer last name; required if user_id not provided\").optional(),\n admin_mode: z.boolean().default(false).describe(\"Set to True to run in admin mode\").optional(),\n first_name: z.string().describe(\"Customer first name; required if user_id not provided\").optional(),\n start_time: z.string().describe(\"Reservation start time; will be converted to UNIX timestamp\").optional(),\n user_email: z.string().describe(\"Customer email; required if user_id not provided\").optional(),\n resource_id: z.number().int().describe(\"ID of the resource to reserve\"),\n voucher_code: z.string().describe(\"Voucher code to apply\").optional(),\n custom_fields: z.record(z.string(), z.unknown()).describe(\"Additional custom form fields; keys are field IDs or names; 'req_' prefix will be added automatically\").optional(),\n});\nexport const PlanyoOnlineBookingAddReservationOutput = z.object({\n status: z.number().int().describe(\"Reservation status code\").nullable(),\n currency: z.string().describe(\"Currency code used\").nullable().optional(),\n admin_url: z.string().describe(\"Admin URL to manage this reservation\").nullable().optional(),\n error_msg: z.string().describe(\"Error message if any\").nullable().optional(),\n error_code: z.number().int().describe(\"Error code if request failed\").nullable().optional(),\n total_price: z.number().describe(\"Total price of the reservation\").nullable().optional(),\n customer_url: z.string().describe(\"Customer URL to view or manage the reservation\").nullable().optional(),\n custom_fields: z.record(z.string(), z.unknown()).describe(\"Returned values for custom form fields\").nullable().optional(),\n reservation_id: z.number().int().describe(\"ID of the created reservation\").nullable(),\n confirmation_num: z.string().describe(\"Confirmation number if available\").nullable().optional(),\n}).passthrough();\n\nexport const planyoOnlineBookingAddReservation = action(\"PLANYO_ONLINE_BOOKING_ADD_RESERVATION\", {\n slug: \"planyo_online_booking-add-reservation\",\n name: \"Add Reservation\",\n description: \"Tool to create a new reservation. Use after gathering resource, timing, and customer details.\",\n input: PlanyoOnlineBookingAddReservationInput,\n output: PlanyoOnlineBookingAddReservationOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yCAAyCA,IAAAA,EAAE,OAAO;CAC7D,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC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String>;
|
|
16
16
|
resource_id: z.ZodNumber;
|
|
17
17
|
voucher_code: z.ZodOptional<z.ZodString>;
|
|
18
|
-
custom_fields: z.ZodOptional<z.
|
|
18
|
+
custom_fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
19
19
|
}, z.core.$strip>;
|
|
20
20
|
declare const PlanyoOnlineBookingAddReservationOutput: z.ZodObject<{
|
|
21
21
|
status: z.ZodNullable<z.ZodNumber>;
|
|
@@ -25,10 +25,10 @@ declare const PlanyoOnlineBookingAddReservationOutput: z.ZodObject<{
|
|
|
25
25
|
error_code: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
26
26
|
total_price: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
27
27
|
customer_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
|
-
custom_fields: z.ZodOptional<z.ZodNullable<z.
|
|
28
|
+
custom_fields: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
29
29
|
reservation_id: z.ZodNullable<z.ZodNumber>;
|
|
30
30
|
confirmation_num: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31
|
-
}, z.core.$
|
|
31
|
+
}, z.core.$loose>;
|
|
32
32
|
declare const planyoOnlineBookingAddReservation: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
33
33
|
site_id: number;
|
|
34
34
|
quantity: number;
|
|
@@ -43,7 +43,7 @@ declare const planyoOnlineBookingAddReservation: import("@keystrokehq/action").W
|
|
|
43
43
|
start_time?: string | undefined;
|
|
44
44
|
user_email?: string | undefined;
|
|
45
45
|
voucher_code?: string | undefined;
|
|
46
|
-
custom_fields?: Record<string,
|
|
46
|
+
custom_fields?: Record<string, unknown> | undefined;
|
|
47
47
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
48
48
|
//#endregion
|
|
49
49
|
export { planyoOnlineBookingAddReservation };
|
|
@@ -15,7 +15,7 @@ declare const PlanyoOnlineBookingAddReservationInput: z.ZodObject<{
|
|
|
15
15
|
user_email: z.ZodOptional<z.ZodString>;
|
|
16
16
|
resource_id: z.ZodNumber;
|
|
17
17
|
voucher_code: z.ZodOptional<z.ZodString>;
|
|
18
|
-
custom_fields: z.ZodOptional<z.
|
|
18
|
+
custom_fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
19
19
|
}, z.core.$strip>;
|
|
20
20
|
declare const PlanyoOnlineBookingAddReservationOutput: z.ZodObject<{
|
|
21
21
|
status: z.ZodNullable<z.ZodNumber>;
|
|
@@ -25,10 +25,10 @@ declare const PlanyoOnlineBookingAddReservationOutput: z.ZodObject<{
|
|
|
25
25
|
error_code: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
26
26
|
total_price: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
27
27
|
customer_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
|
-
custom_fields: z.ZodOptional<z.ZodNullable<z.
|
|
28
|
+
custom_fields: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
29
29
|
reservation_id: z.ZodNullable<z.ZodNumber>;
|
|
30
30
|
confirmation_num: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31
|
-
}, z.core.$
|
|
31
|
+
}, z.core.$loose>;
|
|
32
32
|
declare const planyoOnlineBookingAddReservation: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
33
33
|
site_id: number;
|
|
34
34
|
quantity: number;
|
|
@@ -43,7 +43,7 @@ declare const planyoOnlineBookingAddReservation: import("@keystrokehq/action").W
|
|
|
43
43
|
start_time?: string | undefined;
|
|
44
44
|
user_email?: string | undefined;
|
|
45
45
|
voucher_code?: string | undefined;
|
|
46
|
-
custom_fields?: Record<string,
|
|
46
|
+
custom_fields?: Record<string, unknown> | undefined;
|
|
47
47
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
48
48
|
//#endregion
|
|
49
49
|
export { planyoOnlineBookingAddReservation };
|
|
@@ -18,7 +18,7 @@ const planyoOnlineBookingAddReservation = action("PLANYO_ONLINE_BOOKING_ADD_RESE
|
|
|
18
18
|
user_email: z.string().describe("Customer email; required if user_id not provided").optional(),
|
|
19
19
|
resource_id: z.number().int().describe("ID of the resource to reserve"),
|
|
20
20
|
voucher_code: z.string().describe("Voucher code to apply").optional(),
|
|
21
|
-
custom_fields: z.
|
|
21
|
+
custom_fields: z.record(z.string(), z.unknown()).describe("Additional custom form fields; keys are field IDs or names; 'req_' prefix will be added automatically").optional()
|
|
22
22
|
}),
|
|
23
23
|
output: z.object({
|
|
24
24
|
status: z.number().int().describe("Reservation status code").nullable(),
|
|
@@ -28,10 +28,10 @@ const planyoOnlineBookingAddReservation = action("PLANYO_ONLINE_BOOKING_ADD_RESE
|
|
|
28
28
|
error_code: z.number().int().describe("Error code if request failed").nullable().optional(),
|
|
29
29
|
total_price: z.number().describe("Total price of the reservation").nullable().optional(),
|
|
30
30
|
customer_url: z.string().describe("Customer URL to view or manage the reservation").nullable().optional(),
|
|
31
|
-
custom_fields: z.
|
|
31
|
+
custom_fields: z.record(z.string(), z.unknown()).describe("Returned values for custom form fields").nullable().optional(),
|
|
32
32
|
reservation_id: z.number().int().describe("ID of the created reservation").nullable(),
|
|
33
33
|
confirmation_num: z.string().describe("Confirmation number if available").nullable().optional()
|
|
34
|
-
})
|
|
34
|
+
}).passthrough()
|
|
35
35
|
});
|
|
36
36
|
//#endregion
|
|
37
37
|
export { planyoOnlineBookingAddReservation };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-reservation.mjs","names":[],"sources":["../../src/actions/add-reservation.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlanyoOnlineBookingAddReservationInput = z.object({\n force: z.boolean().default(false).describe(\"Set to True to override conflicts and limits\").optional(),\n site_id: z.number().int().describe(\"ID of the Planyo site to reserve on\"),\n user_id: z.number().int().describe(\"Existing Planyo user ID; if not provided, user_email, first_name, and last_name are required\").optional(),\n end_time: z.string().describe(\"Reservation end time; will be converted to UNIX timestamp\").optional(),\n language: z.string().describe(\"Language for reservation notifications (e.g., 'en', 'fr')\").optional(),\n quantity: z.number().int().describe(\"Number of items or seats to reserve\"),\n last_name: z.string().describe(\"Customer last name; required if user_id not provided\").optional(),\n admin_mode: z.boolean().default(false).describe(\"Set to True to run in admin mode\").optional(),\n first_name: z.string().describe(\"Customer first name; required if user_id not provided\").optional(),\n start_time: z.string().describe(\"Reservation start time; will be converted to UNIX timestamp\").optional(),\n user_email: z.string().describe(\"Customer email; required if user_id not provided\").optional(),\n resource_id: z.number().int().describe(\"ID of the resource to reserve\"),\n voucher_code: z.string().describe(\"Voucher code to apply\").optional(),\n custom_fields: z.
|
|
1
|
+
{"version":3,"file":"add-reservation.mjs","names":[],"sources":["../../src/actions/add-reservation.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlanyoOnlineBookingAddReservationInput = z.object({\n force: z.boolean().default(false).describe(\"Set to True to override conflicts and limits\").optional(),\n site_id: z.number().int().describe(\"ID of the Planyo site to reserve on\"),\n user_id: z.number().int().describe(\"Existing Planyo user ID; if not provided, user_email, first_name, and last_name are required\").optional(),\n end_time: z.string().describe(\"Reservation end time; will be converted to UNIX timestamp\").optional(),\n language: z.string().describe(\"Language for reservation notifications (e.g., 'en', 'fr')\").optional(),\n quantity: z.number().int().describe(\"Number of items or seats to reserve\"),\n last_name: z.string().describe(\"Customer last name; required if user_id not provided\").optional(),\n admin_mode: z.boolean().default(false).describe(\"Set to True to run in admin mode\").optional(),\n first_name: z.string().describe(\"Customer first name; required if user_id not provided\").optional(),\n start_time: z.string().describe(\"Reservation start time; will be converted to UNIX timestamp\").optional(),\n user_email: z.string().describe(\"Customer email; required if user_id not provided\").optional(),\n resource_id: z.number().int().describe(\"ID of the resource to reserve\"),\n voucher_code: z.string().describe(\"Voucher code to apply\").optional(),\n custom_fields: z.record(z.string(), z.unknown()).describe(\"Additional custom form fields; keys are field IDs or names; 'req_' prefix will be added automatically\").optional(),\n});\nexport const PlanyoOnlineBookingAddReservationOutput = z.object({\n status: z.number().int().describe(\"Reservation status code\").nullable(),\n currency: z.string().describe(\"Currency code used\").nullable().optional(),\n admin_url: z.string().describe(\"Admin URL to manage this reservation\").nullable().optional(),\n error_msg: z.string().describe(\"Error message if any\").nullable().optional(),\n error_code: z.number().int().describe(\"Error code if request failed\").nullable().optional(),\n total_price: z.number().describe(\"Total price of the reservation\").nullable().optional(),\n customer_url: z.string().describe(\"Customer URL to view or manage the reservation\").nullable().optional(),\n custom_fields: z.record(z.string(), z.unknown()).describe(\"Returned values for custom form fields\").nullable().optional(),\n reservation_id: z.number().int().describe(\"ID of the created reservation\").nullable(),\n confirmation_num: z.string().describe(\"Confirmation number if available\").nullable().optional(),\n}).passthrough();\n\nexport const planyoOnlineBookingAddReservation = action(\"PLANYO_ONLINE_BOOKING_ADD_RESERVATION\", {\n slug: \"planyo_online_booking-add-reservation\",\n name: \"Add Reservation\",\n description: \"Tool to create a new reservation. Use after gathering resource, timing, and customer details.\",\n input: PlanyoOnlineBookingAddReservationInput,\n output: PlanyoOnlineBookingAddReservationOutput,\n});\n"],"mappings":";;AAiCA,MAAa,oCAAoC,OAAO,yCAAyC;CAC/F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAjCoD,EAAE,OAAO;EAC7D,OAAO,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;EACpG,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC;EACxE,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,S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AAC,SAAS;EAC3E,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1F,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxG,eAAe,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxH,gBAAgB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;EACpF,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
|
|
@@ -21,7 +21,7 @@ const PlanyoOnlineBookingAddUserOutput = zod.z.object({
|
|
|
21
21
|
user_id: zod.z.number().int().describe("ID of the newly created user").nullable(),
|
|
22
22
|
result_code: zod.z.number().int().describe("Result code returned by the API (0 indicates success)").nullable(),
|
|
23
23
|
result_message: zod.z.string().describe("Message describing the result of the operation").nullable()
|
|
24
|
-
}).describe("Response from Planyo after adding a new user.");
|
|
24
|
+
}).passthrough().describe("Response from Planyo after adding a new user.");
|
|
25
25
|
const planyoOnlineBookingAddUser = require_action.action("PLANYO_ONLINE_BOOKING_ADD_USER", {
|
|
26
26
|
slug: "planyo_online_booking-add-user",
|
|
27
27
|
name: "Add User",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-user.cjs","names":["z","action"],"sources":["../../src/actions/add-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlanyoOnlineBookingAddUserInput = z.object({\n fax: z.string().describe(\"User's fax number\").optional(),\n zip: z.string().describe(\"User's postal code\").optional(),\n city: z.string().describe(\"User's city\").optional(),\n email: z.string().describe(\"User's email address\"),\n phone: z.string().describe(\"User's phone number\").optional(),\n state: z.string().describe(\"User's state or province\").optional(),\n mobile: z.string().describe(\"User's mobile phone number\").optional(),\n vat_id: z.string().describe(\"VAT identification number\").optional(),\n address: z.string().describe(\"User's street address\").optional(),\n company: z.string().describe(\"Company name associated with the user\").optional(),\n country: z.string().describe(\"User's country (2-letter ISO code)\").optional(),\n last_name: z.string().describe(\"User's last name\").optional(),\n first_name: z.string().describe(\"User's first name\").optional(),\n custom_fields: z.record(z.string(), z.unknown()).describe(\"Custom fields mapping using field IDs, e.g. {'3': 'value'}\").optional(),\n}).describe(\"Request parameters for adding a new user in Planyo.\");\nexport const PlanyoOnlineBookingAddUserOutput = z.object({\n user_id: z.number().int().describe(\"ID of the newly created user\").nullable(),\n result_code: z.number().int().describe(\"Result code returned by the API (0 indicates success)\").nullable(),\n result_message: z.string().describe(\"Message describing the result of the operation\").nullable(),\n}).describe(\"Response from Planyo after adding a new user.\");\n\nexport const planyoOnlineBookingAddUser = action(\"PLANYO_ONLINE_BOOKING_ADD_USER\", {\n slug: \"planyo_online_booking-add-user\",\n name: \"Add User\",\n description: \"Tool to add a new user in Planyo. Use when you need to create a user account after gathering user details.\",\n input: PlanyoOnlineBookingAddUserInput,\n output: PlanyoOnlineBookingAddUserOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS;CACvD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;CACxD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS;CAClD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,S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|
1
|
+
{"version":3,"file":"add-user.cjs","names":["z","action"],"sources":["../../src/actions/add-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlanyoOnlineBookingAddUserInput = z.object({\n fax: z.string().describe(\"User's fax number\").optional(),\n zip: z.string().describe(\"User's postal code\").optional(),\n city: z.string().describe(\"User's city\").optional(),\n email: z.string().describe(\"User's email address\"),\n phone: z.string().describe(\"User's phone number\").optional(),\n state: z.string().describe(\"User's state or province\").optional(),\n mobile: z.string().describe(\"User's mobile phone number\").optional(),\n vat_id: z.string().describe(\"VAT identification number\").optional(),\n address: z.string().describe(\"User's street address\").optional(),\n company: z.string().describe(\"Company name associated with the user\").optional(),\n country: z.string().describe(\"User's country (2-letter ISO code)\").optional(),\n last_name: z.string().describe(\"User's last name\").optional(),\n first_name: z.string().describe(\"User's first name\").optional(),\n custom_fields: z.record(z.string(), z.unknown()).describe(\"Custom fields mapping using field IDs, e.g. {'3': 'value'}\").optional(),\n}).describe(\"Request parameters for adding a new user in Planyo.\");\nexport const PlanyoOnlineBookingAddUserOutput = z.object({\n user_id: z.number().int().describe(\"ID of the newly created user\").nullable(),\n result_code: z.number().int().describe(\"Result code returned by the API (0 indicates success)\").nullable(),\n result_message: z.string().describe(\"Message describing the result of the operation\").nullable(),\n}).passthrough().describe(\"Response from Planyo after adding a new user.\");\n\nexport const planyoOnlineBookingAddUser = action(\"PLANYO_ONLINE_BOOKING_ADD_USER\", {\n slug: \"planyo_online_booking-add-user\",\n name: \"Add User\",\n description: \"Tool to add a new user in Planyo. Use when you need to create a user account after gathering user details.\",\n input: PlanyoOnlineBookingAddUserInput,\n output: PlanyoOnlineBookingAddUserOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS;CACvD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,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AAS,uDAAuD,CAAC,CAAC,SAAS;CACzG,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;AACjG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAA+C;AAEzE,MAAa,6BAA6BC,eAAAA,OAAO,kCAAkC;CACjF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -21,7 +21,7 @@ declare const PlanyoOnlineBookingAddUserOutput: z.ZodObject<{
|
|
|
21
21
|
user_id: z.ZodNullable<z.ZodNumber>;
|
|
22
22
|
result_code: z.ZodNullable<z.ZodNumber>;
|
|
23
23
|
result_message: z.ZodNullable<z.ZodString>;
|
|
24
|
-
}, z.core.$
|
|
24
|
+
}, z.core.$loose>;
|
|
25
25
|
declare const planyoOnlineBookingAddUser: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
26
26
|
email: string;
|
|
27
27
|
fax?: string | undefined;
|
|
@@ -21,7 +21,7 @@ declare const PlanyoOnlineBookingAddUserOutput: z.ZodObject<{
|
|
|
21
21
|
user_id: z.ZodNullable<z.ZodNumber>;
|
|
22
22
|
result_code: z.ZodNullable<z.ZodNumber>;
|
|
23
23
|
result_message: z.ZodNullable<z.ZodString>;
|
|
24
|
-
}, z.core.$
|
|
24
|
+
}, z.core.$loose>;
|
|
25
25
|
declare const planyoOnlineBookingAddUser: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
26
26
|
email: string;
|
|
27
27
|
fax?: string | undefined;
|
|
@@ -24,7 +24,7 @@ const planyoOnlineBookingAddUser = action("PLANYO_ONLINE_BOOKING_ADD_USER", {
|
|
|
24
24
|
user_id: z.number().int().describe("ID of the newly created user").nullable(),
|
|
25
25
|
result_code: z.number().int().describe("Result code returned by the API (0 indicates success)").nullable(),
|
|
26
26
|
result_message: z.string().describe("Message describing the result of the operation").nullable()
|
|
27
|
-
}).describe("Response from Planyo after adding a new user.")
|
|
27
|
+
}).passthrough().describe("Response from Planyo after adding a new user.")
|
|
28
28
|
});
|
|
29
29
|
//#endregion
|
|
30
30
|
export { planyoOnlineBookingAddUser };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-user.mjs","names":[],"sources":["../../src/actions/add-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlanyoOnlineBookingAddUserInput = z.object({\n fax: z.string().describe(\"User's fax number\").optional(),\n zip: z.string().describe(\"User's postal code\").optional(),\n city: z.string().describe(\"User's city\").optional(),\n email: z.string().describe(\"User's email address\"),\n phone: z.string().describe(\"User's phone number\").optional(),\n state: z.string().describe(\"User's state or province\").optional(),\n mobile: z.string().describe(\"User's mobile phone number\").optional(),\n vat_id: z.string().describe(\"VAT identification number\").optional(),\n address: z.string().describe(\"User's street address\").optional(),\n company: z.string().describe(\"Company name associated with the user\").optional(),\n country: z.string().describe(\"User's country (2-letter ISO code)\").optional(),\n last_name: z.string().describe(\"User's last name\").optional(),\n first_name: z.string().describe(\"User's first name\").optional(),\n custom_fields: z.record(z.string(), z.unknown()).describe(\"Custom fields mapping using field IDs, e.g. {'3': 'value'}\").optional(),\n}).describe(\"Request parameters for adding a new user in Planyo.\");\nexport const PlanyoOnlineBookingAddUserOutput = z.object({\n user_id: z.number().int().describe(\"ID of the newly created user\").nullable(),\n result_code: z.number().int().describe(\"Result code returned by the API (0 indicates success)\").nullable(),\n result_message: z.string().describe(\"Message describing the result of the operation\").nullable(),\n}).describe(\"Response from Planyo after adding a new user.\");\n\nexport const planyoOnlineBookingAddUser = action(\"PLANYO_ONLINE_BOOKING_ADD_USER\", {\n slug: \"planyo_online_booking-add-user\",\n name: \"Add User\",\n description: \"Tool to add a new user in Planyo. Use when you need to create a user account after gathering user details.\",\n input: PlanyoOnlineBookingAddUserInput,\n output: PlanyoOnlineBookingAddUserOutput,\n});\n"],"mappings":";;AA0BA,MAAa,6BAA6B,OAAO,kCAAkC;CACjF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CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;EACzG,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACjG,CAAC,CAAC,CAAC,SAAS,+
|
|
1
|
+
{"version":3,"file":"add-user.mjs","names":[],"sources":["../../src/actions/add-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlanyoOnlineBookingAddUserInput = z.object({\n fax: z.string().describe(\"User's fax number\").optional(),\n zip: z.string().describe(\"User's postal code\").optional(),\n city: z.string().describe(\"User's city\").optional(),\n email: z.string().describe(\"User's email address\"),\n phone: z.string().describe(\"User's phone number\").optional(),\n state: z.string().describe(\"User's state or province\").optional(),\n mobile: z.string().describe(\"User's mobile phone number\").optional(),\n vat_id: z.string().describe(\"VAT identification number\").optional(),\n address: z.string().describe(\"User's street address\").optional(),\n company: z.string().describe(\"Company name associated with the user\").optional(),\n country: z.string().describe(\"User's country (2-letter ISO code)\").optional(),\n last_name: z.string().describe(\"User's last name\").optional(),\n first_name: z.string().describe(\"User's first name\").optional(),\n custom_fields: z.record(z.string(), z.unknown()).describe(\"Custom fields mapping using field IDs, e.g. {'3': 'value'}\").optional(),\n}).describe(\"Request parameters for adding a new user in Planyo.\");\nexport const PlanyoOnlineBookingAddUserOutput = z.object({\n user_id: z.number().int().describe(\"ID of the newly created user\").nullable(),\n result_code: z.number().int().describe(\"Result code returned by the API (0 indicates success)\").nullable(),\n result_message: z.string().describe(\"Message describing the result of the operation\").nullable(),\n}).passthrough().describe(\"Response from Planyo after adding a new user.\");\n\nexport const planyoOnlineBookingAddUser = action(\"PLANYO_ONLINE_BOOKING_ADD_USER\", {\n slug: \"planyo_online_booking-add-user\",\n name: \"Add User\",\n description: \"Tool to add a new user in Planyo. Use when you need to create a user account after gathering user details.\",\n input: PlanyoOnlineBookingAddUserInput,\n output: PlanyoOnlineBookingAddUserOutput,\n});\n"],"mappings":";;AA0BA,MAAa,6BAA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AAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;EACzG,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACjG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAOhB;AACV,CAAC"}
|
|
@@ -20,7 +20,7 @@ const PlanyoOnlineBookingGetAddonList_AddonSchema = zod.z.object({
|
|
|
20
20
|
const PlanyoOnlineBookingGetAddonListOutput = zod.z.object({
|
|
21
21
|
count: zod.z.number().int().describe("Total number of add-ons returned").nullable(),
|
|
22
22
|
addons: zod.z.array(PlanyoOnlineBookingGetAddonList_AddonSchema).describe("List of add-ons matching the query")
|
|
23
|
-
}).describe("The response returned when listing add-ons.");
|
|
23
|
+
}).passthrough().describe("The response returned when listing add-ons.");
|
|
24
24
|
const planyoOnlineBookingGetAddonList = require_action.action("PLANYO_ONLINE_BOOKING_GET_ADDON_LIST", {
|
|
25
25
|
slug: "planyo_online_booking-get-addon-list",
|
|
26
26
|
name: "Get Add-on List",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-addon-list.cjs","names":["z","action"],"sources":["../../src/actions/get-addon-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlanyoOnlineBookingGetAddonListInput = z.object({\n site_id: z.number().int().describe(\"Site ID to query; deduced from api_key or resource_id if omitted\").optional(),\n user_id: z.number().int().describe(\"Numeric user ID for authentication; alternative to login_name/password\").optional(),\n password: z.string().describe(\"Password for authentication; required if api_key is not provided\").optional(),\n admin_mode: z.boolean().describe(\"If true, list add-ons in admin mode when no resource_id is given\").optional(),\n login_name: z.string().describe(\"Username for authentication; required if api_key is not provided\").optional(),\n session_id: z.string().describe(\"Session token for authentication; alternative to login_name/password\").optional(),\n resource_id: z.number().int().describe(\"Resource ID for which to retrieve add-ons; omit to fetch all site-wide add-ons\").optional(),\n}).describe(\"Request model for fetching add-on list. Provide authentication parameters if API key is not used.\");\nconst PlanyoOnlineBookingGetAddonList_AddonSchema = z.object({\n name: z.string().describe(\"Name of the add-on\").nullable(),\n addon_id: z.number().int().describe(\"Unique identifier of the add-on\").nullable(),\n price_expr: z.string().describe(\"Pricing expression for the add-on\").nullable(),\n description: z.string().describe(\"Description of the add-on\").nullable().optional(),\n resource_id: z.number().int().describe(\"ID of the resource this add-on belongs to\").nullable(),\n}).passthrough().describe(\"Schema for a single add-on item returned by the API.\");\nexport const PlanyoOnlineBookingGetAddonListOutput = z.object({\n count: z.number().int().describe(\"Total number of add-ons returned\").nullable(),\n addons: z.array(PlanyoOnlineBookingGetAddonList_AddonSchema).describe(\"List of add-ons matching the query\"),\n}).describe(\"The response returned when listing add-ons.\");\n\nexport const planyoOnlineBookingGetAddonList = action(\"PLANYO_ONLINE_BOOKING_GET_ADDON_LIST\", {\n slug: \"planyo_online_booking-get-addon-list\",\n name: \"Get Add-on List\",\n description: \"Tool to retrieve a list of add-ons. Use when you need to inspect or manage add-ons for a specific resource or across the entire site after setting up credentials.\",\n input: PlanyoOnlineBookingGetAddonListInput,\n output: PlanyoOnlineBookingGetAddonListOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uCAAuCA,IAAAA,EAAE,OAAO;CAC3D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CAChH,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;CACtH,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CAC3G,YAAYA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CAC9G,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CAC7G,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;CACjH,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS;AACpI,CAAC,CAAC,CAAC,SAAS,mGAAmG;AAC/G,MAAM,8CAA8CA,IAAAA,EAAE,OAAO;CAC3D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;CACzD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAChF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAC9E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sDAAsD;AAChF,MAAa,wCAAwCA,IAAAA,EAAE,OAAO;CAC5D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAC9E,QAAQA,IAAAA,EAAE,MAAM,2CAA2C,CAAC,CAAC,SAAS,oCAAoC;AAC5G,CAAC,CAAC,CAAC,SAAS,6CAA6C;
|
|
1
|
+
{"version":3,"file":"get-addon-list.cjs","names":["z","action"],"sources":["../../src/actions/get-addon-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlanyoOnlineBookingGetAddonListInput = z.object({\n site_id: z.number().int().describe(\"Site ID to query; deduced from api_key or resource_id if omitted\").optional(),\n user_id: z.number().int().describe(\"Numeric user ID for authentication; alternative to login_name/password\").optional(),\n password: z.string().describe(\"Password for authentication; required if api_key is not provided\").optional(),\n admin_mode: z.boolean().describe(\"If true, list add-ons in admin mode when no resource_id is given\").optional(),\n login_name: z.string().describe(\"Username for authentication; required if api_key is not provided\").optional(),\n session_id: z.string().describe(\"Session token for authentication; alternative to login_name/password\").optional(),\n resource_id: z.number().int().describe(\"Resource ID for which to retrieve add-ons; omit to fetch all site-wide add-ons\").optional(),\n}).describe(\"Request model for fetching add-on list. Provide authentication parameters if API key is not used.\");\nconst PlanyoOnlineBookingGetAddonList_AddonSchema = z.object({\n name: z.string().describe(\"Name of the add-on\").nullable(),\n addon_id: z.number().int().describe(\"Unique identifier of the add-on\").nullable(),\n price_expr: z.string().describe(\"Pricing expression for the add-on\").nullable(),\n description: z.string().describe(\"Description of the add-on\").nullable().optional(),\n resource_id: z.number().int().describe(\"ID of the resource this add-on belongs to\").nullable(),\n}).passthrough().describe(\"Schema for a single add-on item returned by the API.\");\nexport const PlanyoOnlineBookingGetAddonListOutput = z.object({\n count: z.number().int().describe(\"Total number of add-ons returned\").nullable(),\n addons: z.array(PlanyoOnlineBookingGetAddonList_AddonSchema).describe(\"List of add-ons matching the query\"),\n}).passthrough().describe(\"The response returned when listing add-ons.\");\n\nexport const planyoOnlineBookingGetAddonList = action(\"PLANYO_ONLINE_BOOKING_GET_ADDON_LIST\", {\n slug: \"planyo_online_booking-get-addon-list\",\n name: \"Get Add-on List\",\n description: \"Tool to retrieve a list of add-ons. Use when you need to inspect or manage add-ons for a specific resource or across the entire site after setting up credentials.\",\n input: PlanyoOnlineBookingGetAddonListInput,\n output: PlanyoOnlineBookingGetAddonListOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uCAAuCA,IAAAA,EAAE,OAAO;CAC3D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CAChH,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAA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AC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAA6C;AAEvE,MAAa,kCAAkCC,eAAAA,OAAO,wCAAwC;CAC5F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -19,7 +19,7 @@ declare const PlanyoOnlineBookingGetAddonListOutput: z.ZodObject<{
|
|
|
19
19
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
20
|
resource_id: z.ZodNullable<z.ZodNumber>;
|
|
21
21
|
}, z.core.$loose>>;
|
|
22
|
-
}, z.core.$
|
|
22
|
+
}, z.core.$loose>;
|
|
23
23
|
declare const planyoOnlineBookingGetAddonList: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
24
24
|
site_id?: number | undefined;
|
|
25
25
|
user_id?: number | undefined;
|
|
@@ -19,7 +19,7 @@ declare const PlanyoOnlineBookingGetAddonListOutput: z.ZodObject<{
|
|
|
19
19
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
20
|
resource_id: z.ZodNullable<z.ZodNumber>;
|
|
21
21
|
}, z.core.$loose>>;
|
|
22
|
-
}, z.core.$
|
|
22
|
+
}, z.core.$loose>;
|
|
23
23
|
declare const planyoOnlineBookingGetAddonList: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
24
24
|
site_id?: number | undefined;
|
|
25
25
|
user_id?: number | undefined;
|
|
@@ -25,7 +25,7 @@ const planyoOnlineBookingGetAddonList = action("PLANYO_ONLINE_BOOKING_GET_ADDON_
|
|
|
25
25
|
output: z.object({
|
|
26
26
|
count: z.number().int().describe("Total number of add-ons returned").nullable(),
|
|
27
27
|
addons: z.array(PlanyoOnlineBookingGetAddonList_AddonSchema).describe("List of add-ons matching the query")
|
|
28
|
-
}).describe("The response returned when listing add-ons.")
|
|
28
|
+
}).passthrough().describe("The response returned when listing add-ons.")
|
|
29
29
|
});
|
|
30
30
|
//#endregion
|
|
31
31
|
export { planyoOnlineBookingGetAddonList };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-addon-list.mjs","names":[],"sources":["../../src/actions/get-addon-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlanyoOnlineBookingGetAddonListInput = z.object({\n site_id: z.number().int().describe(\"Site ID to query; deduced from api_key or resource_id if omitted\").optional(),\n user_id: z.number().int().describe(\"Numeric user ID for authentication; alternative to login_name/password\").optional(),\n password: z.string().describe(\"Password for authentication; required if api_key is not provided\").optional(),\n admin_mode: z.boolean().describe(\"If true, list add-ons in admin mode when no resource_id is given\").optional(),\n login_name: z.string().describe(\"Username for authentication; required if api_key is not provided\").optional(),\n session_id: z.string().describe(\"Session token for authentication; alternative to login_name/password\").optional(),\n resource_id: z.number().int().describe(\"Resource ID for which to retrieve add-ons; omit to fetch all site-wide add-ons\").optional(),\n}).describe(\"Request model for fetching add-on list. Provide authentication parameters if API key is not used.\");\nconst PlanyoOnlineBookingGetAddonList_AddonSchema = z.object({\n name: z.string().describe(\"Name of the add-on\").nullable(),\n addon_id: z.number().int().describe(\"Unique identifier of the add-on\").nullable(),\n price_expr: z.string().describe(\"Pricing expression for the add-on\").nullable(),\n description: z.string().describe(\"Description of the add-on\").nullable().optional(),\n resource_id: z.number().int().describe(\"ID of the resource this add-on belongs to\").nullable(),\n}).passthrough().describe(\"Schema for a single add-on item returned by the API.\");\nexport const PlanyoOnlineBookingGetAddonListOutput = z.object({\n count: z.number().int().describe(\"Total number of add-ons returned\").nullable(),\n addons: z.array(PlanyoOnlineBookingGetAddonList_AddonSchema).describe(\"List of add-ons matching the query\"),\n}).describe(\"The response returned when listing add-ons.\");\n\nexport const planyoOnlineBookingGetAddonList = action(\"PLANYO_ONLINE_BOOKING_GET_ADDON_LIST\", {\n slug: \"planyo_online_booking-get-addon-list\",\n name: \"Get Add-on List\",\n description: \"Tool to retrieve a list of add-ons. Use when you need to inspect or manage add-ons for a specific resource or across the entire site after setting up credentials.\",\n input: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AAM;CACN,aAAa;CACb,OAAO;CACP,QAVmD,EAAE,OAAO;EAC5D,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;EAC9E,QAAQ,EAAE,MAAM,2CAA2C,CAAC,CAAC,SAAS,oCAAoC;CAC5G,CAAC,CAAC,CAAC,SAAS,
|
|
1
|
+
{"version":3,"file":"get-addon-list.mjs","names":[],"sources":["../../src/actions/get-addon-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlanyoOnlineBookingGetAddonListInput = z.object({\n site_id: z.number().int().describe(\"Site ID to query; deduced from api_key or resource_id if omitted\").optional(),\n user_id: z.number().int().describe(\"Numeric user ID for authentication; alternative to login_name/password\").optional(),\n password: z.string().describe(\"Password for authentication; required if api_key is not provided\").optional(),\n admin_mode: z.boolean().describe(\"If true, list add-ons in admin mode when no resource_id is given\").optional(),\n login_name: z.string().describe(\"Username for authentication; required if api_key is not provided\").optional(),\n session_id: z.string().describe(\"Session token for authentication; alternative to login_name/password\").optional(),\n resource_id: z.number().int().describe(\"Resource ID for which to retrieve add-ons; omit to fetch all site-wide add-ons\").optional(),\n}).describe(\"Request model for fetching add-on list. Provide authentication parameters if API key is not used.\");\nconst PlanyoOnlineBookingGetAddonList_AddonSchema = z.object({\n name: z.string().describe(\"Name of the add-on\").nullable(),\n addon_id: z.number().int().describe(\"Unique identifier of the add-on\").nullable(),\n price_expr: z.string().describe(\"Pricing expression for the add-on\").nullable(),\n description: z.string().describe(\"Description of the add-on\").nullable().optional(),\n resource_id: z.number().int().describe(\"ID of the resource this add-on belongs to\").nullable(),\n}).passthrough().describe(\"Schema for a single add-on item returned by the API.\");\nexport const PlanyoOnlineBookingGetAddonListOutput = z.object({\n count: z.number().int().describe(\"Total number of add-ons returned\").nullable(),\n addons: z.array(PlanyoOnlineBookingGetAddonList_AddonSchema).describe(\"List of add-ons matching the query\"),\n}).passthrough().describe(\"The response returned when listing add-ons.\");\n\nexport const planyoOnlineBookingGetAddonList = action(\"PLANYO_ONLINE_BOOKING_GET_ADDON_LIST\", {\n slug: \"planyo_online_booking-get-addon-list\",\n name: \"Get Add-on List\",\n description: \"Tool to retrieve a list of add-ons. Use when you need to inspect or manage add-ons for a specific resource or across the entire site after setting up credentials.\",\n input: PlanyoOnlineBookingGetAddonListInput,\n output: PlanyoOnlineBookingGetAddonListOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uCAAuC,EAAE,OAAO;CAC3D,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CAChH,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;CACtH,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CAC3G,YAAY,EAAE,QAAQ,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CAC9G,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CAC7G,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;CACjH,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS;AACpI,CAAC,CAAC,CAAC,SAAS,mGAAmG;AAC/G,MAAM,8CAA8C,EAAE,OAAO;CAC3D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;CACzD,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAChF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAC9E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sDAAsD;AAMhF,MAAa,kCAAkC,OAAO,wCAAwC;CAC5F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVmD,EAAE,OAAO;EAC5D,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;EAC9E,QAAQ,EAAE,MAAM,2CAA2C,CAAC,CAAC,SAAS,oCAAoC;CAC5G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAOhB;AACV,CAAC"}
|
|
@@ -20,8 +20,8 @@ const PlanyoOnlineBookingGetCouponList_CouponSchema = zod.z.object({
|
|
|
20
20
|
resource_id: zod.z.number().int().describe("Resource ID to which this coupon applies.").nullable(),
|
|
21
21
|
discount_type: zod.z.string().describe("Type of discount ('percent' or 'amount').").nullable(),
|
|
22
22
|
expiration_date: zod.z.string().describe("Expiration date in YYYY-MM-DD format, if any.").nullable().optional()
|
|
23
|
-
}).describe("Represents a coupon in the Planyo system.");
|
|
24
|
-
const PlanyoOnlineBookingGetCouponListOutput = zod.z.object({ coupons: zod.z.array(PlanyoOnlineBookingGetCouponList_CouponSchema).describe("Array of coupon objects returned by Planyo.") }).describe("Response model for GET_COUPON_LIST action.");
|
|
23
|
+
}).passthrough().describe("Represents a coupon in the Planyo system.");
|
|
24
|
+
const PlanyoOnlineBookingGetCouponListOutput = zod.z.object({ coupons: zod.z.array(PlanyoOnlineBookingGetCouponList_CouponSchema).describe("Array of coupon objects returned by Planyo.") }).passthrough().describe("Response model for GET_COUPON_LIST action.");
|
|
25
25
|
const planyoOnlineBookingGetCouponList = require_action.action("PLANYO_ONLINE_BOOKING_GET_COUPON_LIST", {
|
|
26
26
|
slug: "planyo_online_booking-get-coupon-list",
|
|
27
27
|
name: "Get Coupon List",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-coupon-list.cjs","names":["z","action"],"sources":["../../src/actions/get-coupon-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlanyoOnlineBookingGetCouponListInput = z.object({\n page: z.number().int().describe(\"Zero-based page number for pagination. Each page returns up to 5000 coupons. Omit to get the first page.\").optional(),\n site_id: z.number().int().describe(\"ID of the site to fetch coupons for. Required if no resource_id is provided.\").optional(),\n admin_email: z.string().describe(\"Admin email for authentication if required.\").optional(),\n resource_id: z.number().int().describe(\"ID of the resource to filter coupons. If omitted, returns all coupons for the site.\").optional(),\n admin_password: z.string().describe(\"Admin password for authentication if required.\").optional(),\n}).describe(\"Request model for GET_COUPON_LIST action.\");\nconst PlanyoOnlineBookingGetCouponList_CouponSchema = z.object({\n code: z.string().describe(\"The code users must enter to apply this coupon.\").nullable(),\n name: z.string().describe(\"Name of the coupon.\").nullable(),\n used: z.number().int().describe(\"Number of times this coupon has already been used.\").nullable(),\n discount: z.number().describe(\"Discount value (percentage or amount).\").nullable(),\n coupon_id: z.number().int().describe(\"Unique identifier of the coupon.\").nullable(),\n days_valid: z.string().describe(\"Comma-separated weekdays when this coupon can be used (e.g., 'Mon,Wed').\").nullable().optional(),\n max_usages: z.number().int().describe(\"Maximum number of times this coupon may be used.\").nullable(),\n min_amount: z.number().describe(\"Minimum booking total required to apply this coupon.\").nullable().optional(),\n resource_id: z.number().int().describe(\"Resource ID to which this coupon applies.\").nullable(),\n discount_type: z.string().describe(\"Type of discount ('percent' or 'amount').\").nullable(),\n expiration_date: z.string().describe(\"Expiration date in YYYY-MM-DD format, if any.\").nullable().optional(),\n}).describe(\"Represents a coupon in the Planyo system.\");\nexport const PlanyoOnlineBookingGetCouponListOutput = z.object({\n coupons: z.array(PlanyoOnlineBookingGetCouponList_CouponSchema).describe(\"Array of coupon objects returned by Planyo.\"),\n}).describe(\"Response model for GET_COUPON_LIST action.\");\n\nexport const planyoOnlineBookingGetCouponList = action(\"PLANYO_ONLINE_BOOKING_GET_COUPON_LIST\", {\n slug: \"planyo_online_booking-get-coupon-list\",\n name: \"Get Coupon List\",\n description: \"Tool to retrieve a list of coupons. Use when you need to fetch all coupons for a specific resource or the entire site (if no resource_id provided).\",\n input: PlanyoOnlineBookingGetCouponListInput,\n output: PlanyoOnlineBookingGetCouponListOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wCAAwCA,IAAAA,EAAE,OAAO;CAC5D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0GAA0G,CAAC,CAAC,SAAS;CACrJ,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;CAC5H,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CACzF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;CACvI,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;AACjG,CAAC,CAAC,CAAC,SAAS,2CAA2C;AACvD,MAAM,gDAAgDA,IAAAA,EAAE,OAAO;CAC7D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CACtF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC1D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAC/F,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACjF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAClF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChI,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CACnG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAC7F,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACzF,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5G,CAAC,CAAC,CAAC,SAAS,2CAA2C;
|
|
1
|
+
{"version":3,"file":"get-coupon-list.cjs","names":["z","action"],"sources":["../../src/actions/get-coupon-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlanyoOnlineBookingGetCouponListInput = z.object({\n page: z.number().int().describe(\"Zero-based page number for pagination. Each page returns up to 5000 coupons. Omit to get the first page.\").optional(),\n site_id: z.number().int().describe(\"ID of the site to fetch coupons for. Required if no resource_id is provided.\").optional(),\n admin_email: z.string().describe(\"Admin email for authentication if required.\").optional(),\n resource_id: z.number().int().describe(\"ID of the resource to filter coupons. If omitted, returns all coupons for the site.\").optional(),\n admin_password: z.string().describe(\"Admin password for authentication if required.\").optional(),\n}).describe(\"Request model for GET_COUPON_LIST action.\");\nconst PlanyoOnlineBookingGetCouponList_CouponSchema = z.object({\n code: z.string().describe(\"The code users must enter to apply this coupon.\").nullable(),\n name: z.string().describe(\"Name of the coupon.\").nullable(),\n used: z.number().int().describe(\"Number of times this coupon has already been used.\").nullable(),\n discount: z.number().describe(\"Discount value (percentage or amount).\").nullable(),\n coupon_id: z.number().int().describe(\"Unique identifier of the coupon.\").nullable(),\n days_valid: z.string().describe(\"Comma-separated weekdays when this coupon can be used (e.g., 'Mon,Wed').\").nullable().optional(),\n max_usages: z.number().int().describe(\"Maximum number of times this coupon may be used.\").nullable(),\n min_amount: z.number().describe(\"Minimum booking total required to apply this coupon.\").nullable().optional(),\n resource_id: z.number().int().describe(\"Resource ID to which this coupon applies.\").nullable(),\n discount_type: z.string().describe(\"Type of discount ('percent' or 'amount').\").nullable(),\n expiration_date: z.string().describe(\"Expiration date in YYYY-MM-DD format, if any.\").nullable().optional(),\n}).passthrough().describe(\"Represents a coupon in the Planyo system.\");\nexport const PlanyoOnlineBookingGetCouponListOutput = z.object({\n coupons: z.array(PlanyoOnlineBookingGetCouponList_CouponSchema).describe(\"Array of coupon objects returned by Planyo.\"),\n}).passthrough().describe(\"Response model for GET_COUPON_LIST action.\");\n\nexport const planyoOnlineBookingGetCouponList = action(\"PLANYO_ONLINE_BOOKING_GET_COUPON_LIST\", {\n slug: \"planyo_online_booking-get-coupon-list\",\n name: \"Get Coupon List\",\n description: \"Tool to retrieve a list of coupons. Use when you need to fetch all coupons for a specific resource or the entire site (if no resource_id provided).\",\n input: PlanyoOnlineBookingGetCouponListInput,\n output: PlanyoOnlineBookingGetCouponListOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wCAAwCA,IAAAA,EAAE,OAAO;CAC5D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0GAA0G,CAAC,CAAC,SAAS;CACrJ,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;CAC5H,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CACzF,aAAaA,IAAAA,EAAE,OAAO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AY,CAAC,CAAC,SAAS,2CAA2C;AACrE,MAAa,yCAAyCA,IAAAA,EAAE,OAAO,EAC7D,SAASA,IAAAA,EAAE,MAAM,6CAA6C,CAAC,CAAC,SAAS,6CAA6C,EACxH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C;AAEtE,MAAa,mCAAmCC,eAAAA,OAAO,yCAAyC;CAC9F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -21,8 +21,8 @@ declare const PlanyoOnlineBookingGetCouponListOutput: z.ZodObject<{
|
|
|
21
21
|
resource_id: z.ZodNullable<z.ZodNumber>;
|
|
22
22
|
discount_type: z.ZodNullable<z.ZodString>;
|
|
23
23
|
expiration_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
-
}, z.core.$
|
|
25
|
-
}, z.core.$
|
|
24
|
+
}, z.core.$loose>>;
|
|
25
|
+
}, z.core.$loose>;
|
|
26
26
|
declare const planyoOnlineBookingGetCouponList: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
27
27
|
page?: number | undefined;
|
|
28
28
|
site_id?: number | undefined;
|
|
@@ -21,8 +21,8 @@ declare const PlanyoOnlineBookingGetCouponListOutput: z.ZodObject<{
|
|
|
21
21
|
resource_id: z.ZodNullable<z.ZodNumber>;
|
|
22
22
|
discount_type: z.ZodNullable<z.ZodString>;
|
|
23
23
|
expiration_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
-
}, z.core.$
|
|
25
|
-
}, z.core.$
|
|
24
|
+
}, z.core.$loose>>;
|
|
25
|
+
}, z.core.$loose>;
|
|
26
26
|
declare const planyoOnlineBookingGetCouponList: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
27
27
|
page?: number | undefined;
|
|
28
28
|
site_id?: number | undefined;
|
|
@@ -20,13 +20,13 @@ const PlanyoOnlineBookingGetCouponList_CouponSchema = z.object({
|
|
|
20
20
|
resource_id: z.number().int().describe("Resource ID to which this coupon applies.").nullable(),
|
|
21
21
|
discount_type: z.string().describe("Type of discount ('percent' or 'amount').").nullable(),
|
|
22
22
|
expiration_date: z.string().describe("Expiration date in YYYY-MM-DD format, if any.").nullable().optional()
|
|
23
|
-
}).describe("Represents a coupon in the Planyo system.");
|
|
23
|
+
}).passthrough().describe("Represents a coupon in the Planyo system.");
|
|
24
24
|
const planyoOnlineBookingGetCouponList = action("PLANYO_ONLINE_BOOKING_GET_COUPON_LIST", {
|
|
25
25
|
slug: "planyo_online_booking-get-coupon-list",
|
|
26
26
|
name: "Get Coupon List",
|
|
27
27
|
description: "Tool to retrieve a list of coupons. Use when you need to fetch all coupons for a specific resource or the entire site (if no resource_id provided).",
|
|
28
28
|
input: PlanyoOnlineBookingGetCouponListInput,
|
|
29
|
-
output: z.object({ coupons: z.array(PlanyoOnlineBookingGetCouponList_CouponSchema).describe("Array of coupon objects returned by Planyo.") }).describe("Response model for GET_COUPON_LIST action.")
|
|
29
|
+
output: z.object({ coupons: z.array(PlanyoOnlineBookingGetCouponList_CouponSchema).describe("Array of coupon objects returned by Planyo.") }).passthrough().describe("Response model for GET_COUPON_LIST action.")
|
|
30
30
|
});
|
|
31
31
|
//#endregion
|
|
32
32
|
export { planyoOnlineBookingGetCouponList };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-coupon-list.mjs","names":[],"sources":["../../src/actions/get-coupon-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlanyoOnlineBookingGetCouponListInput = z.object({\n page: z.number().int().describe(\"Zero-based page number for pagination. Each page returns up to 5000 coupons. Omit to get the first page.\").optional(),\n site_id: z.number().int().describe(\"ID of the site to fetch coupons for. Required if no resource_id is provided.\").optional(),\n admin_email: z.string().describe(\"Admin email for authentication if required.\").optional(),\n resource_id: z.number().int().describe(\"ID of the resource to filter coupons. If omitted, returns all coupons for the site.\").optional(),\n admin_password: z.string().describe(\"Admin password for authentication if required.\").optional(),\n}).describe(\"Request model for GET_COUPON_LIST action.\");\nconst PlanyoOnlineBookingGetCouponList_CouponSchema = z.object({\n code: z.string().describe(\"The code users must enter to apply this coupon.\").nullable(),\n name: z.string().describe(\"Name of the coupon.\").nullable(),\n used: z.number().int().describe(\"Number of times this coupon has already been used.\").nullable(),\n discount: z.number().describe(\"Discount value (percentage or amount).\").nullable(),\n coupon_id: z.number().int().describe(\"Unique identifier of the coupon.\").nullable(),\n days_valid: z.string().describe(\"Comma-separated weekdays when this coupon can be used (e.g., 'Mon,Wed').\").nullable().optional(),\n max_usages: z.number().int().describe(\"Maximum number of times this coupon may be used.\").nullable(),\n min_amount: z.number().describe(\"Minimum booking total required to apply this coupon.\").nullable().optional(),\n resource_id: z.number().int().describe(\"Resource ID to which this coupon applies.\").nullable(),\n discount_type: z.string().describe(\"Type of discount ('percent' or 'amount').\").nullable(),\n expiration_date: z.string().describe(\"Expiration date in YYYY-MM-DD format, if any.\").nullable().optional(),\n}).describe(\"Represents a coupon in the Planyo system.\");\nexport const PlanyoOnlineBookingGetCouponListOutput = z.object({\n coupons: z.array(PlanyoOnlineBookingGetCouponList_CouponSchema).describe(\"Array of coupon objects returned by Planyo.\"),\n}).describe(\"Response model for GET_COUPON_LIST action.\");\n\nexport const planyoOnlineBookingGetCouponList = action(\"PLANYO_ONLINE_BOOKING_GET_COUPON_LIST\", {\n slug: \"planyo_online_booking-get-coupon-list\",\n name: \"Get Coupon List\",\n description: \"Tool to retrieve a list of coupons. Use when you need to fetch all coupons for a specific resource or the entire site (if no resource_id provided).\",\n input: PlanyoOnlineBookingGetCouponListInput,\n output: PlanyoOnlineBookingGetCouponListOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wCAAwC,EAAE,OAAO;CAC5D,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0GAA0G,CAAC,CAAC,SAAS;CACrJ,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS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C,CAAC,SAAS,2CAA2C;
|
|
1
|
+
{"version":3,"file":"get-coupon-list.mjs","names":[],"sources":["../../src/actions/get-coupon-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlanyoOnlineBookingGetCouponListInput = z.object({\n page: z.number().int().describe(\"Zero-based page number for pagination. Each page returns up to 5000 coupons. Omit to get the first page.\").optional(),\n site_id: z.number().int().describe(\"ID of the site to fetch coupons for. Required if no resource_id is provided.\").optional(),\n admin_email: z.string().describe(\"Admin email for authentication if required.\").optional(),\n resource_id: z.number().int().describe(\"ID of the resource to filter coupons. If omitted, returns all coupons for the site.\").optional(),\n admin_password: z.string().describe(\"Admin password for authentication if required.\").optional(),\n}).describe(\"Request model for GET_COUPON_LIST action.\");\nconst PlanyoOnlineBookingGetCouponList_CouponSchema = z.object({\n code: z.string().describe(\"The code users must enter to apply this coupon.\").nullable(),\n name: z.string().describe(\"Name of the coupon.\").nullable(),\n used: z.number().int().describe(\"Number of times this coupon has already been used.\").nullable(),\n discount: z.number().describe(\"Discount value (percentage or amount).\").nullable(),\n coupon_id: z.number().int().describe(\"Unique identifier of the coupon.\").nullable(),\n days_valid: z.string().describe(\"Comma-separated weekdays when this coupon can be used (e.g., 'Mon,Wed').\").nullable().optional(),\n max_usages: z.number().int().describe(\"Maximum number of times this coupon may be used.\").nullable(),\n min_amount: z.number().describe(\"Minimum booking total required to apply this coupon.\").nullable().optional(),\n resource_id: z.number().int().describe(\"Resource ID to which this coupon applies.\").nullable(),\n discount_type: z.string().describe(\"Type of discount ('percent' or 'amount').\").nullable(),\n expiration_date: z.string().describe(\"Expiration date in YYYY-MM-DD format, if any.\").nullable().optional(),\n}).passthrough().describe(\"Represents a coupon in the Planyo system.\");\nexport const PlanyoOnlineBookingGetCouponListOutput = z.object({\n coupons: z.array(PlanyoOnlineBookingGetCouponList_CouponSchema).describe(\"Array of coupon objects returned by Planyo.\"),\n}).passthrough().describe(\"Response model for GET_COUPON_LIST action.\");\n\nexport const planyoOnlineBookingGetCouponList = action(\"PLANYO_ONLINE_BOOKING_GET_COUPON_LIST\", {\n slug: \"planyo_online_booking-get-coupon-list\",\n name: \"Get Coupon List\",\n description: \"Tool to retrieve a list of coupons. Use when you need to fetch all coupons for a specific resource or the entire site (if no resource_id provided).\",\n input: PlanyoOnlineBookingGetCouponListInput,\n output: PlanyoOnlineBookingGetCouponListOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wCAAwC,EAAE,OAAO;CAC5D,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0GAA0G,CAAC,CAAC,SAAS;CACrJ,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;CAC5H,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CACzF,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;CACvI,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;AACjG,CAAC,CAAC,CAAC,SAAS,2CAA2C;AACvD,MAAM,gDAAgD,EAAE,OAAO;CAC7D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CACtF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC1D,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAC/F,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACjF,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAClF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChI,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CACnG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAC7F,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACzF,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C;AAKrE,MAAa,mCAAmC,OAAO,yCAAyC;CAC9F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAToD,EAAE,OAAO,EAC7D,SAAS,EAAE,MAAM,6CAA6C,CAAC,CAAC,SAAS,6CAA6C,EACxH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAOhB;AACV,CAAC"}
|
|
@@ -17,7 +17,7 @@ const PlanyoOnlineBookingGetResourceAvailabilityInput = zod.z.object({
|
|
|
17
17
|
const PlanyoOnlineBookingGetResourceAvailability_TimePeriodSchema = zod.z.object({
|
|
18
18
|
end_time: zod.z.number().int().describe("End of period as UNIX timestamp").nullable(),
|
|
19
19
|
start_time: zod.z.number().int().describe("Start of period as UNIX timestamp").nullable()
|
|
20
|
-
});
|
|
20
|
+
}).passthrough();
|
|
21
21
|
const PlanyoOnlineBookingGetResourceAvailabilityOutput = zod.z.object({
|
|
22
22
|
count: zod.z.number().int().describe("Number of periods returned").nullable(),
|
|
23
23
|
periods: zod.z.array(PlanyoOnlineBookingGetResourceAvailability_TimePeriodSchema).describe("List of available periods within the requested range"),
|
|
@@ -26,7 +26,7 @@ const PlanyoOnlineBookingGetResourceAvailabilityOutput = zod.z.object({
|
|
|
26
26
|
unavailable_periods: zod.z.array(PlanyoOnlineBookingGetResourceAvailability_TimePeriodSchema).describe("List of unavailable periods within the requested range"),
|
|
27
27
|
max_advance_notice_not_kept: zod.z.boolean().describe("True if maximum advance notice is not satisfied").nullable(),
|
|
28
28
|
min_advance_notice_not_kept: zod.z.boolean().describe("True if minimum advance notice is not satisfied").nullable()
|
|
29
|
-
});
|
|
29
|
+
}).passthrough();
|
|
30
30
|
const planyoOnlineBookingGetResourceAvailability = require_action.action("PLANYO_ONLINE_BOOKING_GET_RESOURCE_AVAILABILITY", {
|
|
31
31
|
slug: "planyo_online_booking-get-resource-availability",
|
|
32
32
|
name: "Get Resource Availability",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-resource-availability.cjs","names":["z","action"],"sources":["../../src/actions/get-resource-availability.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlanyoOnlineBookingGetResourceAvailabilityInput = z.object({\n end_time: z.string().describe(\"End of the interval; will be converted to UNIX timestamp\").optional(),\n quantity: z.number().int().describe(\"Number of units requested\").optional(),\n test_mode: z.union([z.literal(0), z.literal(1)]).describe(\"If set to 1, simulate without creating a reservation\").optional(),\n start_time: z.string().describe(\"Start of the interval; will be converted to UNIX timestamp\").optional(),\n end_user_id: z.number().int().describe(\"End user ID for checking membership or restrictions\").optional(),\n ignore_cart: z.boolean().default(false).describe(\"If true, ignore items in the shopping cart\").optional(),\n resource_id: z.number().int().describe(\"ID of the resource to check availability for\"),\n min_duration: z.number().int().describe(\"Minimum required availability in minutes\").optional(),\n ignore_reservations: z.boolean().default(false).describe(\"If true, ignore existing reservations\").optional(),\n check_specific_slots: z.union([z.literal(0), z.literal(1)]).describe(\"If set to 1, return specific time slots within interval\").optional(),\n preliminary_filtering: z.union([z.literal(0), z.literal(1)]).describe(\"If set to 1, only check restrictions, skip conflict checks\").optional(),\n});\nconst PlanyoOnlineBookingGetResourceAvailability_TimePeriodSchema = z.object({\n end_time: z.number().int().describe(\"End of period as UNIX timestamp\").nullable(),\n start_time: z.number().int().describe(\"Start of period as UNIX timestamp\").nullable(),\n});\nexport const PlanyoOnlineBookingGetResourceAvailabilityOutput = z.object({\n count: z.number().int().describe(\"Number of periods returned\").nullable(),\n periods: z.array(PlanyoOnlineBookingGetResourceAvailability_TimePeriodSchema).describe(\"List of available periods within the requested range\"),\n available: z.boolean().describe(\"Whether the resource is available under the given criteria\").nullable(),\n conflicts: z.array(PlanyoOnlineBookingGetResourceAvailability_TimePeriodSchema).describe(\"List of conflicting periods preventing reservation\"),\n unavailable_periods: z.array(PlanyoOnlineBookingGetResourceAvailability_TimePeriodSchema).describe(\"List of unavailable periods within the requested range\"),\n max_advance_notice_not_kept: z.boolean().describe(\"True if maximum advance notice is not satisfied\").nullable(),\n min_advance_notice_not_kept: z.boolean().describe(\"True if minimum advance notice is not satisfied\").nullable(),\n});\n\nexport const planyoOnlineBookingGetResourceAvailability = action(\"PLANYO_ONLINE_BOOKING_GET_RESOURCE_AVAILABILITY\", {\n slug: \"planyo_online_booking-get-resource-availability\",\n name: \"Get Resource Availability\",\n description: \"Tool to check resource availability within a specified date/time range. Use when validating if a resource can be reserved before creating a reservation.\",\n input: PlanyoOnlineBookingGetResourceAvailabilityInput,\n output: PlanyoOnlineBookingGetResourceAvailabilityOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kDAAkDA,IAAAA,EAAE,OAAO;CACtE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CACnG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAC1E,WAAWA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,QAAQ,CAAC,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAC3H,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACvG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CACvG,aAAaA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACxG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C;CACrF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAC7F,qBAAqBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC3G,sBAAsBA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,QAAQ,CAAC,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CACzI,uBAAuBA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,QAAQ,CAAC,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;AAC/I,CAAC;AACD,MAAM,8DAA8DA,IAAAA,EAAE,OAAO;CAC3E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAChF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;AACtF,CAAC;
|
|
1
|
+
{"version":3,"file":"get-resource-availability.cjs","names":["z","action"],"sources":["../../src/actions/get-resource-availability.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlanyoOnlineBookingGetResourceAvailabilityInput = z.object({\n end_time: z.string().describe(\"End of the interval; will be converted to UNIX timestamp\").optional(),\n quantity: z.number().int().describe(\"Number of units requested\").optional(),\n test_mode: z.union([z.literal(0), z.literal(1)]).describe(\"If set to 1, simulate without creating a reservation\").optional(),\n start_time: z.string().describe(\"Start of the interval; will be converted to UNIX timestamp\").optional(),\n end_user_id: z.number().int().describe(\"End user ID for checking membership or restrictions\").optional(),\n ignore_cart: z.boolean().default(false).describe(\"If true, ignore items in the shopping cart\").optional(),\n resource_id: z.number().int().describe(\"ID of the resource to check availability for\"),\n min_duration: z.number().int().describe(\"Minimum required availability in minutes\").optional(),\n ignore_reservations: z.boolean().default(false).describe(\"If true, ignore existing reservations\").optional(),\n check_specific_slots: z.union([z.literal(0), z.literal(1)]).describe(\"If set to 1, return specific time slots within interval\").optional(),\n preliminary_filtering: z.union([z.literal(0), z.literal(1)]).describe(\"If set to 1, only check restrictions, skip conflict checks\").optional(),\n});\nconst PlanyoOnlineBookingGetResourceAvailability_TimePeriodSchema = z.object({\n end_time: z.number().int().describe(\"End of period as UNIX timestamp\").nullable(),\n start_time: z.number().int().describe(\"Start of period as UNIX timestamp\").nullable(),\n}).passthrough();\nexport const PlanyoOnlineBookingGetResourceAvailabilityOutput = z.object({\n count: z.number().int().describe(\"Number of periods returned\").nullable(),\n periods: z.array(PlanyoOnlineBookingGetResourceAvailability_TimePeriodSchema).describe(\"List of available periods within the requested range\"),\n available: z.boolean().describe(\"Whether the resource is available under the given criteria\").nullable(),\n conflicts: z.array(PlanyoOnlineBookingGetResourceAvailability_TimePeriodSchema).describe(\"List of conflicting periods preventing reservation\"),\n unavailable_periods: z.array(PlanyoOnlineBookingGetResourceAvailability_TimePeriodSchema).describe(\"List of unavailable periods within the requested range\"),\n max_advance_notice_not_kept: z.boolean().describe(\"True if maximum advance notice is not satisfied\").nullable(),\n min_advance_notice_not_kept: z.boolean().describe(\"True if minimum advance notice is not satisfied\").nullable(),\n}).passthrough();\n\nexport const planyoOnlineBookingGetResourceAvailability = action(\"PLANYO_ONLINE_BOOKING_GET_RESOURCE_AVAILABILITY\", {\n slug: \"planyo_online_booking-get-resource-availability\",\n name: \"Get Resource Availability\",\n description: \"Tool to check resource availability within a specified date/time range. Use when validating if a resource can be reserved before creating a reservation.\",\n input: PlanyoOnlineBookingGetResourceAvailabilityInput,\n output: PlanyoOnlineBookingGetResourceAvailabilityOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kDAAkDA,IAAAA,EAAE,OAAO;CACtE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CACnG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAC1E,WAAWA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,QAAQ,CAAC,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAC3H,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACvG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CACvG,aAAaA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACxG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C;CACrF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAC7F,qBAAqBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SA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AA,OAAO,mDAAmD;CAClH,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -19,19 +19,19 @@ declare const PlanyoOnlineBookingGetResourceAvailabilityOutput: z.ZodObject<{
|
|
|
19
19
|
periods: z.ZodArray<z.ZodObject<{
|
|
20
20
|
end_time: z.ZodNullable<z.ZodNumber>;
|
|
21
21
|
start_time: z.ZodNullable<z.ZodNumber>;
|
|
22
|
-
}, z.core.$
|
|
22
|
+
}, z.core.$loose>>;
|
|
23
23
|
available: z.ZodNullable<z.ZodBoolean>;
|
|
24
24
|
conflicts: z.ZodArray<z.ZodObject<{
|
|
25
25
|
end_time: z.ZodNullable<z.ZodNumber>;
|
|
26
26
|
start_time: z.ZodNullable<z.ZodNumber>;
|
|
27
|
-
}, z.core.$
|
|
27
|
+
}, z.core.$loose>>;
|
|
28
28
|
unavailable_periods: z.ZodArray<z.ZodObject<{
|
|
29
29
|
end_time: z.ZodNullable<z.ZodNumber>;
|
|
30
30
|
start_time: z.ZodNullable<z.ZodNumber>;
|
|
31
|
-
}, z.core.$
|
|
31
|
+
}, z.core.$loose>>;
|
|
32
32
|
max_advance_notice_not_kept: z.ZodNullable<z.ZodBoolean>;
|
|
33
33
|
min_advance_notice_not_kept: z.ZodNullable<z.ZodBoolean>;
|
|
34
|
-
}, z.core.$
|
|
34
|
+
}, z.core.$loose>;
|
|
35
35
|
declare const planyoOnlineBookingGetResourceAvailability: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
36
36
|
resource_id: number;
|
|
37
37
|
end_time?: string | undefined;
|
|
@@ -19,19 +19,19 @@ declare const PlanyoOnlineBookingGetResourceAvailabilityOutput: z.ZodObject<{
|
|
|
19
19
|
periods: z.ZodArray<z.ZodObject<{
|
|
20
20
|
end_time: z.ZodNullable<z.ZodNumber>;
|
|
21
21
|
start_time: z.ZodNullable<z.ZodNumber>;
|
|
22
|
-
}, z.core.$
|
|
22
|
+
}, z.core.$loose>>;
|
|
23
23
|
available: z.ZodNullable<z.ZodBoolean>;
|
|
24
24
|
conflicts: z.ZodArray<z.ZodObject<{
|
|
25
25
|
end_time: z.ZodNullable<z.ZodNumber>;
|
|
26
26
|
start_time: z.ZodNullable<z.ZodNumber>;
|
|
27
|
-
}, z.core.$
|
|
27
|
+
}, z.core.$loose>>;
|
|
28
28
|
unavailable_periods: z.ZodArray<z.ZodObject<{
|
|
29
29
|
end_time: z.ZodNullable<z.ZodNumber>;
|
|
30
30
|
start_time: z.ZodNullable<z.ZodNumber>;
|
|
31
|
-
}, z.core.$
|
|
31
|
+
}, z.core.$loose>>;
|
|
32
32
|
max_advance_notice_not_kept: z.ZodNullable<z.ZodBoolean>;
|
|
33
33
|
min_advance_notice_not_kept: z.ZodNullable<z.ZodBoolean>;
|
|
34
|
-
}, z.core.$
|
|
34
|
+
}, z.core.$loose>;
|
|
35
35
|
declare const planyoOnlineBookingGetResourceAvailability: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
36
36
|
resource_id: number;
|
|
37
37
|
end_time?: string | undefined;
|
|
@@ -17,7 +17,7 @@ const PlanyoOnlineBookingGetResourceAvailabilityInput = z.object({
|
|
|
17
17
|
const PlanyoOnlineBookingGetResourceAvailability_TimePeriodSchema = z.object({
|
|
18
18
|
end_time: z.number().int().describe("End of period as UNIX timestamp").nullable(),
|
|
19
19
|
start_time: z.number().int().describe("Start of period as UNIX timestamp").nullable()
|
|
20
|
-
});
|
|
20
|
+
}).passthrough();
|
|
21
21
|
const planyoOnlineBookingGetResourceAvailability = action("PLANYO_ONLINE_BOOKING_GET_RESOURCE_AVAILABILITY", {
|
|
22
22
|
slug: "planyo_online_booking-get-resource-availability",
|
|
23
23
|
name: "Get Resource Availability",
|
|
@@ -31,7 +31,7 @@ const planyoOnlineBookingGetResourceAvailability = action("PLANYO_ONLINE_BOOKING
|
|
|
31
31
|
unavailable_periods: z.array(PlanyoOnlineBookingGetResourceAvailability_TimePeriodSchema).describe("List of unavailable periods within the requested range"),
|
|
32
32
|
max_advance_notice_not_kept: z.boolean().describe("True if maximum advance notice is not satisfied").nullable(),
|
|
33
33
|
min_advance_notice_not_kept: z.boolean().describe("True if minimum advance notice is not satisfied").nullable()
|
|
34
|
-
})
|
|
34
|
+
}).passthrough()
|
|
35
35
|
});
|
|
36
36
|
//#endregion
|
|
37
37
|
export { planyoOnlineBookingGetResourceAvailability };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-resource-availability.mjs","names":[],"sources":["../../src/actions/get-resource-availability.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlanyoOnlineBookingGetResourceAvailabilityInput = z.object({\n end_time: z.string().describe(\"End of the interval; will be converted to UNIX timestamp\").optional(),\n quantity: z.number().int().describe(\"Number of units requested\").optional(),\n test_mode: z.union([z.literal(0), z.literal(1)]).describe(\"If set to 1, simulate without creating a reservation\").optional(),\n start_time: z.string().describe(\"Start of the interval; will be converted to UNIX timestamp\").optional(),\n end_user_id: z.number().int().describe(\"End user ID for checking membership or restrictions\").optional(),\n ignore_cart: z.boolean().default(false).describe(\"If true, ignore items in the shopping cart\").optional(),\n resource_id: z.number().int().describe(\"ID of the resource to check availability for\"),\n min_duration: z.number().int().describe(\"Minimum required availability in minutes\").optional(),\n ignore_reservations: z.boolean().default(false).describe(\"If true, ignore existing reservations\").optional(),\n check_specific_slots: z.union([z.literal(0), z.literal(1)]).describe(\"If set to 1, return specific time slots within interval\").optional(),\n preliminary_filtering: z.union([z.literal(0), z.literal(1)]).describe(\"If set to 1, only check restrictions, skip conflict checks\").optional(),\n});\nconst PlanyoOnlineBookingGetResourceAvailability_TimePeriodSchema = z.object({\n end_time: z.number().int().describe(\"End of period as UNIX timestamp\").nullable(),\n start_time: z.number().int().describe(\"Start of period as UNIX timestamp\").nullable(),\n});\nexport const PlanyoOnlineBookingGetResourceAvailabilityOutput = z.object({\n count: z.number().int().describe(\"Number of periods returned\").nullable(),\n periods: z.array(PlanyoOnlineBookingGetResourceAvailability_TimePeriodSchema).describe(\"List of available periods within the requested range\"),\n available: z.boolean().describe(\"Whether the resource is available under the given criteria\").nullable(),\n conflicts: z.array(PlanyoOnlineBookingGetResourceAvailability_TimePeriodSchema).describe(\"List of conflicting periods preventing reservation\"),\n unavailable_periods: z.array(PlanyoOnlineBookingGetResourceAvailability_TimePeriodSchema).describe(\"List of unavailable periods within the requested range\"),\n max_advance_notice_not_kept: z.boolean().describe(\"True if maximum advance notice is not satisfied\").nullable(),\n min_advance_notice_not_kept: z.boolean().describe(\"True if minimum advance notice is not satisfied\").nullable(),\n});\n\nexport const planyoOnlineBookingGetResourceAvailability = action(\"PLANYO_ONLINE_BOOKING_GET_RESOURCE_AVAILABILITY\", {\n slug: \"planyo_online_booking-get-resource-availability\",\n name: \"Get Resource Availability\",\n description: \"Tool to check resource availability within a specified date/time range. Use when validating if a resource can be reserved before creating a reservation.\",\n input: PlanyoOnlineBookingGetResourceAvailabilityInput,\n output: PlanyoOnlineBookingGetResourceAvailabilityOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kDAAkD,EAAE,OAAO;CACtE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CACnG,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAC1E,WAAW,EAAE,MAAM,CAAC,EAAE,QAAQ,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAC3H,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACvG,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CACvG,aAAa,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACxG,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C;CACrF,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAC7F,qBAAqB,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC3G,sBAAsB,EAAE,MAAM,CAAC,EAAE,QAAQ,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CACzI,uBAAuB,EAAE,MAAM,CAAC,EAAE,QAAQ,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;AAC/I,CAAC;AACD,MAAM,8DAA8D,EAAE,OAAO;CAC3E,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAChF,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;AACtF,CAAC;
|
|
1
|
+
{"version":3,"file":"get-resource-availability.mjs","names":[],"sources":["../../src/actions/get-resource-availability.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlanyoOnlineBookingGetResourceAvailabilityInput = z.object({\n end_time: z.string().describe(\"End of the interval; will be converted to UNIX timestamp\").optional(),\n quantity: z.number().int().describe(\"Number of units requested\").optional(),\n test_mode: z.union([z.literal(0), z.literal(1)]).describe(\"If set to 1, simulate without creating a reservation\").optional(),\n start_time: z.string().describe(\"Start of the interval; will be converted to UNIX timestamp\").optional(),\n end_user_id: z.number().int().describe(\"End user ID for checking membership or restrictions\").optional(),\n ignore_cart: z.boolean().default(false).describe(\"If true, ignore items in the shopping cart\").optional(),\n resource_id: z.number().int().describe(\"ID of the resource to check availability for\"),\n min_duration: z.number().int().describe(\"Minimum required availability in minutes\").optional(),\n ignore_reservations: z.boolean().default(false).describe(\"If true, ignore existing reservations\").optional(),\n check_specific_slots: z.union([z.literal(0), z.literal(1)]).describe(\"If set to 1, return specific time slots within interval\").optional(),\n preliminary_filtering: z.union([z.literal(0), z.literal(1)]).describe(\"If set to 1, only check restrictions, skip conflict checks\").optional(),\n});\nconst PlanyoOnlineBookingGetResourceAvailability_TimePeriodSchema = z.object({\n end_time: z.number().int().describe(\"End of period as UNIX timestamp\").nullable(),\n start_time: z.number().int().describe(\"Start of period as UNIX timestamp\").nullable(),\n}).passthrough();\nexport const PlanyoOnlineBookingGetResourceAvailabilityOutput = z.object({\n count: z.number().int().describe(\"Number of periods returned\").nullable(),\n periods: z.array(PlanyoOnlineBookingGetResourceAvailability_TimePeriodSchema).describe(\"List of available periods within the requested range\"),\n available: z.boolean().describe(\"Whether the resource is available under the given criteria\").nullable(),\n conflicts: z.array(PlanyoOnlineBookingGetResourceAvailability_TimePeriodSchema).describe(\"List of conflicting periods preventing reservation\"),\n unavailable_periods: z.array(PlanyoOnlineBookingGetResourceAvailability_TimePeriodSchema).describe(\"List of unavailable periods within the requested range\"),\n max_advance_notice_not_kept: z.boolean().describe(\"True if maximum advance notice is not satisfied\").nullable(),\n min_advance_notice_not_kept: z.boolean().describe(\"True if minimum advance notice is not satisfied\").nullable(),\n}).passthrough();\n\nexport const planyoOnlineBookingGetResourceAvailability = action(\"PLANYO_ONLINE_BOOKING_GET_RESOURCE_AVAILABILITY\", {\n slug: \"planyo_online_booking-get-resource-availability\",\n name: \"Get Resource Availability\",\n description: \"Tool to check resource availability within a specified date/time range. Use when validating if a resource can be reserved before creating a reservation.\",\n input: PlanyoOnlineBookingGetResourceAvailabilityInput,\n output: PlanyoOnlineBookingGetResourceAvailabilityOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kDAAkD,EAAE,OAAO;CACtE,UAAU,EAAE,OAAO,CAAC,CAAC,SAA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C,SAAS;AACtF,CAAC,CAAC,CAAC,YAAY;AAWf,MAAa,6CAA6C,OAAO,mDAAmD;CAClH,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAf8D,EAAE,OAAO;EACvE,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;EACxE,SAAS,EAAE,MAAM,2DAA2D,CAAC,CAAC,SAAS,sDAAsD;EAC7I,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;EACvG,WAAW,EAAE,MAAM,2DAA2D,CAAC,CAAC,SAAS,oDAAoD;EAC7I,qBAAqB,EAAE,MAAM,2DAA2D,CAAC,CAAC,SAAS,wDAAwD;EAC3J,6BAA6B,EAAE,QAAQ,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;EAC9G,6BAA6B,EAAE,QAAQ,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAChH,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
|
|
@@ -15,8 +15,8 @@ const PlanyoOnlineBookingGetResourceBlackouts_BlackoutSchema = zod.z.object({
|
|
|
15
15
|
description: zod.z.string().describe("Description of the blackout.").nullable(),
|
|
16
16
|
resource_id: zod.z.number().int().describe("ID of the resource associated with the blackout.").nullable(),
|
|
17
17
|
creation_time: zod.z.number().int().describe("UNIX timestamp when the blackout was created.").nullable()
|
|
18
|
-
}).describe("Represents a blackout period where the resource is unavailable.");
|
|
19
|
-
const PlanyoOnlineBookingGetResourceBlackoutsOutput = zod.z.object({ blackouts: zod.z.array(PlanyoOnlineBookingGetResourceBlackouts_BlackoutSchema).describe("List of blackout periods for the requested resource.") }).describe("Response model for GET_RESOURCE_BLACKOUTS action.");
|
|
18
|
+
}).passthrough().describe("Represents a blackout period where the resource is unavailable.");
|
|
19
|
+
const PlanyoOnlineBookingGetResourceBlackoutsOutput = zod.z.object({ blackouts: zod.z.array(PlanyoOnlineBookingGetResourceBlackouts_BlackoutSchema).describe("List of blackout periods for the requested resource.") }).passthrough().describe("Response model for GET_RESOURCE_BLACKOUTS action.");
|
|
20
20
|
const planyoOnlineBookingGetResourceBlackouts = require_action.action("PLANYO_ONLINE_BOOKING_GET_RESOURCE_BLACKOUTS", {
|
|
21
21
|
slug: "planyo_online_booking-get-resource-blackouts",
|
|
22
22
|
name: "Get Resource Blackouts",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-resource-blackouts.cjs","names":["z","action"],"sources":["../../src/actions/get-resource-blackouts.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlanyoOnlineBookingGetResourceBlackoutsInput = z.object({\n end_time: z.number().int().describe(\"UNIX timestamp to return blackouts up to this time (inclusive).\").optional(),\n start_time: z.number().int().describe(\"UNIX timestamp to return blackouts starting from this time (inclusive).\").optional(),\n admin_email: z.string().describe(\"Admin email for authentication, if required.\").optional(),\n resource_id: z.number().int().describe(\"ID of the resource to retrieve blackouts for.\"),\n admin_password: z.string().describe(\"Password for the admin email, if required.\").optional(),\n}).describe(\"Request model for GET_RESOURCE_BLACKOUTS action.\");\nconst PlanyoOnlineBookingGetResourceBlackouts_BlackoutSchema = z.object({\n end_time: z.number().int().describe(\"UNIX timestamp when blackout ends.\").nullable(),\n start_time: z.number().int().describe(\"UNIX timestamp when blackout starts.\").nullable(),\n blackout_id: z.number().int().describe(\"Unique identifier of the blackout.\").nullable(),\n description: z.string().describe(\"Description of the blackout.\").nullable(),\n resource_id: z.number().int().describe(\"ID of the resource associated with the blackout.\").nullable(),\n creation_time: z.number().int().describe(\"UNIX timestamp when the blackout was created.\").nullable(),\n}).describe(\"Represents a blackout period where the resource is unavailable.\");\nexport const PlanyoOnlineBookingGetResourceBlackoutsOutput = z.object({\n blackouts: z.array(PlanyoOnlineBookingGetResourceBlackouts_BlackoutSchema).describe(\"List of blackout periods for the requested resource.\"),\n}).describe(\"Response model for GET_RESOURCE_BLACKOUTS action.\");\n\nexport const planyoOnlineBookingGetResourceBlackouts = action(\"PLANYO_ONLINE_BOOKING_GET_RESOURCE_BLACKOUTS\", {\n slug: \"planyo_online_booking-get-resource-blackouts\",\n name: \"Get Resource Blackouts\",\n description: \"Tool to fetch blackout periods for a resource. Use when determining unavailable timeslots before booking.\",\n input: PlanyoOnlineBookingGetResourceBlackoutsInput,\n output: PlanyoOnlineBookingGetResourceBlackoutsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+CAA+CA,IAAAA,EAAE,OAAO;CACnE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CAChH,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;CAC1H,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CAC1F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C;CACtF,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;AAC7F,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAC9D,MAAM,yDAAyDA,IAAAA,EAAE,OAAO;CACtE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACnF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CACvF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACtF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CAC1E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CACpG,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;AACrG,CAAC,CAAC,CAAC,SAAS,iEAAiE;
|
|
1
|
+
{"version":3,"file":"get-resource-blackouts.cjs","names":["z","action"],"sources":["../../src/actions/get-resource-blackouts.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlanyoOnlineBookingGetResourceBlackoutsInput = z.object({\n end_time: z.number().int().describe(\"UNIX timestamp to return blackouts up to this time (inclusive).\").optional(),\n start_time: z.number().int().describe(\"UNIX timestamp to return blackouts starting from this time (inclusive).\").optional(),\n admin_email: z.string().describe(\"Admin email for authentication, if required.\").optional(),\n resource_id: z.number().int().describe(\"ID of the resource to retrieve blackouts for.\"),\n admin_password: z.string().describe(\"Password for the admin email, if required.\").optional(),\n}).describe(\"Request model for GET_RESOURCE_BLACKOUTS action.\");\nconst PlanyoOnlineBookingGetResourceBlackouts_BlackoutSchema = z.object({\n end_time: z.number().int().describe(\"UNIX timestamp when blackout ends.\").nullable(),\n start_time: z.number().int().describe(\"UNIX timestamp when blackout starts.\").nullable(),\n blackout_id: z.number().int().describe(\"Unique identifier of the blackout.\").nullable(),\n description: z.string().describe(\"Description of the blackout.\").nullable(),\n resource_id: z.number().int().describe(\"ID of the resource associated with the blackout.\").nullable(),\n creation_time: z.number().int().describe(\"UNIX timestamp when the blackout was created.\").nullable(),\n}).passthrough().describe(\"Represents a blackout period where the resource is unavailable.\");\nexport const PlanyoOnlineBookingGetResourceBlackoutsOutput = z.object({\n blackouts: z.array(PlanyoOnlineBookingGetResourceBlackouts_BlackoutSchema).describe(\"List of blackout periods for the requested resource.\"),\n}).passthrough().describe(\"Response model for GET_RESOURCE_BLACKOUTS action.\");\n\nexport const planyoOnlineBookingGetResourceBlackouts = action(\"PLANYO_ONLINE_BOOKING_GET_RESOURCE_BLACKOUTS\", {\n slug: \"planyo_online_booking-get-resource-blackouts\",\n name: \"Get Resource Blackouts\",\n description: \"Tool to fetch blackout periods for a resource. Use when determining unavailable timeslots before booking.\",\n input: PlanyoOnlineBookingGetResourceBlackoutsInput,\n output: PlanyoOnlineBookingGetResourceBlackoutsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+CAA+CA,IAAAA,EAAE,OAAO;CACnE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CAChH,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;CAC1H,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CAC1F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C;CACtF,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;AAC7F,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAC9D,MAAM,yDAAyDA,IAAAA,EAAE,OAAO;CACtE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACnF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CACvF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACtF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CAC1E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CACpG,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;AACrG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iEAAiE;AAC3F,MAAa,gDAAgDA,IAAAA,EAAE,OAAO,EACpE,WAAWA,IAAAA,EAAE,MAAM,sDAAsD,CAAC,CAAC,SAAS,sDAAsD,EAC5I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAE7E,MAAa,0CAA0CC,eAAAA,OAAO,gDAAgD;CAC5G,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -16,8 +16,8 @@ declare const PlanyoOnlineBookingGetResourceBlackoutsOutput: z.ZodObject<{
|
|
|
16
16
|
description: z.ZodNullable<z.ZodString>;
|
|
17
17
|
resource_id: z.ZodNullable<z.ZodNumber>;
|
|
18
18
|
creation_time: z.ZodNullable<z.ZodNumber>;
|
|
19
|
-
}, z.core.$
|
|
20
|
-
}, z.core.$
|
|
19
|
+
}, z.core.$loose>>;
|
|
20
|
+
}, z.core.$loose>;
|
|
21
21
|
declare const planyoOnlineBookingGetResourceBlackouts: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
22
22
|
resource_id: number;
|
|
23
23
|
end_time?: number | undefined;
|
|
@@ -16,8 +16,8 @@ declare const PlanyoOnlineBookingGetResourceBlackoutsOutput: z.ZodObject<{
|
|
|
16
16
|
description: z.ZodNullable<z.ZodString>;
|
|
17
17
|
resource_id: z.ZodNullable<z.ZodNumber>;
|
|
18
18
|
creation_time: z.ZodNullable<z.ZodNumber>;
|
|
19
|
-
}, z.core.$
|
|
20
|
-
}, z.core.$
|
|
19
|
+
}, z.core.$loose>>;
|
|
20
|
+
}, z.core.$loose>;
|
|
21
21
|
declare const planyoOnlineBookingGetResourceBlackouts: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
22
22
|
resource_id: number;
|
|
23
23
|
end_time?: number | undefined;
|
|
@@ -15,13 +15,13 @@ const PlanyoOnlineBookingGetResourceBlackouts_BlackoutSchema = z.object({
|
|
|
15
15
|
description: z.string().describe("Description of the blackout.").nullable(),
|
|
16
16
|
resource_id: z.number().int().describe("ID of the resource associated with the blackout.").nullable(),
|
|
17
17
|
creation_time: z.number().int().describe("UNIX timestamp when the blackout was created.").nullable()
|
|
18
|
-
}).describe("Represents a blackout period where the resource is unavailable.");
|
|
18
|
+
}).passthrough().describe("Represents a blackout period where the resource is unavailable.");
|
|
19
19
|
const planyoOnlineBookingGetResourceBlackouts = action("PLANYO_ONLINE_BOOKING_GET_RESOURCE_BLACKOUTS", {
|
|
20
20
|
slug: "planyo_online_booking-get-resource-blackouts",
|
|
21
21
|
name: "Get Resource Blackouts",
|
|
22
22
|
description: "Tool to fetch blackout periods for a resource. Use when determining unavailable timeslots before booking.",
|
|
23
23
|
input: PlanyoOnlineBookingGetResourceBlackoutsInput,
|
|
24
|
-
output: z.object({ blackouts: z.array(PlanyoOnlineBookingGetResourceBlackouts_BlackoutSchema).describe("List of blackout periods for the requested resource.") }).describe("Response model for GET_RESOURCE_BLACKOUTS action.")
|
|
24
|
+
output: z.object({ blackouts: z.array(PlanyoOnlineBookingGetResourceBlackouts_BlackoutSchema).describe("List of blackout periods for the requested resource.") }).passthrough().describe("Response model for GET_RESOURCE_BLACKOUTS action.")
|
|
25
25
|
});
|
|
26
26
|
//#endregion
|
|
27
27
|
export { planyoOnlineBookingGetResourceBlackouts };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-resource-blackouts.mjs","names":[],"sources":["../../src/actions/get-resource-blackouts.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlanyoOnlineBookingGetResourceBlackoutsInput = z.object({\n end_time: z.number().int().describe(\"UNIX timestamp to return blackouts up to this time (inclusive).\").optional(),\n start_time: z.number().int().describe(\"UNIX timestamp to return blackouts starting from this time (inclusive).\").optional(),\n admin_email: z.string().describe(\"Admin email for authentication, if required.\").optional(),\n resource_id: z.number().int().describe(\"ID of the resource to retrieve blackouts for.\"),\n admin_password: z.string().describe(\"Password for the admin email, if required.\").optional(),\n}).describe(\"Request model for GET_RESOURCE_BLACKOUTS action.\");\nconst PlanyoOnlineBookingGetResourceBlackouts_BlackoutSchema = z.object({\n end_time: z.number().int().describe(\"UNIX timestamp when blackout ends.\").nullable(),\n start_time: z.number().int().describe(\"UNIX timestamp when blackout starts.\").nullable(),\n blackout_id: z.number().int().describe(\"Unique identifier of the blackout.\").nullable(),\n description: z.string().describe(\"Description of the blackout.\").nullable(),\n resource_id: z.number().int().describe(\"ID of the resource associated with the blackout.\").nullable(),\n creation_time: z.number().int().describe(\"UNIX timestamp when the blackout was created.\").nullable(),\n}).describe(\"Represents a blackout period where the resource is unavailable.\");\nexport const PlanyoOnlineBookingGetResourceBlackoutsOutput = z.object({\n blackouts: z.array(PlanyoOnlineBookingGetResourceBlackouts_BlackoutSchema).describe(\"List of blackout periods for the requested resource.\"),\n}).describe(\"Response model for GET_RESOURCE_BLACKOUTS action.\");\n\nexport const planyoOnlineBookingGetResourceBlackouts = action(\"PLANYO_ONLINE_BOOKING_GET_RESOURCE_BLACKOUTS\", {\n slug: \"planyo_online_booking-get-resource-blackouts\",\n name: \"Get Resource Blackouts\",\n description: \"Tool to fetch blackout periods for a resource. Use when determining unavailable timeslots before booking.\",\n input: PlanyoOnlineBookingGetResourceBlackoutsInput,\n output: PlanyoOnlineBookingGetResourceBlackoutsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+CAA+C,EAAE,OAAO;CACnE,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CAChH,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;CAC1H,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CAC1F,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C;CACtF,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;AAC7F,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAC9D,MAAM,yDAAyD,EAAE,OAAO;CACtE,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACnF,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CACvF,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACtF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CAC1E,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CACpG,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;AACrG,CAAC,CAAC,CAAC,SAAS,iEAAiE;
|
|
1
|
+
{"version":3,"file":"get-resource-blackouts.mjs","names":[],"sources":["../../src/actions/get-resource-blackouts.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlanyoOnlineBookingGetResourceBlackoutsInput = z.object({\n end_time: z.number().int().describe(\"UNIX timestamp to return blackouts up to this time (inclusive).\").optional(),\n start_time: z.number().int().describe(\"UNIX timestamp to return blackouts starting from this time (inclusive).\").optional(),\n admin_email: z.string().describe(\"Admin email for authentication, if required.\").optional(),\n resource_id: z.number().int().describe(\"ID of the resource to retrieve blackouts for.\"),\n admin_password: z.string().describe(\"Password for the admin email, if required.\").optional(),\n}).describe(\"Request model for GET_RESOURCE_BLACKOUTS action.\");\nconst PlanyoOnlineBookingGetResourceBlackouts_BlackoutSchema = z.object({\n end_time: z.number().int().describe(\"UNIX timestamp when blackout ends.\").nullable(),\n start_time: z.number().int().describe(\"UNIX timestamp when blackout starts.\").nullable(),\n blackout_id: z.number().int().describe(\"Unique identifier of the blackout.\").nullable(),\n description: z.string().describe(\"Description of the blackout.\").nullable(),\n resource_id: z.number().int().describe(\"ID of the resource associated with the blackout.\").nullable(),\n creation_time: z.number().int().describe(\"UNIX timestamp when the blackout was created.\").nullable(),\n}).passthrough().describe(\"Represents a blackout period where the resource is unavailable.\");\nexport const PlanyoOnlineBookingGetResourceBlackoutsOutput = z.object({\n blackouts: z.array(PlanyoOnlineBookingGetResourceBlackouts_BlackoutSchema).describe(\"List of blackout periods for the requested resource.\"),\n}).passthrough().describe(\"Response model for GET_RESOURCE_BLACKOUTS action.\");\n\nexport const planyoOnlineBookingGetResourceBlackouts = action(\"PLANYO_ONLINE_BOOKING_GET_RESOURCE_BLACKOUTS\", {\n slug: \"planyo_online_booking-get-resource-blackouts\",\n name: \"Get Resource Blackouts\",\n description: \"Tool to fetch blackout periods for a resource. Use when determining unavailable timeslots before booking.\",\n input: PlanyoOnlineBookingGetResourceBlackoutsInput,\n output: PlanyoOnlineBookingGetResourceBlackoutsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+CAA+C,EAAE,OAAO;CACnE,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CAChH,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;CAC1H,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CAC1F,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C;CACtF,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;AAC7F,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAC9D,MAAM,yDAAyD,EAAE,OAAO;CACtE,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACnF,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CACvF,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACtF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CAC1E,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CACpG,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;AACrG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iEAAiE;AAK3F,MAAa,0CAA0C,OAAO,gDAAgD;CAC5G,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT2D,EAAE,OAAO,EACpE,WAAW,EAAE,MAAM,sDAAsD,CAAC,CAAC,SAAS,sDAAsD,EAC5I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAOhB;AACV,CAAC"}
|
|
@@ -13,8 +13,8 @@ const PlanyoOnlineBookingGetResourceReviews_ReviewSchema = zod.z.object({
|
|
|
13
13
|
user_id: zod.z.number().int().describe("ID of the user who left the review").nullable(),
|
|
14
14
|
first_name: zod.z.string().describe("First name of the user who left the review").nullable(),
|
|
15
15
|
resource_id: zod.z.number().int().describe("ID of the resource related to the review").nullable()
|
|
16
|
-
}).describe("Schema for a single review returned by the API.");
|
|
17
|
-
const PlanyoOnlineBookingGetResourceReviewsOutput = zod.z.object({ results: zod.z.array(PlanyoOnlineBookingGetResourceReviews_ReviewSchema).describe("List of reviews for the given resource") }).describe("Response model for GET_RESOURCE_REVIEWS action.");
|
|
16
|
+
}).passthrough().describe("Schema for a single review returned by the API.");
|
|
17
|
+
const PlanyoOnlineBookingGetResourceReviewsOutput = zod.z.object({ results: zod.z.array(PlanyoOnlineBookingGetResourceReviews_ReviewSchema).describe("List of reviews for the given resource") }).passthrough().describe("Response model for GET_RESOURCE_REVIEWS action.");
|
|
18
18
|
const planyoOnlineBookingGetResourceReviews = require_action.action("PLANYO_ONLINE_BOOKING_GET_RESOURCE_REVIEWS", {
|
|
19
19
|
slug: "planyo_online_booking-get-resource-reviews",
|
|
20
20
|
name: "Get Resource Reviews",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-resource-reviews.cjs","names":["z","action"],"sources":["../../src/actions/get-resource-reviews.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlanyoOnlineBookingGetResourceReviewsInput = z.object({\n limit: z.number().int().describe(\"Maximum number of reviews to return (1-500)\").optional(),\n resource_id: z.number().int().describe(\"ID of the resource to fetch reviews for\"),\n}).describe(\"Request model for GET_RESOURCE_REVIEWS action.\");\nconst PlanyoOnlineBookingGetResourceReviews_ReviewSchema = z.object({\n date: z.string().describe(\"Date and time when the review was added (YYYY-MM-DD HH:MM:SS)\").nullable(),\n text: z.string().describe(\"Comment text of the review\").nullable(),\n reply: z.string().describe(\"Admin reply to the review, if any\").nullable().optional(),\n rating: z.number().describe(\"Rating given by the client (1 to 5)\").nullable(),\n user_id: z.number().int().describe(\"ID of the user who left the review\").nullable(),\n first_name: z.string().describe(\"First name of the user who left the review\").nullable(),\n resource_id: z.number().int().describe(\"ID of the resource related to the review\").nullable(),\n}).describe(\"Schema for a single review returned by the API.\");\nexport const PlanyoOnlineBookingGetResourceReviewsOutput = z.object({\n results: z.array(PlanyoOnlineBookingGetResourceReviews_ReviewSchema).describe(\"List of reviews for the given resource\"),\n}).describe(\"Response model for GET_RESOURCE_REVIEWS action.\");\n\nexport const planyoOnlineBookingGetResourceReviews = action(\"PLANYO_ONLINE_BOOKING_GET_RESOURCE_REVIEWS\", {\n slug: \"planyo_online_booking-get-resource-reviews\",\n name: \"Get Resource Reviews\",\n description: \"Tool to fetch reviews and ratings for a specific resource. Use when you have a resource_id and need to display customer feedback.\",\n input: PlanyoOnlineBookingGetResourceReviewsInput,\n output: PlanyoOnlineBookingGetResourceReviewsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6CAA6CA,IAAAA,EAAE,OAAO;CACjE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CACzF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC;AAClF,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAC5D,MAAM,qDAAqDA,IAAAA,EAAE,OAAO;CAClE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CACpG,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACjE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC5E,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAClF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACvF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,SAAS,iDAAiD;
|
|
1
|
+
{"version":3,"file":"get-resource-reviews.cjs","names":["z","action"],"sources":["../../src/actions/get-resource-reviews.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlanyoOnlineBookingGetResourceReviewsInput = z.object({\n limit: z.number().int().describe(\"Maximum number of reviews to return (1-500)\").optional(),\n resource_id: z.number().int().describe(\"ID of the resource to fetch reviews for\"),\n}).describe(\"Request model for GET_RESOURCE_REVIEWS action.\");\nconst PlanyoOnlineBookingGetResourceReviews_ReviewSchema = z.object({\n date: z.string().describe(\"Date and time when the review was added (YYYY-MM-DD HH:MM:SS)\").nullable(),\n text: z.string().describe(\"Comment text of the review\").nullable(),\n reply: z.string().describe(\"Admin reply to the review, if any\").nullable().optional(),\n rating: z.number().describe(\"Rating given by the client (1 to 5)\").nullable(),\n user_id: z.number().int().describe(\"ID of the user who left the review\").nullable(),\n first_name: z.string().describe(\"First name of the user who left the review\").nullable(),\n resource_id: z.number().int().describe(\"ID of the resource related to the review\").nullable(),\n}).passthrough().describe(\"Schema for a single review returned by the API.\");\nexport const PlanyoOnlineBookingGetResourceReviewsOutput = z.object({\n results: z.array(PlanyoOnlineBookingGetResourceReviews_ReviewSchema).describe(\"List of reviews for the given resource\"),\n}).passthrough().describe(\"Response model for GET_RESOURCE_REVIEWS action.\");\n\nexport const planyoOnlineBookingGetResourceReviews = action(\"PLANYO_ONLINE_BOOKING_GET_RESOURCE_REVIEWS\", {\n slug: \"planyo_online_booking-get-resource-reviews\",\n name: \"Get Resource Reviews\",\n description: \"Tool to fetch reviews and ratings for a specific resource. Use when you have a resource_id and need to display customer feedback.\",\n input: PlanyoOnlineBookingGetResourceReviewsInput,\n output: PlanyoOnlineBookingGetResourceReviewsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6CAA6CA,IAAAA,EAAE,OAAO;CACjE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CACzF,aAAaA,IA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
|
resource_id: z.ZodNullable<z.ZodNumber>;
|
|
17
|
-
}, z.core.$
|
|
18
|
-
}, z.core.$
|
|
17
|
+
}, z.core.$loose>>;
|
|
18
|
+
}, z.core.$loose>;
|
|
19
19
|
declare const planyoOnlineBookingGetResourceReviews: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
20
20
|
resource_id: number;
|
|
21
21
|
limit?: number | undefined;
|
|
@@ -14,8 +14,8 @@ declare const PlanyoOnlineBookingGetResourceReviewsOutput: z.ZodObject<{
|
|
|
14
14
|
user_id: z.ZodNullable<z.ZodNumber>;
|
|
15
15
|
first_name: z.ZodNullable<z.ZodString>;
|
|
16
16
|
resource_id: z.ZodNullable<z.ZodNumber>;
|
|
17
|
-
}, z.core.$
|
|
18
|
-
}, z.core.$
|
|
17
|
+
}, z.core.$loose>>;
|
|
18
|
+
}, z.core.$loose>;
|
|
19
19
|
declare const planyoOnlineBookingGetResourceReviews: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
20
20
|
resource_id: number;
|
|
21
21
|
limit?: number | undefined;
|
|
@@ -13,13 +13,13 @@ const PlanyoOnlineBookingGetResourceReviews_ReviewSchema = z.object({
|
|
|
13
13
|
user_id: z.number().int().describe("ID of the user who left the review").nullable(),
|
|
14
14
|
first_name: z.string().describe("First name of the user who left the review").nullable(),
|
|
15
15
|
resource_id: z.number().int().describe("ID of the resource related to the review").nullable()
|
|
16
|
-
}).describe("Schema for a single review returned by the API.");
|
|
16
|
+
}).passthrough().describe("Schema for a single review returned by the API.");
|
|
17
17
|
const planyoOnlineBookingGetResourceReviews = action("PLANYO_ONLINE_BOOKING_GET_RESOURCE_REVIEWS", {
|
|
18
18
|
slug: "planyo_online_booking-get-resource-reviews",
|
|
19
19
|
name: "Get Resource Reviews",
|
|
20
20
|
description: "Tool to fetch reviews and ratings for a specific resource. Use when you have a resource_id and need to display customer feedback.",
|
|
21
21
|
input: PlanyoOnlineBookingGetResourceReviewsInput,
|
|
22
|
-
output: z.object({ results: z.array(PlanyoOnlineBookingGetResourceReviews_ReviewSchema).describe("List of reviews for the given resource") }).describe("Response model for GET_RESOURCE_REVIEWS action.")
|
|
22
|
+
output: z.object({ results: z.array(PlanyoOnlineBookingGetResourceReviews_ReviewSchema).describe("List of reviews for the given resource") }).passthrough().describe("Response model for GET_RESOURCE_REVIEWS action.")
|
|
23
23
|
});
|
|
24
24
|
//#endregion
|
|
25
25
|
export { planyoOnlineBookingGetResourceReviews };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-resource-reviews.mjs","names":[],"sources":["../../src/actions/get-resource-reviews.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlanyoOnlineBookingGetResourceReviewsInput = z.object({\n limit: z.number().int().describe(\"Maximum number of reviews to return (1-500)\").optional(),\n resource_id: z.number().int().describe(\"ID of the resource to fetch reviews for\"),\n}).describe(\"Request model for GET_RESOURCE_REVIEWS action.\");\nconst PlanyoOnlineBookingGetResourceReviews_ReviewSchema = z.object({\n date: z.string().describe(\"Date and time when the review was added (YYYY-MM-DD HH:MM:SS)\").nullable(),\n text: z.string().describe(\"Comment text of the review\").nullable(),\n reply: z.string().describe(\"Admin reply to the review, if any\").nullable().optional(),\n rating: z.number().describe(\"Rating given by the client (1 to 5)\").nullable(),\n user_id: z.number().int().describe(\"ID of the user who left the review\").nullable(),\n first_name: z.string().describe(\"First name of the user who left the review\").nullable(),\n resource_id: z.number().int().describe(\"ID of the resource related to the review\").nullable(),\n}).describe(\"Schema for a single review returned by the API.\");\nexport const PlanyoOnlineBookingGetResourceReviewsOutput = z.object({\n results: z.array(PlanyoOnlineBookingGetResourceReviews_ReviewSchema).describe(\"List of reviews for the given resource\"),\n}).describe(\"Response model for GET_RESOURCE_REVIEWS action.\");\n\nexport const planyoOnlineBookingGetResourceReviews = action(\"PLANYO_ONLINE_BOOKING_GET_RESOURCE_REVIEWS\", {\n slug: \"planyo_online_booking-get-resource-reviews\",\n name: \"Get Resource Reviews\",\n description: \"Tool to fetch reviews and ratings for a specific resource. Use when you have a resource_id and need to display customer feedback.\",\n input: PlanyoOnlineBookingGetResourceReviewsInput,\n output: PlanyoOnlineBookingGetResourceReviewsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6CAA6C,EAAE,OAAO;CACjE,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CACzF,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC;AAClF,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAC5D,MAAM,qDAAqD,EAAE,OAAO;CAClE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CACpG,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACjE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC5E,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAClF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACvF,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,SAAS,iDAAiD;
|
|
1
|
+
{"version":3,"file":"get-resource-reviews.mjs","names":[],"sources":["../../src/actions/get-resource-reviews.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlanyoOnlineBookingGetResourceReviewsInput = z.object({\n limit: z.number().int().describe(\"Maximum number of reviews to return (1-500)\").optional(),\n resource_id: z.number().int().describe(\"ID of the resource to fetch reviews for\"),\n}).describe(\"Request model for GET_RESOURCE_REVIEWS action.\");\nconst PlanyoOnlineBookingGetResourceReviews_ReviewSchema = z.object({\n date: z.string().describe(\"Date and time when the review was added (YYYY-MM-DD HH:MM:SS)\").nullable(),\n text: z.string().describe(\"Comment text of the review\").nullable(),\n reply: z.string().describe(\"Admin reply to the review, if any\").nullable().optional(),\n rating: z.number().describe(\"Rating given by the client (1 to 5)\").nullable(),\n user_id: z.number().int().describe(\"ID of the user who left the review\").nullable(),\n first_name: z.string().describe(\"First name of the user who left the review\").nullable(),\n resource_id: z.number().int().describe(\"ID of the resource related to the review\").nullable(),\n}).passthrough().describe(\"Schema for a single review returned by the API.\");\nexport const PlanyoOnlineBookingGetResourceReviewsOutput = z.object({\n results: z.array(PlanyoOnlineBookingGetResourceReviews_ReviewSchema).describe(\"List of reviews for the given resource\"),\n}).passthrough().describe(\"Response model for GET_RESOURCE_REVIEWS action.\");\n\nexport const planyoOnlineBookingGetResourceReviews = action(\"PLANYO_ONLINE_BOOKING_GET_RESOURCE_REVIEWS\", {\n slug: \"planyo_online_booking-get-resource-reviews\",\n name: \"Get Resource Reviews\",\n description: \"Tool to fetch reviews and ratings for a specific resource. Use when you have a resource_id and need to display customer feedback.\",\n input: PlanyoOnlineBookingGetResourceReviewsInput,\n output: PlanyoOnlineBookingGetResourceReviewsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6CAA6C,EAAE,OAAO;CACjE,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CACzF,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC;AAClF,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAC5D,MAAM,qDAAqD,EAAE,OAAO;CAClE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CACpG,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACjE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC5E,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAClF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACvF,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAK3E,MAAa,wCAAwC,OAAO,8CAA8C;CACxG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATyD,EAAE,OAAO,EAClE,SAAS,EAAE,MAAM,kDAAkD,CAAC,CAAC,SAAS,wCAAwC,EACxH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAOhB;AACV,CAAC"}
|