Skip to content

Commit

Permalink
fix: correct api types (#333)
Browse files Browse the repository at this point in the history
  • Loading branch information
Juiced66 committed Mar 20, 2024
1 parent d1cc3a0 commit 05c426f
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions lib/modules/model/types/ModelApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ import {
AssetModelContent,
DeviceModelContent,
MeasureModelContent,
MetadataDetails,
MetadataGroups,
MetadataMappings,
} from "./ModelContent";

interface ModelsControllerRequest {
Expand Down Expand Up @@ -35,7 +38,9 @@ export interface ApiModelWriteAssetRequest extends ModelsControllerRequest {
body: {
engineGroup: string;
model: string;
metadataMappings?: JSONObject;
metadataDetails?: MetadataDetails;
metadataGroups?: MetadataGroups;
metadataMappings?: MetadataMappings;
defaultValues?: JSONObject;
measures?: AssetModelContent["asset"]["measures"];
};
Expand All @@ -47,7 +52,9 @@ export interface ApiModelWriteDeviceRequest extends ModelsControllerRequest {

body: {
model: string;
metadataMappings?: JSONObject;
metadataDetails?: MetadataDetails;
metadataGroups?: MetadataGroups;
metadataMappings?: MetadataMappings;
defaultValues?: JSONObject;
measures: DeviceModelContent["device"]["measures"];
};
Expand Down

0 comments on commit 05c426f

Please sign in to comment.