Skip to content

Commit b3f70c3

Browse files
authored
17077 app calcom (#17172)
* [APP] Cal.com #17077 Actions - Get Bookable Slots * pnpm update * Update descriptions for startTime and endTime in get-bookable-slots action to include example ISO 8601 format.
1 parent d69b253 commit b3f70c3

File tree

10 files changed

+70
-9
lines changed

10 files changed

+70
-9
lines changed

components/cal_com/actions/create-booking/create-booking.mjs

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

44
export default {
55
key: "cal_com-create-booking",
66
name: "Create Booking",
77
description: "Create a new booking. [See the documentation](https://developer.cal.com/api/api-reference/bookings#create-a-new-booking)",
8-
version: "0.0.2",
8+
version: "0.0.3",
99
type: "action",
1010
props: {
1111
calCom,

components/cal_com/actions/delete-booking/delete-booking.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
key: "cal_com-delete-booking",
55
name: "Delete Booking",
66
description: "Delete an existing booking by its ID. [See the documentation](https://developer.cal.com/api/api-reference/bookings)",
7-
version: "0.0.2",
7+
version: "0.0.3",
88
type: "action",
99
props: {
1010
calCom,
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
import app from "../../cal_com.app.mjs";
2+
3+
export default {
4+
key: "cal_com-get-bookable-slots",
5+
name: "Get Bookable Slots",
6+
description: "Retrieves all bookable slots between a datetime range. [See the documentation](https://cal.com/docs/api-reference/v1/slots/get-all-bookable-slots-between-a-datetime-range#get-all-bookable-slots-between-a-datetime-range)",
7+
version: "0.0.1",
8+
type: "action",
9+
props: {
10+
app,
11+
eventTypeId: {
12+
propDefinition: [
13+
app,
14+
"eventTypeId",
15+
],
16+
},
17+
startTime: {
18+
type: "string",
19+
label: "Start Time",
20+
description: "Start time of the slot lookup (ISO 8601 format), e.g. `2025-04-01T06:00:00Z`",
21+
},
22+
endTime: {
23+
type: "string",
24+
label: "End Time",
25+
description: "End time of the slot lookup (ISO 8601 format), e.g. `2025-04-01T06:00:00Z`",
26+
},
27+
timeZone: {
28+
propDefinition: [
29+
app,
30+
"timeZone",
31+
],
32+
optional: true,
33+
},
34+
isTeamEvent: {
35+
type: "boolean",
36+
label: "Is Team Event",
37+
description: "True if the event is a team event",
38+
optional: true,
39+
},
40+
},
41+
async run({ $ }) {
42+
const {
43+
app,
44+
...params
45+
} = this;
46+
47+
const response = await app.getBookableSlots({
48+
$,
49+
params,
50+
});
51+
52+
$.export("$summary", "Successfully retrieved bookable slots");
53+
return response;
54+
},
55+
};

components/cal_com/actions/get-booking/get-booking.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
key: "cal_com-get-booking",
55
name: "Get Booking",
66
description: "Retrieve a booking by its ID. [See the documentation](https://developer.cal.com/api/api-reference/bookings#find-a-booking)",
7-
version: "0.0.2",
7+
version: "0.0.3",
88
type: "action",
99
props: {
1010
calCom,

components/cal_com/cal_com.app.mjs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,5 +157,11 @@ export default {
157157
...args,
158158
});
159159
},
160+
async getBookableSlots(args = {}) {
161+
return this._makeRequest({
162+
path: "slots",
163+
...args,
164+
});
165+
},
160166
},
161167
};

components/cal_com/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pipedream/cal_com",
3-
"version": "0.0.5",
3+
"version": "0.0.6",
44
"description": "Pipedream Cal.com Components",
55
"main": "cal_com.app.mjs",
66
"keywords": [

components/cal_com/sources/booking-cancelled/booking-cancelled.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default {
55
key: "cal_com-booking-cancelled",
66
name: "Booking Cancelled",
77
description: "Emit new event when a booking is cancelled.",
8-
version: "0.0.2",
8+
version: "0.0.3",
99
type: "source",
1010
dedupe: "unique",
1111
methods: {

components/cal_com/sources/booking-created/booking-created.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default {
55
key: "cal_com-booking-created",
66
name: "New Booking Created",
77
description: "Emit new event when a new booking is created.",
8-
version: "0.0.2",
8+
version: "0.0.3",
99
type: "source",
1010
dedupe: "unique",
1111
methods: {

components/cal_com/sources/booking-ended/booking-ended.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default {
55
key: "cal_com-booking-ended",
66
name: "Booking Ended",
77
description: "Emit new event when a booking ends.",
8-
version: "0.0.2",
8+
version: "0.0.3",
99
type: "source",
1010
dedupe: "unique",
1111
methods: {

components/cal_com/sources/booking-rescheduled/booking-rescheduled.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default {
55
key: "cal_com-booking-rescheduled",
66
name: "Booking Rescheduled",
77
description: "Emit new event when a booking is rescheduled.",
8-
version: "0.0.2",
8+
version: "0.0.3",
99
type: "source",
1010
dedupe: "unique",
1111
methods: {

0 commit comments

Comments
 (0)