From 5ee646ab80d72e0f9a2c0a37aa9710e4df44014a Mon Sep 17 00:00:00 2001 From: Arman Date: Thu, 10 Aug 2023 18:47:11 +0200 Subject: [PATCH] fix: marketteplace type --- src/lib/stores/marketplace.ts | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/src/lib/stores/marketplace.ts b/src/lib/stores/marketplace.ts index 2d3bea53d..2c590e51c 100644 --- a/src/lib/stores/marketplace.ts +++ b/src/lib/stores/marketplace.ts @@ -617,7 +617,38 @@ export const marketplace = [ } ]; -export type MarketplaceTemplate = (typeof marketplace)[number]; +type Runtime = { + name: string; + commands: string; + entrypoint: string; + providerRootDirectory: string; +}; + +type Variable = { + name: string; + description: string; + value?: string; + placeholder: string; + required: boolean; +}; + +export type MarketplaceTemplate = { + icon: string; + id: string; + name: string; + tagline: string; + permissions: string[]; + events: string[]; + cron: string; + timeout: number; + runtimes: Runtime[]; + instructions: string; + vcsProvider: string; + providerRepositoryId: string; + providerOwner: string; + providerBranch: string; + variables: Variable[]; +}; /* Template: