Skip to content

Commit

Permalink
feat(app-general): add common models for dynamic data
Browse files Browse the repository at this point in the history
  • Loading branch information
albertodigioacchino committed Dec 30, 2020
1 parent 1c824a5 commit a08c70a
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 6 deletions.
4 changes: 4 additions & 0 deletions packages/common/src/devOpsMaturitiesDoc.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export interface DevOpsMaturitiesDoc {
maturities: string[];
labels: {[key: string]: {[key: string]: string}}
}
3 changes: 0 additions & 3 deletions packages/common/src/firebaseCollection.ts

This file was deleted.

6 changes: 6 additions & 0 deletions packages/common/src/firebaseCollections.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export enum FirebaseCollections {
Users = 'users',
DynamicData = 'dynamicData',
GameRoles = 'gameRoles',
DevOpsMaturities = 'devOpsMaturities',
}
4 changes: 4 additions & 0 deletions packages/common/src/gameRolesDoc.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export interface GameRolesDoc {
roles: string[];
labels: {[key: string]: {[key: string]: string}}
}
14 changes: 11 additions & 3 deletions packages/common/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
import {FirebaseCollection} from "./firebaseCollection";
import {FirebaseCollections} from "./firebaseCollections";
import {DevOpsMaturitiesDoc} from "./devOpsMaturitiesDoc";
import {GameRolesDoc} from "./gameRolesDoc";

export {
FirebaseCollection
}
FirebaseCollections
};

export type {
DevOpsMaturitiesDoc,
GameRolesDoc
};

0 comments on commit a08c70a

Please sign in to comment.