deesse 0.0.24 → 0.0.26
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.
|
@@ -0,0 +1,22 @@
|
|
|
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
|
+
};
|
|
16
|
+
|
|
17
|
+
declare const field: (field: Field) => Field;
|
|
18
|
+
declare const text: () => void;
|
|
19
|
+
|
|
20
|
+
declare const collection: (collection: Collection) => Collection;
|
|
21
|
+
|
|
22
|
+
export { type Collection, type Field, collection, field, text };
|
|
@@ -0,0 +1,22 @@
|
|
|
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
|
+
};
|
|
16
|
+
|
|
17
|
+
declare const field: (field: Field) => Field;
|
|
18
|
+
declare const text: () => void;
|
|
19
|
+
|
|
20
|
+
declare const collection: (collection: Collection) => Collection;
|
|
21
|
+
|
|
22
|
+
export { type Collection, type Field, collection, field, text };
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/collections/index.ts
|
|
21
|
+
var collections_exports = {};
|
|
22
|
+
__export(collections_exports, {
|
|
23
|
+
collection: () => collection,
|
|
24
|
+
field: () => field,
|
|
25
|
+
text: () => text
|
|
26
|
+
});
|
|
27
|
+
module.exports = __toCommonJS(collections_exports);
|
|
28
|
+
|
|
29
|
+
// src/collections/fields.ts
|
|
30
|
+
var field = (field2) => {
|
|
31
|
+
return field2;
|
|
32
|
+
};
|
|
33
|
+
var text = () => {
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
// src/collections/collections.ts
|
|
37
|
+
var collection = (collection2) => {
|
|
38
|
+
return collection2;
|
|
39
|
+
};
|
|
40
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
41
|
+
0 && (module.exports = {
|
|
42
|
+
collection,
|
|
43
|
+
field,
|
|
44
|
+
text
|
|
45
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// src/collections/fields.ts
|
|
2
|
+
var field = (field2) => {
|
|
3
|
+
return field2;
|
|
4
|
+
};
|
|
5
|
+
var text = () => {
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
// src/collections/collections.ts
|
|
9
|
+
var collection = (collection2) => {
|
|
10
|
+
return collection2;
|
|
11
|
+
};
|
|
12
|
+
export {
|
|
13
|
+
collection,
|
|
14
|
+
field,
|
|
15
|
+
text
|
|
16
|
+
};
|