@types/parse
Advanced tools
Comparing version 2.10.19 to 2.12.0
@@ -1,2 +0,2 @@ | ||
// Type definitions for parse 2.10 | ||
// Type definitions for parse 2.12 | ||
// Project: https://parseplatform.org/ | ||
@@ -25,2 +25,3 @@ // Definitions by: Ullisen Media Group <https://github.com/ullisenmedia> | ||
// Kent Robin Haugen <https://github.com/kentrh> | ||
// Asen Lekov <https://github.com/L3K0V> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
@@ -297,6 +298,15 @@ // TypeScript Version: 3.5 | ||
getData(): Promise<string>; | ||
url(options?: { forceSecure?: boolean }): string; | ||
metadata(): Record<string, any>; | ||
tags(): Record<string, any>; | ||
name(): string; | ||
save(options?: SuccessFailureOptions): Promise<File>; | ||
cancel(): void; | ||
destroy(): Promise<File>; | ||
toJSON(): { __type: string, name: string, url: string }; | ||
url(options?: { forceSecure: boolean }): string; | ||
equals(other: File): boolean; | ||
setMetadata(metadata: Record<string, any>): void; | ||
addMetadata(key: string, value: any): void; | ||
setTags(tags: Record<string, any>): void; | ||
addTag(key: string, value: any): void; | ||
} | ||
@@ -427,2 +437,3 @@ | ||
increment(attr: Extract<keyof T, string>, amount?: number): this | false; | ||
decrement(attr: Extract<keyof T, string>, amount?: number): this | false; | ||
initialize(): void; | ||
@@ -663,3 +674,10 @@ isDataAvailable(): boolean; | ||
distinct<K extends keyof T['attributes'], V = T['attributes'][K]>(key: K): Promise<V>; | ||
each(callback: (obj: T) => PromiseLike<void> | void, options?: Query.EachOptions): Promise<void>; | ||
eachBatch(callback: (objs: T[]) => PromiseLike<void> | void, options?: Query.BatchOptions): Promise<void>; | ||
each(callback: (obj: T) => PromiseLike<void> | void, options?: Query.BatchOptions): Promise<void>; | ||
hint(value: string | object): this; | ||
explain(explain: boolean): this; | ||
map<U>(callback: (currentObject: T, index: number, query: Query) => PromiseLike<U> | U, options?: Query.BatchOptions): Promise<U[]>; | ||
reduce(callback: (accumulator: T, currentObject: T, index: number) => PromiseLike<T> | T, initialValue?: undefined, options?: Query.BatchOptions): Promise<T>; | ||
reduce<U>(callback: (accumulator: U, currentObject: T, index: number) => PromiseLike<U> | U, initialValue: U, options?: Query.BatchOptions): Promise<U>; | ||
filter(callback: (currentObject: T, index: number, query: Query) => PromiseLike<boolean> | boolean, options?: Query.BatchOptions): Promise<T[]>; | ||
endsWith<K extends (keyof T['attributes'] | keyof BaseAttributes)>(key: K, suffix: string): this; | ||
@@ -670,5 +688,7 @@ equalTo<K extends (keyof T['attributes'] | keyof BaseAttributes)>(key: K, value: T['attributes'][K] | (T['attributes'][K] extends Object ? Pointer : never)): this; | ||
first(options?: Query.FirstOptions): Promise<T | undefined>; | ||
fromLocalDatastore(): void; | ||
fromPin(): void; | ||
fromPinWithName(name: string): void; | ||
fromNetwork(): this; | ||
fromLocalDatastore(): this; | ||
fromPin(): this; | ||
fromPinWithName(name: string): this; | ||
cancel(): this; | ||
fullText<K extends (keyof T['attributes'] | keyof BaseAttributes)>(key: K, value: string, options?: Query.FullTextOptions): this; | ||
@@ -728,2 +748,6 @@ get(objectId: string, options?: Query.GetOptions): Promise<T>; | ||
} | ||
interface BatchOptions extends FullOptions { | ||
batchSize?: number; | ||
} | ||
} | ||
@@ -1118,2 +1142,8 @@ | ||
interface FileTriggerRequest extends TriggerRequest { | ||
file: File; | ||
fileSize: number; | ||
contentLength: number; | ||
} | ||
// Read preference describes how MongoDB driver route read operations to the members of a replica set. | ||
@@ -1148,3 +1178,12 @@ enum ReadPreferenceOption { | ||
function afterFind(arg1: any, func?: (request: AfterFindRequest) => any): void; | ||
function beforeLogin(func?: (request: TriggerRequest) => any): void; | ||
function beforeLogin(func?: (request: TriggerRequest) => PromiseLike<void> | void): void; | ||
function afterLogin(func?: (request: TriggerRequest) => PromiseLike<void> | void): void; | ||
function afterLogout(func?: (request: TriggerRequest) => PromiseLike<void> | void): void; | ||
function beforeSaveFile(func?: (request: FileTriggerRequest) => PromiseLike<File> | void): void; | ||
function afterSaveFile(func?: (request: FileTriggerRequest) => PromiseLike<void> | void): void; | ||
function beforeDeleteFile(func?: (request: FileTriggerRequest) => PromiseLike<void> | void): void; | ||
function afterDeleteFile(func?: (request: FileTriggerRequest) => PromiseLike<void> | void): void; | ||
function define(name: string, func: (request: FunctionRequest) => any): void; | ||
@@ -1151,0 +1190,0 @@ function define<T extends () => any>( |
{ | ||
"name": "@types/parse", | ||
"version": "2.10.19", | ||
"version": "2.12.0", | ||
"description": "TypeScript definitions for parse", | ||
@@ -116,2 +116,7 @@ "license": "MIT", | ||
"githubUsername": "kentrh" | ||
}, | ||
{ | ||
"name": "Asen Lekov", | ||
"url": "https://github.com/L3K0V", | ||
"githubUsername": "L3K0V" | ||
} | ||
@@ -137,4 +142,4 @@ ], | ||
}, | ||
"typesPublisherContentHash": "23898b58f8c4db7965d419ad3153ceab8cc07bff0086005e71a15f9d71e9ce7a", | ||
"typesPublisherContentHash": "b894f8550ddaafcf4619ba7b5ec7a94e94969ee7b19f807b38af445536277c2f", | ||
"typeScriptVersion": "3.5" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Fri, 17 Apr 2020 00:15:41 GMT | ||
* Last updated: Fri, 17 Apr 2020 21:28:58 GMT | ||
* Dependencies: [@types/node](https://npmjs.com/package/@types/node), [@types/node](https://npmjs.com/package/@types/node) | ||
@@ -17,2 +17,2 @@ * Global values: none | ||
# Credits | ||
These definitions were written by [ Ullisen Media Group](https://github.com/ullisenmedia), [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), [Colin Ulin](https://github.com/pocketcolin), [Robert Helms](https://github.com/rdhelms), [Julien Quere](https://github.com/jlnquere), [Yago Tomé](https://github.com/yagotome), [Thibault MOCELLIN](https://github.com/tybi), [Raschid JF Rafaelly](https://github.com/RaschidJFR), [Jeff Gu Kang](https://github.com/jeffgukang), [Bui Tan Loc](https://github.com/buitanloc), [Linus Unnebäck](https://github.com/LinusU), [Patrick O'Sullivan](https://github.com/REPTILEHAUS), [Jerome De Leon](https://github.com/JeromeDeLeon), and [Kent Robin Haugen](https://github.com/kentrh). | ||
These definitions were written by [ Ullisen Media Group](https://github.com/ullisenmedia), [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), [Colin Ulin](https://github.com/pocketcolin), [Robert Helms](https://github.com/rdhelms), [Julien Quere](https://github.com/jlnquere), [Yago Tomé](https://github.com/yagotome), [Thibault MOCELLIN](https://github.com/tybi), [Raschid JF Rafaelly](https://github.com/RaschidJFR), [Jeff Gu Kang](https://github.com/jeffgukang), [Bui Tan Loc](https://github.com/buitanloc), [Linus Unnebäck](https://github.com/LinusU), [Patrick O'Sullivan](https://github.com/REPTILEHAUS), [Jerome De Leon](https://github.com/JeromeDeLeon), [Kent Robin Haugen](https://github.com/kentrh), and [Asen Lekov](https://github.com/L3K0V). |
@@ -269,6 +269,15 @@ /// <reference types="node" /> | ||
getData(): Promise<string>; | ||
url(options?: { forceSecure?: boolean }): string; | ||
metadata(): Record<string, any>; | ||
tags(): Record<string, any>; | ||
name(): string; | ||
save(options?: SuccessFailureOptions): Promise<File>; | ||
cancel(): void; | ||
destroy(): Promise<File>; | ||
toJSON(): { __type: string, name: string, url: string }; | ||
url(options?: { forceSecure: boolean }): string; | ||
equals(other: File): boolean; | ||
setMetadata(metadata: Record<string, any>): void; | ||
addMetadata(key: string, value: any): void; | ||
setTags(tags: Record<string, any>): void; | ||
addTag(key: string, value: any): void; | ||
} | ||
@@ -399,2 +408,3 @@ | ||
increment(attr: Extract<keyof T, string>, amount?: number): this | false; | ||
decrement(attr: Extract<keyof T, string>, amount?: number): this | false; | ||
initialize(): void; | ||
@@ -635,3 +645,10 @@ isDataAvailable(): boolean; | ||
distinct<K extends keyof T['attributes'], V = T['attributes'][K]>(key: K): Promise<V>; | ||
each(callback: (obj: T) => PromiseLike<void> | void, options?: Query.EachOptions): Promise<void>; | ||
eachBatch(callback: (objs: T[]) => PromiseLike<void> | void, options?: Query.BatchOptions): Promise<void>; | ||
each(callback: (obj: T) => PromiseLike<void> | void, options?: Query.BatchOptions): Promise<void>; | ||
hint(value: string | object): this; | ||
explain(explain: boolean): this; | ||
map<U>(callback: (currentObject: T, index: number, query: Query) => PromiseLike<U> | U, options?: Query.BatchOptions): Promise<U[]>; | ||
reduce(callback: (accumulator: T, currentObject: T, index: number) => PromiseLike<T> | T, initialValue?: undefined, options?: Query.BatchOptions): Promise<T>; | ||
reduce<U>(callback: (accumulator: U, currentObject: T, index: number) => PromiseLike<U> | U, initialValue: U, options?: Query.BatchOptions): Promise<U>; | ||
filter(callback: (currentObject: T, index: number, query: Query) => PromiseLike<boolean> | boolean, options?: Query.BatchOptions): Promise<T[]>; | ||
endsWith<K extends (keyof T['attributes'] | keyof BaseAttributes)>(key: K, suffix: string): this; | ||
@@ -642,5 +659,7 @@ equalTo<K extends (keyof T['attributes'] | keyof BaseAttributes)>(key: K, value: T['attributes'][K] | (T['attributes'][K] extends Object ? Pointer : never)): this; | ||
first(options?: Query.FirstOptions): Promise<T | undefined>; | ||
fromLocalDatastore(): void; | ||
fromPin(): void; | ||
fromPinWithName(name: string): void; | ||
fromNetwork(): this; | ||
fromLocalDatastore(): this; | ||
fromPin(): this; | ||
fromPinWithName(name: string): this; | ||
cancel(): this; | ||
fullText<K extends (keyof T['attributes'] | keyof BaseAttributes)>(key: K, value: string, options?: Query.FullTextOptions): this; | ||
@@ -700,2 +719,6 @@ get(objectId: string, options?: Query.GetOptions): Promise<T>; | ||
} | ||
interface BatchOptions extends FullOptions { | ||
batchSize?: number; | ||
} | ||
} | ||
@@ -1089,2 +1112,8 @@ | ||
interface FileTriggerRequest extends TriggerRequest { | ||
file: File; | ||
fileSize: number; | ||
contentLength: number; | ||
} | ||
// Read preference describes how MongoDB driver route read operations to the members of a replica set. | ||
@@ -1119,3 +1148,12 @@ enum ReadPreferenceOption { | ||
function afterFind(arg1: any, func?: (request: AfterFindRequest) => any): void; | ||
function beforeLogin(func?: (request: TriggerRequest) => any): void; | ||
function beforeLogin(func?: (request: TriggerRequest) => PromiseLike<void> | void): void; | ||
function afterLogin(func?: (request: TriggerRequest) => PromiseLike<void> | void): void; | ||
function afterLogout(func?: (request: TriggerRequest) => PromiseLike<void> | void): void; | ||
function beforeSaveFile(func?: (request: FileTriggerRequest) => PromiseLike<File> | void): void; | ||
function afterSaveFile(func?: (request: FileTriggerRequest) => PromiseLike<void> | void): void; | ||
function beforeDeleteFile(func?: (request: FileTriggerRequest) => PromiseLike<void> | void): void; | ||
function afterDeleteFile(func?: (request: FileTriggerRequest) => PromiseLike<void> | void): void; | ||
function define(name: string, func: (request: FunctionRequest) => any): void; | ||
@@ -1122,0 +1160,0 @@ function define<T extends () => any>( |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
123963
2634