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
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion components/calendly_v2/actions/get-event/get-event.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion components/calendly_v2/actions/list-events/list-events.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import calendly from "../../calendly_v2.app.mjs";

export default {
key: "calendly_v2-list-user-availability-schedules",
name: "List User Availability Schecdules",
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;
},
};
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
14 changes: 14 additions & 0 deletions components/calendly_v2/calendly_v2.app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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}`,
Expand Down
2 changes: 1 addition & 1 deletion components/calendly_v2/package.json
Original file line number Diff line number Diff line change
@@ -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": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
Original file line number Diff line number Diff line change
@@ -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: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
14 changes: 6 additions & 8 deletions pnpm-lock.yaml

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