PT-7175 — organization processes (release with mobile 3.16; not on production yet). Process ids become ObjectIds and the fields holding them get new names: processOnProjectId/processOnProjectIds— a process on the project (_idinGET /project/{projectId}/process);processId/processIds— the organization's process (_idinGET /client/{clientId}/process). Read a process's type, name, code and colours fromGET /project/{projectId}/process, matched byprocessOnProjectId— never from the id. Issue writes keep accepting the oldprocessfield andPROCESS_*values for about a month; every other write takes only the new names and ids.
timeToRespondToIssue[].process / timeToResolveIssue[].process → processOnProjectId: the _id of a process on the project.curl --location --globoff 'https://app.hustro.com/api/v2/project//contract' \
--header 'hustro-client: m2m' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json'{
"contracts": [
{
"deleted": true,
"_id": "5f479169f7ef7fe33b3cca36",
"createdAt": "2020-12-01T11:32:01+01:00",
"createdBy": "5f479169f7ef7fe33b3cca36",
"modifiedAt": "2020-12-01T11:32:01+01:00",
"modifiedBy": "5f479169f7ef7fe33b3cca36",
"parties": [
{
"companyId": "5f479169f7ef7fe33b3cca36",
"overrideCompanyCorrespondenceAddress": true,
"correspondenceAddress": {
"streetAndNumber": "string",
"postalCode": "string",
"country": "POL",
"city": "string"
},
"signingDate": "2020-12-01T11:32:01+01:00",
"contactPerson": {
"label": "string",
"email": "hello@hustro.com",
"phone": {
"country": "POL",
"number": "string"
}
}
}
],
"label": "string",
"term": {
"start": "2020-12-01T11:32:01+01:00",
"end": "2020-12-01T11:32:01+01:00"
},
"monetaryValue": 0,
"timeToRespondToIssue": [
{
"days": 1,
"processOnProjectId": "64ed771d95a1e3d565839d18"
}
],
"timeToResolveIssue": [
{
"days": 1,
"processOnProjectId": "64ed771d95a1e3d565839d18"
}
]
}
]
}