wip
This commit is contained in:
parent
e6bc4632a6
commit
a680354b83
3 changed files with 41 additions and 0 deletions
16
client/stillbox/src/app/incidents.ts
Normal file
16
client/stillbox/src/app/incidents.ts
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
import { CallRecord } from "./calls";
|
||||||
|
|
||||||
|
export interface IncidentCall extends CallRecord {
|
||||||
|
notes: Object|null;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface IncidentRecord {
|
||||||
|
id: string;
|
||||||
|
name: string;
|
||||||
|
description: string|null;
|
||||||
|
startTime: Date | null;
|
||||||
|
endTime: Date | null;
|
||||||
|
location: Object|null;
|
||||||
|
metadata: Object|null;
|
||||||
|
calls: IncidentCall[]|null;
|
||||||
|
}
|
16
client/stillbox/src/app/incidents/incidents.service.spec.ts
Normal file
16
client/stillbox/src/app/incidents/incidents.service.spec.ts
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
import { TestBed } from '@angular/core/testing';
|
||||||
|
|
||||||
|
import { IncidentsService } from './incidents.service';
|
||||||
|
|
||||||
|
describe('IncidentsService', () => {
|
||||||
|
let service: IncidentsService;
|
||||||
|
|
||||||
|
beforeEach(() => {
|
||||||
|
TestBed.configureTestingModule({});
|
||||||
|
service = TestBed.inject(IncidentsService);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should be created', () => {
|
||||||
|
expect(service).toBeTruthy();
|
||||||
|
});
|
||||||
|
});
|
9
client/stillbox/src/app/incidents/incidents.service.ts
Normal file
9
client/stillbox/src/app/incidents/incidents.service.ts
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
import { Injectable } from '@angular/core';
|
||||||
|
|
||||||
|
@Injectable({
|
||||||
|
providedIn: 'root'
|
||||||
|
})
|
||||||
|
export class IncidentsService {
|
||||||
|
|
||||||
|
constructor() { }
|
||||||
|
}
|
Loading…
Reference in a new issue