@smallstack/common
Advanced tools
Comparing version 0.7.36 to 0.7.37
import { Collection } from "./Collection"; | ||
import { CollectionAccessContext } from "./CollectionAccessService"; | ||
import { MongoDBCollection } from "./MongoDBCollection"; | ||
import { SmallstackModel } from "./SmallstackModel"; | ||
import { TypeServiceQueryAccess } from "./Type"; | ||
export interface CollectionsService { | ||
@@ -16,8 +18,4 @@ getCollectionByName<ModelClass extends SmallstackModel>(name: string): Collection<ModelClass>; | ||
export interface PublisherMethodParameters { | ||
context: { | ||
userId: string; | ||
headers?: any; | ||
}; | ||
parameters: any; | ||
accessObject: any; | ||
context: CollectionAccessContext; | ||
accessObject: TypeServiceQueryAccess; | ||
} | ||
@@ -24,0 +22,0 @@ export interface PublisherMethodResult { |
@@ -11,5 +11,9 @@ import { API } from "../api/API"; | ||
} | ||
export interface TypeServiceQueryAccess { | ||
[key: string]: any; | ||
hasRole?: string; | ||
} | ||
export interface TypeServiceQuery { | ||
selector: any; | ||
access: any; | ||
access: TypeServiceQueryAccess; | ||
sorting: any; | ||
@@ -16,0 +20,0 @@ name: string; |
{ | ||
"name": "@smallstack/common", | ||
"version": "0.7.36", | ||
"version": "0.7.37", | ||
"description": "common functionality for smallstack projects", | ||
@@ -5,0 +5,0 @@ "main": "dist/bundle/smallstack_common.umd.js", |
417534
2185