@buildinternet/releases-api-types 0.17.0 → 0.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/src/schemas/releases.ts
CHANGED
|
@@ -31,6 +31,7 @@ export const ReleaseLatestItemSchema = z.object({
|
|
|
31
31
|
url: z.string().nullable(),
|
|
32
32
|
media: z.array(MediaItemSchema),
|
|
33
33
|
source: ReleaseLatestSourceSchema,
|
|
34
|
+
coverageCount: z.number().int().min(0).optional(),
|
|
34
35
|
});
|
|
35
36
|
|
|
36
37
|
export const ReleaseLatestResponseSchema = z.object({
|
package/src/schemas/search.ts
CHANGED
package/src/schemas/shared.ts
CHANGED
|
@@ -69,6 +69,11 @@ export const ReleaseItemSchema = z.object({
|
|
|
69
69
|
// `.optional()` for the same mid-deploy / pinned-worker reason as `type`.
|
|
70
70
|
titleGenerated: z.string().nullable().optional(),
|
|
71
71
|
titleShort: z.string().nullable().optional(),
|
|
72
|
+
// Count of demoted siblings rolling up into this row via `release_coverage`
|
|
73
|
+
// (0 when standalone). Lets list views show a cluster indicator without a
|
|
74
|
+
// detail-page round trip. `.optional()` — older API responses and pinned
|
|
75
|
+
// workers omit the field; treat undefined as 0.
|
|
76
|
+
coverageCount: z.number().int().min(0).optional(),
|
|
72
77
|
});
|
|
73
78
|
|
|
74
79
|
export const ReleaseSummaryItemSchema = z.object({
|