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.
process → processId (in and out): the organization's process (an ObjectId; was a PROCESS_* type). The response is the form (SimpleFormOutDto).curl --location 'https://app.hustro.com/api/v2/client//simpleForm' \
--header 'hustro-client-version: ' \
--header 'hustro-client: web' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"processId": "6750a1f2c3d4e5f6a7b8c9d1",
"label": "Formularz Usterek - Hustro Towers",
"includeAllProjects": false,
"defaultAssignee": "5f02e624533ef00019edd395",
"projects": [
{
"_id": "5e417e31c456798111f8b415",
"includeAllSites": true
}
]
}'{
"_id": "64ed771d95a1e3d565839d18",
"encryptedId": "string",
"clientId": "64ed771d95a1e3d565839d18",
"label": "string",
"processId": "64ed771d95a1e3d565839d18",
"includeAllProjects": true,
"isPubliclyAvailable": true,
"projects": [
{
"_id": "64ed771d95a1e3d565839d18",
"includeAllSites": true,
"sites": [
{
"_id": "64ed771d95a1e3d565839d18",
"includeAllLevels": true,
"levels": [
"64ed771d95a1e3d565839d18"
],
"defaultAssignee": "64ed771d95a1e3d565839d18"
}
],
"defaultAssignee": "64ed771d95a1e3d565839d18"
}
],
"defaultAssignee": "64ed771d95a1e3d565839d18",
"deleted": true,
"createdAt": "string",
"createdBy": "64ed771d95a1e3d565839d18",
"modifiedAt": "string",
"modifiedBy": "64ed771d95a1e3d565839d18"
}