import { Config } from "./connection"; import { Fabric } from "./fabric"; import { DocumentHandle, DocumentsHandle, DocumentSaveOptions, CollectionUpdateProperties, CollectionCreateProperties } from "./collection"; import { C8QLLiteral } from "./c8ql-query"; import { KeyValue, KVCreateOptsObj, KVPairHandle, KVValueOptsObj } from "./keyValue"; import { ApiKeyAttributesType, ApiKeys, validateApiKeyHandle } from "./apiKeys"; import { Search, SearchOptions, LinksType, PrimarySortFields } from "./search"; import { AccountDetails, Billing } from "./billing"; import { CollectionParams, ImportAndExport } from "./importandexport"; import { CreateTenant, ModifyTenant } from "./tenant"; import { UserAttributesType } from "./user"; import { Stream } from "./stream"; import { Graph } from "./graph"; import { Redis } from "./redis"; import { Function } from "./function"; import { Integrations } from "./integrations"; import { Transformations } from "./transformations"; import { Connectors } from "./connectors"; export declare class C8Client extends Fabric { redis: Redis; function: Function; integrations: Integrations; transformations: Transformations; connectors: Connectors; constructor(config: Config); useApiKeyAuth(apikey: string): this; setResultListener(callback: ((res: any) => void) | undefined): void; loginWithToken(jwt: string): Promise; loginWithApiKey(apikey: string): Promise; createCollection(collectionName: string, properties?: CollectionCreateProperties, isEdge?: boolean): Promise; getCollectionInformation(collectionName: string): Promise; getCollectionDocumentsNumber(collectionName: string): Promise; getCollectionFigures(collectionName: string): Promise; getCollectionMetadata(collectionName: string): Promise; updateCollectionMetadata(collectionName: string, properties: any): Promise; getCollectionConnections(collectionName: string): Promise; deleteCollectionConnection(collectionName: string, connectionName: string): Promise; updateCollectionProperties(collectionName: string, properties: CollectionUpdateProperties): Promise; truncateCollection(collectionName: string): Promise; truncateAndReloadCollection(collectionName: string): Promise; deleteCollection(collectionName: string, opts?: any): Promise; hasCollection(collectionName: string): Promise; getCollection(collectionName: string): Promise; getCollections(excludeSystem?: boolean): Promise; onCollectionChange(collectionName: string, dcName: string, subscriptionName: string): Promise; getDocument(collectionName: string, documentHandle: DocumentHandle, graceful?: boolean): Promise; getDocumentMany(collectionName: string, limit?: number, skip?: number): Promise; insertDocument(collectionName: string, data: any, opts?: DocumentSaveOptions | boolean): Promise; insertDocumentMany(collectionName: string, data: any, opts?: DocumentSaveOptions | boolean): Promise; insertDocumentFromFile(collectionName: string, file: string | File, opts?: DocumentSaveOptions | boolean): Promise; updateDocument(collectionName: string, documentHandle: any, newValue: any, opts?: any): Promise; updateDocumentMany(collectionName: string, documentsHandle: DocumentsHandle[], opts?: any): Promise; replaceDocument(collectionName: string, documentHandle: any, newValue: any, opts?: any): Promise; replaceDocumentMany(collectionName: string, documentsHandle: DocumentsHandle[], opts?: any): Promise; deleteDocument(collectionName: string, documentHandle: any, opts?: any): Promise; deleteDocumentMany(collectionName: string, documentsHandle: string[] | DocumentsHandle[], opts?: any): Promise; listCollectionIndexes(collectionName: string): Promise; addHashIndex(collectionName: string, fields: string[] | string, opts?: any): Promise; addGeoIndex(collectionName: string, fields: string[] | string, opts?: any): Promise; addSkiplistIndex(collectionName: string, fields: string[] | string, opts?: any): Promise; addPersistentIndex(collectionName: string, fields: string[] | string, opts?: any): Promise; addFullTextIndex(collectionName: string, fields: string[] | string, opts?: any): Promise; addTtlIndex(collectionName: string, fields: string[] | string, expireAfter: number, name?: string): Promise; deleteIndex(collectionName: string, indexName: string): Promise; getCollectionIds(collectionName: string): Promise; getCollectionKeys(collectionName: string): Promise; getCollectionIndexes(collectionName: string): Promise; executeQuery(query: string | C8QLLiteral, bindVars?: any, opts?: any): Promise; getRunningQueries(): Promise; killQuery(queryId: string): Promise; createRestql(restqlName: string, value: string, parameter?: any, type?: string): Promise; executeRestql(restqlName: string, opts?: any): Promise; updateRestql(restqlName: string, value: string, parameter?: any, type?: string): Promise; deleteRestql(restqlName: string): Promise; getRestqls(): Promise; getDcList(): Promise; getLocalDc(): Promise; createStream(streamName: string, local: boolean, isCollectionStream?: boolean): Promise; hasStream(streamName: string, local: boolean, isCollectionStream?: boolean): Promise; getStream(streamName: string, local: boolean, isCollectionStream?: boolean): Stream; getStreamStats(streamName: string, local: boolean, isCollectionStream?: boolean): Promise; createStreamProducer(streamName: string, local: boolean, isCollectionStream: boolean | undefined, dcName: string, params?: { [key: string]: any; }): Promise; createStreamReader(streamName: string, subscriptionName: string, local: boolean, isCollectionStream: boolean | undefined, dcName: string, params?: { [key: string]: any; }): Promise; subscribe(streamName: string, local: boolean, isCollectionStream: boolean | undefined, subscriptionName: string, dcName: string, params?: { [key: string]: any; }): Promise; getStreamBacklog(streamName: string, local: boolean, isCollectionStream?: boolean): Promise; clearStreamBacklog(subscription: string): Promise; clearStreamsBacklog(): Promise; getStreamSubscriptions(streamName: string, local: boolean, isCollectionStream?: boolean): Promise; deleteStreamSubscription(streamName: string, subscription: string, local: boolean, isCollectionStream?: boolean): Promise; deleteStream(streamName: string, force?: boolean): Promise; validateStreamApp(appDefinition: string): Promise; retrieveStreamApp(): Promise; deleteStreamApp(appName: string): Promise; getStreamApp(appName: string): Promise; getStreamAppSamples(): Promise; activateStreamApp(appName: string, active: boolean): Promise; getGraphs(): Promise; createGraph(graphName: string, properties?: any): Promise; deleteGraph(graphName: string, dropCollections: boolean): Promise; getGraph(graphName: string): Promise; hasGraph(graphName: string): Promise; getEdges(graphName: string): Promise; insertEdge(graphName: string, definition: any): Promise; removeEdgeDefinition(graphName: string, edgeCollectionName: string): Promise; getEdge(graphName: string, collectionName: string, documentHandle: DocumentHandle, opts?: any): Promise; updateEdge(graphName: string, collectionName: string, documentHandle: DocumentHandle, newValue: any, opts?: any): Promise; replaceEdge(graphName: string, collectionName: string, documentHandle: DocumentHandle, newValue: any, opts?: any): Promise; deleteEdge(graphName: string, collectionName: string, documentHandle: DocumentHandle, opts?: any): Promise; linkEdge(graphName: string, collectionName: string, fromId: string | string[], toId: string | string[]): Promise; addEdgeToEdgeCollection(graphName: string, collectionName: string, properties?: any, returnNew?: boolean): Promise; listVertexCollections(graphName: string): Promise; addVertexCollection(graphName: string, collectionName: string): Promise; removeVertexCollection(graphName: string, collectionName: string, dropCollection?: boolean): Promise; addVertexToVertexCollection(graphName: string, collectionName: string, properties?: any, returnNew?: boolean): Promise; removeVertexFromVertexCollection(graphName: string, collectionName: string, documentHandle: DocumentHandle, opts?: any): Promise; getVertexFromVertexCollection(graphName: string, collectionName: string, documentHandle: DocumentHandle, opts?: any): Promise; updateVertexFromVertexCollection(graphName: string, collectionName: string, documentHandle: DocumentHandle, newValue: any, opts?: any): Promise; replaceVertexFromVertexCollection(graphName: string, collectionName: string, documentHandle: DocumentHandle, newValue: any, opts?: any): Promise; hasUser(userName: string): Promise; createUser(userName: string, email: string, passwd?: string, active?: boolean, extra?: object): Promise; deleteUser(userName: string): Promise; getUsers(): Promise; getUser(userName: string): Promise; updateUser(userName: string, data: { active?: boolean; passwd: string; extra?: object; }): Promise; replaceUser(userName: string, data: { active?: boolean; passwd: string; extra?: object; }): Promise; getPermissions(userName: string, isFullRequested?: boolean): Promise; getPermission(userName: string, databaseName: string, collectionName?: string): Promise; updatePermission(userName: string, fabricName: string, permission: "rw" | "ro" | "none", collectionName?: string): Promise; resetPermission(userName: string, fabricName: string, collectionName?: string): Promise; getUserAttributes(userName: string): Promise; deleteUserAttribute(userName: string, attributeId: string): Promise; createUpdateUserAttributes(userName: string, data: UserAttributesType): Promise; keyValue(collectionName: string): KeyValue; getKVCollections(): Promise; getKVCount(collectionName: string): Promise; getKVKeys(collectionName: string, opts?: any): Promise; getValueForKey(collectionName: string, key: string): Promise; createKVCollection(collectionName: string, opts?: KVCreateOptsObj): Promise; insertKVPairs(collectionName: string, keyValuePairs: KVPairHandle[]): Promise; deleteEntryForKey(collectionName: string, key: string): Promise; deleteEntryForKeys(collectionName: string, keys: string[]): Promise; deleteKVCollection(collectionName: string): Promise; getKVCollectionValues(collectionName: string, keys: string[], opts?: KVValueOptsObj): Promise; truncateKVCollectionByName(collectionName: string): Promise; apiKeys(keyid?: string, dbName?: string): ApiKeys; validateApiKey(data: validateApiKeyHandle): Promise; createApiKey(keyid: string): Promise; getAvailableApiKeys(): Promise; getAvailableApiKey(keyid: string): Promise; removeApiKey(keyid: string): Promise; listAccessibleDatabases(keyid: string, full?: boolean): Promise; getDatabaseAccessLevel(keyid: string, dbName: string): Promise; clearDatabaseAccessLevel(keyid: string, dbName: string): Promise; setDatabaseAccessLevel(keyid: string, dbName: string, permission: "rw" | "ro" | "none"): Promise; listAccessibleCollections(keyid: string, dbName: string, full?: boolean): Promise; getCollectionAccessLevel(keyid: string, dbName: string, collectionName: string): Promise; clearCollectionAccessLevel(keyid: string, dbName: string, collectionName: string): Promise; setCollectionAccessLevel(keyid: string, dbName: string, collectionName: string, permission: "rw" | "ro" | "none"): Promise; listAccessibleStreams(keyid: string, dbName: string, full?: boolean): Promise; getStreamAccessLevel(keyid: string, dbName: string, streamName: string): Promise; clearStreamAccessLevel(keyid: string, dbName: string, streamName: string): Promise; setStreamAccessLevel(keyid: string, dbName: string, streamName: string, permission: "rw" | "ro" | "none" | "wo"): Promise; getBillingAccessLevel(keyid: string): Promise; clearBillingAccessLevel(keyid: string): Promise; setBillingAccessLevel(keyid: string, permission: "rw" | "ro" | "none"): Promise; createUpdateApikeyAttributes(keyid: string, data: ApiKeyAttributesType): Promise; getApikeyAttributes(keyid: string): Promise; deleteApikeyAttribute(keyid: string, attributeId: string): Promise; search(searchOptions?: SearchOptions): Search; setSearch(collectionName: string, enable: boolean, field: string): Promise; searchInCollection(collectionName: string, searchString: string, bindVars?: object, ttl?: number): Promise; getListOfViews(): Promise; createView(viewName: string, links?: LinksType, primarySort?: Array): Promise; getViewInfo(viewName: string): Promise; renameView(viewName: string, newName: string): Promise; deleteView(viewName: string): Promise; getViewProperties(viewName: string): Promise; updateViewProperties(viewName: string, properties: LinksType): Promise; getListOfAnalyzers(): Promise; getAnalyzerDefinition(analyzerName: string): Promise; /** billing apis starts from here */ billing(tenantName: string): Billing; getAccountDetails(tenantName: string): Promise; updateAccountDetails(tenantName: string, accountDetails: AccountDetails): Promise; updatePaymentSettings(tenantName: string, paymentMethodId: string): Promise; getPaymentDetailsOfPreviousMonths(tenantName: string, limit: number): Promise; getInvoices(tenantName: string, limit: number): Promise; getCurrentInvoices(tenantName: string): Promise; getInvoiceOfSpecificMonthYear(tenantName: string, year: number, month: number): Promise; getUsageOfTenant(tenantName: string, startDate?: string, endDate?: string): Promise; getUsageOfTenantForSpecificRegion(tenantName: string, region: string, startDate?: string, endDate?: string): Promise; /** billing apis ends here */ /**export and import apis starts from here */ importAndExport(collectionName?: string): ImportAndExport; exportDataByQuery(query: string, bindVars?: Record): Promise; exportDataByCollectionName(collectionName: string, params?: CollectionParams): Promise; importDocuments(collectionName: string, data: Array>, showErrors: boolean, primaryKey: string, replace?: boolean): Promise; /**export and import apis ends */ createTenant(email: string, passwd: string, plan: string, attribution: string, dcList: string, otherParams?: CreateTenant): Promise; dropTenant(tenantEmail: string): Promise; tenantDetails(tenantEmail: string): Promise; updateTenant(tenantEmail: string, modifyTenant: ModifyTenant): Promise; getDCListByTenantName(tenantEmail: string): Promise; } //# sourceMappingURL=client.d.ts.map