Commit 37f79ae0 authored by Radim Kolář's avatar Radim Kolář

added trait System

parent 2aadfec9
......@@ -12,8 +12,8 @@ class Slouch(url: String) extends js.Object {
val config : Config = js.native
val db : DB = js.native
val doc : Doc = js.native
def ExcludeDesignDocIterator(js.Iterator[doc]) : js.Iterator[doc] = js.native
val system : js.Object = js.native
def ExcludeDesignDocIterator(iterator: js.Iterator[doc]) : js.Iterator[doc] = js.native
val system : System = js.native
val membership : js.Object = js.native
val NotAuthenticatedError : js.Function1[js.Any, Unit] = js.native
val security : js.Object = js.native
......@@ -101,4 +101,15 @@ sealed
trait Attachment extends js.Object {
def get(dbName: String, docId: String, attachmentName: String) : js.Promise[js.Object]
def destroy(dbName: String, docId: String, attachmentName: String, rev: String) : js.Promise[response]
}
@js.native
sealed
trait System extends js.Object {
def isCouchDB1() : js.Promise[Boolean]
def get() : js.Promise[response]
def reset(exceptDBNames : Array[String] ) : js.Promise[Unit]
def updates(params: params) : js.Iterator[response]
def updatesViaGlobalChanges(params: params) : js.Iterator[response]
def updatesNoHistory(params: params) : js.Iterator[response]
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment