Skip to content

Commit

Permalink
fix: polaris logs properties update (#88)
Browse files Browse the repository at this point in the history
* fix: fix polaris log properties types and structure

* refactor: cr fixes

Co-authored-by: Enigmatis <>
  • Loading branch information
itaykl authored Nov 15, 2020
1 parent 10b52ba commit 9f75c88
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 10 deletions.
9 changes: 4 additions & 5 deletions src/entities/entity.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
import { CentralPoint } from './central-point';
import { Identifiable } from './identifiable';
import { Reality } from './reality';
import { SubEntity } from './sub-entity';
import { JsonObject } from './json-object';

export interface Entity {
id: string;
reality?: Reality;
name?: string;
secondaryIds?: Record<string, any>[];
operationalData?: Record<string, any>[];
secondaryIds?: JsonObject;
operationalData?: JsonObject;
correlationIds?: Identifiable[];
subEntities?: SubEntity[];
criticalFields?: Record<string, any>[];
criticalFields?: JsonObject;
centralPoint?: CentralPoint;
}
4 changes: 3 additions & 1 deletion src/entities/group-id.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { JsonObject } from './json-object';

export interface GroupId {
id: string;
name?: string;
secondaryIds?: Record<string, any>[];
secondaryIds?: JsonObject;
action: string;
}
4 changes: 3 additions & 1 deletion src/entities/identifiable.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { JsonObject } from './json-object';

export interface Identifiable {
id: string;
name?: string;
secondaryIds?: Record<string, any>[];
secondaryIds?: JsonObject;
}
5 changes: 5 additions & 0 deletions src/entities/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,8 @@ export * from './reality';
export * from './request';
export * from './requesting-system';
export * from './entity';
export * from './group-id';
export * from './central-point';
export * from './json-object';
export * from './sub-entity';
export * from './identifiable';
3 changes: 3 additions & 0 deletions src/entities/json-object.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export interface JsonObject {
[property: string]: any;
}
7 changes: 4 additions & 3 deletions src/entities/sub-entity.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import { CentralPoint } from './central-point';
import { JsonObject } from './json-object';

export interface SubEntity {
id: string;
name?: string;
secondaryIds?: Record<string, any>[];
operationalData?: Record<string, any>[];
criticalFields?: Record<string, any>[];
secondaryIds?: JsonObject;
operationalData?: JsonObject;
criticalFields?: JsonObject;
centralPoint?: CentralPoint;
}

0 comments on commit 9f75c88

Please sign in to comment.