@types/parse
Advanced tools
Comparing version 2.10.5 to 2.10.6
@@ -24,3 +24,3 @@ // Type definitions for parse 2.10 | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
// TypeScript Version: 3.3 | ||
// TypeScript Version: 3.5 | ||
@@ -181,2 +181,8 @@ /// <reference types="node" /> | ||
interface BaseAttributes { | ||
createdAt: Date; | ||
objectId: string; | ||
updatedAt: Date; | ||
} | ||
/** | ||
@@ -291,3 +297,3 @@ * Creates a new ACL. | ||
constructor(arg1?: any, arg2?: any); | ||
constructor(arg1?: number[] | { latitude: number, longitude: number } | number, arg2?: number); | ||
@@ -460,3 +466,3 @@ current(options?: SuccessFailureOptions): GeoPoint; | ||
interface ObjectConstructor extends ObjectStatic { | ||
new <T extends Attributes>(className: string, attributes: T, options?: any): Object<T>; | ||
new <T extends Attributes>(className: string, attributes?: T, options?: any): Object<T>; | ||
new(className?: string, attributes?: Attributes, options?: any): Object; | ||
@@ -586,21 +592,21 @@ } | ||
addAscending(key: string | string[]): this; | ||
addDescending(key: string | string[]): this; | ||
ascending(key: string | string[]): this; | ||
addAscending<K extends (keyof T['attributes'] | keyof BaseAttributes)>(key: K | K[]): this; | ||
addDescending<K extends (keyof T['attributes'] | keyof BaseAttributes)>(key: K | K[]): this; | ||
ascending<K extends (keyof T['attributes'] | keyof BaseAttributes)>(key: K | K[]): this; | ||
aggregate<V = any>(pipeline: Query.AggregationOptions | Query.AggregationOptions[]): Promise<V>; | ||
containedBy(key: string, values: any[]): this; | ||
containedIn(key: string, values: any[]): this; | ||
contains(key: string, substring: string): this; | ||
containsAll(key: string, values: any[]): this; | ||
containsAllStartingWith(key: string, values: any[]): this; | ||
containedBy<K extends (keyof T['attributes'] | keyof BaseAttributes)>(key: K, values: Array<T['attributes'][K] | (T['attributes'][K] extends Object ? string : never)>): this; | ||
containedIn<K extends (keyof T['attributes'] | keyof BaseAttributes)>(key: K, values: Array<T['attributes'][K] | (T['attributes'][K] extends Object ? string : never)>): this; | ||
contains<K extends (keyof T['attributes'] | keyof BaseAttributes)>(key: K, substring: string): this; | ||
containsAll<K extends (keyof T['attributes'] | keyof BaseAttributes)>(key: K, values: any[]): this; | ||
containsAllStartingWith<K extends (keyof T['attributes'] | keyof BaseAttributes)>(key: K, values: any[]): this; | ||
count(options?: Query.CountOptions): Promise<number>; | ||
descending(key: string | string[]): this; | ||
doesNotExist(key: string): this; | ||
doesNotMatchKeyInQuery<U extends Object>(key: string, queryKey: string, query: Query<U>): this; | ||
doesNotMatchQuery<U extends Object>(key: string, query: Query<U>): this; | ||
distinct<V = any>(key: string): Promise<V>; | ||
descending<K extends (keyof T['attributes'] | keyof BaseAttributes)>(key: K | K[]): this; | ||
doesNotExist<K extends (keyof T['attributes'] | keyof BaseAttributes)>(key: K): this; | ||
doesNotMatchKeyInQuery<U extends Object, K extends keyof T['attributes'], X extends Extract<keyof U['attributes'], string>>(key: K, queryKey: X, query: Query<U>): this; | ||
doesNotMatchQuery<U extends Object, K extends keyof T['attributes']>(key: K, query: Query<U>): this; | ||
distinct<K extends keyof T['attributes'], V = T['attributes'][K]>(key: K): Promise<V>; | ||
each(callback: Function, options?: Query.EachOptions): Promise<void>; | ||
endsWith(key: string, suffix: string): this; | ||
equalTo(key: string, value: any): this; | ||
exists(key: string): this; | ||
endsWith<K extends (keyof T['attributes'] | keyof BaseAttributes)>(key: K, suffix: string): this; | ||
equalTo<K extends (keyof T['attributes'] | keyof BaseAttributes)>(key: K, value: T['attributes'][K] | (T['attributes'][K] extends Object ? Pointer : never)): this; | ||
exists<K extends (keyof T['attributes'] | keyof BaseAttributes)>(key: K): this; | ||
find(options?: Query.FindOptions): Promise<T[]>; | ||
@@ -611,30 +617,30 @@ first(options?: Query.FirstOptions): Promise<T | undefined>; | ||
fromPinWithName(name: string): void; | ||
fullText(key: string, value: string, options?: Query.FullTextOptions): this; | ||
fullText<K extends (keyof T['attributes'] | keyof BaseAttributes)>(key: K, value: string, options?: Query.FullTextOptions): this; | ||
get(objectId: string, options?: Query.GetOptions): Promise<T>; | ||
greaterThan(key: string, value: any): this; | ||
greaterThanOrEqualTo(key: string, value: any): this; | ||
include(key: string | string[]): this; | ||
includeAll(): this; | ||
lessThan(key: string, value: any): this; | ||
lessThanOrEqualTo(key: string, value: any): this; | ||
limit(n: number): this; | ||
matches(key: string, regex: RegExp, modifiers: any): this; | ||
matchesKeyInQuery<U extends Object>(key: string, queryKey: string, query: Query<U>): this; | ||
matchesQuery<U extends Object>(key: string, query: Query<U>): this; | ||
near(key: string, point: GeoPoint): this; | ||
notContainedIn(key: string, values: any[]): this; | ||
notEqualTo(key: string, value: any): this; | ||
polygonContains(key: string, point: GeoPoint): this; | ||
select(...keys: string[]): this; | ||
skip(n: number): this; | ||
greaterThan<K extends (keyof T['attributes'] | keyof BaseAttributes)>(key: K, value: T['attributes'][K]): this; | ||
greaterThanOrEqualTo<K extends (keyof T['attributes'] | keyof BaseAttributes)>(key: K, value: T['attributes'][K]): this; | ||
include<K extends (keyof T['attributes'] | keyof BaseAttributes)>(key: K | K[]): this; | ||
includeAll(): Query<T>; | ||
lessThan<K extends (keyof T['attributes'] | keyof BaseAttributes)>(key: K, value: T['attributes'][K]): this; | ||
lessThanOrEqualTo<K extends (keyof T['attributes'] | keyof BaseAttributes)>(key: K, value: T['attributes'][K]): this; | ||
limit(n: number): Query<T>; | ||
matches<K extends (keyof T['attributes'] | keyof BaseAttributes)>(key: K, regex: RegExp, modifiers?: string): this; | ||
matchesKeyInQuery<U extends Object, K extends keyof T['attributes'], X extends Extract<keyof U['attributes'], string>>(key: K, queryKey: X, query: Query<U>): this; | ||
matchesQuery<U extends Object, K extends keyof T['attributes']>(key: K, query: Query<U>): this; | ||
near<K extends (keyof T['attributes'] | keyof BaseAttributes)>(key: K, point: GeoPoint): this; | ||
notContainedIn<K extends (keyof T['attributes'] | keyof BaseAttributes)>(key: K, values: Array<T['attributes'][K]>): this; | ||
notEqualTo<K extends (keyof T['attributes'] | keyof BaseAttributes)>(key: K, value: T['attributes'][K]): this; | ||
polygonContains<K extends (keyof T['attributes'] | keyof BaseAttributes)>(key: K, point: GeoPoint): this; | ||
select<K extends (keyof T['attributes'] | keyof BaseAttributes)>(...keys: K[]): this; | ||
skip(n: number): Query<T>; | ||
sortByTextScore(): this; | ||
startsWith(key: string, prefix: string): this; | ||
startsWith<K extends (keyof T['attributes'] | keyof BaseAttributes)>(key: K, prefix: string): this; | ||
subscribe(): Promise<LiveQuerySubscription>; | ||
toJSON(): any; | ||
withJSON(json: any): this; | ||
withinGeoBox(key: string, southwest: GeoPoint, northeast: GeoPoint): this; | ||
withinKilometers(key: string, point: GeoPoint, maxDistance: number): this; | ||
withinMiles(key: string, point: GeoPoint, maxDistance: number): this; | ||
withinPolygon(key: string, points: GeoPoint[]): this; | ||
withinRadians(key: string, point: GeoPoint, maxDistance: number): this; | ||
withinGeoBox<K extends (keyof T['attributes'] | keyof BaseAttributes)>(key: K, southwest: GeoPoint, northeast: GeoPoint): this; | ||
withinKilometers<K extends (keyof T['attributes'] | keyof BaseAttributes)>(key: K, point: GeoPoint, maxDistance: number): this; | ||
withinMiles<K extends (keyof T['attributes'] | keyof BaseAttributes)>(key: K, point: GeoPoint, maxDistance: number): this; | ||
withinPolygon<K extends (keyof T['attributes'] | keyof BaseAttributes)>(key: K, points: number[][]): this; | ||
withinRadians<K extends (keyof T['attributes'] | keyof BaseAttributes)>(key: K, point: GeoPoint, maxDistance: number): this; | ||
} | ||
@@ -825,3 +831,3 @@ | ||
new <T extends Attributes>(attributes: T): User<T>; | ||
new(): User; | ||
new(attributes?: Attributes): User; | ||
@@ -828,0 +834,0 @@ allowCustomUserClass(isAllowed: boolean): void; |
{ | ||
"name": "@types/parse", | ||
"version": "2.10.5", | ||
"version": "2.10.6", | ||
"description": "TypeScript definitions for parse", | ||
@@ -119,4 +119,4 @@ "license": "MIT", | ||
}, | ||
"typesPublisherContentHash": "62570bfe988302afdff4612d8f33d86d65a6b03ac5d2fffc2ada44067b12fa97", | ||
"typeScriptVersion": "3.3" | ||
"typesPublisherContentHash": "ba57a978612399505f34dd705b2803fbfccc98981872dbfe4267561607f50c74", | ||
"typeScriptVersion": "3.5" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Mon, 23 Dec 2019 17:18:13 GMT | ||
* Last updated: Thu, 02 Jan 2020 19:15:12 GMT | ||
* Dependencies: [@types/node](https://npmjs.com/package/@types/node) | ||
@@ -14,0 +14,0 @@ * Global values: none |
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
59083
1199