Updated type info
parent
b3f435ec48
commit
fd5fd1f9d5
|
@ -1,32 +1,43 @@
|
||||||
/**
|
/**
|
||||||
* Let define an App Integration.
|
* This is the definition for an app store's app metadata.
|
||||||
*
|
* This is used to display App info, categorize or hide certain apps in the app store.
|
||||||
* @type - App
|
|
||||||
* @member {boolean} installed is used to indicate if the app is installed or not.
|
|
||||||
* @member {string} type is used to indicate which type the app is.
|
|
||||||
* @member {string} title is used to add a distinctive name
|
|
||||||
* @member {string} name is the app's name.
|
|
||||||
* @member {string} description is to add information about the app.
|
|
||||||
* @member {string} imageSrc is to indicate where the app's logo is located.
|
|
||||||
* @member {string} variant is to indicate to which classification the app belongs. It can be a `calendar`, `payment` or `conferencing` integration.
|
|
||||||
*/
|
*/
|
||||||
export interface App {
|
export interface App {
|
||||||
|
/**
|
||||||
|
* Wheter if the app is installed or not. Usually we check for api keys in env
|
||||||
|
* variables to determine if this is true or not.
|
||||||
|
* */
|
||||||
installed: boolean;
|
installed: boolean;
|
||||||
|
/** The app type */
|
||||||
type: `${string}_calendar` | `${string}_payment` | `${string}_video` | `${string}_web3`;
|
type: `${string}_calendar` | `${string}_payment` | `${string}_video` | `${string}_web3`;
|
||||||
|
/** The display name for the app, TODO settle between this or name */
|
||||||
title: string;
|
title: string;
|
||||||
|
/** The display name for the app */
|
||||||
name: string;
|
name: string;
|
||||||
|
/** A brief description, usually found in the app's package.json */
|
||||||
description: string;
|
description: string;
|
||||||
|
/** The icon to display in /apps/installed */
|
||||||
imageSrc: string;
|
imageSrc: string;
|
||||||
|
/** TODO determine if we should use this instead of category */
|
||||||
variant: "calendar" | "payment" | "conferencing";
|
variant: "calendar" | "payment" | "conferencing";
|
||||||
label: string;
|
label: string;
|
||||||
|
/** The slug for the app store public page inside `/apps/[slug] */
|
||||||
slug: string;
|
slug: string;
|
||||||
|
/** The category to which this app belongs, currently we have `calendar`, `payment` or `video` */
|
||||||
category: string;
|
category: string;
|
||||||
|
/** An abosolute url to the app logo */
|
||||||
logo: string;
|
logo: string;
|
||||||
|
/** Company or individual publishing this app */
|
||||||
publisher: string;
|
publisher: string;
|
||||||
|
/** App's website */
|
||||||
url: string;
|
url: string;
|
||||||
|
/** Wether if the app is verified by Cal.com or not */
|
||||||
verified: boolean;
|
verified: boolean;
|
||||||
|
/** Wether the app should appear in the trending section of the app store */
|
||||||
trending: boolean;
|
trending: boolean;
|
||||||
|
/** Rating from 0 to 5, harcoded for now. Should be fetched later on. */
|
||||||
rating: number;
|
rating: number;
|
||||||
|
/** Number of reviews, harcoded for now. Should be fetched later on. */
|
||||||
reviews: number;
|
reviews: number;
|
||||||
/**
|
/**
|
||||||
* Wheter if the app is installed globally or needs user intervention.
|
* Wheter if the app is installed globally or needs user intervention.
|
||||||
|
|
Loading…
Reference in New Issue