@activepieces/piece-savvycal 0.0.1 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +4 -4
- package/src/i18n/de.json +74 -0
- package/src/i18n/es.json +74 -0
- package/src/i18n/fr.json +101 -0
- package/src/i18n/ja.json +74 -0
- package/src/i18n/nl.json +74 -0
- package/src/i18n/pt.json +74 -0
- package/src/i18n/ru.json +74 -0
- package/src/i18n/translation.json +127 -0
- package/src/i18n/vi.json +74 -0
- package/src/i18n/zh.json +74 -0
- package/src/index.d.ts +3 -2
- package/src/index.js +27 -36
- package/src/index.js.map +1 -1
- package/src/lib/actions/cancel-event.d.ts +3 -1
- package/src/lib/actions/cancel-event.js +3 -3
- package/src/lib/actions/cancel-event.js.map +1 -1
- package/src/lib/actions/create-event.d.ts +10 -2
- package/src/lib/actions/create-event.js +32 -17
- package/src/lib/actions/create-event.js.map +1 -1
- package/src/lib/actions/delete-scheduling-link.d.ts +10 -0
- package/src/lib/actions/delete-scheduling-link.js +67 -0
- package/src/lib/actions/delete-scheduling-link.js.map +1 -0
- package/src/lib/actions/duplicate-scheduling-link.d.ts +10 -0
- package/src/lib/actions/duplicate-scheduling-link.js +63 -0
- package/src/lib/actions/duplicate-scheduling-link.js.map +1 -0
- package/src/lib/actions/find-events-by-email.d.ts +3 -1
- package/src/lib/actions/find-events-by-email.js +3 -3
- package/src/lib/actions/find-events-by-email.js.map +1 -1
- package/src/lib/actions/get-current-user.d.ts +3 -1
- package/src/lib/actions/get-current-user.js +3 -3
- package/src/lib/actions/get-current-user.js.map +1 -1
- package/src/lib/actions/get-event.d.ts +3 -1
- package/src/lib/actions/get-event.js +3 -3
- package/src/lib/actions/get-event.js.map +1 -1
- package/src/lib/actions/get-link-slots.d.ts +10 -0
- package/src/lib/actions/get-link-slots.js +70 -0
- package/src/lib/actions/get-link-slots.js.map +1 -0
- package/src/lib/actions/get-scheduling-link.d.ts +10 -0
- package/src/lib/actions/get-scheduling-link.js +63 -0
- package/src/lib/actions/get-scheduling-link.js.map +1 -0
- package/src/lib/actions/get-workflow-rules.d.ts +7 -0
- package/src/lib/actions/get-workflow-rules.js +50 -0
- package/src/lib/actions/get-workflow-rules.js.map +1 -0
- package/src/lib/actions/list-events.d.ts +10 -3
- package/src/lib/actions/list-events.js +70 -24
- package/src/lib/actions/list-events.js.map +1 -1
- package/src/lib/actions/list-scheduling-links.d.ts +7 -1
- package/src/lib/actions/list-scheduling-links.js +30 -17
- package/src/lib/actions/list-scheduling-links.js.map +1 -1
- package/src/lib/actions/list-workflows.d.ts +3 -0
- package/src/lib/actions/list-workflows.js +35 -0
- package/src/lib/actions/list-workflows.js.map +1 -0
- package/src/lib/actions/toggle-scheduling-link.d.ts +10 -0
- package/src/lib/actions/toggle-scheduling-link.js +63 -0
- package/src/lib/actions/toggle-scheduling-link.js.map +1 -0
- package/src/lib/auth.d.ts +14 -0
- package/src/lib/auth.js +59 -0
- package/src/lib/auth.js.map +1 -0
- package/src/lib/common/index.d.ts +13 -0
- package/src/lib/common/index.js +98 -29
- package/src/lib/common/index.js.map +1 -1
- package/src/lib/triggers/new-event.d.ts +36 -4
- package/src/lib/triggers/new-event.js +85 -18
- package/src/lib/triggers/new-event.js.map +1 -1
- package/src/lib/triggers/new-poll-response.d.ts +18 -0
- package/src/lib/triggers/new-poll-response.js +81 -0
- package/src/lib/triggers/new-poll-response.js.map +1 -0
- package/src/lib/triggers/workflow-action-triggered.d.ts +10 -0
- package/src/lib/triggers/workflow-action-triggered.js +65 -0
- package/src/lib/triggers/workflow-action-triggered.js.map +1 -0
- package/src/lib/common/webhook-trigger-factory.d.ts +0 -7
- package/src/lib/common/webhook-trigger-factory.js +0 -96
- package/src/lib/common/webhook-trigger-factory.js.map +0 -1
- package/src/lib/triggers/booking-canceled.d.ts +0 -1
- package/src/lib/triggers/booking-canceled.js +0 -11
- package/src/lib/triggers/booking-canceled.js.map +0 -1
- package/src/lib/triggers/booking-rescheduled.d.ts +0 -1
- package/src/lib/triggers/booking-rescheduled.js +0 -11
- package/src/lib/triggers/booking-rescheduled.js.map +0 -1
- package/src/lib/triggers/new-booking.d.ts +0 -1
- package/src/lib/triggers/new-booking.js +0 -11
- package/src/lib/triggers/new-booking.js.map +0 -1
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Scheduling tool that lets invitees overlay their calendar when picking a time.": "Scheduling tool that lets invitees overlay their calendar when picking a time.",
|
|
3
|
+
"To get your SavvyCal API token:\n1. Log in to your SavvyCal account at https://savvycal.com\n2. Go to **Settings > Developers**\n3. Under **Personal Tokens**, click **Create a token**\n4. Give it a name, then click the **...** menu next to it to view the token\n5. Copy the **Private Key** (starts with `pt_secret_`) — not the Public Key\n\n**Note:** Keep this token secret — it gives full access to your SavvyCal account.": "To get your SavvyCal API token:\n1. Log in to your SavvyCal account at https://savvycal.com\n2. Go to **Settings > Developers**\n3. Under **Personal Tokens**, click **Create a token**\n4. Give it a name, then click the **...** menu next to it to view the token\n5. Copy the **Private Key** (starts with `pt_secret_`) — not the Public Key\n\n**Note:** Keep this token secret — it gives full access to your SavvyCal account.",
|
|
4
|
+
"Personal Access Token (Private Key)": "Personal Access Token (Private Key)",
|
|
5
|
+
"Get Current User": "Get Current User",
|
|
6
|
+
"List Events": "List Events",
|
|
7
|
+
"Get Event": "Get Event",
|
|
8
|
+
"Cancel Event": "Cancel Event",
|
|
9
|
+
"Create Event": "Create Event",
|
|
10
|
+
"Find Events by Attendee Email": "Find Events by Attendee Email",
|
|
11
|
+
"List Scheduling Links": "List Scheduling Links",
|
|
12
|
+
"Custom API Call": "Custom API Call",
|
|
13
|
+
"Retrieves the profile of the currently authenticated SavvyCal user.": "Retrieves the profile of the currently authenticated SavvyCal user.",
|
|
14
|
+
"Returns a list of scheduled meetings from your SavvyCal account.": "Returns a list of scheduled meetings from your SavvyCal account.",
|
|
15
|
+
"Retrieves the details of a specific scheduled meeting by its ID.": "Retrieves the details of a specific scheduled meeting by its ID.",
|
|
16
|
+
"Cancels a scheduled meeting in SavvyCal.": "Cancels a scheduled meeting in SavvyCal.",
|
|
17
|
+
"Books a meeting on a scheduling link at a specific time slot.": "Books a meeting on a scheduling link at a specific time slot.",
|
|
18
|
+
"Returns all events where the attendee's email matches the given address.": "Returns all events where the attendee's email matches the given address.",
|
|
19
|
+
"Returns all scheduling links configured in your SavvyCal account.": "Returns all scheduling links configured in your SavvyCal account.",
|
|
20
|
+
"Get Scheduling Link": "Get Scheduling Link",
|
|
21
|
+
"Retrieves the details of a specific scheduling link by its ID.": "Retrieves the details of a specific scheduling link by its ID.",
|
|
22
|
+
"Delete Scheduling Link": "Delete Scheduling Link",
|
|
23
|
+
"Permanently deletes a scheduling link from your SavvyCal account.": "Permanently deletes a scheduling link from your SavvyCal account.",
|
|
24
|
+
"Duplicate Scheduling Link": "Duplicate Scheduling Link",
|
|
25
|
+
"Creates a copy of an existing scheduling link.": "Creates a copy of an existing scheduling link.",
|
|
26
|
+
"Toggle Scheduling Link": "Toggle Scheduling Link",
|
|
27
|
+
"Switches a scheduling link between active and disabled states.": "Switches a scheduling link between active and disabled states.",
|
|
28
|
+
"Get Available Slots": "Get Available Slots",
|
|
29
|
+
"Returns available time slots for booking on a scheduling link. Useful for displaying availability or for picking a slot before calling Create Event.": "Returns available time slots for booking on a scheduling link. Useful for displaying availability or for picking a slot before calling Create Event.",
|
|
30
|
+
"List Workflows": "List Workflows",
|
|
31
|
+
"Returns all workflows configured in your SavvyCal account.": "Returns all workflows configured in your SavvyCal account.",
|
|
32
|
+
"Get Workflow Rules": "Get Workflow Rules",
|
|
33
|
+
"Returns the rules configured for a specific workflow.": "Returns the rules configured for a specific workflow.",
|
|
34
|
+
"Select the scheduling link to retrieve.": "Select the scheduling link to retrieve.",
|
|
35
|
+
"Select the scheduling link to delete. This action cannot be undone.": "Select the scheduling link to delete. This action cannot be undone.",
|
|
36
|
+
"Select the scheduling link to duplicate.": "Select the scheduling link to duplicate.",
|
|
37
|
+
"Select the scheduling link to toggle.": "Select the scheduling link to toggle.",
|
|
38
|
+
"Select the scheduling link to query slots for.": "Select the scheduling link to query slots for.",
|
|
39
|
+
"Workflow": "Workflow",
|
|
40
|
+
"Select the workflow whose rules you want to retrieve.": "Select the workflow whose rules you want to retrieve.",
|
|
41
|
+
"Failed to load workflows.": "Failed to load workflows.",
|
|
42
|
+
"Make a custom API call to a specific endpoint": "Make a custom API call to a specific endpoint",
|
|
43
|
+
"State": "State",
|
|
44
|
+
"Start After": "Start After",
|
|
45
|
+
"Start Before": "Start Before",
|
|
46
|
+
"Scheduling Link": "Scheduling Link",
|
|
47
|
+
"Scheduling Links": "Scheduling Links",
|
|
48
|
+
"Maximum Results": "Maximum Results",
|
|
49
|
+
"Event ID": "Event ID",
|
|
50
|
+
"Start Time": "Start Time",
|
|
51
|
+
"End Time": "End Time",
|
|
52
|
+
"Attendee Name": "Attendee Name",
|
|
53
|
+
"Attendee Email": "Attendee Email",
|
|
54
|
+
"Method": "Method",
|
|
55
|
+
"Headers": "Headers",
|
|
56
|
+
"Query Parameters": "Query Parameters",
|
|
57
|
+
"Body Type": "Body Type",
|
|
58
|
+
"Body": "Body",
|
|
59
|
+
"Response is Binary ?": "Response is Binary ?",
|
|
60
|
+
"No Error on Failure": "No Error on Failure",
|
|
61
|
+
"Timeout (in seconds)": "Timeout (in seconds)",
|
|
62
|
+
"Follow redirects": "Follow redirects",
|
|
63
|
+
"Filter events by their current status. Leave empty to return all statuses.": "Filter events by their current status. Leave empty to return all statuses.",
|
|
64
|
+
"Only return events that start after this date and time.": "Only return events that start after this date and time.",
|
|
65
|
+
"Only return events that start before this date and time.": "Only return events that start before this date and time.",
|
|
66
|
+
"Only return events booked through the selected scheduling links. Leave empty for all links.": "Only return events booked through the selected scheduling links. Leave empty for all links.",
|
|
67
|
+
"Only trigger for events on the selected scheduling links. Leave empty to trigger for all links.": "Only trigger for events on the selected scheduling links. Leave empty to trigger for all links.",
|
|
68
|
+
"Maximum number of events to return. Leave empty to return all matching events.": "Maximum number of events to return. Leave empty to return all matching events.",
|
|
69
|
+
"The unique ID of the event. You can find this in the event URL in SavvyCal, or from the output of a trigger or List Events action.": "The unique ID of the event. You can find this in the event URL in SavvyCal, or from the output of a trigger or List Events action.",
|
|
70
|
+
"The unique ID of the event to cancel. You can find this from the output of a trigger or the List Events / Get Event actions.": "The unique ID of the event to cancel. You can find this from the output of a trigger or the List Events / Get Event actions.",
|
|
71
|
+
"Select the scheduling link to book a meeting on.": "Select the scheduling link to book a meeting on.",
|
|
72
|
+
"The start date and time of the meeting. Must match an available slot on the scheduling link.": "The start date and time of the meeting. Must match an available slot on the scheduling link.",
|
|
73
|
+
"The End date and time of the meeting": "The End date and time of the meeting",
|
|
74
|
+
"Full name of the person booking the meeting.": "Full name of the person booking the meeting.",
|
|
75
|
+
"Email address of the person booking the meeting.": "Email address of the person booking the meeting.",
|
|
76
|
+
"Time Zone": "Time Zone",
|
|
77
|
+
"Attendee's local time zone in Olson format (e.g. America/New_York, Europe/London, Africa/Lagos).": "Attendee's local time zone in Olson format (e.g. America/New_York, Europe/London, Africa/Lagos).",
|
|
78
|
+
"The email address of the attendee to search for.": "The email address of the attendee to search for.",
|
|
79
|
+
"Only search events starting after this date. Use this to limit the search scope and improve performance.": "Only search events starting after this date. Use this to limit the search scope and improve performance.",
|
|
80
|
+
"Only search events starting before this date.": "Only search events starting before this date.",
|
|
81
|
+
"Authorization headers are injected automatically from your connection.": "Authorization headers are injected automatically from your connection.",
|
|
82
|
+
"Enable for files like PDFs, images, etc.": "Enable for files like PDFs, images, etc.",
|
|
83
|
+
"Confirmed": "Confirmed",
|
|
84
|
+
"Canceled": "Canceled",
|
|
85
|
+
"GET": "GET",
|
|
86
|
+
"POST": "POST",
|
|
87
|
+
"PATCH": "PATCH",
|
|
88
|
+
"PUT": "PUT",
|
|
89
|
+
"DELETE": "DELETE",
|
|
90
|
+
"HEAD": "HEAD",
|
|
91
|
+
"None": "None",
|
|
92
|
+
"JSON": "JSON",
|
|
93
|
+
"Form Data": "Form Data",
|
|
94
|
+
"Raw": "Raw",
|
|
95
|
+
"New Event": "New Event",
|
|
96
|
+
"Triggers when a SavvyCal event occurs. Select one or more event types, or leave empty to trigger on all types.": "Triggers when a SavvyCal event occurs. Select one or more event types, or leave empty to trigger on all types.",
|
|
97
|
+
"Event Types": "Event Types",
|
|
98
|
+
"Select which event types to trigger on. Leave empty to trigger on all event types.": "Select which event types to trigger on. Leave empty to trigger on all event types.",
|
|
99
|
+
"New Poll Response": "New Poll Response",
|
|
100
|
+
"Triggers when a poll response is created or updated in SavvyCal.": "Triggers when a poll response is created or updated in SavvyCal.",
|
|
101
|
+
"Poll Response Types": "Poll Response Types",
|
|
102
|
+
"Select which poll response types to trigger on. Leave empty to trigger on all poll response types.": "Select which poll response types to trigger on. Leave empty to trigger on all poll response types.",
|
|
103
|
+
"Triggers when a workflow action is triggered in SavvyCal.": "Triggers when a workflow action is triggered in SavvyCal.",
|
|
104
|
+
"Event Created": "Event Created",
|
|
105
|
+
"Event Requested": "Event Requested",
|
|
106
|
+
"Event Approved": "Event Approved",
|
|
107
|
+
"Event Declined": "Event Declined",
|
|
108
|
+
"Event Rescheduled": "Event Rescheduled",
|
|
109
|
+
"Event Changed": "Event Changed",
|
|
110
|
+
"Event Canceled": "Event Canceled",
|
|
111
|
+
"Checkout Pending": "Checkout Pending",
|
|
112
|
+
"Checkout Expired": "Checkout Expired",
|
|
113
|
+
"Checkout Completed": "Checkout Completed",
|
|
114
|
+
"Attendee Added": "Attendee Added",
|
|
115
|
+
"Attendee Canceled": "Attendee Canceled",
|
|
116
|
+
"Attendee Rescheduled": "Attendee Rescheduled",
|
|
117
|
+
"Poll Response Created": "Poll Response Created",
|
|
118
|
+
"Poll Response Updated": "Poll Response Updated",
|
|
119
|
+
"Workflow Action Triggered": "Workflow Action Triggered",
|
|
120
|
+
"Please connect your account first": "Please connect your account first",
|
|
121
|
+
"Failed to load scheduling links.": "Failed to load scheduling links.",
|
|
122
|
+
"Failed to load scheduling links. Check your connection.": "Failed to load scheduling links. Check your connection.",
|
|
123
|
+
"Team": "Team",
|
|
124
|
+
"Filter scheduling links by team. Leave empty to show all teams.": "Filter scheduling links by team. Leave empty to show all teams.",
|
|
125
|
+
"Personal": "Personal",
|
|
126
|
+
"Failed to load teams.": "Failed to load teams."
|
|
127
|
+
}
|
package/src/i18n/vi.json
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Personal Access Token (Private Key)": "Personal Access Token (Private Key)",
|
|
3
|
+
"Cancel Event": "Cancel Event",
|
|
4
|
+
"Cancels a scheduled meeting in SavvyCal.": "Cancels a scheduled meeting in SavvyCal.",
|
|
5
|
+
"Create Event": "Create Event",
|
|
6
|
+
"Books a meeting on a scheduling link at a specific time slot.": "Books a meeting on a scheduling link at a specific time slot.",
|
|
7
|
+
"Find Events by Attendee Email": "Find Events by Attendee Email",
|
|
8
|
+
"Returns all events where the attendee's email matches the given address.": "Returns all events where the attendee's email matches the given address.",
|
|
9
|
+
"Get Current User": "Get Current User",
|
|
10
|
+
"Retrieves the profile of the currently authenticated SavvyCal user.": "Retrieves the profile of the currently authenticated SavvyCal user.",
|
|
11
|
+
"Get Event": "Get Event",
|
|
12
|
+
"Retrieves the details of a specific scheduled meeting by its ID.": "Retrieves the details of a specific scheduled meeting by its ID.",
|
|
13
|
+
"List Events": "List Events",
|
|
14
|
+
"Returns a list of scheduled meetings from your SavvyCal account.": "Returns a list of scheduled meetings from your SavvyCal account.",
|
|
15
|
+
"List Scheduling Links": "List Scheduling Links",
|
|
16
|
+
"Returns all scheduling links configured in your SavvyCal account.": "Returns all scheduling links configured in your SavvyCal account.",
|
|
17
|
+
"New Event": "New Event",
|
|
18
|
+
"Triggers when a SavvyCal event occurs. Select one or more event types, or leave empty to trigger on all types.": "Triggers when a SavvyCal event occurs. Select one or more event types, or leave empty to trigger on all types.",
|
|
19
|
+
"Event ID": "Event ID",
|
|
20
|
+
"The unique ID of the event to cancel. You can find this from the output of a trigger or the List Events / Get Event actions.": "The unique ID of the event to cancel. You can find this from the output of a trigger or the List Events / Get Event actions.",
|
|
21
|
+
"The unique ID of the event. You can find this in the event URL in SavvyCal, or from the output of a trigger or List Events action.": "The unique ID of the event. You can find this in the event URL in SavvyCal, or from the output of a trigger or List Events action.",
|
|
22
|
+
"Scheduling Link": "Scheduling Link",
|
|
23
|
+
"Scheduling Links": "Scheduling Links",
|
|
24
|
+
"Select the scheduling link to book a meeting on.": "Select the scheduling link to book a meeting on.",
|
|
25
|
+
"Only trigger for events on the selected scheduling links. Leave empty to trigger for all links.": "Only trigger for events on the selected scheduling links. Leave empty to trigger for all links.",
|
|
26
|
+
"Only return events booked through the selected scheduling links. Leave empty for all links.": "Only return events booked through the selected scheduling links. Leave empty for all links.",
|
|
27
|
+
"Start Time": "Start Time",
|
|
28
|
+
"The start date and time of the meeting. Must match an available slot on the scheduling link.": "The start date and time of the meeting. Must match an available slot on the scheduling link.",
|
|
29
|
+
"End Time": "End Time",
|
|
30
|
+
"The End date and time of the meeting": "The End date and time of the meeting",
|
|
31
|
+
"Attendee Name": "Attendee Name",
|
|
32
|
+
"Full name of the person booking the meeting.": "Full name of the person booking the meeting.",
|
|
33
|
+
"Attendee Email": "Attendee Email",
|
|
34
|
+
"Email address of the person booking the meeting.": "Email address of the person booking the meeting.",
|
|
35
|
+
"The email address of the attendee to search for.": "The email address of the attendee to search for.",
|
|
36
|
+
"Start After": "Start After",
|
|
37
|
+
"Only return events that start after this date and time.": "Only return events that start after this date and time.",
|
|
38
|
+
"Only search events starting after this date. Use this to limit the search scope and improve performance.": "Only search events starting after this date. Use this to limit the search scope and improve performance.",
|
|
39
|
+
"Start Before": "Start Before",
|
|
40
|
+
"Only return events that start before this date and time.": "Only return events that start before this date and time.",
|
|
41
|
+
"Only search events starting before this date.": "Only search events starting before this date.",
|
|
42
|
+
"State": "State",
|
|
43
|
+
"Filter events by their current status. Leave empty to return all statuses.": "Filter events by their current status. Leave empty to return all statuses.",
|
|
44
|
+
"Maximum Results": "Maximum Results",
|
|
45
|
+
"Maximum number of events to return. Leave empty to return all matching events.": "Maximum number of events to return. Leave empty to return all matching events.",
|
|
46
|
+
"Event Types": "Event Types",
|
|
47
|
+
"Select which event types to trigger on. Leave empty to trigger on all event types.": "Select which event types to trigger on. Leave empty to trigger on all event types.",
|
|
48
|
+
"All": "All",
|
|
49
|
+
"Confirmed": "Confirmed",
|
|
50
|
+
"Canceled": "Canceled",
|
|
51
|
+
"Event Created": "Event Created",
|
|
52
|
+
"Event Requested": "Event Requested",
|
|
53
|
+
"Event Approved": "Event Approved",
|
|
54
|
+
"Event Declined": "Event Declined",
|
|
55
|
+
"Event Rescheduled": "Event Rescheduled",
|
|
56
|
+
"Event Changed": "Event Changed",
|
|
57
|
+
"Event Canceled": "Event Canceled",
|
|
58
|
+
"Checkout Pending": "Checkout Pending",
|
|
59
|
+
"Checkout Expired": "Checkout Expired",
|
|
60
|
+
"Checkout Completed": "Checkout Completed",
|
|
61
|
+
"Attendee Added": "Attendee Added",
|
|
62
|
+
"Attendee Canceled": "Attendee Canceled",
|
|
63
|
+
"Attendee Rescheduled": "Attendee Rescheduled",
|
|
64
|
+
"Poll Response Created": "Poll Response Created",
|
|
65
|
+
"Poll Response Updated": "Poll Response Updated",
|
|
66
|
+
"Workflow Action Triggered": "Workflow Action Triggered",
|
|
67
|
+
"Please connect your account first": "Please connect your account first",
|
|
68
|
+
"Failed to load scheduling links.": "Failed to load scheduling links.",
|
|
69
|
+
"Failed to load scheduling links. Check your connection.": "Failed to load scheduling links. Check your connection.",
|
|
70
|
+
"Team": "Team",
|
|
71
|
+
"Filter scheduling links by team. Leave empty to show all teams.": "Filter scheduling links by team. Leave empty to show all teams.",
|
|
72
|
+
"Personal": "Personal",
|
|
73
|
+
"Failed to load teams.": "Failed to load teams."
|
|
74
|
+
}
|
package/src/i18n/zh.json
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Personal Access Token (Private Key)": "Personal Access Token (Private Key)",
|
|
3
|
+
"Cancel Event": "Cancel Event",
|
|
4
|
+
"Cancels a scheduled meeting in SavvyCal.": "Cancels a scheduled meeting in SavvyCal.",
|
|
5
|
+
"Create Event": "Create Event",
|
|
6
|
+
"Books a meeting on a scheduling link at a specific time slot.": "Books a meeting on a scheduling link at a specific time slot.",
|
|
7
|
+
"Find Events by Attendee Email": "Find Events by Attendee Email",
|
|
8
|
+
"Returns all events where the attendee's email matches the given address.": "Returns all events where the attendee's email matches the given address.",
|
|
9
|
+
"Get Current User": "Get Current User",
|
|
10
|
+
"Retrieves the profile of the currently authenticated SavvyCal user.": "Retrieves the profile of the currently authenticated SavvyCal user.",
|
|
11
|
+
"Get Event": "Get Event",
|
|
12
|
+
"Retrieves the details of a specific scheduled meeting by its ID.": "Retrieves the details of a specific scheduled meeting by its ID.",
|
|
13
|
+
"List Events": "List Events",
|
|
14
|
+
"Returns a list of scheduled meetings from your SavvyCal account.": "Returns a list of scheduled meetings from your SavvyCal account.",
|
|
15
|
+
"List Scheduling Links": "List Scheduling Links",
|
|
16
|
+
"Returns all scheduling links configured in your SavvyCal account.": "Returns all scheduling links configured in your SavvyCal account.",
|
|
17
|
+
"New Event": "New Event",
|
|
18
|
+
"Triggers when a SavvyCal event occurs. Select one or more event types, or leave empty to trigger on all types.": "Triggers when a SavvyCal event occurs. Select one or more event types, or leave empty to trigger on all types.",
|
|
19
|
+
"Event ID": "Event ID",
|
|
20
|
+
"The unique ID of the event to cancel. You can find this from the output of a trigger or the List Events / Get Event actions.": "The unique ID of the event to cancel. You can find this from the output of a trigger or the List Events / Get Event actions.",
|
|
21
|
+
"The unique ID of the event. You can find this in the event URL in SavvyCal, or from the output of a trigger or List Events action.": "The unique ID of the event. You can find this in the event URL in SavvyCal, or from the output of a trigger or List Events action.",
|
|
22
|
+
"Scheduling Link": "Scheduling Link",
|
|
23
|
+
"Scheduling Links": "Scheduling Links",
|
|
24
|
+
"Select the scheduling link to book a meeting on.": "Select the scheduling link to book a meeting on.",
|
|
25
|
+
"Only trigger for events on the selected scheduling links. Leave empty to trigger for all links.": "Only trigger for events on the selected scheduling links. Leave empty to trigger for all links.",
|
|
26
|
+
"Only return events booked through the selected scheduling links. Leave empty for all links.": "Only return events booked through the selected scheduling links. Leave empty for all links.",
|
|
27
|
+
"Start Time": "Start Time",
|
|
28
|
+
"The start date and time of the meeting. Must match an available slot on the scheduling link.": "The start date and time of the meeting. Must match an available slot on the scheduling link.",
|
|
29
|
+
"End Time": "End Time",
|
|
30
|
+
"The End date and time of the meeting": "The End date and time of the meeting",
|
|
31
|
+
"Attendee Name": "Attendee Name",
|
|
32
|
+
"Full name of the person booking the meeting.": "Full name of the person booking the meeting.",
|
|
33
|
+
"Attendee Email": "Attendee Email",
|
|
34
|
+
"Email address of the person booking the meeting.": "Email address of the person booking the meeting.",
|
|
35
|
+
"The email address of the attendee to search for.": "The email address of the attendee to search for.",
|
|
36
|
+
"Start After": "Start After",
|
|
37
|
+
"Only return events that start after this date and time.": "Only return events that start after this date and time.",
|
|
38
|
+
"Only search events starting after this date. Use this to limit the search scope and improve performance.": "Only search events starting after this date. Use this to limit the search scope and improve performance.",
|
|
39
|
+
"Start Before": "Start Before",
|
|
40
|
+
"Only return events that start before this date and time.": "Only return events that start before this date and time.",
|
|
41
|
+
"Only search events starting before this date.": "Only search events starting before this date.",
|
|
42
|
+
"State": "State",
|
|
43
|
+
"Filter events by their current status. Leave empty to return all statuses.": "Filter events by their current status. Leave empty to return all statuses.",
|
|
44
|
+
"Maximum Results": "Maximum Results",
|
|
45
|
+
"Maximum number of events to return. Leave empty to return all matching events.": "Maximum number of events to return. Leave empty to return all matching events.",
|
|
46
|
+
"Event Types": "Event Types",
|
|
47
|
+
"Select which event types to trigger on. Leave empty to trigger on all event types.": "Select which event types to trigger on. Leave empty to trigger on all event types.",
|
|
48
|
+
"All": "All",
|
|
49
|
+
"Confirmed": "Confirmed",
|
|
50
|
+
"Canceled": "Canceled",
|
|
51
|
+
"Event Created": "Event Created",
|
|
52
|
+
"Event Requested": "Event Requested",
|
|
53
|
+
"Event Approved": "Event Approved",
|
|
54
|
+
"Event Declined": "Event Declined",
|
|
55
|
+
"Event Rescheduled": "Event Rescheduled",
|
|
56
|
+
"Event Changed": "Event Changed",
|
|
57
|
+
"Event Canceled": "Event Canceled",
|
|
58
|
+
"Checkout Pending": "Checkout Pending",
|
|
59
|
+
"Checkout Expired": "Checkout Expired",
|
|
60
|
+
"Checkout Completed": "Checkout Completed",
|
|
61
|
+
"Attendee Added": "Attendee Added",
|
|
62
|
+
"Attendee Canceled": "Attendee Canceled",
|
|
63
|
+
"Attendee Rescheduled": "Attendee Rescheduled",
|
|
64
|
+
"Poll Response Created": "Poll Response Created",
|
|
65
|
+
"Poll Response Updated": "Poll Response Updated",
|
|
66
|
+
"Workflow Action Triggered": "Workflow Action Triggered",
|
|
67
|
+
"Please connect your account first": "Please connect your account first",
|
|
68
|
+
"Failed to load scheduling links.": "Failed to load scheduling links.",
|
|
69
|
+
"Failed to load scheduling links. Check your connection.": "Failed to load scheduling links. Check your connection.",
|
|
70
|
+
"Team": "Team",
|
|
71
|
+
"Filter scheduling links by team. Leave empty to show all teams.": "Filter scheduling links by team. Leave empty to show all teams.",
|
|
72
|
+
"Personal": "Personal",
|
|
73
|
+
"Failed to load teams.": "Failed to load teams."
|
|
74
|
+
}
|
package/src/index.d.ts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
export declare const
|
|
2
|
-
|
|
1
|
+
export declare const savvyCal: import("@activepieces/pieces-framework").Piece<(import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
2
|
+
token: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
3
|
+
}>)[]>;
|
package/src/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.savvyCal =
|
|
3
|
+
exports.savvyCal = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
6
|
const pieces_common_1 = require("@activepieces/pieces-common");
|
|
@@ -12,46 +12,26 @@ const cancel_event_1 = require("./lib/actions/cancel-event");
|
|
|
12
12
|
const create_event_1 = require("./lib/actions/create-event");
|
|
13
13
|
const find_events_by_email_1 = require("./lib/actions/find-events-by-email");
|
|
14
14
|
const list_scheduling_links_1 = require("./lib/actions/list-scheduling-links");
|
|
15
|
-
const
|
|
16
|
-
const
|
|
17
|
-
const
|
|
15
|
+
const get_scheduling_link_1 = require("./lib/actions/get-scheduling-link");
|
|
16
|
+
const delete_scheduling_link_1 = require("./lib/actions/delete-scheduling-link");
|
|
17
|
+
const duplicate_scheduling_link_1 = require("./lib/actions/duplicate-scheduling-link");
|
|
18
|
+
const toggle_scheduling_link_1 = require("./lib/actions/toggle-scheduling-link");
|
|
19
|
+
const get_link_slots_1 = require("./lib/actions/get-link-slots");
|
|
20
|
+
const list_workflows_1 = require("./lib/actions/list-workflows");
|
|
21
|
+
const get_workflow_rules_1 = require("./lib/actions/get-workflow-rules");
|
|
18
22
|
const new_event_1 = require("./lib/triggers/new-event");
|
|
23
|
+
const new_poll_response_1 = require("./lib/triggers/new-poll-response");
|
|
24
|
+
const workflow_action_triggered_1 = require("./lib/triggers/workflow-action-triggered");
|
|
25
|
+
const auth_1 = require("./lib/auth");
|
|
19
26
|
const common_1 = require("./lib/common");
|
|
20
|
-
exports.savvyCalAuth = pieces_framework_1.PieceAuth.SecretText({
|
|
21
|
-
displayName: 'Personal Access Token',
|
|
22
|
-
description: `To get your SavvyCal API token:
|
|
23
|
-
1. Log in to your SavvyCal account at https://savvycal.com
|
|
24
|
-
2. Go to **Settings > Developer**
|
|
25
|
-
3. Click **Create Token**
|
|
26
|
-
4. Give it a name and copy the token (it starts with \`pt_secret_\`)
|
|
27
|
-
|
|
28
|
-
**Note:** Keep this token secret — it gives full access to your SavvyCal account.`,
|
|
29
|
-
required: true,
|
|
30
|
-
validate: (_a) => tslib_1.__awaiter(void 0, [_a], void 0, function* ({ auth }) {
|
|
31
|
-
try {
|
|
32
|
-
yield pieces_common_1.httpClient.sendRequest({
|
|
33
|
-
method: pieces_common_1.HttpMethod.GET,
|
|
34
|
-
url: `${common_1.SAVVYCAL_BASE_URL}/me`,
|
|
35
|
-
authentication: {
|
|
36
|
-
type: pieces_common_1.AuthenticationType.BEARER_TOKEN,
|
|
37
|
-
token: auth,
|
|
38
|
-
},
|
|
39
|
-
});
|
|
40
|
-
return { valid: true };
|
|
41
|
-
}
|
|
42
|
-
catch (_b) {
|
|
43
|
-
return { valid: false, error: 'Invalid token. Please check your Personal Access Token and try again.' };
|
|
44
|
-
}
|
|
45
|
-
}),
|
|
46
|
-
});
|
|
47
27
|
exports.savvyCal = (0, pieces_framework_1.createPiece)({
|
|
48
28
|
displayName: 'SavvyCal',
|
|
49
29
|
description: 'Scheduling tool that lets invitees overlay their calendar when picking a time.',
|
|
50
30
|
minimumSupportedRelease: '0.36.1',
|
|
51
31
|
logoUrl: 'https://cdn.activepieces.com/pieces/savvycal.png',
|
|
52
32
|
categories: [shared_1.PieceCategory.PRODUCTIVITY],
|
|
53
|
-
auth:
|
|
54
|
-
authors: ['bst1n', 'sanket-a11y'],
|
|
33
|
+
auth: auth_1.savvyCalAuth,
|
|
34
|
+
authors: ['bst1n', 'sanket-a11y', 'onyedikachi-david'],
|
|
55
35
|
actions: [
|
|
56
36
|
get_current_user_1.getCurrentUserAction,
|
|
57
37
|
list_events_1.listEventsAction,
|
|
@@ -60,16 +40,27 @@ exports.savvyCal = (0, pieces_framework_1.createPiece)({
|
|
|
60
40
|
create_event_1.createEventAction,
|
|
61
41
|
find_events_by_email_1.findEventsByEmailAction,
|
|
62
42
|
list_scheduling_links_1.listSchedulingLinksAction,
|
|
43
|
+
get_scheduling_link_1.getSchedulingLinkAction,
|
|
44
|
+
delete_scheduling_link_1.deleteSchedulingLinkAction,
|
|
45
|
+
duplicate_scheduling_link_1.duplicateSchedulingLinkAction,
|
|
46
|
+
toggle_scheduling_link_1.toggleSchedulingLinkAction,
|
|
47
|
+
get_link_slots_1.getLinkSlotsAction,
|
|
48
|
+
list_workflows_1.listWorkflowsAction,
|
|
49
|
+
get_workflow_rules_1.getWorkflowRulesAction,
|
|
63
50
|
(0, pieces_common_1.createCustomApiCallAction)({
|
|
64
51
|
baseUrl: () => common_1.SAVVYCAL_BASE_URL,
|
|
65
|
-
auth:
|
|
52
|
+
auth: auth_1.savvyCalAuth,
|
|
66
53
|
authMapping: (auth) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
67
54
|
return ({
|
|
68
|
-
Authorization: `Bearer ${auth}`,
|
|
55
|
+
Authorization: `Bearer ${(0, auth_1.getToken)(auth)}`,
|
|
69
56
|
});
|
|
70
57
|
}),
|
|
71
58
|
}),
|
|
72
59
|
],
|
|
73
|
-
triggers: [
|
|
60
|
+
triggers: [
|
|
61
|
+
new_event_1.newEventTrigger,
|
|
62
|
+
new_poll_response_1.newPollResponseTrigger,
|
|
63
|
+
workflow_action_triggered_1.workflowActionTriggeredTrigger,
|
|
64
|
+
],
|
|
74
65
|
});
|
|
75
66
|
//# sourceMappingURL=index.js.map
|
package/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;AAAA,qEAA6D;AAC7D,+DAAwE;AACxE,iDAAqD;AAErD,qEAAsE;AACtE,2DAA6D;AAC7D,uDAAyD;AACzD,6DAA+D;AAC/D,6DAA+D;AAC/D,6EAA6E;AAC7E,+EAAgF;AAChF,2EAA4E;AAC5E,iFAAkF;AAClF,uFAAwF;AACxF,iFAAkF;AAClF,iEAAkE;AAClE,iEAAmE;AACnE,yEAA0E;AAE1E,wDAA2D;AAC3D,wEAA0E;AAC1E,wFAA0F;AAE1F,qCAAoD;AACpD,yCAAiD;AAEpC,QAAA,QAAQ,GAAG,IAAA,8BAAW,EAAC;IAClC,WAAW,EAAE,UAAU;IACvB,WAAW,EAAE,gFAAgF;IAC7F,uBAAuB,EAAE,QAAQ;IACjC,OAAO,EAAE,kDAAkD;IAC3D,UAAU,EAAE,CAAC,sBAAa,CAAC,YAAY,CAAC;IACxC,IAAI,EAAE,mBAAY;IAClB,OAAO,EAAE,CAAC,OAAO,EAAC,aAAa,EAAE,mBAAmB,CAAC;IACrD,OAAO,EAAE;QACP,uCAAoB;QACpB,8BAAgB;QAChB,0BAAc;QACd,gCAAiB;QACjB,gCAAiB;QACjB,8CAAuB;QACvB,iDAAyB;QACzB,6CAAuB;QACvB,mDAA0B;QAC1B,yDAA6B;QAC7B,mDAA0B;QAC1B,mCAAkB;QAClB,oCAAmB;QACnB,2CAAsB;QACtB,IAAA,yCAAyB,EAAC;YACxB,OAAO,EAAE,GAAG,EAAE,CAAC,0BAAiB;YAChC,IAAI,EAAE,mBAAY;YAClB,WAAW,EAAE,CAAO,IAAI,EAAE,EAAE;gBAAC,OAAA,CAAC;oBAC5B,aAAa,EAAE,UAAU,IAAA,eAAQ,EAAC,IAAI,CAAC,EAAE;iBAC1C,CAAC,CAAA;cAAA;SACH,CAAC;KACH;IACD,QAAQ,EAAE;QACR,2BAAe;QACf,0CAAsB;QACtB,0DAA8B;KAC/B;CACF,CAAC,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
export declare const cancelEventAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").
|
|
1
|
+
export declare const cancelEventAction: import("@activepieces/pieces-framework").IAction<(import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
2
|
+
token: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
3
|
+
}>)[], {
|
|
2
4
|
event_id: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
5
|
}>;
|
|
@@ -5,9 +5,9 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
6
|
const pieces_common_1 = require("@activepieces/pieces-common");
|
|
7
7
|
const common_1 = require("../common");
|
|
8
|
-
const
|
|
8
|
+
const auth_1 = require("../auth");
|
|
9
9
|
exports.cancelEventAction = (0, pieces_framework_1.createAction)({
|
|
10
|
-
auth:
|
|
10
|
+
auth: auth_1.savvyCalAuth,
|
|
11
11
|
name: 'cancel_event',
|
|
12
12
|
displayName: 'Cancel Event',
|
|
13
13
|
description: 'Cancels a scheduled meeting in SavvyCal.',
|
|
@@ -21,7 +21,7 @@ exports.cancelEventAction = (0, pieces_framework_1.createAction)({
|
|
|
21
21
|
run(context) {
|
|
22
22
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
23
23
|
yield (0, common_1.savvyCalApiCall)({
|
|
24
|
-
token: context.auth
|
|
24
|
+
token: (0, auth_1.getToken)(context.auth),
|
|
25
25
|
method: pieces_common_1.HttpMethod.POST,
|
|
26
26
|
path: `/events/${context.propsValue.event_id}/cancel`,
|
|
27
27
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cancel-event.js","sourceRoot":"","sources":["../../../../src/lib/actions/cancel-event.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,+DAAyD;AACzD,sCAA4C;AAC5C,
|
|
1
|
+
{"version":3,"file":"cancel-event.js","sourceRoot":"","sources":["../../../../src/lib/actions/cancel-event.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,+DAAyD;AACzD,sCAA4C;AAC5C,kCAAiD;AAEpC,QAAA,iBAAiB,GAAG,IAAA,+BAAY,EAAC;IAC5C,IAAI,EAAE,mBAAY;IAClB,IAAI,EAAE,cAAc;IACpB,WAAW,EAAE,cAAc;IAC3B,WAAW,EAAE,0CAA0C;IACvD,KAAK,EAAE;QACL,QAAQ,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC3B,WAAW,EAAE,UAAU;YACvB,WAAW,EAAE,8HAA8H;YAC3I,QAAQ,EAAE,IAAI;SACf,CAAC;KACH;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,IAAA,wBAAe,EAAC;gBACpB,KAAK,EAAE,IAAA,eAAQ,EAAC,OAAO,CAAC,IAAI,CAAC;gBAC7B,MAAM,EAAE,0BAAU,CAAC,IAAI;gBACvB,IAAI,EAAE,WAAW,OAAO,CAAC,UAAU,CAAC,QAAQ,SAAS;aACtD,CAAC,CAAC;YAEH,OAAO;gBACL,OAAO,EAAE,IAAI;gBACb,QAAQ,EAAE,OAAO,CAAC,UAAU,CAAC,QAAQ;gBACrC,OAAO,EAAE,+BAA+B;aACzC,CAAC;QACJ,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,7 +1,15 @@
|
|
|
1
|
-
export declare const createEventAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").
|
|
2
|
-
|
|
1
|
+
export declare const createEventAction: import("@activepieces/pieces-framework").IAction<(import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
2
|
+
token: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
3
|
+
}>)[], {
|
|
4
|
+
team_id: import("@activepieces/pieces-framework").DropdownProperty<string, false, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
5
|
+
token: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
6
|
+
}>)[]>;
|
|
7
|
+
link_id: import("@activepieces/pieces-framework").DropdownProperty<string, true, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
8
|
+
token: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
9
|
+
}>)[]>;
|
|
3
10
|
start_at: import("@activepieces/pieces-framework").DateTimeProperty<true>;
|
|
4
11
|
end_at: import("@activepieces/pieces-framework").DateTimeProperty<true>;
|
|
5
12
|
attendee_name: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
6
13
|
attendee_email: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
14
|
+
time_zone: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
7
15
|
}>;
|
|
@@ -5,20 +5,38 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
6
|
const pieces_common_1 = require("@activepieces/pieces-common");
|
|
7
7
|
const common_1 = require("../common");
|
|
8
|
-
const
|
|
8
|
+
const auth_1 = require("../auth");
|
|
9
9
|
exports.createEventAction = (0, pieces_framework_1.createAction)({
|
|
10
|
-
auth:
|
|
10
|
+
auth: auth_1.savvyCalAuth,
|
|
11
11
|
name: 'create_event',
|
|
12
12
|
displayName: 'Create Event',
|
|
13
13
|
description: 'Books a meeting on a scheduling link at a specific time slot.',
|
|
14
14
|
props: {
|
|
15
|
+
team_id: pieces_framework_1.Property.Dropdown({
|
|
16
|
+
auth: auth_1.savvyCalAuth,
|
|
17
|
+
displayName: 'Team',
|
|
18
|
+
description: 'Filter scheduling links by team. Leave empty to show all teams.',
|
|
19
|
+
refreshers: [],
|
|
20
|
+
required: false,
|
|
21
|
+
options: (_a) => tslib_1.__awaiter(void 0, [_a], void 0, function* ({ auth }) {
|
|
22
|
+
if (!auth)
|
|
23
|
+
return { disabled: true, options: [], placeholder: 'Please connect your account first' };
|
|
24
|
+
try {
|
|
25
|
+
const options = yield (0, common_1.buildTeamOptions)((0, auth_1.getToken)(auth));
|
|
26
|
+
return { disabled: false, options };
|
|
27
|
+
}
|
|
28
|
+
catch (_b) {
|
|
29
|
+
return { disabled: true, options: [], placeholder: 'Failed to load teams.' };
|
|
30
|
+
}
|
|
31
|
+
}),
|
|
32
|
+
}),
|
|
15
33
|
link_id: pieces_framework_1.Property.Dropdown({
|
|
16
|
-
auth:
|
|
34
|
+
auth: auth_1.savvyCalAuth,
|
|
17
35
|
displayName: 'Scheduling Link',
|
|
18
36
|
description: 'Select the scheduling link to book a meeting on.',
|
|
19
|
-
refreshers: [],
|
|
37
|
+
refreshers: ['team_id'],
|
|
20
38
|
required: true,
|
|
21
|
-
options: (_a) => tslib_1.__awaiter(void 0, [_a], void 0, function* ({ auth }) {
|
|
39
|
+
options: (_a) => tslib_1.__awaiter(void 0, [_a], void 0, function* ({ auth, team_id }) {
|
|
22
40
|
if (!auth)
|
|
23
41
|
return {
|
|
24
42
|
disabled: true,
|
|
@@ -26,17 +44,8 @@ exports.createEventAction = (0, pieces_framework_1.createAction)({
|
|
|
26
44
|
placeholder: 'Please connect your account first',
|
|
27
45
|
};
|
|
28
46
|
try {
|
|
29
|
-
const
|
|
30
|
-
|
|
31
|
-
path: '/links',
|
|
32
|
-
});
|
|
33
|
-
return {
|
|
34
|
-
disabled: false,
|
|
35
|
-
options: links.map((l) => ({
|
|
36
|
-
label: `${l.name} (${l.slug})`,
|
|
37
|
-
value: l.id,
|
|
38
|
-
})),
|
|
39
|
-
};
|
|
47
|
+
const options = yield (0, common_1.buildLinkOptions)((0, auth_1.getToken)(auth), team_id);
|
|
48
|
+
return { disabled: false, options };
|
|
40
49
|
}
|
|
41
50
|
catch (_b) {
|
|
42
51
|
return {
|
|
@@ -67,11 +76,16 @@ exports.createEventAction = (0, pieces_framework_1.createAction)({
|
|
|
67
76
|
description: 'Email address of the person booking the meeting.',
|
|
68
77
|
required: true,
|
|
69
78
|
}),
|
|
79
|
+
time_zone: pieces_framework_1.Property.ShortText({
|
|
80
|
+
displayName: 'Time Zone',
|
|
81
|
+
description: "Attendee's local time zone in Olson format (e.g. America/New_York, Europe/London, Africa/Lagos).",
|
|
82
|
+
required: true,
|
|
83
|
+
}),
|
|
70
84
|
},
|
|
71
85
|
run(context) {
|
|
72
86
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
73
87
|
const response = yield (0, common_1.savvyCalApiCall)({
|
|
74
|
-
token: context.auth
|
|
88
|
+
token: (0, auth_1.getToken)(context.auth),
|
|
75
89
|
method: pieces_common_1.HttpMethod.POST,
|
|
76
90
|
path: `/links/${context.propsValue.link_id}/events`,
|
|
77
91
|
body: {
|
|
@@ -79,6 +93,7 @@ exports.createEventAction = (0, pieces_framework_1.createAction)({
|
|
|
79
93
|
end_at: context.propsValue.end_at,
|
|
80
94
|
display_name: context.propsValue.attendee_name,
|
|
81
95
|
email: context.propsValue.attendee_email,
|
|
96
|
+
time_zone: context.propsValue.time_zone,
|
|
82
97
|
},
|
|
83
98
|
});
|
|
84
99
|
return (0, common_1.flattenEvent)(response.body);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-event.js","sourceRoot":"","sources":["../../../../src/lib/actions/create-event.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,+DAAyD;AACzD,sCAMmB;AACnB,
|
|
1
|
+
{"version":3,"file":"create-event.js","sourceRoot":"","sources":["../../../../src/lib/actions/create-event.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const deleteSchedulingLinkAction: import("@activepieces/pieces-framework").IAction<(import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
2
|
+
token: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
3
|
+
}>)[], {
|
|
4
|
+
team_id: import("@activepieces/pieces-framework").DropdownProperty<string, false, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
5
|
+
token: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
6
|
+
}>)[]>;
|
|
7
|
+
link_id: import("@activepieces/pieces-framework").DropdownProperty<string, true, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
8
|
+
token: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
9
|
+
}>)[]>;
|
|
10
|
+
}>;
|