Webex integration (#7651)

* start webex app creation

* webex integration wip

* fix lint errors

* fix lint errors

* add webex env vars in appStore.example

* webex app wip

* fix lint errors

* edit webex oauth scopes

* add location in webex app config

* add site url placeholder and regex in webex config location

* debug translateEvent

* fix utc formatting for event start time, add test boilerplate for webex, add envs

* fix location and datetime formatting

* get correct videoCredentials for deleteMeeting

* Move webex specific readme content to webex README

* Fix app not visible in app-store

* Delete setup route

* add webex icon

* delete prev icon

* webex api fix

* add app screenshots

* Revert tests changes as they dont run

* Use config instead of hardcoding vales

* Update README

* Remove all env variables related to WEBEX app. They can be added through settings->admin->apps interface

* update from origin

* fix icon path

* update webex readme

* Update yarn.lock

* update webex readme

* Remove unnecessary URL from webex

* revert changes in cancel booking handler

* simply webex zod schemas, logs for debugging

---------

Co-authored-by: Peer Richelsen <[email protected]>
Co-authored-by: Hariom Balhara <[email protected]>
This commit is contained in:
authored and GitHub committed 2023-05-11 07:14:32 +00:00
1 parent 067b77faf1
commit e2cfd0d1d1
31 files changed
+912 -86

No files matched your search

+148
View File
@@ -0,0 +1,148 @@
// This file was generated by a custom prisma generator, do not edit manually.
export const SchedulingType = {
ROUND_ROBIN: "ROUND_ROBIN",
COLLECTIVE: "COLLECTIVE",
MANAGED: "MANAGED",
} as const;
export type SchedulingType = (typeof SchedulingType)[keyof typeof SchedulingType];
export const PeriodType = {
UNLIMITED: "UNLIMITED",
ROLLING: "ROLLING",
RANGE: "RANGE",
} as const;
export type PeriodType = (typeof PeriodType)[keyof typeof PeriodType];
export const IdentityProvider = {
CAL: "CAL",
GOOGLE: "GOOGLE",
SAML: "SAML",
} as const;
export type IdentityProvider = (typeof IdentityProvider)[keyof typeof IdentityProvider];
export const UserPermissionRole = {
USER: "USER",
ADMIN: "ADMIN",
} as const;
export type UserPermissionRole = (typeof UserPermissionRole)[keyof typeof UserPermissionRole];
export const MembershipRole = {
MEMBER: "MEMBER",
ADMIN: "ADMIN",
OWNER: "OWNER",
} as const;
export type MembershipRole = (typeof MembershipRole)[keyof typeof MembershipRole];
export const BookingStatus = {
CANCELLED: "CANCELLED",
ACCEPTED: "ACCEPTED",
REJECTED: "REJECTED",
PENDING: "PENDING",
} as const;
export type BookingStatus = (typeof BookingStatus)[keyof typeof BookingStatus];
export const EventTypeCustomInputType = {
TEXT: "TEXT",
TEXTLONG: "TEXTLONG",
NUMBER: "NUMBER",
BOOL: "BOOL",
RADIO: "RADIO",
PHONE: "PHONE",
} as const;
export type EventTypeCustomInputType =
(typeof EventTypeCustomInputType)[keyof typeof EventTypeCustomInputType];
export const ReminderType = {
PENDING_BOOKING_CONFIRMATION: "PENDING_BOOKING_CONFIRMATION",
} as const;
export type ReminderType = (typeof ReminderType)[keyof typeof ReminderType];
export const PaymentOption = {
ON_BOOKING: "ON_BOOKING",
HOLD: "HOLD",
} as const;
export type PaymentOption = (typeof PaymentOption)[keyof typeof PaymentOption];
export const WebhookTriggerEvents = {
BOOKING_CREATED: "BOOKING_CREATED",
BOOKING_RESCHEDULED: "BOOKING_RESCHEDULED",
BOOKING_CANCELLED: "BOOKING_CANCELLED",
FORM_SUBMITTED: "FORM_SUBMITTED",
MEETING_ENDED: "MEETING_ENDED",
} as const;
export type WebhookTriggerEvents = (typeof WebhookTriggerEvents)[keyof typeof WebhookTriggerEvents];
export const AppCategories = {
calendar: "calendar",
messaging: "messaging",
other: "other",
payment: "payment",
video: "video",
web3: "web3",
automation: "automation",
analytics: "analytics",
} as const;
export type AppCategories = (typeof AppCategories)[keyof typeof AppCategories];
export const WorkflowTriggerEvents = {
BEFORE_EVENT: "BEFORE_EVENT",
EVENT_CANCELLED: "EVENT_CANCELLED",
NEW_EVENT: "NEW_EVENT",
AFTER_EVENT: "AFTER_EVENT",
RESCHEDULE_EVENT: "RESCHEDULE_EVENT",
} as const;
export type WorkflowTriggerEvents = (typeof WorkflowTriggerEvents)[keyof typeof WorkflowTriggerEvents];
export const WorkflowActions = {
EMAIL_HOST: "EMAIL_HOST",
EMAIL_ATTENDEE: "EMAIL_ATTENDEE",
SMS_ATTENDEE: "SMS_ATTENDEE",
SMS_NUMBER: "SMS_NUMBER",
EMAIL_ADDRESS: "EMAIL_ADDRESS",
} as const;
export type WorkflowActions = (typeof WorkflowActions)[keyof typeof WorkflowActions];
export const TimeUnit = {
DAY: "DAY",
HOUR: "HOUR",
MINUTE: "MINUTE",
} as const;
export type TimeUnit = (typeof TimeUnit)[keyof typeof TimeUnit];
export const WorkflowTemplates = {
REMINDER: "REMINDER",
CUSTOM: "CUSTOM",
} as const;
export type WorkflowTemplates = (typeof WorkflowTemplates)[keyof typeof WorkflowTemplates];
export const WorkflowMethods = {
EMAIL: "EMAIL",
SMS: "SMS",
} as const;
export type WorkflowMethods = (typeof WorkflowMethods)[keyof typeof WorkflowMethods];
export const FeatureType = {
RELEASE: "RELEASE",
EXPERIMENT: "EXPERIMENT",
OPERATIONAL: "OPERATIONAL",
KILL_SWITCH: "KILL_SWITCH",
PERMISSION: "PERMISSION",
} as const;
export type FeatureType = (typeof FeatureType)[keyof typeof FeatureType];
@@ -212,6 +212,13 @@
"type": "zohocrm_other_calendar",
"isTemplate": false
},
{
"dirName": "webex",
"categories": ["video"],
"slug": "webex",
"type": "webex_video",
"isTemplate": false
},
{
"dirName": "cron",
"categories": ["calendar"],