@badrap/libapp
Advanced tools
Comparing version 0.3.0 to 0.3.1
@@ -9,4 +9,12 @@ import * as v from "@badrap/valita"; | ||
export type Installation<State extends Record<string, unknown>> = { | ||
id: string; | ||
removed: boolean; | ||
state: State; | ||
owner?: { | ||
type: "team"; | ||
name: string; | ||
} | { | ||
type: "user"; | ||
email: string; | ||
}; | ||
}; | ||
@@ -13,0 +21,0 @@ export type Asset = Readonly<{ |
@@ -111,4 +111,8 @@ "use strict"; | ||
responseType: v.object({ | ||
id: v.string(), | ||
removed: v.boolean(), | ||
state: this.stateType, | ||
owner: v | ||
.union(v.object({ type: v.literal("team"), name: v.string() }), v.object({ type: v.literal("user"), email: v.string() })) | ||
.optional(), | ||
}), | ||
@@ -124,4 +128,8 @@ }); | ||
responseType: v.object({ | ||
id: v.string(), | ||
removed: v.boolean(), | ||
state: this.stateType, | ||
owner: v | ||
.union(v.object({ type: v.literal("team"), name: v.string() }), v.object({ type: v.literal("user"), email: v.string() })) | ||
.optional(), | ||
}), | ||
@@ -128,0 +136,0 @@ }); |
{ | ||
"name": "@badrap/libapp", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"description": "TypeScript helpers for creating Badrap apps", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -15,4 +15,6 @@ import * as v from "@badrap/valita"; | ||
export type Installation<State extends Record<string, unknown>> = { | ||
id: string; | ||
removed: boolean; | ||
state: State; | ||
owner?: { type: "team"; name: string } | { type: "user"; email: string }; | ||
}; | ||
@@ -148,4 +150,11 @@ | ||
responseType: v.object({ | ||
id: v.string(), | ||
removed: v.boolean(), | ||
state: this.stateType, | ||
owner: v | ||
.union( | ||
v.object({ type: v.literal("team"), name: v.string() }), | ||
v.object({ type: v.literal("user"), email: v.string() }), | ||
) | ||
.optional(), | ||
}), | ||
@@ -172,4 +181,11 @@ }); | ||
responseType: v.object({ | ||
id: v.string(), | ||
removed: v.boolean(), | ||
state: this.stateType, | ||
owner: v | ||
.union( | ||
v.object({ type: v.literal("team"), name: v.string() }), | ||
v.object({ type: v.literal("user"), email: v.string() }), | ||
) | ||
.optional(), | ||
}), | ||
@@ -176,0 +192,0 @@ }); |
Sorry, the diff of this file is not supported yet
63546
1460