blocks

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddBlock

func AddBlock(jwtToken string, reqBody request.AddBlockReqBody, keyId string) (response.Block, error)

func AddBlockBasedOnTemplate

func AddBlockBasedOnTemplate(
	jwtToken string,
	reqBody request.AddBlockReqBody,
	blockParam BlockByTemplateParam,
) (response.Block, error)

func AddPodTypeToBlockPod

func AddPodTypeToBlockPod(jwtToken string, podParam AddBlockTypeIdParam) error

func AddScaleToBlock

func AddScaleToBlock(jwtToken string, blockParam request.ScaleIdParam) error

func AllowArchivalOfBlock

func AllowArchivalOfBlock(
	jwtToken string,
	reqBody common.AllowArchivalReqBody,
	blockParam common.ResourceIdParam,
) (response.Block, error)

func ArchiveBlock

func ArchiveBlock(jwtToken string, blockParam common.ResourceIdParam) error

func BulkArchiveBlocks

func BulkArchiveBlocks(jwtToken string, reqBody BulkArchiveBlocksReqBody, keyId string) error

func CopyBlock

func CopyBlock(jwtToken string, blockParam request.CopyMoveBlockParam) (response.Block, error)

func DeleteBlockTypeFromBlockPod

func DeleteBlockTypeFromBlockPod(jwtToken string, blockParam common.ResourceIdParam) error

func DeleteScaleFromBlock

func DeleteScaleFromBlock(jwtToken string, blockParam common.ResourceIdParam) error

func GetArchivedBlocks

func GetArchivedBlocks(jwtToken string, blocksParam request.GetBlocksParam) ([]response.Block, error)

func GetBlock

func GetBlock(jwtToken string, blockParam common.ResourceIdParam) (response.Block, error)

func GetBlocks

func GetBlocks(jwtToken string, blockParam request.GetBlocksParam) ([]response.Block, error)

func GetBlocksAvailableToBeLinkedToThisKey

func GetBlocksAvailableToBeLinkedToThisKey(jwtToken string, keyId string) ([]response.Block, error)

func GetBlocksLinkedToPods

func GetBlocksLinkedToPods(jwtToken string, blockParam common.ResourceIdParam) ([]response.Block, error)

func LinkBlockToKey

func LinkBlockToKey(jwtToken string, blockParam common.ResourceIdParam) error

func MoveBlock

func MoveBlock(jwtToken string, blockParam request.CopyMoveBlockParam) error

func UnarchiveBlock

func UnarchiveBlock(jwtToken string, blockParam common.ResourceIdParam) error

func UnlinkBlockFromKey

func UnlinkBlockFromKey(jwtToken string, blockParam common.ResourceIdParam) error

func UpdateBlock

func UpdateBlock(jwtToken string, reqBody UpdateBlockReqBody, blockParam common.ResourceIdParam) (response.Block, error)

func UpdateBlockPodDescription

func UpdateBlockPodDescription(
	jwtToken string,
	reqBody UpdateBlockDescReqBody,
	podParam common.ResourceIdParam,
) (response.Block, error)

func UpdateBlockScaleValue

func UpdateBlockScaleValue(
	jwtToken string,
	reqBody request.UpdateScaleValueReqBody,
	blockParam common.ResourceIdParam,
) (response.UpdateBlockScaleValue, error)

Types

type AddBlockTypeIdParam

type AddBlockTypeIdParam struct {
	KeyId       string
	BlockId     string
	BlockTypeId string
}

type BlockByTemplateParam

type BlockByTemplateParam struct {
	KeyId        string
	TemplateId   string
	ExcludePods  bool
	ExcludeTasks bool
}

type BulkArchiveBlocksReqBody

type BulkArchiveBlocksReqBody struct {
	BlockIds string `json:"blockIds"`
}

type UpdateBlockDescReqBody

type UpdateBlockDescReqBody struct {
	Description   string  `json:"blockDescription"`
	TaggedUserIds *string `json:"taggedUserIds"`
}

type UpdateBlockReqBody

type UpdateBlockReqBody struct {
	Name              *string `json:"blockName"`
	BlockId           *string `json:"blockId"`
	SimpleDescription *string `json:"simpleDescription"`
	DueDate           *string `json:"blockDueDate"`
	StartTime         *string `json:"blockStartTime"`
	EndTime           *string `json:"blockEndTime"`
	Color             *string `json:"blockColor"`
	Tags              *string `json:"blockTags"`
	KanbanMode        *bool   `json:"kanbanMode"`
	Completed         bool    `json:"blockCompleted"`
}

Jump to

Keyboard shortcuts

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