@plasius/entity-manager
Advanced tools
+15
-0
@@ -24,2 +24,16 @@ | ||
| ## [1.0.17] - 2026-05-14 | ||
| - **Added** | ||
| - Completed `objectAssetEntitySchema` with concrete object asset metadata fields and component attachments. | ||
| - **Changed** | ||
| - (placeholder) | ||
| - **Fixed** | ||
| - (placeholder) | ||
| - **Security** | ||
| - (placeholder) | ||
| ## [1.0.16] - 2026-05-13 | ||
@@ -238,1 +252,2 @@ | ||
| [1.0.16]: https://github.com/Plasius-LTD/entity-manager/releases/tag/v1.0.16 | ||
| [1.0.17]: https://github.com/Plasius-LTD/entity-manager/releases/tag/v1.0.17 |
+10
-2
@@ -243,4 +243,12 @@ "use strict"; | ||
| var objectAssetEntityShape = { | ||
| // ...TODO | ||
| type: import_schema9.field.string().required() | ||
| url: import_schema9.field.string().version("1.0").description("URL of the blob or file storage containing the object asset").required(), | ||
| thumbnailUrl: import_schema9.field.string().version("1.0").description("URL of the thumbnail image for the object asset").optional(), | ||
| format: import_schema9.field.string().version("1.0").description("Format of the object asset").optional().enum([...Object.values(ModelAssetFormat)]), | ||
| size: import_schema9.field.number().version("1.0").description("Size of the object asset in bytes").optional(), | ||
| components: import_schema9.field.array( | ||
| import_schema9.field.object({ | ||
| type: import_schema9.field.string().description("Type of the component").version("1.0").enum([...Object.values(ComponentTypes)]), | ||
| config: import_schema9.field.object({}).optional().description("Configuration for the component").version("1.0") | ||
| }) | ||
| ).version("1.0").description("List of components attached to this object asset").optional() | ||
| }; | ||
@@ -247,0 +255,0 @@ var objectAssetEntitySchema = (0, import_schema9.createSchema)( |
+10
-2
@@ -186,4 +186,12 @@ // src/base.entity.ts | ||
| var objectAssetEntityShape = { | ||
| // ...TODO | ||
| type: field9.string().required() | ||
| url: field9.string().version("1.0").description("URL of the blob or file storage containing the object asset").required(), | ||
| thumbnailUrl: field9.string().version("1.0").description("URL of the thumbnail image for the object asset").optional(), | ||
| format: field9.string().version("1.0").description("Format of the object asset").optional().enum([...Object.values(ModelAssetFormat)]), | ||
| size: field9.number().version("1.0").description("Size of the object asset in bytes").optional(), | ||
| components: field9.array( | ||
| field9.object({ | ||
| type: field9.string().description("Type of the component").version("1.0").enum([...Object.values(ComponentTypes)]), | ||
| config: field9.object({}).optional().description("Configuration for the component").version("1.0") | ||
| }) | ||
| ).version("1.0").description("List of components attached to this object asset").optional() | ||
| }; | ||
@@ -190,0 +198,0 @@ var objectAssetEntitySchema = createSchema6( |
+1
-1
| { | ||
| "name": "@plasius/entity-manager", | ||
| "version": "1.0.16", | ||
| "version": "1.0.17", | ||
| "description": "Entity definition & validation helpers for Plasius ecosystem", | ||
@@ -5,0 +5,0 @@ "type": "module", |
+2
-0
@@ -69,2 +69,4 @@ # @plasius/entity-manager | ||
| - `assetEntitySchema`, `imageAssetEntitySchema`, `audioAssetEntitySchema`, `modelAssetEntitySchema`, `objectAssetEntitySchema` | ||
| `objectAssetEntitySchema` includes object-specific fields for payload URL, optional thumbnail, optional format/size, and component wiring. | ||
| - Enums: `AudioChannel`, `ModelAssetFormat` | ||
@@ -71,0 +73,0 @@ |
| import { createSchema, field } from "@plasius/schema"; | ||
| import type { Infer, SchemaShape } from "@plasius/schema"; | ||
| import { AssetEntity } from "./asset.entity.js"; | ||
| import { ComponentTypes } from "../components/index.js"; | ||
| import { ModelAssetFormat } from "./model.asset.entity.js"; | ||
| export const objectAssetEntityShape : SchemaShape = { | ||
| // ...TODO | ||
| type: field.string().required() | ||
| url: field.string() | ||
| .version("1.0") | ||
| .description("URL of the blob or file storage containing the object asset") | ||
| .required(), | ||
| thumbnailUrl: field.string() | ||
| .version("1.0") | ||
| .description("URL of the thumbnail image for the object asset") | ||
| .optional(), | ||
| format: field.string() | ||
| .version("1.0") | ||
| .description("Format of the object asset") | ||
| .optional() | ||
| .enum([...Object.values(ModelAssetFormat)]), | ||
| size: field.number() | ||
| .version("1.0") | ||
| .description("Size of the object asset in bytes") | ||
| .optional(), | ||
| components: field.array( | ||
| field.object({ | ||
| type: field.string() | ||
| .description("Type of the component") | ||
| .version("1.0") | ||
| .enum([...Object.values(ComponentTypes)]), | ||
| config: field.object({}) | ||
| .optional() | ||
| .description("Configuration for the component") | ||
| .version("1.0"), | ||
| }) | ||
| ) | ||
| .version("1.0") | ||
| .description("List of components attached to this object asset") | ||
| .optional(), | ||
| }; | ||
@@ -10,0 +46,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
324658
2.11%3852
1.26%133
1.53%