deesse 0.0.27 → 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,2 +1,3 @@
1
1
  export { AdminConfig, AuthConfig, Config, buildConfig } from './config/index.mjs';
2
- export { Collection, Field, collection, field, text } from './collections/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,2 +1,3 @@
1
1
  export { AdminConfig, AuthConfig, Config, buildConfig } from './config/index.js';
2
- export { Collection, Field, collection, field, text } from './collections/index.js';
2
+ export { collection, field, text } from './collections/index.js';
3
+ export { C as Collection, F as Field } from './types-Dz3pl6_j.js';
@@ -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.27",
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
  }