@happyvertical/smrt-properties 0.30.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.
@@ -0,0 +1,58 @@
1
+ import { SmrtObjectOptions } from '@happyvertical/smrt-core';
2
+
3
+ /**
4
+ * Options for creating a Property instance
5
+ */
6
+ export declare interface PropertyOptions extends SmrtObjectOptions {
7
+ tenantId?: string | null;
8
+ name?: string;
9
+ domain?: string;
10
+ url?: string;
11
+ description?: string;
12
+ repositoryId?: string | null;
13
+ ownerId?: string | null;
14
+ status?: PropertyStatus;
15
+ metadata?: Record<string, unknown>;
16
+ }
17
+
18
+ /**
19
+ * Status of a digital property
20
+ */
21
+ export declare type PropertyStatus = 'active' | 'inactive' | 'pending';
22
+
23
+ /**
24
+ * Options for creating a Zone instance
25
+ */
26
+ export declare interface ZoneOptions extends SmrtObjectOptions {
27
+ tenantId?: string | null;
28
+ propertyId?: string;
29
+ parentId?: string | null;
30
+ name?: string;
31
+ type?: string;
32
+ path?: string;
33
+ selector?: string;
34
+ position?: string;
35
+ width?: number | null;
36
+ height?: number | null;
37
+ allowedFormats?: string[];
38
+ defaultContentId?: string | null;
39
+ metadata?: Record<string, unknown>;
40
+ }
41
+
42
+ /**
43
+ * Complete zone tree for a property
44
+ */
45
+ export declare interface ZoneTree<T = unknown> {
46
+ propertyId: string;
47
+ roots: ZoneTreeNode<T>[];
48
+ }
49
+
50
+ /**
51
+ * A node in the zone tree hierarchy
52
+ */
53
+ export declare interface ZoneTreeNode<T = unknown> {
54
+ zone: T;
55
+ children: ZoneTreeNode<T>[];
56
+ }
57
+
58
+ export { }
package/dist/types.js ADDED
@@ -0,0 +1,2 @@
1
+
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
package/package.json ADDED
@@ -0,0 +1,64 @@
1
+ {
2
+ "name": "@happyvertical/smrt-properties",
3
+ "version": "0.30.0",
4
+ "description": "Digital property and zone management models for SMRT framework",
5
+ "type": "module",
6
+ "main": "./dist/index.js",
7
+ "types": "./dist/index.d.ts",
8
+ "files": [
9
+ "dist",
10
+ "CLAUDE.md",
11
+ "AGENTS.md"
12
+ ],
13
+ "exports": {
14
+ ".": {
15
+ "types": "./dist/index.d.ts",
16
+ "import": "./dist/index.js"
17
+ },
18
+ "./manifest": "./dist/manifest.json",
19
+ "./manifest.json": "./dist/manifest.json"
20
+ },
21
+ "dependencies": {
22
+ "@happyvertical/smrt-core": "0.30.0",
23
+ "@happyvertical/smrt-prompts": "0.30.0",
24
+ "@happyvertical/smrt-tenancy": "0.30.0"
25
+ },
26
+ "devDependencies": {
27
+ "@happyvertical/sql": "^0.74.7",
28
+ "@types/node": "25.0.9",
29
+ "fast-glob": "3.3.3",
30
+ "typescript": "^5.9.3",
31
+ "vite": "^7.3.1",
32
+ "vitest": "^4.0.17",
33
+ "@happyvertical/smrt-vitest": "0.30.0",
34
+ "@happyvertical/smrt-cli": "0.30.0"
35
+ },
36
+ "keywords": [
37
+ "ai",
38
+ "smrt",
39
+ "properties",
40
+ "zones",
41
+ "digital-properties",
42
+ "ad-slots"
43
+ ],
44
+ "author": "HappyVertical",
45
+ "license": "MIT",
46
+ "publishConfig": {
47
+ "registry": "https://registry.npmjs.org",
48
+ "access": "public"
49
+ },
50
+ "repository": {
51
+ "type": "git",
52
+ "url": "https://github.com/happyvertical/smrt.git",
53
+ "directory": "packages/properties"
54
+ },
55
+ "scripts": {
56
+ "build": "vite build --mode library",
57
+ "build:watch": "vite build --mode library --watch",
58
+ "clean": "rm -rf dist",
59
+ "dev": "vite dev",
60
+ "test": "vitest run",
61
+ "test:watch": "vitest",
62
+ "typecheck": "tsc --noEmit -p tsconfig.json"
63
+ }
64
+ }