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
1.3 KiB

namespace Fable.Etebase
open Fable.Core
open Fable.Core.JS
open Fable.Core.JsInterop
type CollectionManager =
abstract getItemManager: collection: Collection -> ItemManager
abstract getMemberManager: collection: Collection -> CollectionMemberManager
abstract fetch: collectionUid: string * ?options: CollectionManagerFetchOptions -> Promise<Collection>
abstract cacheSave: collection: Collection * ?options: CacheSaveOptions -> byte array
abstract cacheLoad: cache: byte array -> Collection
abstract upload: collection: Collection * ?options: CollectionManagerFetchOptions -> Promise<unit>
abstract transaction: collection: Collection * ?options: CollectionManagerFetchOptions -> Promise<unit>
/// itemMetadata must implement the Fable.Etebase.ItemMetadata interface
abstract create: colType: string * itemMetadata: #ItemMetadata * content: string -> Promise<Collection>
/// itemMetadata must implement the Fable.Etebase.ItemMetadata interface
abstract create: colType: string * itemMetadata: #ItemMetadata * content: byte array -> Promise<Collection>
abstract list:
callType: string * ?options: CollectionManagerFetchOptions -> Promise<CollectionListResult<Collection>>
abstract list:
callType: string array * ?options: CollectionManagerFetchOptions -> Promise<CollectionListResult<Collection>>