@dnax/core 0.8.1 → 0.8.2
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/define/index.ts +25 -2
- package/package.json +1 -1
package/define/index.ts
CHANGED
|
@@ -47,11 +47,34 @@ function Permission(config: permissionSchema): permissionSchema {
|
|
|
47
47
|
return config;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
function Api(
|
|
50
|
+
function Api(
|
|
51
|
+
config: {
|
|
52
|
+
insertOne?: ctxApi;
|
|
53
|
+
insertMany?: ctxApi;
|
|
54
|
+
updateOne?: ctxApi;
|
|
55
|
+
updateMany?: ctxApi;
|
|
56
|
+
deleteOne?: ctxApi;
|
|
57
|
+
deleteMany?: ctxApi;
|
|
58
|
+
findOne?: ctxApi;
|
|
59
|
+
find?: ctxApi;
|
|
60
|
+
} = {}
|
|
61
|
+
) {
|
|
51
62
|
return config;
|
|
52
63
|
}
|
|
53
64
|
|
|
54
|
-
function Access(
|
|
65
|
+
function Access(config: {
|
|
66
|
+
aggregate?: accessCtx;
|
|
67
|
+
allAction?: accessCtx;
|
|
68
|
+
beforeAction?: accessCtx;
|
|
69
|
+
find?: accessCtx;
|
|
70
|
+
findOne?: accessCtx;
|
|
71
|
+
insertOne?: accessCtx;
|
|
72
|
+
insertMany?: accessCtx;
|
|
73
|
+
updateOne?: accessCtx;
|
|
74
|
+
updateMany?: accessCtx;
|
|
75
|
+
deleteOne?: accessCtx;
|
|
76
|
+
deleteMany?: accessCtx;
|
|
77
|
+
}) {
|
|
55
78
|
return config;
|
|
56
79
|
}
|
|
57
80
|
|