From 908071c83258b98097f0f382edbdb89ae7095739 Mon Sep 17 00:00:00 2001 From: Jeroen Visser Date: Thu, 23 Jul 2020 19:24:17 +0200 Subject: [PATCH] fix(types): add deploy configuration to type definitions --- index.d.ts | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/index.d.ts b/index.d.ts index aad7b1c4..02b87b68 100644 --- a/index.d.ts +++ b/index.d.ts @@ -142,6 +142,41 @@ export interface SentryCliPluginOptions { */ auto?: boolean; }; + + /** + * Creates a new release deployment + */ + deploy?: { + /** + * Environment for this release. Values that make sense here would be `production` or `staging` + */ + env: string; + + /** + * Unix timestamp when the deployment started + */ + started?: number; + + /** + * Unix timestamp when the deployment finished + */ + finished?: number; + + /** + * Deployment duration in seconds. This can be specified alternatively to `started` and `finished` + */ + time?: number; + + /** + * Human readable name for this deployment + */ + name?: string; + + /** + * URL that points to the deployment + */ + url?: string; + }; } declare class SentryCliPlugin extends Plugin {