@bzr/bazaar
Advanced tools
Comparing version 1.3.1 to 1.4.0
@@ -102,3 +102,3 @@ import { CollectionAPI } from "./api/collection"; | ||
collection<T extends Doc>(collectionName: string, collectionOptions?: CollectionOptions): CollectionAPI<T>; | ||
createContext(options: ContextOptions): BazaarContext; | ||
createContext(options: ContextOptions): Promise<BazaarContext>; | ||
} |
@@ -50,17 +50,17 @@ import { BazaarApp } from ".."; | ||
}; | ||
export type AnyPermission = BasePermission & { | ||
export type AnyPermission = Prettify<BasePermission & { | ||
granteeType: GranteeType.ANY; | ||
}; | ||
export type UserPermission = BasePermission & { | ||
}>; | ||
export type UserPermission = Prettify<BasePermission & { | ||
granteeType: GranteeType.USER; | ||
granteeId: string; | ||
}; | ||
export type GroupPermission = BasePermission & { | ||
}>; | ||
export type GroupPermission = Prettify<BasePermission & { | ||
granteeType: GranteeType.GROUP; | ||
granteeId: string; | ||
}; | ||
export type OrgPermission = BasePermission & { | ||
}>; | ||
export type OrgPermission = Prettify<BasePermission & { | ||
granteeType: GranteeType.ORG; | ||
granteeId: string; | ||
}; | ||
}>; | ||
export type Permission = AnyPermission | UserPermission | GroupPermission | OrgPermission; | ||
@@ -192,5 +192,5 @@ /** | ||
*/ | ||
export type AnyDoc = Doc & { | ||
export type AnyDoc = Prettify<Doc & { | ||
[key: string | number | symbol]: any; | ||
}; | ||
}>; | ||
export type DeepPartial<T> = { | ||
@@ -354,9 +354,9 @@ [P in keyof T]?: T[P] extends (infer U)[] ? DeepPartial<U>[] : T[P] extends object | undefined ? DeepPartial<T[P]> : T[P]; | ||
*/ | ||
export type CollectionQueryOptions = ContextOptions & { | ||
export type CollectionQueryOptions = Prettify<ContextOptions & { | ||
filter?: FilterObject; | ||
}; | ||
}>; | ||
/** | ||
* Options for {@link API.collectionGetAll} | ||
*/ | ||
export type CollectionGetAllOptions = CollectionQueryOptions & { | ||
export type CollectionGetAllOptions = Prettify<CollectionQueryOptions & { | ||
/** An optional start offset. Default is 0 (inclusive). */ | ||
@@ -367,3 +367,3 @@ startOffset?: number; | ||
orderBy?: OrderBy; | ||
}; | ||
}>; | ||
export type PermissionsQuery = { | ||
@@ -384,1 +384,5 @@ collectionName?: string; | ||
}; | ||
type Prettify<T> = { | ||
[K in keyof T]: T[K]; | ||
} & {}; | ||
export {}; |
{ | ||
"name": "@bzr/bazaar", | ||
"version": "1.3.1", | ||
"version": "1.4.0", | ||
"description": "The Bazaar SDK. Conveniently use Bazaar with your app in the browser.", | ||
@@ -5,0 +5,0 @@ "files": [ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
195878
3452