@xyzblocks/tech-radar-domain
v1.0.7
Published
Interfaces, Services, Entities and Value Objects of the Tech Radar Domain
Downloads
3
Readme
tech-radar-domain
Interfaces, Services, Entities and Value Objects of the Tech Radar Domain
Installation
npm install --save tech-radar-domain
API
Blip
Properties
id
-> stringname
-> stringlink
-> stringquadrant
-> Quadrant (1 (Techniques), 2 (Tools), 3 (Platforms), 4 (LanguagesAndFrameworks))angle
-> numbervotes
-> Arrayoffset
-> number
Methods
downVote(userName: string): void
getNumberOfVotesWithOffset(): number
getStatusText(): string
hasDownVoted(userName: string): boolean
hasUpVoted(userName: string): boolean
toTechRadarChartItem()
upVote(userName: string): void
IBlipRepository
Methods
create(blip: Blip): Promise<void>
delete(blip: Blip): Promise<void>
find(id: string): Promise<Blip>
findAll(): Promise<Array<Blip>>
update(blip: Blip): Promise<void>
BlipService & IBlipService
Methods
delete(blipId: string, userName: string): Promise<void>
deleteObservable(blipId: string, userName: string): Observable<void>
downVote(blipId: string, userName: string): Promise<void>
downVoteObservable(blipId: string, userName: string): Observable<void>
find(blipId: string): Promise<Blip>
findObservable(blipId: string): Observable<Blip>
findAll(): Promise<Array<Blip>>
findAllObservable(): Observable<Array<Blip>>
save(blip: Blip, userName: string): Promise<void>
saveObservable(blip: Blip, userName: string): Observable<void>
upVote(blipId: string, userName: string): Promise<void>
upVoteObservable(blipId: string, userName: string): Observable<void>
Vote
Properties
userName
-> stringweight
-> number
Methods
static createDownVote(userName: string): Vote
static createUpVote(userName: string): Vote