ProgramPublishedEventv1
Admin
Details
Example event payload
1{
2 "todo": "true"
3}
4ProgramPublishedEvent payload
ProgramPublishedEvent Schema (json)
{
"$id": "ProgramPublishedEventPayloadTSchema",
"type": "object",
"properties": {
"program": {
"$id": "ProgramEntity",
"type": "object",
"properties": {
"createdAt": { "format": "datetime", "type": "string" },
"updatedAt": {
"anyOf": [
{ "format": "datetime", "type": "string" },
{ "type": "null" }
]
},
"deletedAt": {
"anyOf": [
{ "format": "datetime", "type": "string" },
{ "type": "null" }
]
},
"id": { "type": "string" },
"title": { "type": "string" },
"internalTitle": { "type": "string" },
"description": { "type": "string" },
"status": {
"default": "DRAFT",
"anyOf": [
{ "const": "DRAFT", "type": "string" },
{ "const": "ACTIVE", "type": "string" }
]
},
"blocks": { "type": "array", "items": {} },
"phaseToPrograms": { "type": "array", "items": {} },
"subphaseToPrograms": { "type": "array", "items": {} },
"blockToPrograms": { "type": "array", "items": {} },
"phaseToProgramsKeys": {
"type": "array",
"items": {
"$id": "PhaseToProgramPKDTO",
"type": "object",
"properties": {
"phase": {
"type": "object",
"properties": { "id": { "type": "string" } },
"required": ["id"]
},
"program": {
"type": "object",
"properties": { "id": { "type": "string" } },
"required": ["id"]
}
},
"required": ["phase", "program"]
}
},
"phases": {
"anyOf": [
{
"description": "deprecationReason: This will return subphases and blocks from all available programs. phaseToPrograms/subphaseToPrograms/blockToPrograms are recommended instead for a specific program.",
"type": "array",
"items": {}
},
{ "type": "null" }
]
},
"blockCriterias": { "type": "array", "items": {} },
"activeProgramId": {
"anyOf": [{ "type": "string" }, { "type": "null" }]
},
"editor": { "anyOf": [{}, { "type": "null" }] },
"editorId": { "anyOf": [{ "type": "string" }, { "type": "null" }] }
},
"required": [
"createdAt",
"id",
"title",
"internalTitle",
"description",
"status",
"blocks",
"phaseToPrograms",
"subphaseToPrograms",
"blockToPrograms",
"phaseToProgramsKeys",
"phases",
"blockCriterias",
"activeProgramId",
"editor",
"editorId"
]
},
"userId": { "type": "string" }
},
"required": ["program", "userId"]
}
Domain Graph
Edit this pageLast updated on 2024/8/5