You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

28 lines
844 B

namespace Fable.Etebase
open Fable.Core
open Fable.Core.JS
open Fable.Core.JsInterop
type Collection =
abstract etag: string
abstract uid: string
abstract isDeleted: bool
abstract stoken: string option
abstract item: Item
abstract accessLevel: CollectionAccessLevel
[<Emit("$0.getContent(0)")>]
abstract getContentBytes: unit -> Promise<byte array>
[<Emit("$0.getContent(1)")>]
abstract getContentString: unit -> Promise<string>
abstract setContent: content: string -> Promise<unit>
abstract setContent: content: byte array -> Promise<unit>
abstract getCollectionType: unit -> string
abstract verify: unit -> bool
abstract delete: ?preserveContent: bool -> unit
abstract setMeta: metadata: #ItemMetadata -> unit
abstract getMeta<'a when 'a :> ItemMetadata> : unit -> 'a