@keystrokehq/planyo_online_booking 0.1.0 → 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/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/add-reservation.cjs +5 -5
- package/dist/actions/add-reservation.cjs.map +1 -1
- package/dist/actions/add-reservation.d.cts +44 -3
- package/dist/actions/add-reservation.d.cts.map +1 -1
- package/dist/actions/add-reservation.d.mts +44 -3
- package/dist/actions/add-reservation.d.mts.map +1 -1
- package/dist/actions/add-reservation.mjs +5 -5
- package/dist/actions/add-reservation.mjs.map +1 -1
- package/dist/actions/add-user.cjs +4 -4
- package/dist/actions/add-user.cjs.map +1 -1
- package/dist/actions/add-user.d.cts +37 -3
- package/dist/actions/add-user.d.cts.map +1 -1
- package/dist/actions/add-user.d.mts +37 -3
- package/dist/actions/add-user.d.mts.map +1 -1
- package/dist/actions/add-user.mjs +4 -4
- package/dist/actions/add-user.mjs.map +1 -1
- package/dist/actions/get-addon-list.cjs +6 -6
- package/dist/actions/get-addon-list.cjs.map +1 -1
- package/dist/actions/get-addon-list.d.cts +28 -3
- package/dist/actions/get-addon-list.d.cts.map +1 -1
- package/dist/actions/get-addon-list.d.mts +28 -3
- package/dist/actions/get-addon-list.d.mts.map +1 -1
- package/dist/actions/get-addon-list.mjs +6 -6
- package/dist/actions/get-addon-list.mjs.map +1 -1
- package/dist/actions/get-coupon-list.cjs +10 -10
- package/dist/actions/get-coupon-list.cjs.map +1 -1
- package/dist/actions/get-coupon-list.d.cts +29 -3
- package/dist/actions/get-coupon-list.d.cts.map +1 -1
- package/dist/actions/get-coupon-list.d.mts +29 -3
- package/dist/actions/get-coupon-list.d.mts.map +1 -1
- package/dist/actions/get-coupon-list.mjs +10 -10
- package/dist/actions/get-coupon-list.mjs.map +1 -1
- package/dist/actions/get-resource-availability.cjs +8 -8
- package/dist/actions/get-resource-availability.cjs.map +1 -1
- package/dist/actions/get-resource-availability.d.cts +44 -3
- package/dist/actions/get-resource-availability.d.cts.map +1 -1
- package/dist/actions/get-resource-availability.d.mts +44 -3
- package/dist/actions/get-resource-availability.d.mts.map +1 -1
- package/dist/actions/get-resource-availability.mjs +8 -8
- package/dist/actions/get-resource-availability.mjs.map +1 -1
- package/dist/actions/get-resource-blackouts.cjs +8 -8
- package/dist/actions/get-resource-blackouts.cjs.map +1 -1
- package/dist/actions/get-resource-blackouts.d.cts +24 -3
- package/dist/actions/get-resource-blackouts.d.cts.map +1 -1
- package/dist/actions/get-resource-blackouts.d.mts +24 -3
- package/dist/actions/get-resource-blackouts.d.mts.map +1 -1
- package/dist/actions/get-resource-blackouts.mjs +8 -8
- package/dist/actions/get-resource-blackouts.mjs.map +1 -1
- package/dist/actions/get-resource-reviews.cjs +8 -8
- package/dist/actions/get-resource-reviews.cjs.map +1 -1
- package/dist/actions/get-resource-reviews.d.cts +19 -3
- package/dist/actions/get-resource-reviews.d.cts.map +1 -1
- package/dist/actions/get-resource-reviews.d.mts +19 -3
- package/dist/actions/get-resource-reviews.d.mts.map +1 -1
- package/dist/actions/get-resource-reviews.mjs +8 -8
- package/dist/actions/get-resource-reviews.mjs.map +1 -1
- package/dist/catalog.cjs +7 -1
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +8 -0
- package/dist/catalog.d.mts +8 -0
- package/dist/catalog.mjs +7 -1
- package/dist/catalog.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-resource-blackouts.d.mts","names":[],"sources":["../../src/actions/get-resource-blackouts.ts"],"mappings":";;;cAIa,4CAAA,
|
|
1
|
+
{"version":3,"file":"get-resource-blackouts.d.mts","names":[],"sources":["../../src/actions/get-resource-blackouts.ts"],"mappings":";;;cAIa,4CAAA,EAA4C,CAAA,CAAA,SAAA;;;;;;;cAe5C,6CAAA,EAA6C,CAAA,CAAA,SAAA;;;;;;;;;;cAI7C,uCAAA,gCAAuC,wBAAA"}
|
|
@@ -9,19 +9,19 @@ const PlanyoOnlineBookingGetResourceBlackoutsInput = z.object({
|
|
|
9
9
|
admin_password: z.string().describe("Password for the admin email, if required.").optional()
|
|
10
10
|
}).describe("Request model for GET_RESOURCE_BLACKOUTS action.");
|
|
11
11
|
const PlanyoOnlineBookingGetResourceBlackouts_BlackoutSchema = z.object({
|
|
12
|
-
end_time: z.number().int().describe("UNIX timestamp when blackout ends."),
|
|
13
|
-
start_time: z.number().int().describe("UNIX timestamp when blackout starts."),
|
|
14
|
-
blackout_id: z.number().int().describe("Unique identifier of the blackout."),
|
|
15
|
-
description: z.string().describe("Description of the blackout."),
|
|
16
|
-
resource_id: z.number().int().describe("ID of the resource associated with the blackout."),
|
|
17
|
-
creation_time: z.number().int().describe("UNIX timestamp when the blackout was created.")
|
|
18
|
-
}).describe("Represents a blackout period where the resource is unavailable.");
|
|
12
|
+
end_time: z.number().int().describe("UNIX timestamp when blackout ends.").nullable(),
|
|
13
|
+
start_time: z.number().int().describe("UNIX timestamp when blackout starts.").nullable(),
|
|
14
|
+
blackout_id: z.number().int().describe("Unique identifier of the blackout.").nullable(),
|
|
15
|
+
description: z.string().describe("Description of the blackout.").nullable(),
|
|
16
|
+
resource_id: z.number().int().describe("ID of the resource associated with the blackout.").nullable(),
|
|
17
|
+
creation_time: z.number().int().describe("UNIX timestamp when the blackout was created.").nullable()
|
|
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
|
|
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"}
|
|
@@ -6,15 +6,15 @@ const PlanyoOnlineBookingGetResourceReviewsInput = zod.z.object({
|
|
|
6
6
|
resource_id: zod.z.number().int().describe("ID of the resource to fetch reviews for")
|
|
7
7
|
}).describe("Request model for GET_RESOURCE_REVIEWS action.");
|
|
8
8
|
const PlanyoOnlineBookingGetResourceReviews_ReviewSchema = zod.z.object({
|
|
9
|
-
date: zod.z.string().describe("Date and time when the review was added (YYYY-MM-DD HH:MM:SS)"),
|
|
10
|
-
text: zod.z.string().describe("Comment text of the review"),
|
|
9
|
+
date: zod.z.string().describe("Date and time when the review was added (YYYY-MM-DD HH:MM:SS)").nullable(),
|
|
10
|
+
text: zod.z.string().describe("Comment text of the review").nullable(),
|
|
11
11
|
reply: zod.z.string().describe("Admin reply to the review, if any").nullable().optional(),
|
|
12
|
-
rating: zod.z.number().describe("Rating given by the client (1 to 5)"),
|
|
13
|
-
user_id: zod.z.number().int().describe("ID of the user who left the review"),
|
|
14
|
-
first_name: zod.z.string().describe("First name of the user who left the review"),
|
|
15
|
-
resource_id: zod.z.number().int().describe("ID of the resource related to the review")
|
|
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.");
|
|
12
|
+
rating: zod.z.number().describe("Rating given by the client (1 to 5)").nullable(),
|
|
13
|
+
user_id: zod.z.number().int().describe("ID of the user who left the review").nullable(),
|
|
14
|
+
first_name: zod.z.string().describe("First name of the user who left the review").nullable(),
|
|
15
|
+
resource_id: zod.z.number().int().describe("ID of the resource related to the review").nullable()
|
|
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
|
|
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,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,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAC3E,MAAa,8CAA8CA,IAAAA,EAAE,OAAO,EAClE,SAASA,IAAAA,EAAE,MAAM,kDAAkD,CAAC,CAAC,SAAS,wCAAwC,EACxH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAE3E,MAAa,wCAAwCC,eAAAA,OAAO,8CAA8C;CACxG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,25 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-resource-reviews.d.ts
|
|
4
|
-
declare const PlanyoOnlineBookingGetResourceReviewsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PlanyoOnlineBookingGetResourceReviewsInput: z.ZodObject<{
|
|
5
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
6
|
+
resource_id: z.ZodNumber;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const PlanyoOnlineBookingGetResourceReviewsOutput: z.ZodObject<{
|
|
9
|
+
results: z.ZodArray<z.ZodObject<{
|
|
10
|
+
date: z.ZodNullable<z.ZodString>;
|
|
11
|
+
text: z.ZodNullable<z.ZodString>;
|
|
12
|
+
reply: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
rating: z.ZodNullable<z.ZodNumber>;
|
|
14
|
+
user_id: z.ZodNullable<z.ZodNumber>;
|
|
15
|
+
first_name: z.ZodNullable<z.ZodString>;
|
|
16
|
+
resource_id: z.ZodNullable<z.ZodNumber>;
|
|
17
|
+
}, z.core.$loose>>;
|
|
18
|
+
}, z.core.$loose>;
|
|
19
|
+
declare const planyoOnlineBookingGetResourceReviews: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
20
|
+
resource_id: number;
|
|
21
|
+
limit?: number | undefined;
|
|
22
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
23
|
//#endregion
|
|
8
24
|
export { planyoOnlineBookingGetResourceReviews };
|
|
9
25
|
//# sourceMappingURL=get-resource-reviews.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-resource-reviews.d.cts","names":[],"sources":["../../src/actions/get-resource-reviews.ts"],"mappings":";;;cAIa,0CAAA,
|
|
1
|
+
{"version":3,"file":"get-resource-reviews.d.cts","names":[],"sources":["../../src/actions/get-resource-reviews.ts"],"mappings":";;;cAIa,0CAAA,EAA0C,CAAA,CAAA,SAAA;;;;cAa1C,2CAAA,EAA2C,CAAA,CAAA,SAAA;;;;;;;;;;;cAI3C,qCAAA,gCAAqC,wBAAA"}
|
|
@@ -1,9 +1,25 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-resource-reviews.d.ts
|
|
4
|
-
declare const PlanyoOnlineBookingGetResourceReviewsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PlanyoOnlineBookingGetResourceReviewsInput: z.ZodObject<{
|
|
5
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
6
|
+
resource_id: z.ZodNumber;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const PlanyoOnlineBookingGetResourceReviewsOutput: z.ZodObject<{
|
|
9
|
+
results: z.ZodArray<z.ZodObject<{
|
|
10
|
+
date: z.ZodNullable<z.ZodString>;
|
|
11
|
+
text: z.ZodNullable<z.ZodString>;
|
|
12
|
+
reply: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
rating: z.ZodNullable<z.ZodNumber>;
|
|
14
|
+
user_id: z.ZodNullable<z.ZodNumber>;
|
|
15
|
+
first_name: z.ZodNullable<z.ZodString>;
|
|
16
|
+
resource_id: z.ZodNullable<z.ZodNumber>;
|
|
17
|
+
}, z.core.$loose>>;
|
|
18
|
+
}, z.core.$loose>;
|
|
19
|
+
declare const planyoOnlineBookingGetResourceReviews: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
20
|
+
resource_id: number;
|
|
21
|
+
limit?: number | undefined;
|
|
22
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
23
|
//#endregion
|
|
8
24
|
export { planyoOnlineBookingGetResourceReviews };
|
|
9
25
|
//# sourceMappingURL=get-resource-reviews.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-resource-reviews.d.mts","names":[],"sources":["../../src/actions/get-resource-reviews.ts"],"mappings":";;;cAIa,0CAAA,
|
|
1
|
+
{"version":3,"file":"get-resource-reviews.d.mts","names":[],"sources":["../../src/actions/get-resource-reviews.ts"],"mappings":";;;cAIa,0CAAA,EAA0C,CAAA,CAAA,SAAA;;;;cAa1C,2CAAA,EAA2C,CAAA,CAAA,SAAA;;;;;;;;;;;cAI3C,qCAAA,gCAAqC,wBAAA"}
|
|
@@ -6,20 +6,20 @@ const PlanyoOnlineBookingGetResourceReviewsInput = z.object({
|
|
|
6
6
|
resource_id: z.number().int().describe("ID of the resource to fetch reviews for")
|
|
7
7
|
}).describe("Request model for GET_RESOURCE_REVIEWS action.");
|
|
8
8
|
const PlanyoOnlineBookingGetResourceReviews_ReviewSchema = z.object({
|
|
9
|
-
date: z.string().describe("Date and time when the review was added (YYYY-MM-DD HH:MM:SS)"),
|
|
10
|
-
text: z.string().describe("Comment text of the review"),
|
|
9
|
+
date: z.string().describe("Date and time when the review was added (YYYY-MM-DD HH:MM:SS)").nullable(),
|
|
10
|
+
text: z.string().describe("Comment text of the review").nullable(),
|
|
11
11
|
reply: z.string().describe("Admin reply to the review, if any").nullable().optional(),
|
|
12
|
-
rating: z.number().describe("Rating given by the client (1 to 5)"),
|
|
13
|
-
user_id: z.number().int().describe("ID of the user who left the review"),
|
|
14
|
-
first_name: z.string().describe("First name of the user who left the review"),
|
|
15
|
-
resource_id: z.number().int().describe("ID of the resource related to the review")
|
|
16
|
-
}).describe("Schema for a single review returned by the API.");
|
|
12
|
+
rating: z.number().describe("Rating given by the client (1 to 5)").nullable(),
|
|
13
|
+
user_id: z.number().int().describe("ID of the user who left the review").nullable(),
|
|
14
|
+
first_name: z.string().describe("First name of the user who left the review").nullable(),
|
|
15
|
+
resource_id: z.number().int().describe("ID of the resource related to the review").nullable()
|
|
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
|
|
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"}
|
package/dist/catalog.cjs
CHANGED
|
@@ -7,7 +7,13 @@ const planyoOnlineBookingCatalog = {
|
|
|
7
7
|
"category": "Scheduling & Booking",
|
|
8
8
|
"logo": "https://logos.composio.dev/api/planyo_online_booking",
|
|
9
9
|
"authKind": "keystroke",
|
|
10
|
-
"oauthScopes": []
|
|
10
|
+
"oauthScopes": [],
|
|
11
|
+
"credentialFields": { "api_key": {
|
|
12
|
+
"label": "API Key",
|
|
13
|
+
"secret": true,
|
|
14
|
+
"description": "Go to the API - Planyo Web Services page and under the Authentication and security section click the API Key button"
|
|
15
|
+
} },
|
|
16
|
+
"credentialScheme": "API_KEY"
|
|
11
17
|
};
|
|
12
18
|
//#endregion
|
|
13
19
|
exports.planyoOnlineBookingCatalog = planyoOnlineBookingCatalog;
|
package/dist/catalog.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalog.cjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const planyoOnlineBookingCatalog = {\n \"slug\": \"planyo_online_booking\",\n \"name\": \"Planyo Online Booking\",\n \"description\": \"Planyo is an online reservation system which can be used by any business taking bookings: for days, nights, hours or minutes, or scheduled events.\",\n \"category\": \"Scheduling & Booking\",\n \"logo\": \"https://logos.composio.dev/api/planyo_online_booking\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,6BAA6B;CACxC,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"catalog.cjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const planyoOnlineBookingCatalog = {\n \"slug\": \"planyo_online_booking\",\n \"name\": \"Planyo Online Booking\",\n \"description\": \"Planyo is an online reservation system which can be used by any business taking bookings: for days, nights, hours or minutes, or scheduled events.\",\n \"category\": \"Scheduling & Booking\",\n \"logo\": \"https://logos.composio.dev/api/planyo_online_booking\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": [],\n \"credentialFields\": {\n \"api_key\": {\n \"label\": \"API Key\",\n \"secret\": true,\n \"description\": \"Go to the API - Planyo Web Services page and under the Authentication and security section click the API Key button\"\n }\n },\n \"credentialScheme\": \"API_KEY\"\n} as const;\n"],"mappings":";;AACA,MAAa,6BAA6B;CACxC,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;CAChB,oBAAoB,EAClB,WAAW;EACT,SAAS;EACT,UAAU;EACV,eAAe;CACjB,EACF;CACA,oBAAoB;AACtB"}
|
package/dist/catalog.d.cts
CHANGED
|
@@ -8,6 +8,14 @@ declare const planyoOnlineBookingCatalog: {
|
|
|
8
8
|
readonly logo: "https://logos.composio.dev/api/planyo_online_booking";
|
|
9
9
|
readonly authKind: "keystroke";
|
|
10
10
|
readonly oauthScopes: readonly [];
|
|
11
|
+
readonly credentialFields: {
|
|
12
|
+
readonly api_key: {
|
|
13
|
+
readonly label: "API Key";
|
|
14
|
+
readonly secret: true;
|
|
15
|
+
readonly description: "Go to the API - Planyo Web Services page and under the Authentication and security section click the API Key button";
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
readonly credentialScheme: "API_KEY";
|
|
11
19
|
};
|
|
12
20
|
//#endregion
|
|
13
21
|
export { planyoOnlineBookingCatalog };
|
package/dist/catalog.d.mts
CHANGED
|
@@ -8,6 +8,14 @@ declare const planyoOnlineBookingCatalog: {
|
|
|
8
8
|
readonly logo: "https://logos.composio.dev/api/planyo_online_booking";
|
|
9
9
|
readonly authKind: "keystroke";
|
|
10
10
|
readonly oauthScopes: readonly [];
|
|
11
|
+
readonly credentialFields: {
|
|
12
|
+
readonly api_key: {
|
|
13
|
+
readonly label: "API Key";
|
|
14
|
+
readonly secret: true;
|
|
15
|
+
readonly description: "Go to the API - Planyo Web Services page and under the Authentication and security section click the API Key button";
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
readonly credentialScheme: "API_KEY";
|
|
11
19
|
};
|
|
12
20
|
//#endregion
|
|
13
21
|
export { planyoOnlineBookingCatalog };
|
package/dist/catalog.mjs
CHANGED
|
@@ -7,7 +7,13 @@ const planyoOnlineBookingCatalog = {
|
|
|
7
7
|
"category": "Scheduling & Booking",
|
|
8
8
|
"logo": "https://logos.composio.dev/api/planyo_online_booking",
|
|
9
9
|
"authKind": "keystroke",
|
|
10
|
-
"oauthScopes": []
|
|
10
|
+
"oauthScopes": [],
|
|
11
|
+
"credentialFields": { "api_key": {
|
|
12
|
+
"label": "API Key",
|
|
13
|
+
"secret": true,
|
|
14
|
+
"description": "Go to the API - Planyo Web Services page and under the Authentication and security section click the API Key button"
|
|
15
|
+
} },
|
|
16
|
+
"credentialScheme": "API_KEY"
|
|
11
17
|
};
|
|
12
18
|
//#endregion
|
|
13
19
|
export { planyoOnlineBookingCatalog };
|
package/dist/catalog.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalog.mjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const planyoOnlineBookingCatalog = {\n \"slug\": \"planyo_online_booking\",\n \"name\": \"Planyo Online Booking\",\n \"description\": \"Planyo is an online reservation system which can be used by any business taking bookings: for days, nights, hours or minutes, or scheduled events.\",\n \"category\": \"Scheduling & Booking\",\n \"logo\": \"https://logos.composio.dev/api/planyo_online_booking\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,6BAA6B;CACxC,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"catalog.mjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const planyoOnlineBookingCatalog = {\n \"slug\": \"planyo_online_booking\",\n \"name\": \"Planyo Online Booking\",\n \"description\": \"Planyo is an online reservation system which can be used by any business taking bookings: for days, nights, hours or minutes, or scheduled events.\",\n \"category\": \"Scheduling & Booking\",\n \"logo\": \"https://logos.composio.dev/api/planyo_online_booking\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": [],\n \"credentialFields\": {\n \"api_key\": {\n \"label\": \"API Key\",\n \"secret\": true,\n \"description\": \"Go to the API - Planyo Web Services page and under the Authentication and security section click the API Key button\"\n }\n },\n \"credentialScheme\": \"API_KEY\"\n} as const;\n"],"mappings":";;AACA,MAAa,6BAA6B;CACxC,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;CAChB,oBAAoB,EAClB,WAAW;EACT,SAAS;EACT,UAAU;EACV,eAAe;CACjB,EACF;CACA,oBAAoB;AACtB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@keystrokehq/planyo_online_booking",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
|
-
"@keystrokehq/keystroke": "
|
|
34
|
+
"@keystrokehq/keystroke": ">=0.1.4",
|
|
35
35
|
"zod": "^4.4.3"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|