From a68eeb568f08f32cc746f5568ddc43410b4a2a62 Mon Sep 17 00:00:00 2001 From: Cedric Kemp Date: Wed, 16 Aug 2017 23:26:26 -0400 Subject: [PATCH 1/4] Added beforeFind trigger to Parse Cloud --- types/parse/index.d.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/types/parse/index.d.ts b/types/parse/index.d.ts index 8dfcb670a7..644cd38854 100644 --- a/types/parse/index.d.ts +++ b/types/parse/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for parse 1.9 +// Type definitions for parse 2.2.20 // Project: https://parse.com/ // Definitions by: Ullisen Media Group , David Poetzsch-Heffter // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped @@ -892,11 +892,15 @@ declare namespace Parse { interface BeforeSaveResponse extends FunctionResponse { success: () => void; } + interface BeforeFindRequest extends TriggerRequest { + query: Query + } function afterDelete(arg1: any, func?: (request: AfterDeleteRequest) => void): void; function afterSave(arg1: any, func?: (request: AfterSaveRequest) => void): void; function beforeDelete(arg1: any, func?: (request: BeforeDeleteRequest, response: BeforeDeleteResponse) => void): void; function beforeSave(arg1: any, func?: (request: BeforeSaveRequest, response: BeforeSaveResponse) => void): void; + function beforeFind(arg1: any, func?: (request: BeforeFindRequest, response: BeforeFindRequest) => void): void; function define(name: string, func?: (request: FunctionRequest, response: FunctionResponse) => void): void; function httpRequest(options: HTTPOptions): Promise; function job(name: string, func?: (request: JobRequest, status: JobStatus) => void): HttpResponse; From 7176ce0d58149f95d6b78eb677de60a251f85180 Mon Sep 17 00:00:00 2001 From: Cedric Kemp Date: Wed, 16 Aug 2017 23:30:50 -0400 Subject: [PATCH 2/4] Updated contributors list --- types/parse/index.d.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/types/parse/index.d.ts b/types/parse/index.d.ts index 644cd38854..924f21614c 100644 --- a/types/parse/index.d.ts +++ b/types/parse/index.d.ts @@ -1,6 +1,8 @@ // Type definitions for parse 2.2.20 // Project: https://parse.com/ -// Definitions by: Ullisen Media Group , David Poetzsch-Heffter +// Definitions by: Ullisen Media Group , +// David Poetzsch-Heffter +// Cedric Kemp // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 From 7549045d3577c0be5725d4a9fa79ae8fee07aca2 Mon Sep 17 00:00:00 2001 From: Cedric Kemp Date: Wed, 16 Aug 2017 23:37:02 -0400 Subject: [PATCH 3/4] Added semicolon to follow file style --- types/parse/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/parse/index.d.ts b/types/parse/index.d.ts index 924f21614c..589bef5c76 100644 --- a/types/parse/index.d.ts +++ b/types/parse/index.d.ts @@ -895,7 +895,7 @@ declare namespace Parse { success: () => void; } interface BeforeFindRequest extends TriggerRequest { - query: Query + query: Query; } function afterDelete(arg1: any, func?: (request: AfterDeleteRequest) => void): void; From feb778de22ceff485a1cbfb530a9e5b93d47cee9 Mon Sep 17 00:00:00 2001 From: Cedric Kemp Date: Sat, 19 Aug 2017 12:01:42 -0400 Subject: [PATCH 4/4] Removed patch version and useless comma in contributors list --- types/parse/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/parse/index.d.ts b/types/parse/index.d.ts index 589bef5c76..1910899551 100644 --- a/types/parse/index.d.ts +++ b/types/parse/index.d.ts @@ -1,6 +1,6 @@ -// Type definitions for parse 2.2.20 +// Type definitions for parse 2.2 // Project: https://parse.com/ -// Definitions by: Ullisen Media Group , +// Definitions by: Ullisen Media Group // David Poetzsch-Heffter // Cedric Kemp // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped