@types/parse
Advanced tools
Comparing version 2.2.5 to 2.2.6
@@ -15,2 +15,3 @@ // Type definitions for parse 2.2.1 | ||
// Yago Tomé <https://github.com/yagotome> | ||
// Thibault MOCELLIN <https://github.com/tybi> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
@@ -43,17 +44,17 @@ // TypeScript Version: 2.4 | ||
interface FullOptions { | ||
success?: Function; | ||
error?: Function; | ||
useMasterKey?: boolean; | ||
sessionToken?: string; | ||
installationId?: string; | ||
progress?: Function; | ||
success?: Function; | ||
error?: Function; | ||
useMasterKey?: boolean; | ||
sessionToken?: string; | ||
installationId?: string; | ||
progress?: Function; | ||
} | ||
interface RequestOptions { | ||
useMasterKey?: boolean; | ||
sessionToken?: string; | ||
installationId?: string; | ||
batchSize?: number; | ||
include?: string | string[]; | ||
progress?: Function; | ||
useMasterKey?: boolean; | ||
sessionToken?: string; | ||
installationId?: string; | ||
batchSize?: number; | ||
include?: string | string[]; | ||
progress?: Function; | ||
} | ||
@@ -108,2 +109,6 @@ | ||
interface AuthData { | ||
[key: string]: any | ||
} | ||
class BaseObject implements IBaseObject { | ||
@@ -478,3 +483,3 @@ toJSON(): any; | ||
ascending(key: string[]): Query<T>; | ||
aggregate(pipeline: Query.AggregationOptions|Query.AggregationOptions[]): Query<T>; | ||
aggregate<V = any>(pipeline: Query.AggregationOptions | Query.AggregationOptions[]): Promise<V>; | ||
containedBy(key: string, values: any[]): Query<T>; | ||
@@ -491,3 +496,3 @@ containedIn(key: string, values: any[]): Query<T>; | ||
doesNotMatchQuery<U extends Object>(key: string, query: Query<U>): Query<T>; | ||
distinct(key: string): Query<T>; | ||
distinct<V = any>(key: string): Promise<V>; | ||
each(callback: Function, options?: Query.EachOptions): Promise<void>; | ||
@@ -541,9 +546,9 @@ endsWith(key: string, suffix: string): Query<T>; | ||
interface AggregationOptions { | ||
group?: { objectId?: string, [key:string]: any }; | ||
match?: {[key: string]: any}; | ||
project?: {[key: string]: any}; | ||
group?: { objectId?: string, [key: string]: any }; | ||
match?: { [key: string]: any }; | ||
project?: { [key: string]: any }; | ||
limit?: number; | ||
skip?: number; | ||
// Sort documentation https://docs.mongodb.com/v3.2/reference/operator/aggregation/sort/#pipe._S_sort | ||
sort?: {[key: string]: 1|-1}; | ||
sort?: { [key: string]: 1 | -1 }; | ||
} | ||
@@ -553,5 +558,5 @@ | ||
interface FullTextOptions { | ||
language?: string; | ||
caseSensitive?: boolean; | ||
diacriticSensitive?: boolean; | ||
language?: string; | ||
caseSensitive?: boolean; | ||
diacriticSensitive?: boolean; | ||
} | ||
@@ -691,3 +696,2 @@ } | ||
class User extends Object { | ||
static allowCustomUserClass(isAllowed: boolean): void; | ||
@@ -718,2 +722,5 @@ static become(sessionToken: string, options?: UseMasterKeyOption): Promise<User>; | ||
getSessionToken(): string; | ||
linkWith(user: User, authData: AuthData, options: FullOptions): Promise<User>; | ||
_linkWith(provider: any, options: { authData?: AuthData }, saveOpts?: FullOptions): Promise<User>; | ||
} | ||
@@ -720,0 +727,0 @@ |
{ | ||
"name": "@types/parse", | ||
"version": "2.2.5", | ||
"version": "2.2.6", | ||
"description": "TypeScript definitions for parse", | ||
@@ -65,2 +65,7 @@ "license": "MIT", | ||
"githubUsername": "yagotome" | ||
}, | ||
{ | ||
"name": "Thibault MOCELLIN", | ||
"url": "https://github.com/tybi", | ||
"githubUsername": "tybi" | ||
} | ||
@@ -79,4 +84,4 @@ ], | ||
}, | ||
"typesPublisherContentHash": "44750dd093e2f52ffab30f5bb09adf97f45f55118bffa0a118ef20eb1e6d3acf", | ||
"typesPublisherContentHash": "2832e78e48c8e21d7e1c5e4668f22a79d524131274da9403c5710f00fb6870e1", | ||
"typeScriptVersion": "2.4" | ||
} |
@@ -5,3 +5,3 @@ # Installation | ||
# Summary | ||
This package contains type definitions for parse ( https://parseplatform.org/ ). | ||
This package contains type definitions for parse (https://parseplatform.org/). | ||
@@ -12,3 +12,3 @@ # Details | ||
Additional Details | ||
* Last updated: Tue, 04 Jun 2019 18:31:04 GMT | ||
* Last updated: Wed, 26 Jun 2019 16:47:41 GMT | ||
* Dependencies: @types/node | ||
@@ -18,2 +18,2 @@ * Global values: Parse | ||
# Credits | ||
These definitions were written by Ullisen Media Group <http://ullisenmedia.com>, David Poetzsch-Heffter <https://github.com/dpoetzsch>, Cedric Kemp <https://github.com/jaeggerr>, Flavio Negrão <https://github.com/flavionegrao>, Wes Grimes <https://github.com/wesleygrimes>, Otherwise SAS <https://github.com/owsas>, Andrew Goldis <https://github.com/agoldis>, Alexandre Hétu Rivard <https://github.com/AlexandreHetu>, Diamond Lewis <https://github.com/dplewis>, Jong Eun Lee <https://github.com/yomybaby>, Julien Quere <https://github.com/jlnquere>, Yago Tomé <https://github.com/yagotome>. | ||
These definitions were written by Ullisen Media Group <http://ullisenmedia.com>, David Poetzsch-Heffter <https://github.com/dpoetzsch>, Cedric Kemp <https://github.com/jaeggerr>, Flavio Negrão <https://github.com/flavionegrao>, Wes Grimes <https://github.com/wesleygrimes>, Otherwise SAS <https://github.com/owsas>, Andrew Goldis <https://github.com/agoldis>, Alexandre Hétu Rivard <https://github.com/AlexandreHetu>, Diamond Lewis <https://github.com/dplewis>, Jong Eun Lee <https://github.com/yomybaby>, Julien Quere <https://github.com/jlnquere>, Yago Tomé <https://github.com/yagotome>, and Thibault MOCELLIN <https://github.com/tybi>. |
43971
941