mutation UpdatePermitStatus($id: String!, $status: String!) {
updatePermitStatus(id: $id, status: $status) {
actions {
assigned {
allowedLocations {
__typename
}
avatarUrl
department
email
firstName
groups {
__typename
}
}
assignment {
action {
__typename
}
actionId
assignment {
__typename
}
assignmentId
present
progressPct
}
canChangeStatus
completedDate
createdAt
dueDate
}
createdAt
dueDate
events {
action {
assigned {
__typename
}
assignment {
__typename
}
canChangeStatus
completedDate
createdAt
dueDate
}
assigned {
allowedLocations {
__typename
}
avatarUrl
department
email
firstName
groups {
__typename
}
}
description
id
incident {
actions {
__typename
}
biologicalsDetails
cause
chemicalsDetails
createdBy {
__typename
}
description
}
inspectionResult {
completionAction {
__typename
}
createdAt
id
inspectionDate
inspector {
__typename
}
inspectorId
}
}
expiryDate
id
}
}{
"id": "string",
"status": "string"
}{
"data": {
"updatePermitStatus": {
"actions": [
{
"assigned": {
"allowedLocations": [
{
"__typename": "Location"
}
],
"avatarUrl": "string",
"department": "string",
"email": "string",
"firstName": "string",
"groups": [
{
"__typename": "UserGroup"
}
]
},
"assignment": {
"action": {
"__typename": "Action"
},
"actionId": "id",
"assignment": {
"__typename": "TrainingAssignment"
},
"assignmentId": "id",
"present": true,
"progressPct": 1
},
"canChangeStatus": true,
"completedDate": "value",
"createdAt": "value",
"dueDate": "value"
}
],
"createdAt": "value",
"dueDate": "value",
"events": [
{
"action": {
"assigned": {
"__typename": "User"
},
"assignment": {
"__typename": "ActionToTrainingAssignment"
},
"canChangeStatus": true,
"completedDate": "value",
"createdAt": "value",
"dueDate": "value"
},
"assigned": {
"allowedLocations": [
{
"__typename": "Location"
}
],
"avatarUrl": "string",
"department": "string",
"email": "string",
"firstName": "string",
"groups": [
{
"__typename": "UserGroup"
}
]
},
"description": "string",
"id": "string",
"incident": {
"actions": [
{
"__typename": "Action"
}
],
"biologicalsDetails": "string",
"cause": "string",
"chemicalsDetails": "string",
"createdBy": {
"__typename": "User"
},
"description": "string"
},
"inspectionResult": {
"completionAction": {
"__typename": "Action"
},
"createdAt": "value",
"id": "string",
"inspectionDate": "value",
"inspector": {
"__typename": "User"
},
"inspectorId": "string"
}
}
],
"expiryDate": "value",
"id": "string"
}
}
}updatePermitStatus
Sets the application status of a permit and returns the permit.
updatePermitStatus(id: String!, status: String!): Permit!Arguments
Id of the permit to update.
New application status: one of 'not_submitted' (Not submitted), 'submitted' (Application submitted), 'accepted' (Application accepted), 'approved' (Application approved) or 'issued' (Permit issued).
Returns
Tasks linked to the permit. Empty if there are no tasks.
When the permit record was created.
When the next inspection is due.
Calendar events linked to the permit. Empty if there are no events.
When the permit expires.
Unique identifier of the permit record.
When the permit was last inspected.
When the permit was last issued.
Name of the permit.
The requirements and conditions the permit imposes. Empty if there are no requirements.
Application status: one of 'not_submitted' (Not submitted), 'submitted' (Application submitted), 'accepted' (Application accepted), 'approved' (Application approved) or 'issued' (Permit issued).
Id of the permit's 'Submit permit application' task.
Free-text category of the permit.
When the permit record was last modified.
mutation UpdatePermitStatus($id: String!, $status: String!) {
updatePermitStatus(id: $id, status: $status) {
actions {
assigned {
allowedLocations {
__typename
}
avatarUrl
department
email
firstName
groups {
__typename
}
}
assignment {
action {
__typename
}
actionId
assignment {
__typename
}
assignmentId
present
progressPct
}
canChangeStatus
completedDate
createdAt
dueDate
}
createdAt
dueDate
events {
action {
assigned {
__typename
}
assignment {
__typename
}
canChangeStatus
completedDate
createdAt
dueDate
}
assigned {
allowedLocations {
__typename
}
avatarUrl
department
email
firstName
groups {
__typename
}
}
description
id
incident {
actions {
__typename
}
biologicalsDetails
cause
chemicalsDetails
createdBy {
__typename
}
description
}
inspectionResult {
completionAction {
__typename
}
createdAt
id
inspectionDate
inspector {
__typename
}
inspectorId
}
}
expiryDate
id
}
}{
"id": "string",
"status": "string"
}{
"data": {
"updatePermitStatus": {
"actions": [
{
"assigned": {
"allowedLocations": [
{
"__typename": "Location"
}
],
"avatarUrl": "string",
"department": "string",
"email": "string",
"firstName": "string",
"groups": [
{
"__typename": "UserGroup"
}
]
},
"assignment": {
"action": {
"__typename": "Action"
},
"actionId": "id",
"assignment": {
"__typename": "TrainingAssignment"
},
"assignmentId": "id",
"present": true,
"progressPct": 1
},
"canChangeStatus": true,
"completedDate": "value",
"createdAt": "value",
"dueDate": "value"
}
],
"createdAt": "value",
"dueDate": "value",
"events": [
{
"action": {
"assigned": {
"__typename": "User"
},
"assignment": {
"__typename": "ActionToTrainingAssignment"
},
"canChangeStatus": true,
"completedDate": "value",
"createdAt": "value",
"dueDate": "value"
},
"assigned": {
"allowedLocations": [
{
"__typename": "Location"
}
],
"avatarUrl": "string",
"department": "string",
"email": "string",
"firstName": "string",
"groups": [
{
"__typename": "UserGroup"
}
]
},
"description": "string",
"id": "string",
"incident": {
"actions": [
{
"__typename": "Action"
}
],
"biologicalsDetails": "string",
"cause": "string",
"chemicalsDetails": "string",
"createdBy": {
"__typename": "User"
},
"description": "string"
},
"inspectionResult": {
"completionAction": {
"__typename": "Action"
},
"createdAt": "value",
"id": "string",
"inspectionDate": "value",
"inspector": {
"__typename": "User"
},
"inspectorId": "string"
}
}
],
"expiryDate": "value",
"id": "string"
}
}
}