Skip to content

Commit 8b0ffcd

Browse files
authored
Calendly - List Events - support listing events by organization (#14410)
* support listing events by organization * pnpm-lock.yaml
1 parent 48279c3 commit 8b0ffcd

File tree

13 files changed

+25
-21
lines changed

13 files changed

+25
-21
lines changed

components/calendly_v2/actions/create-invitee-no-show/create-invitee-no-show.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-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.1",
8+
version: "0.0.2",
99
type: "action",
1010
props: {
1111
calendly,

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import calendly from "../../calendly_v2.app.mjs";
33
export default {
44
key: "calendly_v2-create-scheduling-link",
55
name: "Create a Scheduling Link",
6-
description: "Creates a single-use scheduling link. [See the docs](https://calendly.stoplight.io/docs/api-docs/b3A6MzQyNTM0OQ-create-single-use-scheduling-link)",
7-
version: "0.0.3",
6+
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",
88
type: "action",
99
props: {
1010
calendly,

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import calendly from "../../calendly_v2.app.mjs";
55
export default {
66
key: "calendly_v2-get-event",
77
name: "Get Event",
8-
description: "Gets information about an Event associated with a URI. [See docs here](https://developer.calendly.com/api-docs/e2f95ebd44914-get-event).",
9-
version: "0.1.3",
8+
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",
1010
type: "action",
1111
props: {
1212
calendly,

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import calendly from "../../calendly_v2.app.mjs";
33
export default {
44
key: "calendly_v2-list-event-invitees",
55
name: "List Event Invitees",
6-
description: "List invitees for an event. [See the docs](https://calendly.stoplight.io/docs/api-docs/b3A6NTkxNDEx-list-event-invitees)",
7-
version: "0.0.3",
6+
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",
88
type: "action",
99
props: {
1010
calendly,

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

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import calendly from "../../calendly_v2.app.mjs";
33
export default {
44
key: "calendly_v2-list-events",
55
name: "List Events",
6-
description: "List events for an user. [See the docs](https://calendly.stoplight.io/docs/api-docs/b3A6NTkxNDEy-list-events)",
7-
version: "0.0.3",
6+
description: "List events for an user. [See the documentation](https://calendly.stoplight.io/docs/api-docs/b3A6NTkxNDEy-list-events)",
7+
version: "0.0.4",
88
type: "action",
99
props: {
1010
calendly,
@@ -22,7 +22,7 @@ export default {
2222
organization: c.organization,
2323
}),
2424
],
25-
description: "Returns events for a specified user, or leave blank for your own events",
25+
description: "Returns events for a specified user",
2626
optional: true,
2727
},
2828
inviteeEmail: {
@@ -52,7 +52,9 @@ export default {
5252
},
5353
},
5454
async run({ $ }) {
55-
const params = {};
55+
const params = {
56+
organization: this.organization,
57+
};
5658
if (this.inviteeEmail) params.invitee_email = this.inviteeEmail;
5759
if (this.status) params.status = this.status;
5860
if (this.paginate) params.paginate = this.paginate;

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.3",
8+
version: "0.1.4",
99
type: "action",
1010
props: {
1111
calendly_v2: {

components/calendly_v2/calendly_v2.app.mjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,9 @@ export default {
241241
async listEvents(params, uuid, $) {
242242
const user = uuid
243243
? this._buildUserUri(uuid)
244-
: await this.defaultUser($);
244+
: !params?.organization
245+
? await this.defaultUser($)
246+
: undefined;
245247

246248
const opts = {
247249
path: "/scheduled_events",

components/calendly_v2/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pipedream/calendly_v2",
3-
"version": "1.2.0",
3+
"version": "1.2.1",
44
"description": "Pipedream Calendly V2 Components",
55
"main": "calendly_v2.app.mjs",
66
"keywords": [
@@ -13,7 +13,7 @@
1313
"access": "public"
1414
},
1515
"dependencies": {
16-
"@pipedream/platform": "^1.5.1",
16+
"@pipedream/platform": "^3.0.3",
1717
"url": "^0.11.0"
1818
}
1919
}

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.1",
8+
version: "0.0.2",
99
type: "source",
1010
dedupe: "unique",
1111
props: {

components/calendly_v2/sources/invitee-created/invitee-created.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-created",
66
name: "New Invitee Created",
77
description: "Emit new event when a new event is scheduled.",
8-
version: "0.0.2",
8+
version: "0.0.3",
99
type: "source",
1010
dedupe: "unique",
1111
props: {

0 commit comments

Comments
 (0)