@haverstack/commons 0.36.0 → 0.38.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/README.md +5 -6
- package/dist/index.d.ts +15 -19
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +104 -65
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -32,16 +32,15 @@ import { defineCommonsTypes, NOTE, TASK } from '@haverstack/commons';
|
|
|
32
32
|
await defineCommonsTypes(stack, [NOTE, TASK]);
|
|
33
33
|
|
|
34
34
|
// Each constant is a type handle, so content is typed from the schema.
|
|
35
|
-
const note = await stack.create(
|
|
36
|
-
const tasks = await stack.
|
|
35
|
+
const note = await stack.collection(NOTE).create({ text: 'Hello, Haverstack!' });
|
|
36
|
+
const tasks = await stack.collection(TASK).query(); // records: { content: { title: string; done: boolean; ... } }[]
|
|
37
37
|
```
|
|
38
38
|
|
|
39
39
|
Each export (`NOTE`, `BOOKMARK`, `TASK`, `CONTACT`, `ARTICLE`, `PLACE`, `PAGE`, `IMAGE`,
|
|
40
40
|
`POST`, `SITE`) is a [type handle](https://github.com/haverstack/core/blob/main/docs/spec/data-model.md#type-handles)
|
|
41
|
-
— `{ id, baseId, schema }` —
|
|
42
|
-
[`docs/commons/`](https://github.com/haverstack/core/tree/main/docs/commons)
|
|
43
|
-
|
|
44
|
-
`patchContent` and `subscribe`; use `NOTE.baseId` for calls about the whole family.
|
|
41
|
+
— `{ id, baseId, name, schema }` — mirroring its type's `stack.defineType(...)` block in
|
|
42
|
+
[`docs/commons/`](https://github.com/haverstack/core/tree/main/docs/commons) exactly. Pass it to `stack.collection()` for typed access to its family; use `NOTE.baseId` for
|
|
43
|
+
untyped calls about the whole family.
|
|
45
44
|
`defineCommonsTypes()` is a thin loop over `stack.defineType()` — calling it again with
|
|
46
45
|
types already registered is the ordinary idempotent no-op path (see `defineType`'s own
|
|
47
46
|
docs), so it's safe to call on every app startup.
|
package/dist/index.d.ts
CHANGED
|
@@ -10,19 +10,15 @@
|
|
|
10
10
|
* markdown, which is the drift the Schema Commons' governance process exists
|
|
11
11
|
* to prevent.
|
|
12
12
|
*
|
|
13
|
-
* Each constant is also a type handle, so `stack.
|
|
14
|
-
*
|
|
15
|
-
*
|
|
13
|
+
* Each constant is also a type handle, so `stack.collection(NOTE)` derives
|
|
14
|
+
* its content type from the same literal. See docs/spec/data-model.md
|
|
15
|
+
* § Type handles.
|
|
16
16
|
*
|
|
17
17
|
* Only Draft-status types are exported here. Proposed types (not yet backed
|
|
18
18
|
* by a concrete intended writer) stay docs-only until they graduate.
|
|
19
19
|
*/
|
|
20
|
-
import type {
|
|
21
|
-
|
|
22
|
-
export type CommonsType<S extends ReadonlyTypeSchema = ReadonlyTypeSchema> = TypeHandle<S> & {
|
|
23
|
-
readonly name: string;
|
|
24
|
-
};
|
|
25
|
-
export declare const NOTE: CommonsType<{
|
|
20
|
+
import type { Stack, StackType, TypeHandle } from '@haverstack/core';
|
|
21
|
+
export declare const NOTE: TypeHandle<{
|
|
26
22
|
readonly text: {
|
|
27
23
|
readonly kind: "text";
|
|
28
24
|
readonly required: true;
|
|
@@ -34,7 +30,7 @@ export declare const NOTE: CommonsType<{
|
|
|
34
30
|
readonly kind: "string";
|
|
35
31
|
};
|
|
36
32
|
}>;
|
|
37
|
-
export declare const BOOKMARK:
|
|
33
|
+
export declare const BOOKMARK: TypeHandle<{
|
|
38
34
|
readonly url: {
|
|
39
35
|
readonly kind: "string";
|
|
40
36
|
readonly required: true;
|
|
@@ -46,7 +42,7 @@ export declare const BOOKMARK: CommonsType<{
|
|
|
46
42
|
readonly kind: "text";
|
|
47
43
|
};
|
|
48
44
|
}>;
|
|
49
|
-
export declare const TASK:
|
|
45
|
+
export declare const TASK: TypeHandle<{
|
|
50
46
|
readonly title: {
|
|
51
47
|
readonly kind: "string";
|
|
52
48
|
readonly required: true;
|
|
@@ -65,7 +61,7 @@ export declare const TASK: CommonsType<{
|
|
|
65
61
|
readonly kind: "date";
|
|
66
62
|
};
|
|
67
63
|
}>;
|
|
68
|
-
export declare const CONTACT:
|
|
64
|
+
export declare const CONTACT: TypeHandle<{
|
|
69
65
|
readonly name: {
|
|
70
66
|
readonly kind: "string";
|
|
71
67
|
readonly required: true;
|
|
@@ -122,7 +118,7 @@ export declare const CONTACT: CommonsType<{
|
|
|
122
118
|
readonly kind: "text";
|
|
123
119
|
};
|
|
124
120
|
}>;
|
|
125
|
-
export declare const ARTICLE:
|
|
121
|
+
export declare const ARTICLE: TypeHandle<{
|
|
126
122
|
readonly title: {
|
|
127
123
|
readonly kind: "string";
|
|
128
124
|
readonly required: true;
|
|
@@ -147,7 +143,7 @@ export declare const ARTICLE: CommonsType<{
|
|
|
147
143
|
readonly kind: "date";
|
|
148
144
|
};
|
|
149
145
|
}>;
|
|
150
|
-
export declare const PLACE:
|
|
146
|
+
export declare const PLACE: TypeHandle<{
|
|
151
147
|
readonly latitude: {
|
|
152
148
|
readonly kind: "number";
|
|
153
149
|
readonly required: true;
|
|
@@ -166,7 +162,7 @@ export declare const PLACE: CommonsType<{
|
|
|
166
162
|
readonly kind: "string";
|
|
167
163
|
};
|
|
168
164
|
}>;
|
|
169
|
-
export declare const PAGE:
|
|
165
|
+
export declare const PAGE: TypeHandle<{
|
|
170
166
|
readonly slug: {
|
|
171
167
|
readonly kind: "string";
|
|
172
168
|
readonly required: true;
|
|
@@ -200,7 +196,7 @@ export declare const PAGE: CommonsType<{
|
|
|
200
196
|
};
|
|
201
197
|
};
|
|
202
198
|
}>;
|
|
203
|
-
export declare const IMAGE:
|
|
199
|
+
export declare const IMAGE: TypeHandle<{
|
|
204
200
|
readonly file: {
|
|
205
201
|
readonly kind: "file-ref";
|
|
206
202
|
readonly required: true;
|
|
@@ -215,7 +211,7 @@ export declare const IMAGE: CommonsType<{
|
|
|
215
211
|
readonly kind: "date";
|
|
216
212
|
};
|
|
217
213
|
}>;
|
|
218
|
-
export declare const POST:
|
|
214
|
+
export declare const POST: TypeHandle<{
|
|
219
215
|
readonly text: {
|
|
220
216
|
readonly kind: "text";
|
|
221
217
|
readonly required: true;
|
|
@@ -227,7 +223,7 @@ export declare const POST: CommonsType<{
|
|
|
227
223
|
readonly kind: "string";
|
|
228
224
|
};
|
|
229
225
|
}>;
|
|
230
|
-
export declare const SITE:
|
|
226
|
+
export declare const SITE: TypeHandle<{
|
|
231
227
|
readonly title: {
|
|
232
228
|
readonly kind: "string";
|
|
233
229
|
readonly required: true;
|
|
@@ -249,5 +245,5 @@ export declare const SITE: CommonsType<{
|
|
|
249
245
|
* each call is independent, but running in order keeps the returned array
|
|
250
246
|
* predictable.
|
|
251
247
|
*/
|
|
252
|
-
export declare const defineCommonsTypes: (stack: Stack, types: readonly
|
|
248
|
+
export declare const defineCommonsTypes: (stack: Stack, types: readonly TypeHandle[]) => Promise<StackType[]>;
|
|
253
249
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAGH,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAGH,OAAO,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAUrE,eAAO,MAAM,IAAI;;;;;;;;;;;EAQf,CAAC;AAEH,eAAO,MAAM,QAAQ;;;;;;;;;;;EAQnB,CAAC;AAEH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;EAUf,CAAC;AAEH,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAWlB,CAAC;AAEH,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;EAYlB,CAAC;AAEH,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;EAUhB,CAAC;AAEH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkBf,CAAC;AAEH,eAAO,MAAM,KAAK;;;;;;;;;;;;;;EAShB,CAAC;AAEH,eAAO,MAAM,IAAI;;;;;;;;;;;EAQf,CAAC;AAEH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;EASf,CAAC;AAEH;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,GAC7B,OAAO,KAAK,EACZ,OAAO,SAAS,UAAU,EAAE,KAC3B,OAAO,CAAC,SAAS,EAAE,CAMrB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -10,15 +10,14 @@
|
|
|
10
10
|
* markdown, which is the drift the Schema Commons' governance process exists
|
|
11
11
|
* to prevent.
|
|
12
12
|
*
|
|
13
|
-
* Each constant is also a type handle, so `stack.
|
|
14
|
-
*
|
|
15
|
-
*
|
|
13
|
+
* Each constant is also a type handle, so `stack.collection(NOTE)` derives
|
|
14
|
+
* its content type from the same literal. See docs/spec/data-model.md
|
|
15
|
+
* § Type handles.
|
|
16
16
|
*
|
|
17
17
|
* Only Draft-status types are exported here. Proposed types (not yet backed
|
|
18
18
|
* by a concrete intended writer) stay docs-only until they graduate.
|
|
19
19
|
*/
|
|
20
20
|
import { typeHandle } from '@haverstack/core';
|
|
21
|
-
const commonsType = (id, name, schema) => Object.freeze({ ...typeHandle(id, schema), name });
|
|
22
21
|
const labeledValue = {
|
|
23
22
|
kind: 'object',
|
|
24
23
|
properties: {
|
|
@@ -26,78 +25,118 @@ const labeledValue = {
|
|
|
26
25
|
label: { kind: 'string' },
|
|
27
26
|
},
|
|
28
27
|
};
|
|
29
|
-
export const NOTE =
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
28
|
+
export const NOTE = typeHandle({
|
|
29
|
+
id: 'org.haverstack/note@1',
|
|
30
|
+
name: 'Note',
|
|
31
|
+
schema: {
|
|
32
|
+
text: { kind: 'text', required: true },
|
|
33
|
+
title: { kind: 'string' },
|
|
34
|
+
format: { kind: 'string' },
|
|
35
|
+
},
|
|
33
36
|
});
|
|
34
|
-
export const BOOKMARK =
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
37
|
+
export const BOOKMARK = typeHandle({
|
|
38
|
+
id: 'org.haverstack/bookmark@1',
|
|
39
|
+
name: 'Bookmark',
|
|
40
|
+
schema: {
|
|
41
|
+
url: { kind: 'string', required: true },
|
|
42
|
+
title: { kind: 'string' },
|
|
43
|
+
description: { kind: 'text' },
|
|
44
|
+
},
|
|
38
45
|
});
|
|
39
|
-
export const TASK =
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
46
|
+
export const TASK = typeHandle({
|
|
47
|
+
id: 'org.haverstack/task@1',
|
|
48
|
+
name: 'Task',
|
|
49
|
+
schema: {
|
|
50
|
+
title: { kind: 'string', required: true },
|
|
51
|
+
done: { kind: 'boolean', required: true },
|
|
52
|
+
notes: { kind: 'text' },
|
|
53
|
+
due: { kind: 'date' },
|
|
54
|
+
completedAt: { kind: 'date' },
|
|
55
|
+
},
|
|
45
56
|
});
|
|
46
|
-
export const CONTACT =
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
57
|
+
export const CONTACT = typeHandle({
|
|
58
|
+
id: 'org.haverstack/contact@1',
|
|
59
|
+
name: 'Contact',
|
|
60
|
+
schema: {
|
|
61
|
+
name: { kind: 'string', required: true },
|
|
62
|
+
emails: { kind: 'array', items: labeledValue },
|
|
63
|
+
phones: { kind: 'array', items: labeledValue },
|
|
64
|
+
urls: { kind: 'array', items: labeledValue },
|
|
65
|
+
org: { kind: 'string' },
|
|
66
|
+
note: { kind: 'text' },
|
|
67
|
+
},
|
|
53
68
|
});
|
|
54
|
-
export const ARTICLE =
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
69
|
+
export const ARTICLE = typeHandle({
|
|
70
|
+
id: 'org.haverstack/article@1',
|
|
71
|
+
name: 'Article',
|
|
72
|
+
schema: {
|
|
73
|
+
title: { kind: 'string', required: true },
|
|
74
|
+
text: { kind: 'text', required: true },
|
|
75
|
+
format: { kind: 'string' },
|
|
76
|
+
summary: { kind: 'text' },
|
|
77
|
+
url: { kind: 'string' },
|
|
78
|
+
author: { kind: 'string' },
|
|
79
|
+
publishedAt: { kind: 'date' },
|
|
80
|
+
},
|
|
62
81
|
});
|
|
63
|
-
export const PLACE =
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
82
|
+
export const PLACE = typeHandle({
|
|
83
|
+
id: 'org.haverstack/place@1',
|
|
84
|
+
name: 'Place',
|
|
85
|
+
schema: {
|
|
86
|
+
latitude: { kind: 'number', required: true },
|
|
87
|
+
longitude: { kind: 'number', required: true },
|
|
88
|
+
name: { kind: 'string' },
|
|
89
|
+
address: { kind: 'string' },
|
|
90
|
+
url: { kind: 'string' },
|
|
91
|
+
},
|
|
69
92
|
});
|
|
70
|
-
export const PAGE =
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
kind: '
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
93
|
+
export const PAGE = typeHandle({
|
|
94
|
+
id: 'org.haverstack/page@1',
|
|
95
|
+
name: 'Page',
|
|
96
|
+
schema: {
|
|
97
|
+
slug: { kind: 'string', required: true },
|
|
98
|
+
text: { kind: 'text', required: true },
|
|
99
|
+
title: { kind: 'string' },
|
|
100
|
+
format: { kind: 'string' },
|
|
101
|
+
publishedAt: { kind: 'date' },
|
|
102
|
+
collection: {
|
|
103
|
+
kind: 'object',
|
|
104
|
+
properties: {
|
|
105
|
+
typeId: { kind: 'string', required: true },
|
|
106
|
+
tag: { kind: 'string' },
|
|
107
|
+
order: { kind: 'string' },
|
|
108
|
+
},
|
|
82
109
|
},
|
|
83
110
|
},
|
|
84
111
|
});
|
|
85
|
-
export const IMAGE =
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
112
|
+
export const IMAGE = typeHandle({
|
|
113
|
+
id: 'org.haverstack/image@1',
|
|
114
|
+
name: 'Image',
|
|
115
|
+
schema: {
|
|
116
|
+
file: { kind: 'file-ref', required: true },
|
|
117
|
+
caption: { kind: 'text' },
|
|
118
|
+
alt: { kind: 'string' },
|
|
119
|
+
capturedAt: { kind: 'date' },
|
|
120
|
+
},
|
|
90
121
|
});
|
|
91
|
-
export const POST =
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
122
|
+
export const POST = typeHandle({
|
|
123
|
+
id: 'org.haverstack/post@1',
|
|
124
|
+
name: 'Post',
|
|
125
|
+
schema: {
|
|
126
|
+
text: { kind: 'text', required: true },
|
|
127
|
+
format: { kind: 'string' },
|
|
128
|
+
url: { kind: 'string' },
|
|
129
|
+
},
|
|
95
130
|
});
|
|
96
|
-
export const SITE =
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
131
|
+
export const SITE = typeHandle({
|
|
132
|
+
id: 'org.haverstack/site@1',
|
|
133
|
+
name: 'Site',
|
|
134
|
+
schema: {
|
|
135
|
+
title: { kind: 'string', required: true },
|
|
136
|
+
baseUrl: { kind: 'string', required: true },
|
|
137
|
+
description: { kind: 'text' },
|
|
138
|
+
handle: { kind: 'string' },
|
|
139
|
+
},
|
|
101
140
|
});
|
|
102
141
|
/**
|
|
103
142
|
* Registers each given commons type on `stack` via `defineType()`, exactly
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;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AAO,CAAC,IAAI,CAAC,MAAM,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC;IAC7C,CAAC;IACD,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@haverstack/commons",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.38.0",
|
|
4
4
|
"description": "Canonical Schema Commons type definitions for Haverstack — register commons types exactly as written",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"interop"
|
|
28
28
|
],
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@haverstack/core": "^0.
|
|
30
|
+
"@haverstack/core": "^0.43.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@types/node": "^22.0.0",
|