@keystrokehq/planyo_online_booking 0.1.5 → 0.1.6
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 +1 -0
- package/dist/actions/add-reservation.cjs.map +1 -1
- package/dist/actions/add-reservation.d.cts +3 -28
- package/dist/actions/add-reservation.d.cts.map +1 -1
- package/dist/actions/add-reservation.d.mts +3 -28
- package/dist/actions/add-reservation.d.mts.map +1 -1
- package/dist/actions/add-reservation.mjs +1 -0
- package/dist/actions/add-reservation.mjs.map +1 -1
- package/dist/actions/add-user.cjs +1 -0
- package/dist/actions/add-user.cjs.map +1 -1
- package/dist/actions/add-user.d.cts +3 -28
- package/dist/actions/add-user.d.cts.map +1 -1
- package/dist/actions/add-user.d.mts +3 -28
- package/dist/actions/add-user.d.mts.map +1 -1
- package/dist/actions/add-user.mjs +1 -0
- package/dist/actions/add-user.mjs.map +1 -1
- package/dist/actions/get-addon-list.cjs +1 -0
- package/dist/actions/get-addon-list.cjs.map +1 -1
- package/dist/actions/get-addon-list.d.cts +3 -21
- package/dist/actions/get-addon-list.d.cts.map +1 -1
- package/dist/actions/get-addon-list.d.mts +3 -21
- package/dist/actions/get-addon-list.d.mts.map +1 -1
- package/dist/actions/get-addon-list.mjs +1 -0
- package/dist/actions/get-addon-list.mjs.map +1 -1
- package/dist/actions/get-coupon-list.cjs +1 -0
- package/dist/actions/get-coupon-list.cjs.map +1 -1
- package/dist/actions/get-coupon-list.d.cts +3 -19
- package/dist/actions/get-coupon-list.d.cts.map +1 -1
- package/dist/actions/get-coupon-list.d.mts +3 -19
- package/dist/actions/get-coupon-list.d.mts.map +1 -1
- package/dist/actions/get-coupon-list.mjs +1 -0
- package/dist/actions/get-coupon-list.mjs.map +1 -1
- package/dist/actions/get-resource-availability.cjs +1 -0
- package/dist/actions/get-resource-availability.cjs.map +1 -1
- package/dist/actions/get-resource-availability.d.cts +3 -25
- package/dist/actions/get-resource-availability.d.cts.map +1 -1
- package/dist/actions/get-resource-availability.d.mts +3 -25
- package/dist/actions/get-resource-availability.d.mts.map +1 -1
- package/dist/actions/get-resource-availability.mjs +1 -0
- package/dist/actions/get-resource-availability.mjs.map +1 -1
- package/dist/actions/get-resource-blackouts.cjs +1 -0
- package/dist/actions/get-resource-blackouts.cjs.map +1 -1
- package/dist/actions/get-resource-blackouts.d.cts +3 -19
- package/dist/actions/get-resource-blackouts.d.cts.map +1 -1
- package/dist/actions/get-resource-blackouts.d.mts +3 -19
- package/dist/actions/get-resource-blackouts.d.mts.map +1 -1
- package/dist/actions/get-resource-blackouts.mjs +1 -0
- package/dist/actions/get-resource-blackouts.mjs.map +1 -1
- package/dist/actions/get-resource-reviews.cjs +1 -0
- package/dist/actions/get-resource-reviews.cjs.map +1 -1
- package/dist/actions/get-resource-reviews.d.cts +3 -16
- package/dist/actions/get-resource-reviews.d.cts.map +1 -1
- package/dist/actions/get-resource-reviews.d.mts +3 -16
- package/dist/actions/get-resource-reviews.d.mts.map +1 -1
- package/dist/actions/get-resource-reviews.mjs +1 -0
- package/dist/actions/get-resource-reviews.mjs.map +1 -1
- package/dist/app.cjs +2 -2
- package/dist/app.cjs.map +1 -1
- package/dist/app.d.cts +4 -6
- package/dist/app.d.cts.map +1 -1
- package/dist/app.d.mts +4 -6
- package/dist/app.d.mts.map +1 -1
- package/dist/app.mjs +0 -1
- package/dist/app.mjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/package.json +2 -2
|
@@ -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}).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":"
|
|
1
|
+
{"version":3,"file":"get-coupon-list.mjs","names":[],"sources":["../../src/actions/get-coupon-list.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { planyoOnlineBooking } from \"../app\";\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: AppAction<\n typeof PlanyoOnlineBookingGetCouponListInput,\n typeof PlanyoOnlineBookingGetCouponListOutput,\n typeof planyoOnlineBooking.credential\n> = 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":";;;;AAMA,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,mCAIT,OAAO,yCAAyC;CAClD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAboD,EAAE,OAAO,EAC7D,SAAS,EAAE,MAAM,6CAA6C,CAAC,CAAC,SAAS,6CAA6C,EACxH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAWhB;AACV,CAAC"}
|
|
@@ -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}).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":"
|
|
1
|
+
{"version":3,"file":"get-resource-availability.cjs","names":["z","action"],"sources":["../../src/actions/get-resource-availability.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { planyoOnlineBooking } from \"../app\";\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: AppAction<\n typeof PlanyoOnlineBookingGetResourceAvailabilityInput,\n typeof PlanyoOnlineBookingGetResourceAvailabilityOutput,\n typeof planyoOnlineBooking.credential\n> = 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":";;;;AAMA,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,CAAC,CAAC,YAAY;AACf,MAAa,mDAAmDA,IAAAA,EAAE,OAAO;CACvE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACxE,SAASA,IAAAA,EAAE,MAAM,2DAA2D,CAAC,CAAC,SAAS,sDAAsD;CAC7I,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACvG,WAAWA,IAAAA,EAAE,MAAM,2DAA2D,CAAC,CAAC,SAAS,oDAAoD;CAC7I,qBAAqBA,IAAAA,EAAE,MAAM,2DAA2D,CAAC,CAAC,SAAS,wDAAwD;CAC3J,6BAA6BA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC9G,6BAA6BA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;AAChH,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,6CAITC,eAAAA,OAAO,mDAAmD;CAC5D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { planyoOnlineBooking } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-resource-availability.d.ts
|
|
@@ -32,31 +34,7 @@ declare const PlanyoOnlineBookingGetResourceAvailabilityOutput: z.ZodObject<{
|
|
|
32
34
|
max_advance_notice_not_kept: z.ZodNullable<z.ZodBoolean>;
|
|
33
35
|
min_advance_notice_not_kept: z.ZodNullable<z.ZodBoolean>;
|
|
34
36
|
}, z.core.$loose>;
|
|
35
|
-
declare const planyoOnlineBookingGetResourceAvailability:
|
|
36
|
-
resource_id: number;
|
|
37
|
-
end_time?: string | undefined;
|
|
38
|
-
quantity?: number | undefined;
|
|
39
|
-
test_mode?: 0 | 1 | undefined;
|
|
40
|
-
start_time?: string | undefined;
|
|
41
|
-
end_user_id?: number | undefined;
|
|
42
|
-
ignore_cart?: boolean | undefined;
|
|
43
|
-
min_duration?: number | undefined;
|
|
44
|
-
ignore_reservations?: boolean | undefined;
|
|
45
|
-
check_specific_slots?: 0 | 1 | undefined;
|
|
46
|
-
preliminary_filtering?: 0 | 1 | undefined;
|
|
47
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"planyo_online_booking", z.ZodObject<{
|
|
48
|
-
connectionId: z.ZodString;
|
|
49
|
-
entityId: z.ZodString;
|
|
50
|
-
instanceId: z.ZodString;
|
|
51
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
52
|
-
generic_api_key: z.ZodString;
|
|
53
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"planyo_online_booking", z.ZodObject<{
|
|
54
|
-
connectionId: z.ZodString;
|
|
55
|
-
entityId: z.ZodString;
|
|
56
|
-
instanceId: z.ZodString;
|
|
57
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
58
|
-
generic_api_key: z.ZodString;
|
|
59
|
-
}, z.core.$strip>>]>;
|
|
37
|
+
declare const planyoOnlineBookingGetResourceAvailability: AppAction<typeof PlanyoOnlineBookingGetResourceAvailabilityInput, typeof PlanyoOnlineBookingGetResourceAvailabilityOutput, typeof planyoOnlineBooking.credential>;
|
|
60
38
|
//#endregion
|
|
61
39
|
export { planyoOnlineBookingGetResourceAvailability };
|
|
62
40
|
//# sourceMappingURL=get-resource-availability.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-resource-availability.d.cts","names":[],"sources":["../../src/actions/get-resource-availability.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-resource-availability.d.cts","names":[],"sources":["../../src/actions/get-resource-availability.ts"],"mappings":";;;;;cAMa,+CAAA,EAA+C,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAiB/C,gDAAA,EAAgD,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAUhD,0CAAA,EAA4C,SAAA,QAChD,+CAAA,SACA,gDAAA,SACA,mBAAA,CAAoB,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { planyoOnlineBooking } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-resource-availability.d.ts
|
|
@@ -32,31 +34,7 @@ declare const PlanyoOnlineBookingGetResourceAvailabilityOutput: z.ZodObject<{
|
|
|
32
34
|
max_advance_notice_not_kept: z.ZodNullable<z.ZodBoolean>;
|
|
33
35
|
min_advance_notice_not_kept: z.ZodNullable<z.ZodBoolean>;
|
|
34
36
|
}, z.core.$loose>;
|
|
35
|
-
declare const planyoOnlineBookingGetResourceAvailability:
|
|
36
|
-
resource_id: number;
|
|
37
|
-
end_time?: string | undefined;
|
|
38
|
-
quantity?: number | undefined;
|
|
39
|
-
test_mode?: 0 | 1 | undefined;
|
|
40
|
-
start_time?: string | undefined;
|
|
41
|
-
end_user_id?: number | undefined;
|
|
42
|
-
ignore_cart?: boolean | undefined;
|
|
43
|
-
min_duration?: number | undefined;
|
|
44
|
-
ignore_reservations?: boolean | undefined;
|
|
45
|
-
check_specific_slots?: 0 | 1 | undefined;
|
|
46
|
-
preliminary_filtering?: 0 | 1 | undefined;
|
|
47
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"planyo_online_booking", z.ZodObject<{
|
|
48
|
-
connectionId: z.ZodString;
|
|
49
|
-
entityId: z.ZodString;
|
|
50
|
-
instanceId: z.ZodString;
|
|
51
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
52
|
-
generic_api_key: z.ZodString;
|
|
53
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"planyo_online_booking", z.ZodObject<{
|
|
54
|
-
connectionId: z.ZodString;
|
|
55
|
-
entityId: z.ZodString;
|
|
56
|
-
instanceId: z.ZodString;
|
|
57
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
58
|
-
generic_api_key: z.ZodString;
|
|
59
|
-
}, z.core.$strip>>]>;
|
|
37
|
+
declare const planyoOnlineBookingGetResourceAvailability: AppAction<typeof PlanyoOnlineBookingGetResourceAvailabilityInput, typeof PlanyoOnlineBookingGetResourceAvailabilityOutput, typeof planyoOnlineBooking.credential>;
|
|
60
38
|
//#endregion
|
|
61
39
|
export { planyoOnlineBookingGetResourceAvailability };
|
|
62
40
|
//# sourceMappingURL=get-resource-availability.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-resource-availability.d.mts","names":[],"sources":["../../src/actions/get-resource-availability.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-resource-availability.d.mts","names":[],"sources":["../../src/actions/get-resource-availability.ts"],"mappings":";;;;;cAMa,+CAAA,EAA+C,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAiB/C,gDAAA,EAAgD,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAUhD,0CAAA,EAA4C,SAAA,QAChD,+CAAA,SACA,gDAAA,SACA,mBAAA,CAAoB,UAAA"}
|
|
@@ -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}).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":"
|
|
1
|
+
{"version":3,"file":"get-resource-availability.mjs","names":[],"sources":["../../src/actions/get-resource-availability.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { planyoOnlineBooking } from \"../app\";\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: AppAction<\n typeof PlanyoOnlineBookingGetResourceAvailabilityInput,\n typeof PlanyoOnlineBookingGetResourceAvailabilityOutput,\n typeof planyoOnlineBooking.credential\n> = 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":";;;;AAMA,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,CAAC,CAAC,YAAY;AAWf,MAAa,6CAIT,OAAO,mDAAmD;CAC5D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAnB8D,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,YAWO;AACV,CAAC"}
|
|
@@ -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}).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":"
|
|
1
|
+
{"version":3,"file":"get-resource-blackouts.cjs","names":["z","action"],"sources":["../../src/actions/get-resource-blackouts.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { planyoOnlineBooking } from \"../app\";\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: AppAction<\n typeof PlanyoOnlineBookingGetResourceBlackoutsInput,\n typeof PlanyoOnlineBookingGetResourceBlackoutsOutput,\n typeof planyoOnlineBooking.credential\n> = 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":";;;;AAMA,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,0CAITC,eAAAA,OAAO,gDAAgD;CACzD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { planyoOnlineBooking } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-resource-blackouts.d.ts
|
|
@@ -18,25 +20,7 @@ declare const PlanyoOnlineBookingGetResourceBlackoutsOutput: z.ZodObject<{
|
|
|
18
20
|
creation_time: z.ZodNullable<z.ZodNumber>;
|
|
19
21
|
}, z.core.$loose>>;
|
|
20
22
|
}, z.core.$loose>;
|
|
21
|
-
declare const planyoOnlineBookingGetResourceBlackouts:
|
|
22
|
-
resource_id: number;
|
|
23
|
-
end_time?: number | undefined;
|
|
24
|
-
start_time?: number | undefined;
|
|
25
|
-
admin_email?: string | undefined;
|
|
26
|
-
admin_password?: string | undefined;
|
|
27
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"planyo_online_booking", z.ZodObject<{
|
|
28
|
-
connectionId: z.ZodString;
|
|
29
|
-
entityId: z.ZodString;
|
|
30
|
-
instanceId: z.ZodString;
|
|
31
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
32
|
-
generic_api_key: z.ZodString;
|
|
33
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"planyo_online_booking", z.ZodObject<{
|
|
34
|
-
connectionId: z.ZodString;
|
|
35
|
-
entityId: z.ZodString;
|
|
36
|
-
instanceId: z.ZodString;
|
|
37
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
38
|
-
generic_api_key: z.ZodString;
|
|
39
|
-
}, z.core.$strip>>]>;
|
|
23
|
+
declare const planyoOnlineBookingGetResourceBlackouts: AppAction<typeof PlanyoOnlineBookingGetResourceBlackoutsInput, typeof PlanyoOnlineBookingGetResourceBlackoutsOutput, typeof planyoOnlineBooking.credential>;
|
|
40
24
|
//#endregion
|
|
41
25
|
export { planyoOnlineBookingGetResourceBlackouts };
|
|
42
26
|
//# sourceMappingURL=get-resource-blackouts.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-resource-blackouts.d.cts","names":[],"sources":["../../src/actions/get-resource-blackouts.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-resource-blackouts.d.cts","names":[],"sources":["../../src/actions/get-resource-blackouts.ts"],"mappings":";;;;;cAMa,4CAAA,EAA4C,CAAA,CAAA,SAAA;;;;;;;cAe5C,6CAAA,EAA6C,CAAA,CAAA,SAAA;;;;;;;;;;cAI7C,uCAAA,EAAyC,SAAA,QAC7C,4CAAA,SACA,6CAAA,SACA,mBAAA,CAAoB,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { planyoOnlineBooking } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-resource-blackouts.d.ts
|
|
@@ -18,25 +20,7 @@ declare const PlanyoOnlineBookingGetResourceBlackoutsOutput: z.ZodObject<{
|
|
|
18
20
|
creation_time: z.ZodNullable<z.ZodNumber>;
|
|
19
21
|
}, z.core.$loose>>;
|
|
20
22
|
}, z.core.$loose>;
|
|
21
|
-
declare const planyoOnlineBookingGetResourceBlackouts:
|
|
22
|
-
resource_id: number;
|
|
23
|
-
end_time?: number | undefined;
|
|
24
|
-
start_time?: number | undefined;
|
|
25
|
-
admin_email?: string | undefined;
|
|
26
|
-
admin_password?: string | undefined;
|
|
27
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"planyo_online_booking", z.ZodObject<{
|
|
28
|
-
connectionId: z.ZodString;
|
|
29
|
-
entityId: z.ZodString;
|
|
30
|
-
instanceId: z.ZodString;
|
|
31
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
32
|
-
generic_api_key: z.ZodString;
|
|
33
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"planyo_online_booking", z.ZodObject<{
|
|
34
|
-
connectionId: z.ZodString;
|
|
35
|
-
entityId: z.ZodString;
|
|
36
|
-
instanceId: z.ZodString;
|
|
37
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
38
|
-
generic_api_key: z.ZodString;
|
|
39
|
-
}, z.core.$strip>>]>;
|
|
23
|
+
declare const planyoOnlineBookingGetResourceBlackouts: AppAction<typeof PlanyoOnlineBookingGetResourceBlackoutsInput, typeof PlanyoOnlineBookingGetResourceBlackoutsOutput, typeof planyoOnlineBooking.credential>;
|
|
40
24
|
//#endregion
|
|
41
25
|
export { planyoOnlineBookingGetResourceBlackouts };
|
|
42
26
|
//# sourceMappingURL=get-resource-blackouts.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-resource-blackouts.d.mts","names":[],"sources":["../../src/actions/get-resource-blackouts.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-resource-blackouts.d.mts","names":[],"sources":["../../src/actions/get-resource-blackouts.ts"],"mappings":";;;;;cAMa,4CAAA,EAA4C,CAAA,CAAA,SAAA;;;;;;;cAe5C,6CAAA,EAA6C,CAAA,CAAA,SAAA;;;;;;;;;;cAI7C,uCAAA,EAAyC,SAAA,QAC7C,4CAAA,SACA,6CAAA,SACA,mBAAA,CAAoB,UAAA"}
|
|
@@ -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}).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":"
|
|
1
|
+
{"version":3,"file":"get-resource-blackouts.mjs","names":[],"sources":["../../src/actions/get-resource-blackouts.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { planyoOnlineBooking } from \"../app\";\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: AppAction<\n typeof PlanyoOnlineBookingGetResourceBlackoutsInput,\n typeof PlanyoOnlineBookingGetResourceBlackoutsOutput,\n typeof planyoOnlineBooking.credential\n> = 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":";;;;AAMA,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,0CAIT,OAAO,gDAAgD;CACzD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAb2D,EAAE,OAAO,EACpE,WAAW,EAAE,MAAM,sDAAsD,CAAC,CAAC,SAAS,sDAAsD,EAC5I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAWhB;AACV,CAAC"}
|
|
@@ -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}).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":"
|
|
1
|
+
{"version":3,"file":"get-resource-reviews.cjs","names":["z","action"],"sources":["../../src/actions/get-resource-reviews.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { planyoOnlineBooking } from \"../app\";\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: AppAction<\n typeof PlanyoOnlineBookingGetResourceReviewsInput,\n typeof PlanyoOnlineBookingGetResourceReviewsOutput,\n typeof planyoOnlineBooking.credential\n> = 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":";;;;AAMA,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,wCAITC,eAAAA,OAAO,8CAA8C;CACvD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { planyoOnlineBooking } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-resource-reviews.d.ts
|
|
@@ -16,22 +18,7 @@ declare const PlanyoOnlineBookingGetResourceReviewsOutput: z.ZodObject<{
|
|
|
16
18
|
resource_id: z.ZodNullable<z.ZodNumber>;
|
|
17
19
|
}, z.core.$loose>>;
|
|
18
20
|
}, z.core.$loose>;
|
|
19
|
-
declare const planyoOnlineBookingGetResourceReviews:
|
|
20
|
-
resource_id: number;
|
|
21
|
-
limit?: number | undefined;
|
|
22
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"planyo_online_booking", z.ZodObject<{
|
|
23
|
-
connectionId: z.ZodString;
|
|
24
|
-
entityId: z.ZodString;
|
|
25
|
-
instanceId: z.ZodString;
|
|
26
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
27
|
-
generic_api_key: z.ZodString;
|
|
28
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"planyo_online_booking", z.ZodObject<{
|
|
29
|
-
connectionId: z.ZodString;
|
|
30
|
-
entityId: z.ZodString;
|
|
31
|
-
instanceId: z.ZodString;
|
|
32
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
33
|
-
generic_api_key: z.ZodString;
|
|
34
|
-
}, z.core.$strip>>]>;
|
|
21
|
+
declare const planyoOnlineBookingGetResourceReviews: AppAction<typeof PlanyoOnlineBookingGetResourceReviewsInput, typeof PlanyoOnlineBookingGetResourceReviewsOutput, typeof planyoOnlineBooking.credential>;
|
|
35
22
|
//#endregion
|
|
36
23
|
export { planyoOnlineBookingGetResourceReviews };
|
|
37
24
|
//# 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":"
|
|
1
|
+
{"version":3,"file":"get-resource-reviews.d.cts","names":[],"sources":["../../src/actions/get-resource-reviews.ts"],"mappings":";;;;;cAMa,0CAAA,EAA0C,CAAA,CAAA,SAAA;;;;cAa1C,2CAAA,EAA2C,CAAA,CAAA,SAAA;;;;;;;;;;;cAI3C,qCAAA,EAAuC,SAAA,QAC3C,0CAAA,SACA,2CAAA,SACA,mBAAA,CAAoB,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { planyoOnlineBooking } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-resource-reviews.d.ts
|
|
@@ -16,22 +18,7 @@ declare const PlanyoOnlineBookingGetResourceReviewsOutput: z.ZodObject<{
|
|
|
16
18
|
resource_id: z.ZodNullable<z.ZodNumber>;
|
|
17
19
|
}, z.core.$loose>>;
|
|
18
20
|
}, z.core.$loose>;
|
|
19
|
-
declare const planyoOnlineBookingGetResourceReviews:
|
|
20
|
-
resource_id: number;
|
|
21
|
-
limit?: number | undefined;
|
|
22
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"planyo_online_booking", z.ZodObject<{
|
|
23
|
-
connectionId: z.ZodString;
|
|
24
|
-
entityId: z.ZodString;
|
|
25
|
-
instanceId: z.ZodString;
|
|
26
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
27
|
-
generic_api_key: z.ZodString;
|
|
28
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"planyo_online_booking", z.ZodObject<{
|
|
29
|
-
connectionId: z.ZodString;
|
|
30
|
-
entityId: z.ZodString;
|
|
31
|
-
instanceId: z.ZodString;
|
|
32
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
33
|
-
generic_api_key: z.ZodString;
|
|
34
|
-
}, z.core.$strip>>]>;
|
|
21
|
+
declare const planyoOnlineBookingGetResourceReviews: AppAction<typeof PlanyoOnlineBookingGetResourceReviewsInput, typeof PlanyoOnlineBookingGetResourceReviewsOutput, typeof planyoOnlineBooking.credential>;
|
|
35
22
|
//#endregion
|
|
36
23
|
export { planyoOnlineBookingGetResourceReviews };
|
|
37
24
|
//# 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":"
|
|
1
|
+
{"version":3,"file":"get-resource-reviews.d.mts","names":[],"sources":["../../src/actions/get-resource-reviews.ts"],"mappings":";;;;;cAMa,0CAAA,EAA0C,CAAA,CAAA,SAAA;;;;cAa1C,2CAAA,EAA2C,CAAA,CAAA,SAAA;;;;;;;;;;;cAI3C,qCAAA,EAAuC,SAAA,QAC3C,0CAAA,SACA,2CAAA,SACA,mBAAA,CAAoB,UAAA"}
|
|
@@ -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}).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":"
|
|
1
|
+
{"version":3,"file":"get-resource-reviews.mjs","names":[],"sources":["../../src/actions/get-resource-reviews.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { planyoOnlineBooking } from \"../app\";\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: AppAction<\n typeof PlanyoOnlineBookingGetResourceReviewsInput,\n typeof PlanyoOnlineBookingGetResourceReviewsOutput,\n typeof planyoOnlineBooking.credential\n> = 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":";;;;AAMA,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,wCAIT,OAAO,8CAA8C;CACvD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAbyD,EAAE,OAAO,EAClE,SAAS,EAAE,MAAM,kDAAkD,CAAC,CAAC,SAAS,wCAAwC,EACxH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAWhB;AACV,CAAC"}
|
package/dist/app.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
let _keystrokehq_keystroke_app = require("@keystrokehq/keystroke/app");
|
|
2
|
-
let zod = require("zod");
|
|
3
2
|
//#region src/app.ts
|
|
3
|
+
const credential = { generic_api_key: require("zod").z.string() };
|
|
4
4
|
const planyoOnlineBooking = (0, _keystrokehq_keystroke_app.defineApp)({
|
|
5
5
|
slug: "planyo_online_booking",
|
|
6
6
|
auth: "keystroke",
|
|
7
|
-
credential
|
|
7
|
+
credential
|
|
8
8
|
});
|
|
9
9
|
//#endregion
|
|
10
10
|
exports.planyoOnlineBooking = planyoOnlineBooking;
|
package/dist/app.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.cjs","names":["z"],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nexport const planyoOnlineBooking = defineApp({\n slug: \"planyo_online_booking\",\n auth: \"keystroke\",\n credential
|
|
1
|
+
{"version":3,"file":"app.cjs","names":["z"],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp, type KeystrokeApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nconst credential = {\n generic_api_key: z.string(),\n};\n\nexport const planyoOnlineBooking: KeystrokeApp<\"planyo_online_booking\", typeof credential> = defineApp({\n slug: \"planyo_online_booking\",\n auth: \"keystroke\",\n credential,\n});\n"],"mappings":";;AAGA,MAAM,aAAa,EACjB,8BAAiBA,CAAAA,CAAAA,EAAE,OAAO,EAC5B;AAEA,MAAa,uBAAA,GAAA,2BAAA,UAAA,CAA0F;CACrG,MAAM;CACN,MAAM;CACN;AACF,CAAC"}
|
package/dist/app.d.cts
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
|
+
import { KeystrokeApp } from "@keystrokehq/keystroke/app";
|
|
1
2
|
import { z } from "zod";
|
|
2
3
|
|
|
3
4
|
//#region src/app.d.ts
|
|
4
|
-
declare const
|
|
5
|
-
connectionId: z.ZodString;
|
|
6
|
-
entityId: z.ZodString;
|
|
7
|
-
instanceId: z.ZodString;
|
|
8
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
5
|
+
declare const credential: {
|
|
9
6
|
generic_api_key: z.ZodString;
|
|
10
|
-
}
|
|
7
|
+
};
|
|
8
|
+
declare const planyoOnlineBooking: KeystrokeApp<"planyo_online_booking", typeof credential>;
|
|
11
9
|
//#endregion
|
|
12
10
|
export { planyoOnlineBooking };
|
|
13
11
|
//# sourceMappingURL=app.d.cts.map
|
package/dist/app.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";;;;cAGM,UAAA;mBAEL,CAAA,CAAA,SAAA;AAAA;AAAA,cAEY,mBAAA,EAAqB,YAAY,iCAAiC,UAAA"}
|
package/dist/app.d.mts
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
|
+
import { KeystrokeApp } from "@keystrokehq/keystroke/app";
|
|
1
2
|
import { z } from "zod";
|
|
2
3
|
|
|
3
4
|
//#region src/app.d.ts
|
|
4
|
-
declare const
|
|
5
|
-
connectionId: z.ZodString;
|
|
6
|
-
entityId: z.ZodString;
|
|
7
|
-
instanceId: z.ZodString;
|
|
8
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
5
|
+
declare const credential: {
|
|
9
6
|
generic_api_key: z.ZodString;
|
|
10
|
-
}
|
|
7
|
+
};
|
|
8
|
+
declare const planyoOnlineBooking: KeystrokeApp<"planyo_online_booking", typeof credential>;
|
|
11
9
|
//#endregion
|
|
12
10
|
export { planyoOnlineBooking };
|
|
13
11
|
//# sourceMappingURL=app.d.mts.map
|
package/dist/app.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";;;;cAGM,UAAA;mBAEL,CAAA,CAAA,SAAA;AAAA;AAAA,cAEY,mBAAA,EAAqB,YAAY,iCAAiC,UAAA"}
|
package/dist/app.mjs
CHANGED
package/dist/app.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nexport const planyoOnlineBooking = defineApp({\n slug: \"planyo_online_booking\",\n auth: \"keystroke\",\n credential
|
|
1
|
+
{"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp, type KeystrokeApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nconst credential = {\n generic_api_key: z.string(),\n};\n\nexport const planyoOnlineBooking: KeystrokeApp<\"planyo_online_booking\", typeof credential> = defineApp({\n slug: \"planyo_online_booking\",\n auth: \"keystroke\",\n credential,\n});\n"],"mappings":";;AAOA,MAAa,sBAAgF,UAAU;CACrG,MAAM;CACN,MAAM;CACN,cANA,iBAAiB,EAAE,OAAO,EAM1B;AACF,CAAC"}
|
package/dist/index.d.cts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { planyoOnlineBooking } from "./app.cjs";
|
|
1
2
|
import { planyoOnlineBookingAddReservation } from "./actions/add-reservation.cjs";
|
|
2
3
|
import { planyoOnlineBookingAddUser } from "./actions/add-user.cjs";
|
|
3
4
|
import { planyoOnlineBookingGetAddonList } from "./actions/get-addon-list.cjs";
|
|
@@ -5,6 +6,5 @@ import { planyoOnlineBookingGetCouponList } from "./actions/get-coupon-list.cjs"
|
|
|
5
6
|
import { planyoOnlineBookingGetResourceAvailability } from "./actions/get-resource-availability.cjs";
|
|
6
7
|
import { planyoOnlineBookingGetResourceBlackouts } from "./actions/get-resource-blackouts.cjs";
|
|
7
8
|
import { planyoOnlineBookingGetResourceReviews } from "./actions/get-resource-reviews.cjs";
|
|
8
|
-
import { planyoOnlineBooking } from "./app.cjs";
|
|
9
9
|
import { planyoOnlineBookingCatalog } from "./catalog.cjs";
|
|
10
10
|
export { planyoOnlineBooking, planyoOnlineBookingAddReservation, planyoOnlineBookingAddUser, planyoOnlineBookingCatalog, planyoOnlineBookingGetAddonList, planyoOnlineBookingGetCouponList, planyoOnlineBookingGetResourceAvailability, planyoOnlineBookingGetResourceBlackouts, planyoOnlineBookingGetResourceReviews };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { planyoOnlineBooking } from "./app.mjs";
|
|
1
2
|
import { planyoOnlineBookingAddReservation } from "./actions/add-reservation.mjs";
|
|
2
3
|
import { planyoOnlineBookingAddUser } from "./actions/add-user.mjs";
|
|
3
4
|
import { planyoOnlineBookingGetAddonList } from "./actions/get-addon-list.mjs";
|
|
@@ -5,6 +6,5 @@ import { planyoOnlineBookingGetCouponList } from "./actions/get-coupon-list.mjs"
|
|
|
5
6
|
import { planyoOnlineBookingGetResourceAvailability } from "./actions/get-resource-availability.mjs";
|
|
6
7
|
import { planyoOnlineBookingGetResourceBlackouts } from "./actions/get-resource-blackouts.mjs";
|
|
7
8
|
import { planyoOnlineBookingGetResourceReviews } from "./actions/get-resource-reviews.mjs";
|
|
8
|
-
import { planyoOnlineBooking } from "./app.mjs";
|
|
9
9
|
import { planyoOnlineBookingCatalog } from "./catalog.mjs";
|
|
10
10
|
export { planyoOnlineBooking, planyoOnlineBookingAddReservation, planyoOnlineBookingAddUser, planyoOnlineBookingCatalog, planyoOnlineBookingGetAddonList, planyoOnlineBookingGetCouponList, planyoOnlineBookingGetResourceAvailability, planyoOnlineBookingGetResourceBlackouts, planyoOnlineBookingGetResourceReviews };
|
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.6",
|
|
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": ">=0.1.
|
|
34
|
+
"@keystrokehq/keystroke": ">=0.1.104",
|
|
35
35
|
"zod": "^4.4.3"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|