activity

package
v1.52.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 18, 2017 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DocumentActivity

type DocumentActivity struct {
	ID           int       `json:"id"`
	OrgID        string    `json:"orgId"`
	LabelID      string    `json:"folderId"`
	DocumentID   string    `json:"documentId"`
	UserID       string    `json:"userId"`
	Firstname    string    `json:"firstname"`
	Lastname     string    `json:"lastname"`
	ActivityType int       `json:"activityType"`
	Created      time.Time `json:"created"`
}

DocumentActivity represents an activity taken against a document.

type SourceType

type SourceType int

SourceType details where the activity occured.

const (
	// SourceTypeSpace indicates activity against a space.
	SourceTypeSpace SourceType = 1

	// SourceTypeDocument indicates activity against a document.
	SourceTypeDocument SourceType = 2
)

type Type

type Type int

Type determines type of user activity

const (
	// TypeCreated records user document creation
	TypeCreated Type = 1

	// TypeRead states user has read document
	TypeRead Type = 2

	// TypeEdited states user has editing document
	TypeEdited Type = 3

	// TypeDeleted records user deleting space/document
	TypeDeleted Type = 4

	// TypeArchived records user archiving space/document
	TypeArchived Type = 5

	// TypeApproved records user approval of document
	TypeApproved Type = 6

	// TypeReverted records user content roll-back to previous version
	TypeReverted Type = 7

	// TypePublishedTemplate records user creating new document template
	TypePublishedTemplate Type = 8

	// TypePublishedBlock records user creating reusable content block
	TypePublishedBlock Type = 9

	// TypeFeedback records user providing document feedback
	TypeFeedback Type = 10
)

type UserActivity

type UserActivity struct {
	ID           uint64     `json:"-"`
	OrgID        string     `json:"orgId"`
	UserID       string     `json:"userId"`
	LabelID      string     `json:"folderId"`
	SourceID     string     `json:"sourceId"`
	SourceName   string     `json:"sourceName"` // e.g. Document or Space name
	SourceType   SourceType `json:"sourceType"`
	ActivityType Type       `json:"activityType"`
	Created      time.Time  `json:"created"`
}

UserActivity represents an activity undertaken by a user.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL