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 → processOnProjectId in each template: the _id of its process on the project (GET /project/{projectId}/process).Authorization: Bearer ********************curl --location --globoff 'https://app.hustro.com/api/v2/project//inspectionTemplate/' \
--header 'hustro-client: m2m' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json'{
"deleted": true,
"_id": "5f479169f7ef7fe33b3cca36",
"createdAt": "2020-12-01T11:32:01+01:00",
"createdBy": "5f479169f7ef7fe33b3cca36",
"modifiedAt": "2020-12-01T11:32:01+01:00",
"modifiedBy": "5f479169f7ef7fe33b3cca36",
"processOnProjectId": "64ed771d95a1e3d565839d18",
"summary": "Jakiś opis template",
"status": "PUBLISHED",
"generalNorm": {
"description": "string"
},
"generalNormConfig": {
"isControlledPartyVisible": true,
"isContractNumberVisible": true,
"isWorkTypeVisible": true,
"isCommentVisible": true,
"isInspectionResultVisible": true
}
}