@@ -2,7 +2,7 @@ import { promises as fs } from 'fs';
22import { gunzipSync } from 'zlib' ;
33import { Database , entityCollection , fieldIndex , stringCmp } from '@cdklabs/tskb' ;
44import { IsAugmentedResource , ResourceAugmentation } from './augmentations' ;
5- import { HasEvent , Event , EventUsesType , EventTypeDefinition } from './event' ;
5+ import { ResourceHasEvent , Event , EventUsesType , EventTypeDefinition } from './event' ;
66import {
77 DimensionSet ,
88 Metric ,
@@ -63,7 +63,7 @@ export function emptyDatabase() {
6363 serviceHasMetric : r . relationship < ServiceHasMetric > ( 'service' , 'metric' ) ,
6464 resourceHasDimensionSet : r . relationship < ResourceHasDimensionSet > ( 'resource' , 'dimensionSet' ) ,
6565 serviceHasDimensionSet : r . relationship < ServiceHasDimensionSet > ( 'service' , 'dimensionSet' ) ,
66- hasEvent : r . relationship < HasEvent > ( 'resource' , 'event' ) ,
66+ resourceHasEvent : r . relationship < ResourceHasEvent > ( 'resource' , 'event' ) ,
6767 eventUsesType : r . relationship < EventUsesType > ( 'event' , 'eventTypeDefinition' ) ,
6868 } ) ,
6969 ) ;
@@ -83,7 +83,7 @@ export type SpecDatabase = ReturnType<typeof emptyDatabase>;
8383 * Helpers for working with a SpecDatabase
8484 */
8585export class RichSpecDatabase {
86- constructor ( private readonly db : SpecDatabase ) { }
86+ constructor ( private readonly db : SpecDatabase ) { }
8787
8888 /**
8989 * Find all resources of a given type
0 commit comments