Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
nshmp-utils-ts
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ghsc
National Seismic Hazard Model Project
nshmp-utils-ts
Commits
ba72ed98
Commit
ba72ed98
authored
1 year ago
by
Clayton, Brandon Scott
Browse files
Options
Downloads
Patches
Plain Diff
add type to usage
parent
fcceef43
No related branches found
No related tags found
1 merge request
!207
GMM Usage
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libs/nshmp-ws/gmm-services/gmm-usage.model.ts
+17
-0
17 additions, 0 deletions
libs/nshmp-ws/gmm-services/gmm-usage.model.ts
with
17 additions
and
0 deletions
libs/nshmp-ws/gmm-services/gmm-usage.model.ts
+
17
−
0
View file @
ba72ed98
...
@@ -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.
*/
*/
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment