@axium/notes 0.1.9 → 0.1.11
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/common.d.ts +13 -3
- package/dist/common.js +2 -1
- package/dist/hooks.js +1 -1
- package/package.json +8 -6
package/dist/common.d.ts
CHANGED
|
@@ -1,13 +1,23 @@
|
|
|
1
|
-
import type { Permission } from '@axium/core';
|
|
2
1
|
import * as z from 'zod';
|
|
3
2
|
export declare const NoteInit: z.ZodObject<{
|
|
4
3
|
title: z.ZodString;
|
|
5
4
|
content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6
5
|
labels: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
7
|
-
publicPermission: z.ZodDefault<z.
|
|
6
|
+
publicPermission: z.ZodDefault<z.ZodEnum<{
|
|
7
|
+
readonly None: 0;
|
|
8
|
+
readonly Read: 1;
|
|
9
|
+
readonly Comment: 2;
|
|
10
|
+
readonly Edit: 3;
|
|
11
|
+
readonly Manage: 5;
|
|
12
|
+
}> & {
|
|
13
|
+
readonly None: 0;
|
|
14
|
+
readonly Read: 1;
|
|
15
|
+
readonly Comment: 2;
|
|
16
|
+
readonly Edit: 3;
|
|
17
|
+
readonly Manage: 5;
|
|
18
|
+
}>;
|
|
8
19
|
}, z.core.$strip>;
|
|
9
20
|
export interface NoteInit extends z.infer<typeof NoteInit> {
|
|
10
|
-
publicPermission: Permission;
|
|
11
21
|
}
|
|
12
22
|
export interface Note extends z.infer<typeof NoteInit> {
|
|
13
23
|
id: string;
|
package/dist/common.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { Permission } from '@axium/core/access';
|
|
1
2
|
import * as z from 'zod';
|
|
2
3
|
export const NoteInit = z.object({
|
|
3
4
|
title: z.string().max(100),
|
|
4
5
|
content: z.string().max(10_000).nullish(),
|
|
5
6
|
labels: z.array(z.string().max(30)).default([]),
|
|
6
|
-
publicPermission:
|
|
7
|
+
publicPermission: Permission.default(0),
|
|
7
8
|
});
|
package/dist/hooks.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { done, start } from '@axium/core/node/io';
|
|
1
2
|
import * as acl from '@axium/server/acl';
|
|
2
3
|
import { count, createIndex, database, warnExists } from '@axium/server/database';
|
|
3
|
-
import { done, start } from '@axium/server/io';
|
|
4
4
|
import { sql } from 'kysely';
|
|
5
5
|
import './common.js';
|
|
6
6
|
import './server.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@axium/notes",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.11",
|
|
4
4
|
"author": "James Prevett <axium@jamespre.dev>",
|
|
5
5
|
"description": "Notes for Axium",
|
|
6
6
|
"funding": {
|
|
@@ -34,9 +34,9 @@
|
|
|
34
34
|
"build": "tsc"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
|
-
"@axium/client": ">=0.
|
|
38
|
-
"@axium/core": ">=0.
|
|
39
|
-
"@axium/server": ">=0.
|
|
37
|
+
"@axium/client": ">=0.6.0",
|
|
38
|
+
"@axium/core": ">=0.10.0",
|
|
39
|
+
"@axium/server": ">=0.26.0",
|
|
40
40
|
"@sveltejs/kit": "^2.27.3",
|
|
41
41
|
"utilium": "^2.4.0"
|
|
42
42
|
},
|
|
@@ -44,8 +44,10 @@
|
|
|
44
44
|
"zod": "^4.0.5"
|
|
45
45
|
},
|
|
46
46
|
"axium": {
|
|
47
|
-
"
|
|
48
|
-
|
|
47
|
+
"server": {
|
|
48
|
+
"routes": "routes",
|
|
49
|
+
"hooks": "./dist/hooks.js"
|
|
50
|
+
},
|
|
49
51
|
"apps": [
|
|
50
52
|
{
|
|
51
53
|
"id": "notes",
|