diff --git a/components/calendly_v2/actions/create-invitee-no-show/create-invitee-no-show.mjs b/components/calendly_v2/actions/create-invitee-no-show/create-invitee-no-show.mjs index 0283a307b3a6e..4c0c025d913ce 100644 --- a/components/calendly_v2/actions/create-invitee-no-show/create-invitee-no-show.mjs +++ b/components/calendly_v2/actions/create-invitee-no-show/create-invitee-no-show.mjs @@ -1,11 +1,11 @@ -import calendly from "../../calendly_v2.app.mjs"; import { axios } from "@pipedream/platform"; +import calendly from "../../calendly_v2.app.mjs"; export default { key: "calendly_v2-create-invitee-no-show", name: "Create Invitee No Show", description: "Marks an Invitee as a No Show in Calendly. [See the documentation](https://calendly.stoplight.io/docs/api-docs/cebd8c3170790-create-invitee-no-show).", - version: "0.0.2", + version: "0.0.3", type: "action", props: { calendly, diff --git a/components/calendly_v2/actions/create-scheduling-link/create-scheduling-link.mjs b/components/calendly_v2/actions/create-scheduling-link/create-scheduling-link.mjs index 0479916b9a10b..e604d3e8cb730 100644 --- a/components/calendly_v2/actions/create-scheduling-link/create-scheduling-link.mjs +++ b/components/calendly_v2/actions/create-scheduling-link/create-scheduling-link.mjs @@ -4,7 +4,7 @@ export default { key: "calendly_v2-create-scheduling-link", name: "Create a Scheduling Link", description: "Creates a single-use scheduling link. [See the documentation](https://calendly.stoplight.io/docs/api-docs/b3A6MzQyNTM0OQ-create-single-use-scheduling-link)", - version: "0.0.4", + version: "0.0.5", type: "action", props: { calendly, diff --git a/components/calendly_v2/actions/get-event/get-event.mjs b/components/calendly_v2/actions/get-event/get-event.mjs index 9947ee3c86bed..d006be5e09cc5 100644 --- a/components/calendly_v2/actions/get-event/get-event.mjs +++ b/components/calendly_v2/actions/get-event/get-event.mjs @@ -6,7 +6,7 @@ export default { key: "calendly_v2-get-event", name: "Get Event", description: "Gets information about an Event associated with a URI. [See the documentation](https://developer.calendly.com/api-docs/e2f95ebd44914-get-event).", - version: "0.1.4", + version: "0.1.5", type: "action", props: { calendly, diff --git a/components/calendly_v2/actions/list-event-invitees/list-event-invitees.mjs b/components/calendly_v2/actions/list-event-invitees/list-event-invitees.mjs index 43df12321d313..6ab278685053f 100644 --- a/components/calendly_v2/actions/list-event-invitees/list-event-invitees.mjs +++ b/components/calendly_v2/actions/list-event-invitees/list-event-invitees.mjs @@ -4,7 +4,7 @@ export default { key: "calendly_v2-list-event-invitees", name: "List Event Invitees", description: "List invitees for an event. [See the documentation](https://calendly.stoplight.io/docs/api-docs/b3A6NTkxNDEx-list-event-invitees)", - version: "0.0.4", + version: "0.0.5", type: "action", props: { calendly, diff --git a/components/calendly_v2/actions/list-events/list-events.mjs b/components/calendly_v2/actions/list-events/list-events.mjs index 264409eebadae..8748c5665644c 100644 --- a/components/calendly_v2/actions/list-events/list-events.mjs +++ b/components/calendly_v2/actions/list-events/list-events.mjs @@ -4,7 +4,7 @@ export default { key: "calendly_v2-list-events", name: "List Events", description: "List events for an user. [See the documentation](https://calendly.stoplight.io/docs/api-docs/b3A6NTkxNDEy-list-events)", - version: "0.0.4", + version: "0.0.5", type: "action", props: { calendly, diff --git a/components/calendly_v2/actions/list-user-availability-schedules/list-user-availability-schedules.mjs b/components/calendly_v2/actions/list-user-availability-schedules/list-user-availability-schedules.mjs new file mode 100644 index 0000000000000..4532b31a77350 --- /dev/null +++ b/components/calendly_v2/actions/list-user-availability-schedules/list-user-availability-schedules.mjs @@ -0,0 +1,33 @@ +import calendly from "../../calendly_v2.app.mjs"; + +export default { + key: "calendly_v2-list-user-availability-schedules", + name: "List User Availability Schedules", + description: "List the availability schedules of the given user. [See the documentation](https://developer.calendly.com/api-docs/8098de44af94c-list-user-availability-schedules)", + version: "0.0.1", + type: "action", + props: { + calendly, + organization: { + propDefinition: [ + calendly, + "organization", + ], + }, + user: { + propDefinition: [ + calendly, + "user", + (c) => ({ + organization: c.organization, + }), + ], + description: "The ID of the user for whom you want to retrieve availability schedules.", + }, + }, + async run({ $ }) { + const response = await this.calendly.listUserAvailabilitySchedules(this.user, $); + $.export("$summary", `Successfully retrieved availability schedules for user ${this.user}`); + return response; + }, +}; diff --git a/components/calendly_v2/actions/list-webhook-subscriptions/list-webhook-subscriptions.mjs b/components/calendly_v2/actions/list-webhook-subscriptions/list-webhook-subscriptions.mjs index cedb18466768f..8df2e9c2edcc1 100644 --- a/components/calendly_v2/actions/list-webhook-subscriptions/list-webhook-subscriptions.mjs +++ b/components/calendly_v2/actions/list-webhook-subscriptions/list-webhook-subscriptions.mjs @@ -5,7 +5,7 @@ export default { key: "calendly_v2-list-webhook-subscriptions", name: "List Webhook Subscriptions", description: "Get a list of Webhook Subscriptions for an Organization or User with a UUID.", - version: "0.1.4", + version: "0.1.5", type: "action", props: { calendly_v2: { diff --git a/components/calendly_v2/calendly_v2.app.mjs b/components/calendly_v2/calendly_v2.app.mjs index 3b365f1d64609..54c3c20c1eed3 100644 --- a/components/calendly_v2/calendly_v2.app.mjs +++ b/components/calendly_v2/calendly_v2.app.mjs @@ -255,6 +255,20 @@ export default { return this._makeRequest(opts, $); }, + async listUserAvailabilitySchedules(uuid, $) { + const user = this._buildUserUri(uuid); + const opts = { + path: "/user_availability_schedules", + params: { + user, + }, + }; + + return axios( + $ ?? this, + this._makeRequestOpts(opts), + ); + }, async getEvent(uuid, $) { const opts = { path: `/scheduled_events/${uuid}`, diff --git a/components/calendly_v2/package.json b/components/calendly_v2/package.json index 0f1fff7b0563c..76afa3a0bd751 100644 --- a/components/calendly_v2/package.json +++ b/components/calendly_v2/package.json @@ -1,6 +1,6 @@ { "name": "@pipedream/calendly_v2", - "version": "1.2.1", + "version": "1.3.0", "description": "Pipedream Calendly V2 Components", "main": "calendly_v2.app.mjs", "keywords": [ diff --git a/components/calendly_v2/sources/invitee-canceled/invitee-canceled.mjs b/components/calendly_v2/sources/invitee-canceled/invitee-canceled.mjs index f7b7c61fafc23..869cb6ad3b520 100644 --- a/components/calendly_v2/sources/invitee-canceled/invitee-canceled.mjs +++ b/components/calendly_v2/sources/invitee-canceled/invitee-canceled.mjs @@ -5,7 +5,7 @@ export default { key: "calendly_v2-invitee-canceled", name: "New Invitee Canceled", description: "Emit new event when an event is canceled.", - version: "0.0.2", + version: "0.0.3", type: "source", dedupe: "unique", props: { diff --git a/components/calendly_v2/sources/invitee-created/invitee-created.mjs b/components/calendly_v2/sources/invitee-created/invitee-created.mjs index 7c8d21c06a360..c9f7e6eba1bef 100644 --- a/components/calendly_v2/sources/invitee-created/invitee-created.mjs +++ b/components/calendly_v2/sources/invitee-created/invitee-created.mjs @@ -5,7 +5,7 @@ export default { key: "calendly_v2-invitee-created", name: "New Invitee Created", description: "Emit new event when a new event is scheduled.", - version: "0.0.3", + version: "0.0.4", type: "source", dedupe: "unique", props: { diff --git a/components/calendly_v2/sources/new-event-scheduled/new-event-scheduled.mjs b/components/calendly_v2/sources/new-event-scheduled/new-event-scheduled.mjs index f90312dae39d7..7b556bbcae469 100644 --- a/components/calendly_v2/sources/new-event-scheduled/new-event-scheduled.mjs +++ b/components/calendly_v2/sources/new-event-scheduled/new-event-scheduled.mjs @@ -1,12 +1,12 @@ +import { DEFAULT_POLLING_SOURCE_TIMER_INTERVAL } from "@pipedream/platform"; import app from "../../calendly_v2.app.mjs"; import sampleEmit from "./test-event.mjs"; -import { DEFAULT_POLLING_SOURCE_TIMER_INTERVAL } from "@pipedream/platform"; export default { key: "calendly_v2-new-event-scheduled", name: "New Event Scheduled", description: "Emit new event when a event is scheduled.", - version: "0.0.6", + version: "0.0.7", type: "source", dedupe: "unique", props: { diff --git a/components/calendly_v2/sources/routing-form-submission-created/routing-form-submission-created.mjs b/components/calendly_v2/sources/routing-form-submission-created/routing-form-submission-created.mjs index 59266cce30900..3fc202e2daf37 100644 --- a/components/calendly_v2/sources/routing-form-submission-created/routing-form-submission-created.mjs +++ b/components/calendly_v2/sources/routing-form-submission-created/routing-form-submission-created.mjs @@ -5,7 +5,7 @@ export default { key: "calendly_v2-routing-form-submission-created", name: "New Routing Form Submission Created", description: "Emit new event when a new routing form submission is created.", - version: "0.0.2", + version: "0.0.3", type: "source", dedupe: "unique", methods: { diff --git a/components/line_messaging_api/line_messaging_api.app.mjs b/components/line_messaging_api/line_messaging_api.app.mjs index 43ddc4c7b6290..e003d37a606a0 100644 --- a/components/line_messaging_api/line_messaging_api.app.mjs +++ b/components/line_messaging_api/line_messaging_api.app.mjs @@ -8,4 +8,4 @@ export default { console.log(Object.keys(this.$auth)); }, }, -}; \ No newline at end of file +}; diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 861c68fe34fad..68605c4921471 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -7146,8 +7146,7 @@ importers: specifier: ^6.11.1 version: 6.13.1 - components/line_messaging_api: - specifiers: {} + components/line_messaging_api: {} components/linear: dependencies: