deesse 0.0.26 → 0.0.28

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.
@@ -1,22 +1,8 @@
1
- type Collection = {
2
- name: string;
3
- fields: Field[];
4
- };
5
- type Field = {
6
- name: {
7
- type: undefined;
8
- permissions: {
9
- create: string[];
10
- read: string[];
11
- update: string[];
12
- delete: string[];
13
- };
14
- };
15
- };
1
+ import { F as Field, C as Collection } from '../types-Dz3pl6_j.mjs';
16
2
 
17
3
  declare const field: (field: Field) => Field;
18
4
  declare const text: () => void;
19
5
 
20
6
  declare const collection: (collection: Collection) => Collection;
21
7
 
22
- export { type Collection, type Field, collection, field, text };
8
+ export { Collection, Field, collection, field, text };
@@ -1,22 +1,8 @@
1
- type Collection = {
2
- name: string;
3
- fields: Field[];
4
- };
5
- type Field = {
6
- name: {
7
- type: undefined;
8
- permissions: {
9
- create: string[];
10
- read: string[];
11
- update: string[];
12
- delete: string[];
13
- };
14
- };
15
- };
1
+ import { F as Field, C as Collection } from '../types-Dz3pl6_j.js';
16
2
 
17
3
  declare const field: (field: Field) => Field;
18
4
  declare const text: () => void;
19
5
 
20
6
  declare const collection: (collection: Collection) => Collection;
21
7
 
22
- export { type Collection, type Field, collection, field, text };
8
+ export { Collection, Field, collection, field, text };
@@ -1,10 +1,13 @@
1
+ import { C as Collection } from '../types-Dz3pl6_j.mjs';
2
+
1
3
  type AdminConfig = {
2
4
  defaultLanguage?: string;
3
5
  };
4
6
  type AuthConfig = {};
5
- type Config = {
7
+ type Config<TCollections extends Collection[] = []> = {
6
8
  admin: AdminConfig;
7
9
  auth: AuthConfig;
10
+ collections: TCollections;
8
11
  };
9
12
 
10
13
  declare const buildConfig: (config: Config) => Config;
@@ -1,10 +1,13 @@
1
+ import { C as Collection } from '../types-Dz3pl6_j.js';
2
+
1
3
  type AdminConfig = {
2
4
  defaultLanguage?: string;
3
5
  };
4
6
  type AuthConfig = {};
5
- type Config = {
7
+ type Config<TCollections extends Collection[] = []> = {
6
8
  admin: AdminConfig;
7
9
  auth: AuthConfig;
10
+ collections: TCollections;
8
11
  };
9
12
 
10
13
  declare const buildConfig: (config: Config) => Config;
package/dist/index.d.mts CHANGED
@@ -1 +1,3 @@
1
1
  export { AdminConfig, AuthConfig, Config, buildConfig } from './config/index.mjs';
2
+ export { collection, field, text } from './collections/index.mjs';
3
+ export { C as Collection, F as Field } from './types-Dz3pl6_j.mjs';
package/dist/index.d.ts CHANGED
@@ -1 +1,3 @@
1
1
  export { AdminConfig, AuthConfig, Config, buildConfig } from './config/index.js';
2
+ export { collection, field, text } from './collections/index.js';
3
+ export { C as Collection, F as Field } from './types-Dz3pl6_j.js';
package/dist/index.js CHANGED
@@ -20,7 +20,10 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
20
20
  // src/index.ts
21
21
  var index_exports = {};
22
22
  __export(index_exports, {
23
- buildConfig: () => buildConfig
23
+ buildConfig: () => buildConfig,
24
+ collection: () => collection,
25
+ field: () => field,
26
+ text: () => text
24
27
  });
25
28
  module.exports = __toCommonJS(index_exports);
26
29
 
@@ -28,7 +31,22 @@ module.exports = __toCommonJS(index_exports);
28
31
  var buildConfig = (config) => {
29
32
  return config;
30
33
  };
34
+
35
+ // src/collections/fields.ts
36
+ var field = (field2) => {
37
+ return field2;
38
+ };
39
+ var text = () => {
40
+ };
41
+
42
+ // src/collections/collections.ts
43
+ var collection = (collection2) => {
44
+ return collection2;
45
+ };
31
46
  // Annotate the CommonJS export names for ESM import in node:
32
47
  0 && (module.exports = {
33
- buildConfig
48
+ buildConfig,
49
+ collection,
50
+ field,
51
+ text
34
52
  });
package/dist/index.mjs CHANGED
@@ -2,6 +2,21 @@
2
2
  var buildConfig = (config) => {
3
3
  return config;
4
4
  };
5
+
6
+ // src/collections/fields.ts
7
+ var field = (field2) => {
8
+ return field2;
9
+ };
10
+ var text = () => {
11
+ };
12
+
13
+ // src/collections/collections.ts
14
+ var collection = (collection2) => {
15
+ return collection2;
16
+ };
5
17
  export {
6
- buildConfig
18
+ buildConfig,
19
+ collection,
20
+ field,
21
+ text
7
22
  };
@@ -0,0 +1,18 @@
1
+ type Collection = {
2
+ name: string;
3
+ slug: string;
4
+ fields: Field[];
5
+ };
6
+ type Field = {
7
+ name: {
8
+ type: undefined;
9
+ permissions: {
10
+ create: string[];
11
+ read: string[];
12
+ update: string[];
13
+ delete: string[];
14
+ };
15
+ };
16
+ };
17
+
18
+ export type { Collection as C, Field as F };
@@ -0,0 +1,18 @@
1
+ type Collection = {
2
+ name: string;
3
+ slug: string;
4
+ fields: Field[];
5
+ };
6
+ type Field = {
7
+ name: {
8
+ type: undefined;
9
+ permissions: {
10
+ create: string[];
11
+ read: string[];
12
+ update: string[];
13
+ delete: string[];
14
+ };
15
+ };
16
+ };
17
+
18
+ export type { Collection as C, Field as F };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "deesse",
3
- "version": "0.0.26",
3
+ "version": "0.0.28",
4
4
  "description": "The fullstack nextjs framework",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -16,6 +16,7 @@
16
16
  "license": "ISC",
17
17
  "dependencies": {
18
18
  "tsup": "^8.5.0",
19
- "typescript": "^5.9.3"
19
+ "typescript": "^5.9.3",
20
+ "zod": "^4.1.12"
20
21
  }
21
22
  }