mutation UpdatePermitDates($id: String!) {
updatePermitDates(id: $id) {
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"
}{
"data": {
"updatePermitDates": {
"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"
}
}
}updatePermitDates
Sets the key dates of a permit and returns the permit. Dates left out are unchanged.
updatePermitDates(dueDate: DateTime, expiryDate: DateTime, id: String!, inspectionDate: DateTime, issueDate: DateTime): Permit!Arguments
When the next inspection is due.
When the permit expires.
Id of the permit to update.
When the permit was last inspected.
When the permit was last 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 UpdatePermitDates($id: String!) {
updatePermitDates(id: $id) {
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"
}{
"data": {
"updatePermitDates": {
"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"
}
}
}