Skip to content
Snippets Groups Projects
Commit ba72ed98 authored by Clayton, Brandon Scott's avatar Clayton, Brandon Scott
Browse files

add type to usage

parent fcceef43
No related branches found
No related tags found
1 merge request!207GMM Usage
...@@ -19,6 +19,20 @@ export type GmmDistanceUsage = Response<string, GmmDistanceUsageResponse>; ...@@ -19,6 +19,20 @@ export type GmmDistanceUsage = Response<string, GmmDistanceUsageResponse>;
*/ */
export type GmmMagnitudeUsage = Response<string, GmmMagnitudeUsageResponse>; export type GmmMagnitudeUsage = Response<string, GmmMagnitudeUsageResponse>;
export enum GmmType {
ACTIVE_CRUST = 'ACTIVE_CRUST',
STABLE_CRUST = 'STABLE_CRUST',
SUBDUCTION_INTERFACE = 'SUBDUCTION_INTERFACE',
SUBDUCTION_SLAB = 'SUBDUCTION_SLAB',
}
enum Volcanic {
VOLCANIC = 'VOLCANIC',
}
export const GmmGroupType = {...GmmType, ...Volcanic};
export type GmmGroupType = GmmType | Volcanic;
/** /**
* Gmm usage response in Response object. * Gmm usage response in Response object.
*/ */
...@@ -65,6 +79,7 @@ export interface GmmValue { ...@@ -65,6 +79,7 @@ export interface GmmValue {
id: string; id: string;
label: string; label: string;
supportedImts: string[]; supportedImts: string[];
type: GmmType;
} }
/** /**
...@@ -83,7 +98,9 @@ export interface GmmGroupValue { ...@@ -83,7 +98,9 @@ export interface GmmGroupValue {
id: string; id: string;
label: string; label: string;
data: string[]; data: string[];
type: GmmGroupType;
} }
/** /**
* gmm usage parameter. * gmm usage parameter.
*/ */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment