deesse 0.0.28 → 0.0.33
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/collections/index.d.mts +10 -3
- package/dist/collections/index.d.ts +10 -3
- package/dist/collections/index.js +65 -1
- package/dist/collections/index.mjs +58 -1
- package/dist/config/index.d.mts +3 -3
- package/dist/config/index.d.ts +3 -3
- package/dist/index.d.mts +30 -2
- package/dist/index.d.ts +30 -2
- package/dist/index.js +85 -1
- package/dist/index.mjs +76 -1
- package/dist/types-CuxC99zt.d.mts +20 -0
- package/dist/types-CuxC99zt.d.ts +20 -0
- package/package.json +1 -1
- package/dist/types-Dz3pl6_j.d.mts +0 -18
- package/dist/types-Dz3pl6_j.d.ts +0 -18
|
@@ -1,8 +1,15 @@
|
|
|
1
|
-
import { F as Field, C as Collection } from '../types-
|
|
1
|
+
import { F as Field, a as FieldConfig, C as Collection } from '../types-CuxC99zt.mjs';
|
|
2
2
|
|
|
3
3
|
declare const field: (field: Field) => Field;
|
|
4
|
-
declare const
|
|
4
|
+
declare const createField: (config: FieldConfig) => undefined;
|
|
5
|
+
declare const text: () => undefined;
|
|
6
|
+
declare const number: () => undefined;
|
|
7
|
+
declare const date: () => undefined;
|
|
8
|
+
declare const checkbox: () => undefined;
|
|
9
|
+
declare const array: () => undefined;
|
|
10
|
+
declare const relation: () => undefined;
|
|
11
|
+
declare const richText: () => undefined;
|
|
5
12
|
|
|
6
13
|
declare const collection: (collection: Collection) => Collection;
|
|
7
14
|
|
|
8
|
-
export { Collection, Field, collection, field, text };
|
|
15
|
+
export { Collection, Field, FieldConfig, array, checkbox, collection, createField, date, field, number, relation, richText, text };
|
|
@@ -1,8 +1,15 @@
|
|
|
1
|
-
import { F as Field, C as Collection } from '../types-
|
|
1
|
+
import { F as Field, a as FieldConfig, C as Collection } from '../types-CuxC99zt.js';
|
|
2
2
|
|
|
3
3
|
declare const field: (field: Field) => Field;
|
|
4
|
-
declare const
|
|
4
|
+
declare const createField: (config: FieldConfig) => undefined;
|
|
5
|
+
declare const text: () => undefined;
|
|
6
|
+
declare const number: () => undefined;
|
|
7
|
+
declare const date: () => undefined;
|
|
8
|
+
declare const checkbox: () => undefined;
|
|
9
|
+
declare const array: () => undefined;
|
|
10
|
+
declare const relation: () => undefined;
|
|
11
|
+
declare const richText: () => undefined;
|
|
5
12
|
|
|
6
13
|
declare const collection: (collection: Collection) => Collection;
|
|
7
14
|
|
|
8
|
-
export { Collection, Field, collection, field, text };
|
|
15
|
+
export { Collection, Field, FieldConfig, array, checkbox, collection, createField, date, field, number, relation, richText, text };
|
|
@@ -20,8 +20,15 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
20
20
|
// src/collections/index.ts
|
|
21
21
|
var collections_exports = {};
|
|
22
22
|
__export(collections_exports, {
|
|
23
|
+
array: () => array,
|
|
24
|
+
checkbox: () => checkbox,
|
|
23
25
|
collection: () => collection,
|
|
26
|
+
createField: () => createField,
|
|
27
|
+
date: () => date,
|
|
24
28
|
field: () => field,
|
|
29
|
+
number: () => number,
|
|
30
|
+
relation: () => relation,
|
|
31
|
+
richText: () => richText,
|
|
25
32
|
text: () => text
|
|
26
33
|
});
|
|
27
34
|
module.exports = __toCommonJS(collections_exports);
|
|
@@ -30,8 +37,58 @@ module.exports = __toCommonJS(collections_exports);
|
|
|
30
37
|
var field = (field2) => {
|
|
31
38
|
return field2;
|
|
32
39
|
};
|
|
33
|
-
var
|
|
40
|
+
var createField = (config) => {
|
|
41
|
+
return void 0;
|
|
34
42
|
};
|
|
43
|
+
var text = () => createField({
|
|
44
|
+
schema: void 0,
|
|
45
|
+
drizzle: void 0,
|
|
46
|
+
admin: {
|
|
47
|
+
component: void 0
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
var number = () => createField({
|
|
51
|
+
schema: void 0,
|
|
52
|
+
drizzle: void 0,
|
|
53
|
+
admin: {
|
|
54
|
+
component: void 0
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
var date = () => createField({
|
|
58
|
+
schema: void 0,
|
|
59
|
+
drizzle: void 0,
|
|
60
|
+
admin: {
|
|
61
|
+
component: void 0
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
var checkbox = () => createField({
|
|
65
|
+
schema: void 0,
|
|
66
|
+
drizzle: void 0,
|
|
67
|
+
admin: {
|
|
68
|
+
component: void 0
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
var array = () => createField({
|
|
72
|
+
schema: void 0,
|
|
73
|
+
drizzle: void 0,
|
|
74
|
+
admin: {
|
|
75
|
+
component: void 0
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
var relation = () => createField({
|
|
79
|
+
schema: void 0,
|
|
80
|
+
drizzle: void 0,
|
|
81
|
+
admin: {
|
|
82
|
+
component: void 0
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
var richText = () => createField({
|
|
86
|
+
schema: void 0,
|
|
87
|
+
drizzle: void 0,
|
|
88
|
+
admin: {
|
|
89
|
+
component: void 0
|
|
90
|
+
}
|
|
91
|
+
});
|
|
35
92
|
|
|
36
93
|
// src/collections/collections.ts
|
|
37
94
|
var collection = (collection2) => {
|
|
@@ -39,7 +96,14 @@ var collection = (collection2) => {
|
|
|
39
96
|
};
|
|
40
97
|
// Annotate the CommonJS export names for ESM import in node:
|
|
41
98
|
0 && (module.exports = {
|
|
99
|
+
array,
|
|
100
|
+
checkbox,
|
|
42
101
|
collection,
|
|
102
|
+
createField,
|
|
103
|
+
date,
|
|
43
104
|
field,
|
|
105
|
+
number,
|
|
106
|
+
relation,
|
|
107
|
+
richText,
|
|
44
108
|
text
|
|
45
109
|
});
|
|
@@ -2,15 +2,72 @@
|
|
|
2
2
|
var field = (field2) => {
|
|
3
3
|
return field2;
|
|
4
4
|
};
|
|
5
|
-
var
|
|
5
|
+
var createField = (config) => {
|
|
6
|
+
return void 0;
|
|
6
7
|
};
|
|
8
|
+
var text = () => createField({
|
|
9
|
+
schema: void 0,
|
|
10
|
+
drizzle: void 0,
|
|
11
|
+
admin: {
|
|
12
|
+
component: void 0
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
var number = () => createField({
|
|
16
|
+
schema: void 0,
|
|
17
|
+
drizzle: void 0,
|
|
18
|
+
admin: {
|
|
19
|
+
component: void 0
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
var date = () => createField({
|
|
23
|
+
schema: void 0,
|
|
24
|
+
drizzle: void 0,
|
|
25
|
+
admin: {
|
|
26
|
+
component: void 0
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
var checkbox = () => createField({
|
|
30
|
+
schema: void 0,
|
|
31
|
+
drizzle: void 0,
|
|
32
|
+
admin: {
|
|
33
|
+
component: void 0
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
var array = () => createField({
|
|
37
|
+
schema: void 0,
|
|
38
|
+
drizzle: void 0,
|
|
39
|
+
admin: {
|
|
40
|
+
component: void 0
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
var relation = () => createField({
|
|
44
|
+
schema: void 0,
|
|
45
|
+
drizzle: void 0,
|
|
46
|
+
admin: {
|
|
47
|
+
component: void 0
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
var richText = () => createField({
|
|
51
|
+
schema: void 0,
|
|
52
|
+
drizzle: void 0,
|
|
53
|
+
admin: {
|
|
54
|
+
component: void 0
|
|
55
|
+
}
|
|
56
|
+
});
|
|
7
57
|
|
|
8
58
|
// src/collections/collections.ts
|
|
9
59
|
var collection = (collection2) => {
|
|
10
60
|
return collection2;
|
|
11
61
|
};
|
|
12
62
|
export {
|
|
63
|
+
array,
|
|
64
|
+
checkbox,
|
|
13
65
|
collection,
|
|
66
|
+
createField,
|
|
67
|
+
date,
|
|
14
68
|
field,
|
|
69
|
+
number,
|
|
70
|
+
relation,
|
|
71
|
+
richText,
|
|
15
72
|
text
|
|
16
73
|
};
|
package/dist/config/index.d.mts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { C as Collection } from '../types-
|
|
1
|
+
import { C as Collection } from '../types-CuxC99zt.mjs';
|
|
2
2
|
|
|
3
3
|
type AdminConfig = {
|
|
4
4
|
defaultLanguage?: string;
|
|
5
5
|
};
|
|
6
6
|
type AuthConfig = {};
|
|
7
|
-
type Config
|
|
7
|
+
type Config = {
|
|
8
8
|
admin: AdminConfig;
|
|
9
9
|
auth: AuthConfig;
|
|
10
|
-
collections:
|
|
10
|
+
collections: Collection[];
|
|
11
11
|
};
|
|
12
12
|
|
|
13
13
|
declare const buildConfig: (config: Config) => Config;
|
package/dist/config/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { C as Collection } from '../types-
|
|
1
|
+
import { C as Collection } from '../types-CuxC99zt.js';
|
|
2
2
|
|
|
3
3
|
type AdminConfig = {
|
|
4
4
|
defaultLanguage?: string;
|
|
5
5
|
};
|
|
6
6
|
type AuthConfig = {};
|
|
7
|
-
type Config
|
|
7
|
+
type Config = {
|
|
8
8
|
admin: AdminConfig;
|
|
9
9
|
auth: AuthConfig;
|
|
10
|
-
collections:
|
|
10
|
+
collections: Collection[];
|
|
11
11
|
};
|
|
12
12
|
|
|
13
13
|
declare const buildConfig: (config: Config) => Config;
|
package/dist/index.d.mts
CHANGED
|
@@ -1,3 +1,31 @@
|
|
|
1
1
|
export { AdminConfig, AuthConfig, Config, buildConfig } from './config/index.mjs';
|
|
2
|
-
export { collection, field, text } from './collections/index.mjs';
|
|
3
|
-
|
|
2
|
+
export { array, checkbox, collection, createField, date, field, number, relation, richText, text } from './collections/index.mjs';
|
|
3
|
+
import { C as Collection } from './types-CuxC99zt.mjs';
|
|
4
|
+
export { F as Field, a as FieldConfig } from './types-CuxC99zt.mjs';
|
|
5
|
+
import { z } from 'zod';
|
|
6
|
+
|
|
7
|
+
type Context = {
|
|
8
|
+
db: undefined;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
declare const query: <TCollections extends readonly Collection[], Schema extends z.ZodTypeAny, T>(config: {
|
|
12
|
+
args?: Schema;
|
|
13
|
+
handler: (ctx: Context, args: Schema extends undefined ? undefined : z.infer<Schema>) => Promise<T>;
|
|
14
|
+
}) => (args?: Schema extends undefined ? undefined : z.infer<Schema>) => Promise<T>;
|
|
15
|
+
declare const mutation: <TCollections extends readonly Collection[], Schema extends z.ZodTypeAny, T>(config: {
|
|
16
|
+
args?: Schema;
|
|
17
|
+
handler: (ctx: Context, args: Schema extends undefined ? undefined : z.infer<Schema>) => Promise<T>;
|
|
18
|
+
}) => (args?: Schema extends undefined ? undefined : z.infer<Schema>) => Promise<T>;
|
|
19
|
+
|
|
20
|
+
type CollectionMethods = {
|
|
21
|
+
create: any;
|
|
22
|
+
update: any;
|
|
23
|
+
delete: any;
|
|
24
|
+
find: any;
|
|
25
|
+
};
|
|
26
|
+
type DatabaseFromCollections<TCollections extends readonly Collection[]> = {
|
|
27
|
+
[K in TCollections[number]['slug']]: CollectionMethods;
|
|
28
|
+
};
|
|
29
|
+
type Database<TCollections extends readonly Collection[]> = DatabaseFromCollections<TCollections>;
|
|
30
|
+
|
|
31
|
+
export { Collection, type CollectionMethods, type Context, type Database, type DatabaseFromCollections, mutation, query };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,31 @@
|
|
|
1
1
|
export { AdminConfig, AuthConfig, Config, buildConfig } from './config/index.js';
|
|
2
|
-
export { collection, field, text } from './collections/index.js';
|
|
3
|
-
|
|
2
|
+
export { array, checkbox, collection, createField, date, field, number, relation, richText, text } from './collections/index.js';
|
|
3
|
+
import { C as Collection } from './types-CuxC99zt.js';
|
|
4
|
+
export { F as Field, a as FieldConfig } from './types-CuxC99zt.js';
|
|
5
|
+
import { z } from 'zod';
|
|
6
|
+
|
|
7
|
+
type Context = {
|
|
8
|
+
db: undefined;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
declare const query: <TCollections extends readonly Collection[], Schema extends z.ZodTypeAny, T>(config: {
|
|
12
|
+
args?: Schema;
|
|
13
|
+
handler: (ctx: Context, args: Schema extends undefined ? undefined : z.infer<Schema>) => Promise<T>;
|
|
14
|
+
}) => (args?: Schema extends undefined ? undefined : z.infer<Schema>) => Promise<T>;
|
|
15
|
+
declare const mutation: <TCollections extends readonly Collection[], Schema extends z.ZodTypeAny, T>(config: {
|
|
16
|
+
args?: Schema;
|
|
17
|
+
handler: (ctx: Context, args: Schema extends undefined ? undefined : z.infer<Schema>) => Promise<T>;
|
|
18
|
+
}) => (args?: Schema extends undefined ? undefined : z.infer<Schema>) => Promise<T>;
|
|
19
|
+
|
|
20
|
+
type CollectionMethods = {
|
|
21
|
+
create: any;
|
|
22
|
+
update: any;
|
|
23
|
+
delete: any;
|
|
24
|
+
find: any;
|
|
25
|
+
};
|
|
26
|
+
type DatabaseFromCollections<TCollections extends readonly Collection[]> = {
|
|
27
|
+
[K in TCollections[number]['slug']]: CollectionMethods;
|
|
28
|
+
};
|
|
29
|
+
type Database<TCollections extends readonly Collection[]> = DatabaseFromCollections<TCollections>;
|
|
30
|
+
|
|
31
|
+
export { Collection, type CollectionMethods, type Context, type Database, type DatabaseFromCollections, mutation, query };
|
package/dist/index.js
CHANGED
|
@@ -20,9 +20,18 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
20
20
|
// src/index.ts
|
|
21
21
|
var index_exports = {};
|
|
22
22
|
__export(index_exports, {
|
|
23
|
+
array: () => array,
|
|
23
24
|
buildConfig: () => buildConfig,
|
|
25
|
+
checkbox: () => checkbox,
|
|
24
26
|
collection: () => collection,
|
|
27
|
+
createField: () => createField,
|
|
28
|
+
date: () => date,
|
|
25
29
|
field: () => field,
|
|
30
|
+
mutation: () => mutation,
|
|
31
|
+
number: () => number,
|
|
32
|
+
query: () => query,
|
|
33
|
+
relation: () => relation,
|
|
34
|
+
richText: () => richText,
|
|
26
35
|
text: () => text
|
|
27
36
|
});
|
|
28
37
|
module.exports = __toCommonJS(index_exports);
|
|
@@ -36,17 +45,92 @@ var buildConfig = (config) => {
|
|
|
36
45
|
var field = (field2) => {
|
|
37
46
|
return field2;
|
|
38
47
|
};
|
|
39
|
-
var
|
|
48
|
+
var createField = (config) => {
|
|
49
|
+
return void 0;
|
|
40
50
|
};
|
|
51
|
+
var text = () => createField({
|
|
52
|
+
schema: void 0,
|
|
53
|
+
drizzle: void 0,
|
|
54
|
+
admin: {
|
|
55
|
+
component: void 0
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
var number = () => createField({
|
|
59
|
+
schema: void 0,
|
|
60
|
+
drizzle: void 0,
|
|
61
|
+
admin: {
|
|
62
|
+
component: void 0
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
var date = () => createField({
|
|
66
|
+
schema: void 0,
|
|
67
|
+
drizzle: void 0,
|
|
68
|
+
admin: {
|
|
69
|
+
component: void 0
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
var checkbox = () => createField({
|
|
73
|
+
schema: void 0,
|
|
74
|
+
drizzle: void 0,
|
|
75
|
+
admin: {
|
|
76
|
+
component: void 0
|
|
77
|
+
}
|
|
78
|
+
});
|
|
79
|
+
var array = () => createField({
|
|
80
|
+
schema: void 0,
|
|
81
|
+
drizzle: void 0,
|
|
82
|
+
admin: {
|
|
83
|
+
component: void 0
|
|
84
|
+
}
|
|
85
|
+
});
|
|
86
|
+
var relation = () => createField({
|
|
87
|
+
schema: void 0,
|
|
88
|
+
drizzle: void 0,
|
|
89
|
+
admin: {
|
|
90
|
+
component: void 0
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
var richText = () => createField({
|
|
94
|
+
schema: void 0,
|
|
95
|
+
drizzle: void 0,
|
|
96
|
+
admin: {
|
|
97
|
+
component: void 0
|
|
98
|
+
}
|
|
99
|
+
});
|
|
41
100
|
|
|
42
101
|
// src/collections/collections.ts
|
|
43
102
|
var collection = (collection2) => {
|
|
44
103
|
return collection2;
|
|
45
104
|
};
|
|
105
|
+
|
|
106
|
+
// src/database/functions.ts
|
|
107
|
+
var query = (config) => {
|
|
108
|
+
return async (args) => {
|
|
109
|
+
const ctx = { db: void 0 };
|
|
110
|
+
if (config.args) config.args.parse(args ?? {});
|
|
111
|
+
return config.handler(ctx, args ?? {});
|
|
112
|
+
};
|
|
113
|
+
};
|
|
114
|
+
var mutation = (config) => {
|
|
115
|
+
return async (args) => {
|
|
116
|
+
const ctx = { db: void 0 };
|
|
117
|
+
if (config.args) config.args.parse(args ?? {});
|
|
118
|
+
return config.handler(ctx, args ?? {});
|
|
119
|
+
};
|
|
120
|
+
};
|
|
46
121
|
// Annotate the CommonJS export names for ESM import in node:
|
|
47
122
|
0 && (module.exports = {
|
|
123
|
+
array,
|
|
48
124
|
buildConfig,
|
|
125
|
+
checkbox,
|
|
49
126
|
collection,
|
|
127
|
+
createField,
|
|
128
|
+
date,
|
|
50
129
|
field,
|
|
130
|
+
mutation,
|
|
131
|
+
number,
|
|
132
|
+
query,
|
|
133
|
+
relation,
|
|
134
|
+
richText,
|
|
51
135
|
text
|
|
52
136
|
});
|
package/dist/index.mjs
CHANGED
|
@@ -7,16 +7,91 @@ var buildConfig = (config) => {
|
|
|
7
7
|
var field = (field2) => {
|
|
8
8
|
return field2;
|
|
9
9
|
};
|
|
10
|
-
var
|
|
10
|
+
var createField = (config) => {
|
|
11
|
+
return void 0;
|
|
11
12
|
};
|
|
13
|
+
var text = () => createField({
|
|
14
|
+
schema: void 0,
|
|
15
|
+
drizzle: void 0,
|
|
16
|
+
admin: {
|
|
17
|
+
component: void 0
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
var number = () => createField({
|
|
21
|
+
schema: void 0,
|
|
22
|
+
drizzle: void 0,
|
|
23
|
+
admin: {
|
|
24
|
+
component: void 0
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
var date = () => createField({
|
|
28
|
+
schema: void 0,
|
|
29
|
+
drizzle: void 0,
|
|
30
|
+
admin: {
|
|
31
|
+
component: void 0
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
var checkbox = () => createField({
|
|
35
|
+
schema: void 0,
|
|
36
|
+
drizzle: void 0,
|
|
37
|
+
admin: {
|
|
38
|
+
component: void 0
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
var array = () => createField({
|
|
42
|
+
schema: void 0,
|
|
43
|
+
drizzle: void 0,
|
|
44
|
+
admin: {
|
|
45
|
+
component: void 0
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
var relation = () => createField({
|
|
49
|
+
schema: void 0,
|
|
50
|
+
drizzle: void 0,
|
|
51
|
+
admin: {
|
|
52
|
+
component: void 0
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
var richText = () => createField({
|
|
56
|
+
schema: void 0,
|
|
57
|
+
drizzle: void 0,
|
|
58
|
+
admin: {
|
|
59
|
+
component: void 0
|
|
60
|
+
}
|
|
61
|
+
});
|
|
12
62
|
|
|
13
63
|
// src/collections/collections.ts
|
|
14
64
|
var collection = (collection2) => {
|
|
15
65
|
return collection2;
|
|
16
66
|
};
|
|
67
|
+
|
|
68
|
+
// src/database/functions.ts
|
|
69
|
+
var query = (config) => {
|
|
70
|
+
return async (args) => {
|
|
71
|
+
const ctx = { db: void 0 };
|
|
72
|
+
if (config.args) config.args.parse(args ?? {});
|
|
73
|
+
return config.handler(ctx, args ?? {});
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
var mutation = (config) => {
|
|
77
|
+
return async (args) => {
|
|
78
|
+
const ctx = { db: void 0 };
|
|
79
|
+
if (config.args) config.args.parse(args ?? {});
|
|
80
|
+
return config.handler(ctx, args ?? {});
|
|
81
|
+
};
|
|
82
|
+
};
|
|
17
83
|
export {
|
|
84
|
+
array,
|
|
18
85
|
buildConfig,
|
|
86
|
+
checkbox,
|
|
19
87
|
collection,
|
|
88
|
+
createField,
|
|
89
|
+
date,
|
|
20
90
|
field,
|
|
91
|
+
mutation,
|
|
92
|
+
number,
|
|
93
|
+
query,
|
|
94
|
+
relation,
|
|
95
|
+
richText,
|
|
21
96
|
text
|
|
22
97
|
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
type Collection = {
|
|
2
|
+
slug: string;
|
|
3
|
+
label?: string;
|
|
4
|
+
group?: string;
|
|
5
|
+
fields: Record<string, Field[]>;
|
|
6
|
+
access?: undefined;
|
|
7
|
+
timestamps?: boolean;
|
|
8
|
+
};
|
|
9
|
+
type Field = {
|
|
10
|
+
type: undefined;
|
|
11
|
+
};
|
|
12
|
+
type FieldConfig = {
|
|
13
|
+
schema: undefined;
|
|
14
|
+
drizzle: undefined;
|
|
15
|
+
admin: {
|
|
16
|
+
component: undefined;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export type { Collection as C, Field as F, FieldConfig as a };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
type Collection = {
|
|
2
|
+
slug: string;
|
|
3
|
+
label?: string;
|
|
4
|
+
group?: string;
|
|
5
|
+
fields: Record<string, Field[]>;
|
|
6
|
+
access?: undefined;
|
|
7
|
+
timestamps?: boolean;
|
|
8
|
+
};
|
|
9
|
+
type Field = {
|
|
10
|
+
type: undefined;
|
|
11
|
+
};
|
|
12
|
+
type FieldConfig = {
|
|
13
|
+
schema: undefined;
|
|
14
|
+
drizzle: undefined;
|
|
15
|
+
admin: {
|
|
16
|
+
component: undefined;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export type { Collection as C, Field as F, FieldConfig as a };
|
package/package.json
CHANGED
|
@@ -1,18 +0,0 @@
|
|
|
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/dist/types-Dz3pl6_j.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
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 };
|