@types/arangodb
Advanced tools
Comparing version 3.4.2 to 3.4.3
@@ -840,8 +840,65 @@ // Type definitions for ArangoDB 3.4 | ||
interface View { | ||
// TODO | ||
[key: string]: any; | ||
interface ArangoSearchView { | ||
_dbName: string; | ||
_id: string; | ||
name(): string; | ||
type(): ViewType; | ||
rename(newName: string): void; | ||
properties( | ||
newProperties?: ArangoSearchViewPropertiesOptions | ||
): ArangoSearchViewProperties; | ||
} | ||
type ViewProperties = object; // TODO | ||
interface ArangoSearchViewConsolidate { | ||
threshold: number; | ||
segmentThreshold: number; | ||
} | ||
interface ArangoSearchViewCollectionLink { | ||
analyzers?: string[]; | ||
fields?: { [key: string]: ArangoSearchViewCollectionLink | undefined }; | ||
includeAllFields?: boolean; | ||
trackListPositions?: boolean; | ||
storeValues?: "none" | "id"; | ||
} | ||
interface ArangoSearchViewProperties { | ||
id: string; | ||
name: string; | ||
type: "arangosearch"; | ||
commit: { | ||
cleanupIntervalStep: number; | ||
commitIntervalMsec: number; | ||
consolidate: { | ||
bytes?: ArangoSearchViewConsolidate; | ||
bytes_accum?: ArangoSearchViewConsolidate; | ||
count?: ArangoSearchViewConsolidate; | ||
fill?: ArangoSearchViewConsolidate; | ||
}; | ||
}; | ||
locale: string; | ||
links: { | ||
[key: string]: ArangoSearchViewCollectionLink | undefined; | ||
}; | ||
} | ||
interface ArangoSearchViewPropertiesOptions { | ||
locale?: string; | ||
commit?: { | ||
consolidate?: | ||
| "none" | ||
| { | ||
count?: Partial<ArangoSearchViewConsolidate>; | ||
bytes?: Partial<ArangoSearchViewConsolidate>; | ||
bytes_accum?: Partial<ArangoSearchViewConsolidate>; | ||
fill?: Partial<ArangoSearchViewConsolidate>; | ||
}; | ||
commitIntervalMsec?: number; | ||
cleanupIntervalStep?: number; | ||
}; | ||
links?: { | ||
[key: string]: ArangoSearchViewCollectionLink | undefined; | ||
}; | ||
} | ||
// Global | ||
@@ -927,9 +984,9 @@ | ||
// Views | ||
_view(name: string): View | null; | ||
_views(): View[]; | ||
_view(name: string): ArangoSearchView | null; | ||
_views(): ArangoSearchView[]; | ||
_createView( | ||
name: string, | ||
type: ViewType, | ||
properties: ViewProperties | ||
): View; | ||
properties: ArangoSearchViewPropertiesOptions | ||
): ArangoSearchView; | ||
_dropView(name: string): void; | ||
@@ -1397,3 +1454,3 @@ | ||
declare module "@arangodb/foxx/graphql" { | ||
import { GraphQLSchema, formatError } from "graphql"; | ||
import { formatError, GraphQLSchema } from "graphql"; | ||
type GraphQLModule = object; | ||
@@ -1400,0 +1457,0 @@ type GraphQLFormatErrorFunction = typeof formatError; |
{ | ||
"name": "@types/arangodb", | ||
"version": "3.4.2", | ||
"version": "3.4.3", | ||
"description": "TypeScript definitions for ArangoDB", | ||
@@ -16,3 +16,3 @@ "license": "MIT", | ||
"type": "git", | ||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git.git" | ||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git" | ||
}, | ||
@@ -24,4 +24,4 @@ "scripts": {}, | ||
}, | ||
"typesPublisherContentHash": "235a4682475a16892a28aeea948c839b69b4e0e0745d2cd598795859e498c87e", | ||
"typesPublisherContentHash": "3c445d8a917ed7f3031127c5aeef788b5fb7eb243e1fb165b0ed48d02093fcb5", | ||
"typeScriptVersion": "2.3" | ||
} |
@@ -8,6 +8,6 @@ # Installation | ||
# Details | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped.git/tree/master/types/arangodb | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/arangodb | ||
Additional Details | ||
* Last updated: Tue, 08 May 2018 22:09:43 GMT | ||
* Last updated: Thu, 02 Aug 2018 01:35:11 GMT | ||
* Dependencies: graphql, node | ||
@@ -14,0 +14,0 @@ * Global values: Foxx |
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
65068
1858