From ce2f60a3066ffffb39cc5d2a358c7d5604014a6e Mon Sep 17 00:00:00 2001 From: arsforza Date: Fri, 15 Mar 2024 10:23:12 +0100 Subject: [PATCH] fix: add evolving scenario to floods AB#26926 --- .../mock-data/floods/UGA/scenarios.json | 4 + .../G5220/triggers-per-leadtime.json | 42 ++ .../G5220/upload-alert_threshold-2.json | 26 ++ .../G5220/upload-alert_threshold-3.json | 34 ++ .../G5220/upload-alert_threshold-4.json | 414 ++++++++++++++++++ .../G5220/upload-population_affected-2.json | 26 ++ .../G5220/upload-population_affected-3.json | 34 ++ .../G5220/upload-population_affected-4.json | 414 ++++++++++++++++++ ...load-population_affected_percentage-2.json | 26 ++ ...load-population_affected_percentage-3.json | 34 ++ ...load-population_affected_percentage-4.json | 414 ++++++++++++++++++ .../src/scripts/mock.controller.ts | 1 + 12 files changed, 1469 insertions(+) create mode 100644 services/API-service/src/scripts/mock-data/floods/UGA/warningToTrigger/G5220/triggers-per-leadtime.json create mode 100644 services/API-service/src/scripts/mock-data/floods/UGA/warningToTrigger/G5220/upload-alert_threshold-2.json create mode 100644 services/API-service/src/scripts/mock-data/floods/UGA/warningToTrigger/G5220/upload-alert_threshold-3.json create mode 100644 services/API-service/src/scripts/mock-data/floods/UGA/warningToTrigger/G5220/upload-alert_threshold-4.json create mode 100644 services/API-service/src/scripts/mock-data/floods/UGA/warningToTrigger/G5220/upload-population_affected-2.json create mode 100644 services/API-service/src/scripts/mock-data/floods/UGA/warningToTrigger/G5220/upload-population_affected-3.json create mode 100644 services/API-service/src/scripts/mock-data/floods/UGA/warningToTrigger/G5220/upload-population_affected-4.json create mode 100644 services/API-service/src/scripts/mock-data/floods/UGA/warningToTrigger/G5220/upload-population_affected_percentage-2.json create mode 100644 services/API-service/src/scripts/mock-data/floods/UGA/warningToTrigger/G5220/upload-population_affected_percentage-3.json create mode 100644 services/API-service/src/scripts/mock-data/floods/UGA/warningToTrigger/G5220/upload-population_affected_percentage-4.json diff --git a/services/API-service/src/scripts/mock-data/floods/UGA/scenarios.json b/services/API-service/src/scripts/mock-data/floods/UGA/scenarios.json index 0870b414d..0621a9277 100644 --- a/services/API-service/src/scripts/mock-data/floods/UGA/scenarios.json +++ b/services/API-service/src/scripts/mock-data/floods/UGA/scenarios.json @@ -15,6 +15,10 @@ { "eventName": "G5230", "leadTime": "5-day" } ] }, + { + "scenarioName": "warningToTrigger", + "events": [{ "eventName": "G5220", "leadTime": "4-day" }] + }, { "scenarioName": "noTrigger" } diff --git a/services/API-service/src/scripts/mock-data/floods/UGA/warningToTrigger/G5220/triggers-per-leadtime.json b/services/API-service/src/scripts/mock-data/floods/UGA/warningToTrigger/G5220/triggers-per-leadtime.json new file mode 100644 index 000000000..48546fe7e --- /dev/null +++ b/services/API-service/src/scripts/mock-data/floods/UGA/warningToTrigger/G5220/triggers-per-leadtime.json @@ -0,0 +1,42 @@ +[ + { + "leadTime": "0-day", + "triggered": false, + "thresholdReached": false + }, + { + "leadTime": "1-day", + "triggered": false, + "thresholdReached": false + }, + { + "leadTime": "2-day", + "triggered": false, + "thresholdReached": false + }, + { + "leadTime": "3-day", + "triggered": true, + "thresholdReached": false + }, + { + "leadTime": "4-day", + "triggered": true, + "thresholdReached": true + }, + { + "leadTime": "5-day", + "triggered": true, + "thresholdReached": true + }, + { + "leadTime": "6-day", + "triggered": true, + "thresholdReached": true + }, + { + "leadTime": "7-day", + "triggered": true, + "thresholdReached": true + } +] diff --git a/services/API-service/src/scripts/mock-data/floods/UGA/warningToTrigger/G5220/upload-alert_threshold-2.json b/services/API-service/src/scripts/mock-data/floods/UGA/warningToTrigger/G5220/upload-alert_threshold-2.json new file mode 100644 index 000000000..b5cbf9200 --- /dev/null +++ b/services/API-service/src/scripts/mock-data/floods/UGA/warningToTrigger/G5220/upload-alert_threshold-2.json @@ -0,0 +1,26 @@ +[ + { + "placeCode": "21UGA003001", + "amount": 1 + }, + { + "placeCode": "21UGA003003", + "amount": 1 + }, + { + "placeCode": "21UGA006001", + "amount": 1 + }, + { + "placeCode": "21UGA006006", + "amount": 1 + }, + { + "placeCode": "21UGA006007", + "amount": 1 + }, + { + "placeCode": "21UGA006008", + "amount": 1 + } +] diff --git a/services/API-service/src/scripts/mock-data/floods/UGA/warningToTrigger/G5220/upload-alert_threshold-3.json b/services/API-service/src/scripts/mock-data/floods/UGA/warningToTrigger/G5220/upload-alert_threshold-3.json new file mode 100644 index 000000000..98a401bd0 --- /dev/null +++ b/services/API-service/src/scripts/mock-data/floods/UGA/warningToTrigger/G5220/upload-alert_threshold-3.json @@ -0,0 +1,34 @@ +[ + { + "placeCode": "UG202801", + "amount": 1 + }, + { + "placeCode": "UG202802", + "amount": 1 + }, + { + "placeCode": "UG202901", + "amount": 1 + }, + { + "placeCode": "UG203601", + "amount": 1 + }, + { + "placeCode": "UG205201", + "amount": 1 + }, + { + "placeCode": "UG205401", + "amount": 1 + }, + { + "placeCode": "UG205402", + "amount": 1 + }, + { + "placeCode": "UG205601", + "amount": 1 + } +] diff --git a/services/API-service/src/scripts/mock-data/floods/UGA/warningToTrigger/G5220/upload-alert_threshold-4.json b/services/API-service/src/scripts/mock-data/floods/UGA/warningToTrigger/G5220/upload-alert_threshold-4.json new file mode 100644 index 000000000..20b838886 --- /dev/null +++ b/services/API-service/src/scripts/mock-data/floods/UGA/warningToTrigger/G5220/upload-alert_threshold-4.json @@ -0,0 +1,414 @@ +[ + { + "placeCode": "UG20280101", + "amount": 1 + }, + { + "placeCode": "UG20280102", + "amount": 1 + }, + { + "placeCode": "UG20280103", + "amount": 1 + }, + { + "placeCode": "UG20280104", + "amount": 1 + }, + { + "placeCode": "UG20280105", + "amount": 1 + }, + { + "placeCode": "UG20280106", + "amount": 1 + }, + { + "placeCode": "UG20280107", + "amount": 1 + }, + { + "placeCode": "UG20280201", + "amount": 1 + }, + { + "placeCode": "UG20280202", + "amount": 1 + }, + { + "placeCode": "UG20280203", + "amount": 1 + }, + { + "placeCode": "UG20280204", + "amount": 1 + }, + { + "placeCode": "UG20280205", + "amount": 1 + }, + { + "placeCode": "UG20280206", + "amount": 1 + }, + { + "placeCode": "UG20290101", + "amount": 1 + }, + { + "placeCode": "UG20290102", + "amount": 1 + }, + { + "placeCode": "UG20290103", + "amount": 1 + }, + { + "placeCode": "UG20290104", + "amount": 1 + }, + { + "placeCode": "UG20290105", + "amount": 1 + }, + { + "placeCode": "UG20290106", + "amount": 1 + }, + { + "placeCode": "UG20290107", + "amount": 1 + }, + { + "placeCode": "UG20290108", + "amount": 1 + }, + { + "placeCode": "UG20290109", + "amount": 1 + }, + { + "placeCode": "UG20290110", + "amount": 1 + }, + { + "placeCode": "UG20290111", + "amount": 1 + }, + { + "placeCode": "UG20290112", + "amount": 1 + }, + { + "placeCode": "UG20290113", + "amount": 1 + }, + { + "placeCode": "UG20290114", + "amount": 1 + }, + { + "placeCode": "UG20290115", + "amount": 1 + }, + { + "placeCode": "UG20290116", + "amount": 1 + }, + { + "placeCode": "UG20290117", + "amount": 1 + }, + { + "placeCode": "UG20360101", + "amount": 1 + }, + { + "placeCode": "UG20360102", + "amount": 1 + }, + { + "placeCode": "UG20360103", + "amount": 1 + }, + { + "placeCode": "UG20360104", + "amount": 1 + }, + { + "placeCode": "UG20360105", + "amount": 1 + }, + { + "placeCode": "UG20360106", + "amount": 1 + }, + { + "placeCode": "UG20360107", + "amount": 1 + }, + { + "placeCode": "UG20360108", + "amount": 1 + }, + { + "placeCode": "UG20360109", + "amount": 1 + }, + { + "placeCode": "UG20360110", + "amount": 1 + }, + { + "placeCode": "UG20360111", + "amount": 1 + }, + { + "placeCode": "UG20360112", + "amount": 1 + }, + { + "placeCode": "UG20520101", + "amount": 1 + }, + { + "placeCode": "UG20520102", + "amount": 1 + }, + { + "placeCode": "UG20520103", + "amount": 1 + }, + { + "placeCode": "UG20520104", + "amount": 1 + }, + { + "placeCode": "UG20520105", + "amount": 1 + }, + { + "placeCode": "UG20520106", + "amount": 1 + }, + { + "placeCode": "UG20520107", + "amount": 1 + }, + { + "placeCode": "UG20520108", + "amount": 1 + }, + { + "placeCode": "UG20520109", + "amount": 1 + }, + { + "placeCode": "UG20520110", + "amount": 1 + }, + { + "placeCode": "UG20520111", + "amount": 1 + }, + { + "placeCode": "UG20520112", + "amount": 1 + }, + { + "placeCode": "UG20520113", + "amount": 1 + }, + { + "placeCode": "UG20520114", + "amount": 1 + }, + { + "placeCode": "UG20520115", + "amount": 1 + }, + { + "placeCode": "UG20520116", + "amount": 1 + }, + { + "placeCode": "UG20520117", + "amount": 1 + }, + { + "placeCode": "UG20540101", + "amount": 1 + }, + { + "placeCode": "UG20540102", + "amount": 1 + }, + { + "placeCode": "UG20540103", + "amount": 1 + }, + { + "placeCode": "UG20540104", + "amount": 1 + }, + { + "placeCode": "UG20540105", + "amount": 1 + }, + { + "placeCode": "UG20540106", + "amount": 1 + }, + { + "placeCode": "UG20540107", + "amount": 1 + }, + { + "placeCode": "UG20540108", + "amount": 1 + }, + { + "placeCode": "UG20540109", + "amount": 1 + }, + { + "placeCode": "UG20540110", + "amount": 1 + }, + { + "placeCode": "UG20540111", + "amount": 1 + }, + { + "placeCode": "UG20540112", + "amount": 1 + }, + { + "placeCode": "UG20540113", + "amount": 1 + }, + { + "placeCode": "UG20540114", + "amount": 1 + }, + { + "placeCode": "UG20540115", + "amount": 1 + }, + { + "placeCode": "UG20540116", + "amount": 1 + }, + { + "placeCode": "UG20540117", + "amount": 1 + }, + { + "placeCode": "UG20540118", + "amount": 1 + }, + { + "placeCode": "UG20540119", + "amount": 1 + }, + { + "placeCode": "UG20540120", + "amount": 1 + }, + { + "placeCode": "UG20540121", + "amount": 1 + }, + { + "placeCode": "UG20540122", + "amount": 1 + }, + { + "placeCode": "UG20540123", + "amount": 1 + }, + { + "placeCode": "UG20540124", + "amount": 1 + }, + { + "placeCode": "UG20540201", + "amount": 1 + }, + { + "placeCode": "UG20540202", + "amount": 1 + }, + { + "placeCode": "UG20540203", + "amount": 1 + }, + { + "placeCode": "UG20560101", + "amount": 1 + }, + { + "placeCode": "UG20560102", + "amount": 1 + }, + { + "placeCode": "UG20560103", + "amount": 1 + }, + { + "placeCode": "UG20560104", + "amount": 1 + }, + { + "placeCode": "UG20560105", + "amount": 1 + }, + { + "placeCode": "UG20560106", + "amount": 1 + }, + { + "placeCode": "UG20560107", + "amount": 1 + }, + { + "placeCode": "UG20560108", + "amount": 1 + }, + { + "placeCode": "UG20560109", + "amount": 1 + }, + { + "placeCode": "UG20560110", + "amount": 1 + }, + { + "placeCode": "UG20560111", + "amount": 1 + }, + { + "placeCode": "UG20560112", + "amount": 1 + }, + { + "placeCode": "UG20560113", + "amount": 1 + }, + { + "placeCode": "UG20560114", + "amount": 1 + }, + { + "placeCode": "UG20560115", + "amount": 1 + }, + { + "placeCode": "UG20560116", + "amount": 1 + }, + { + "placeCode": "UG20560117", + "amount": 1 + } +] diff --git a/services/API-service/src/scripts/mock-data/floods/UGA/warningToTrigger/G5220/upload-population_affected-2.json b/services/API-service/src/scripts/mock-data/floods/UGA/warningToTrigger/G5220/upload-population_affected-2.json new file mode 100644 index 000000000..3a02d24b1 --- /dev/null +++ b/services/API-service/src/scripts/mock-data/floods/UGA/warningToTrigger/G5220/upload-population_affected-2.json @@ -0,0 +1,26 @@ +[ + { + "placeCode": "21UGA003001", + "amount": 17845 + }, + { + "placeCode": "21UGA003003", + "amount": 114286 + }, + { + "placeCode": "21UGA006001", + "amount": 2145 + }, + { + "placeCode": "21UGA006006", + "amount": 2201 + }, + { + "placeCode": "21UGA006007", + "amount": 8123 + }, + { + "placeCode": "21UGA006008", + "amount": 3380 + } +] diff --git a/services/API-service/src/scripts/mock-data/floods/UGA/warningToTrigger/G5220/upload-population_affected-3.json b/services/API-service/src/scripts/mock-data/floods/UGA/warningToTrigger/G5220/upload-population_affected-3.json new file mode 100644 index 000000000..59817b69b --- /dev/null +++ b/services/API-service/src/scripts/mock-data/floods/UGA/warningToTrigger/G5220/upload-population_affected-3.json @@ -0,0 +1,34 @@ +[ + { + "placeCode": "UG202801", + "amount": 1000 + }, + { + "placeCode": "UG202802", + "amount": 1000 + }, + { + "placeCode": "UG202901", + "amount": 1000 + }, + { + "placeCode": "UG203601", + "amount": 1000 + }, + { + "placeCode": "UG205201", + "amount": 1000 + }, + { + "placeCode": "UG205401", + "amount": 1000 + }, + { + "placeCode": "UG205402", + "amount": 1000 + }, + { + "placeCode": "UG205601", + "amount": 1000 + } +] diff --git a/services/API-service/src/scripts/mock-data/floods/UGA/warningToTrigger/G5220/upload-population_affected-4.json b/services/API-service/src/scripts/mock-data/floods/UGA/warningToTrigger/G5220/upload-population_affected-4.json new file mode 100644 index 000000000..c74e644f1 --- /dev/null +++ b/services/API-service/src/scripts/mock-data/floods/UGA/warningToTrigger/G5220/upload-population_affected-4.json @@ -0,0 +1,414 @@ +[ + { + "placeCode": "UG20280101", + "amount": 100 + }, + { + "placeCode": "UG20280102", + "amount": 100 + }, + { + "placeCode": "UG20280103", + "amount": 100 + }, + { + "placeCode": "UG20280104", + "amount": 100 + }, + { + "placeCode": "UG20280105", + "amount": 100 + }, + { + "placeCode": "UG20280106", + "amount": 100 + }, + { + "placeCode": "UG20280107", + "amount": 100 + }, + { + "placeCode": "UG20280201", + "amount": 100 + }, + { + "placeCode": "UG20280202", + "amount": 100 + }, + { + "placeCode": "UG20280203", + "amount": 100 + }, + { + "placeCode": "UG20280204", + "amount": 100 + }, + { + "placeCode": "UG20280205", + "amount": 100 + }, + { + "placeCode": "UG20280206", + "amount": 100 + }, + { + "placeCode": "UG20290101", + "amount": 100 + }, + { + "placeCode": "UG20290102", + "amount": 100 + }, + { + "placeCode": "UG20290103", + "amount": 100 + }, + { + "placeCode": "UG20290104", + "amount": 100 + }, + { + "placeCode": "UG20290105", + "amount": 100 + }, + { + "placeCode": "UG20290106", + "amount": 100 + }, + { + "placeCode": "UG20290107", + "amount": 100 + }, + { + "placeCode": "UG20290108", + "amount": 100 + }, + { + "placeCode": "UG20290109", + "amount": 100 + }, + { + "placeCode": "UG20290110", + "amount": 100 + }, + { + "placeCode": "UG20290111", + "amount": 100 + }, + { + "placeCode": "UG20290112", + "amount": 100 + }, + { + "placeCode": "UG20290113", + "amount": 100 + }, + { + "placeCode": "UG20290114", + "amount": 100 + }, + { + "placeCode": "UG20290115", + "amount": 100 + }, + { + "placeCode": "UG20290116", + "amount": 100 + }, + { + "placeCode": "UG20290117", + "amount": 100 + }, + { + "placeCode": "UG20360101", + "amount": 100 + }, + { + "placeCode": "UG20360102", + "amount": 100 + }, + { + "placeCode": "UG20360103", + "amount": 100 + }, + { + "placeCode": "UG20360104", + "amount": 100 + }, + { + "placeCode": "UG20360105", + "amount": 100 + }, + { + "placeCode": "UG20360106", + "amount": 100 + }, + { + "placeCode": "UG20360107", + "amount": 100 + }, + { + "placeCode": "UG20360108", + "amount": 100 + }, + { + "placeCode": "UG20360109", + "amount": 100 + }, + { + "placeCode": "UG20360110", + "amount": 100 + }, + { + "placeCode": "UG20360111", + "amount": 100 + }, + { + "placeCode": "UG20360112", + "amount": 100 + }, + { + "placeCode": "UG20520101", + "amount": 100 + }, + { + "placeCode": "UG20520102", + "amount": 100 + }, + { + "placeCode": "UG20520103", + "amount": 100 + }, + { + "placeCode": "UG20520104", + "amount": 100 + }, + { + "placeCode": "UG20520105", + "amount": 100 + }, + { + "placeCode": "UG20520106", + "amount": 100 + }, + { + "placeCode": "UG20520107", + "amount": 100 + }, + { + "placeCode": "UG20520108", + "amount": 100 + }, + { + "placeCode": "UG20520109", + "amount": 100 + }, + { + "placeCode": "UG20520110", + "amount": 100 + }, + { + "placeCode": "UG20520111", + "amount": 100 + }, + { + "placeCode": "UG20520112", + "amount": 100 + }, + { + "placeCode": "UG20520113", + "amount": 100 + }, + { + "placeCode": "UG20520114", + "amount": 100 + }, + { + "placeCode": "UG20520115", + "amount": 100 + }, + { + "placeCode": "UG20520116", + "amount": 100 + }, + { + "placeCode": "UG20520117", + "amount": 100 + }, + { + "placeCode": "UG20540101", + "amount": 100 + }, + { + "placeCode": "UG20540102", + "amount": 100 + }, + { + "placeCode": "UG20540103", + "amount": 100 + }, + { + "placeCode": "UG20540104", + "amount": 100 + }, + { + "placeCode": "UG20540105", + "amount": 100 + }, + { + "placeCode": "UG20540106", + "amount": 100 + }, + { + "placeCode": "UG20540107", + "amount": 100 + }, + { + "placeCode": "UG20540108", + "amount": 100 + }, + { + "placeCode": "UG20540109", + "amount": 100 + }, + { + "placeCode": "UG20540110", + "amount": 100 + }, + { + "placeCode": "UG20540111", + "amount": 100 + }, + { + "placeCode": "UG20540112", + "amount": 100 + }, + { + "placeCode": "UG20540113", + "amount": 100 + }, + { + "placeCode": "UG20540114", + "amount": 100 + }, + { + "placeCode": "UG20540115", + "amount": 100 + }, + { + "placeCode": "UG20540116", + "amount": 100 + }, + { + "placeCode": "UG20540117", + "amount": 100 + }, + { + "placeCode": "UG20540118", + "amount": 100 + }, + { + "placeCode": "UG20540119", + "amount": 100 + }, + { + "placeCode": "UG20540120", + "amount": 100 + }, + { + "placeCode": "UG20540121", + "amount": 100 + }, + { + "placeCode": "UG20540122", + "amount": 100 + }, + { + "placeCode": "UG20540123", + "amount": 100 + }, + { + "placeCode": "UG20540124", + "amount": 100 + }, + { + "placeCode": "UG20540201", + "amount": 100 + }, + { + "placeCode": "UG20540202", + "amount": 100 + }, + { + "placeCode": "UG20540203", + "amount": 100 + }, + { + "placeCode": "UG20560101", + "amount": 100 + }, + { + "placeCode": "UG20560102", + "amount": 100 + }, + { + "placeCode": "UG20560103", + "amount": 100 + }, + { + "placeCode": "UG20560104", + "amount": 100 + }, + { + "placeCode": "UG20560105", + "amount": 100 + }, + { + "placeCode": "UG20560106", + "amount": 100 + }, + { + "placeCode": "UG20560107", + "amount": 100 + }, + { + "placeCode": "UG20560108", + "amount": 100 + }, + { + "placeCode": "UG20560109", + "amount": 100 + }, + { + "placeCode": "UG20560110", + "amount": 100 + }, + { + "placeCode": "UG20560111", + "amount": 100 + }, + { + "placeCode": "UG20560112", + "amount": 100 + }, + { + "placeCode": "UG20560113", + "amount": 100 + }, + { + "placeCode": "UG20560114", + "amount": 100 + }, + { + "placeCode": "UG20560115", + "amount": 100 + }, + { + "placeCode": "UG20560116", + "amount": 100 + }, + { + "placeCode": "UG20560117", + "amount": 100 + } +] diff --git a/services/API-service/src/scripts/mock-data/floods/UGA/warningToTrigger/G5220/upload-population_affected_percentage-2.json b/services/API-service/src/scripts/mock-data/floods/UGA/warningToTrigger/G5220/upload-population_affected_percentage-2.json new file mode 100644 index 000000000..4bc32b99b --- /dev/null +++ b/services/API-service/src/scripts/mock-data/floods/UGA/warningToTrigger/G5220/upload-population_affected_percentage-2.json @@ -0,0 +1,26 @@ +[ + { + "placeCode": "21UGA003001", + "amount": 0.1 + }, + { + "placeCode": "21UGA003003", + "amount": 0.05 + }, + { + "placeCode": "21UGA006001", + "amount": 0.15 + }, + { + "placeCode": "21UGA006006", + "amount": 0.12 + }, + { + "placeCode": "21UGA006007", + "amount": 0.03 + }, + { + "placeCode": "21UGA006008", + "amount": 0.08 + } +] diff --git a/services/API-service/src/scripts/mock-data/floods/UGA/warningToTrigger/G5220/upload-population_affected_percentage-3.json b/services/API-service/src/scripts/mock-data/floods/UGA/warningToTrigger/G5220/upload-population_affected_percentage-3.json new file mode 100644 index 000000000..bf0c1c8a4 --- /dev/null +++ b/services/API-service/src/scripts/mock-data/floods/UGA/warningToTrigger/G5220/upload-population_affected_percentage-3.json @@ -0,0 +1,34 @@ +[ + { + "placeCode": "UG202801", + "amount": 0.09 + }, + { + "placeCode": "UG202802", + "amount": 0.09 + }, + { + "placeCode": "UG202901", + "amount": 0.05 + }, + { + "placeCode": "UG203601", + "amount": 0.45 + }, + { + "placeCode": "UG205201", + "amount": 0.05 + }, + { + "placeCode": "UG205401", + "amount": 0.01 + }, + { + "placeCode": "UG205402", + "amount": 0.03 + }, + { + "placeCode": "UG205601", + "amount": 0.05 + } +] diff --git a/services/API-service/src/scripts/mock-data/floods/UGA/warningToTrigger/G5220/upload-population_affected_percentage-4.json b/services/API-service/src/scripts/mock-data/floods/UGA/warningToTrigger/G5220/upload-population_affected_percentage-4.json new file mode 100644 index 000000000..569dc9f44 --- /dev/null +++ b/services/API-service/src/scripts/mock-data/floods/UGA/warningToTrigger/G5220/upload-population_affected_percentage-4.json @@ -0,0 +1,414 @@ +[ + { + "placeCode": "UG20280101", + "amount": 0.17 + }, + { + "placeCode": "UG20280102", + "amount": 0.06 + }, + { + "placeCode": "UG20280103", + "amount": 0.1 + }, + { + "placeCode": "UG20280104", + "amount": 0.15 + }, + { + "placeCode": "UG20280105", + "amount": 0.11 + }, + { + "placeCode": "UG20280106", + "amount": 0.16 + }, + { + "placeCode": "UG20280107", + "amount": 0.15 + }, + { + "placeCode": "UG20280201", + "amount": 0.05 + }, + { + "placeCode": "UG20280202", + "amount": 0.08 + }, + { + "placeCode": "UG20280203", + "amount": 0.06 + }, + { + "placeCode": "UG20280204", + "amount": 0.03 + }, + { + "placeCode": "UG20280205", + "amount": 0.13 + }, + { + "placeCode": "UG20280206", + "amount": 0.09 + }, + { + "placeCode": "UG20290101", + "amount": 0.01 + }, + { + "placeCode": "UG20290102", + "amount": 0.01 + }, + { + "placeCode": "UG20290103", + "amount": 0.01 + }, + { + "placeCode": "UG20290104", + "amount": 0.01 + }, + { + "placeCode": "UG20290105", + "amount": 0.01 + }, + { + "placeCode": "UG20290106", + "amount": 0.01 + }, + { + "placeCode": "UG20290107", + "amount": 0.01 + }, + { + "placeCode": "UG20290108", + "amount": 0.01 + }, + { + "placeCode": "UG20290109", + "amount": 0.01 + }, + { + "placeCode": "UG20290110", + "amount": 0.01 + }, + { + "placeCode": "UG20290111", + "amount": 0.01 + }, + { + "placeCode": "UG20290112", + "amount": 0.01 + }, + { + "placeCode": "UG20290113", + "amount": 0.01 + }, + { + "placeCode": "UG20290114", + "amount": 0.01 + }, + { + "placeCode": "UG20290115", + "amount": 0.01 + }, + { + "placeCode": "UG20290116", + "amount": 0.01 + }, + { + "placeCode": "UG20290117", + "amount": 0.01 + }, + { + "placeCode": "UG20360101", + "amount": 0.01 + }, + { + "placeCode": "UG20360102", + "amount": 0.01 + }, + { + "placeCode": "UG20360103", + "amount": 0.01 + }, + { + "placeCode": "UG20360104", + "amount": 0.01 + }, + { + "placeCode": "UG20360105", + "amount": 0.01 + }, + { + "placeCode": "UG20360106", + "amount": 0.01 + }, + { + "placeCode": "UG20360107", + "amount": 0.01 + }, + { + "placeCode": "UG20360108", + "amount": 0.01 + }, + { + "placeCode": "UG20360109", + "amount": 0.01 + }, + { + "placeCode": "UG20360110", + "amount": 0.01 + }, + { + "placeCode": "UG20360111", + "amount": 0.01 + }, + { + "placeCode": "UG20360112", + "amount": 0.01 + }, + { + "placeCode": "UG20520101", + "amount": 0.01 + }, + { + "placeCode": "UG20520102", + "amount": 0.01 + }, + { + "placeCode": "UG20520103", + "amount": 0.01 + }, + { + "placeCode": "UG20520104", + "amount": 0.01 + }, + { + "placeCode": "UG20520105", + "amount": 0.01 + }, + { + "placeCode": "UG20520106", + "amount": 0.01 + }, + { + "placeCode": "UG20520107", + "amount": 0.01 + }, + { + "placeCode": "UG20520108", + "amount": 0.01 + }, + { + "placeCode": "UG20520109", + "amount": 0.01 + }, + { + "placeCode": "UG20520110", + "amount": 0.01 + }, + { + "placeCode": "UG20520111", + "amount": 0.01 + }, + { + "placeCode": "UG20520112", + "amount": 0.01 + }, + { + "placeCode": "UG20520113", + "amount": 0.01 + }, + { + "placeCode": "UG20520114", + "amount": 0.01 + }, + { + "placeCode": "UG20520115", + "amount": 0.01 + }, + { + "placeCode": "UG20520116", + "amount": 0.01 + }, + { + "placeCode": "UG20520117", + "amount": 0.01 + }, + { + "placeCode": "UG20540101", + "amount": 0.01 + }, + { + "placeCode": "UG20540102", + "amount": 0.01 + }, + { + "placeCode": "UG20540103", + "amount": 0.01 + }, + { + "placeCode": "UG20540104", + "amount": 0.01 + }, + { + "placeCode": "UG20540105", + "amount": 0.01 + }, + { + "placeCode": "UG20540106", + "amount": 0.02 + }, + { + "placeCode": "UG20540107", + "amount": 0.02 + }, + { + "placeCode": "UG20540108", + "amount": 0.01 + }, + { + "placeCode": "UG20540109", + "amount": 0.01 + }, + { + "placeCode": "UG20540110", + "amount": 0.01 + }, + { + "placeCode": "UG20540111", + "amount": 0.02 + }, + { + "placeCode": "UG20540112", + "amount": 0.02 + }, + { + "placeCode": "UG20540113", + "amount": 0.02 + }, + { + "placeCode": "UG20540114", + "amount": 0.01 + }, + { + "placeCode": "UG20540115", + "amount": 0.02 + }, + { + "placeCode": "UG20540116", + "amount": 0.03 + }, + { + "placeCode": "UG20540117", + "amount": 0.03 + }, + { + "placeCode": "UG20540118", + "amount": 0.03 + }, + { + "placeCode": "UG20540119", + "amount": 0.01 + }, + { + "placeCode": "UG20540120", + "amount": 0.01 + }, + { + "placeCode": "UG20540121", + "amount": 0.01 + }, + { + "placeCode": "UG20540122", + "amount": 0.02 + }, + { + "placeCode": "UG20540123", + "amount": 0.02 + }, + { + "placeCode": "UG20540124", + "amount": 0.3 + }, + { + "placeCode": "UG20540201", + "amount": 0.03 + }, + { + "placeCode": "UG20540202", + "amount": 0.02 + }, + { + "placeCode": "UG20540203", + "amount": 0.05 + }, + { + "placeCode": "UG20560101", + "amount": 0.01 + }, + { + "placeCode": "UG20560102", + "amount": 0.01 + }, + { + "placeCode": "UG20560103", + "amount": 0.01 + }, + { + "placeCode": "UG20560104", + "amount": 0.01 + }, + { + "placeCode": "UG20560105", + "amount": 0.01 + }, + { + "placeCode": "UG20560106", + "amount": 0.01 + }, + { + "placeCode": "UG20560107", + "amount": 0.01 + }, + { + "placeCode": "UG20560108", + "amount": 0.01 + }, + { + "placeCode": "UG20560109", + "amount": 0.01 + }, + { + "placeCode": "UG20560110", + "amount": 0.01 + }, + { + "placeCode": "UG20560111", + "amount": 0.01 + }, + { + "placeCode": "UG20560112", + "amount": 0.01 + }, + { + "placeCode": "UG20560113", + "amount": 0.01 + }, + { + "placeCode": "UG20560114", + "amount": 0.01 + }, + { + "placeCode": "UG20560115", + "amount": 0.01 + }, + { + "placeCode": "UG20560116", + "amount": 0.01 + }, + { + "placeCode": "UG20560117", + "amount": 0.01 + } +] diff --git a/services/API-service/src/scripts/mock.controller.ts b/services/API-service/src/scripts/mock.controller.ts index f228dd6ef..776c1f0b6 100644 --- a/services/API-service/src/scripts/mock.controller.ts +++ b/services/API-service/src/scripts/mock.controller.ts @@ -53,6 +53,7 @@ export class MockBaseScenario { export enum FloodsScenario { Trigger = 'trigger', TwoWarnings = 'twoWarnings', + WarningToTrigger = 'warningToTrigger', } export class MockFloodsScenario extends MockBaseScenario { @ApiProperty({