Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions components/cal_com/actions/create-booking/create-booking.mjs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import calCom from "../../cal_com.app.mjs";
import { ConfigurationError } from "@pipedream/platform";
import calCom from "../../cal_com.app.mjs";

export default {
key: "cal_com-create-booking",
name: "Create Booking",
description: "Create a new booking. [See the documentation](https://developer.cal.com/api/api-reference/bookings#create-a-new-booking)",
version: "0.0.2",
version: "0.0.3",
type: "action",
props: {
calCom,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "cal_com-delete-booking",
name: "Delete Booking",
description: "Delete an existing booking by its ID. [See the documentation](https://developer.cal.com/api/api-reference/bookings)",
version: "0.0.2",
version: "0.0.3",
type: "action",
props: {
calCom,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
import app from "../../cal_com.app.mjs";

export default {
key: "cal_com-get-bookable-slots",
name: "Get Bookable Slots",
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)",
version: "0.0.1",
type: "action",
props: {
app,
eventTypeId: {
propDefinition: [
app,
"eventTypeId",
],
},
startTime: {
type: "string",
label: "Start Time",
description: "Start time of the slot lookup (ISO 8601 format)",
},
endTime: {
type: "string",
label: "End Time",
description: "End time of the slot lookup (ISO 8601 format)",
},
timeZone: {
propDefinition: [
app,
"timeZone",
],
optional: true,
},
isTeamEvent: {
type: "boolean",
label: "Is Team Event",
description: "True if the event is a team event",
optional: true,
},
},
async run({ $ }) {
const {
app,
...params
} = this;

const response = await app.getBookableSlots({
$,
params,
});

$.export("$summary", "Successfully retrieved bookable slots");
return response;
},
};
2 changes: 1 addition & 1 deletion components/cal_com/actions/get-booking/get-booking.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "cal_com-get-booking",
name: "Get Booking",
description: "Retrieve a booking by its ID. [See the documentation](https://developer.cal.com/api/api-reference/bookings#find-a-booking)",
version: "0.0.2",
version: "0.0.3",
type: "action",
props: {
calCom,
Expand Down
6 changes: 6 additions & 0 deletions components/cal_com/cal_com.app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -157,5 +157,11 @@ export default {
...args,
});
},
async getBookableSlots(args = {}) {
return this._makeRequest({
path: "slots",
...args,
});
},
},
};
2 changes: 1 addition & 1 deletion components/cal_com/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pipedream/cal_com",
"version": "0.0.5",
"version": "0.0.6",
"description": "Pipedream Cal.com Components",
"main": "cal_com.app.mjs",
"keywords": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
export default {
...common,
key: "cal_com-booking-cancelled",
name: "Booking Cancelled",

Check warning on line 6 in components/cal_com/sources/booking-cancelled/booking-cancelled.mjs

View workflow job for this annotation

GitHub Actions / Lint Code Base

Source names should start with "New". See https://pipedream.com/docs/components/guidelines/#source-name
description: "Emit new event when a booking is cancelled.",
version: "0.0.2",
version: "0.0.3",
type: "source",
dedupe: "unique",
methods: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
key: "cal_com-booking-created",
name: "New Booking Created",
description: "Emit new event when a new booking is created.",
version: "0.0.2",
version: "0.0.3",
type: "source",
dedupe: "unique",
methods: {
Expand Down
2 changes: 1 addition & 1 deletion components/cal_com/sources/booking-ended/booking-ended.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
export default {
...common,
key: "cal_com-booking-ended",
name: "Booking Ended",

Check warning on line 6 in components/cal_com/sources/booking-ended/booking-ended.mjs

View workflow job for this annotation

GitHub Actions / Lint Code Base

Source names should start with "New". See https://pipedream.com/docs/components/guidelines/#source-name
description: "Emit new event when a booking ends.",
version: "0.0.2",
version: "0.0.3",
type: "source",
dedupe: "unique",
methods: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
export default {
...common,
key: "cal_com-booking-rescheduled",
name: "Booking Rescheduled",

Check warning on line 6 in components/cal_com/sources/booking-rescheduled/booking-rescheduled.mjs

View workflow job for this annotation

GitHub Actions / Lint Code Base

Source names should start with "New". See https://pipedream.com/docs/components/guidelines/#source-name
description: "Emit new event when a booking is rescheduled.",
version: "0.0.2",
version: "0.0.3",
type: "source",
dedupe: "unique",
methods: {
Expand Down
10 changes: 5 additions & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading