Home Reference Source Test Repository
import StoryClient from '5rolli-story-client/src/index.js'
public class | source

StoryClient

Story Client

Constructor Summary

Public Constructor
public

constructor(apiToken: string, apiKey: string, boardId: string)

constructor

Member Summary

Public Members
public

apiKey: *

public
public

boardId: *

Method Summary

Public Methods
public

label.nameのリストからStatusを取得

public

Story 一覧を取得する

public

parseCard(card: Object, board: Object): StoryNode

Trello CardとBoardデータからStoryに変換

public

Trello CardのnameからStoryの素オブジェクトに変換

public

Trello ListのnameからSprintに変換

Public Constructors

public constructor(apiToken: string, apiKey: string, boardId: string) source

constructor

Params:

NameTypeAttributeDescription
apiToken string

trello api token

apiKey string

trello api key

boardId string

trello board id

Public Members

public apiKey: * source

public apiToken: * source

public boardId: * source

Public Methods

public getStatusFromLabels(labels: string[]): string source

label.nameのリストからStatusを取得

Params:

NameTypeAttributeDescription
labels string[]

label list

Return:

string

public getStories(): Promise<StoryNode[], null> source

Story 一覧を取得する

Return:

Promise<StoryNode[], null>

public parseCard(card: Object, board: Object): StoryNode source

Trello CardとBoardデータからStoryに変換

Params:

NameTypeAttributeDescription
card Object

Trello Card

board Object

Trello Board

Return:

StoryNode

public parseCardName(name: string): Object source

Trello CardのnameからStoryの素オブジェクトに変換

Params:

NameTypeAttributeDescription
name string

card name

Return:

Object

public parseListName(name: string): Sprint source

Trello ListのnameからSprintに変換

Params:

NameTypeAttributeDescription
name string

trello list name

Return:

Sprint (nullable: true)