Skip to content

Commit 98dab01

Browse files
15214 action calendly list user availability schedules (#15923)
* [ACTION] Calendly - List User Availability Schedules #15214 Actions - List User Availability Schedules * update pnpm * Update components/calendly_v2/actions/list-user-availability-schedules/list-user-availability-schedules.mjs Co-authored-by: Guilherme Falcão <[email protected]> * Update components/calendly_v2/actions/list-user-availability-schedules/list-user-availability-schedules.mjs Co-authored-by: Guilherme Falcão <[email protected]> * Update components/calendly_v2/calendly_v2.app.mjs Co-authored-by: Guilherme Falcão <[email protected]> * pnpm update --------- Co-authored-by: Guilherme Falcão <[email protected]>
1 parent c0edb4b commit 98dab01

File tree

15 files changed

+62
-16
lines changed

15 files changed

+62
-16
lines changed

components/calendly_v2/actions/create-invitee-no-show/create-invitee-no-show.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import calendly from "../../calendly_v2.app.mjs";
21
import { axios } from "@pipedream/platform";
2+
import calendly from "../../calendly_v2.app.mjs";
33

44
export default {
55
key: "calendly_v2-create-invitee-no-show",
66
name: "Create Invitee No Show",
77
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).",
8-
version: "0.0.2",
8+
version: "0.0.3",
99
type: "action",
1010
props: {
1111
calendly,

components/calendly_v2/actions/create-scheduling-link/create-scheduling-link.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
key: "calendly_v2-create-scheduling-link",
55
name: "Create a Scheduling Link",
66
description: "Creates a single-use scheduling link. [See the documentation](https://calendly.stoplight.io/docs/api-docs/b3A6MzQyNTM0OQ-create-single-use-scheduling-link)",
7-
version: "0.0.4",
7+
version: "0.0.5",
88
type: "action",
99
props: {
1010
calendly,

components/calendly_v2/actions/get-event/get-event.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default {
66
key: "calendly_v2-get-event",
77
name: "Get Event",
88
description: "Gets information about an Event associated with a URI. [See the documentation](https://developer.calendly.com/api-docs/e2f95ebd44914-get-event).",
9-
version: "0.1.4",
9+
version: "0.1.5",
1010
type: "action",
1111
props: {
1212
calendly,

components/calendly_v2/actions/list-event-invitees/list-event-invitees.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
key: "calendly_v2-list-event-invitees",
55
name: "List Event Invitees",
66
description: "List invitees for an event. [See the documentation](https://calendly.stoplight.io/docs/api-docs/b3A6NTkxNDEx-list-event-invitees)",
7-
version: "0.0.4",
7+
version: "0.0.5",
88
type: "action",
99
props: {
1010
calendly,

components/calendly_v2/actions/list-events/list-events.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
key: "calendly_v2-list-events",
55
name: "List Events",
66
description: "List events for an user. [See the documentation](https://calendly.stoplight.io/docs/api-docs/b3A6NTkxNDEy-list-events)",
7-
version: "0.0.4",
7+
version: "0.0.5",
88
type: "action",
99
props: {
1010
calendly,
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
import calendly from "../../calendly_v2.app.mjs";
2+
3+
export default {
4+
key: "calendly_v2-list-user-availability-schedules",
5+
name: "List User Availability Schedules",
6+
description: "List the availability schedules of the given user. [See the documentation](https://developer.calendly.com/api-docs/8098de44af94c-list-user-availability-schedules)",
7+
version: "0.0.1",
8+
type: "action",
9+
props: {
10+
calendly,
11+
organization: {
12+
propDefinition: [
13+
calendly,
14+
"organization",
15+
],
16+
},
17+
user: {
18+
propDefinition: [
19+
calendly,
20+
"user",
21+
(c) => ({
22+
organization: c.organization,
23+
}),
24+
],
25+
description: "The ID of the user for whom you want to retrieve availability schedules.",
26+
},
27+
},
28+
async run({ $ }) {
29+
const response = await this.calendly.listUserAvailabilitySchedules(this.user, $);
30+
$.export("$summary", `Successfully retrieved availability schedules for user ${this.user}`);
31+
return response;
32+
},
33+
};

components/calendly_v2/actions/list-webhook-subscriptions/list-webhook-subscriptions.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default {
55
key: "calendly_v2-list-webhook-subscriptions",
66
name: "List Webhook Subscriptions",
77
description: "Get a list of Webhook Subscriptions for an Organization or User with a UUID.",
8-
version: "0.1.4",
8+
version: "0.1.5",
99
type: "action",
1010
props: {
1111
calendly_v2: {

components/calendly_v2/calendly_v2.app.mjs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,20 @@ export default {
255255

256256
return this._makeRequest(opts, $);
257257
},
258+
async listUserAvailabilitySchedules(uuid, $) {
259+
const user = this._buildUserUri(uuid);
260+
const opts = {
261+
path: "/user_availability_schedules",
262+
params: {
263+
user,
264+
},
265+
};
266+
267+
return axios(
268+
$ ?? this,
269+
this._makeRequestOpts(opts),
270+
);
271+
},
258272
async getEvent(uuid, $) {
259273
const opts = {
260274
path: `/scheduled_events/${uuid}`,

components/calendly_v2/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pipedream/calendly_v2",
3-
"version": "1.2.1",
3+
"version": "1.3.0",
44
"description": "Pipedream Calendly V2 Components",
55
"main": "calendly_v2.app.mjs",
66
"keywords": [

components/calendly_v2/sources/invitee-canceled/invitee-canceled.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default {
55
key: "calendly_v2-invitee-canceled",
66
name: "New Invitee Canceled",
77
description: "Emit new event when an event is canceled.",
8-
version: "0.0.2",
8+
version: "0.0.3",
99
type: "source",
1010
dedupe: "unique",
1111
props: {

0 commit comments

Comments
 (0)