* Removed emptyscreen component v1 version, migrated pages that still used it to v2, and removed v1 of workflow pages and components. * updated workflow pages imports to remove v2 from path. * Deleted v1 switch component, deleted v1 api-keys components, deleted old web integrations components that were unused. * Removed v1 list component. * Fixed event workflows tab path. * Fixed import path for button in sandbox page. * Cleanup and type fixes * Making explicit indexes * UI import migrations * More import fixes * More import fixes * Submodule sync * Type fixes * Build fixes Co-authored-by: zomars <zomars@me.com>
32 lines
912 B
TypeScript
32 lines
912 B
TypeScript
import React from "react";
|
|
import { z } from "zod";
|
|
|
|
import { _EventTypeModel } from "@calcom/prisma/zod";
|
|
import { RouterOutputs } from "@calcom/trpc/react";
|
|
import { ButtonProps } from "@calcom/ui";
|
|
|
|
export type IntegrationOAuthCallbackState = {
|
|
returnTo: string;
|
|
};
|
|
|
|
export interface InstallAppButtonProps {
|
|
render: (
|
|
renderProps: ButtonProps & {
|
|
/** Tells that the default render component should be used */
|
|
useDefaultComponent?: boolean;
|
|
}
|
|
) => JSX.Element;
|
|
onChanged?: () => unknown;
|
|
}
|
|
export type EventTypeAppCardComponentProps = {
|
|
// Limit what data should be accessible to apps
|
|
eventType: Pick<
|
|
z.infer<typeof _EventTypeModel>,
|
|
"id" | "title" | "description" | "teamId" | "length" | "recurringEvent"
|
|
> & {
|
|
URL: string;
|
|
};
|
|
app: RouterOutputs["viewer"]["apps"][number];
|
|
};
|
|
export type EventTypeAppCardComponent = React.FC<EventTypeAppCardComponentProps>;
|