Skip to content

Commit

Permalink
PORT-6096 Add support for scorecard output in GET operation (#98)
Browse files Browse the repository at this point in the history
* Add support for scorecard output in GET operation

* Remove unnecessary update to tests

* Add newly built-version
  • Loading branch information
MPTG94 authored Jan 14, 2024
1 parent e2630c0 commit a5dbaf6
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export default class EntityGetterOperation implements IOperation {
properties: entity.properties,
...(entity.team && { team: entity.team }),
...(entity.relations && { relations: entity.relations }),
...(entity.scorecards && { scorecards: entity.scorecards }),
},
};
};
Expand Down
2 changes: 2 additions & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
type EntityProperties = Record<string, any>;
type EntityRelations = Record<string, string>;
type EntityScorecards = Record<string, any>;

export type SearchBody = {
rules: {
Expand All @@ -19,6 +20,7 @@ export type Entity = {
properties: EntityProperties;
team?: string | string[];
relations?: EntityRelations;
scorecards?: EntityScorecards;
};

export type Run = {
Expand Down

0 comments on commit a5dbaf6

Please sign in to comment.