@ampless/backend 1.0.0-beta.81 → 1.0.0-beta.82
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/dist/index.js +5 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -340,9 +340,9 @@ function amplessSchemaModels(a, opts = {}) {
|
|
|
340
340
|
slug: a.string().required(),
|
|
341
341
|
title: a.string().required(),
|
|
342
342
|
excerpt: a.string(),
|
|
343
|
-
format: a.enum(["tiptap", "markdown", "html", "static"]),
|
|
343
|
+
format: a.enum(["tiptap", "markdown", "html", "static"]).required(),
|
|
344
344
|
body: a.json(),
|
|
345
|
-
status: a.enum(["draft", "published"]),
|
|
345
|
+
status: a.enum(["draft", "published"]).required(),
|
|
346
346
|
publishedAt: a.datetime(),
|
|
347
347
|
tags: a.string().array(),
|
|
348
348
|
// Free-form per-post metadata (JSON). Reserved well-known keys
|
|
@@ -363,9 +363,9 @@ function amplessSchemaModels(a, opts = {}) {
|
|
|
363
363
|
pageId: a.id().required(),
|
|
364
364
|
slug: a.string().required(),
|
|
365
365
|
title: a.string().required(),
|
|
366
|
-
format: a.enum(["tiptap", "markdown", "html", "static"]),
|
|
366
|
+
format: a.enum(["tiptap", "markdown", "html", "static"]).required(),
|
|
367
367
|
body: a.json(),
|
|
368
|
-
status: a.enum(["draft", "published"]),
|
|
368
|
+
status: a.enum(["draft", "published"]).required(),
|
|
369
369
|
publishedAt: a.datetime()
|
|
370
370
|
}).identifier(["pageId"]).authorization((allow) => [
|
|
371
371
|
allow.groups(["ampless-admin", "ampless-editor"])
|
|
@@ -375,7 +375,7 @@ function amplessSchemaModels(a, opts = {}) {
|
|
|
375
375
|
src: a.string().required(),
|
|
376
376
|
mimeType: a.string().required(),
|
|
377
377
|
size: a.integer(),
|
|
378
|
-
delivery: a.
|
|
378
|
+
delivery: a.enum(["nextjs", "s3-direct"]).required(),
|
|
379
379
|
// Free-form per-asset metadata (JSON). Currently used to
|
|
380
380
|
// memoise the S3 ETag for stream-back routes; future use
|
|
381
381
|
// for image dimensions, EXIF strip status, etc. Kept loose
|
package/package.json
CHANGED