Comparing version 8.8.0 to 8.8.1
@@ -22,11 +22,11 @@ /** | ||
*/ | ||
export declare type AnalyzerFeature = "frequency" | "norm" | "position" | "offset"; | ||
export type AnalyzerFeature = "frequency" | "norm" | "position" | "offset"; | ||
/** | ||
* Analyzer type and its type-specific properties. | ||
*/ | ||
export declare type CreateAnalyzerOptions = CreateIdentityAnalyzerOptions | CreateDelimiterAnalyzerOptions | CreateMultiDelimiterAnalyzerOptions | CreateStemAnalyzerOptions | CreateNormAnalyzerOptions | CreateNgramAnalyzerOptions | CreateTextAnalyzerOptions | CreateSegmentationAnalyzerOptions | CreateAqlAnalyzerOptions | CreatePipelineAnalyzerOptions | CreateStopwordsAnalyzerOptions | CreateCollationAnalyzerOptions | CreateMinHashAnalyzerOptions | CreateClassificationAnalyzerOptions | CreateNearestNeighborsAnalyzerOptions | CreateWildcardAnalyzerOptions | CreateGeoJsonAnalyzerOptions | CreateGeoPointAnalyzerOptions | CreateGeoS2AnalyzerOptions; | ||
export type CreateAnalyzerOptions = CreateIdentityAnalyzerOptions | CreateDelimiterAnalyzerOptions | CreateMultiDelimiterAnalyzerOptions | CreateStemAnalyzerOptions | CreateNormAnalyzerOptions | CreateNgramAnalyzerOptions | CreateTextAnalyzerOptions | CreateSegmentationAnalyzerOptions | CreateAqlAnalyzerOptions | CreatePipelineAnalyzerOptions | CreateStopwordsAnalyzerOptions | CreateCollationAnalyzerOptions | CreateMinHashAnalyzerOptions | CreateClassificationAnalyzerOptions | CreateNearestNeighborsAnalyzerOptions | CreateWildcardAnalyzerOptions | CreateGeoJsonAnalyzerOptions | CreateGeoPointAnalyzerOptions | CreateGeoS2AnalyzerOptions; | ||
/** | ||
* Options for creating an Identity Analyzer. | ||
*/ | ||
export declare type CreateIdentityAnalyzerOptions = { | ||
export type CreateIdentityAnalyzerOptions = { | ||
/** | ||
@@ -50,3 +50,3 @@ * Type of the Analyzer. | ||
*/ | ||
export declare type CreateDelimiterAnalyzerOptions = { | ||
export type CreateDelimiterAnalyzerOptions = { | ||
/** | ||
@@ -73,3 +73,3 @@ * Type of the Analyzer. | ||
*/ | ||
export declare type CreateMultiDelimiterAnalyzerOptions = { | ||
export type CreateMultiDelimiterAnalyzerOptions = { | ||
/** | ||
@@ -96,3 +96,3 @@ * Type of the Analyzer. | ||
*/ | ||
export declare type CreateStemAnalyzerOptions = { | ||
export type CreateStemAnalyzerOptions = { | ||
/** | ||
@@ -120,3 +120,3 @@ * Type of the Analyzer. | ||
*/ | ||
export declare type CreateNormAnalyzerOptions = { | ||
export type CreateNormAnalyzerOptions = { | ||
/** | ||
@@ -157,3 +157,3 @@ * Type of the Analyzer. | ||
*/ | ||
export declare type CreateNgramAnalyzerOptions = { | ||
export type CreateNgramAnalyzerOptions = { | ||
/** | ||
@@ -188,3 +188,3 @@ * Type of the Analyzer. | ||
*/ | ||
export declare type CreateTextAnalyzerOptions = { | ||
export type CreateTextAnalyzerOptions = { | ||
/** | ||
@@ -253,3 +253,3 @@ * Type of the Analyzer. | ||
*/ | ||
export declare type CreateSegmentationAnalyzerOptions = { | ||
export type CreateSegmentationAnalyzerOptions = { | ||
/** | ||
@@ -284,3 +284,3 @@ * Type of the Analyzer. | ||
*/ | ||
export declare type CreateAqlAnalyzerOptions = { | ||
export type CreateAqlAnalyzerOptions = { | ||
/** | ||
@@ -338,3 +338,3 @@ * Type of the Analyzer. | ||
*/ | ||
export declare type CreatePipelineAnalyzerOptions = { | ||
export type CreatePipelineAnalyzerOptions = { | ||
/** | ||
@@ -361,3 +361,3 @@ * Type of the Analyzer. | ||
*/ | ||
export declare type CreateStopwordsAnalyzerOptions = { | ||
export type CreateStopwordsAnalyzerOptions = { | ||
/** | ||
@@ -390,3 +390,3 @@ * Type of the Analyzer. | ||
*/ | ||
export declare type CreateCollationAnalyzerOptions = { | ||
export type CreateCollationAnalyzerOptions = { | ||
/** | ||
@@ -415,3 +415,3 @@ * Type of the Analyzer. | ||
*/ | ||
export declare type CreateMinHashAnalyzerOptions = { | ||
export type CreateMinHashAnalyzerOptions = { | ||
/** | ||
@@ -442,3 +442,3 @@ * Type of the Analyzer. | ||
*/ | ||
export declare type CreateClassificationAnalyzerOptions = { | ||
export type CreateClassificationAnalyzerOptions = { | ||
/** | ||
@@ -477,3 +477,3 @@ * Type of the Analyzer. | ||
*/ | ||
export declare type CreateNearestNeighborsAnalyzerOptions = { | ||
export type CreateNearestNeighborsAnalyzerOptions = { | ||
/** | ||
@@ -506,3 +506,3 @@ * Type of the Analyzer. | ||
*/ | ||
export declare type CreateWildcardAnalyzerOptions = { | ||
export type CreateWildcardAnalyzerOptions = { | ||
/** | ||
@@ -533,3 +533,3 @@ * Type of the Analyzer. | ||
*/ | ||
export declare type CreateGeoJsonAnalyzerOptions = { | ||
export type CreateGeoJsonAnalyzerOptions = { | ||
/** | ||
@@ -572,3 +572,3 @@ * Type of the Analyzer. | ||
*/ | ||
export declare type CreateGeoPointAnalyzerOptions = { | ||
export type CreateGeoPointAnalyzerOptions = { | ||
/** | ||
@@ -611,3 +611,3 @@ * Type of the Analyzer. | ||
*/ | ||
export declare type CreateGeoS2AnalyzerOptions = { | ||
export type CreateGeoS2AnalyzerOptions = { | ||
/** | ||
@@ -663,3 +663,3 @@ * Type of the Analyzer. | ||
*/ | ||
export declare type GenericAnalyzerDescription = { | ||
export type GenericAnalyzerDescription = { | ||
/** | ||
@@ -677,7 +677,7 @@ * A unique name for this Analyzer. | ||
*/ | ||
export declare type AnalyzerDescription = IdentityAnalyzerDescription | DelimiterAnalyzerDescription | MultiDelimiterAnalyzerDescription | StemAnalyzerDescription | NormAnalyzerDescription | NgramAnalyzerDescription | TextAnalyzerDescription | SegmentationAnalyzerDescription | AqlAnalyzerDescription | PipelineAnalyzerDescription | StopwordsAnalyzerDescription | CollationAnalyzerDescription | MinHashAnalyzerDescription | ClassificationAnalyzerDescription | NearestNeighborsAnalyzerDescription | WildcardAnalyzerDescription | GeoJsonAnalyzerDescription | GeoPointAnalyzerDescription | GeoS2AnalyzerDescription; | ||
export type AnalyzerDescription = IdentityAnalyzerDescription | DelimiterAnalyzerDescription | MultiDelimiterAnalyzerDescription | StemAnalyzerDescription | NormAnalyzerDescription | NgramAnalyzerDescription | TextAnalyzerDescription | SegmentationAnalyzerDescription | AqlAnalyzerDescription | PipelineAnalyzerDescription | StopwordsAnalyzerDescription | CollationAnalyzerDescription | MinHashAnalyzerDescription | ClassificationAnalyzerDescription | NearestNeighborsAnalyzerDescription | WildcardAnalyzerDescription | GeoJsonAnalyzerDescription | GeoPointAnalyzerDescription | GeoS2AnalyzerDescription; | ||
/** | ||
* An object describing an Identity Analyzer. | ||
*/ | ||
export declare type IdentityAnalyzerDescription = GenericAnalyzerDescription & { | ||
export type IdentityAnalyzerDescription = GenericAnalyzerDescription & { | ||
type: "identity"; | ||
@@ -689,3 +689,3 @@ properties: Record<string, never>; | ||
*/ | ||
export declare type DelimiterAnalyzerDescription = GenericAnalyzerDescription & { | ||
export type DelimiterAnalyzerDescription = GenericAnalyzerDescription & { | ||
type: "delimiter"; | ||
@@ -699,3 +699,3 @@ properties: { | ||
*/ | ||
export declare type MultiDelimiterAnalyzerDescription = GenericAnalyzerDescription & { | ||
export type MultiDelimiterAnalyzerDescription = GenericAnalyzerDescription & { | ||
type: "multi_delimiter"; | ||
@@ -709,3 +709,3 @@ properties: { | ||
*/ | ||
export declare type StemAnalyzerDescription = GenericAnalyzerDescription & { | ||
export type StemAnalyzerDescription = GenericAnalyzerDescription & { | ||
type: "stem"; | ||
@@ -719,3 +719,3 @@ properties: { | ||
*/ | ||
export declare type NormAnalyzerDescription = GenericAnalyzerDescription & { | ||
export type NormAnalyzerDescription = GenericAnalyzerDescription & { | ||
type: "norm"; | ||
@@ -731,3 +731,3 @@ properties: { | ||
*/ | ||
export declare type NgramAnalyzerDescription = GenericAnalyzerDescription & { | ||
export type NgramAnalyzerDescription = GenericAnalyzerDescription & { | ||
type: "ngram"; | ||
@@ -743,3 +743,3 @@ properties: { | ||
*/ | ||
export declare type TextAnalyzerDescription = GenericAnalyzerDescription & { | ||
export type TextAnalyzerDescription = GenericAnalyzerDescription & { | ||
type: "text"; | ||
@@ -763,3 +763,3 @@ properties: { | ||
*/ | ||
export declare type SegmentationAnalyzerDescription = GenericAnalyzerDescription & { | ||
export type SegmentationAnalyzerDescription = GenericAnalyzerDescription & { | ||
type: "segmentation"; | ||
@@ -774,3 +774,3 @@ properties: { | ||
*/ | ||
export declare type AqlAnalyzerDescription = GenericAnalyzerDescription & { | ||
export type AqlAnalyzerDescription = GenericAnalyzerDescription & { | ||
type: "aql"; | ||
@@ -789,3 +789,3 @@ properties: { | ||
*/ | ||
export declare type PipelineAnalyzerDescription = GenericAnalyzerDescription & { | ||
export type PipelineAnalyzerDescription = GenericAnalyzerDescription & { | ||
type: "pipeline"; | ||
@@ -799,3 +799,3 @@ properties: { | ||
*/ | ||
export declare type StopwordsAnalyzerDescription = GenericAnalyzerDescription & { | ||
export type StopwordsAnalyzerDescription = GenericAnalyzerDescription & { | ||
type: "stopwords"; | ||
@@ -810,3 +810,3 @@ properties: { | ||
*/ | ||
export declare type CollationAnalyzerDescription = GenericAnalyzerDescription & { | ||
export type CollationAnalyzerDescription = GenericAnalyzerDescription & { | ||
type: "collation"; | ||
@@ -820,3 +820,3 @@ properties: { | ||
*/ | ||
export declare type MinHashAnalyzerDescription = GenericAnalyzerDescription & { | ||
export type MinHashAnalyzerDescription = GenericAnalyzerDescription & { | ||
type: "minhash"; | ||
@@ -831,3 +831,3 @@ properties: { | ||
*/ | ||
export declare type ClassificationAnalyzerDescription = GenericAnalyzerDescription & { | ||
export type ClassificationAnalyzerDescription = GenericAnalyzerDescription & { | ||
type: "classification"; | ||
@@ -843,3 +843,3 @@ properties: { | ||
*/ | ||
export declare type NearestNeighborsAnalyzerDescription = GenericAnalyzerDescription & { | ||
export type NearestNeighborsAnalyzerDescription = GenericAnalyzerDescription & { | ||
type: "nearest_neighbors"; | ||
@@ -854,3 +854,3 @@ properties: { | ||
*/ | ||
export declare type WildcardAnalyzerDescription = GenericAnalyzerDescription & { | ||
export type WildcardAnalyzerDescription = GenericAnalyzerDescription & { | ||
type: "wildcard"; | ||
@@ -865,3 +865,3 @@ properties: { | ||
*/ | ||
export declare type GeoJsonAnalyzerDescription = GenericAnalyzerDescription & { | ||
export type GeoJsonAnalyzerDescription = GenericAnalyzerDescription & { | ||
type: "geojson"; | ||
@@ -880,3 +880,3 @@ properties: { | ||
*/ | ||
export declare type GeoPointAnalyzerDescription = GenericAnalyzerDescription & { | ||
export type GeoPointAnalyzerDescription = GenericAnalyzerDescription & { | ||
type: "geopoint"; | ||
@@ -896,3 +896,3 @@ properties: { | ||
*/ | ||
export declare type GeoS2AnalyzerDescription = GenericAnalyzerDescription & { | ||
export type GeoS2AnalyzerDescription = GenericAnalyzerDescription & { | ||
type: "geo_s2"; | ||
@@ -899,0 +899,0 @@ properties: { |
@@ -59,3 +59,3 @@ import { ArangoCollection } from "./collection"; | ||
*/ | ||
export declare type AqlValue = ArangoCollection | View | Graph | GeneratedAqlQuery | AqlLiteral | string | number | boolean | null | undefined | Record<string, any> | any[]; | ||
export type AqlValue = ArangoCollection | View | Graph | GeneratedAqlQuery | AqlLiteral | string | number | boolean | null | undefined | Record<string, any> | any[]; | ||
/** | ||
@@ -62,0 +62,0 @@ * Indicates whether the given value is an {@link AqlQuery}. |
@@ -17,2 +17,8 @@ # Changelog | ||
## [8.8.1] | ||
### Added | ||
- Added the `versionAttribute` option to the document operation options types (DE-783) | ||
## [8.8.0] | ||
@@ -1792,2 +1798,3 @@ | ||
[8.8.1]: https://github.com/arangodb/arangojs/compare/v8.8.0...v8.8.1 | ||
[8.8.0]: https://github.com/arangodb/arangojs/compare/v8.7.0...v8.8.0 | ||
@@ -1794,0 +1801,0 @@ [8.7.0]: https://github.com/arangodb/arangojs/compare/v8.6.0...v8.7.0 |
@@ -53,3 +53,3 @@ "use strict"; | ||
CollectionType[CollectionType["EDGE_COLLECTION"] = 3] = "EDGE_COLLECTION"; | ||
})(CollectionType = exports.CollectionType || (exports.CollectionType = {})); | ||
})(CollectionType || (exports.CollectionType = CollectionType = {})); | ||
/** | ||
@@ -66,3 +66,3 @@ * Integer values indicating the collection loading status. | ||
CollectionStatus[CollectionStatus["LOADING"] = 6] = "LOADING"; | ||
})(CollectionStatus = exports.CollectionStatus || (exports.CollectionStatus = {})); | ||
})(CollectionStatus || (exports.CollectionStatus = CollectionStatus = {})); | ||
/** | ||
@@ -69,0 +69,0 @@ * @internal |
@@ -30,3 +30,3 @@ /// <reference types="node" /> | ||
*/ | ||
export declare type LoadBalancingStrategy = "NONE" | "ROUND_ROBIN" | "ONE_RANDOM"; | ||
export type LoadBalancingStrategy = "NONE" | "ROUND_ROBIN" | "ONE_RANDOM"; | ||
/** | ||
@@ -38,3 +38,3 @@ * An arbitrary object with string values representing HTTP headers and their | ||
*/ | ||
export declare type Headers = Record<string, string>; | ||
export type Headers = Record<string, string>; | ||
/** | ||
@@ -44,7 +44,7 @@ * An arbitrary object with scalar values representing query string parameters | ||
*/ | ||
export declare type Params = Record<string, any>; | ||
export type Params = Record<string, any>; | ||
/** | ||
* Generic properties shared by all ArangoDB HTTP API responses. | ||
*/ | ||
export declare type ArangoResponseMetadata = { | ||
export type ArangoResponseMetadata = { | ||
/** | ||
@@ -62,7 +62,7 @@ * Indicates that the request was successful. | ||
*/ | ||
export declare type ArangoApiResponse<T> = T & ArangoResponseMetadata; | ||
export type ArangoApiResponse<T> = T & ArangoResponseMetadata; | ||
/** | ||
* Credentials for HTTP Basic authentication. | ||
*/ | ||
export declare type BasicAuthCredentials = { | ||
export type BasicAuthCredentials = { | ||
/** | ||
@@ -80,3 +80,3 @@ * Username to use for authentication, e.g. `"root"`. | ||
*/ | ||
export declare type BearerAuthCredentials = { | ||
export type BearerAuthCredentials = { | ||
/** | ||
@@ -90,3 +90,3 @@ * Bearer token to use for authentication. | ||
*/ | ||
declare type UrlInfo = { | ||
type UrlInfo = { | ||
absolutePath?: boolean; | ||
@@ -104,3 +104,3 @@ basePath?: string; | ||
*/ | ||
export declare type XhrOptions = { | ||
export type XhrOptions = { | ||
/** | ||
@@ -147,3 +147,3 @@ * Maximum number of parallel requests arangojs will perform. If any | ||
*/ | ||
export declare type RequestInterceptors = { | ||
export type RequestInterceptors = { | ||
/** | ||
@@ -171,3 +171,3 @@ * Callback that will be invoked with the finished request object before it | ||
*/ | ||
export declare type RequestOptions = { | ||
export type RequestOptions = { | ||
/** | ||
@@ -240,3 +240,3 @@ * @internal | ||
*/ | ||
declare type Task = { | ||
type Task = { | ||
hostUrl?: string; | ||
@@ -273,7 +273,7 @@ stack?: () => string; | ||
*/ | ||
export declare type AgentOptions = NodeAgentOptions | XhrOptions; | ||
export type AgentOptions = NodeAgentOptions | XhrOptions; | ||
/** | ||
* Options for configuring arangojs. | ||
*/ | ||
export declare type Config = { | ||
export type Config = { | ||
/** | ||
@@ -280,0 +280,0 @@ * Name of the database to use. |
@@ -454,3 +454,3 @@ "use strict"; | ||
"x-arango-version": String(this._arangoVersion), | ||
"x-arango-driver": `arangojs/8.8.0 (cloud)`, | ||
"x-arango-driver": `arangojs/8.8.1 (cloud)`, | ||
}; | ||
@@ -457,0 +457,0 @@ if (this._transactionId) { |
@@ -13,3 +13,3 @@ /** | ||
*/ | ||
export declare type DocumentMetadata = { | ||
export type DocumentMetadata = { | ||
/** | ||
@@ -33,3 +33,3 @@ * Key of the document, which uniquely identifies the document within its | ||
*/ | ||
export declare type EdgeMetadata = { | ||
export type EdgeMetadata = { | ||
/** | ||
@@ -47,15 +47,15 @@ * Unique ID of the document that acts as the edge's start vertex. | ||
*/ | ||
export declare type DocumentData<T extends Record<string, any> = any> = T & Partial<DocumentMetadata> & Partial<EdgeMetadata>; | ||
export type DocumentData<T extends Record<string, any> = any> = T & Partial<DocumentMetadata> & Partial<EdgeMetadata>; | ||
/** | ||
* Type representing an object that can be stored in an edge collection. | ||
*/ | ||
export declare type EdgeData<T extends Record<string, any> = any> = T & Partial<DocumentMetadata> & EdgeMetadata; | ||
export type EdgeData<T extends Record<string, any> = any> = T & Partial<DocumentMetadata> & EdgeMetadata; | ||
/** | ||
* Type representing a document stored in a collection. | ||
*/ | ||
export declare type Document<T extends Record<string, any> = any> = T & DocumentMetadata & Partial<EdgeMetadata>; | ||
export type Document<T extends Record<string, any> = any> = T & DocumentMetadata & Partial<EdgeMetadata>; | ||
/** | ||
* Type representing an edge document stored in an edge collection. | ||
*/ | ||
export declare type Edge<T extends Record<string, any> = any> = T & DocumentMetadata & EdgeMetadata; | ||
export type Edge<T extends Record<string, any> = any> = T & DocumentMetadata & EdgeMetadata; | ||
/** | ||
@@ -68,3 +68,3 @@ * Type representing patch data for a given object type to represent a payload | ||
*/ | ||
export declare type Patch<T = Record<string, any>> = { | ||
export type Patch<T = Record<string, any>> = { | ||
[K in keyof T]?: T[K] | Patch<T[K]>; | ||
@@ -77,3 +77,3 @@ }; | ||
*/ | ||
export declare type ObjectWithId = { | ||
export type ObjectWithId = { | ||
[key: string]: any; | ||
@@ -87,3 +87,3 @@ _id: string; | ||
*/ | ||
export declare type ObjectWithKey = { | ||
export type ObjectWithKey = { | ||
[key: string]: any; | ||
@@ -99,3 +99,3 @@ _key: string; | ||
*/ | ||
export declare type DocumentSelector = ObjectWithId | ObjectWithKey | string; | ||
export type DocumentSelector = ObjectWithId | ObjectWithKey | string; | ||
/** | ||
@@ -102,0 +102,0 @@ * @internal |
@@ -16,3 +16,3 @@ /** | ||
*/ | ||
export declare type FoxxManifest = { | ||
export type FoxxManifest = { | ||
/** | ||
@@ -96,3 +96,3 @@ * An object defining the configuration options this service requires. | ||
*/ | ||
export declare type Configuration = { | ||
export type Configuration = { | ||
/** | ||
@@ -118,3 +118,3 @@ * A human-readable description of the option. | ||
*/ | ||
export declare type Dependency = { | ||
export type Dependency = { | ||
/** | ||
@@ -144,3 +144,3 @@ * Name of the API the service expects. | ||
*/ | ||
export declare type File = { | ||
export type File = { | ||
/** | ||
@@ -147,0 +147,0 @@ * Relative path of the file or folder within the service. |
@@ -27,3 +27,3 @@ /** | ||
*/ | ||
export declare type GraphCollectionReadOptions = { | ||
export type GraphCollectionReadOptions = { | ||
/** | ||
@@ -55,3 +55,3 @@ * If set to a document revision, the document will only be returned if its | ||
*/ | ||
export declare type GraphCollectionInsertOptions = { | ||
export type GraphCollectionInsertOptions = { | ||
/** | ||
@@ -74,3 +74,3 @@ * If set to `true`, data will be synchronized to disk before returning. | ||
*/ | ||
export declare type GraphCollectionReplaceOptions = { | ||
export type GraphCollectionReplaceOptions = { | ||
/** | ||
@@ -114,3 +114,3 @@ * If set to a document revision, the document will only be modified if its | ||
*/ | ||
export declare type GraphCollectionRemoveOptions = { | ||
export type GraphCollectionRemoveOptions = { | ||
/** | ||
@@ -140,3 +140,3 @@ * If set to a document revision, the document will only be removed if its | ||
*/ | ||
export declare type EdgeDefinition = { | ||
export type EdgeDefinition = { | ||
/** | ||
@@ -158,3 +158,3 @@ * Name of the collection containing the edges. | ||
*/ | ||
export declare type EdgeDefinitionOptions = { | ||
export type EdgeDefinitionOptions = { | ||
/** | ||
@@ -176,3 +176,3 @@ * Collection containing the edges. | ||
*/ | ||
export declare type GraphInfo = { | ||
export type GraphInfo = { | ||
/** | ||
@@ -253,3 +253,3 @@ * Key of the document internally representing this graph. | ||
*/ | ||
export declare type CreateGraphOptions = { | ||
export type CreateGraphOptions = { | ||
/** | ||
@@ -312,3 +312,3 @@ * If set to `true`, the request will wait until all modifications have been | ||
}; | ||
export declare type AddVertexCollectionOptions = { | ||
export type AddVertexCollectionOptions = { | ||
/** | ||
@@ -320,3 +320,3 @@ * (Enterprise Edition cluster only.) Collections to be included in a Hybrid | ||
}; | ||
export declare type AddEdgeDefinitionOptions = { | ||
export type AddEdgeDefinitionOptions = { | ||
/** | ||
@@ -328,3 +328,3 @@ * (Enterprise Edition cluster only.) Collections to be included in a Hybrid | ||
}; | ||
export declare type ReplaceEdgeDefinitionOptions = { | ||
export type ReplaceEdgeDefinitionOptions = { | ||
/** | ||
@@ -331,0 +331,0 @@ * (Enterprise Edition cluster only.) Collections to be included in a Hybrid |
@@ -22,3 +22,3 @@ /** | ||
*/ | ||
export declare type EnsurePersistentIndexOptions = { | ||
export type EnsurePersistentIndexOptions = { | ||
/** | ||
@@ -87,3 +87,3 @@ * Type of this index. | ||
*/ | ||
export declare type EnsureGeoIndexOptions = { | ||
export type EnsureGeoIndexOptions = { | ||
type: "geo"; | ||
@@ -162,3 +162,3 @@ /** | ||
*/ | ||
export declare type EnsureFulltextIndexOptions = { | ||
export type EnsureFulltextIndexOptions = { | ||
/** | ||
@@ -191,3 +191,3 @@ * Type of this index. | ||
*/ | ||
export declare type EnsureTtlIndexOptions = { | ||
export type EnsureTtlIndexOptions = { | ||
/** | ||
@@ -221,3 +221,3 @@ * Type of this index. | ||
*/ | ||
export declare type EnsureMdiIndexOptions = { | ||
export type EnsureMdiIndexOptions = { | ||
/** | ||
@@ -256,3 +256,3 @@ * Type of this index. | ||
*/ | ||
export declare type InvertedIndexNestedFieldOptions = { | ||
export type InvertedIndexNestedFieldOptions = { | ||
/** | ||
@@ -291,3 +291,3 @@ * An attribute path. | ||
*/ | ||
export declare type InvertedIndexFieldOptions = { | ||
export type InvertedIndexFieldOptions = { | ||
/** | ||
@@ -352,3 +352,3 @@ * An attribute path. | ||
*/ | ||
export declare type InvertedIndexStoredValueOptions = { | ||
export type InvertedIndexStoredValueOptions = { | ||
/** | ||
@@ -375,3 +375,3 @@ * The attribute paths to store. | ||
*/ | ||
export declare type InvertedIndexPrimarySortFieldOptions = { | ||
export type InvertedIndexPrimarySortFieldOptions = { | ||
/** | ||
@@ -389,3 +389,3 @@ * The attribute path to sort by. | ||
*/ | ||
export declare type EnsureInvertedIndexOptions = { | ||
export type EnsureInvertedIndexOptions = { | ||
/** | ||
@@ -552,3 +552,3 @@ * Type of this index. | ||
*/ | ||
export declare type GenericIndex = { | ||
export type GenericIndex = { | ||
/** | ||
@@ -575,3 +575,3 @@ * A unique name for this index. | ||
*/ | ||
export declare type PersistentIndex = GenericIndex & { | ||
export type PersistentIndex = GenericIndex & { | ||
type: "persistent"; | ||
@@ -587,3 +587,3 @@ fields: string[]; | ||
*/ | ||
export declare type PrimaryIndex = GenericIndex & { | ||
export type PrimaryIndex = GenericIndex & { | ||
type: "primary"; | ||
@@ -599,3 +599,3 @@ fields: string[]; | ||
*/ | ||
export declare type FulltextIndex = GenericIndex & { | ||
export type FulltextIndex = GenericIndex & { | ||
type: "fulltext"; | ||
@@ -608,3 +608,3 @@ fields: [string]; | ||
*/ | ||
export declare type GeoIndex = GenericIndex & { | ||
export type GeoIndex = GenericIndex & { | ||
type: "geo"; | ||
@@ -621,3 +621,3 @@ fields: [string] | [string, string]; | ||
*/ | ||
export declare type TtlIndex = GenericIndex & { | ||
export type TtlIndex = GenericIndex & { | ||
type: "ttl"; | ||
@@ -631,3 +631,3 @@ fields: [string]; | ||
*/ | ||
export declare type MdiIndex = GenericIndex & { | ||
export type MdiIndex = GenericIndex & { | ||
type: "mdi"; | ||
@@ -641,3 +641,3 @@ fields: string[]; | ||
*/ | ||
export declare type InvertedIndexNestedField = { | ||
export type InvertedIndexNestedField = { | ||
name: string; | ||
@@ -652,3 +652,3 @@ analyzer?: string; | ||
*/ | ||
export declare type InvertedIndex = GenericIndex & { | ||
export type InvertedIndex = GenericIndex & { | ||
type: "inverted"; | ||
@@ -698,8 +698,8 @@ fields: { | ||
*/ | ||
export declare type Index = GeoIndex | FulltextIndex | PersistentIndex | PrimaryIndex | TtlIndex | MdiIndex | InvertedIndex; | ||
export declare type ObjectWithId = { | ||
export type Index = GeoIndex | FulltextIndex | PersistentIndex | PrimaryIndex | TtlIndex | MdiIndex | InvertedIndex; | ||
export type ObjectWithId = { | ||
[key: string]: any; | ||
id: string; | ||
}; | ||
export declare type ObjectWithName = { | ||
export type ObjectWithName = { | ||
[key: string]: any; | ||
@@ -711,3 +711,3 @@ name: string; | ||
*/ | ||
export declare type IndexSelector = ObjectWithId | ObjectWithName | string; | ||
export type IndexSelector = ObjectWithId | ObjectWithName | string; | ||
/** | ||
@@ -714,0 +714,0 @@ * @internal |
@@ -14,3 +14,3 @@ /** | ||
*/ | ||
export declare type Errback<T = never> = (err: Error | null, result?: T) => void; | ||
export type Errback<T = never> = (err: Error | null, result?: T) => void; | ||
//# sourceMappingURL=errback.d.ts.map |
@@ -12,3 +12,3 @@ /** | ||
*/ | ||
export declare type Fields = { | ||
export type Fields = { | ||
[key: string]: any; | ||
@@ -15,0 +15,0 @@ }; |
@@ -29,3 +29,3 @@ /** | ||
*/ | ||
export declare type RequestOptions = { | ||
export type RequestOptions = { | ||
method: string; | ||
@@ -44,3 +44,3 @@ url: { | ||
*/ | ||
export declare type RequestFunction = { | ||
export type RequestFunction = { | ||
(options: RequestOptions, cb: Errback<ArangojsResponse>): void; | ||
@@ -47,0 +47,0 @@ close?: () => void; |
@@ -7,2 +7,3 @@ /** | ||
*/ | ||
/// <reference types="node" /> | ||
import { ClientRequest } from "http"; | ||
@@ -9,0 +10,0 @@ import { Errback } from "./errback"; |
{ | ||
"name": "arangojs", | ||
"version": "8.8.0", | ||
"version": "8.8.1", | ||
"engines": { | ||
@@ -5,0 +5,0 @@ "node": ">=14" |
@@ -6,3 +6,3 @@ # ArangoDB JavaScript Driver | ||
[![license - APACHE-2.0](https://img.shields.io/npm/l/arangojs.svg)](http://opensource.org/licenses/APACHE-2.0) | ||
[![Continuous Integration](https://github.com/arangodb/arangojs/workflows/Continuous%20Integration/badge.svg)](https://github.com/arangodb/arangojs/actions?query=workflow:"Continuous+Integration") | ||
[![Tests](https://github.com/arangodb/arangojs/workflows/Tests/badge.svg)](https://github.com/arangodb/arangojs/actions?query=workflow:Tests) | ||
@@ -9,0 +9,0 @@ [![npm package status](https://nodei.co/npm/arangojs.png?downloads=true&stars=true)](https://npmjs.org/package/arangojs) |
@@ -11,3 +11,3 @@ import { Database } from "./database"; | ||
*/ | ||
export declare type TransactionCommitOptions = { | ||
export type TransactionCommitOptions = { | ||
/** | ||
@@ -23,3 +23,3 @@ * If set to `true`, the request will explicitly permit ArangoDB to return a | ||
*/ | ||
export declare type TransactionAbortOptions = { | ||
export type TransactionAbortOptions = { | ||
/** | ||
@@ -37,3 +37,3 @@ * If set to `true`, the request will explicitly permit ArangoDB to return a | ||
*/ | ||
export declare type TransactionStatus = { | ||
export type TransactionStatus = { | ||
/** | ||
@@ -40,0 +40,0 @@ * Unique identifier of the transaction. |
@@ -21,3 +21,3 @@ /** | ||
*/ | ||
export declare type Direction = "desc" | "asc"; | ||
export type Direction = "desc" | "asc"; | ||
/** | ||
@@ -30,3 +30,3 @@ * Policy to consolidate based on segment byte size and live document count as | ||
*/ | ||
export declare type BytesAccumConsolidationPolicy = { | ||
export type BytesAccumConsolidationPolicy = { | ||
/** | ||
@@ -45,3 +45,3 @@ * Type of consolidation policy. | ||
*/ | ||
export declare type TierConsolidationPolicy = { | ||
export type TierConsolidationPolicy = { | ||
/** | ||
@@ -88,19 +88,19 @@ * Type of consolidation policy. | ||
*/ | ||
export declare type Compression = "lz4" | "none"; | ||
export type Compression = "lz4" | "none"; | ||
/** | ||
* Options for creating a View. | ||
*/ | ||
export declare type CreateViewOptions = CreateArangoSearchViewOptions | CreateSearchAliasViewOptions; | ||
export type CreateViewOptions = CreateArangoSearchViewOptions | CreateSearchAliasViewOptions; | ||
/** | ||
* Options for replacing a View's properties. | ||
*/ | ||
export declare type ViewPropertiesOptions = ArangoSearchViewPropertiesOptions | SearchAliasViewPropertiesOptions; | ||
export type ViewPropertiesOptions = ArangoSearchViewPropertiesOptions | SearchAliasViewPropertiesOptions; | ||
/** | ||
* Options for partially modifying a View's properties. | ||
*/ | ||
export declare type ViewPatchPropertiesOptions = ArangoSearchViewPropertiesOptions | SearchAliasViewPatchPropertiesOptions; | ||
export type ViewPatchPropertiesOptions = ArangoSearchViewPropertiesOptions | SearchAliasViewPatchPropertiesOptions; | ||
/** | ||
* A link definition for an ArangoSearch View. | ||
*/ | ||
export declare type ArangoSearchViewLinkOptions = { | ||
export type ArangoSearchViewLinkOptions = { | ||
/** | ||
@@ -160,3 +160,3 @@ * A list of names of Analyzers to apply to values of processed document | ||
*/ | ||
export declare type ArangoSearchViewPropertiesOptions = { | ||
export type ArangoSearchViewPropertiesOptions = { | ||
/** | ||
@@ -197,3 +197,3 @@ * How many commits to wait between removing unused files. | ||
*/ | ||
export declare type ArangoSearchViewPatchPropertiesOptions = ArangoSearchViewPropertiesOptions; | ||
export type ArangoSearchViewPatchPropertiesOptions = ArangoSearchViewPropertiesOptions; | ||
/** | ||
@@ -225,3 +225,3 @@ * Options for creating a stored value in an ArangoSearch View. | ||
*/ | ||
export declare type CreateArangoSearchViewOptions = ArangoSearchViewPropertiesOptions & { | ||
export type CreateArangoSearchViewOptions = ArangoSearchViewPropertiesOptions & { | ||
/** | ||
@@ -315,3 +315,3 @@ * Type of the View. | ||
*/ | ||
export declare type SearchAliasViewIndexOptions = { | ||
export type SearchAliasViewIndexOptions = { | ||
/** | ||
@@ -329,3 +329,3 @@ * Name of a collection. | ||
*/ | ||
export declare type SearchAliasViewPropertiesOptions = { | ||
export type SearchAliasViewPropertiesOptions = { | ||
/** | ||
@@ -339,3 +339,3 @@ * An array of inverted indexes to add to the View. | ||
*/ | ||
export declare type SearchAliasViewPatchIndexOptions = SearchAliasViewIndexOptions & { | ||
export type SearchAliasViewPatchIndexOptions = SearchAliasViewIndexOptions & { | ||
/** | ||
@@ -351,3 +351,3 @@ * Whether to add or remove the index. | ||
*/ | ||
export declare type SearchAliasViewPatchPropertiesOptions = { | ||
export type SearchAliasViewPatchPropertiesOptions = { | ||
/** | ||
@@ -361,3 +361,3 @@ * An array of inverted indexes to add to the View. | ||
*/ | ||
export declare type CreateSearchAliasViewOptions = SearchAliasViewPropertiesOptions & { | ||
export type CreateSearchAliasViewOptions = SearchAliasViewPropertiesOptions & { | ||
/** | ||
@@ -371,3 +371,3 @@ * Type of the View. | ||
*/ | ||
export declare type GenericViewDescription = { | ||
export type GenericViewDescription = { | ||
/** | ||
@@ -386,14 +386,14 @@ * A globally unique identifier for this View. | ||
}; | ||
export declare type ViewDescription = ArangoSearchViewDescription | SearchAliasViewDescription; | ||
export declare type ArangoSearchViewDescription = GenericViewDescription & { | ||
export type ViewDescription = ArangoSearchViewDescription | SearchAliasViewDescription; | ||
export type ArangoSearchViewDescription = GenericViewDescription & { | ||
type: "arangosearch"; | ||
}; | ||
export declare type SearchAliasViewDescription = GenericViewDescription & { | ||
export type SearchAliasViewDescription = GenericViewDescription & { | ||
type: "search-alias"; | ||
}; | ||
export declare type ViewProperties = ArangoSearchViewProperties | SearchAliasViewProperties; | ||
export type ViewProperties = ArangoSearchViewProperties | SearchAliasViewProperties; | ||
/** | ||
* A link definition for an ArangoSearch View. | ||
*/ | ||
export declare type ArangoSearchViewLink = { | ||
export type ArangoSearchViewLink = { | ||
analyzers: string[]; | ||
@@ -410,3 +410,3 @@ fields: Record<string, ArangoSearchViewLink>; | ||
*/ | ||
export declare type ArangoSearchViewProperties = ArangoSearchViewDescription & { | ||
export type ArangoSearchViewProperties = ArangoSearchViewDescription & { | ||
cleanupIntervalStep: number; | ||
@@ -437,3 +437,3 @@ consolidationIntervalMsec: number; | ||
*/ | ||
export declare type SearchAliasViewProperties = SearchAliasViewDescription & { | ||
export type SearchAliasViewProperties = SearchAliasViewDescription & { | ||
indexes: { | ||
@@ -440,0 +440,0 @@ collection: string; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
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
2342784
21827