Summary: Extracted plugin marketplace API to a separate file and updated it to load full plugin manifests. Reviewed By: passy Differential Revision: D25181759 fbshipit-source-id: a63f9ce16249ccc170df148cef5c209fdc6d4d6d
41 lines
777 B
TypeScript
41 lines
777 B
TypeScript
/**
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*
|
|
* @format
|
|
*/
|
|
|
|
export interface PluginDetails {
|
|
dir: string;
|
|
name: string;
|
|
specVersion: number;
|
|
version: string;
|
|
source: string;
|
|
main: string;
|
|
id: string;
|
|
isDefault: boolean;
|
|
entry: string;
|
|
gatekeeper?: string;
|
|
title: string;
|
|
icon?: string;
|
|
description?: string;
|
|
category?: string;
|
|
engines?: {
|
|
[name: string]: string;
|
|
};
|
|
bugs?: {
|
|
email?: string;
|
|
url?: string;
|
|
};
|
|
flipperSDKVersion?: string;
|
|
}
|
|
|
|
export interface DownloadablePluginDetails extends PluginDetails {
|
|
downloadUrl: string;
|
|
lastUpdated: Date;
|
|
}
|
|
|
|
export default PluginDetails;
|