@brew-cms/api 0.1.0 → 0.2.1
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 +5 -5
- package/src/validators.ts +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brew-cms/api",
|
|
3
|
-
"version": "0.1
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "REST API router, OpenAPI spec, idempotency, and request validation for BrewCMS",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -13,14 +13,14 @@
|
|
|
13
13
|
}
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@brew-cms/content": "0.1
|
|
17
|
-
"@brew-cms/core": "0.
|
|
18
|
-
"@brew-cms/intelligence": "0.
|
|
16
|
+
"@brew-cms/content": "0.2.1",
|
|
17
|
+
"@brew-cms/core": "0.2.0",
|
|
18
|
+
"@brew-cms/intelligence": "0.2.0",
|
|
19
19
|
"@brew-cms/policy": "0.1.0",
|
|
20
20
|
"zod": "^3.24.1"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
|
-
"@brew-cms/db": "0.
|
|
23
|
+
"@brew-cms/db": "0.2.0"
|
|
24
24
|
},
|
|
25
25
|
"scripts": {
|
|
26
26
|
"build": "tsc -b",
|
package/src/validators.ts
CHANGED
|
@@ -6,7 +6,7 @@ export const CreateDocumentRequestSchema = z.object({
|
|
|
6
6
|
title: z.string().min(1),
|
|
7
7
|
excerpt: z.string().optional().nullable(),
|
|
8
8
|
sourceMarkdown: z.string(),
|
|
9
|
-
frontmatter: z.record(z.unknown()).optional(),
|
|
9
|
+
frontmatter: z.record(z.string(), z.unknown()).optional(),
|
|
10
10
|
seo: z
|
|
11
11
|
.object({
|
|
12
12
|
metaTitle: z.string().optional(),
|
|
@@ -23,7 +23,7 @@ export const UpdateDocumentRequestSchema = z.object({
|
|
|
23
23
|
slug: z.string().optional(),
|
|
24
24
|
excerpt: z.string().optional().nullable(),
|
|
25
25
|
sourceMarkdown: z.string().optional(),
|
|
26
|
-
frontmatter: z.record(z.unknown()).optional(),
|
|
26
|
+
frontmatter: z.record(z.string(), z.unknown()).optional(),
|
|
27
27
|
seo: z
|
|
28
28
|
.object({
|
|
29
29
|
metaTitle: z.string().optional(),
|