diff --git a/graphql/auth.ts b/graphql/auth.ts index 9e175fb..f2ee382 100644 --- a/graphql/auth.ts +++ b/graphql/auth.ts @@ -80,6 +80,17 @@ export const groups: { readonly [authGroup: string]: AuthFilters } = { wastewatermpox: { where: ['Location', 'thisiddoesnotexist'], }, + }, + mb:{ + sites:{ + whereIn: ['siteID', ['THM, WPG-W, WPG-S, WPG-N, FLN, BDN']] + }, + measures: { + whereIn: ['measure', ["covN2", "fluA", "fluB", "rsvA", "rsvB"]] + }, + wastewatermpox: { + where: ['Location', 'thisiddoesnotexist'], + }, } }; diff --git a/terraform/README.md b/terraform/README.md index 731f1aa..89133a1 100644 --- a/terraform/README.md +++ b/terraform/README.md @@ -46,7 +46,7 @@ No modules. | [api\_name](#input\_api\_name) | The name of the API Management API. Changing this forces a new resource to be created. | `string` | `"wastewater-graphql-api"` | no | | [api\_path](#input\_api\_path) | The Path for this API Management API, which is a relative URL which uniquely identifies this API and all of its resource paths within the API Management Service. | `string` | `"wastewater"` | no | | [apim](#input\_apim) | APIM to create API in | `string` | n/a | yes | -| [auth\_groups](#input\_auth\_groups) | List of authorization groups, their display name, and their description. The value of `group` must match the groups defined in (auth.ts)(graphql/auth.ts) |
list(object({|
group = string
name = string
description = string
subscriptions = number
suspended = list(number)
}))
[| no | +| [auth\_groups](#input\_auth\_groups) | List of authorization groups, their display name, and their description. The value of `group` must match the groups defined in (auth.ts)(graphql/auth.ts) |
{
"description": "National Microbiology Laboratory",
"group": "nml-lab",
"name": "NML",
"subscriptions": 15,
"suspended": []
},
{
"description": "Correctional Service Canada",
"group": "csc",
"name": "CSC",
"subscriptions": 15,
"suspended": []
},
{
"description": "BC Centre for Disease Control",
"group": "bccdc",
"name": "BCCDC",
"subscriptions": 15,
"suspended": []
},
{
"description": "Haines Junction (Yukon)",
"group": "hnj",
"name": "HNJ",
"subscriptions": 15,
"suspended": []
},
{
"description": "Ontario Ministry of the Environment, Conservation and Parks",
"group": "omecp",
"name": "OMECP",
"subscriptions": 15,
"suspended": []
},
{
"description": "Public Health Ontario",
"group": "pho",
"name": "PHO",
"subscriptions": 15,
"suspended": []
}
]
list(object({|
group = string
name = string
description = string
subscriptions = number
suspended = list(number)
}))
[| no | | [function\_app\_url](#input\_function\_app\_url) | Absolute URL of the backend service implementing this API. | `string` | n/a | yes | | [resource\_group](#input\_resource\_group) | Resource group to use | `string` | n/a | yes | | [subscription\_id](#input\_subscription\_id) | Azure subscription id | `string` | n/a | yes |
{
"description": "National Microbiology Laboratory",
"group": "nml-lab",
"name": "NML",
"subscriptions": 15,
"suspended": []
},
{
"description": "Correctional Service Canada",
"group": "csc",
"name": "CSC",
"subscriptions": 15,
"suspended": []
},
{
"description": "BC Centre for Disease Control",
"group": "bccdc",
"name": "BCCDC",
"subscriptions": 15,
"suspended": []
},
{
"description": "Haines Junction (Yukon)",
"group": "hnj",
"name": "HNJ",
"subscriptions": 15,
"suspended": []
},
{
"description": "Ontario Ministry of the Environment, Conservation and Parks",
"group": "omecp",
"name": "OMECP",
"subscriptions": 15,
"suspended": []
},
{
"description": "Public Health Ontario",
"group": "pho",
"name": "PHO",
"subscriptions": 15,
"suspended": []
},
{
"description": "Manitoba grouping for PHAC",
"group": "MB",
"name": "MB",
"subscriptions": 5,
"suspended": []
}
]