@sensenet/repository-events
    TypeScript icon, indicating that this package has built-in type declarations

    2.1.2 • Public • Published

    @sensenet/repository-events

    This NPM package contains event observables that can be used for tracking sensenet repository events.

    NPM version NPM downloads License: GPL v2

    Install

    # Yarn
    yarn add @sensenet/repository-events
    
    # NPM
    npm install @sensenet/repository-events

    Usage

    const repository = new Repository({})
    const eventHub = new EventHub(repository)
    
    // subscribe to a Content Created event
    eventHub.onContentCreated.subscribe(createdContent => {
      console.log('New Content created:', createdContent)
    })

    The available events are:

    • onContentCreated
    • onContentCreateFailed
    • onContentModified
    • onContentModificationFailed
    • onContentLoaded
    • onContentDeleted
    • onContentDeleteFailed
    • onCustomActionExecuted
    • onCustomActionFailed
    • onContentMoved
    • onContentMoveFailed
    • onContentCopyFailed
    • onUploadFinished
    • onUploadFailed

    Install

    npm i @sensenet/repository-events

    Homepage

    sensenet.com

    DownloadsWeekly Downloads

    87

    Version

    2.1.2

    License

    GPL-2.0

    Unpacked Size

    496 kB

    Total Files

    29

    Last publish

    Collaborators

    • kubehu
    • blaskodaniel
    • herflis
    • tusmester
    • kavics
    • vargajoe
    • pusztaie
    • taki9