mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-12 22:29:06 +00:00
23 lines
581 B
TypeScript
23 lines
581 B
TypeScript
import { z } from 'zod';
|
|
|
|
export const DevboxRelease = z.object({
|
|
version: z.string(),
|
|
last_updated: z.string(),
|
|
});
|
|
|
|
export const DevboxResponse = z
|
|
.object({
|
|
name: z.string(),
|
|
summary: z.string().optional(),
|
|
homepage_url: z.string().optional(),
|
|
license: z.string().optional(),
|
|
releases: DevboxRelease.array(),
|
|
})
|
|
.transform((response) => ({
|
|
name: response.name,
|
|
homepage: response.homepage_url,
|
|
releases: response.releases.map((release) => ({
|
|
version: release.version,
|
|
releaseTimestamp: release.last_updated,
|
|
})),
|
|
}));
|