Skip to content

Commit 7864510

Browse files
committed
chore!: remove removed flag from installation objects
1 parent 33e3464 commit 7864510

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

.changeset/fuzzy-towns-invent.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@badrap/libapp": minor
3+
---
4+
5+
Remove `removed` flag from installation objects. Use the `status` property instead.

src/api/index.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ export type Installation<State extends Record<string, unknown>> = {
1818
state: State;
1919
owner?: { type: "team"; name: string } | { type: "user"; email: string };
2020
status: "active" | "paused" | "uninstalled";
21-
/** @deprecated Use status instead. */
22-
removed: boolean;
2321
};
2422

2523
export type Asset = Readonly<{
@@ -81,8 +79,6 @@ export class API<
8179
id: string;
8280
owner?: { type: "team"; name: string } | { type: "user"; email: string };
8381
status: "active" | "paused" | "uninstalled";
84-
/** @deprecated Use status instead. */
85-
removed: boolean;
8682
}> {
8783
yield* await this.#client.request({
8884
method: "GET",
@@ -101,7 +97,6 @@ export class API<
10197
v.literal("paused"),
10298
v.literal("uninstalled"),
10399
),
104-
removed: v.boolean(),
105100
}),
106101
),
107102
});
@@ -147,7 +142,6 @@ export class API<
147142
v.literal("paused"),
148143
v.literal("uninstalled"),
149144
),
150-
removed: v.boolean(),
151145
}),
152146
});
153147
}
@@ -183,7 +177,6 @@ export class API<
183177
v.literal("paused"),
184178
v.literal("uninstalled"),
185179
),
186-
removed: v.boolean(),
187180
}),
188181
});
189182

0 commit comments

Comments
 (0)