@smallstack/common
Advanced tools
Comparing version 0.7.35 to 0.7.36
@@ -5,6 +5,9 @@ import { PublisherMethodParameters } from "./CollectionsService"; | ||
export declare type PublisherMethod = (parameters: PublisherMethodParameters) => Promise<PublisherMethodResult>; | ||
export interface CollectionAccessContext { | ||
[key: string]: any; | ||
userId?: string; | ||
headers?: string; | ||
} | ||
export interface CollectionAccessService { | ||
checkAccess(serviceQuery: TypeServiceQuery, context: { | ||
userId: string; | ||
}, parameters: any): Promise<PublisherMethodResult[]>; | ||
checkAccess(serviceQuery: TypeServiceQuery, context: CollectionAccessContext): Promise<PublisherMethodResult[]>; | ||
addPublisherMethod(name: string, method: PublisherMethod): void; | ||
@@ -11,0 +14,0 @@ executePublisherMethod(publisherMethodName: string, params: PublisherMethodParameters): Promise<PublisherMethodResult>; |
{ | ||
"name": "@smallstack/common", | ||
"version": "0.7.35", | ||
"version": "0.7.36", | ||
"description": "common functionality for smallstack projects", | ||
@@ -5,0 +5,0 @@ "main": "dist/bundle/smallstack_common.umd.js", |
417340
2183