Skip to content

Commit

Permalink
feat: add blantyre only scenario
Browse files Browse the repository at this point in the history
  • Loading branch information
jannisvisser committed Dec 2, 2024
1 parent 26e49b4 commit fcda9ce
Show file tree
Hide file tree
Showing 11 changed files with 279 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export enum FloodsScenario {

export enum FlashFloodsScenario {
Trigger = 'trigger',
SingleEvent = 'single-event',
NoTrigger = 'no-trigger',
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
{ "eventName": "Blantyre City", "leadTime": "0-hour" }
]
},
{
"scenarioName": "single-event",
"defaultScenario": false,
"events": [{ "eventName": "Blantyre City", "leadTime": "0-hour" }]
},
{
"scenarioName": "no-trigger"
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
[
{
"placeCode": "MW31541",
"amount": 1.0
},
{
"placeCode": "MW31548",
"amount": 1.0
},
{
"placeCode": "MW31549",
"amount": 1.0
},
{
"placeCode": "MW31542",
"amount": 1.0
},
{
"placeCode": "MW31536",
"amount": 1.0
},
{
"placeCode": "MW31535",
"amount": 1.0
},
{
"placeCode": "MW31534",
"amount": 1.0
},
{
"placeCode": "MW31547",
"amount": 1.0
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
[
{
"placeCode": "MW31541",
"amount": 8.7372205e8
},
{
"placeCode": "MW31548",
"amount": 0.0
},
{
"placeCode": "MW31549",
"amount": 2.03924992e9
},
{
"placeCode": "MW31542",
"amount": 1.37519526e9
},
{
"placeCode": "MW31536",
"amount": 9.9143635e8
},
{
"placeCode": "MW31535",
"amount": 0.0
},
{
"placeCode": "MW31534",
"amount": 1.42163226e9
},
{
"placeCode": "MW31547",
"amount": 1.25558096e8
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
[
{
"placeCode": "MW31541",
"amount": 67.0
},
{
"placeCode": "MW31548",
"amount": 318.0
},
{
"placeCode": "MW31549",
"amount": 413.0
},
{
"placeCode": "MW31542",
"amount": 199.0
},
{
"placeCode": "MW31536",
"amount": 158.0
},
{
"placeCode": "MW31535",
"amount": 808.0
},
{
"placeCode": "MW31534",
"amount": 173.0
},
{
"placeCode": "MW31547",
"amount": 4.0
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
[
{
"placeCode": "MW31541",
"amount": 0.0
},
{
"placeCode": "MW31548",
"amount": 0.0
},
{
"placeCode": "MW31549",
"amount": 0.0
},
{
"placeCode": "MW31542",
"amount": 0.0
},
{
"placeCode": "MW31536",
"amount": 0.0
},
{
"placeCode": "MW31535",
"amount": 0.0
},
{
"placeCode": "MW31534",
"amount": 0.0
},
{
"placeCode": "MW31547",
"amount": 0.0
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
[
{
"placeCode": "MW31541",
"amount": 28.0
},
{
"placeCode": "MW31548",
"amount": 39.0
},
{
"placeCode": "MW31549",
"amount": 43.0
},
{
"placeCode": "MW31542",
"amount": 29.0
},
{
"placeCode": "MW31536",
"amount": 16.0
},
{
"placeCode": "MW31535",
"amount": 74.0
},
{
"placeCode": "MW31534",
"amount": 49.0
},
{
"placeCode": "MW31547",
"amount": 19.0
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
[
{
"placeCode": "MW31541",
"amount": 0.0
},
{
"placeCode": "MW31548",
"amount": 0.0
},
{
"placeCode": "MW31549",
"amount": 0.0
},
{
"placeCode": "MW31542",
"amount": 0.0
},
{
"placeCode": "MW31536",
"amount": 1.0
},
{
"placeCode": "MW31535",
"amount": 0.0
},
{
"placeCode": "MW31534",
"amount": 0.0
},
{
"placeCode": "MW31547",
"amount": 1.0
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
[
{
"placeCode": "MW31541",
"amount": 0.0
},
{
"placeCode": "MW31548",
"amount": 0.0
},
{
"placeCode": "MW31549",
"amount": 0.0
},
{
"placeCode": "MW31542",
"amount": 0.0
},
{
"placeCode": "MW31536",
"amount": 0.0
},
{
"placeCode": "MW31535",
"amount": 0.0
},
{
"placeCode": "MW31534",
"amount": 0.0
},
{
"placeCode": "MW31547",
"amount": 0.0
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
[
{
"placeCode": "MW31541",
"amount": 174.0
},
{
"placeCode": "MW31548",
"amount": 671.0
},
{
"placeCode": "MW31549",
"amount": 390.0
},
{
"placeCode": "MW31542",
"amount": 209.0
},
{
"placeCode": "MW31536",
"amount": 432.0
},
{
"placeCode": "MW31535",
"amount": 1953.0
},
{
"placeCode": "MW31534",
"amount": 357.0
},
{
"placeCode": "MW31547",
"amount": 59.0
}
]
2 changes: 1 addition & 1 deletion services/API-service/src/scripts/mock.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export class MockFloodsScenario extends MockBaseScenario {
export class MockFlashFloodsScenario extends MockBaseScenario {
@ApiProperty({
example: Object.values(FlashFloodsScenario).join(' | '),
description: 'trigger: trigger + warning event',
description: 'trigger: trigger + warning + ongoing event; single-event: ',
})
@IsEnum(FlashFloodsScenario)
public readonly scenario: FlashFloodsScenario;
Expand Down

0 comments on commit fcda9ce

Please sign in to comment.