Skip to content

Commit

Permalink
feat(common-general): add card models
Browse files Browse the repository at this point in the history
  • Loading branch information
albertodigioacchino committed Jan 14, 2021
1 parent fff5b80 commit 66a2636
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 3 deletions.
25 changes: 25 additions & 0 deletions packages/common/src/card.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

export enum CardTypes {
Scenario = 'scenario',
PipelineStep = 'pipeline-step',
GameRule = 'game-rule',
Review = 'review'
}

export enum CardTags {
DeliveryStep= 'delivery-step',
ManualStep= 'manual-step',
DeployStep= 'deploy-step',
SystemTest= 'system-test',
Package= 'package',
}

export interface Card {
type: CardTypes,
tags: CardTags[] | null,
title: string,
subtitle: string | null
content: string,
number: number,
deckId: string
}
10 changes: 7 additions & 3 deletions packages/common/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,18 @@ import {FirebaseCollections} from "./firebaseCollections";
import {FirebaseDocs} from "./firebaseDocs";
import {DevOpsMaturitiesDoc} from "./devOpsMaturitiesDoc";
import {GameRolesDoc} from "./gameRolesDoc";
import {Card, CardTypes, CardTags} from "./card";

export {
FirebaseCollections,
FirebaseDocs
FirebaseDocs,
CardTypes,
CardTags
};

export type {
DevOpsMaturitiesDoc,
GameRolesDoc
DevOpsMaturitiesDoc,
GameRolesDoc,
Card
};

0 comments on commit 66a2636

Please sign in to comment.